allq_rest 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +7 -7
  4. data/allq_rest.gemspec +1 -1
  5. data/deploy.sh +1 -1
  6. data/docs/ActionsApi.md +11 -11
  7. data/docs/AdminApi.md +2 -2
  8. data/lib/allq_rest.rb +53 -0
  9. data/lib/{allq_client → allq_rest}/.DS_Store +0 -0
  10. data/lib/{allq_client → allq_rest}/api/actions_api.rb +0 -0
  11. data/lib/{allq_client → allq_rest}/api/admin_api.rb +0 -0
  12. data/lib/{allq_client → allq_rest}/api_error.rb +0 -0
  13. data/lib/{allq_client/api_client.rb → allq_rest/api_rest.rb} +3 -3
  14. data/lib/{allq_client → allq_rest}/configuration.rb +0 -0
  15. data/lib/{allq_client → allq_rest}/models/basic_payload.rb +0 -0
  16. data/lib/{allq_client → allq_rest}/models/basic_response.rb +0 -0
  17. data/lib/{allq_client → allq_rest}/models/job_ref.rb +0 -0
  18. data/lib/{allq_client → allq_rest}/models/job_response.rb +0 -0
  19. data/lib/{allq_client → allq_rest}/models/multiple_job_response.rb +0 -0
  20. data/lib/{allq_client → allq_rest}/models/new_job.rb +15 -4
  21. data/lib/{allq_client → allq_rest}/models/new_parent_job.rb +0 -0
  22. data/lib/{allq_client → allq_rest}/models/stats_info.rb +0 -0
  23. data/lib/{allq_client → allq_rest}/models/stats_results.rb +1 -1
  24. data/lib/{allq_client → allq_rest}/models/stats_tube.rb +0 -0
  25. data/lib/{allq_client → allq_rest}/models/throttle.rb +0 -0
  26. data/lib/{allq_client → allq_rest}/models/tube_ref.rb +0 -0
  27. data/lib/{allq_client → allq_rest}/version.rb +1 -1
  28. data/spec/spec_helper.rb +1 -1
  29. metadata +22 -24
  30. data/allq_client-1.2.0.gem +0 -0
  31. data/allq_client.gemspec +0 -46
  32. data/lib/allq_client.rb +0 -53
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8686500c26bb7b3aed2588730c25b94afa670e69bcde92d7ca8c45fa47411b5c
4
- data.tar.gz: df4ff43537955e1f842c56a1804c8f00c0131196d666448df3bf6f4f03ecbda9
3
+ metadata.gz: e1a1a8fe859c0df12fda9d5f10a4c28a97242f8cc0303d607e20bb1f88097dd2
4
+ data.tar.gz: 2b378579419ee4318288e255bdee08ef75a039f93839cfd2f80dfcae7fed98f3
5
5
  SHA512:
