crx_packmgr_api_client 1.2.0 → 1.3.0

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.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +105 -0
  4. data/README.md +6 -7
  5. data/Rakefile +8 -0
  6. data/coverage/.last_run.json +5 -0
  7. data/coverage/.resultset.json +4814 -0
  8. data/coverage/.resultset.json.lock +0 -0
  9. data/coverage/assets/0.10.2/application.css +799 -0
  10. data/coverage/assets/0.10.2/application.js +1707 -0
  11. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  12. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  13. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  14. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  15. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  16. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  17. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  18. data/coverage/assets/0.10.2/loading.gif +0 -0
  19. data/coverage/assets/0.10.2/magnify.png +0 -0
  20. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  21. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  22. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  23. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  24. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  25. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  26. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  27. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  28. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  29. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  30. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  31. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  32. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  33. data/coverage/index.html +29254 -0
  34. data/crx_packmgr_api_client.gemspec +18 -15
  35. data/docs/DefaultApi.md +15 -15
  36. data/git_push.sh +31 -16
  37. data/lib/crx_packmgr_api_client.rb +2 -2
  38. data/lib/crx_packmgr_api_client/api/default_api.rb +68 -126
  39. data/lib/crx_packmgr_api_client/api_client.rb +61 -40
  40. data/lib/crx_packmgr_api_client/api_error.rb +9 -7
  41. data/lib/crx_packmgr_api_client/configuration.rb +9 -3
  42. data/lib/crx_packmgr_api_client/models/filter.rb +11 -16
  43. data/lib/crx_packmgr_api_client/models/filter_rule.rb +14 -18
  44. data/lib/crx_packmgr_api_client/models/group.rb +11 -16
  45. data/lib/crx_packmgr_api_client/models/group_list.rb +11 -16
  46. data/lib/crx_packmgr_api_client/models/init_data.rb +11 -16
  47. data/lib/crx_packmgr_api_client/models/install_status.rb +11 -16
  48. data/lib/crx_packmgr_api_client/models/install_status_status.rb +11 -16
  49. data/lib/crx_packmgr_api_client/models/package.rb +11 -16
  50. data/lib/crx_packmgr_api_client/models/package_list.rb +11 -16
  51. data/lib/crx_packmgr_api_client/models/service_exec_response.rb +11 -16
  52. data/lib/crx_packmgr_api_client/models/service_response.rb +11 -16
  53. data/lib/crx_packmgr_api_client/models/service_response_request.rb +11 -16
  54. data/lib/crx_packmgr_api_client/models/service_response_request_param.rb +11 -16
  55. data/lib/crx_packmgr_api_client/models/service_response_response.rb +11 -16
  56. data/lib/crx_packmgr_api_client/models/update_status.rb +11 -16
  57. data/lib/crx_packmgr_api_client/version.rb +3 -3
  58. data/spec/api/download_api_spec.rb +1 -1
  59. data/spec/api/screenshot_api_spec.rb +1 -1
  60. data/spec/api/thumbnail_api_spec.rb +1 -1
  61. metadata +104 -98
  62. data/crx_packmgr_api_client-0.2.0.gem +0 -0
  63. data/crx_packmgr_api_client-1.0.0.gem +0 -0
  64. data/crx_packmgr_api_client-1.1.0.gem +0 -0
  65. data/crx_packmgr_api_client-1.1.1.gem +0 -0
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CRX Package Manager API
2
+ CRX Package Manager API
3
3
 
4
- #API for interacting with the CRX Package Manager in AEM.
4
+ API for interacting with the CRX Package Manager in AEM.
5
5
 
6
6
  OpenAPI spec version: 6.2.0
7
7
  Contact: bryan.stopp@gmail.com
@@ -24,7 +24,6 @@ limitations under the License.
24
24
  require 'date'
25
25
 
26
26
  module CrxPackageManager
27
-
28
27
  class Package
29
28
  attr_accessor :pid
30
29
 
@@ -92,7 +91,6 @@ module CrxPackageManager
92
91
 
93
92
  attr_accessor :screenshots
94
93
 
95
-
96
94
  # Attribute mapping from ruby-style variable name to JSON key.
97
95
  def self.attribute_map
