allq_rest 1.2.6 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1408b8a497b82506fd034da76191cad3d63532784dc93126b21a22aa7301e4ff
4
- data.tar.gz: 902c1bff0103082afef6a355ed407ea5cf7c0a64d8cae21e9e70f329a233df72
3
+ metadata.gz: 2f62267dafa743bca08b6a57f36435778ccafad307b29a4c158ddd958ec58690
4
+ data.tar.gz: c26405c4594abe6a0c3d48d8a45ca75eff12617479badf6b44698c45079d940a
5
5
  SHA512:
6
- metadata.gz: bc3060e0d79318cff373dbf151aae42268548f136cabdc1170d55fb8ce94be248abceccecf4b0b59492d9bf7575ca744c0ef7d455ae1f8d7c8a7b9594d4218f0
7
- data.tar.gz: 52e03790fcce1e8fc5bc83ade3cc91532e2645755a242fe51617da9f7cfcd500c580010bab1a0ff5c06f2596cb213fe8e651ab3e717897eb4254604a6d29fec6
6
+ metadata.gz: e406da92c7bca9b85fb6560641fe53147117d272383a2e06328b5713b95568cfeca4cf4cd39739eae8516e00326ab8ade1bc2460bd6addebea19d0991e0fc1ff
7
+ data.tar.gz: 00c8f31bc45acd8daef28139758896489df29b696f6ffb1518ab5db5c4b061bde69714b379ab437598350ba34aaea01517223d59835f7d614b1bb00eeb376bb9
data/Gemfile.lock CHANGED
@@ -1,31 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allq_rest (1.2.5)
4
+ allq_rest (1.2.8)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ZenTest (4.12.0)
12
- addressable (2.7.0)
13
- public_suffix (>= 2.0.2, < 5.0)
14
- autotest (4.4.6)
15
- ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.17)
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
11
  diff-lcs (1.4.4)
23
- ethon (0.14.0)
12
+ ethon (0.15.0)
24
13
  ffi (>= 1.15.0)
25
- ffi (1.15.1)
26
- hashdiff (1.0.1)
27
- json (2.5.1)
28
- public_suffix (4.0.6)
14
+ ffi (1.15.5)
15
+ json (2.6.1)
29
16
  rake (12.0.0)
30
17
  rspec (3.9.0)
31
18
  rspec-core (~> 3.9.0)
@@ -40,30 +27,16 @@ GEM
40
27
  diff-lcs (>= 1.2.0, < 2.0)
41
28
  rspec-support (~> 3.9.0)
42
29
  rspec-support (3.9.3)
43
- safe_yaml (1.0.5)
44
- sys-uname (1.2.1)
45
- ffi (>= 1.0.0)
46
30
  typhoeus (1.4.0)
47
31
  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
32
 
54
33
  PLATFORMS
55
34
  ruby
56
35
 
57
36
  DEPENDENCIES
58
37
  allq_rest!
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
38
  rake (~> 12.0.0)
64
39
  rspec (~> 3.6, >= 3.6.0)
65
- vcr (~> 3.0, >= 3.0.1)
66
- webmock (~> 1.24, >= 1.24.3)
67
40
 
68
41
  BUNDLED WITH
69
42
  2.2.3
data/allq_rest.gemspec CHANGED
@@ -20,13 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
21
21
 
22
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
-
23
+
30
24
  s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
31
25
  s.test_files = `find spec/*`.split("\n")
32
26
  s.executables = []
data/deploy.sh CHANGED
@@ -1,3 +1,4 @@
1
1
  echo "Did you update the version?"
2
2
  gem build allq_rest.gemspec
3
- gem push allq_rest-1.2.6.gem
3
+ gem push allq_rest-1.2.9.gem
4
+ rm allq_rest-1.2.9.gem
@@ -74,6 +74,63 @@ module Allq
74
74
  end
75
75
  return data, status_code, headers
76
76
  end
77
+
78
+ # kick
79
+ # kick Job
80
+ # @param tube Job ID
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [BasicResponse]
83
+ def kick_put(tube, opts = {})
84
+ data, _status_code, _headers = kick_put_with_http_info(tube, opts)
85
+ data
86
+ end
87
+
88
+ # kick
89
+ # kick Job
90
+ # @param tube Job ID
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
93
+ def kick_put_with_http_info(tube, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: ActionsApi.kick_put ...'
96
+ end
97
+ # verify the required parameter 'tube' is set
98
+ if @api_client.config.client_side_validation && tube.nil?
99
+ fail ArgumentError, "Missing the required parameter 'tube' when calling ActionsApi.kick_put"
100
+ end
101
+ # resource path
102
+ local_var_path = '/kick'
103
+
104
+ # query parameters
105
+ query_params = {}
106
+ query_params[:'tube'] = tube
107
+
108
+ # header parameters
109
+ header_params = {}
110
+ # HTTP header 'Accept' (if needed)
111
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
+ # HTTP header 'Content-Type'
113
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
114
+
115
+ # form parameters
116
+ form_params = {}
117
+
118
+ # http body (model)
119
+ post_body = nil
120
+ auth_names = []
121
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => 'BasicResponse')
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: ActionsApi#kick_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+
77
134
  # Delete
