allq_rest 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +111 -0
  5. data/Rakefile +8 -0
  6. data/allq_client-1.2.0.gem +0 -0
  7. data/allq_client.gemspec +46 -0
  8. data/allq_rest.gemspec +34 -0
  9. data/deploy.sh +3 -0
  10. data/docs/ActionsApi.md +544 -0
  11. data/docs/AdminApi.md +98 -0
  12. data/docs/BasicPayload.md +11 -0
  13. data/docs/BasicResponse.md +8 -0
  14. data/docs/JobRef.md +8 -0
  15. data/docs/JobResponse.md +12 -0
  16. data/docs/NewJob.md +13 -0
  17. data/docs/NewParentJob.md +16 -0
  18. data/docs/StatsInfo.md +9 -0
  19. data/docs/StatsResults.md +10 -0
  20. data/docs/StatsTube.md +14 -0
  21. data/docs/Throttle.md +9 -0
  22. data/docs/TubeRef.md +8 -0
  23. data/git_push.sh +55 -0
  24. data/lib/.DS_Store +0 -0
  25. data/lib/allq_client.rb +53 -0
  26. data/lib/allq_client/.DS_Store +0 -0
  27. data/lib/allq_client/api/actions_api.rb +702 -0
  28. data/lib/allq_client/api/admin_api.rb +181 -0
  29. data/lib/allq_client/api_client.rb +388 -0
  30. data/lib/allq_client/api_error.rb +38 -0
  31. data/lib/allq_client/configuration.rb +202 -0
  32. data/lib/allq_client/models/basic_payload.rb +218 -0
  33. data/lib/allq_client/models/basic_response.rb +188 -0
  34. data/lib/allq_client/models/job_ref.rb +190 -0
  35. data/lib/allq_client/models/job_response.rb +249 -0
  36. data/lib/allq_client/models/multiple_job_response.rb +187 -0
  37. data/lib/allq_client/models/new_job.rb +270 -0
  38. data/lib/allq_client/models/new_parent_job.rb +302 -0
  39. data/lib/allq_client/models/stats_info.rb +204 -0
  40. data/lib/allq_client/models/stats_results.rb +253 -0
  41. data/lib/allq_client/models/stats_tube.rb +285 -0
  42. data/lib/allq_client/models/throttle.rb +209 -0
  43. data/lib/allq_client/models/tube_ref.rb +190 -0
  44. data/lib/allq_client/version.rb +15 -0
  45. data/spec/.DS_Store +0 -0
  46. data/spec/api/actions_api_spec.rb +575 -0
  47. data/spec/api/admin_api_spec.rb +58 -0
  48. data/spec/api_client_spec.rb +226 -0
  49. data/spec/configuration_spec.rb +42 -0
  50. data/spec/models/basic_payload_spec.rb +60 -0
  51. data/spec/models/basic_response_spec.rb +42 -0
  52. data/spec/models/job_ref_spec.rb +42 -0
  53. data/spec/models/job_response_spec.rb +66 -0
  54. data/spec/models/new_job_spec.rb +72 -0
  55. data/spec/models/new_parent_job_spec.rb +90 -0
  56. data/spec/models/stats_info_spec.rb +48 -0
  57. data/spec/models/stats_results_spec.rb +54 -0
  58. data/spec/models/stats_tube_spec.rb +78 -0
  59. data/spec/models/throttle_spec.rb +48 -0
  60. data/spec/models/tube_ref_spec.rb +42 -0
  61. data/spec/spec_helper.rb +111 -0
  62. metadata +299 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8686500c26bb7b3aed2588730c25b94afa670e69bcde92d7ca8c45fa47411b5c
