Returns the list of classes defined in oneOf.
require 'zernio-sdk'
Zernio::CreateCtwaAd201Response.openapi_one_of
# =>
# [
# :'CtwaMultiResponse',
# :'CtwaSingleResponse'
# ]Returns the discriminator's property name.
require 'zernio-sdk'
Zernio::CreateCtwaAd201Response.openapi_discriminator_name
# => :'ad_type'Returns the discriminator's mapping.
require 'zernio-sdk'
Zernio::CreateCtwaAd201Response.openapi_discriminator_mapping
# =>
# {
# :'multi' => :'CtwaMultiResponse',
# :'single' => :'CtwaSingleResponse'
# }Find the appropriate object from the openapi_one_of list and casts the data into it.
require 'zernio-sdk'
Zernio::CreateCtwaAd201Response.build(data)
# => #<CtwaMultiResponse:0x00007fdd4aab02a0>
Zernio::CreateCtwaAd201Response.build(data_that_doesnt_match)
# => nil| Name | Type | Description |
|---|---|---|
| data | Mixed | data to be matched against the list of oneOf items |
CtwaMultiResponseCtwaSingleResponsenil(if no type matches)