Module: IntersightClient::IamCertificateResponse
- Defined in:
- lib/intersight_client/models/iam_certificate_response.rb
Overview
The response body of a HTTP GET request for the ‘iam.Certificate’ 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 ‘iam.Certificate’ resources.
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
48 49 50 51 52 53 54 55 56 |
# File 'lib/intersight_client/models/iam_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_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
36 37 38 39 40 41 42 43 |
# File 'lib/intersight_client/models/iam_certificate_response.rb', line 36 def openapi_discriminator_mapping { :'iam.Certificate.List' => :'IamCertificateList', :'mo.AggregateTransform' => :'MoAggregateTransform', :'mo.DocumentCount' => :'MoDocumentCount', :'mo.TagSummary' => :'MoTagSummary' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
31 32 33 |
# File 'lib/intersight_client/models/iam_certificate_response.rb', line 31 def openapi_discriminator_name :'ObjectType' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
21 22 23 24 25 26 27 28 |
# File 'lib/intersight_client/models/iam_certificate_response.rb', line 21 def openapi_one_of [ :'IamCertificateList', :'MoAggregateTransform', :'MoDocumentCount', :'MoTagSummary' ] end |