Class: Google::Apis::DataflowV1b3::ParameterMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParameterMetadata

Returns a new instance of ParameterMetadata.



3561
3562
3563
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3561

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_metadataHash<String,String>

Optional. Additional metadata for describing this parameter. Corresponds to the JSON property customMetadata

Returns:

  • (Hash<String,String>)


3501
3502
3503
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3501

def 
  @custom_metadata
end

#enum_optionsArray<Google::Apis::DataflowV1b3::ParameterMetadataEnumOption>

Optional. The options shown when ENUM ParameterType is specified. Corresponds to the JSON property enumOptions



3506
3507
3508
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3506

def enum_options
  @enum_options
end

#group_nameString

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

Returns:

  • (String)


3513
3514
3515
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3513

def group_name
  @group_name
end

#help_textString

Required. The help text to display for the parameter. Corresponds to the JSON property helpText

Returns:

  • (String)


3518
3519
3520
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3518

def help_text
  @help_text
end

#is_optionalBoolean Also known as: is_optional?

Optional. Whether the parameter is optional. Defaults to false. Corresponds to the JSON property isOptional

Returns:

  • (Boolean)


3523
3524
3525
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3523

def is_optional
  @is_optional
end

#labelString

Required. The label to display for the parameter. Corresponds to the JSON property label

Returns:

  • (String)


3529
3530
3531
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3529

def label
  @label
end

#nameString

Required. The name of the parameter. Corresponds to the JSON property name

Returns:

  • (String)


3534
3535
3536
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3534

def name
  @name
end

#param_typeString

Optional. The type of the parameter. Used for selecting input picker. Corresponds to the JSON property paramType

Returns:

  • (String)


3539
3540
3541
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3539

def param_type
  @param_type
end

#parent_nameString

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

Returns:

  • (String)


3546
3547
3548
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3546

def parent_name
  @parent_name
end

#parent_trigger_valuesArray<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

Returns:

  • (Array<String>)


3554
3555
3556
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3554

def parent_trigger_values
  @parent_trigger_values
end

#regexesArray<String>

Optional. Regexes that the parameter must match. Corresponds to the JSON property regexes

Returns:

  • (Array<String>)


3559
3560
3561
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3559

def regexes
  @regexes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3566

def update!(**args)
  @custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata)
  @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