Module: IntersightClient::ApplianceDeviceCertificateResponse

Defined in:
lib/intersight_client/models/appliance_device_certificate_response.rb

Overview

The response body of a HTTP GET request for the ‘appliance.DeviceCertificate’ resource. The value may be one of the following types. 1. When ‘tag’ is specified in the URL query, the response schema is a summary of the tag usage. 1. When ‘$apply’ is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When ‘$count’ is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of ‘appliance.DeviceCertificate’ resources.

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



48
49
50
51
52
53
54
55
56
# File 'lib/intersight_client/models/appliance_device_certificate_response.rb', line 48

def build(data)
  discriminator_value = data[openapi_discriminator_name]
  return nil unless discriminator_value

  klass = openapi_discriminator_mapping[discriminator_value.to_sym]
  return nil unless klass

  IntersightClient.const_get(klass).build_from_hash(data)
end

.openapi_discriminator_mappingObject

Discriminator’s mapping (OpenAPI v3)



36
37
38
39
40
41
42
43
# File 'lib/intersight_client/models/appliance_device_certificate_response.rb', line 36

def openapi_discriminator_mapping
  {
    :'appliance.DeviceCertificate.List' => :'ApplianceDeviceCertificateList',
    :'mo.AggregateTransform' => :'MoAggregateTransform',
    :'mo.DocumentCount' => :'MoDocumentCount',
    :'mo.TagSummary' => :'MoTagSummary'
  }
end

.openapi_discriminator_nameObject

Discriminator’s property name (OpenAPI v3)



31
32
33
# File 'lib/intersight_client/models/appliance_device_certificate_response.rb', line 31

def openapi_discriminator_name
  :'ObjectType'
end

.openapi_one_ofObject

List of class defined in oneOf (OpenAPI v3)



21
22
23
24
25
26
27
28
# File 'lib/intersight_client/models/appliance_device_certificate_response.rb', line 21

def openapi_one_of
  [
    :'ApplianceDeviceCertificateList',
    :'MoAggregateTransform',
    :'MoDocumentCount',
    :'MoTagSummary'
  ]
end