crx_packmgr_api_client 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
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 Group
29
28
  attr_accessor :name
30
29
 
@@ -34,7 +33,6 @@ module CrxPackageManager
34
33
 
35
34
  attr_accessor :deep_count
36
35
 
37
-
38
36
  # Attribute mapping from ruby-style variable name to JSON key.
39
37
  def self.attribute_map
40
38
  {
@@ -61,7 +59,7 @@ module CrxPackageManager
61
59
  return unless attributes.is_a?(Hash)
62
60
 
63
61
  # convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
62
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
63
 
66
64
  if attributes.has_key?(:'name')
67
65
  self.name = attributes[:'name']
@@ -78,20 +76,19 @@ module CrxPackageManager
78
76
  if attributes.has_key?(:'deepCount')
79
77
  self.deep_count = attributes[:'deepCount']
80
78
  end
81
-
82
79
  end
83
80
 
84
81
  # Show invalid properties with the reasons. Usually used together with valid?
85
- # @return Array for valid properies with the reasons
82
+ # @return Array for valid properties with the reasons
86
83
  def list_invalid_properties
87
84
  invalid_properties = Array.new
88
- return invalid_properties
85
+ invalid_properties
89
86
  end
90
87
 
91
88
  # Check to see if the all the properties in the model are valid
92
89
  # @return true if the model is valid
93
90
  def valid?
94
- return true
91
+ true
95
92
  end
96
93
 
97
94
  # Checks equality by comparing each attribute.
@@ -123,11 +120,11 @@ module CrxPackageManager
123
120
  def build_from_hash(attributes)
124
121
  return nil unless attributes.is_a?(Hash)
125
122
  self.class.swagger_types.each_pair do |key, type|
126
- if type =~ /^Array<(.*)>/i
123
+ if type =~ /\AArray<(.*)>/i
127
124
  # check to ensure the input is an array given that the the attribute
128
125
  # is documented as an array but the input is not
129
126
  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) } )
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
128
  end
132
129
  elsif !attributes[self.class.attribute_map[key]].nil?
133
130
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -154,7 +151,7 @@ module CrxPackageManager
154
151
  when :Float
155
152
  value.to_f
156
153
  when :BOOLEAN
157
- if value.to_s =~ /^(true|t|yes|y|1)$/i
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
155
  true
159
156
  else
160
157
  false
@@ -165,7 +162,7 @@ module CrxPackageManager
165
162
  when /\AArray<(?<inner_type>.+)>\z/
166
163
  inner_type = Regexp.last_match[:inner_type]
167
164
  value.map { |v| _deserialize(inner_type, v) }
168
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
166
  k_type = Regexp.last_match[:k_type]
170
167
  v_type = Regexp.last_match[:v_type]
171
168
  {}.tap do |hash|
@@ -209,7 +206,7 @@ module CrxPackageManager
209
206
  # @return [Hash] Returns the value in the form of hash
210
207
  def _to_hash(value)
211
208
  if value.is_a?(Array)
212
- value.compact.map{ |v| _to_hash(v) }
209
+ value.compact.map { |v| _to_hash(v) }
213
210
  elsif value.is_a?(Hash)
214
211
  {}.tap do |hash|
215
212
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -220,7 +217,5 @@ module CrxPackageManager
220
217
  value
221
218
  end
222
219
  end
223
-
224
220
  end
225
-
226
221
  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 GroupList
29
28
  attr_accessor :groups
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?(:'groups')
55
53
  if (value = attributes[:'groups']).is_a?(Array)
56
54
  self.groups = 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
@@ -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 InitData
29
28
  attr_accessor :context_path
30
29
 
@@ -38,7 +37,6 @@ module CrxPackageManager
38
37
 
39
38
  attr_accessor :workspaces
40
39
 
41
-
42
40
  # Attribute mapping from ruby-style variable name to JSON key.
43
41
  def self.attribute_map
