Class: Sink::Resources::Types::Objects
- Inherits:
-
Object
- Object
- Sink::Resources::Types::Objects
- Defined in:
- lib/sink/resources/types/objects.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Objects
constructor
A new instance of Objects.
-
#mixed_known_and_unknown(opts = {}) ⇒ Sink::Models::ObjectMixedKnownAndUnknownResponse
Endpoint with a response schema object that contains a mix of known & unknown properties with the same value types.
-
#multiple_array_properties_same_ref(opts = {}) ⇒ Sink::Models::ObjectMultipleArrayPropertiesSameRefResponse
Endpoint with a response schema object that contains multiple properties that reference the same $ref in array items that is not a model in the config.
-
#multiple_properties_same_model(opts = {}) ⇒ Sink::Models::ObjectMultiplePropertiesSameModelResponse
Endpoint with a response schema object that contains multiple properties that reference the same model.
-
#multiple_properties_same_ref(opts = {}) ⇒ Sink::Models::ObjectMultiplePropertiesSameRefResponse
Endpoint with a response schema object that contains multiple properties that reference the same $ref that is not a model in the config.
-
#two_dimensional_array_primitive_property(opts = {}) ⇒ Sink::Models::ObjectTwoDimensionalArrayPrimitivePropertyResponse
Endpoint with a response schema object that contains properties that are primitive 2d arrays.
-
#unknown_object(opts = {}) ⇒ Object
Endpoint with a response schema object that does not define any properties.
Constructor Details
#initialize(client:) ⇒ Objects
Returns a new instance of Objects.
8 9 10 |
# File 'lib/sink/resources/types/objects.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#mixed_known_and_unknown(opts = {}) ⇒ Sink::Models::ObjectMixedKnownAndUnknownResponse
Endpoint with a response schema object that contains a mix of known & unknown
properties with the same value types.
18 19 20 21 22 23 24 25 |
# File 'lib/sink/resources/types/objects.rb', line 18 def mixed_known_and_unknown(opts = {}) req = { method: :get, path: "/types/object/mixed_known_and_unknown", model: Sink::Models::ObjectMixedKnownAndUnknownResponse } @client.request(req, opts) end |
#multiple_array_properties_same_ref(opts = {}) ⇒ Sink::Models::ObjectMultipleArrayPropertiesSameRefResponse
Endpoint with a response schema object that contains multiple properties that
reference the same $ref in array items that is _not_ a model in the config.
Three child types should be generated, one for each property.
34 35 36 37 38 39 40 41 |
# File 'lib/sink/resources/types/objects.rb', line 34 def multiple_array_properties_same_ref(opts = {}) req = { method: :get, path: "/types/object/multiple_array_properties_same_ref", model: Sink::Models::ObjectMultipleArrayPropertiesSameRefResponse } @client.request(req, opts) end |
#multiple_properties_same_model(opts = {}) ⇒ Sink::Models::ObjectMultiplePropertiesSameModelResponse
Endpoint with a response schema object that contains multiple properties that
reference the same model.
49 50 51 52 53 54 55 56 |
# File 'lib/sink/resources/types/objects.rb', line 49 def multiple_properties_same_model(opts = {}) req = { method: :get, path: "/types/object/multiple_properties_same_model", model: Sink::Models::ObjectMultiplePropertiesSameModelResponse } @client.request(req, opts) end |
#multiple_properties_same_ref(opts = {}) ⇒ Sink::Models::ObjectMultiplePropertiesSameRefResponse
Endpoint with a response schema object that contains multiple properties that
reference the same $ref that is _not_ a model in the config. Three child types
should be generated. One for each property.
65 66 67 68 69 70 71 72 |
# File 'lib/sink/resources/types/objects.rb', line 65 def multiple_properties_same_ref(opts = {}) req = { method: :get, path: "/types/object/multiple_properties_same_ref", model: Sink::Models::ObjectMultiplePropertiesSameRefResponse } @client.request(req, opts) end |
#two_dimensional_array_primitive_property(opts = {}) ⇒ Sink::Models::ObjectTwoDimensionalArrayPrimitivePropertyResponse
Endpoint with a response schema object that contains properties that are
primitive 2d arrays
80 81 82 83 84 85 86 87 |
# File 'lib/sink/resources/types/objects.rb', line 80 def two_dimensional_array_primitive_property(opts = {}) req = { method: :get, path: "/types/object/2d_array_primitive_properties", model: Sink::Models::ObjectTwoDimensionalArrayPrimitivePropertyResponse } @client.request(req, opts) end |
#unknown_object(opts = {}) ⇒ Object
Endpoint with a response schema object that does not define any properties
94 95 96 97 98 99 100 101 |
# File 'lib/sink/resources/types/objects.rb', line 94 def unknown_object(opts = {}) req = { method: :get, path: "/types/object/unknown_object", model: Sink::Unknown } @client.request(req, opts) end |