allq_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +111 -0
- data/Rakefile +8 -0
- data/allq_client.gemspec +46 -0
- data/docs/ActionsApi.md +544 -0
- data/docs/AdminApi.md +98 -0
- data/docs/BasicPayload.md +11 -0
- data/docs/BasicResponse.md +8 -0
- data/docs/JobRef.md +8 -0
- data/docs/JobResponse.md +12 -0
- data/docs/NewJob.md +13 -0
- data/docs/NewParentJob.md +16 -0
- data/docs/StatsInfo.md +9 -0
- data/docs/StatsResults.md +10 -0
- data/docs/StatsTube.md +14 -0
- data/docs/Throttle.md +9 -0
- data/docs/TubeRef.md +8 -0
- data/git_push.sh +55 -0
- data/lib/allq_client.rb +52 -0
- data/lib/allq_client/api/actions_api.rb +642 -0
- data/lib/allq_client/api/admin_api.rb +128 -0
- data/lib/allq_client/api_client.rb +388 -0
- data/lib/allq_client/api_error.rb +38 -0
- data/lib/allq_client/configuration.rb +202 -0
- data/lib/allq_client/models/basic_payload.rb +223 -0
- data/lib/allq_client/models/basic_response.rb +193 -0
- data/lib/allq_client/models/job_ref.rb +194 -0
- data/lib/allq_client/models/job_response.rb +253 -0
- data/lib/allq_client/models/new_job.rb +274 -0
- data/lib/allq_client/models/new_parent_job.rb +306 -0
- data/lib/allq_client/models/stats_info.rb +208 -0
- data/lib/allq_client/models/stats_results.rb +226 -0
- data/lib/allq_client/models/stats_tube.rb +289 -0
- data/lib/allq_client/models/throttle.rb +213 -0
- data/lib/allq_client/models/tube_ref.rb +194 -0
- data/lib/allq_client/version.rb +15 -0
- data/spec/api/actions_api_spec.rb +169 -0
- data/spec/api/admin_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/basic_payload_spec.rb +60 -0
- data/spec/models/basic_response_spec.rb +42 -0
- data/spec/models/job_ref_spec.rb +42 -0
- data/spec/models/job_response_spec.rb +66 -0
- data/spec/models/new_job_spec.rb +72 -0
- data/spec/models/new_parent_job_spec.rb +90 -0
- data/spec/models/stats_info_spec.rb +48 -0
- data/spec/models/stats_results_spec.rb +54 -0
- data/spec/models/stats_tube_spec.rb +78 -0
- data/spec/models/throttle_spec.rb +48 -0
- data/spec/models/tube_ref_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +292 -0
@@ -0,0 +1,42 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Allq::TubeRef
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'TubeRef' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Allq::TubeRef.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of TubeRef' do
|
31
|
+
it 'should create an instance of TubeRef' do
|
32
|
+
expect(@instance).to be_instance_of(Allq::TubeRef)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "tube"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,111 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# load the gem
|
14
|
+
require 'allq_client'
|
15
|
+
|
16
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
19
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
20
|
+
# files.
|
21
|
+
#
|
22
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
23
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
24
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
25
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
26
|
+
# a separate helper file that requires the additional dependencies and performs
|
27
|
+
# the additional setup, and require it from the spec files that actually need
|
28
|
+
# it.
|
29
|
+
#
|
30
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
31
|
+
# users commonly want.
|
32
|
+
#
|
33
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# rspec-expectations config goes here. You can use an alternate
|
36
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
|
+
# assertions if you prefer.
|
38
|
+
config.expect_with :rspec do |expectations|
|
39
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
40
|
+
# and `failure_message` of custom matchers include text for helper methods
|
41
|
+
# defined using `chain`, e.g.:
|
42
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
43
|
+
# # => "be bigger than 2 and smaller than 4"
|
44
|
+
# ...rather than:
|
45
|
+
# # => "be bigger than 2"
|
46
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
50
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
51
|
+
config.mock_with :rspec do |mocks|
|
52
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
53
|
+
# a real object. This is generally recommended, and will default to
|
54
|
+
# `true` in RSpec 4.
|
55
|
+
mocks.verify_partial_doubles = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# The settings below are suggested to provide a good initial experience
|
59
|
+
# with RSpec, but feel free to customize to your heart's content.
|
60
|
+
=begin
|
61
|
+
# These two settings work together to allow you to limit a spec run
|
62
|
+
# to individual examples or groups you care about by tagging them with
|
63
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
64
|
+
# get run.
|
65
|
+
config.filter_run :focus
|
66
|
+
config.run_all_when_everything_filtered = true
|
67
|
+
|
68
|
+
# Allows RSpec to persist some state between runs in order to support
|
69
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
70
|
+
# you configure your source control system to ignore this file.
|
71
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
72
|
+
|
73
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
74
|
+
# recommended. For more details, see:
|
75
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
76
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
78
|
+
config.disable_monkey_patching!
|
79
|
+
|
80
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
81
|
+
# be too noisy due to issues in dependencies.
|
82
|
+
config.warnings = true
|
83
|
+
|
84
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
85
|
+
# file, and it's useful to allow more verbose output when running an
|
86
|
+
# individual spec file.
|
87
|
+
if config.files_to_run.one?
|
88
|
+
# Use the documentation formatter for detailed output,
|
89
|
+
# unless a formatter has already been configured
|
90
|
+
# (e.g. via a command-line flag).
|
91
|
+
config.default_formatter = 'doc'
|
92
|
+
end
|
93
|
+
|
94
|
+
# Print the 10 slowest examples and example groups at the
|
95
|
+
# end of the spec run, to help surface which specs are running
|
96
|
+
# particularly slow.
|
97
|
+
config.profile_examples = 10
|
98
|
+
|
99
|
+
# Run specs in random order to surface order dependencies. If you find an
|
100
|
+
# order dependency and want to debug it, you can fix the order by providing
|
101
|
+
# the seed, which is printed after each run.
|
102
|
+
# --seed 1234
|
103
|
+
config.order = :random
|
104
|
+
|
105
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
106
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
107
|
+
# test failures related to randomization by passing the same `--seed` value
|
108
|
+
# as the one that triggered the failure.
|
109
|
+
Kernel.srand config.seed
|
110
|
+
=end
|
111
|
+
end
|
metadata
ADDED
@@ -0,0 +1,292 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: allq_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- support@blitline.com
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: typhoeus
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: json
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.1'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.1.0
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.1.0
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rspec
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '3.6'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.6.0
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.6'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 3.6.0
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: vcr
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3.0'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.1
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.0.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: webmock
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.24'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.24.3
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.24'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.24.3
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: autotest
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '4.4'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 4.4.6
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '4.4'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 4.4.6
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: autotest-rails-pure
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '4.1'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 4.1.2
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '4.1'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.1.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: autotest-growl
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.2'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.2.16
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.2'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.2.16
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: autotest-fsevent
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.2'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.2.12
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.2'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.2.12
|
193
|
+
description: Allq API Client
|
194
|
+
email:
|
195
|
+
- support@blitline.com
|
196
|
+
executables: []
|
197
|
+
extensions: []
|
198
|
+
extra_rdoc_files: []
|
199
|
+
files:
|
200
|
+
- Gemfile
|
201
|
+
- Gemfile.lock
|
202
|
+
- README.md
|
203
|
+
- Rakefile
|
204
|
+
- allq_client.gemspec
|
205
|
+
- docs/ActionsApi.md
|
206
|
+
- docs/AdminApi.md
|
207
|
+
- docs/BasicPayload.md
|
208
|
+
- docs/BasicResponse.md
|
209
|
+
- docs/JobRef.md
|
210
|
+
- docs/JobResponse.md
|
211
|
+
- docs/NewJob.md
|
212
|
+
- docs/NewParentJob.md
|
213
|
+
- docs/StatsInfo.md
|
214
|
+
- docs/StatsResults.md
|
215
|
+
- docs/StatsTube.md
|
216
|
+
- docs/Throttle.md
|
217
|
+
- docs/TubeRef.md
|
218
|
+
- git_push.sh
|
219
|
+
- lib/allq_client.rb
|
220
|
+
- lib/allq_client/api/actions_api.rb
|
221
|
+
- lib/allq_client/api/admin_api.rb
|
222
|
+
- lib/allq_client/api_client.rb
|
223
|
+
- lib/allq_client/api_error.rb
|
224
|
+
- lib/allq_client/configuration.rb
|
225
|
+
- lib/allq_client/models/basic_payload.rb
|
226
|
+
- lib/allq_client/models/basic_response.rb
|
227
|
+
- lib/allq_client/models/job_ref.rb
|
228
|
+
- lib/allq_client/models/job_response.rb
|
229
|
+
- lib/allq_client/models/new_job.rb
|
230
|
+
- lib/allq_client/models/new_parent_job.rb
|
231
|
+
- lib/allq_client/models/stats_info.rb
|
232
|
+
- lib/allq_client/models/stats_results.rb
|
233
|
+
- lib/allq_client/models/stats_tube.rb
|
234
|
+
- lib/allq_client/models/throttle.rb
|
235
|
+
- lib/allq_client/models/tube_ref.rb
|
236
|
+
- lib/allq_client/version.rb
|
237
|
+
- spec/api/actions_api_spec.rb
|
238
|
+
- spec/api/admin_api_spec.rb
|
239
|
+
- spec/api_client_spec.rb
|
240
|
+
- spec/configuration_spec.rb
|
241
|
+
- spec/models/basic_payload_spec.rb
|
242
|
+
- spec/models/basic_response_spec.rb
|
243
|
+
- spec/models/job_ref_spec.rb
|
244
|
+
- spec/models/job_response_spec.rb
|
245
|
+
- spec/models/new_job_spec.rb
|
246
|
+
- spec/models/new_parent_job_spec.rb
|
247
|
+
- spec/models/stats_info_spec.rb
|
248
|
+
- spec/models/stats_results_spec.rb
|
249
|
+
- spec/models/stats_tube_spec.rb
|
250
|
+
- spec/models/throttle_spec.rb
|
251
|
+
- spec/models/tube_ref_spec.rb
|
252
|
+
- spec/spec_helper.rb
|
253
|
+
homepage: http://www.blitline.com
|
254
|
+
licenses: []
|
255
|
+
metadata: {}
|
256
|
+
post_install_message:
|
257
|
+
rdoc_options: []
|
258
|
+
require_paths:
|
259
|
+
- lib
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '2.0'
|
265
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
requirements: []
|
271
|
+
rubyforge_project:
|
272
|
+
rubygems_version: 2.7.7
|
273
|
+
signing_key:
|
274
|
+
specification_version: 4
|
275
|
+
summary: Ruby client for Allq platform
|
276
|
+
test_files:
|
277
|
+
- spec/api/actions_api_spec.rb
|
278
|
+
- spec/api/admin_api_spec.rb
|
279
|
+
- spec/api_client_spec.rb
|
280
|
+
- spec/configuration_spec.rb
|
281
|
+
- spec/models/basic_payload_spec.rb
|
282
|
+
- spec/models/stats_info_spec.rb
|
283
|
+
- spec/models/job_ref_spec.rb
|
284
|
+
- spec/models/job_response_spec.rb
|
285
|
+
- spec/models/tube_ref_spec.rb
|
286
|
+
- spec/models/new_parent_job_spec.rb
|
287
|
+
- spec/models/basic_response_spec.rb
|
288
|
+
- spec/models/throttle_spec.rb
|
289
|
+
- spec/models/stats_tube_spec.rb
|
290
|
+
- spec/models/stats_results_spec.rb
|
291
|
+
- spec/models/new_job_spec.rb
|
292
|
+
- spec/spec_helper.rb
|