44
42
  {
@@ -69,7 +67,7 @@ module CrxPackageManager
69
67
  return unless attributes.is_a?(Hash)
70
68
 
71
69
  # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
71
 
74
72
  if attributes.has_key?(:'contextPath')
75
73
  self.context_path = attributes[:'contextPath']
@@ -96,20 +94,19 @@ module CrxPackageManager
96
94
  self.workspaces = value
97
95
  end
98
96
  end
99
-
100
97
  end
101
98
 
102
99
  # Show invalid properties with the reasons. Usually used together with valid?
103
- # @return Array for valid properies with the reasons
100
+ # @return Array for valid properties with the reasons
104
101
  def list_invalid_properties
105
102
  invalid_properties = Array.new
106
- return invalid_properties
103
+ invalid_properties
107
104
  end
108
105
 
109
106
  # Check to see if the all the properties in the model are valid
110
107
  # @return true if the model is valid
111
108
  def valid?
112
- return true
109
+ true
113
110
  end
114
111
 
115
112
  # Checks equality by comparing each attribute.
@@ -143,11 +140,11 @@ module CrxPackageManager
143
140
  def build_from_hash(attributes)
144
141
  return nil unless attributes.is_a?(Hash)
145
142
  self.class.swagger_types.each_pair do |key, type|
146
- if type =~ /^Array<(.*)>/i
143
+ if type =~ /\AArray<(.*)>/i
147
144
  # check to ensure the input is an array given that the the attribute
148
145
  # is documented as an array but the input is not
149
146
  if attributes[self.class.attribute_map[key]].is_a?(Array)
150
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
147
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
148
  end
152
149
  elsif !attributes[self.class.attribute_map[key]].nil?
153
150
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -174,7 +171,7 @@ module CrxPackageManager
174
171
  when :Float
175
172
  value.to_f
176
173
  when :BOOLEAN
177
- if value.to_s =~ /^(true|t|yes|y|1)$/i
174
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
175
  true
179
176
  else
180
177
  false
@@ -185,7 +182,7 @@ module CrxPackageManager
185
182
  when /\AArray<(?<inner_type>.+)>\z/
186
183
  inner_type = Regexp.last_match[:inner_type]
187
184
  value.map { |v| _deserialize(inner_type, v) }
188
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
185
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
186
  k_type = Regexp.last_match[:k_type]
190
187
  v_type = Regexp.last_match[:v_type]
191
188
  {}.tap do |hash|
@@ -229,7 +226,7 @@ module CrxPackageManager
229
226
  # @return [Hash] Returns the value in the form of hash
230
227
  def _to_hash(value)
231
228
  if value.is_a?(Array)
232
- value.compact.map{ |v| _to_hash(v) }
229
+ value.compact.map { |v| _to_hash(v) }
233
230
  elsif value.is_a?(Hash)
234
231
  {}.tap do |hash|
235
232
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -240,7 +237,5 @@ module CrxPackageManager
240
237
  value
241
238
  end
242
239
  end
243
-
244
240
  end
245
-
246
241
  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 InstallStatus
29
28
  attr_accessor :status
30
29
 
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  def self.attribute_map
34
32
  {
@@ -49,25 +47,24 @@ 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?(:'status')
55
53
  self.status = attributes[:'status']
56
54
  end
57
-
58
55
  end
59
56
 
60
57
  # Show invalid properties with the reasons. Usually used together with valid?
61
- # @return Array for valid properies with the reasons
58
+ # @return Array for valid properties with the reasons
62
59
  def list_invalid_properties
63
60
  invalid_properties = Array.new
64
- return invalid_properties
61
+ invalid_properties
65
62
  end
66
63
 
67
64
  # Check to see if the all the properties in the model are valid
68
65
  # @return true if the model is valid
69
66
  def valid?
70
- return true
67
+ true
71
68
  end
72
69
 
73
70
  # Checks equality by comparing each attribute.
@@ -96,11 +93,11 @@ module CrxPackageManager
96
93
  def build_from_hash(attributes)
97
94
  return nil unless attributes.is_a?(Hash)
98
95
  self.class.swagger_types.each_pair do |key, type|
99
- if type =~ /^Array<(.*)>/i
96
+ if type =~ /\AArray<(.*)>/i
100
97
  # check to ensure the input is an array given that the the attribute
101
98
  # is documented as an array but the input is not
102
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
101
  end
105
102
  elsif !attributes[self.class.attribute_map[key]].nil?
106
103
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -127,7 +124,7 @@ module CrxPackageManager
127
124
  when :Float
128
125
  value.to_f
129
126
  when :BOOLEAN
130
- if value.to_s =~ /^(true|t|yes|y|1)$/i
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
128
  true
132
129
  else
133
130
  false
@@ -138,7 +135,7 @@ module CrxPackageManager
138
135
  when /\AArray<(?<inner_type>.+)>\z/
139
136
  inner_type = Regexp.last_match[:inner_type]
140
137
  value.map { |v| _deserialize(inner_type, v) }
141
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
139
  k_type = Regexp.last_match[:k_type]
143
140
  v_type = Regexp.last_match[:v_type]
144
141
  {}.tap do |hash|
@@ -182,7 +179,7 @@ module CrxPackageManager
182
179
  # @return [Hash] Returns the value in the form of hash
183
180
  def _to_hash(value)
184
181
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
182
+ value.compact.map { |v| _to_hash(v) }
186
183
  elsif value.is_a?(Hash)
187
184
  {}.tap do |hash|
188
185
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -193,7 +190,5 @@ module CrxPackageManager
193
190
  value
194
191
  end
195
192
  end
196
-
197
193
  end
198
-
199
194
  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 InstallStatusStatus
29
28
  attr_accessor :finished
30
29
 
31
30
  attr_accessor :item_count
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?(:'finished')
59
57
  self.finished = attributes[:'finished']
@@ -62,20 +60,19 @@ module CrxPackageManager
62
60
  if attributes.has_key?(:'itemCount')
63
61
  self.item_count = attributes[:'itemCount']
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