Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 1.58 KB

File metadata and controls

84 lines (57 loc) · 1.58 KB

IntersightClient::AaaAuditRecordResponse

Class instance methods

openapi_one_of

Returns the list of classes defined in oneOf.

Example

require 'intersight_client'

IntersightClient::AaaAuditRecordResponse.openapi_one_of
# =>
# [
#   :'AaaAuditRecordList',
#   :'MoAggregateTransform',
#   :'MoDocumentCount',
#   :'MoTagSummary'
# ]

openapi_discriminator_name

Returns the discriminator's property name.

Example

require 'intersight_client'

IntersightClient::AaaAuditRecordResponse.openapi_discriminator_name
# => :'object_type'

openapi_discriminator_name

Returns the discriminator's mapping.

Example

require 'intersight_client'

IntersightClient::AaaAuditRecordResponse.openapi_discriminator_mapping
# =>
# {
#   :'aaa.AuditRecord.List' => :'AaaAuditRecordList',
#   :'mo.AggregateTransform' => :'MoAggregateTransform',
#   :'mo.DocumentCount' => :'MoDocumentCount',
#   :'mo.TagSummary' => :'MoTagSummary'
# }

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'intersight_client'

IntersightClient::AaaAuditRecordResponse.build(data)
# => #<AaaAuditRecordList:0x00007fdd4aab02a0>

IntersightClient::AaaAuditRecordResponse.build(data_that_doesnt_match)
# => nil

Parameters

Name Type Description
data Mixed data to be matched against the list of oneOf items

Return type

  • AaaAuditRecordList
  • MoAggregateTransform
  • MoDocumentCount
  • MoTagSummary
  • nil (if no type matches)