98
96
  {
@@ -177,7 +175,7 @@ module CrxPackageManager
177
175
  return unless attributes.is_a?(Hash)
178
176
 
179
177
  # convert string to symbol for hash key
180
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
178
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
181
179
 
182
180
  if attributes.has_key?(:'pid')
183
181
  self.pid = attributes[:'pid']
@@ -316,20 +314,19 @@ module CrxPackageManager
316
314
  self.screenshots = value
317
315
  end
318
316
  end
319
-
320
317
  end
321
318
 
322
319
  # Show invalid properties with the reasons. Usually used together with valid?
323
- # @return Array for valid properies with the reasons
320
+ # @return Array for valid properties with the reasons
324
321
  def list_invalid_properties
325
322
  invalid_properties = Array.new
326
- return invalid_properties
323
+ invalid_properties
327
324
  end
328
325
 
329
326
  # Check to see if the all the properties in the model are valid
330
327
  # @return true if the model is valid
331
328
  def valid?
332
- return true
329
+ true
333
330
  end
334
331
 
335
332
  # Checks equality by comparing each attribute.
@@ -390,11 +387,11 @@ module CrxPackageManager
390
387
  def build_from_hash(attributes)
391
388
  return nil unless attributes.is_a?(Hash)
392
389
  self.class.swagger_types.each_pair do |key, type|
393
- if type =~ /^Array<(.*)>/i
390
+ if type =~ /\AArray<(.*)>/i
394
391
  # check to ensure the input is an array given that the the attribute
395
392
  # is documented as an array but the input is not
396
393
  if attributes[self.class.attribute_map[key]].is_a?(Array)
397
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
394
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
398
395
  end
399
396
  elsif !attributes[self.class.attribute_map[key]].nil?
400
397
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -421,7 +418,7 @@ module CrxPackageManager
421
418
  when :Float
422
419
  value.to_f
423
420
  when :BOOLEAN
424
- if value.to_s =~ /^(true|t|yes|y|1)$/i
421
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
425
422
  true
426
423
  else
427
424
  false
@@ -432,7 +429,7 @@ module CrxPackageManager
432
429
  when /\AArray<(?<inner_type>.+)>\z/
433
430
  inner_type = Regexp.last_match[:inner_type]
434
431
  value.map { |v| _deserialize(inner_type, v) }
435
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
432
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
436
433
  k_type = Regexp.last_match[:k_type]
437
434
  v_type = Regexp.last_match[:v_type]
438
435
  {}.tap do |hash|
@@ -476,7 +473,7 @@ module CrxPackageManager
476
473
  # @return [Hash] Returns the value in the form of hash
477
474
  def _to_hash(value)
478
475
  if value.is_a?(Array)
479
- value.compact.map{ |v| _to_hash(v) }
476
+ value.compact.map { |v| _to_hash(v) }
480
477
  elsif value.is_a?(Hash)
481
478
  {}.tap do |hash|
482
479
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -487,7 +484,5 @@ module CrxPackageManager
487
484
  value
488
485
  end
489
486
  end
490
-
491
487
  end
492
-
493
488
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CRX Package Manager API
2
+ CRX Package Manager API
3
3
 
4
- #API for interacting with the CRX Package Manager in AEM.
4
+ API for interacting with the CRX Package Manager in AEM.
5
5
 
6
6
  OpenAPI spec version: 6.2.0
7
7
  Contact: bryan.stopp@gmail.com
@@ -24,13 +24,11 @@ limitations under the License.
24
24
  require 'date'
25
25
 
26
26
  module CrxPackageManager
27
-
28
27
  class PackageList
29
28
  attr_accessor :results
30
29
 
31
30
  attr_accessor :total
32
31
 
33
-
34
32
  # Attribute mapping from ruby-style variable name to JSON key.
35
33
  def self.attribute_map
36
34
  {
@@ -53,7 +51,7 @@ module CrxPackageManager
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?(:'results')
59
57
  if (value = attributes[:'results']).is_a?(Array)
@@ -64,20 +62,19 @@ module CrxPackageManager
64
62
  if attributes.has_key?(:'total')
65
63
  self.total = attributes[:'total']
66
64
  end
67
-
68
65
  end
69
66
 
70
67
  # Show invalid properties with the reasons. Usually used together with valid?
71
- # @return Array for valid properies with the reasons
68
+ # @return Array for valid properties with the reasons
72
69
  def list_invalid_properties
73
70
  invalid_properties = Array.new
74
- return invalid_properties
71
+ invalid_properties
75
72
  end
76
73
 
77
74
  # Check to see if the all the properties in the model are valid
78
75
  # @return true if the model is valid
79
76
  def valid?
80
- return true
77
+ true
81
78
  end
82
79
 
83
80
  # Checks equality by comparing each attribute.
@@ -107,11 +104,11 @@ module CrxPackageManager
107
104
  def build_from_hash(attributes)
108
105
  return nil unless attributes.is_a?(Hash)
109
106
  self.class.swagger_types.each_pair do |key, type|
110
- if type =~ /^Array<(.*)>/i
107
+ if type =~ /\AArray<(.*)>/i
111
108
  # check to ensure the input is an array given that the the attribute
112
109
  # is documented as an array but the input is not
113
110
  if attributes[self.class.attribute_map[key]].is_a?(Array)
114
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
112
  end
116
113
  elsif !attributes[self.class.attribute_map[key]].nil?
117
114
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -138,7 +135,7 @@ module CrxPackageManager
138
135
  when :Float
139
136
  value.to_f
140
137
  when :BOOLEAN
141
- if value.to_s =~ /^(true|t|yes|y|1)$/i
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
142
139
  true
143
140
  else
144
141
  false
@@ -149,7 +146,7 @@ module CrxPackageManager
149
146
  when /\AArray<(?<inner_type>.+)>\z/
150
147
  inner_type = Regexp.last_match[:inner_type]
151
148
  value.map { |v| _deserialize(inner_type, v) }
152
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
153
150
  k_type = Regexp.last_match[:k_type]
154
151
  v_type = Regexp.last_match[:v_type]
155
152
  {}.tap do |hash|
@@ -193,7 +190,7 @@ module CrxPackageManager
193
190
  # @return [Hash] Returns the value in the form of hash
194
191
  def _to_hash(value)
195
192
  if value.is_a?(Array)
196
- value.compact.map{ |v| _to_hash(v) }
193
+ value.compact.map { |v| _to_hash(v) }
197
194
  elsif value.is_a?(Hash)
198
195
  {}.tap do |hash|
199
196
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -204,7 +201,5 @@ module CrxPackageManager
204
201
  value
205
202
  end
206
203
  end
207
-
208
204
  end
209
-
210
205
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CRX Package Manager API
2
+ CRX Package Manager API
3
3
 
4
- #API for interacting with the CRX Package Manager in AEM.
4
+ API for interacting with the CRX Package Manager in AEM.
5
5
 
6
6
  OpenAPI spec version: 6.2.0
7
7
  Contact: bryan.stopp@gmail.com
@@ -24,13 +24,11 @@ limitations under the License.
24
24
  require 'date'
25
25
 
26
26
  module CrxPackageManager
27
-
28
27
  class ServiceExecResponse
29
28
  attr_accessor :success
30
29
 
31
30
  attr_accessor :msg
32
31
 
33
-
34
32
  # Attribute mapping from ruby-style variable name to JSON key.
35
33
  def self.attribute_map
36
34
  {
@@ -53,7 +51,7 @@ module CrxPackageManager
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?(:'success')
59
57
  self.success = attributes[:'success']
@@ -62,20 +60,19 @@ module CrxPackageManager
62
60
  if attributes.has_key?(:'msg')
63
61
  self.msg = attributes[:'msg']
64
62
  end
65
-
66
63
  end
67
64
 
68
65
  # Show invalid properties with the reasons. Usually used together with valid?
69
- # @return Array for valid properies with the reasons
66
+ # @return Array for valid properties with the reasons
70
67
  def list_invalid_properties
71
68
  invalid_properties = Array.new
72
- return invalid_properties
69
+ invalid_properties
73
70
  end
74
71
 
75
72
  # Check to see if the all the properties in the model are valid
76
73
  # @return true if the model is valid
77
74
  def valid?
78
- return true
75
+ true
79
76
  end
80
77
 
81
78
  # Checks equality by comparing each attribute.
@@ -105,11 +102,11 @@ module CrxPackageManager
105
102
  def build_from_hash(attributes)
106
103
  return nil unless attributes.is_a?(Hash)
107
104
  self.class.swagger_types.each_pair do |key, type|
108
- if type =~ /^Array<(.*)>/i
105
+ if type =~ /\AArray<(.*)>/i
109
106
  # check to ensure the input is an array given that the the attribute
110
107
  # is documented as an array but the input is not
111
108
  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) } )
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
110
  end