4
+ data.tar.gz: df4ff43537955e1f842c56a1804c8f00c0131196d666448df3bf6f4f03ecbda9
5
+ SHA512:
6
+ metadata.gz: 76720a631bf7f5a2b0d7b881b7ad44d724ea5a5631e713c32f4c04e1b3e03d779d95cca316b1d73745b241234cb8ac3f5c79ea45f76ea16d649c95b8bbc2b9e8
7
+ data.tar.gz: a6528bb6d7bdf5d4143f7b18d5d74bcefc5caf73c73d480aff72113519528005eea1e75e3820740396c7d75e8073a3573e0b23efbd658782547b508d3faa564e
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ end
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ allq_client (1.0.0)
5
+ json (~> 2.1, >= 2.1.0)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ZenTest (4.11.1)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ autotest (4.4.6)
15
+ ZenTest (>= 4.4.1)
16
+ autotest-fsevent (0.2.14)
17
+ sys-uname
18
+ autotest-growl (0.2.16)
19
+ autotest-rails-pure (4.1.2)
20
+ crack (0.4.3)
21
+ safe_yaml (~> 1.0.0)
22
+ diff-lcs (1.3)
23
+ ethon (0.11.0)
24
+ ffi (>= 1.3.0)
25
+ ffi (1.9.25)
26
+ hashdiff (0.3.7)
27
+ json (2.1.0)
28
+ public_suffix (3.0.3)
29
+ rake (12.0.0)
30
+ rspec (3.8.0)
31
+ rspec-core (~> 3.8.0)
32
+ rspec-expectations (~> 3.8.0)
33
+ rspec-mocks (~> 3.8.0)
34
+ rspec-core (3.8.0)
35
+ rspec-support (~> 3.8.0)
36
+ rspec-expectations (3.8.2)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.8.0)
39
+ rspec-mocks (3.8.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-support (3.8.0)
43
+ safe_yaml (1.0.4)
44
+ sys-uname (1.0.3)
45
+ ffi (>= 1.0.0)
46
+ typhoeus (1.3.0)
47
+ ethon (>= 0.9.0)
48
+ vcr (3.0.3)
49
+ webmock (1.24.6)
50
+ addressable (>= 2.3.6)
51
+ crack (>= 0.3.2)
52
+ hashdiff
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ allq_client!
59
+ autotest (~> 4.4, >= 4.4.6)
60
+ autotest-fsevent (~> 0.2, >= 0.2.12)
61
+ autotest-growl (~> 0.2, >= 0.2.16)
62
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
63
+ rake (~> 12.0.0)
64
+ rspec (~> 3.6, >= 3.6.0)
65
+ vcr (~> 3.0, >= 3.0.1)
66
+ webmock (~> 1.24, >= 1.24.3)
67
+
68
+ BUNDLED WITH
69
+ 1.16.2
@@ -0,0 +1,111 @@
1
+ # allq_client
2
+
3
+ Allq - the Ruby gem for the AllQ
4
+
5
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
+
9
+ - API version: 1.0
10
+ - Package version: 1.0.0
11
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build allq_client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./allq_client-1.0.0.gem
27
+ ```
28
+ (for development, run `gem install --dev ./allq_client-1.0.0.gem` to install the development dependencies)
29
+
30
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
+
32
+ Finally add this to the Gemfile:
33
+
34
+ gem 'allq_client', '~> 1.0.0'
35
+
36
+ ### Install from Git
37
+
38
+ If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
39
+
40
+ gem 'allq_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
41
+
42
+ ### Include the Ruby code directly
43
+
44
+ Include the Ruby code directly using `-I` as follows:
45
+
46
+ ```shell
47
+ ruby -Ilib script.rb
48
+ ```
49
+
50
+ ## Getting Started
51
+
52
+ Please follow the [installation](#installation) procedure and then run the following code:
53
+ ```ruby
54
+ # Load the gem
55
+ require 'allq_client'
56
+
57
+ api_instance = Allq::ActionsApi.new
58
+
59
+ job_id = "job_id_example" # String | Job ID
60
+
61
+
62
+ begin
63
+ #Bury
64
+ result = api_instance.bury_put(job_id)
65
+ p result
66
+ rescue Allq::ApiError => e
67
+ puts "Exception when calling ActionsApi->bury_put: #{e}"
68
+ end
69
+
70
+ ```
71
+
72
+ ## Documentation for API Endpoints
73
+
74
+ All URIs are relative to *http://localhost:8090*
75
+
76
+ Class | Method | HTTP request | Description
77
+ ------------ | ------------- | ------------- | -------------
78
+ *Allq::ActionsApi* | [**bury_put**](docs/ActionsApi.md#bury_put) | **PUT** /bury | Bury
79
+ *Allq::ActionsApi* | [**job_delete**](docs/ActionsApi.md#job_delete) | **DELETE** /job | Delete
80
+ *Allq::ActionsApi* | [**job_get**](docs/ActionsApi.md#job_get) | **GET** /job | Job
81
+ *Allq::ActionsApi* | [**job_post**](docs/ActionsApi.md#job_post) | **POST** /job | Job
82
+ *Allq::ActionsApi* | [**parent_job_post**](docs/ActionsApi.md#parent_job_post) | **POST** /parent_job | Parent Job
83
+ *Allq::ActionsApi* | [**peek_get**](docs/ActionsApi.md#peek_get) | **GET** /peek | Peek
84
+ *Allq::ActionsApi* | [**release_put**](docs/ActionsApi.md#release_put) | **PUT** /release | Release
85
+ *Allq::ActionsApi* | [**set_children_started_put**](docs/ActionsApi.md#set_children_started_put) | **PUT** /set_children_started | Set Children Started
86
+ *Allq::ActionsApi* | [**throttle_post**](docs/ActionsApi.md#throttle_post) | **POST** /throttle | Throttle
87
+ *Allq::ActionsApi* | [**touch_put**](docs/ActionsApi.md#touch_put) | **PUT** /touch | Touch
88
+ *Allq::ActionsApi* | [**tube_delete**](docs/ActionsApi.md#tube_delete) | **DELETE** /tube | Clear Tube
89
+ *Allq::AdminApi* | [**stats_get**](docs/AdminApi.md#stats_get) | **GET** /stats | Stats
90
+ *Allq::AdminApi* | [**update_servers_put**](docs/AdminApi.md#update_servers_put) | **PUT** /update_servers | Reset Server Urls
91
+
92
+
93
+ ## Documentation for Models
94
+
95
+ - [Allq::BasicPayload](docs/BasicPayload.md)
96
+ - [Allq::BasicResponse](docs/BasicResponse.md)
97
+ - [Allq::JobRef](docs/JobRef.md)
98
+ - [Allq::JobResponse](docs/JobResponse.md)
99
+ - [Allq::NewJob](docs/NewJob.md)
100
+ - [Allq::NewParentJob](docs/NewParentJob.md)
101
+ - [Allq::StatsInfo](docs/StatsInfo.md)
102
+ - [Allq::StatsResults](docs/StatsResults.md)
103
+ - [Allq::StatsTube](docs/StatsTube.md)
104
+ - [Allq::Throttle](docs/Throttle.md)
105
+ - [Allq::TubeRef](docs/TubeRef.md)
106
+
107
+
108
+ ## Documentation for Authorization
109
+
110
+ All endpoints do not require authorization.
111
+
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
Binary file
@@ -0,0 +1,46 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #AllQ
5
+
6
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7
+
8
+ OpenAPI spec version: 1.0
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 2.3.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "allq_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "allq_client"
20
+ s.version = Allq::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["support@blitline.com"]
23
+ s.email = ["support@blitline.com"]
24
+ s.homepage = "http://www.blitline.com"
25
+ s.summary = "Ruby client for Allq platform"
26
+ s.description = "Allq API Client"
27
+ # TODO uncommnet and update below with a proper license
28
+ #s.license = "Apache 2.0"
29
+ s.required_ruby_version = "> 2.3"
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33
+
34
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
41
+
42
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43
+ s.test_files = `find spec/*`.split("\n")
44
+ s.executables = []
45
+ s.require_paths = ["lib"]
46
+ end
@@ -0,0 +1,34 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ $:.push File.expand_path("../lib", __FILE__)
4
+ require "allq_client/version"
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "allq_rest"
8
+ s.version = Allq::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ["support@blitline.com"]
11
+ s.email = ["support@blitline.com"]
12
+ s.homepage = "http://www.blitline.com"
13
+ s.summary = "Ruby REST client for Allq platform"
14
+ s.description = "Allq API Client"
15
+ # TODO uncommnet and update below with a proper license
16
+ #s.license = "Apache 2.0"
17
+ s.required_ruby_version = "> 2.3"
18
+
19
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
20
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
21
+
22
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
23
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
24
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
25
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
26
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
27
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
28
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
29
+
30
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
31
+ s.test_files = `find spec/*`.split("\n")
32
+ s.executables = []
33
+ s.require_paths = ["lib"]
34
+ end
@@ -0,0 +1,3 @@
1
+ echo "Did you update the version?"
2
+ gem build allq_rest.gemspec
3
+ gem push allq_rest-1.2.0.gem
@@ -0,0 +1,544 @@
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_client'
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_client'
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 \&quot;ready\&quot; 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_client'
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_client'
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_client'
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_client'
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_client'
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_client'
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_client'
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_client'
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_client'
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
+