allq_client 1.0.0 → 1.1.1
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 +4 -4
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/allq_client-1.1.0.gem +0 -0
- data/allq_client.gemspec +0 -0
- data/deploy.sh +3 -0
- data/docs/ActionsApi.md +0 -0
- data/docs/AdminApi.md +0 -0
- data/docs/BasicPayload.md +0 -0
- data/docs/BasicResponse.md +0 -0
- data/docs/JobRef.md +0 -0
- data/docs/JobResponse.md +0 -0
- data/docs/NewJob.md +0 -0
- data/docs/NewParentJob.md +0 -0
- data/docs/StatsInfo.md +0 -0
- data/docs/StatsResults.md +0 -0
- data/docs/StatsTube.md +0 -0
- data/docs/Throttle.md +0 -0
- data/docs/TubeRef.md +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/allq_client.rb +2 -1
- data/lib/allq_client/.DS_Store +0 -0
- data/lib/allq_client/api/actions_api.rb +96 -45
- data/lib/allq_client/api/admin_api.rb +62 -9
- data/lib/allq_client/api_client.rb +9 -9
- data/lib/allq_client/api_error.rb +1 -1
- data/lib/allq_client/configuration.rb +2 -2
- data/lib/allq_client/models/basic_payload.rb +7 -12
- data/lib/allq_client/models/basic_response.rb +7 -12
- data/lib/allq_client/models/job_ref.rb +7 -11
- data/lib/allq_client/models/job_response.rb +10 -14
- data/lib/allq_client/models/multiple_job_response.rb +187 -0
- data/lib/allq_client/models/new_job.rb +14 -18
- data/lib/allq_client/models/new_parent_job.rb +14 -18
- data/lib/allq_client/models/stats_info.rb +8 -12
- data/lib/allq_client/models/stats_results.rb +9 -13
- data/lib/allq_client/models/stats_tube.rb +12 -16
- data/lib/allq_client/models/throttle.rb +9 -13
- data/lib/allq_client/models/tube_ref.rb +7 -11
- data/lib/allq_client/version.rb +2 -2
- data/spec/api/actions_api_spec.rb +414 -12
- data/spec/api/admin_api_spec.rb +0 -0
- data/spec/api_client_spec.rb +0 -0
- data/spec/configuration_spec.rb +0 -0
- data/spec/models/basic_payload_spec.rb +0 -0
- data/spec/models/basic_response_spec.rb +0 -0
- data/spec/models/job_ref_spec.rb +0 -0
- data/spec/models/job_response_spec.rb +0 -0
- data/spec/models/new_job_spec.rb +0 -0
- data/spec/models/new_parent_job_spec.rb +0 -0
- data/spec/models/stats_info_spec.rb +0 -0
- data/spec/models/stats_results_spec.rb +0 -0
- data/spec/models/stats_tube_spec.rb +0 -0
- data/spec/models/throttle_spec.rb +0 -0
- data/spec/models/tube_ref_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +7 -2
@@ -6,11 +6,11 @@
|
|
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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module Allq
|
16
16
|
class AdminApi
|
@@ -19,14 +19,68 @@ module Allq
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Drain tube and delete it
|
23
|
+
# Drain Server
|
24
|
+
# @param server_id Server URL or ID
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [BasicResponse]
|
27
|
+
def drain_server(server_id, opts = {})
|
28
|
+
data, _status_code, _headers = drain_server_with_http_info(server_id, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Drain tube and delete it
|
33
|
+
# Drain Server
|
34
|
+
# @param server_id Server URL or ID
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
37
|
+
def drain_server_with_http_info(server_id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.drain_server ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'server_id' is set
|
42
|
+
if @api_client.config.client_side_validation && server_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling AdminApi.drain_server"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/drain'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
query_params[:'server_id'] = server_id
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
22
58
|
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = []
|
65
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'BasicResponse')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: AdminApi#drain_server\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
23
77
|
# Stats
|
24
78
|
# Get Stats
|
25
79
|
# @param [Hash] opts the optional parameters
|
26
80
|
# @return [Array<StatsResults>]
|
27
81
|
def stats_get(opts = {})
|
28
82
|
data, _status_code, _headers = stats_get_with_http_info(opts)
|
29
|
-
|
83
|
+
data
|
30
84
|
end
|
31
85
|
|
32
86
|
# Stats
|
@@ -35,10 +89,10 @@ module Allq
|
|
35
89
|
# @return [Array<(Array<StatsResults>, Fixnum, Hash)>] Array<StatsResults> data, response status code and response headers
|
36
90
|
def stats_get_with_http_info(opts = {})
|
37
91
|
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug
|
92
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.stats_get ...'
|
39
93
|
end
|
40
94
|
# resource path
|
41
|
-
local_var_path =
|
95
|
+
local_var_path = '/stats'
|
42
96
|
|
43
97
|
# query parameters
|
44
98
|
query_params = {}
|
@@ -68,7 +122,6 @@ module Allq
|
|
68
122
|
end
|
69
123
|
return data, status_code, headers
|
70
124
|
end
|
71
|
-
|
72
125
|
# Reset Server Urls
|
73
126
|
# Change server URLs
|
74
127
|
# @param server_urls Comma Separated List URL String
|
@@ -76,7 +129,7 @@ module Allq
|
|
76
129
|
# @return [BasicResponse]
|
77
130
|
def update_servers_put(server_urls, opts = {})
|
78
131
|
data, _status_code, _headers = update_servers_put_with_http_info(server_urls, opts)
|
79
|
-
|
132
|
+
data
|
80
133
|
end
|
81
134
|
|
82
135
|
# Reset Server Urls
|
@@ -86,14 +139,14 @@ module Allq
|
|
86
139
|
# @return [Array<(BasicResponse, Fixnum, Hash)>] BasicResponse data, response status code and response headers
|
87
140
|
def update_servers_put_with_http_info(server_urls, opts = {})
|
88
141
|
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug
|
142
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.update_servers_put ...'
|
90
143
|
end
|
91
144
|
# verify the required parameter 'server_urls' is set
|
92
145
|
if @api_client.config.client_side_validation && server_urls.nil?
|
93
146
|
fail ArgumentError, "Missing the required parameter 'server_urls' when calling AdminApi.update_servers_put"
|
94
147
|
end
|
95
148
|
# resource path
|
96
|
-
local_var_path =
|
149
|
+
local_var_path = '/update_servers'
|
97
150
|
|
98
151
|
# query parameters
|
99
152
|
query_params = {}
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,7 +33,7 @@ module Allq
|
|
33
33
|
@config = config
|
34
34
|
@user_agent = "Swagger-Codegen/#{VERSION}/ruby"
|
35
35
|
@default_headers = {
|
36
|
-
'Content-Type' =>
|
36
|
+
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
38
38
|
}
|
39
39
|
end
|
@@ -136,7 +136,7 @@ module Allq
|
|
136
136
|
# @param [String] mime MIME
|
137
137
|
# @return [Boolean] True if the MIME is application/json
|
138
138
|
def json_mime?(mime)
|
139
|
-
|
139
|
+
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
140
140
|
end
|
141
141
|
|
142
142
|
# Deserialize the response to the given return type.
|
@@ -200,12 +200,12 @@ module Allq
|
|
200
200
|
when /\AArray<(.+)>\z/
|
201
201
|
# e.g. Array<Pet>
|
202
202
|
sub_type = $1
|
203
|
-
data.map {|item| convert_to_type(item, sub_type) }
|
203
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
204
204
|
when /\AHash\<String, (.+)\>\z/
|
205
205
|
# e.g. Hash<String, Integer>
|
206
206
|
sub_type = $1
|
207
207
|
{}.tap do |hash|
|
208
|
-
data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
|
208
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
209
209
|
end
|
210
210
|
else
|
211
211
|
# models, e.g. Pet
|
@@ -227,7 +227,7 @@ module Allq
|
|
227
227
|
encoding = nil
|
228
228
|
request.on_headers do |response|
|
229
229
|
content_disposition = response.headers['Content-Disposition']
|
230
|
-
if content_disposition
|
230
|
+
if content_disposition && content_disposition =~ /filename=/i
|
231
231
|
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
232
232
|
prefix = sanitize_filename(filename)
|
233
233
|
else
|
@@ -326,7 +326,7 @@ module Allq
|
|
326
326
|
return nil if accepts.nil? || accepts.empty?
|
327
327
|
# use JSON when present, otherwise use all of the provided
|
328
328
|
json_accept = accepts.find { |s| json_mime?(s) }
|
329
|
-
|
329
|
+
json_accept || accepts.join(',')
|
330
330
|
end
|
331
331
|
|
332
332
|
# Return Content-Type header based on an array of content types provided.
|
@@ -337,7 +337,7 @@ module Allq
|
|
337
337
|
return 'application/json' if content_types.nil? || content_types.empty?
|
338
338
|
# use JSON when present, otherwise use the first one
|
339
339
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
340
|
-
|
340
|
+
json_content_type || content_types.first
|
341
341
|
end
|
342
342
|
|
343
343
|
# Convert object (array, hash, object, etc) to JSON string.
|
@@ -347,7 +347,7 @@ module Allq
|
|
347
347
|
return model if model.nil? || model.is_a?(String)
|
348
348
|
local_body = nil
|
349
349
|
if model.is_a?(Array)
|
350
|
-
local_body = model.map{|m| object_to_hash(m) }
|
350
|
+
local_body = model.map { |m| object_to_hash(m) }
|
351
351
|
else
|
352
352
|
local_body = object_to_hash(model)
|
353
353
|
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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module Allq
|
|
170
170
|
def base_path=(base_path)
|
171
171
|
# Add leading and trailing slashes to base_path
|
172
172
|
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
173
|
-
@base_path =
|
173
|
+
@base_path = '' if @base_path == '/'
|
174
174
|
end
|
175
175
|
|
176
176
|
def base_url
|
@@ -6,14 +6,13 @@
|
|
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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Allq
|
16
|
-
|
17
16
|
class BasicPayload
|
18
17
|
# Name of action
|
19
18
|
attr_accessor :action
|
@@ -26,7 +25,6 @@ module Allq
|
|
26
25
|
|
27
26
|
attr_accessor :job
|
28
27
|
|
29
|
-
|
30
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
29
|
def self.attribute_map
|
32
30
|
{
|
@@ -53,7 +51,7 @@ module Allq
|
|
53
51
|
return unless attributes.is_a?(Hash)
|
54
52
|
|
55
53
|
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
55
|
|
58
56
|
if attributes.has_key?(:'action')
|
59
57
|
self.action = attributes[:'action']
|
@@ -70,7 +68,6 @@ module Allq
|
|
70
68
|
if attributes.has_key?(:'job')
|
71
69
|
self.job = attributes[:'job']
|
72
70
|
end
|
73
|
-
|
74
71
|
end
|
75
72
|
|
76
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,17 +75,17 @@ module Allq
|
|
78
75
|
def list_invalid_properties
|
79
76
|
invalid_properties = Array.new
|
80
77
|
if @action.nil?
|
81
|
-
invalid_properties.push(
|
78
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
82
79
|
end
|
83
80
|
|
84
|
-
|
81
|
+
invalid_properties
|
85
82
|
end
|
86
83
|
|
87
84
|
# Check to see if the all the properties in the model are valid
|
88
85
|
# @return true if the model is valid
|
89
86
|
def valid?
|
90
87
|
return false if @action.nil?
|
91
|
-
|
88
|
+
true
|
92
89
|
end
|
93
90
|
|
94
91
|
# Checks equality by comparing each attribute.
|
@@ -124,7 +121,7 @@ module Allq
|
|
124
121
|
# check to ensure the input is an array given that the the attribute
|
125
122
|
# is documented as an array but the input is not
|
126
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
125
|
end
|
129
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -206,7 +203,7 @@ module Allq
|
|
206
203
|
# @return [Hash] Returns the value in the form of hash
|
207
204
|
def _to_hash(value)
|
208
205
|
if value.is_a?(Array)
|
209
|
-
value.compact.map{ |v| _to_hash(v) }
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
210
207
|
elsif value.is_a?(Hash)
|
211
208
|
{}.tap do |hash|
|
212
209
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -217,7 +214,5 @@ module Allq
|
|
217
214
|
value
|
218
215
|
end
|
219
216
|
end
|
220
|
-
|
221
217
|
end
|
222
|
-
|
223
218
|
end
|
@@ -6,18 +6,16 @@
|
|
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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Allq
|
16
|
-
|
17
16
|
class BasicResponse
|
18
17
|
attr_accessor :response
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,12 +36,11 @@ module Allq
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'response')
|
44
42
|
self.response = attributes[:'response']
|
45
43
|
end
|
46
|
-
|
47
44
|
end
|
48
45
|
|
49
46
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -51,17 +48,17 @@ module Allq
|
|
51
48
|
def list_invalid_properties
|
52
49
|
invalid_properties = Array.new
|
53
50
|
if @response.nil?
|
54
|
-
invalid_properties.push(
|
51
|
+
invalid_properties.push('invalid value for "response", response cannot be nil.')
|
55
52
|
end
|
56
53
|
|
57
|
-
|
54
|
+
invalid_properties
|
58
55
|
end
|
59
56
|
|
60
57
|
# Check to see if the all the properties in the model are valid
|
61
58
|
# @return true if the model is valid
|
62
59
|
def valid?
|
63
60
|
return false if @response.nil?
|
64
|
-
|
61
|
+
true
|
65
62
|
end
|
66
63
|
|
67
64
|
# Checks equality by comparing each attribute.
|
@@ -94,7 +91,7 @@ module Allq
|
|
94
91
|
# check to ensure the input is an array given that the the attribute
|
95
92
|
# is documented as an array but the input is not
|
96
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
94
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
98
95
|
end
|
99
96
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
100
97
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -176,7 +173,7 @@ module Allq
|
|
176
173
|
# @return [Hash] Returns the value in the form of hash
|
177
174
|
def _to_hash(value)
|
178
175
|
if value.is_a?(Array)
|
179
|
-
value.compact.map{ |v| _to_hash(v) }
|
176
|
+
value.compact.map { |v| _to_hash(v) }
|
180
177
|
elsif value.is_a?(Hash)
|
181
178
|
{}.tap do |hash|
|
182
179
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -187,7 +184,5 @@ module Allq
|
|
187
184
|
value
|
188
185
|
end
|
189
186
|
end
|
190
|
-
|
191
187
|
end
|
192
|
-
|
193
188
|
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.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ module Allq
|
|
18
18
|
# Job ID
|
19
19
|
attr_accessor :job_id
|
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?(:'job_id')
|
45
44
|
self.job_id = attributes[:'job_id']
|
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 @job_id.nil?
|
55
|
-
invalid_properties.push(
|
53
|
+
invalid_properties.push('invalid value for "job_id", job_id cannot be nil.')
|
56
54
|
end
|
57
55
|
|
58
|
-
|
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 @job_id.nil?
|
65
|
-
|
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
|