Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1EnumValue
- Inherits:
-
Object
- Object
- Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1EnumValue
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_v1/representations.rb
Overview
Represents the string value of the enum field.
Instance Attribute Summary collapse
-
#value ⇒ String
String value of the enum field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1EnumValue
constructor
A new instance of GoogleCloudContentwarehouseV1EnumValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1EnumValue
Returns a new instance of GoogleCloudContentwarehouseV1EnumValue.
1586 1587 1588 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 1586 def initialize(**args) update!(**args) end |
Instance Attribute Details
#value ⇒ String
String value of the enum field. This must match defined set of enums in
document schema using EnumTypeOptions.
Corresponds to the JSON property value
1584 1585 1586 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 1584 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1591 1592 1593 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 1591 def update!(**args) @value = args[:value] if args.key?(:value) end |