allq_rest 1.2.8 → 1.2.92

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc1862b16571cc7c644e421f7f313837aca58f097813bd1e385c7500765baacd
4
- data.tar.gz: 5c80c7c1db250506edd77a4dae0d4344d5639e58809a6cb78b49ad5e19028405
3
+ metadata.gz: 898cf842c3c7aeb6154e7a2c010475719d1e72b4614ad07a273513f7e2178439
4
+ data.tar.gz: b972ebc4fda964acfbd37f59e0af0b6ae39277f69b0f224a7c8cf1a820a96cfb
5
5
  SHA512:
6
- metadata.gz: ef5285bf2a754fca8610c4a413cbfb942178b05ba9d9f5fd5426431246f39f57bcf149649d64deb7afddf1f517eb31de53b5d6c9b6195eaa0561d30c60dfd1d8
7
- data.tar.gz: 4fdc06551ba5d88609ffa54f01534c811a764beb418ee472c22f22f50e8d75acc45177d1ce8c7af212cce780de6609696266801d53153017986fd36dfaaec802
6
+ metadata.gz: 2899cf6969bf3a0a96162f54986ca947cb022e38fe82447310c4a0aa10e43ff710d57f9810af6e760defb44612d2938d401704ae5b544c322233fdbab13f7699
7
+ data.tar.gz: c5ea8417b1a60a40043ea4f109c05c222d4bebb47c0e8cd44903b6ec00b58077598e7022688e60d1ff6cab44d9bc9db905dcd2ed501ef340ee85fe35a985f166
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allq_rest (1.2.7)
4
+ allq_rest (1.2.91)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
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.8.gem
3
+ gem push allq_rest-1.2.92.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
@@ -66,8 +66,8 @@ module Allq
66
66
  :'buried' => :'Integer',
67
67
  :'parents' => :'Integer',
68
68
  :'throttle_size' => :'Integer',
69
- :'avg' => :'Integer',
70
- :'tps' => :'Integer',
69
+ :'avg' => :'Float',
70
+ :'tps' => :'Float',
71
71
  :'tube' => :'String'
72
72
  }
73
73
  end
@@ -155,13 +155,6 @@ module Allq
155
155
  invalid_properties.push('invalid value for "tube", tube cannot be nil.')
156
156
  end
157
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
165
158
  invalid_properties
166
159
  end
167
160
 
@@ -173,8 +166,6 @@ module Allq
173
166
  return false if @reserved.nil?
174
167
  return false if @buried.nil?
175
168
  return false if @parents.nil?
176
- return false if @avg.nil?
177
- return false if @tps.nil?
178
169
  return false if @tube.nil?
179
170
  true
180
171
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.2
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = '1.2.8'
14
+ VERSION = '1.2.92'
15
15
  end
@@ -55,7 +55,6 @@ describe 'ActionsApi' do
55
55
  describe 'get_stats test' do
56
56
  it "should work" do
57
57
  @allq_tool.add_job
58
- puts @admin_tools.stats_get[0].inspect
59
58
  output = @admin_tools.stats_get[0].stats[0]
60
59
  data = output.tps
61
60
  expect(data).not_to be_nil
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.8
4
+ version: 1.2.92
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: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus