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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discovery_v1/classes.rb,
lib/google/apis/discovery_v1/representations.rb,
lib/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.



388
389
390
# File 'lib/google/apis/discovery_v1/classes.rb', line 388

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

Instance Attribute Details

#_refString

Corresponds to the JSON property $ref

Returns:

  • (String)


381
382
383
# File 'lib/google/apis/discovery_v1/classes.rb', line 381

def _ref
  @_ref
end

#type_valueString

Corresponds to the JSON property type_value

Returns:

  • (String)


386
387
388
# File 'lib/google/apis/discovery_v1/classes.rb', line 386

def type_value
  @type_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



393
394
395
396
# File 'lib/google/apis/discovery_v1/classes.rb', line 393

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