78
135
  # Finished Job
79
136
  # @param job_id Job ID
@@ -55,6 +55,7 @@ module Allq
55
55
  # Initializes the object
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
+
58
59
  return unless attributes.is_a?(Hash)
59
60
 
60
61
  # convert string to symbol for hash key
@@ -36,6 +36,9 @@ module Allq
36
36
  # Average duration of job
37
37
  attr_accessor :avg
38
38
 
39
+ # Average duration of job
40
+ attr_accessor :tps
41
+
39
42
  # Name of tube
40
43
  attr_accessor :tube
41
44
 
@@ -49,6 +52,7 @@ module Allq
49
52
  :'parents' => :'parents',
50
53
  :'throttle_size' => :'throttle_size',
51
54
  :'avg' => :'avg',
55
+ :'tps' => :'tps',
52
56
  :'tube' => :'tube'
53
57
  }
54
58
  end
@@ -63,6 +67,7 @@ module Allq
63
67
  :'parents' => :'Integer',
64
68
  :'throttle_size' => :'Integer',
65
69
  :'avg' => :'Integer',
70
+ :'tps' => :'Integer',
66
71
  :'tube' => :'String'
67
72
  }
68
73
  end
@@ -113,6 +118,10 @@ module Allq
113
118
  self.avg = attributes[:'avg']
114
119
  end
115
120
 
121
+ if attributes.has_key?(:'tps')
122
+ self.tps = attributes[:'tps']
123
+ end
124
+
116
125
  if attributes.has_key?(:'tube')
117
126
  self.tube = attributes[:'tube']
118
127
  end
@@ -146,6 +155,13 @@ module Allq
146
155
  invalid_properties.push('invalid value for "tube", tube cannot be nil.')
147
156
  end
148
157
 
158
+ if @avg.nil?
159
+ invalid_properties.push('invalid value for "avg", avg cannot be nil.')
160
+ end
161
+
162
+ if @tps.nil?
163
+ invalid_properties.push('invalid value for "tps", tps cannot be nil.')
164
+ end
149
165
  invalid_properties
150
166
  end
151
167
 
@@ -157,6 +173,8 @@ module Allq
157
173
  return false if @reserved.nil?
158
174
  return false if @buried.nil?
159
175
  return false if @parents.nil?
176
+ return false if @avg.nil?
177
+ return false if @tps.nil?
160
178
  return false if @tube.nil?
161
179
  true
162
180
  end
@@ -173,6 +191,7 @@ module Allq
173
191
  parents == o.parents &&
174
192
  throttle_size == o.throttle_size &&
175
193
  avg == o.avg &&
194
+ tps == o.tps &&
176
195
  tube == o.tube
177
196
  end
178
197
 
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.2
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = '1.2.6'
14
+ VERSION = '1.2.9'
15
15
  end
@@ -46,6 +46,21 @@ describe 'ActionsApi' do
46
46
  end
47
47
  end
48
48
 
49
+ # unit tests for get_stats
50
+ # Bury
51
+ # Bury Job
52
+ # @param job_id Job ID
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [BasicResponse]
55
+ describe 'get_stats test' do
56
+ it "should work" do
57
+ @allq_tool.add_job
58
+ output = @admin_tools.stats_get[0].stats[0]
59
+ data = output.tps
60
+ expect(data).not_to be_nil
61
+ end
62
+ end
63
+
49
64
  # unit tests for bury_put
50
65
  # Bury
51
66
  # Bury Job
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.6
4
+ version: 1.2.9
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: 2021-08-09 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -70,126 +70,6 @@ dependencies:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '3.6'
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
73
  description: Allq API Client
194
74
  email:
195
75
  - support@blitline.com
@@ -201,7 +81,6 @@ files:
201
81
  - Gemfile.lock
202
82
  - README.md
203
83
  - Rakefile
204
- - allq_rest-1.2.5.gem
205
84
  - allq_rest.gemspec
206
85
  - deploy.sh
207
86
  - docs/ActionsApi.md
data/allq_rest-1.2.5.gem DELETED
Binary file