Class: Google::Apis::ConnectorsV1::EnumOption
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::EnumOption
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
EnumOption definition
Instance Attribute Summary collapse
-
#display_name ⇒ String
Optional.
-
#id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnumOption
constructor
A new instance of EnumOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnumOption
Returns a new instance of EnumOption.
2249 2250 2251 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Optional. Display name of the option.
Corresponds to the JSON property displayName
2242 2243 2244 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2242 def display_name @display_name end |
#id ⇒ String
Optional. Id of the option.
Corresponds to the JSON property id
2247 2248 2249 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2247 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2254 2255 2256 2257 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2254 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @id = args[:id] if args.key?(:id) end |