6
- metadata.gz: 76720a631bf7f5a2b0d7b881b7ad44d724ea5a5631e713c32f4c04e1b3e03d779d95cca316b1d73745b241234cb8ac3f5c79ea45f76ea16d649c95b8bbc2b9e8
7
- data.tar.gz: a6528bb6d7bdf5d4143f7b18d5d74bcefc5caf73c73d480aff72113519528005eea1e75e3820740396c7d75e8073a3573e0b23efbd658782547b508d3faa564e
6
+ metadata.gz: 2838debac6b33fb9bdf2827436d7e650819b5e88af2f227d69e98944b6060c1cd55ce0512d787254851ff63f0687db48d38353741ed80b8ab651b97840dbc484
7
+ data.tar.gz: 203541dbc0ce07ef67d6c0fc31f7d8384bb2849b68c2cec5ae14a73683faebf33eddf88b1caf50e4f561e2a6b3a91ff2695601f4454dd7bf36e26ce107fbbbea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allq_client (1.0.0)
4
+ allq_rest (1.0.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -55,7 +55,7 @@ PLATFORMS
55
55
  ruby
56
56
 
57
57
  DEPENDENCIES
58
- allq_client!
58
+ allq_rest!
59
59
  autotest (~> 4.4, >= 4.4.6)
60
60
  autotest-fsevent (~> 0.2, >= 0.2.12)
61
61
  autotest-growl (~> 0.2, >= 0.2.16)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # allq_client
1
+ # allq_rest
2
2
 
3
3
  Allq - the Ruby gem for the AllQ
4
4
 
@@ -17,27 +17,27 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
17
17
  To build the Ruby code into a gem:
18
18
 
19
19
  ```shell
20
- gem build allq_client.gemspec
20
+ gem build allq_rest.gemspec
21
21
  ```
22
22
 
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./allq_client-1.0.0.gem
26
+ gem install ./allq_rest-1.0.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./allq_client-1.0.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./allq_rest-1.0.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'allq_client', '~> 1.0.0'
34
+ gem 'allq_rest', '~> 1.0.0'
35
35
 
36
36
  ### Install from Git
37
37
 
38
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
39
 
40
- gem 'allq_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
40
+ gem 'allq_rest', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
41
41
 
42
42
  ### Include the Ruby code directly
43
43
 
@@ -52,7 +52,7 @@ ruby -Ilib script.rb
52
52
  Please follow the [installation](#installation) procedure and then run the following code:
53
53
  ```ruby
54
54
  # Load the gem
55
- require 'allq_client'
55
+ require 'allq_rest'
56
56
 
57
57
  api_instance = Allq::ActionsApi.new
58
58
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  $:.push File.expand_path("../lib", __FILE__)
4
- require "allq_client/version"
4
+ require "allq_rest/version"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "allq_rest"
data/deploy.sh CHANGED
@@ -1,3 +1,3 @@
1
1
  echo "Did you update the version?"
2
2
  gem build allq_rest.gemspec
3
- gem push allq_rest-1.2.0.gem
3
+ gem push allq_rest-1.2.1.gem
@@ -27,7 +27,7 @@ Bury Job
27
27
  ### Example
28
28
  ```ruby
29
29
  # load the gem
30
- require 'allq_client'
30
+ require 'allq_rest'
31
31
 
32
32
  api_instance = Allq::ActionsApi.new
33
33
 
@@ -74,7 +74,7 @@ Finished Job
74
74
  ### Example
75
75
  ```ruby
76
76
  # load the gem
77
- require 'allq_client'
77
+ require 'allq_rest'
78
78
 
79
79
  api_instance = Allq::ActionsApi.new
80
80
 
@@ -125,7 +125,7 @@ Get job from queue
125
125
  ### Example
126
126
  ```ruby
127
127
  # load the gem
128
- require 'allq_client'
128
+ require 'allq_rest'
129
129
 
130
130
  api_instance = Allq::ActionsApi.new
131
131
 
@@ -172,7 +172,7 @@ Put job into queue
172
172
  ### Example
173
173
  ```ruby
174
174
  # load the gem
175
- require 'allq_client'
175
+ require 'allq_rest'
176
176
 
177
177
  api_instance = Allq::ActionsApi.new
178
178
 
@@ -219,7 +219,7 @@ Create a parent job
219
219
  ### Example
220
220
  ```ruby
221
221
  # load the gem
222
- require 'allq_client'
222
+ require 'allq_rest'
223
223
 
224
224
  api_instance = Allq::ActionsApi.new
225
225
 
@@ -266,7 +266,7 @@ Peek at next job
266
266
  ### Example
267
267
  ```ruby
268
268
  # load the gem
269
- require 'allq_client'
269
+ require 'allq_rest'
270
270
 
271
271
  api_instance = Allq::ActionsApi.new
272
272
 
@@ -317,7 +317,7 @@ Releases job back into queue
317
317
  ### Example
318
318
  ```ruby
319
319
  # load the gem
320
- require 'allq_client'
320
+ require 'allq_rest'
321
321
 
322
322
  api_instance = Allq::ActionsApi.new
323
323
 
@@ -364,7 +364,7 @@ When a parent job doesn't know how many children are going to be added, this is
364
364
  ### Example
365
365
  ```ruby
366
366
  # load the gem
367
- require 'allq_client'
367
+ require 'allq_rest'
368
368
 
369
369
  api_instance = Allq::ActionsApi.new
370
370
 
@@ -411,7 +411,7 @@ Creates a throttle on a tube
411
411
  ### Example
412
412
  ```ruby
413
413
  # load the gem
414
- require 'allq_client'
414
+ require 'allq_rest'
415
415
 
416
416
  api_instance = Allq::ActionsApi.new
417
417
 
@@ -458,7 +458,7 @@ Touch job
458
458
  ### Example
459
459
  ```ruby
460
460
  # load the gem
461
- require 'allq_client'
461
+ require 'allq_rest'
462
462
 
463
463
  api_instance = Allq::ActionsApi.new
464
464
 
@@ -505,7 +505,7 @@ Delete all contents of tube
505
505
  ### Example
506
506
  ```ruby
507
507
  # load the gem
508
- require 'allq_client'
508
+ require 'allq_rest'
509
509
 
510
510
  api_instance = Allq::ActionsApi.new
511
511
 
@@ -18,7 +18,7 @@ Get Stats
18
18
  ### Example
19
19
  ```ruby
20
20
  # load the gem
21
- require 'allq_client'
21
+ require 'allq_rest'
22
22
 
23
23
  api_instance = Allq::AdminApi.new
24
24
 
@@ -59,7 +59,7 @@ Change server URLs
59
59
  ### Example
60
60
  ```ruby
61
61
  # load the gem
62
- require 'allq_client'
62
+ require 'allq_rest'
63
63
 
64
64
  api_instance = Allq::AdminApi.new
65
65
 
@@ -0,0 +1,53 @@
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.2
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'allq_rest/api_client'
15
+ require 'allq_rest/api_error'
16
+ require 'allq_rest/version'
17
+ require 'allq_rest/configuration'
18
+
19
+ # Models
20
+ require 'allq_rest/models/basic_payload'
21
+ require 'allq_rest/models/basic_response'
22
+ require 'allq_rest/models/job_ref'
23
+ require 'allq_rest/models/job_response'
24
+ require 'allq_rest/models/multiple_job_response'
25
+ require 'allq_rest/models/new_job'
26
+ require 'allq_rest/models/new_parent_job'
27
+ require 'allq_rest/models/stats_info'
28
+ require 'allq_rest/models/stats_results'
29
+ require 'allq_rest/models/stats_tube'
30
+ require 'allq_rest/models/throttle'
31
+ require 'allq_rest/models/tube_ref'
32
+
33
+ # APIs
34
+ require 'allq_rest/api/actions_api'
35
+ require 'allq_rest/api/admin_api'
36
+
37
+ module Allq
38
+ class << self
39
+ # Customize default settings for the SDK using block.
40
+ # Allq.configure do |config|
41
+ # config.username = "xxx"
42
+ # config.password = "xxx"
43
+ # end
44
+ # If no block given, return the default Configuration object.
45
+ def configure
46
+ if block_given?
47
+ yield(Configuration.default)
48
+ else
49
+ Configuration.default
50
+ end
51
+ end
52
+ end
53
+ end
File without changes
@@ -18,7 +18,7 @@ require 'typhoeus'
18
18
  require 'uri'
19
19
 
20
20
  module Allq
21
- class ApiClient
21
+ class ApiRest
22
22
  # The Configuration object holding settings to be used in the API client.
23
23
  attr_accessor :config
24
24
 
@@ -27,7 +27,7 @@ module Allq
27
27
  # @return [Hash]
28
28
  attr_accessor :default_headers
29
29
 
30
- # Initializes the ApiClient
30
+ # Initializes the ApiRest
31
31
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
32
  def initialize(config = Configuration.default)
33
33
  @config = config
@@ -39,7 +39,7 @@ module Allq
39
39
  end
40
40
 
41
41
  def self.default
42
- @@default ||= ApiClient.new
42
+ @@default ||= ApiRest.new
43
43
  end
44
44
 
45
45
  # Call an API with given options.
@@ -33,6 +33,9 @@ module Allq
33
33
  # Parent job id (if applicable)
34
34
  attr_accessor :parent_id
35
35
 
36
+ # Shard key (if applicable)
37
+ attr_accessor :shard_key
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module Allq
41
44
  :'ttl' => :'ttl',
42
45
  :'delay' => :'delay',
43
46
  :'priority' => :'priority',
44
- :'parent_id' => :'parent_id'
47
+ :'parent_id' => :'parent_id',
48
+ :'shard_key' => :'shard_key'
45
49
  }
46
50
  end
47
51
 
@@ -53,7 +57,8 @@ module Allq
53
57
  :'ttl' => :'Integer',
54
58
  :'delay' => :'Integer',
55
59
  :'priority' => :'Integer',
56
- :'parent_id' => :'String'
60
+ :'parent_id' => :'String',
61
+ :'shard_key' => :'String'
57
62
  }
