Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 1.34 KB

File metadata and controls

80 lines (53 loc) · 1.34 KB

IntersightClient::IamSessionRelationship

Class instance methods

openapi_one_of

Returns the list of classes defined in oneOf.

Example

require 'intersight_client'

IntersightClient::IamSessionRelationship.openapi_one_of
# =>
# [
#   :'IamSession',
#   :'MoMoRef',
#   :'Null'
# ]

openapi_discriminator_name

Returns the discriminator's property name.

Example

require 'intersight_client'

IntersightClient::IamSessionRelationship.openapi_discriminator_name
# => :'class_id'

openapi_discriminator_name

Returns the discriminator's mapping.

Example

require 'intersight_client'

IntersightClient::IamSessionRelationship.openapi_discriminator_mapping
# =>
# {
#   :'iam.Session' => :'IamSession',
#   :'mo.MoRef' => :'MoMoRef'
# }

### build

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

#### Example

```ruby
require 'intersight_client'

IntersightClient::IamSessionRelationship.build(data)
# => #<IamSession:0x00007fdd4aab02a0>

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

Parameters

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

Return type

  • IamSession
  • MoMoRef
  • Null
  • nil (if no type matches)