hatchet-sdk 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +0 -5
- data/lib/hatchet/clients/rest/README.md +0 -9
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant.rb +14 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +0 -5
- data/lib/hatchet/contracts/dispatcher/dispatcher_pb.rb +1 -1
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet/worker/durable_event_listener.rb +71 -20
- data/sig/hatchet/worker/durable_event_listener.rbs +3 -0
- metadata +2 -7
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/operator_api.rb +0 -405
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_http_operator_request.rb +0 -346
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_http_operator.rb +0 -372
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_http_operator_list.rb +0 -231
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_http_operator_request.rb +0 -252
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Hatchet API
|
|
3
|
-
|
|
4
|
-
#The Hatchet API
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.14.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
|
-
module HatchetSdkRest
|
|
16
|
-
class OperatorApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Create an HTTP operator
|
|
23
|
-
# Create a new HTTP operator
|
|
24
|
-
# @param tenant [String] The tenant id
|
|
25
|
-
# @param v1_create_http_operator_request [V1CreateHTTPOperatorRequest] The input to the HTTP operator creation
|
|
26
|
-
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [V1HTTPOperator]
|
|
28
|
-
def v1_http_operator_create(tenant, v1_create_http_operator_request, opts = {})
|
|
29
|
-
data, _status_code, _headers = v1_http_operator_create_with_http_info(tenant, v1_create_http_operator_request, opts)
|
|
30
|
-
data
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Create an HTTP operator
|
|
34
|
-
# Create a new HTTP operator
|
|
35
|
-
# @param tenant [String] The tenant id
|
|
36
|
-
# @param v1_create_http_operator_request [V1CreateHTTPOperatorRequest] The input to the HTTP operator creation
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(V1HTTPOperator, Integer, Hash)>] V1HTTPOperator data, response status code and response headers
|
|
39
|
-
def v1_http_operator_create_with_http_info(tenant, v1_create_http_operator_request, opts = {})
|
|
40
|
-
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: OperatorApi.v1_http_operator_create ...'
|
|
42
|
-
end
|
|
43
|
-
# verify the required parameter 'tenant' is set
|
|
44
|
-
if @api_client.config.client_side_validation && tenant.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'tenant' when calling OperatorApi.v1_http_operator_create"
|
|
46
|
-
end
|
|
47
|
-
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
48
|
-
fail ArgumentError, 'invalid value for "tenant" when calling OperatorApi.v1_http_operator_create, the character length must be smaller than or equal to 36.'
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
52
|
-
fail ArgumentError, 'invalid value for "tenant" when calling OperatorApi.v1_http_operator_create, the character length must be greater than or equal to 36.'
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# verify the required parameter 'v1_create_http_operator_request' is set
|
|
56
|
-
if @api_client.config.client_side_validation && v1_create_http_operator_request.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'v1_create_http_operator_request' when calling OperatorApi.v1_http_operator_create"
|
|
58
|
-
end
|
|
59
|
-
# resource path
|
|
60
|
-
local_var_path = '/api/v1/stable/tenants/{tenant}/operators/http'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
61
|
-
|
|
62
|
-
# query parameters
|
|
63
|
-
query_params = opts[:query_params] || {}
|
|
64
|
-
|
|
65
|
-
# header parameters
|
|
66
|
-
header_params = opts[:header_params] || {}
|
|
67
|
-
# HTTP header 'Accept' (if needed)
|
|
68
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
69
|
-
# HTTP header 'Content-Type'
|
|
70
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
71
|
-
if !content_type.nil?
|
|
72
|
-
header_params['Content-Type'] = content_type
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# form parameters
|
|
76
|
-
form_params = opts[:form_params] || {}
|
|
77
|
-
|
|
78
|
-
# http body (model)
|
|
79
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(v1_create_http_operator_request)
|
|
80
|
-
|
|
81
|
-
# return_type
|
|
82
|
-
return_type = opts[:debug_return_type] || 'V1HTTPOperator'
|
|
83
|
-
|
|
84
|
-
# auth_names
|
|
85
|
-
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
86
|
-
|
|
87
|
-
new_options = opts.merge(
|
|
88
|
-
:operation => :"OperatorApi.v1_http_operator_create",
|
|
89
|
-
:header_params => header_params,
|
|
90
|
-
:query_params => query_params,
|
|
91
|
-
:form_params => form_params,
|
|
92
|
-
:body => post_body,
|
|
93
|
-
:auth_names => auth_names,
|
|
94
|
-
:return_type => return_type
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
98
|
-
if @api_client.config.debugging
|
|
99
|
-
@api_client.config.logger.debug "API called: OperatorApi#v1_http_operator_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
100
|
-
end
|
|
101
|
-
return data, status_code, headers
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# Delete an HTTP operator
|
|
105
|
-
# Delete an HTTP operator
|
|
106
|
-
# @param v1_http_operator [String] The id of the HTTP operator to delete
|
|
107
|
-
# @param [Hash] opts the optional parameters
|
|
108
|
-
# @return [V1HTTPOperator]
|
|
109
|
-
def v1_http_operator_delete(v1_http_operator, opts = {})
|
|
110
|
-
data, _status_code, _headers = v1_http_operator_delete_with_http_info(v1_http_operator, opts)
|
|
111
|
-
data
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# Delete an HTTP operator
|
|
115
|
-
# Delete an HTTP operator
|
|
116
|
-
# @param v1_http_operator [String] The id of the HTTP operator to delete
|
|
117
|
-
# @param [Hash] opts the optional parameters
|
|
118
|
-
# @return [Array<(V1HTTPOperator, Integer, Hash)>] V1HTTPOperator data, response status code and response headers
|
|
119
|
-
def v1_http_operator_delete_with_http_info(v1_http_operator, opts = {})
|
|
120
|
-
if @api_client.config.debugging
|
|
121
|
-
@api_client.config.logger.debug 'Calling API: OperatorApi.v1_http_operator_delete ...'
|
|
122
|
-
end
|
|
123
|
-
# verify the required parameter 'v1_http_operator' is set
|
|
124
|
-
if @api_client.config.client_side_validation && v1_http_operator.nil?
|
|
125
|
-
fail ArgumentError, "Missing the required parameter 'v1_http_operator' when calling OperatorApi.v1_http_operator_delete"
|
|
126
|
-
end
|
|
127
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length > 36
|
|
128
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_delete, the character length must be smaller than or equal to 36.'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length < 36
|
|
132
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_delete, the character length must be greater than or equal to 36.'
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# resource path
|
|
136
|
-
local_var_path = '/api/v1/stable/operators/http/{v1-http-operator}'.sub('{' + 'v1-http-operator' + '}', CGI.escape(v1_http_operator.to_s))
|
|
137
|
-
|
|
138
|
-
# query parameters
|
|
139
|
-
query_params = opts[:query_params] || {}
|
|
140
|
-
|
|
141
|
-
# header parameters
|
|
142
|
-
header_params = opts[:header_params] || {}
|
|
143
|
-
# HTTP header 'Accept' (if needed)
|
|
144
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
145
|
-
|
|
146
|
-
# form parameters
|
|
147
|
-
form_params = opts[:form_params] || {}
|
|
148
|
-
|
|
149
|
-
# http body (model)
|
|
150
|
-
post_body = opts[:debug_body]
|
|
151
|
-
|
|
152
|
-
# return_type
|
|
153
|
-
return_type = opts[:debug_return_type] || 'V1HTTPOperator'
|
|
154
|
-
|
|
155
|
-
# auth_names
|
|
156
|
-
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
157
|
-
|
|
158
|
-
new_options = opts.merge(
|
|
159
|
-
:operation => :"OperatorApi.v1_http_operator_delete",
|
|
160
|
-
:header_params => header_params,
|
|
161
|
-
:query_params => query_params,
|
|
162
|
-
:form_params => form_params,
|
|
163
|
-
:body => post_body,
|
|
164
|
-
:auth_names => auth_names,
|
|
165
|
-
:return_type => return_type
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
169
|
-
if @api_client.config.debugging
|
|
170
|
-
@api_client.config.logger.debug "API called: OperatorApi#v1_http_operator_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
171
|
-
end
|
|
172
|
-
return data, status_code, headers
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# Get an HTTP operator
|
|
176
|
-
# Get an HTTP operator by its id
|
|
177
|
-
# @param v1_http_operator [String] The HTTP operator id
|
|
178
|
-
# @param [Hash] opts the optional parameters
|
|
179
|
-
# @return [V1HTTPOperator]
|
|
180
|
-
def v1_http_operator_get(v1_http_operator, opts = {})
|
|
181
|
-
data, _status_code, _headers = v1_http_operator_get_with_http_info(v1_http_operator, opts)
|
|
182
|
-
data
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
# Get an HTTP operator
|
|
186
|
-
# Get an HTTP operator by its id
|
|
187
|
-
# @param v1_http_operator [String] The HTTP operator id
|
|
188
|
-
# @param [Hash] opts the optional parameters
|
|
189
|
-
# @return [Array<(V1HTTPOperator, Integer, Hash)>] V1HTTPOperator data, response status code and response headers
|
|
190
|
-
def v1_http_operator_get_with_http_info(v1_http_operator, opts = {})
|
|
191
|
-
if @api_client.config.debugging
|
|
192
|
-
@api_client.config.logger.debug 'Calling API: OperatorApi.v1_http_operator_get ...'
|
|
193
|
-
end
|
|
194
|
-
# verify the required parameter 'v1_http_operator' is set
|
|
195
|
-
if @api_client.config.client_side_validation && v1_http_operator.nil?
|
|
196
|
-
fail ArgumentError, "Missing the required parameter 'v1_http_operator' when calling OperatorApi.v1_http_operator_get"
|
|
197
|
-
end
|
|
198
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length > 36
|
|
199
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_get, the character length must be smaller than or equal to 36.'
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length < 36
|
|
203
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_get, the character length must be greater than or equal to 36.'
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# resource path
|
|
207
|
-
local_var_path = '/api/v1/stable/operators/http/{v1-http-operator}'.sub('{' + 'v1-http-operator' + '}', CGI.escape(v1_http_operator.to_s))
|
|
208
|
-
|
|
209
|
-
# query parameters
|
|
210
|
-
query_params = opts[:query_params] || {}
|
|
211
|
-
|
|
212
|
-
# header parameters
|
|
213
|
-
header_params = opts[:header_params] || {}
|
|
214
|
-
# HTTP header 'Accept' (if needed)
|
|
215
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
216
|
-
|
|
217
|
-
# form parameters
|
|
218
|
-
form_params = opts[:form_params] || {}
|
|
219
|
-
|
|
220
|
-
# http body (model)
|
|
221
|
-
post_body = opts[:debug_body]
|
|
222
|
-
|
|
223
|
-
# return_type
|
|
224
|
-
return_type = opts[:debug_return_type] || 'V1HTTPOperator'
|
|
225
|
-
|
|
226
|
-
# auth_names
|
|
227
|
-
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
228
|
-
|
|
229
|
-
new_options = opts.merge(
|
|
230
|
-
:operation => :"OperatorApi.v1_http_operator_get",
|
|
231
|
-
:header_params => header_params,
|
|
232
|
-
:query_params => query_params,
|
|
233
|
-
:form_params => form_params,
|
|
234
|
-
:body => post_body,
|
|
235
|
-
:auth_names => auth_names,
|
|
236
|
-
:return_type => return_type
|
|
237
|
-
)
|
|
238
|
-
|
|
239
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
240
|
-
if @api_client.config.debugging
|
|
241
|
-
@api_client.config.logger.debug "API called: OperatorApi#v1_http_operator_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
242
|
-
end
|
|
243
|
-
return data, status_code, headers
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# List HTTP operators
|
|
247
|
-
# Lists all HTTP operators for a tenant.
|
|
248
|
-
# @param tenant [String] The tenant id
|
|
249
|
-
# @param [Hash] opts the optional parameters
|
|
250
|
-
# @option opts [Integer] :offset The number to skip
|
|
251
|
-
# @option opts [Integer] :limit The number to limit by
|
|
252
|
-
# @return [V1HTTPOperatorList]
|
|
253
|
-
def v1_http_operator_list(tenant, opts = {})
|
|
254
|
-
data, _status_code, _headers = v1_http_operator_list_with_http_info(tenant, opts)
|
|
255
|
-
data
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
# List HTTP operators
|
|
259
|
-
# Lists all HTTP operators for a tenant.
|
|
260
|
-
# @param tenant [String] The tenant id
|
|
261
|
-
# @param [Hash] opts the optional parameters
|
|
262
|
-
# @option opts [Integer] :offset The number to skip
|
|
263
|
-
# @option opts [Integer] :limit The number to limit by
|
|
264
|
-
# @return [Array<(V1HTTPOperatorList, Integer, Hash)>] V1HTTPOperatorList data, response status code and response headers
|
|
265
|
-
def v1_http_operator_list_with_http_info(tenant, opts = {})
|
|
266
|
-
if @api_client.config.debugging
|
|
267
|
-
@api_client.config.logger.debug 'Calling API: OperatorApi.v1_http_operator_list ...'
|
|
268
|
-
end
|
|
269
|
-
# verify the required parameter 'tenant' is set
|
|
270
|
-
if @api_client.config.client_side_validation && tenant.nil?
|
|
271
|
-
fail ArgumentError, "Missing the required parameter 'tenant' when calling OperatorApi.v1_http_operator_list"
|
|
272
|
-
end
|
|
273
|
-
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
274
|
-
fail ArgumentError, 'invalid value for "tenant" when calling OperatorApi.v1_http_operator_list, the character length must be smaller than or equal to 36.'
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
278
|
-
fail ArgumentError, 'invalid value for "tenant" when calling OperatorApi.v1_http_operator_list, the character length must be greater than or equal to 36.'
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# resource path
|
|
282
|
-
local_var_path = '/api/v1/stable/tenants/{tenant}/operators/http'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
283
|
-
|
|
284
|
-
# query parameters
|
|
285
|
-
query_params = opts[:query_params] || {}
|
|
286
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
287
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
288
|
-
|
|
289
|
-
# header parameters
|
|
290
|
-
header_params = opts[:header_params] || {}
|
|
291
|
-
# HTTP header 'Accept' (if needed)
|
|
292
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
293
|
-
|
|
294
|
-
# form parameters
|
|
295
|
-
form_params = opts[:form_params] || {}
|
|
296
|
-
|
|
297
|
-
# http body (model)
|
|
298
|
-
post_body = opts[:debug_body]
|
|
299
|
-
|
|
300
|
-
# return_type
|
|
301
|
-
return_type = opts[:debug_return_type] || 'V1HTTPOperatorList'
|
|
302
|
-
|
|
303
|
-
# auth_names
|
|
304
|
-
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
305
|
-
|
|
306
|
-
new_options = opts.merge(
|
|
307
|
-
:operation => :"OperatorApi.v1_http_operator_list",
|
|
308
|
-
:header_params => header_params,
|
|
309
|
-
:query_params => query_params,
|
|
310
|
-
:form_params => form_params,
|
|
311
|
-
:body => post_body,
|
|
312
|
-
:auth_names => auth_names,
|
|
313
|
-
:return_type => return_type
|
|
314
|
-
)
|
|
315
|
-
|
|
316
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
317
|
-
if @api_client.config.debugging
|
|
318
|
-
@api_client.config.logger.debug "API called: OperatorApi#v1_http_operator_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
319
|
-
end
|
|
320
|
-
return data, status_code, headers
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
# Update an HTTP operator
|
|
324
|
-
# Update an HTTP operator
|
|
325
|
-
# @param v1_http_operator [String] The id of the HTTP operator to update
|
|
326
|
-
# @param v1_update_http_operator_request [V1UpdateHTTPOperatorRequest] The fields to update on the HTTP operator
|
|
327
|
-
# @param [Hash] opts the optional parameters
|
|
328
|
-
# @return [V1HTTPOperator]
|
|
329
|
-
def v1_http_operator_update(v1_http_operator, v1_update_http_operator_request, opts = {})
|
|
330
|
-
data, _status_code, _headers = v1_http_operator_update_with_http_info(v1_http_operator, v1_update_http_operator_request, opts)
|
|
331
|
-
data
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
# Update an HTTP operator
|
|
335
|
-
# Update an HTTP operator
|
|
336
|
-
# @param v1_http_operator [String] The id of the HTTP operator to update
|
|
337
|
-
# @param v1_update_http_operator_request [V1UpdateHTTPOperatorRequest] The fields to update on the HTTP operator
|
|
338
|
-
# @param [Hash] opts the optional parameters
|
|
339
|
-
# @return [Array<(V1HTTPOperator, Integer, Hash)>] V1HTTPOperator data, response status code and response headers
|
|
340
|
-
def v1_http_operator_update_with_http_info(v1_http_operator, v1_update_http_operator_request, opts = {})
|
|
341
|
-
if @api_client.config.debugging
|
|
342
|
-
@api_client.config.logger.debug 'Calling API: OperatorApi.v1_http_operator_update ...'
|
|
343
|
-
end
|
|
344
|
-
# verify the required parameter 'v1_http_operator' is set
|
|
345
|
-
if @api_client.config.client_side_validation && v1_http_operator.nil?
|
|
346
|
-
fail ArgumentError, "Missing the required parameter 'v1_http_operator' when calling OperatorApi.v1_http_operator_update"
|
|
347
|
-
end
|
|
348
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length > 36
|
|
349
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_update, the character length must be smaller than or equal to 36.'
|
|
350
|
-
end
|
|
351
|
-
|
|
352
|
-
if @api_client.config.client_side_validation && v1_http_operator.to_s.length < 36
|
|
353
|
-
fail ArgumentError, 'invalid value for "v1_http_operator" when calling OperatorApi.v1_http_operator_update, the character length must be greater than or equal to 36.'
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# verify the required parameter 'v1_update_http_operator_request' is set
|
|
357
|
-
if @api_client.config.client_side_validation && v1_update_http_operator_request.nil?
|
|
358
|
-
fail ArgumentError, "Missing the required parameter 'v1_update_http_operator_request' when calling OperatorApi.v1_http_operator_update"
|
|
359
|
-
end
|
|
360
|
-
# resource path
|
|
361
|
-
local_var_path = '/api/v1/stable/operators/http/{v1-http-operator}'.sub('{' + 'v1-http-operator' + '}', CGI.escape(v1_http_operator.to_s))
|
|
362
|
-
|
|
363
|
-
# query parameters
|
|
364
|
-
query_params = opts[:query_params] || {}
|
|
365
|
-
|
|
366
|
-
# header parameters
|
|
367
|
-
header_params = opts[:header_params] || {}
|
|
368
|
-
# HTTP header 'Accept' (if needed)
|
|
369
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
370
|
-
# HTTP header 'Content-Type'
|
|
371
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
372
|
-
if !content_type.nil?
|
|
373
|
-
header_params['Content-Type'] = content_type
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
# form parameters
|
|
377
|
-
form_params = opts[:form_params] || {}
|
|
378
|
-
|
|
379
|
-
# http body (model)
|
|
380
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(v1_update_http_operator_request)
|
|
381
|
-
|
|
382
|
-
# return_type
|
|
383
|
-
return_type = opts[:debug_return_type] || 'V1HTTPOperator'
|
|
384
|
-
|
|
385
|
-
# auth_names
|
|
386
|
-
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
387
|
-
|
|
388
|
-
new_options = opts.merge(
|
|
389
|
-
:operation => :"OperatorApi.v1_http_operator_update",
|
|
390
|
-
:header_params => header_params,
|
|
391
|
-
:query_params => query_params,
|
|
392
|
-
:form_params => form_params,
|
|
393
|
-
:body => post_body,
|
|
394
|
-
:auth_names => auth_names,
|
|
395
|
-
:return_type => return_type
|
|
396
|
-
)
|
|
397
|
-
|
|
398
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
399
|
-
if @api_client.config.debugging
|
|
400
|
-
@api_client.config.logger.debug "API called: OperatorApi#v1_http_operator_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
401
|
-
end
|
|
402
|
-
return data, status_code, headers
|
|
403
|
-
end
|
|
404
|
-
end
|
|
405
|
-
end
|