114
111
  elsif !attributes[self.class.attribute_map[key]].nil?
115
112
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -136,7 +133,7 @@ module CrxPackageManager
136
133
  when :Float
137
134
  value.to_f
138
135
  when :BOOLEAN
139
- if value.to_s =~ /^(true|t|yes|y|1)$/i
136
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
137
  true
141
138
  else
142
139
  false
@@ -147,7 +144,7 @@ module CrxPackageManager
147
144
  when /\AArray<(?<inner_type>.+)>\z/
148
145
  inner_type = Regexp.last_match[:inner_type]
149
146
  value.map { |v| _deserialize(inner_type, v) }
150
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
147
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
148
  k_type = Regexp.last_match[:k_type]
152
149
  v_type = Regexp.last_match[:v_type]
153
150
  {}.tap do |hash|
@@ -191,7 +188,7 @@ module CrxPackageManager
191
188
  # @return [Hash] Returns the value in the form of hash
192
189
  def _to_hash(value)
193
190
  if value.is_a?(Array)
194
- value.compact.map{ |v| _to_hash(v) }
191
+ value.compact.map { |v| _to_hash(v) }
195
192
  elsif value.is_a?(Hash)
196
193
  {}.tap do |hash|
197
194
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -202,7 +199,5 @@ module CrxPackageManager
202
199
  value
