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.



1256
1257
1258
# File 'lib/google/apis/apihub_v1/classes.rb', line 1256

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


1244
1245
1246
# File 'lib/google/apis/apihub_v1/classes.rb', line 1244

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


1249
1250
1251
# File 'lib/google/apis/apihub_v1/classes.rb', line 1249

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


1254
1255
1256
# File 'lib/google/apis/apihub_v1/classes.rb', line 1254

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1261
1262
1263
1264
1265
# File 'lib/google/apis/apihub_v1/classes.rb', line 1261

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