allq_rest 1.5.2 → 2.0.0
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
data/docs/ActionsApi.md
DELETED
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
# Allq::ActionsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost:8090*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**bury_put**](ActionsApi.md#bury_put) | **PUT** /bury | Bury
|
|
8
|
-
[**job_delete**](ActionsApi.md#job_delete) | **DELETE** /job | Delete
|
|
9
|
-
[**job_get**](ActionsApi.md#job_get) | **GET** /job | Job
|
|
10
|
-
[**job_post**](ActionsApi.md#job_post) | **POST** /job | Job
|
|
11
|
-
[**parent_job_post**](ActionsApi.md#parent_job_post) | **POST** /parent_job | Parent Job
|
|
12
|
-
[**peek_get**](ActionsApi.md#peek_get) | **GET** /peek | Peek
|
|
13
|
-
[**release_put**](ActionsApi.md#release_put) | **PUT** /release | Release
|
|
14
|
-
[**set_children_started_put**](ActionsApi.md#set_children_started_put) | **PUT** /set_children_started | Set Children Started
|
|
15
|
-
[**throttle_post**](ActionsApi.md#throttle_post) | **POST** /throttle | Throttle
|
|
16
|
-
[**touch_put**](ActionsApi.md#touch_put) | **PUT** /touch | Touch
|
|
17
|
-
[**tube_delete**](ActionsApi.md#tube_delete) | **DELETE** /tube | Clear Tube
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# **bury_put**
|
|
21
|
-
> BasicResponse bury_put(job_id)
|
|
22
|
-
|
|
23
|
-
Bury
|
|
24
|
-
|
|
25
|
-
Bury Job
|
|
26
|
-
|
|
27
|
-
### Example
|
|
28
|
-
```ruby
|
|
29
|
-
# load the gem
|
|
30
|
-
require 'allq_rest'
|
|
31
|
-
|
|
32
|
-
api_instance = Allq::ActionsApi.new
|
|
33
|
-
|
|
34
|
-
job_id = "job_id_example" # String | Job ID
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
begin
|
|
38
|
-
#Bury
|
|
39
|
-
result = api_instance.bury_put(job_id)
|
|
40
|
-
p result
|
|
41
|
-
rescue Allq::ApiError => e
|
|
42
|
-
puts "Exception when calling ActionsApi->bury_put: #{e}"
|
|
43
|
-
end
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Parameters
|
|
47
|
-
|
|
48
|
-
Name | Type | Description | Notes
|
|
49
|
-
------------- | ------------- | ------------- | -------------
|
|
50
|
-
**job_id** | **String**| Job ID |
|
|
51
|
-
|
|
52
|
-
### Return type
|
|
53
|
-
|
|
54
|
-
[**BasicResponse**](BasicResponse.md)
|
|
55
|
-
|
|
56
|
-
### Authorization
|
|
57
|
-
|
|
58
|
-
No authorization required
|
|
59
|
-
|
|
60
|
-
### HTTP request headers
|
|
61
|
-
|
|
62
|
-
- **Content-Type**: application/json
|
|
63
|
-
- **Accept**: application/json
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
# **job_delete**
|
|
68
|
-
> BasicResponse job_delete(job_id, opts)
|
|
69
|
-
|
|
70
|
-
Delete
|
|
71
|
-
|
|
72
|
-
Finished Job
|
|
73
|
-
|
|
74
|
-
### Example
|
|
75
|
-
```ruby
|
|
76
|
-
# load the gem
|
|
77
|
-
require 'allq_rest'
|
|
78
|
-
|
|
79
|
-
api_instance = Allq::ActionsApi.new
|
|
80
|
-
|
|
81
|
-
job_id = "job_id_example" # String | Job ID
|
|
82
|
-
|
|
83
|
-
opts = {
|
|
84
|
-
tube: "tube_example" # String | Name of Tube (For deleting \"ready\" objects)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
begin
|
|
88
|
-
#Delete
|
|
89
|
-
result = api_instance.job_delete(job_id, opts)
|
|
90
|
-
p result
|
|
91
|
-
rescue Allq::ApiError => e
|
|
92
|
-
puts "Exception when calling ActionsApi->job_delete: #{e}"
|
|
93
|
-
end
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Parameters
|
|
97
|
-
|
|
98
|
-
Name | Type | Description | Notes
|
|
99
|
-
------------- | ------------- | ------------- | -------------
|
|
100
|
-
**job_id** | **String**| Job ID |
|
|
101
|
-
**tube** | **String**| Name of Tube (For deleting \"ready\" objects) | [optional]
|
|
102
|
-
|
|
103
|
-
### Return type
|
|
104
|
-
|
|
105
|
-
[**BasicResponse**](BasicResponse.md)
|
|
106
|
-
|
|
107
|
-
### Authorization
|
|
108
|
-
|
|
109
|
-
No authorization required
|
|
110
|
-
|
|
111
|
-
### HTTP request headers
|
|
112
|
-
|
|
113
|
-
- **Content-Type**: application/json
|
|
114
|
-
- **Accept**: application/json
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
# **job_get**
|
|
119
|
-
> JobResponse job_get(tube)
|
|
120
|
-
|
|
121
|
-
Job
|
|
122
|
-
|
|
123
|
-
Get job from queue
|
|
124
|
-
|
|
125
|
-
### Example
|
|
126
|
-
```ruby
|
|
127
|
-
# load the gem
|
|
128
|
-
require 'allq_rest'
|
|
129
|
-
|
|
130
|
-
api_instance = Allq::ActionsApi.new
|
|
131
|
-
|
|
132
|
-
tube = "tube_example" # String | Name of tube
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
begin
|
|
136
|
-
#Job
|
|
137
|
-
result = api_instance.job_get(tube)
|
|
138
|
-
p result
|
|
139
|
-
rescue Allq::ApiError => e
|
|
140
|
-
puts "Exception when calling ActionsApi->job_get: #{e}"
|
|
141
|
-
end
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### Parameters
|
|
145
|
-
|
|
146
|
-
Name | Type | Description | Notes
|
|
147
|
-
------------- | ------------- | ------------- | -------------
|
|
148
|
-
**tube** | **String**| Name of tube |
|
|
149
|
-
|
|
150
|
-
### Return type
|
|
151
|
-
|
|
152
|
-
[**JobResponse**](JobResponse.md)
|
|
153
|
-
|
|
154
|
-
### Authorization
|
|
155
|
-
|
|
156
|
-
No authorization required
|
|
157
|
-
|
|
158
|
-
### HTTP request headers
|
|
159
|
-
|
|
160
|
-
- **Content-Type**: application/json
|
|
161
|
-
- **Accept**: application/json
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
# **job_post**
|
|
166
|
-
> JobRef job_post(new_job)
|
|
167
|
-
|
|
168
|
-
Job
|
|
169
|
-
|
|
170
|
-
Put job into queue
|
|
171
|
-
|
|
172
|
-
### Example
|
|
173
|
-
```ruby
|
|
174
|
-
# load the gem
|
|
175
|
-
require 'allq_rest'
|
|
176
|
-
|
|
177
|
-
api_instance = Allq::ActionsApi.new
|
|
178
|
-
|
|
179
|
-
new_job = Allq::NewJob.new # NewJob | New Job Object
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
begin
|
|
183
|
-
#Job
|
|
184
|
-
result = api_instance.job_post(new_job)
|
|
185
|
-
p result
|
|
186
|
-
rescue Allq::ApiError => e
|
|
187
|
-
puts "Exception when calling ActionsApi->job_post: #{e}"
|
|
188
|
-
end
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Parameters
|
|
192
|
-
|
|
193
|
-
Name | Type | Description | Notes
|
|
194
|
-
------------- | ------------- | ------------- | -------------
|
|
195
|
-
**new_job** | [**NewJob**](NewJob.md)| New Job Object |
|
|
196
|
-
|
|
197
|
-
### Return type
|
|
198
|
-
|
|
199
|
-
[**JobRef**](JobRef.md)
|
|
200
|
-
|
|
201
|
-
### Authorization
|
|
202
|
-
|
|
203
|
-
No authorization required
|
|
204
|
-
|
|
205
|
-
### HTTP request headers
|
|
206
|
-
|
|
207
|
-
- **Content-Type**: application/json
|
|
208
|
-
- **Accept**: application/json
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
# **parent_job_post**
|
|
213
|
-
> JobRef parent_job_post(new_parent_job)
|
|
214
|
-
|
|
215
|
-
Parent Job
|
|
216
|
-
|
|
217
|
-
Create a parent job
|
|
218
|
-
|
|
219
|
-
### Example
|
|
220
|
-
```ruby
|
|
221
|
-
# load the gem
|
|
222
|
-
require 'allq_rest'
|
|
223
|
-
|
|
224
|
-
api_instance = Allq::ActionsApi.new
|
|
225
|
-
|
|
226
|
-
new_parent_job = Allq::NewParentJob.new # NewParentJob | New Parent Job Data
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
begin
|
|
230
|
-
#Parent Job
|
|
231
|
-
result = api_instance.parent_job_post(new_parent_job)
|
|
232
|
-
p result
|
|
233
|
-
rescue Allq::ApiError => e
|
|
234
|
-
puts "Exception when calling ActionsApi->parent_job_post: #{e}"
|
|
235
|
-
end
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Parameters
|
|
239
|
-
|
|
240
|
-
Name | Type | Description | Notes
|
|
241
|
-
------------- | ------------- | ------------- | -------------
|
|
242
|
-
**new_parent_job** | [**NewParentJob**](NewParentJob.md)| New Parent Job Data |
|
|
243
|
-
|
|
244
|
-
### Return type
|
|
245
|
-
|
|
246
|
-
[**JobRef**](JobRef.md)
|
|
247
|
-
|
|
248
|
-
### Authorization
|
|
249
|
-
|
|
250
|
-
No authorization required
|
|
251
|
-
|
|
252
|
-
### HTTP request headers
|
|
253
|
-
|
|
254
|
-
- **Content-Type**: application/json
|
|
255
|
-
- **Accept**: application/json
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
# **peek_get**
|
|
260
|
-
> JobResponse peek_get(tube, opts)
|
|
261
|
-
|
|
262
|
-
Peek
|
|
263
|
-
|
|
264
|
-
Peek at next job
|
|
265
|
-
|
|
266
|
-
### Example
|
|
267
|
-
```ruby
|
|
268
|
-
# load the gem
|
|
269
|
-
require 'allq_rest'
|
|
270
|
-
|
|
271
|
-
api_instance = Allq::ActionsApi.new
|
|
272
|
-
|
|
273
|
-
tube = "tube_example" # String | Tube name
|
|
274
|
-
|
|
275
|
-
opts = {
|
|
276
|
-
buried: "false" # String | Look in buried
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
begin
|
|
280
|
-
#Peek
|
|
281
|
-
result = api_instance.peek_get(tube, opts)
|
|
282
|
-
p result
|
|
283
|
-
rescue Allq::ApiError => e
|
|
284
|
-
puts "Exception when calling ActionsApi->peek_get: #{e}"
|
|
285
|
-
end
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### Parameters
|
|
289
|
-
|
|
290
|
-
Name | Type | Description | Notes
|
|
291
|
-
------------- | ------------- | ------------- | -------------
|
|
292
|
-
**tube** | **String**| Tube name |
|
|
293
|
-
**buried** | **String**| Look in buried | [optional] [default to false]
|
|
294
|
-
|
|
295
|
-
### Return type
|
|
296
|
-
|
|
297
|
-
[**JobResponse**](JobResponse.md)
|
|
298
|
-
|
|
299
|
-
### Authorization
|
|
300
|
-
|
|
301
|
-
No authorization required
|
|
302
|
-
|
|
303
|
-
### HTTP request headers
|
|
304
|
-
|
|
305
|
-
- **Content-Type**: application/json
|
|
306
|
-
- **Accept**: application/json
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
# **release_put**
|
|
311
|
-
> BasicResponse release_put(job_id)
|
|
312
|
-
|
|
313
|
-
Release
|
|
314
|
-
|
|
315
|
-
Releases job back into queue
|
|
316
|
-
|
|
317
|
-
### Example
|
|
318
|
-
```ruby
|
|
319
|
-
# load the gem
|
|
320
|
-
require 'allq_rest'
|
|
321
|
-
|
|
322
|
-
api_instance = Allq::ActionsApi.new
|
|
323
|
-
|
|
324
|
-
job_id = "job_id_example" # String | Job ID
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
begin
|
|
328
|
-
#Release
|
|
329
|
-
result = api_instance.release_put(job_id)
|
|
330
|
-
p result
|
|
331
|
-
rescue Allq::ApiError => e
|
|
332
|
-
puts "Exception when calling ActionsApi->release_put: #{e}"
|
|
333
|
-
end
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
### Parameters
|
|
337
|
-
|
|
338
|
-
Name | Type | Description | Notes
|
|
339
|
-
------------- | ------------- | ------------- | -------------
|
|
340
|
-
**job_id** | **String**| Job ID |
|
|
341
|
-
|
|
342
|
-
### Return type
|
|
343
|
-
|
|
344
|
-
[**BasicResponse**](BasicResponse.md)
|
|
345
|
-
|
|
346
|
-
### Authorization
|
|
347
|
-
|
|
348
|
-
No authorization required
|
|
349
|
-
|
|
350
|
-
### HTTP request headers
|
|
351
|
-
|
|
352
|
-
- **Content-Type**: application/json
|
|
353
|
-
- **Accept**: application/json
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
# **set_children_started_put**
|
|
358
|
-
> BasicResponse set_children_started_put(job_id)
|
|
359
|
-
|
|
360
|
-
Set Children Started
|
|
361
|
-
|
|
362
|
-
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.
|
|
363
|
-
|
|
364
|
-
### Example
|
|
365
|
-
```ruby
|
|
366
|
-
# load the gem
|
|
367
|
-
require 'allq_rest'
|
|
368
|
-
|
|
369
|
-
api_instance = Allq::ActionsApi.new
|
|
370
|
-
|
|
371
|
-
job_id = "job_id_example" # String | Job ID
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
begin
|
|
375
|
-
#Set Children Started
|
|
376
|
-
result = api_instance.set_children_started_put(job_id)
|
|
377
|
-
p result
|
|
378
|
-
rescue Allq::ApiError => e
|
|
379
|
-
puts "Exception when calling ActionsApi->set_children_started_put: #{e}"
|
|
380
|
-
end
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
### Parameters
|
|
384
|
-
|
|
385
|
-
Name | Type | Description | Notes
|
|
386
|
-
------------- | ------------- | ------------- | -------------
|
|
387
|
-
**job_id** | **String**| Job ID |
|
|
388
|
-
|
|
389
|
-
### Return type
|
|
390
|
-
|
|
391
|
-
[**BasicResponse**](BasicResponse.md)
|
|
392
|
-
|
|
393
|
-
### Authorization
|
|
394
|
-
|
|
395
|
-
No authorization required
|
|
396
|
-
|
|
397
|
-
### HTTP request headers
|
|
398
|
-
|
|
399
|
-
- **Content-Type**: application/json
|
|
400
|
-
- **Accept**: application/json
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
# **throttle_post**
|
|
405
|
-
> TubeRef throttle_post(throttle)
|
|
406
|
-
|
|
407
|
-
Throttle
|
|
408
|
-
|
|
409
|
-
Creates a throttle on a tube
|
|
410
|
-
|
|
411
|
-
### Example
|
|
412
|
-
```ruby
|
|
413
|
-
# load the gem
|
|
414
|
-
require 'allq_rest'
|
|
415
|
-
|
|
416
|
-
api_instance = Allq::ActionsApi.new
|
|
417
|
-
|
|
418
|
-
throttle = Allq::Throttle.new # Throttle | Throttle info
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
begin
|
|
422
|
-
#Throttle
|
|
423
|
-
result = api_instance.throttle_post(throttle)
|
|
424
|
-
p result
|
|
425
|
-
rescue Allq::ApiError => e
|
|
426
|
-
puts "Exception when calling ActionsApi->throttle_post: #{e}"
|
|
427
|
-
end
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
### Parameters
|
|
431
|
-
|
|
432
|
-
Name | Type | Description | Notes
|
|
433
|
-
------------- | ------------- | ------------- | -------------
|
|
434
|
-
**throttle** | [**Throttle**](Throttle.md)| Throttle info |
|
|
435
|
-
|
|
436
|
-
### Return type
|
|
437
|
-
|
|
438
|
-
[**TubeRef**](TubeRef.md)
|
|
439
|
-
|
|
440
|
-
### Authorization
|
|
441
|
-
|
|
442
|
-
No authorization required
|
|
443
|
-
|
|
444
|
-
### HTTP request headers
|
|
445
|
-
|
|
446
|
-
- **Content-Type**: application/json
|
|
447
|
-
- **Accept**: application/json
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
# **touch_put**
|
|
452
|
-
> BasicResponse touch_put(job_id)
|
|
453
|
-
|
|
454
|
-
Touch
|
|
455
|
-
|
|
456
|
-
Touch job
|
|
457
|
-
|
|
458
|
-
### Example
|
|
459
|
-
```ruby
|
|
460
|
-
# load the gem
|
|
461
|
-
require 'allq_rest'
|
|
462
|
-
|
|
463
|
-
api_instance = Allq::ActionsApi.new
|
|
464
|
-
|
|
465
|
-
job_id = "job_id_example" # String | Job ID
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
begin
|
|
469
|
-
#Touch
|
|
470
|
-
result = api_instance.touch_put(job_id)
|
|
471
|
-
p result
|
|
472
|
-
rescue Allq::ApiError => e
|
|
473
|
-
puts "Exception when calling ActionsApi->touch_put: #{e}"
|
|
474
|
-
end
|
|
475
|
-
```
|
|
476
|
-
|
|
477
|
-
### Parameters
|
|
478
|
-
|
|
479
|
-
Name | Type | Description | Notes
|
|
480
|
-
------------- | ------------- | ------------- | -------------
|
|
481
|
-
**job_id** | **String**| Job ID |
|
|
482
|
-
|
|
483
|
-
### Return type
|
|
484
|
-
|
|
485
|
-
[**BasicResponse**](BasicResponse.md)
|
|
486
|
-
|
|
487
|
-
### Authorization
|
|
488
|
-
|
|
489
|
-
No authorization required
|
|
490
|
-
|
|
491
|
-
### HTTP request headers
|
|
492
|
-
|
|
493
|
-
- **Content-Type**: application/json
|
|
494
|
-
- **Accept**: application/json
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
# **tube_delete**
|
|
499
|
-
> BasicResponse tube_delete(tube)
|
|
500
|
-
|
|
501
|
-
Clear Tube
|
|
502
|
-
|
|
503
|
-
Delete all contents of tube
|
|
504
|
-
|
|
505
|
-
### Example
|
|
506
|
-
```ruby
|
|
507
|
-
# load the gem
|
|
508
|
-
require 'allq_rest'
|
|
509
|
-
|
|
510
|
-
api_instance = Allq::ActionsApi.new
|
|
511
|
-
|
|
512
|
-
tube = "tube_example" # String | Tube Name
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
begin
|
|
516
|
-
#Clear Tube
|
|
517
|
-
result = api_instance.tube_delete(tube)
|
|
518
|
-
p result
|
|
519
|
-
rescue Allq::ApiError => e
|
|
520
|
-
puts "Exception when calling ActionsApi->tube_delete: #{e}"
|
|
521
|
-
end
|
|
522
|
-
```
|
|
523
|
-
|
|
524
|
-
### Parameters
|
|
525
|
-
|
|
526
|
-
Name | Type | Description | Notes
|
|
527
|
-
------------- | ------------- | ------------- | -------------
|
|
528
|
-
**tube** | **String**| Tube Name |
|
|
529
|
-
|
|
530
|
-
### Return type
|
|
531
|
-
|
|
532
|
-
[**BasicResponse**](BasicResponse.md)
|
|
533
|
-
|
|
534
|
-
### Authorization
|
|
535
|
-
|
|
536
|
-
No authorization required
|
|
537
|
-
|
|
538
|
-
### HTTP request headers
|
|
539
|
-
|
|
540
|
-
- **Content-Type**: application/json
|
|
541
|
-
- **Accept**: application/json
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
data/docs/AdminApi.md
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Allq::AdminApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost:8090*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**stats_get**](AdminApi.md#stats_get) | **GET** /stats | Stats
|
|
8
|
-
[**update_servers_put**](AdminApi.md#update_servers_put) | **PUT** /update_servers | Reset Server Urls
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# **stats_get**
|
|
12
|
-
> Array<StatsResults> stats_get
|
|
13
|
-
|
|
14
|
-
Stats
|
|
15
|
-
|
|
16
|
-
Get Stats
|
|
17
|
-
|
|
18
|
-
### Example
|
|
19
|
-
```ruby
|
|
20
|
-
# load the gem
|
|
21
|
-
require 'allq_rest'
|
|
22
|
-
|
|
23
|
-
api_instance = Allq::AdminApi.new
|
|
24
|
-
|
|
25
|
-
begin
|
|
26
|
-
#Stats
|
|
27
|
-
result = api_instance.stats_get
|
|
28
|
-
p result
|
|
29
|
-
rescue Allq::ApiError => e
|
|
30
|
-
puts "Exception when calling AdminApi->stats_get: #{e}"
|
|
31
|
-
end
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
This endpoint does not need any parameter.
|
|
36
|
-
|
|
37
|
-
### Return type
|
|
38
|
-
|
|
39
|
-
[**Array<StatsResults>**](StatsResults.md)
|
|
40
|
-
|
|
41
|
-
### Authorization
|
|
42
|
-
|
|
43
|
-
No authorization required
|
|
44
|
-
|
|
45
|
-
### HTTP request headers
|
|
46
|
-
|
|
47
|
-
- **Content-Type**: application/json
|
|
48
|
-
- **Accept**: application/json
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# **update_servers_put**
|
|
53
|
-
> BasicResponse update_servers_put(server_urls)
|
|
54
|
-
|
|
55
|
-
Reset Server Urls
|
|
56
|
-
|
|
57
|
-
Change server URLs
|
|
58
|
-
|
|
59
|
-
### Example
|
|
60
|
-
```ruby
|
|
61
|
-
# load the gem
|
|
62
|
-
require 'allq_rest'
|
|
63
|
-
|
|
64
|
-
api_instance = Allq::AdminApi.new
|
|
65
|
-
|
|
66
|
-
server_urls = "server_urls_example" # String | Comma Separated List URL String
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
begin
|
|
70
|
-
#Reset Server Urls
|
|
71
|
-
result = api_instance.update_servers_put(server_urls)
|
|
72
|
-
p result
|
|
73
|
-
rescue Allq::ApiError => e
|
|
74
|
-
puts "Exception when calling AdminApi->update_servers_put: #{e}"
|
|
75
|
-
end
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Parameters
|
|
79
|
-
|
|
80
|
-
Name | Type | Description | Notes
|
|
81
|
-
------------- | ------------- | ------------- | -------------
|
|
82
|
-
**server_urls** | **String**| Comma Separated List URL String |
|
|
83
|
-
|
|
84
|
-
### Return type
|
|
85
|
-
|
|
86
|
-
[**BasicResponse**](BasicResponse.md)
|
|
87
|
-
|
|
88
|
-
### Authorization
|
|
89
|
-
|
|
90
|
-
No authorization required
|
|
91
|
-
|
|
92
|
-
### HTTP request headers
|
|
93
|
-
|
|
94
|
-
- **Content-Type**: application/json
|
|
95
|
-
- **Accept**: application/json
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
data/docs/BasicPayload.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Allq::BasicPayload
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**action** | **String** | Name of action |
|
|
7
|
-
**job_id** | **String** | Job ID | [optional]
|
|
8
|
-
**error** | **String** | Error (If any) | [optional]
|
|
9
|
-
**job** | [**JobResponse**](JobResponse.md) | | [optional]
|
|
10
|
-
|
|
11
|
-
|
data/docs/BasicResponse.md
DELETED
data/docs/JobRef.md
DELETED
data/docs/JobResponse.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Allq::JobResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**id** | **String** | Job id | [optional]
|
|
7
|
-
**body** | **String** | Body |
|
|
8
|
-
**tube** | **String** | Tube name |
|
|
9
|
-
**expireds** | **Integer** | Expired count | [default to 0]
|
|
10
|
-
**releases** | **Integer** | Release count | [default to 0]
|
|
11
|
-
|
|
12
|
-
|
data/docs/NewJob.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Allq::NewJob
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**tube** | **String** | Tube name | [default to "default"]
|
|
7
|
-
**body** | **String** | Text payload | [default to "<BODY_TEXT>"]
|
|
8
|
-
**ttl** | **Integer** | Time to live when reserved (in seconds) | [default to 1200]
|
|
9
|
-
**delay** | **Integer** | Delay before becoming available for processing | [default to 0]
|
|
10
|
-
**priority** | **Integer** | Priority of job in tube | [default to 5]
|
|
11
|
-
**parent_id** | **String** | Parent job id (if applicable) | [optional]
|
|
12
|
-
|
|
13
|
-
|
data/docs/NewParentJob.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Allq::NewParentJob
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**tube** | **String** | Tube name | [default to "default"]
|
|
7
|
-
**body** | **String** | Text payload | [default to "<BODY_TEXT>"]
|
|
8
|
-
**ttl** | **Integer** | Time to live when reserved (in seconds) | [default to 1200]
|
|
9
|
-
**delay** | **Integer** | Delay before becoming available for processing | [default to 0]
|
|
10
|
-
**priority** | **Integer** | Priority of job in tube | [default to 5]
|
|
11
|
-
**parent_id** | **String** | Parent job id (if applicable) | [optional]
|
|
12
|
-
**timeout** | **Integer** | Timeout to run | [optional]
|
|
13
|
-
**run_on_timeout** | **BOOLEAN** | Execute job after timeout | [optional] [default to false]
|
|
14
|
-
**limit** | **Integer** | Number of children | [optional]
|
|
15
|
-
|
|
16
|
-
|