Module: LinodeOpenapiClient::GetTaggedObjects200ResponseDataInnerData

Defined in:
lib/linode_openapi_client/models/get_tagged_objects200_response_data_inner_data.rb

Class Method Summary collapse

Class Method Details

.build(data) ⇒ Object

Builds the object

Parameters:

  • Data (Mixed)

    to be matched against the list of oneOf items

Returns:

  • (Object)

    Returns the model or the data itself



37
38
39
40
41
# File 'lib/linode_openapi_client/models/get_tagged_objects200_response_data_inner_data.rb', line 37

def build(data)
  discriminator_value = data[openapi_discriminator_name]
  return nil if discriminator_value.nil?
  LinodeOpenapiClient.const_get(discriminator_value).build_from_hash(data)
end

.openapi_discriminator_nameObject

Discriminator’s property name (OpenAPI v3)



30
31
32
# File 'lib/linode_openapi_client/models/get_tagged_objects200_response_data_inner_data.rb', line 30

def openapi_discriminator_name
  :'type'
end

.openapi_one_ofObject

List of class defined in oneOf (OpenAPI v3)



20
21
22
23
24
25
26
27
# File 'lib/linode_openapi_client/models/get_tagged_objects200_response_data_inner_data.rb', line 20

def openapi_one_of
  [
    :'Domain',
    :'Linode3',
    :'NodeBalancer',
    :'Volume2'
  ]
end