58
63
  end
59
64
 
@@ -98,6 +103,11 @@ module Allq
98
103
  if attributes.has_key?(:'parent_id')
99
104
  self.parent_id = attributes[:'parent_id']
100
105
  end
106
+
107
+ if attributes.has_key?(:'shard_key')
108
+ self.shard_key = attributes[:'shard_key']
109
+ end
110
+
101
111
  end
102
112
 
103
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,7 +158,8 @@ module Allq
148
158
  ttl == o.ttl &&
149
159
  delay == o.delay &&
150
160
  priority == o.priority &&
151
- parent_id == o.parent_id
161
+ parent_id == o.parent_id &&
162
+ shard_key = o.shard_key
152
163
  end
153
164
 
154
165
  # @see the `==` method
@@ -160,7 +171,7 @@ module Allq
160
171
  # Calculates hash code according to all attributes.
161
172
  # @return [Fixnum] Hash code
162
173
  def hash
163
- [tube, body, ttl, delay, priority, parent_id].hash
174
+ [tube, body, ttl, delay, priority, parent_id, shard_key].hash
164
175
  end
165
176
 
166
177
  # Builds the object from hash
@@ -202,7 +202,7 @@ module Allq
202
202
  end
203
203
  end
204
204
  else # model
205
- temp_model = SwaggerClient.const_get(type).new
205
+ temp_model = Allq.const_get(type).new
206
206
  temp_model.build_from_hash(value)
