Class: Sink::Resources::Streaming
- Inherits:
-
Object
- Object
- Sink::Resources::Streaming
- Defined in:
- lib/sink/resources/streaming.rb
Instance Method Summary collapse
- #basic(params = {}, opts = {}) ⇒ Sink::Models::StreamingBasicResponse
-
#initialize(client:) ⇒ Streaming
constructor
A new instance of Streaming.
- #nested_params(params = {}, opts = {}) ⇒ Sink::Models::StreamingNestedParamsResponse
- #no_discriminator(params = {}, opts = {}) ⇒ Sink::Models::StreamingNoDiscriminatorResponse
- #query_param_discriminator(params = {}, opts = {}) ⇒ Sink::Models::StreamingQueryParamDiscriminatorResponse
- #with_unrelated_default_param(params = {}, opts = {}) ⇒ Sink::Models::StreamingWithUnrelatedDefaultParamResponse
Constructor Details
#initialize(client:) ⇒ Streaming
Returns a new instance of Streaming.
7 8 9 |
# File 'lib/sink/resources/streaming.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#basic(params = {}, opts = {}) ⇒ Sink::Models::StreamingBasicResponse
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/sink/resources/streaming.rb', line 19 def basic(params = {}, opts = {}) req = { method: :post, path: "/streaming/basic", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::StreamingBasicResponse } @client.request(req, opts) end |
#nested_params(params = {}, opts = {}) ⇒ Sink::Models::StreamingNestedParamsResponse
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/sink/resources/streaming.rb', line 39 def nested_params(params = {}, opts = {}) req = { method: :post, path: "/streaming/nested_params", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::StreamingNestedParamsResponse } @client.request(req, opts) end |
#no_discriminator(params = {}, opts = {}) ⇒ Sink::Models::StreamingNoDiscriminatorResponse
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/sink/resources/streaming.rb', line 57 def no_discriminator(params = {}, opts = {}) req = { method: :post, path: "/streaming/no_discriminator", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::StreamingNoDiscriminatorResponse } @client.request(req, opts) end |
#query_param_discriminator(params = {}, opts = {}) ⇒ Sink::Models::StreamingQueryParamDiscriminatorResponse
75 76 77 78 79 80 81 82 83 |
# File 'lib/sink/resources/streaming.rb', line 75 def query_param_discriminator(params = {}, opts = {}) req = { method: :get, path: "/streaming/query_param_discriminator", query: params, model: Sink::Models::StreamingQueryParamDiscriminatorResponse } @client.request(req, opts) end |
#with_unrelated_default_param(params = {}, opts = {}) ⇒ Sink::Models::StreamingWithUnrelatedDefaultParamResponse
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/sink/resources/streaming.rb', line 94 def (params = {}, opts = {}) req = { method: :post, path: "/streaming/with_unrelated_default_param", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::StreamingWithUnrelatedDefaultParamResponse } @client.request(req, opts) end |