allq_rest 1.5.2 → 2.0.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/README.md +36 -97
- data/lib/allq_rest/client.rb +168 -0
- data/lib/allq_rest/configuration.rb +7 -192
- data/lib/allq_rest/errors.rb +17 -0
- data/lib/allq_rest/job.rb +10 -0
- data/lib/allq_rest/version.rb +2 -14
- data/lib/allq_rest.rb +21 -46
- data/swagger.yaml +706 -0
- metadata +32 -116
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -42
- data/Rakefile +0 -8
- data/allq_rest-1.2.92.gem +0 -0
- data/allq_rest-1.2.93.gem +0 -0
- data/allq_rest-1.3.0.gem +0 -0
- data/allq_rest-1.4.0.gem +0 -0
- data/allq_rest-1.5.0.gem +0 -0
- data/allq_rest-1.5.1.gem +0 -0
- data/allq_rest.gemspec +0 -28
- data/deploy.sh +0 -4
- data/docs/ActionsApi.md +0 -544
- data/docs/AdminApi.md +0 -98
- data/docs/BasicPayload.md +0 -11
- data/docs/BasicResponse.md +0 -8
- data/docs/JobRef.md +0 -8
- data/docs/JobResponse.md +0 -12
- data/docs/NewJob.md +0 -13
- data/docs/NewParentJob.md +0 -16
- data/docs/StatsInfo.md +0 -9
- data/docs/StatsResults.md +0 -10
- data/docs/StatsTube.md +0 -14
- data/docs/Throttle.md +0 -9
- data/docs/TubeRef.md +0 -8
- data/git_push.sh +0 -55
- data/lib/.DS_Store +0 -0
- data/lib/allq_rest/.DS_Store +0 -0
- data/lib/allq_rest/api/actions_api.rb +0 -763
- data/lib/allq_rest/api/admin_api.rb +0 -181
- data/lib/allq_rest/api_client.rb +0 -395
- data/lib/allq_rest/api_error.rb +0 -38
- data/lib/allq_rest/models/basic_payload.rb +0 -218
- data/lib/allq_rest/models/basic_response.rb +0 -188
- data/lib/allq_rest/models/job_ref.rb +0 -190
- data/lib/allq_rest/models/job_response.rb +0 -260
- data/lib/allq_rest/models/multiple_job_response.rb +0 -187
- data/lib/allq_rest/models/new_job.rb +0 -281
- data/lib/allq_rest/models/new_parent_job.rb +0 -312
- data/lib/allq_rest/models/stats_info.rb +0 -204
- data/lib/allq_rest/models/stats_results.rb +0 -254
- data/lib/allq_rest/models/stats_tube.rb +0 -306
- data/lib/allq_rest/models/throttle.rb +0 -209
- data/lib/allq_rest/models/tube_ref.rb +0 -190
- data/spec/.DS_Store +0 -0
- data/spec/api/actions_api_spec.rb +0 -600
- data/spec/api/admin_api_spec.rb +0 -58
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/basic_payload_spec.rb +0 -60
- data/spec/models/basic_response_spec.rb +0 -42
- data/spec/models/job_ref_spec.rb +0 -42
- data/spec/models/job_response_spec.rb +0 -66
- data/spec/models/new_job_spec.rb +0 -72
- data/spec/models/new_parent_job_spec.rb +0 -90
- data/spec/models/stats_info_spec.rb +0 -48
- data/spec/models/stats_results_spec.rb +0 -54
- data/spec/models/stats_tube_spec.rb +0 -78
- data/spec/models/throttle_spec.rb +0 -48
- data/spec/models/tube_ref_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -113
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#AllQ
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
-
|
|
6
|
-
OpenAPI spec version: 1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.32
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'uri'
|
|
14
|
-
|
|
15
|
-
module Allq
|
|
16
|
-
class ActionsApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Bury
|
|
23
|
-
# Bury Job
|
|
24
|
-
# @param job_id Job ID
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [BasicResponse]
|
|
27
|
-
def bury_put(job_id, opts = {})
|
|
28
|
-
data, _status_code, _headers = bury_put_with_http_info(job_id, opts)
|
|
29
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Bury
|
|
33
|
-
# Bury Job
|
|
34
|
-
# @param job_id Job ID
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
37
|
-
def bury_put_with_http_info(job_id, opts = {})
|
|
38
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.bury_put ...'
|
|
40
|
-
end
|
|
41
|
-
# verify the required parameter 'job_id' is set
|
|
42
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling ActionsApi.bury_put"
|
|
44
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/bury'
|
|
47
|
-
|
|
48
|
-
# query parameters
|
|
49
|
-
query_params = {}
|
|
50
|
-
query_params[:'job_id'] = job_id
|
|
51
|
-
|
|
52
|
-
# header parameters
|
|
53
|
-
header_params = {}
|
|
54
|
-
# HTTP header 'Accept' (if needed)
|
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
56
|
-
# HTTP header 'Content-Type'
|
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
58
|
-
|
|
59
|
-
# form parameters
|
|
60
|
-
form_params = {}
|
|
61
|
-
|
|
62
|
-
# http body (model)
|
|
63
|
-
post_body = nil
|
|
64
|
-
auth_names = []
|
|
65
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
66
|
-
:header_params => header_params,
|
|
67
|
-
:query_params => query_params,
|
|
68
|
-
:form_params => form_params,
|
|
69
|
-
:body => post_body,
|
|
70
|
-
:auth_names => auth_names,
|
|
71
|
-
:return_type => 'BasicResponse')
|
|
72
|
-
if @api_client.config.debugging
|
|
73
|
-
@api_client.config.logger.debug "API called: ActionsApi#bury_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
-
end
|
|
75
|
-
return data, status_code, headers
|
|
76
|
-
end
|
|
77
|
-
# Delete
|
|
78
|
-
# Finished Job
|
|
79
|
-
# @param job_id Job ID
|
|
80
|
-
# @param [Hash] opts the optional parameters
|
|
81
|
-
# @option opts [String] :tube Name of Tube (For deleting \"ready\" objects)
|
|
82
|
-
# @return [BasicResponse]
|
|
83
|
-
def job_delete(job_id, opts = {})
|
|
84
|
-
data, _status_code, _headers = job_delete_with_http_info(job_id, opts)
|
|
85
|
-
data
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Delete
|
|
89
|
-
# Finished Job
|
|
90
|
-
# @param job_id Job ID
|
|
91
|
-
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @option opts [String] :tube Name of Tube (For deleting \"ready\" objects)
|
|
93
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
94
|
-
def job_delete_with_http_info(job_id, opts = {})
|
|
95
|
-
if @api_client.config.debugging
|
|
96
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.job_delete ...'
|
|
97
|
-
end
|
|
98
|
-
# verify the required parameter 'job_id' is set
|
|
99
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
100
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling ActionsApi.job_delete"
|
|
101
|
-
end
|
|
102
|
-
# resource path
|
|
103
|
-
local_var_path = '/job'
|
|
104
|
-
|
|
105
|
-
# query parameters
|
|
106
|
-
query_params = {}
|
|
107
|
-
query_params[:'job_id'] = job_id
|
|
108
|
-
query_params[:'tube'] = opts[:'tube'] if !opts[:'tube'].nil?
|
|
109
|
-
|
|
110
|
-
# header parameters
|
|
111
|
-
header_params = {}
|
|
112
|
-
# HTTP header 'Accept' (if needed)
|
|
113
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
114
|
-
# HTTP header 'Content-Type'
|
|
115
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
116
|
-
|
|
117
|
-
# form parameters
|
|
118
|
-
form_params = {}
|
|
119
|
-
|
|
120
|
-
# http body (model)
|
|
121
|
-
post_body = nil
|
|
122
|
-
auth_names = []
|
|
123
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
124
|
-
:header_params => header_params,
|
|
125
|
-
:query_params => query_params,
|
|
126
|
-
:form_params => form_params,
|
|
127
|
-
:body => post_body,
|
|
128
|
-
:auth_names => auth_names,
|
|
129
|
-
:return_type => 'BasicResponse')
|
|
130
|
-
if @api_client.config.debugging
|
|
131
|
-
@api_client.config.logger.debug "API called: ActionsApi#job_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
-
end
|
|
133
|
-
return data, status_code, headers
|
|
134
|
-
end
|
|
135
|
-
# Job
|
|
136
|
-
# Get job from queue
|
|
137
|
-
# @param tube Name of tube
|
|
138
|
-
# @param [Hash] opts the optional parameters
|
|
139
|
-
# @option opts [String] :delete Delete on get
|
|
140
|
-
# @return [JobResponse]
|
|
141
|
-
def job_get(tube, opts = {})
|
|
142
|
-
data, _status_code, _headers = job_get_with_http_info(tube, opts)
|
|
143
|
-
data
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# Job
|
|
147
|
-
# Get job from queue
|
|
148
|
-
# @param tube Name of tube
|
|
149
|
-
# @param [Hash] opts the optional parameters
|
|
150
|
-
# @option opts [String] :delete Delete on get
|
|
151
|
-
# @return [Array<(JobResponse, Fixnum, Hash)>] JobResponse data, response status code and response headers
|
|
152
|
-
def job_get_with_http_info(tube, opts = {})
|
|
153
|
-
if @api_client.config.debugging
|
|
154
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.job_get ...'
|
|
155
|
-
end
|
|
156
|
-
# verify the required parameter 'tube' is set
|
|
157
|
-
if @api_client.config.client_side_validation && tube.nil?
|
|
158
|
-
fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.job_get"
|
|
159
|
-
end
|
|
160
|
-
# resource path
|
|
161
|
-
local_var_path = '/job'
|
|
162
|
-
|
|
163
|
-
# query parameters
|
|
164
|
-
query_params = {}
|
|
165
|
-
query_params[:'tube'] = tube
|
|
166
|
-
query_params[:'delete'] = opts[:'delete'] if !opts[:'delete'].nil?
|
|
167
|
-
|
|
168
|
-
# header parameters
|
|
169
|
-
header_params = {}
|
|
170
|
-
# HTTP header 'Accept' (if needed)
|
|
171
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
172
|
-
# HTTP header 'Content-Type'
|
|
173
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
174
|
-
|
|
175
|
-
# form parameters
|
|
176
|
-
form_params = {}
|
|
177
|
-
|
|
178
|
-
# http body (model)
|
|
179
|
-
post_body = nil
|
|
180
|
-
auth_names = []
|
|
181
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
182
|
-
:header_params => header_params,
|
|
183
|
-
:query_params => query_params,
|
|
184
|
-
:form_params => form_params,
|
|
185
|
-
:body => post_body,
|
|
186
|
-
:auth_names => auth_names,
|
|
187
|
-
:return_type => 'JobResponse')
|
|
188
|
-
if @api_client.config.debugging
|
|
189
|
-
@api_client.config.logger.debug "API called: ActionsApi#job_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
-
end
|
|
191
|
-
return data, status_code, headers
|
|
192
|
-
end
|
|
193
|
-
# Job
|
|
194
|
-
# Put job into queue
|
|
195
|
-
# @param new_job New Job Object
|
|
196
|
-
# @param [Hash] opts the optional parameters
|
|
197
|
-
# @return [JobRef]
|
|
198
|
-
def job_post(new_job, opts = {})
|
|
199
|
-
data, _status_code, _headers = job_post_with_http_info(new_job, opts)
|
|
200
|
-
data
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# Job
|
|
204
|
-
# Put job into queue
|
|
205
|
-
# @param new_job New Job Object
|
|
206
|
-
# @param [Hash] opts the optional parameters
|
|
207
|
-
# @return [Array<(JobRef, Fixnum, Hash)>] JobRef data, response status code and response headers
|
|
208
|
-
def job_post_with_http_info(new_job, opts = {})
|
|
209
|
-
if @api_client.config.debugging
|
|
210
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.job_post ...'
|
|
211
|
-
end
|
|
212
|
-
# verify the required parameter 'new_job' is set
|
|
213
|
-
if @api_client.config.client_side_validation && new_job.nil?
|
|
214
|
-
fail ArgumentError, "Missing the required parameter 'new_job' when calling ActionsApi.job_post"
|
|
215
|
-
end
|
|
216
|
-
# resource path
|
|
217
|
-
local_var_path = '/job'
|
|
218
|
-
|
|
219
|
-
# query parameters
|
|
220
|
-
query_params = {}
|
|
221
|
-
|
|
222
|
-
# header parameters
|
|
223
|
-
header_params = {}
|
|
224
|
-
# HTTP header 'Accept' (if needed)
|
|
225
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
226
|
-
# HTTP header 'Content-Type'
|
|
227
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
228
|
-
|
|
229
|
-
# form parameters
|
|
230
|
-
form_params = {}
|
|
231
|
-
|
|
232
|
-
# http body (model)
|
|
233
|
-
post_body = @api_client.object_to_http_body(new_job)
|
|
234
|
-
auth_names = []
|
|
235
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
236
|
-
:header_params => header_params,
|
|
237
|
-
:query_params => query_params,
|
|
238
|
-
:form_params => form_params,
|
|
239
|
-
:body => post_body,
|
|
240
|
-
:auth_names => auth_names,
|
|
241
|
-
:return_type => 'JobRef')
|
|
242
|
-
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug "API called: ActionsApi#job_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
244
|
-
end
|
|
245
|
-
return data, status_code, headers
|
|
246
|
-
end
|
|
247
|
-
# Kicj
|
|
248
|
-
# Kick Job
|
|
249
|
-
# @param tube Job ID
|
|
250
|
-
# @param [Hash] opts the optional parameters
|
|
251
|
-
# @return [BasicResponse]
|
|
252
|
-
def kick_put(tube, opts = {})
|
|
253
|
-
data, _status_code, _headers = kick_put_with_http_info(tube, opts)
|
|
254
|
-
data
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# Kicj
|
|
258
|
-
# Kick Job
|
|
259
|
-
# @param tube Job ID
|
|
260
|
-
# @param [Hash] opts the optional parameters
|
|
261
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
262
|
-
def kick_put_with_http_info(tube, opts = {})
|
|
263
|
-
if @api_client.config.debugging
|
|
264
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.kick_put ...'
|
|
265
|
-
end
|
|
266
|
-
# verify the required parameter 'tube' is set
|
|
267
|
-
if @api_client.config.client_side_validation && tube.nil?
|
|
268
|
-
fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.kick_put"
|
|
269
|
-
end
|
|
270
|
-
# resource path
|
|
271
|
-
local_var_path = '/kick'
|
|
272
|
-
|
|
273
|
-
# query parameters
|
|
274
|
-
query_params = {}
|
|
275
|
-
query_params[:'tube'] = tube
|
|
276
|
-
|
|
277
|
-
# header parameters
|
|
278
|
-
header_params = {}
|
|
279
|
-
# HTTP header 'Accept' (if needed)
|
|
280
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
281
|
-
# HTTP header 'Content-Type'
|
|
282
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
283
|
-
|
|
284
|
-
# form parameters
|
|
285
|
-
form_params = {}
|
|
286
|
-
|
|
287
|
-
# http body (model)
|
|
288
|
-
post_body = nil
|
|
289
|
-
auth_names = []
|
|
290
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
291
|
-
:header_params => header_params,
|
|
292
|
-
:query_params => query_params,
|
|
293
|
-
:form_params => form_params,
|
|
294
|
-
:body => post_body,
|
|
295
|
-
:auth_names => auth_names,
|
|
296
|
-
:return_type => 'BasicResponse')
|
|
297
|
-
if @api_client.config.debugging
|
|
298
|
-
@api_client.config.logger.debug "API called: ActionsApi#kick_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
299
|
-
end
|
|
300
|
-
return data, status_code, headers
|
|
301
|
-
end
|
|
302
|
-
# Multiple Job
|
|
303
|
-
# Get multiple jobs from queue
|
|
304
|
-
# @param tube Name of tube
|
|
305
|
-
# @param count Max number of reults
|
|
306
|
-
# @param [Hash] opts the optional parameters
|
|
307
|
-
# @option opts [String] :delete Delete on get
|
|
308
|
-
# @return [MultipleJobResponse]
|
|
309
|
-
def multiple_job_get(tube, count, opts = {})
|
|
310
|
-
data, _status_code, _headers = multiple_job_get_with_http_info(tube, count, opts)
|
|
311
|
-
data
|
|
312
|
-
end
|
|
313
|
-
|
|
314
|
-
# Multiple Job
|
|
315
|
-
# Get multiple jobs from queue
|
|
316
|
-
# @param tube Name of tube
|
|
317
|
-
# @param count Max number of reults
|
|
318
|
-
# @param [Hash] opts the optional parameters
|
|
319
|
-
# @option opts [String] :delete Delete on get
|
|
320
|
-
# @return [Array<(MultipleJobResponse, Fixnum, Hash)>] MultipleJobResponse data, response status code and response headers
|
|
321
|
-
def multiple_job_get_with_http_info(tube, count, opts = {})
|
|
322
|
-
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.multiple_job_get ...'
|
|
324
|
-
end
|
|
325
|
-
# verify the required parameter 'tube' is set
|
|
326
|
-
if @api_client.config.client_side_validation && tube.nil?
|
|
327
|
-
fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.multiple_job_get"
|
|
328
|
-
end
|
|
329
|
-
# verify the required parameter 'count' is set
|
|
330
|
-
if @api_client.config.client_side_validation && count.nil?
|
|
331
|
-
fail ArgumentError, "Missing the required parameter 'count' when calling ActionsApi.multiple_job_get"
|
|
332
|
-
end
|
|
333
|
-
# resource path
|
|
334
|
-
local_var_path = '/multiple_job'
|
|
335
|
-
|
|
336
|
-
# query parameters
|
|
337
|
-
query_params = {}
|
|
338
|
-
query_params[:'tube'] = tube
|
|
339
|
-
query_params[:'count'] = count
|
|
340
|
-
query_params[:'delete'] = opts[:'delete'] if !opts[:'delete'].nil?
|
|
341
|
-
|
|
342
|
-
# header parameters
|
|
343
|
-
header_params = {}
|
|
344
|
-
# HTTP header 'Accept' (if needed)
|
|
345
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
346
|
-
# HTTP header 'Content-Type'
|
|
347
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
348
|
-
|
|
349
|
-
# form parameters
|
|
350
|
-
form_params = {}
|
|
351
|
-
|
|
352
|
-
# http body (model)
|
|
353
|
-
post_body = nil
|
|
354
|
-
auth_names = []
|
|
355
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
356
|
-
:header_params => header_params,
|
|
357
|
-
:query_params => query_params,
|
|
358
|
-
:form_params => form_params,
|
|
359
|
-
:body => post_body,
|
|
360
|
-
:auth_names => auth_names,
|
|
361
|
-
:return_type => 'MultipleJobResponse')
|
|
362
|
-
if @api_client.config.debugging
|
|
363
|
-
@api_client.config.logger.debug "API called: ActionsApi#multiple_job_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
364
|
-
end
|
|
365
|
-
return data, status_code, headers
|
|
366
|
-
end
|
|
367
|
-
# Parent Job
|
|
368
|
-
# Create a parent job
|
|
369
|
-
# @param new_parent_job New Parent Job Data
|
|
370
|
-
# @param [Hash] opts the optional parameters
|
|
371
|
-
# @return [JobRef]
|
|
372
|
-
def parent_job_post(new_parent_job, opts = {})
|
|
373
|
-
data, _status_code, _headers = parent_job_post_with_http_info(new_parent_job, opts)
|
|
374
|
-
data
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
# Parent Job
|
|
378
|
-
# Create a parent job
|
|
379
|
-
# @param new_parent_job New Parent Job Data
|
|
380
|
-
# @param [Hash] opts the optional parameters
|
|
381
|
-
# @return [Array<(JobRef, Fixnum, Hash)>] JobRef data, response status code and response headers
|
|
382
|
-
def parent_job_post_with_http_info(new_parent_job, opts = {})
|
|
383
|
-
if @api_client.config.debugging
|
|
384
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.parent_job_post ...'
|
|
385
|
-
end
|
|
386
|
-
# verify the required parameter 'new_parent_job' is set
|
|
387
|
-
if @api_client.config.client_side_validation && new_parent_job.nil?
|
|
388
|
-
fail ArgumentError, "Missing the required parameter 'new_parent_job' when calling ActionsApi.parent_job_post"
|
|
389
|
-
end
|
|
390
|
-
# resource path
|
|
391
|
-
local_var_path = '/parent_job'
|
|
392
|
-
|
|
393
|
-
# query parameters
|
|
394
|
-
query_params = {}
|
|
395
|
-
|
|
396
|
-
# header parameters
|
|
397
|
-
header_params = {}
|
|
398
|
-
# HTTP header 'Accept' (if needed)
|
|
399
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
400
|
-
# HTTP header 'Content-Type'
|
|
401
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
402
|
-
|
|
403
|
-
# form parameters
|
|
404
|
-
form_params = {}
|
|
405
|
-
|
|
406
|
-
# http body (model)
|
|
407
|
-
post_body = @api_client.object_to_http_body(new_parent_job)
|
|
408
|
-
auth_names = []
|
|
409
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
410
|
-
:header_params => header_params,
|
|
411
|
-
:query_params => query_params,
|
|
412
|
-
:form_params => form_params,
|
|
413
|
-
:body => post_body,
|
|
414
|
-
:auth_names => auth_names,
|
|
415
|
-
:return_type => 'JobRef')
|
|
416
|
-
if @api_client.config.debugging
|
|
417
|
-
@api_client.config.logger.debug "API called: ActionsApi#parent_job_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
418
|
-
end
|
|
419
|
-
return data, status_code, headers
|
|
420
|
-
end
|
|
421
|
-
# Peek
|
|
422
|
-
# Peek at next job
|
|
423
|
-
# @param tube Tube name
|
|
424
|
-
# @param [Hash] opts the optional parameters
|
|
425
|
-
# @option opts [String] :buried Look in buried (default to false)
|
|
426
|
-
# @option opts [String] :offset Offset from start (default to 0)
|
|
427
|
-
# @return [JobResponse]
|
|
428
|
-
def peek_get(tube, opts = {})
|
|
429
|
-
data, _status_code, _headers = peek_get_with_http_info(tube, opts)
|
|
430
|
-
data
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
# Peek
|
|
434
|
-
# Peek at next job
|
|
435
|
-
# @param tube Tube name
|
|
436
|
-
# @param [Hash] opts the optional parameters
|
|
437
|
-
# @option opts [String] :buried Look in buried
|
|
438
|
-
# @option opts [String] :offset Offset from start
|
|
439
|
-
# @return [Array<(JobResponse, Fixnum, Hash)>] JobResponse data, response status code and response headers
|
|
440
|
-
def peek_get_with_http_info(tube, opts = {})
|
|
441
|
-
if @api_client.config.debugging
|
|
442
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.peek_get ...'
|
|
443
|
-
end
|
|
444
|
-
# verify the required parameter 'tube' is set
|
|
445
|
-
if @api_client.config.client_side_validation && tube.nil?
|
|
446
|
-
fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.peek_get"
|
|
447
|
-
end
|
|
448
|
-
# resource path
|
|
449
|
-
local_var_path = '/peek'
|
|
450
|
-
|
|
451
|
-
# query parameters
|
|
452
|
-
query_params = {}
|
|
453
|
-
query_params[:'tube'] = tube
|
|
454
|
-
query_params[:'buried'] = opts[:'buried'] if !opts[:'buried'].nil?
|
|
455
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
456
|
-
|
|
457
|
-
# header parameters
|
|
458
|
-
header_params = {}
|
|
459
|
-
# HTTP header 'Accept' (if needed)
|
|
460
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
461
|
-
# HTTP header 'Content-Type'
|
|
462
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
463
|
-
|
|
464
|
-
# form parameters
|
|
465
|
-
form_params = {}
|
|
466
|
-
|
|
467
|
-
# http body (model)
|
|
468
|
-
post_body = nil
|
|
469
|
-
auth_names = []
|
|
470
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
471
|
-
:header_params => header_params,
|
|
472
|
-
:query_params => query_params,
|
|
473
|
-
:form_params => form_params,
|
|
474
|
-
:body => post_body,
|
|
475
|
-
:auth_names => auth_names,
|
|
476
|
-
:return_type => 'JobResponse')
|
|
477
|
-
if @api_client.config.debugging
|
|
478
|
-
@api_client.config.logger.debug "API called: ActionsApi#peek_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
-
end
|
|
480
|
-
return data, status_code, headers
|
|
481
|
-
end
|
|
482
|
-
# Release
|
|
483
|
-
# Releases job back into queue
|
|
484
|
-
# @param job_id Job ID
|
|
485
|
-
# @param [Hash] opts the optional parameters
|
|
486
|
-
# @option opts [Integer] :delay Delay for re-enqueue
|
|
487
|
-
# @return [BasicResponse]
|
|
488
|
-
def release_put(job_id, opts = {})
|
|
489
|
-
data, _status_code, _headers = release_put_with_http_info(job_id, opts)
|
|
490
|
-
data
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
# Release
|
|
494
|
-
# Releases job back into queue
|
|
495
|
-
# @param job_id Job ID
|
|
496
|
-
# @param [Hash] opts the optional parameters
|
|
497
|
-
# @option opts [Integer] :delay Delay for re-enqueue
|
|
498
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
499
|
-
def release_put_with_http_info(job_id, opts = {})
|
|
500
|
-
if @api_client.config.debugging
|
|
501
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.release_put ...'
|
|
502
|
-
end
|
|
503
|
-
# verify the required parameter 'job_id' is set
|
|
504
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
505
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling ActionsApi.release_put"
|
|
506
|
-
end
|
|
507
|
-
# resource path
|
|
508
|
-
local_var_path = '/release'
|
|
509
|
-
|
|
510
|
-
# query parameters
|
|
511
|
-
query_params = {}
|
|
512
|
-
query_params[:'job_id'] = job_id
|
|
513
|
-
query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
|
|
514
|
-
|
|
515
|
-
# header parameters
|
|
516
|
-
header_params = {}
|
|
517
|
-
# HTTP header 'Accept' (if needed)
|
|
518
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
519
|
-
# HTTP header 'Content-Type'
|
|
520
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
521
|
-
|
|
522
|
-
# form parameters
|
|
523
|
-
form_params = {}
|
|
524
|
-
|
|
525
|
-
# http body (model)
|
|
526
|
-
post_body = nil
|
|
527
|
-
auth_names = []
|
|
528
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
529
|
-
:header_params => header_params,
|
|
530
|
-
:query_params => query_params,
|
|
531
|
-
:form_params => form_params,
|
|
532
|
-
:body => post_body,
|
|
533
|
-
:auth_names => auth_names,
|
|
534
|
-
:return_type => 'BasicResponse')
|
|
535
|
-
if @api_client.config.debugging
|
|
536
|
-
@api_client.config.logger.debug "API called: ActionsApi#release_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
-
end
|
|
538
|
-
return data, status_code, headers
|
|
539
|
-
end
|
|
540
|
-
# Set Children Started
|
|
541
|
-
# When a parent job doesn't know how many children are going to be added, this is the event that sets the final children count on the parent_job, allowing it to run when the children are done.
|
|
542
|
-
# @param job_id Job ID
|
|
543
|
-
# @param [Hash] opts the optional parameters
|
|
544
|
-
# @option opts [String] :force_now Force parent to start now
|
|
545
|
-
# @return [BasicResponse]
|
|
546
|
-
def set_children_started_put(job_id, opts = {})
|
|
547
|
-
data, _status_code, _headers = set_children_started_put_with_http_info(job_id, opts)
|
|
548
|
-
data
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
# Set Children Started
|
|
552
|
-
# When a parent job doesn't know how many children are going to be added, this is the event that sets the final children count on the parent_job, allowing it to run when the children are done.
|
|
553
|
-
# @param job_id Job ID
|
|
554
|
-
# @param [Hash] opts the optional parameters
|
|
555
|
-
# @option opts [String] :force_now Force parent to start now
|
|
556
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
557
|
-
def set_children_started_put_with_http_info(job_id, opts = {})
|
|
558
|
-
if @api_client.config.debugging
|
|
559
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.set_children_started_put ...'
|
|
560
|
-
end
|
|
561
|
-
# verify the required parameter 'job_id' is set
|
|
562
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
563
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling ActionsApi.set_children_started_put"
|
|
564
|
-
end
|
|
565
|
-
# resource path
|
|
566
|
-
local_var_path = '/set_children_started'
|
|
567
|
-
|
|
568
|
-
# query parameters
|
|
569
|
-
query_params = {}
|
|
570
|
-
query_params[:'job_id'] = job_id
|
|
571
|
-
query_params[:'force_now'] = opts[:'force_now'] if !opts[:'force_now'].nil?
|
|
572
|
-
|
|
573
|
-
# header parameters
|
|
574
|
-
header_params = {}
|
|
575
|
-
# HTTP header 'Accept' (if needed)
|
|
576
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
577
|
-
# HTTP header 'Content-Type'
|
|
578
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
579
|
-
|
|
580
|
-
# form parameters
|
|
581
|
-
form_params = {}
|
|
582
|
-
|
|
583
|
-
# http body (model)
|
|
584
|
-
post_body = nil
|
|
585
|
-
auth_names = []
|
|
586
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
587
|
-
:header_params => header_params,
|
|
588
|
-
:query_params => query_params,
|
|
589
|
-
:form_params => form_params,
|
|
590
|
-
:body => post_body,
|
|
591
|
-
:auth_names => auth_names,
|
|
592
|
-
:return_type => 'BasicResponse')
|
|
593
|
-
if @api_client.config.debugging
|
|
594
|
-
@api_client.config.logger.debug "API called: ActionsApi#set_children_started_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
595
|
-
end
|
|
596
|
-
return data, status_code, headers
|
|
597
|
-
end
|
|
598
|
-
# Throttle
|
|
599
|
-
# Creates a throttle on a tube
|
|
600
|
-
# @param throttle Throttle info
|
|
601
|
-
# @param [Hash] opts the optional parameters
|
|
602
|
-
# @return [TubeRef]
|
|
603
|
-
def throttle_post(throttle, opts = {})
|
|
604
|
-
data, _status_code, _headers = throttle_post_with_http_info(throttle, opts)
|
|
605
|
-
data
|
|
606
|
-
end
|
|
607
|
-
|
|
608
|
-
# Throttle
|
|
609
|
-
# Creates a throttle on a tube
|
|
610
|
-
# @param throttle Throttle info
|
|
611
|
-
# @param [Hash] opts the optional parameters
|
|
612
|
-
# @return [Array<(TubeRef, Fixnum, Hash)>] TubeRef data, response status code and response headers
|
|
613
|
-
def throttle_post_with_http_info(throttle, opts = {})
|
|
614
|
-
if @api_client.config.debugging
|
|
615
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.throttle_post ...'
|
|
616
|
-
end
|
|
617
|
-
# verify the required parameter 'throttle' is set
|
|
618
|
-
if @api_client.config.client_side_validation && throttle.nil?
|
|
619
|
-
fail ArgumentError, "Missing the required parameter 'throttle' when calling ActionsApi.throttle_post"
|
|
620
|
-
end
|
|
621
|
-
# resource path
|
|
622
|
-
local_var_path = '/throttle'
|
|
623
|
-
|
|
624
|
-
# query parameters
|
|
625
|
-
query_params = {}
|
|
626
|
-
|
|
627
|
-
# header parameters
|
|
628
|
-
header_params = {}
|
|
629
|
-
# HTTP header 'Accept' (if needed)
|
|
630
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
631
|
-
# HTTP header 'Content-Type'
|
|
632
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
633
|
-
|
|
634
|
-
# form parameters
|
|
635
|
-
form_params = {}
|
|
636
|
-
|
|
637
|
-
# http body (model)
|
|
638
|
-
post_body = @api_client.object_to_http_body(throttle)
|
|
639
|
-
auth_names = []
|
|
640
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
641
|
-
:header_params => header_params,
|
|
642
|
-
:query_params => query_params,
|
|
643
|
-
:form_params => form_params,
|
|
644
|
-
:body => post_body,
|
|
645
|
-
:auth_names => auth_names,
|
|
646
|
-
:return_type => 'TubeRef')
|
|
647
|
-
if @api_client.config.debugging
|
|
648
|
-
@api_client.config.logger.debug "API called: ActionsApi#throttle_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
649
|
-
end
|
|
650
|
-
return data, status_code, headers
|
|
651
|
-
end
|
|
652
|
-
# Touch
|
|
653
|
-
# Touch job
|
|
654
|
-
# @param job_id Job ID
|
|
655
|
-
# @param [Hash] opts the optional parameters
|
|
656
|
-
# @return [BasicResponse]
|
|
657
|
-
def touch_put(job_id, opts = {})
|
|
658
|
-
data, _status_code, _headers = touch_put_with_http_info(job_id, opts)
|
|
659
|
-
data
|
|
660
|
-
end
|
|
661
|
-
|
|
662
|
-
# Touch
|
|
663
|
-
# Touch job
|
|
664
|
-
# @param job_id Job ID
|
|
665
|
-
# @param [Hash] opts the optional parameters
|
|
666
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
667
|
-
def touch_put_with_http_info(job_id, opts = {})
|
|
668
|
-
if @api_client.config.debugging
|
|
669
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.touch_put ...'
|
|
670
|
-
end
|
|
671
|
-
# verify the required parameter 'job_id' is set
|
|
672
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
673
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling ActionsApi.touch_put"
|
|
674
|
-
end
|
|
675
|
-
# resource path
|
|
676
|
-
local_var_path = '/touch'
|
|
677
|
-
|
|
678
|
-
# query parameters
|
|
679
|
-
query_params = {}
|
|
680
|
-
query_params[:'job_id'] = job_id
|
|
681
|
-
|
|
682
|
-
# header parameters
|
|
683
|
-
header_params = {}
|
|
684
|
-
# HTTP header 'Accept' (if needed)
|
|
685
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
686
|
-
# HTTP header 'Content-Type'
|
|
687
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
688
|
-
|
|
689
|
-
# form parameters
|
|
690
|
-
form_params = {}
|
|
691
|
-
|
|
692
|
-
# http body (model)
|
|
693
|
-
post_body = nil
|
|
694
|
-
auth_names = []
|
|
695
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
696
|
-
:header_params => header_params,
|
|
697
|
-
:query_params => query_params,
|
|
698
|
-
:form_params => form_params,
|
|
699
|
-
:body => post_body,
|
|
700
|
-
:auth_names => auth_names,
|
|
701
|
-
:return_type => 'BasicResponse')
|
|
702
|
-
if @api_client.config.debugging
|
|
703
|
-
@api_client.config.logger.debug "API called: ActionsApi#touch_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
704
|
-
end
|
|
705
|
-
return data, status_code, headers
|
|
706
|
-
end
|
|
707
|
-
# Clear Tube
|
|
708
|
-
# Delete all contents of tube
|
|
709
|
-
# @param tube Tube Name
|
|
710
|
-
# @param [Hash] opts the optional parameters
|
|
711
|
-
# @return [BasicResponse]
|
|
712
|
-
def tube_delete(tube, opts = {})
|
|
713
|
-
data, _status_code, _headers = tube_delete_with_http_info(tube, opts)
|
|
714
|
-
data
|
|
715
|
-
end
|
|
716
|
-
|
|
717
|
-
# Clear Tube
|
|
718
|
-
# Delete all contents of tube
|
|
719
|
-
# @param tube Tube Name
|
|
720
|
-
# @param [Hash] opts the optional parameters
|
|
721
|
-
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
|
722
|
-
def tube_delete_with_http_info(tube, opts = {})
|
|
723
|
-
if @api_client.config.debugging
|
|
724
|
-
@api_client.config.logger.debug 'Calling API: ActionsApi.tube_delete ...'
|
|
725
|
-
end
|
|
726
|
-
# verify the required parameter 'tube' is set
|
|
727
|
-
if @api_client.config.client_side_validation && tube.nil?
|
|
728
|
-
fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.tube_delete"
|
|
729
|
-
end
|
|
730
|
-
# resource path
|
|
731
|
-
local_var_path = '/tube'
|
|
732
|
-
|
|
733
|
-
# query parameters
|
|
734
|
-
query_params = {}
|
|
735
|
-
query_params[:'tube'] = tube
|
|
736
|
-
|
|
737
|
-
# header parameters
|
|
738
|
-
header_params = {}
|
|
739
|
-
# HTTP header 'Accept' (if needed)
|
|
740
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
741
|
-
# HTTP header 'Content-Type'
|
|
742
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
743
|
-
|
|
744
|
-
# form parameters
|
|
745
|
-
form_params = {}
|
|
746
|
-
|
|
747
|
-
# http body (model)
|
|
748
|
-
post_body = nil
|
|
749
|
-
auth_names = []
|
|
750
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
751
|
-
:header_params => header_params,
|
|
752
|
-
:query_params => query_params,
|
|
753
|
-
:form_params => form_params,
|
|
754
|
-
:body => post_body,
|
|
755
|
-
:auth_names => auth_names,
|
|
756
|
-
:return_type => 'BasicResponse')
|
|
757
|
-
if @api_client.config.debugging
|
|
758
|
-
@api_client.config.logger.debug "API called: ActionsApi#tube_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
759
|
-
end
|
|
760
|
-
return data, status_code, headers
|
|
761
|
-
end
|
|
762
|
-
end
|
|
763
|
-
end
|