Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1EnumValue

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

Instance Method Summary collapse

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

#valueString

String value of the enum field. This must match defined set of enums in document schema using EnumTypeOptions. Corresponds to the JSON property value

Returns:

  • (String)


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