Class: Google::Apis::DataflowV1b3::ParameterMetadataEnumOption

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

ParameterMetadataEnumOption specifies the option shown in the enum form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParameterMetadataEnumOption

Returns a new instance of ParameterMetadataEnumOption.



4093
4094
4095
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4093

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

Instance Attribute Details

#descriptionString

Optional. The description to display for the enum option. Corresponds to the JSON property description

Returns:

  • (String)


4081
4082
4083
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4081

def description
  @description
end

#labelString

Optional. The label to display for the enum option. Corresponds to the JSON property label

Returns:

  • (String)


4086
4087
4088
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4086

def label
  @label
end

#valueString

Required. The value of the enum option. Corresponds to the JSON property value

Returns:

  • (String)


4091
4092
4093
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4091

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4098
4099
4100
4101
4102
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4098

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @label = args[:label] if args.key?(:label)
  @value = args[:value] if args.key?(:value)
end