207
207
  end
208
208
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.2
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = '1.2.0'
14
+ VERSION = '1.2.1'
15
15
  end
@@ -11,7 +11,7 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  # load the gem
14
- require 'allq_client'
14
+ require 'allq_rest'
15
15
 
16
16
  # The following was generated by the `rspec --init` command. Conventionally, all
17
17
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allq_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - support@blitline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-05 00:00:00.000000000 Z
11
+ date: 2020-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -201,8 +201,6 @@ files:
201
201
  - Gemfile.lock
202
202
  - README.md
203
203
  - Rakefile
204
- - allq_client-1.2.0.gem
205
- - allq_client.gemspec
206
204
  - allq_rest.gemspec
207
205
  - deploy.sh
208
206
  - docs/ActionsApi.md
@@ -220,26 +218,26 @@ files:
220
218
  - docs/TubeRef.md
221
219
  - git_push.sh
222
220
  - lib/.DS_Store
223
- - lib/allq_client.rb
224
- - lib/allq_client/.DS_Store
225
- - lib/allq_client/api/actions_api.rb
226
- - lib/allq_client/api/admin_api.rb
227
- - lib/allq_client/api_client.rb
228
- - lib/allq_client/api_error.rb
229
- - lib/allq_client/configuration.rb
230
- - lib/allq_client/models/basic_payload.rb
231
- - lib/allq_client/models/basic_response.rb
232
- - lib/allq_client/models/job_ref.rb
233
- - lib/allq_client/models/job_response.rb
234
- - lib/allq_client/models/multiple_job_response.rb
235
- - lib/allq_client/models/new_job.rb
236
- - lib/allq_client/models/new_parent_job.rb
237
- - lib/allq_client/models/stats_info.rb
238
- - lib/allq_client/models/stats_results.rb
239
- - lib/allq_client/models/stats_tube.rb
240
- - lib/allq_client/models/throttle.rb
241
- - lib/allq_client/models/tube_ref.rb
242
- - lib/allq_client/version.rb
221
+ - lib/allq_rest.rb
222
+ - lib/allq_rest/.DS_Store
223
+ - lib/allq_rest/api/actions_api.rb
224
+ - lib/allq_rest/api/admin_api.rb
225
+ - lib/allq_rest/api_error.rb
226
+ - lib/allq_rest/api_rest.rb
227
+ - lib/allq_rest/configuration.rb
228
+ - lib/allq_rest/models/basic_payload.rb
229
+ - lib/allq_rest/models/basic_response.rb
230
+ - lib/allq_rest/models/job_ref.rb
231
+ - lib/allq_rest/models/job_response.rb
232
+ - lib/allq_rest/models/multiple_job_response.rb
233
+ - lib/allq_rest/models/new_job.rb
234
+ - lib/allq_rest/models/new_parent_job.rb
235
+ - lib/allq_rest/models/stats_info.rb
236
+ - lib/allq_rest/models/stats_results.rb
237
+ - lib/allq_rest/models/stats_tube.rb
238
+ - lib/allq_rest/models/throttle.rb
239
+ - lib/allq_rest/models/tube_ref.rb
240
+ - lib/allq_rest/version.rb
243
241
  - spec/.DS_Store
244
242
  - spec/api/actions_api_spec.rb
245
243
  - spec/api/admin_api_spec.rb
Binary file
@@ -1,46 +0,0 @@
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
@@ -1,53 +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.2
10
-
11
- =end
12
-
13
- # Common files
14
- require 'allq_client/api_client'
15
- require 'allq_client/api_error'
16
- require 'allq_client/version'
17
- require 'allq_client/configuration'
18
-
19
- # Models
20
- require 'allq_client/models/basic_payload'
21
- require 'allq_client/models/basic_response'
22
- require 'allq_client/models/job_ref'
23
- require 'allq_client/models/job_response'
24
- require 'allq_client/models/multiple_job_response'
25
- require 'allq_client/models/new_job'
26
- require 'allq_client/models/new_parent_job'
27
- require 'allq_client/models/stats_info'
28
- require 'allq_client/models/stats_results'
29
- require 'allq_client/models/stats_tube'
30
- require 'allq_client/models/throttle'
31
- require 'allq_client/models/tube_ref'
32
-
33
- # APIs
34
- require 'allq_client/api/actions_api'
35
- require 'allq_client/api/admin_api'
36
-
37
- module Allq
38
- class << self
39
- # Customize default settings for the SDK using block.
40
- # Allq.configure do |config|
41
- # config.username = "xxx"
42
- # config.password = "xxx"
43
- # end
44
- # If no block given, return the default Configuration object.
45
- def configure
46
- if block_given?
47
- yield(Configuration.default)
48
- else
49
- Configuration.default
50
- end
51
- end
52
- end
53
- end