Returns the list of classes defined in oneOf.
require 'fastly'
Fastly::LogAggregationsValueField.fastly_one_of
# =>
# [
# :'Array<Float>',
# :'Array<Integer>',
# :'Array<String>',
# :'Boolean',
# :'Float',
# :'Integer',
# :'String'
# ]Find the appropriate object from the fastly_one_of list and casts the data into it.
require 'fastly'
Fastly::LogAggregationsValueField.build(data)
# => #<Array<Float>:0x00007fdd4aab02a0>
Fastly::LogAggregationsValueField.build(data_that_doesnt_match)
# => nil| Name | Type | Description |
|---|---|---|
| data | Mixed | data to be matched against the list of oneOf items |
Array<Float>Array<Integer>Array<String>BooleanFloatIntegerStringnil(if no type matches)