Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ConfigValueOption

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

Instance Method Summary collapse

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

#descriptionString

Optional. Description of the option. Corresponds to the JSON property description

Returns:

  • (String)


1197
1198
1199
# File 'lib/google/apis/apihub_v1/classes.rb', line 1197

def description
  @description
end

#display_nameString

Required. Display name of the option. Corresponds to the JSON property displayName

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/apihub_v1/classes.rb', line 1202

def display_name
  @display_name
end

#idString

Required. Id of the option. Corresponds to the JSON property id

Returns:

  • (String)


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