Class: Sink::Resources::Types::Objects

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/types/objects.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Objects

Returns a new instance of Objects.

Parameters:


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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:


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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:


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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:


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.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:


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

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:


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

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:

  • (Object)

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