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
Display name of the option.
-
#id ⇒ String
Id of the option.
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.
1203 1204 1205 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1203 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name of the option.
Corresponds to the JSON property displayName
1196 1197 1198 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1196 def display_name @display_name end |
#id ⇒ String
Id of the option.
Corresponds to the JSON property id
1201 1202 1203 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1201 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1208 1209 1210 1211 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1208 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @id = args[:id] if args.key?(:id) end |