Class: Google::Apis::DataflowV1b3::ParameterMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::ParameterMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Metadata for a specific parameter.
Instance Attribute Summary collapse
-
#custom_metadata ⇒ Hash<String,String>
Optional.
-
#default_value ⇒ String
Optional.
-
#enum_options ⇒ Array<Google::Apis::DataflowV1b3::ParameterMetadataEnumOption>
Optional.
-
#group_name ⇒ String
Optional.
-
#help_text ⇒ String
Required.
-
#is_optional ⇒ Boolean
(also: #is_optional?)
Optional.
-
#label ⇒ String
Required.
-
#name ⇒ String
Required.
-
#param_type ⇒ String
Optional.
-
#parent_name ⇒ String
Optional.
-
#parent_trigger_values ⇒ Array<String>
Optional.
-
#regexes ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParameterMetadata
constructor
A new instance of ParameterMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ParameterMetadata
Returns a new instance of ParameterMetadata.
3588 3589 3590 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3588 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_metadata ⇒ Hash<String,String>
Optional. Additional metadata for describing this parameter.
Corresponds to the JSON property customMetadata
3521 3522 3523 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3521 def @custom_metadata end |
#default_value ⇒ String
Optional. The default values will pre-populate the parameter with the given
value from the proto. If default_value is left empty, the parameter will be
populated with a default of the relevant type, e.g. false for a boolean.
Corresponds to the JSON property defaultValue
3528 3529 3530 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3528 def default_value @default_value end |
#enum_options ⇒ Array<Google::Apis::DataflowV1b3::ParameterMetadataEnumOption>
Optional. The options shown when ENUM ParameterType is specified.
Corresponds to the JSON property enumOptions
3533 3534 3535 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3533 def @enum_options end |
#group_name ⇒ String
Optional. Specifies a group name for this parameter to be rendered under.
Group header text will be rendered exactly as specified in this field. Only
considered when parent_name is NOT provided.
Corresponds to the JSON property groupName
3540 3541 3542 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3540 def group_name @group_name end |
#help_text ⇒ String
Required. The help text to display for the parameter.
Corresponds to the JSON property helpText
3545 3546 3547 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3545 def help_text @help_text end |
#is_optional ⇒ Boolean Also known as: is_optional?
Optional. Whether the parameter is optional. Defaults to false.
Corresponds to the JSON property isOptional
3550 3551 3552 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3550 def is_optional @is_optional end |
#label ⇒ String
Required. The label to display for the parameter.
Corresponds to the JSON property label
3556 3557 3558 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3556 def label @label end |
#name ⇒ String
Required. The name of the parameter.
Corresponds to the JSON property name
3561 3562 3563 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3561 def name @name end |
#param_type ⇒ String
Optional. The type of the parameter. Used for selecting input picker.
Corresponds to the JSON property paramType
3566 3567 3568 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3566 def param_type @param_type end |
#parent_name ⇒ String
Optional. Specifies the name of the parent parameter. Used in conjunction with
'parent_trigger_values' to make this parameter conditional (will only be
rendered conditionally). Should be mappable to a ParameterMetadata.name field.
Corresponds to the JSON property parentName
3573 3574 3575 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3573 def parent_name @parent_name end |
#parent_trigger_values ⇒ Array<String>
Optional. The value(s) of the 'parent_name' parameter which will trigger this
parameter to be shown. If left empty, ANY non-empty value in parent_name will
trigger this parameter to be shown. Only considered when this parameter is
conditional (when 'parent_name' has been provided).
Corresponds to the JSON property parentTriggerValues
3581 3582 3583 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3581 def parent_trigger_values @parent_trigger_values end |
#regexes ⇒ Array<String>
Optional. Regexes that the parameter must match.
Corresponds to the JSON property regexes
3586 3587 3588 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3586 def regexes @regexes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3593 def update!(**args) @custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata) @default_value = args[:default_value] if args.key?(:default_value) @enum_options = args[:enum_options] if args.key?(:enum_options) @group_name = args[:group_name] if args.key?(:group_name) @help_text = args[:help_text] if args.key?(:help_text) @is_optional = args[:is_optional] if args.key?(:is_optional) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @param_type = args[:param_type] if args.key?(:param_type) @parent_name = args[:parent_name] if args.key?(:parent_name) @parent_trigger_values = args[:parent_trigger_values] if args.key?(:parent_trigger_values) @regexes = args[:regexes] if args.key?(:regexes) end |