allq_client 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -0
  3. data/README.md +0 -0
  4. data/Rakefile +0 -0
  5. data/allq_client-1.1.0.gem +0 -0
  6. data/allq_client.gemspec +0 -0
  7. data/deploy.sh +3 -0
  8. data/docs/ActionsApi.md +0 -0
  9. data/docs/AdminApi.md +0 -0
  10. data/docs/BasicPayload.md +0 -0
  11. data/docs/BasicResponse.md +0 -0
  12. data/docs/JobRef.md +0 -0
  13. data/docs/JobResponse.md +0 -0
  14. data/docs/NewJob.md +0 -0
  15. data/docs/NewParentJob.md +0 -0
  16. data/docs/StatsInfo.md +0 -0
  17. data/docs/StatsResults.md +0 -0
  18. data/docs/StatsTube.md +0 -0
  19. data/docs/Throttle.md +0 -0
  20. data/docs/TubeRef.md +0 -0
  21. data/lib/.DS_Store +0 -0
  22. data/lib/allq_client.rb +2 -1
  23. data/lib/allq_client/.DS_Store +0 -0
  24. data/lib/allq_client/api/actions_api.rb +96 -45
  25. data/lib/allq_client/api/admin_api.rb +62 -9
  26. data/lib/allq_client/api_client.rb +9 -9
  27. data/lib/allq_client/api_error.rb +1 -1
  28. data/lib/allq_client/configuration.rb +2 -2
  29. data/lib/allq_client/models/basic_payload.rb +7 -12
  30. data/lib/allq_client/models/basic_response.rb +7 -12
  31. data/lib/allq_client/models/job_ref.rb +7 -11
  32. data/lib/allq_client/models/job_response.rb +10 -14
  33. data/lib/allq_client/models/multiple_job_response.rb +187 -0
  34. data/lib/allq_client/models/new_job.rb +14 -18
  35. data/lib/allq_client/models/new_parent_job.rb +14 -18
  36. data/lib/allq_client/models/stats_info.rb +8 -12
  37. data/lib/allq_client/models/stats_results.rb +9 -13
  38. data/lib/allq_client/models/stats_tube.rb +12 -16
  39. data/lib/allq_client/models/throttle.rb +9 -13
  40. data/lib/allq_client/models/tube_ref.rb +7 -11
  41. data/lib/allq_client/version.rb +2 -2
  42. data/spec/api/actions_api_spec.rb +414 -12
  43. data/spec/api/admin_api_spec.rb +0 -0
  44. data/spec/api_client_spec.rb +0 -0
  45. data/spec/configuration_spec.rb +0 -0
  46. data/spec/models/basic_payload_spec.rb +0 -0
  47. data/spec/models/basic_response_spec.rb +0 -0
  48. data/spec/models/job_ref_spec.rb +0 -0
  49. data/spec/models/job_response_spec.rb +0 -0
  50. data/spec/models/new_job_spec.rb +0 -0
  51. data/spec/models/new_parent_job_spec.rb +0 -0
  52. data/spec/models/stats_info_spec.rb +0 -0
  53. data/spec/models/stats_results_spec.rb +0 -0
  54. data/spec/models/stats_tube_spec.rb +0 -0
  55. data/spec/models/throttle_spec.rb +0 -0
  56. data/spec/models/tube_ref_spec.rb +0 -0
  57. data/spec/spec_helper.rb +0 -0
  58. metadata +7 -2
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -20,7 +20,6 @@ module Allq
20
20
 
21
21
  attr_accessor :info
22
22
 
23
-
24
23
  # Attribute mapping from ruby-style variable name to JSON key.
25
24
  def self.attribute_map
