Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueEnumValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/resourcesettings_v1/classes.rb,
lib/google/apis/resourcesettings_v1/representations.rb,
lib/google/apis/resourcesettings_v1/representations.rb

Overview

A enum value that can hold any enum type setting values. Each enum type is represented by a number, this representation is stored in the definitions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudResourcesettingsV1ValueEnumValue

Returns a new instance of GoogleCloudResourcesettingsV1ValueEnumValue.



207
208
209
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 207

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

Instance Attribute Details

#valueString

The value of this enum Corresponds to the JSON property value

Returns:

  • (String)


205
206
207
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 205

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



212
213
214
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 212

def update!(**args)
  @value = args[:value] if args.key?(:value)
end