Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ConfigValueOption
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1ConfigValueOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb
Overview
ConfigValueOption represents an option for a config variable of type enum or multi select.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Required.
-
#id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1ConfigValueOption
constructor
A new instance of GoogleCloudApihubV1ConfigValueOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1ConfigValueOption
Returns a new instance of GoogleCloudApihubV1ConfigValueOption.
1209 1210 1211 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. Description of the option.
Corresponds to the JSON property description
1197 1198 1199 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1197 def description @description end |
#display_name ⇒ String
Required. Display name of the option.
Corresponds to the JSON property displayName
1202 1203 1204 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1202 def display_name @display_name end |
#id ⇒ String
Required. Id of the option.
Corresponds to the JSON property id
1207 1208 1209 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1207 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1214 1215 1216 1217 1218 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1214 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @id = args[:id] if args.key?(:id) end |