203
200
  end
204
201
  end
205
-
206
202
  end
207
-
208
203
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CRX Package Manager API
2
+ CRX Package Manager API
3
3
 
4
- #API for interacting with the CRX Package Manager in AEM.
4
+ API for interacting with the CRX Package Manager in AEM.
5
5
 
6
6
  OpenAPI spec version: 6.2.0
7
7
  Contact: bryan.stopp@gmail.com
@@ -24,7 +24,6 @@ limitations under the License.
24
24
  require 'date'
25
25
 
26
26
  module CrxPackageManager
27
-
28
27
  class ServiceResponse
29
28
  attr_accessor :version
30
29
 
@@ -36,7 +35,6 @@ module CrxPackageManager
36
35
 
37
36
  attr_accessor :response
38
37
 
39
-
40
38
  # Attribute mapping from ruby-style variable name to JSON key.
41
39
  def self.attribute_map
42
40
  {
@@ -65,7 +63,7 @@ module CrxPackageManager
65
63
  return unless attributes.is_a?(Hash)
66
64
 
67
65
  # convert string to symbol for hash key
68
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
69
67
 
70
68
  if attributes.has_key?(:'version')
71
69
  self.version = attributes[:'version']
@@ -86,20 +84,19 @@ module CrxPackageManager
86
84
  if attributes.has_key?(:'response')
87
85
  self.response = attributes[:'response']
88
86
  end
89
-
90
87
  end
91
88
 
92
89
  # Show invalid properties with the reasons. Usually used together with valid?
93
- # @return Array for valid properies with the reasons
90
+ # @return Array for valid properties with the reasons
94
91
  def list_invalid_properties
95
92
  invalid_properties = Array.new
96
- return invalid_properties
93
+ invalid_properties
97
94
  end
98
95
 
99
96
  # Check to see if the all the properties in the model are valid
100
97
  # @return true if the model is valid
101
98
  def valid?
102
- return true
99
+ true
103
100
  end
104
101
 
105
102
  # Checks equality by comparing each attribute.
@@ -132,11 +129,11 @@ module CrxPackageManager
132
129
  def build_from_hash(attributes)
133
130
  return nil unless attributes.is_a?(Hash)
134
131
  self.class.swagger_types.each_pair do |key, type|
135
- if type =~ /^Array<(.*)>/i
132
+ if type =~ /\AArray<(.*)>/i
136
133
  # check to ensure the input is an array given that the the attribute
137
134
  # is documented as an array but the input is not
138
135
  if attributes[self.class.attribute_map[key]].is_a?(Array)
139
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
137
  end
141
138
  elsif !attributes[self.class.attribute_map[key]].nil?
142
139
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -163,7 +160,7 @@ module CrxPackageManager
163
160
  when :Float
164
161
  value.to_f
165
162
  when :BOOLEAN
166
- if value.to_s =~ /^(true|t|yes|y|1)$/i
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
164
  true
168
165
  else
169
166
  false
@@ -174,7 +171,7 @@ module CrxPackageManager
174
171
  when /\AArray<(?<inner_type>.+)>\z/
175
172
  inner_type = Regexp.last_match[:inner_type]
176
173
  value.map { |v| _deserialize(inner_type, v) }
177
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
175
  k_type = Regexp.last_match[:k_type]
179
176
  v_type = Regexp.last_match[:v_type]
180
177
  {}.tap do |hash|
@@ -218,7 +215,7 @@ module CrxPackageManager
218
215
  # @return [Hash] Returns the value in the form of hash
219
216
  def _to_hash(value)
220
217
  if value.is_a?(Array)
221
- value.compact.map{ |v| _to_hash(v) }
218
+ value.compact.map { |v| _to_hash(v) }
222
219
  elsif value.is_a?(Hash)
223
220
  {}.tap do |hash|
224
221
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -229,7 +226,5 @@ module CrxPackageManager
229
226
  value
230
227
  end
231
228
  end
232
-
233
229
  end
234
-
235
230
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #CRX Package Manager API
2
+ CRX Package Manager API
3
3
 
4
- #API for interacting with the CRX Package Manager in AEM.
4
+ API for interacting with the CRX Package Manager in AEM.
5
5
 
6
6
  OpenAPI spec version: 6.2.0
7
7
  Contact: bryan.stopp@gmail.com
@@ -24,11 +24,9 @@ limitations under the License.
24
24
  require 'date'
25
25
 
26
26
  module CrxPackageManager
27
-
28
27
  class ServiceResponseRequest
29
28
  attr_accessor :param
30
29
 
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  def self.attribute_map
34
32
  {
@@ -49,27 +47,26 @@ module CrxPackageManager
49
47
  return unless attributes.is_a?(Hash)
50
48
 
51
49
  # convert string to symbol for hash key
52
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
51
 
54
52
  if attributes.has_key?(:'param')
55
53
  if (value = attributes[:'param']).is_a?(Array)
56
54
  self.param = value
57
55
  end
58
56
  end
59
-
60
57
  end
61
58
 
62
59
  # Show invalid properties with the reasons. Usually used together with valid?
63
- # @return Array for valid properies with the reasons
60
+ # @return Array for valid properties with the reasons
64
61
  def list_invalid_properties
65
62
  invalid_properties = Array.new
66
- return invalid_properties
63
+ invalid_properties
67
64
  end
68
65
 
69
66
  # Check to see if the all the properties in the model are valid
70
67
  # @return true if the model is valid
71
68
  def valid?
72
- return true
69
+ true
73
70
  end
74
71
 
75
72
  # Checks equality by comparing each attribute.
@@ -98,11 +95,11 @@ module CrxPackageManager
98
95
  def build_from_hash(attributes)
99
96
  return nil unless attributes.is_a?(Hash)
100
97
  self.class.swagger_types.each_pair do |key, type|
101
- if type =~ /^Array<(.*)>/i
98
+ if type =~ /\AArray<(.*)>/i
102
99
  # check to ensure the input is an array given that the the attribute
103
100
  # is documented as an array but the input is not
104
101
  if attributes[self.class.attribute_map[key]].is_a?(Array)
105
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
106
103
  end
107
104
  elsif !attributes[self.class.attribute_map[key]].nil?
108
105
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -129,7 +126,7 @@ module CrxPackageManager
129
126
  when :Float
130
127
  value.to_f
131
128
  when :BOOLEAN
132
- if value.to_s =~ /^(true|t|yes|y|1)$/i
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
133
130
  true
134
131
  else
135
132
  false
@@ -140,7 +137,7 @@ module CrxPackageManager
140
137
  when /\AArray<(?<inner_type>.+)>\z/
141
138
  inner_type = Regexp.last_match[:inner_type]
142
139
  value.map { |v| _deserialize(inner_type, v) }
143
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
144
141
  k_type = Regexp.last_match[:k_type]
145
142
  v_type = Regexp.last_match[:v_type]
146
143
  {}.tap do |hash|
@@ -184,7 +181,7 @@ module CrxPackageManager
184
181
  # @return [Hash] Returns the value in the form of hash
185
182
  def _to_hash(value)
186
183
  if value.is_a?(Array)
187
- value.compact.map{ |v| _to_hash(v) }
184
+ value.compact.map { |v| _to_hash(v) }
188
185
  elsif value.is_a?(Hash)
189
186
  {}.tap do |hash|
190
187
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,7 +192,5 @@ module CrxPackageManager
195
192
  value
196
193
  end
197
194
  end
198
-
199
195
  end
200
-
201
196
  end