Class: Google::Apis::CoordinateV1::EnumItemDef

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb

Overview

Enum Item definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EnumItemDef

Returns a new instance of EnumItemDef



186
187
188
# File 'generated/google/apis/coordinate_v1/classes.rb', line 186

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

Instance Attribute Details

#activeBoolean Also known as: active?

Whether the enum item is active. Jobs may contain inactive enum values; however, setting an enum to an inactive value when creating or updating a job will result in a 500 error. Corresponds to the JSON property active

Returns:

  • (Boolean)


173
174
175
# File 'generated/google/apis/coordinate_v1/classes.rb', line 173

def active
  @active
end

#kindString

Identifies this object as an enum item definition. Corresponds to the JSON property kind

Returns:

  • (String)


179
180
181
# File 'generated/google/apis/coordinate_v1/classes.rb', line 179

def kind
  @kind
end

#valueString

Custom field value. Corresponds to the JSON property value

Returns:

  • (String)


184
185
186
# File 'generated/google/apis/coordinate_v1/classes.rb', line 184

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
195
# File 'generated/google/apis/coordinate_v1/classes.rb', line 191

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