Class: Google::Apis::DiscoveryV1::JsonSchema::Variant::Map

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Map

Returns a new instance of Map.



374
375
376
# File 'generated/google/apis/discovery_v1/classes.rb', line 374

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

Instance Attribute Details

#_refString

Corresponds to the JSON property $ref

Returns:

  • (String)


367
368
369
# File 'generated/google/apis/discovery_v1/classes.rb', line 367

def _ref
  @_ref
end

#type_valueString

Corresponds to the JSON property type_value

Returns:

  • (String)


372
373
374
# File 'generated/google/apis/discovery_v1/classes.rb', line 372

def type_value
  @type_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



379
380
381
382
# File 'generated/google/apis/discovery_v1/classes.rb', line 379

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