26
25
  {
@@ -43,7 +42,7 @@ module Allq
43
42
  return unless attributes.is_a?(Hash)
44
43
 
45
44
  # convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
46
 
48
47
  if attributes.has_key?(:'tube_name')
49
48
  self.tube_name = attributes[:'tube_name']
@@ -52,7 +51,6 @@ module Allq
52
51
  if attributes.has_key?(:'info')
53
52
  self.info = attributes[:'info']
54
53
  end
55
-
56
54
  end
57
55
 
58
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -60,14 +58,14 @@ module Allq
60
58
  def list_invalid_properties
61
59
  invalid_properties = Array.new
62
60
  if @tube_name.nil?
63
- invalid_properties.push("invalid value for 'tube_name', tube_name cannot be nil.")
61
+ invalid_properties.push('invalid value for "tube_name", tube_name cannot be nil.')
64
62
  end
65
63
 
66
64
  if @info.nil?
67
- invalid_properties.push("invalid value for 'info', info cannot be nil.")
65
+ invalid_properties.push('invalid value for "info", info cannot be nil.')
68
66
  end
69
67
 
70
- return invalid_properties
68
+ invalid_properties
71
69
  end
72
70
 
73
71
  # Check to see if the all the properties in the model are valid
@@ -75,7 +73,7 @@ module Allq
75
73
  def valid?
76
74
  return false if @tube_name.nil?
77
75
  return false if @info.nil?
78
- return true
76
+ true
79
77
  end
80
78
 
81
79
  # Checks equality by comparing each attribute.
@@ -109,7 +107,7 @@ module Allq
109
107
  # check to ensure the input is an array given that the the attribute
110
108
  # is documented as an array but the input is not
111
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
112
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
111
  end
114
112
  elsif !attributes[self.class.attribute_map[key]].nil?
115
113
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -191,7 +189,7 @@ module Allq
191
189
  # @return [Hash] Returns the value in the form of hash
192
190
  def _to_hash(value)
193
191
  if value.is_a?(Array)
194
- value.compact.map{ |v| _to_hash(v) }
192
+ value.compact.map { |v| _to_hash(v) }
195
193
  elsif value.is_a?(Hash)
196
194
  {}.tap do |hash|
197
195
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -202,7 +200,5 @@ module Allq
202
200
  value
203
201
  end
204
202
  end
205
-
206
203
  end
207
-
208
204
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -24,7 +24,6 @@ module Allq
24
24
  # Total actions taken on server
25
25
  attr_accessor :action_count
26
26
 
27
-
28
27
  # Attribute mapping from ruby-style variable name to JSON key.
29
28
  def self.attribute_map
30
29
  {
@@ -49,7 +48,7 @@ module Allq
49
48
  return unless attributes.is_a?(Hash)
50
49
 
51
50
  # convert string to symbol for hash key
52
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
52
 
54
53
  if attributes.has_key?(:'server_name')
55
54
  self.server_name = attributes[:'server_name']
@@ -64,7 +63,6 @@ module Allq
64
63
  if attributes.has_key?(:'action_count')
65
64
  self.action_count = attributes[:'action_count']
66
65
  end
67
-
68
66
  end
69
67
 
70
68
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,18 +70,18 @@ module Allq
72
70
  def list_invalid_properties
73
71
  invalid_properties = Array.new
74
72
  if @server_name.nil?
75
- invalid_properties.push("invalid value for 'server_name', server_name cannot be nil.")
73
+ invalid_properties.push('invalid value for "server_name", server_name cannot be nil.')
76
74
  end
77
75
 
78
76
  if @stats.nil?
79
- invalid_properties.push("invalid value for 'stats', stats cannot be nil.")
77
+ invalid_properties.push('invalid value for "stats", stats cannot be nil.')
80
78
  end
81
79
 
82
80
  if @action_count.nil?
83
- invalid_properties.push("invalid value for 'action_count', action_count cannot be nil.")
81
+ invalid_properties.push('invalid value for "action_count", action_count cannot be nil.')
84
82
  end
85
83
 
86
- return invalid_properties
84
+ invalid_properties
87
85
  end
88
86
 
89
87
  # Check to see if the all the properties in the model are valid
@@ -92,7 +90,7 @@ module Allq
92
90
  return false if @server_name.nil?
93
91
  return false if @stats.nil?
94
92
  return false if @action_count.nil?
95
- return true
93
+ true
96
94
  end
97
95
 
98
96
  # Checks equality by comparing each attribute.
@@ -127,7 +125,7 @@ module Allq
127
125
  # check to ensure the input is an array given that the the attribute
128
126
  # is documented as an array but the input is not
129
127
  if attributes[self.class.attribute_map[key]].is_a?(Array)
130
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
129
  end
132
130
  elsif !attributes[self.class.attribute_map[key]].nil?
133
131
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -209,7 +207,7 @@ module Allq
209
207
  # @return [Hash] Returns the value in the form of hash
210
208
  def _to_hash(value)
211
209
  if value.is_a?(Array)
212
- value.compact.map{ |v| _to_hash(v) }
210
+ value.compact.map { |v| _to_hash(v) }
213
211
  elsif value.is_a?(Hash)
214
212
  {}.tap do |hash|
215
213
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -220,7 +218,5 @@ module Allq
220
218
  value
221
219
  end
222
220
  end
223
-
224
221
  end
225
-
226
222
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -36,7 +36,6 @@ module Allq
36
36
  # Name of tube
37
37
  attr_accessor :tube
38
38
 
39
-
40
39
  # Attribute mapping from ruby-style variable name to JSON key.
41
40
  def self.attribute_map
42
41
  {
@@ -69,7 +68,7 @@ module Allq
69
68
  return unless attributes.is_a?(Hash)
70
69
 
71
70
  # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
72
 
74
73
  if attributes.has_key?(:'ready')
75
74
  self.ready = attributes[:'ready']
@@ -108,7 +107,6 @@ module Allq
108
107
  if attributes.has_key?(:'tube')
109
108
  self.tube = attributes[:'tube']
110
109
  end
111
-
112
110
  end
113
111
 
114
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,30 +114,30 @@ module Allq
116
114
  def list_invalid_properties
117
115
  invalid_properties = Array.new
118
116
  if @ready.nil?
119
- invalid_properties.push("invalid value for 'ready', ready cannot be nil.")
117
+ invalid_properties.push('invalid value for "ready", ready cannot be nil.')
120
118
  end
121
119
 
122
120
  if @delayed.nil?
123
- invalid_properties.push("invalid value for 'delayed', delayed cannot be nil.")
121
+ invalid_properties.push('invalid value for "delayed", delayed cannot be nil.')
124
122
  end
125
123
 
126
124
  if @reserved.nil?
127
- invalid_properties.push("invalid value for 'reserved', reserved cannot be nil.")
125
+ invalid_properties.push('invalid value for "reserved", reserved cannot be nil.')
128
126
  end
129
127
 
130
128
  if @buried.nil?
131
- invalid_properties.push("invalid value for 'buried', buried cannot be nil.")
129
+ invalid_properties.push('invalid value for "buried", buried cannot be nil.')
132
130
  end
133
131
 
134
132
  if @parents.nil?
135
- invalid_properties.push("invalid value for 'parents', parents cannot be nil.")
133
+ invalid_properties.push('invalid value for "parents", parents cannot be nil.')
136
134
  end
137
135
 
138
136
  if @tube.nil?
139
- invalid_properties.push("invalid value for 'tube', tube cannot be nil.")
137
+ invalid_properties.push('invalid value for "tube", tube cannot be nil.')
140
138
  end
141
139
 
142
- return invalid_properties
140
+ invalid_properties
143
141
  end
144
142
 
145
143
  # Check to see if the all the properties in the model are valid
@@ -151,7 +149,7 @@ module Allq
151
149
  return false if @buried.nil?
152
150
  return false if @parents.nil?
153
151
  return false if @tube.nil?
154
- return true
152
+ true
155
153
  end
156
154
 
157
155
  # Checks equality by comparing each attribute.
@@ -190,7 +188,7 @@ module Allq
190
188
  # check to ensure the input is an array given that the the attribute
191
189
  # is documented as an array but the input is not
192
190
  if attributes[self.class.attribute_map[key]].is_a?(Array)
193
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
191
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
194
192
  end
195
193
  elsif !attributes[self.class.attribute_map[key]].nil?
196
194
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -272,7 +270,7 @@ module Allq
272
270
  # @return [Hash] Returns the value in the form of hash
273
271
  def _to_hash(value)
274
272
  if value.is_a?(Array)
275
- value.compact.map{ |v| _to_hash(v) }
273
+ value.compact.map { |v| _to_hash(v) }
276
274
  elsif value.is_a?(Hash)
277
275
  {}.tap do |hash|
278
276
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -283,7 +281,5 @@ module Allq
283
281
  value
284
282
  end
285
283
  end
286
-
287
284
  end
288
-
289
285
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,6 @@ module Allq
21
21
  # Transactions per second
22
22
  attr_accessor :tps
23
23
 
24
-
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
26
25
  def self.attribute_map
27
26
  {
@@ -44,12 +43,12 @@ module Allq
44
43
  return unless attributes.is_a?(Hash)
45
44
 
46
45
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
48
  if attributes.has_key?(:'tube')
50
49
  self.tube = attributes[:'tube']
51
50
  else
52
- self.tube = "default"
51
+ self.tube = 'default'
53
52
  end
54
53
 
55
54
  if attributes.has_key?(:'tps')
@@ -57,7 +56,6 @@ module Allq
57
56
  else
58
57
  self.tps = 1000
59
58
  end
60
-
61
59
  end
62
60
 
63
61
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -65,14 +63,14 @@ module Allq
65
63
  def list_invalid_properties
66
64
  invalid_properties = Array.new
67
65
  if @tube.nil?
68
- invalid_properties.push("invalid value for 'tube', tube cannot be nil.")
66
+ invalid_properties.push('invalid value for "tube", tube cannot be nil.')
69
67
  end
70
68
 
71
69
  if @tps.nil?
72
- invalid_properties.push("invalid value for 'tps', tps cannot be nil.")
70
+ invalid_properties.push('invalid value for "tps", tps cannot be nil.')
73
71
  end
74
72
 
75
- return invalid_properties
73
+ invalid_properties
76
74
  end
77
75
 
78
76
  # Check to see if the all the properties in the model are valid
@@ -80,7 +78,7 @@ module Allq
80
78
  def valid?
81
79
  return false if @tube.nil?
82
80
  return false if @tps.nil?
83
- return true
81
+ true
84
82
  end
85
83
 
86
84
  # Checks equality by comparing each attribute.
@@ -114,7 +112,7 @@ module Allq
114
112
  # check to ensure the input is an array given that the the attribute
115
113
  # is documented as an array but the input is not
116
114
  if attributes[self.class.attribute_map[key]].is_a?(Array)
117
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
116
  end
119
117
  elsif !attributes[self.class.attribute_map[key]].nil?
120
118
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -196,7 +194,7 @@ module Allq
196
194
  # @return [Hash] Returns the value in the form of hash
197
195
  def _to_hash(value)
198
196
  if value.is_a?(Array)
199
- value.compact.map{ |v| _to_hash(v) }
197
+ value.compact.map { |v| _to_hash(v) }
200
198
  elsif value.is_a?(Hash)
201
199
  {}.tap do |hash|
202
200
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -207,7 +205,5 @@ module Allq
207
205
  value
208
206
  end
209
207
  end
210
-
211
208
  end
212
-
213
209
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module Allq
18
18
  # Name of tube
19
19
  attr_accessor :tube
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,12 +38,11 @@ module Allq
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'tube')
45
44
  self.tube = attributes[:'tube']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -52,17 +50,17 @@ module Allq
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
52
  if @tube.nil?
55
- invalid_properties.push("invalid value for 'tube', tube cannot be nil.")
53
+ invalid_properties.push('invalid value for "tube", tube cannot be nil.')
56
54
  end
57
55
 
58
- return invalid_properties
56
+ invalid_properties
59
57
  end
60
58
 
61
59
  # Check to see if the all the properties in the model are valid
62
60
  # @return true if the model is valid
63
61
  def valid?
64
62
  return false if @tube.nil?
65
- return true
63
+ true
66
64
  end
67
65
 
68
66
  # Checks equality by comparing each attribute.
@@ -95,7 +93,7 @@ module Allq
95
93
  # check to ensure the input is an array given that the the attribute
96
94
  # is documented as an array but the input is not
97
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
97
  end
100
98
  elsif !attributes[self.class.attribute_map[key]].nil?
101
99
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -177,7 +175,7 @@ module Allq
177
175
  # @return [Hash] Returns the value in the form of hash
178
176
  def _to_hash(value)
179
177
  if value.is_a?(Array)
180
- value.compact.map{ |v| _to_hash(v) }
178
+ value.compact.map { |v| _to_hash(v) }
181
179
  elsif value.is_a?(Hash)
182
180
  {}.tap do |hash|
183
181
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -188,7 +186,5 @@ module Allq
188
186
  value
189
187
  end
190
188
  end
191
-
192
189
  end
193
-
194
190
  end
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: 1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
13
13
  module Allq
14
- VERSION = "1.0.0"
14
+ VERSION = '1.1.1'
15
15
  end