allq_rest 1.2.7 → 1.2.91

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: c894f6fe084a132d3a7c91b3950eb33720577989fe902f5b2e932fdd9906f5b1
4
- data.tar.gz: c223af34965d58659dd116568268ef12dad30c473dba5db0d894a8fbd01958e5
3
+ metadata.gz: b638d62c8cf9ec75847c00116a6fa74d9d5975d3b08ac28e65f81c6eed1f1586
4
+ data.tar.gz: 5c7442d1f7f126490019c34425c32eeb66750c99c88dd3ebea7fb2511d4cbdc6
5
5
  SHA512:
6
- metadata.gz: da34829fbc9288c6161c74b8f4595608c3e16568e34ae977e41960b2e9b36225af3acbece2b96f49df6245bbcc4c93e3f8aea608e0836a25402b7f73a5466e2d
7
- data.tar.gz: c69151989a83c5d1bf2344876430254dd88e32fdc9eeeba7e99cb562cde2ff4cc96dca19972231de53e0372d3f4c82db3901a3af82656bf02bc1676dc57a60ff
6
+ metadata.gz: 1a119227844d069d8b82c6163dd2522a2b7773f060f3d29928d597221154288bc8d0e9327d5e372ac2dbac9837452a9f888dc43950fe886b2410adfab7f66c81
7
+ data.tar.gz: 74b4526527e3e79dc0b94ba3dd767c2a419ee2f487bb2487a2b16e26900c72d0fa2f7d56bd37680589565f0b9fc8d4ce94791af142dbd7201adc804321ea7843
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.8)
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.7.gem
3
+ gem push allq_rest-1.2.91.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
@@ -67,7 +67,7 @@ module Allq
67
67
  :'parents' => :'Integer',
68
68
  :'throttle_size' => :'Integer',
69
69
  :'avg' => :'Integer',
70
- :'tps' => :'tps',
70
+ :'tps' => :'Integer',
71
71
  :'tube' => :'String'
72
72
  }
73
73
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.2
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = '1.2.7'
14
+ VERSION = '1.2.91'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allq_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - support@blitline.com
@@ -81,8 +81,6 @@ files:
81
81
  - Gemfile.lock
82
82
  - README.md
83
83
  - Rakefile
84
- - allq_rest-1.2.5.gem
85
- - allq_rest-1.2.6.gem
86
84
  - allq_rest.gemspec
87
85
  - deploy.sh
88
86
  - docs/ActionsApi.md
data/allq_rest-1.2.5.gem DELETED
Binary file
data/allq_rest-1.2.6.gem DELETED
Binary file