swagger_aem 2.5.0 → 3.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +7 -7
- data/Rakefile +2 -0
- data/docs/ConsoleApi.md +26 -32
- data/docs/CqApi.md +3 -6
- data/docs/CrxApi.md +19 -33
- data/docs/CustomApi.md +10 -13
- data/docs/SamlConfigurationInfo.md +1 -1
- data/docs/SamlConfigurationProperties.md +24 -24
- data/docs/SlingApi.md +211 -280
- data/git_push.sh +3 -3
- data/lib/swagger_aem.rb +3 -3
- data/lib/swagger_aem/api/console_api.rb +16 -40
- data/lib/swagger_aem/api/cq_api.rb +10 -22
- data/lib/swagger_aem/api/crx_api.rb +26 -61
- data/lib/swagger_aem/api/custom_api.rb +13 -32
- data/lib/swagger_aem/api/sling_api.rb +94 -264
- data/lib/swagger_aem/api_client.rb +14 -14
- data/lib/swagger_aem/api_error.rb +3 -3
- data/lib/swagger_aem/configuration.rb +5 -5
- data/lib/swagger_aem/models/install_status.rb +11 -16
- data/lib/swagger_aem/models/install_status_status.rb +11 -16
- data/lib/swagger_aem/models/keystore_chain_items.rb +11 -16
- data/lib/swagger_aem/models/keystore_info.rb +11 -16
- data/lib/swagger_aem/models/keystore_items.rb +11 -16
- data/lib/swagger_aem/models/saml_configuration_info.rb +12 -17
- data/lib/swagger_aem/models/saml_configuration_properties.rb +59 -136
- data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +11 -16
- data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +11 -16
- data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +11 -16
- data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +11 -16
- data/lib/swagger_aem/models/truststore_info.rb +11 -16
- data/lib/swagger_aem/models/truststore_items.rb +11 -16
- data/lib/swagger_aem/version.rb +4 -4
- data/spec/api/console_api_spec.rb +8 -16
- data/spec/api/cq_api_spec.rb +6 -10
- data/spec/api/crx_api_spec.rb +11 -25
- data/spec/api/custom_api_spec.rb +7 -13
- data/spec/api/sling_api_spec.rb +32 -88
- data/spec/api_client_spec.rb +37 -37
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/install_status_spec.rb +5 -6
- data/spec/models/install_status_status_spec.rb +6 -7
- data/spec/models/keystore_chain_items_spec.rb +9 -10
- data/spec/models/keystore_info_spec.rb +6 -7
- data/spec/models/keystore_items_spec.rb +9 -10
- data/spec/models/saml_configuration_info_spec.rb +10 -11
- data/spec/models/saml_configuration_properties_spec.rb +28 -29
- data/spec/models/saml_configuration_property_items_array_spec.rb +10 -11
- data/spec/models/saml_configuration_property_items_boolean_spec.rb +10 -11
- data/spec/models/saml_configuration_property_items_long_spec.rb +10 -11
- data/spec/models/saml_configuration_property_items_string_spec.rb +10 -11
- data/spec/models/truststore_info_spec.rb +6 -7
- data/spec/models/truststore_items_spec.rb +11 -12
- data/spec/spec_helper.rb +3 -3
- data/swagger_aem.gemspec +6 -6
- metadata +3 -3
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SwaggerAemClient
|
16
|
-
|
17
16
|
class SamlConfigurationPropertyItemsArray
|
18
17
|
# property name
|
19
18
|
attr_accessor :name
|
@@ -33,7 +32,6 @@ module SwaggerAemClient
|
|
33
32
|
# Property description
|
34
33
|
attr_accessor :description
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -47,7 +45,7 @@ module SwaggerAemClient
|
|
47
45
|
end
|
48
46
|
|
49
47
|
# Attribute type mapping.
|
50
|
-
def self.
|
48
|
+
def self.openapi_types
|
51
49
|
{
|
52
50
|
:'name' => :'String',
|
53
51
|
:'optional' => :'BOOLEAN',
|
@@ -64,7 +62,7 @@ module SwaggerAemClient
|
|
64
62
|
return unless attributes.is_a?(Hash)
|
65
63
|
|
66
64
|
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
66
|
|
69
67
|
if attributes.has_key?(:'name')
|
70
68
|
self.name = attributes[:'name']
|
@@ -91,20 +89,19 @@ module SwaggerAemClient
|
|
91
89
|
if attributes.has_key?(:'description')
|
92
90
|
self.description = attributes[:'description']
|
93
91
|
end
|
94
|
-
|
95
92
|
end
|
96
93
|
|
97
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
98
|
-
# @return Array for valid
|
95
|
+
# @return Array for valid properties with the reasons
|
99
96
|
def list_invalid_properties
|
100
97
|
invalid_properties = Array.new
|
101
|
-
|
98
|
+
invalid_properties
|
102
99
|
end
|
103
100
|
|
104
101
|
# Check to see if the all the properties in the model are valid
|
105
102
|
# @return true if the model is valid
|
106
103
|
def valid?
|
107
|
-
|
104
|
+
true
|
108
105
|
end
|
109
106
|
|
110
107
|
# Checks equality by comparing each attribute.
|
@@ -137,12 +134,12 @@ module SwaggerAemClient
|
|
137
134
|
# @return [Object] Returns the model itself
|
138
135
|
def build_from_hash(attributes)
|
139
136
|
return nil unless attributes.is_a?(Hash)
|
140
|
-
self.class.
|
137
|
+
self.class.openapi_types.each_pair do |key, type|
|
141
138
|
if type =~ /\AArray<(.*)>/i
|
142
139
|
# check to ensure the input is an array given that the the attribute
|
143
140
|
# is documented as an array but the input is not
|
144
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
142
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
146
143
|
end
|
147
144
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
148
145
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -224,7 +221,7 @@ module SwaggerAemClient
|
|
224
221
|
# @return [Hash] Returns the value in the form of hash
|
225
222
|
def _to_hash(value)
|
226
223
|
if value.is_a?(Array)
|
227
|
-
value.compact.map{ |v| _to_hash(v) }
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
228
225
|
elsif value.is_a?(Hash)
|
229
226
|
{}.tap do |hash|
|
230
227
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -235,7 +232,5 @@ module SwaggerAemClient
|
|
235
232
|
value
|
236
233
|
end
|
237
234
|
end
|
238
|
-
|
239
235
|
end
|
240
|
-
|
241
236
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SwaggerAemClient
|
16
|
-
|
17
16
|
class SamlConfigurationPropertyItemsBoolean
|
18
17
|
# property name
|
19
18
|
attr_accessor :name
|
@@ -33,7 +32,6 @@ module SwaggerAemClient
|
|
33
32
|
# Property description
|
34
33
|
attr_accessor :description
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -47,7 +45,7 @@ module SwaggerAemClient
|
|
47
45
|
end
|
48
46
|
|
49
47
|
# Attribute type mapping.
|
50
|
-
def self.
|
48
|
+
def self.openapi_types
|
51
49
|
{
|
52
50
|
:'name' => :'String',
|
53
51
|
:'optional' => :'BOOLEAN',
|
@@ -64,7 +62,7 @@ module SwaggerAemClient
|
|
64
62
|
return unless attributes.is_a?(Hash)
|
65
63
|
|
66
64
|
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
66
|
|
69
67
|
if attributes.has_key?(:'name')
|
70
68
|
self.name = attributes[:'name']
|
@@ -89,20 +87,19 @@ module SwaggerAemClient
|
|
89
87
|
if attributes.has_key?(:'description')
|
90
88
|
self.description = attributes[:'description']
|
91
89
|
end
|
92
|
-
|
93
90
|
end
|
94
91
|
|
95
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
-
# @return Array for valid
|
93
|
+
# @return Array for valid properties with the reasons
|
97
94
|
def list_invalid_properties
|
98
95
|
invalid_properties = Array.new
|
99
|
-
|
96
|
+
invalid_properties
|
100
97
|
end
|
101
98
|
|
102
99
|
# Check to see if the all the properties in the model are valid
|
103
100
|
# @return true if the model is valid
|
104
101
|
def valid?
|
105
|
-
|
102
|
+
true
|
106
103
|
end
|
107
104
|
|
108
105
|
# Checks equality by comparing each attribute.
|
@@ -135,12 +132,12 @@ module SwaggerAemClient
|
|
135
132
|
# @return [Object] Returns the model itself
|
136
133
|
def build_from_hash(attributes)
|
137
134
|
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.
|
135
|
+
self.class.openapi_types.each_pair do |key, type|
|
139
136
|
if type =~ /\AArray<(.*)>/i
|
140
137
|
# check to ensure the input is an array given that the the attribute
|
141
138
|
# is documented as an array but the input is not
|
142
139
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
144
141
|
end
|
145
142
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
143
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -222,7 +219,7 @@ module SwaggerAemClient
|
|
222
219
|
# @return [Hash] Returns the value in the form of hash
|
223
220
|
def _to_hash(value)
|
224
221
|
if value.is_a?(Array)
|
225
|
-
value.compact.map{ |v| _to_hash(v) }
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
226
223
|
elsif value.is_a?(Hash)
|
227
224
|
{}.tap do |hash|
|
228
225
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -233,7 +230,5 @@ module SwaggerAemClient
|
|
233
230
|
value
|
234
231
|
end
|
235
232
|
end
|
236
|
-
|
237
233
|
end
|
238
|
-
|
239
234
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SwaggerAemClient
|
16
|
-
|
17
16
|
class SamlConfigurationPropertyItemsLong
|
18
17
|
# property name
|
19
18
|
attr_accessor :name
|
@@ -33,7 +32,6 @@ module SwaggerAemClient
|
|
33
32
|
# Property description
|
34
33
|
attr_accessor :description
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -47,7 +45,7 @@ module SwaggerAemClient
|
|
47
45
|
end
|
48
46
|
|
49
47
|
# Attribute type mapping.
|
50
|
-
def self.
|
48
|
+
def self.openapi_types
|
51
49
|
{
|
52
50
|
:'name' => :'String',
|
53
51
|
:'optional' => :'BOOLEAN',
|
@@ -64,7 +62,7 @@ module SwaggerAemClient
|
|
64
62
|
return unless attributes.is_a?(Hash)
|
65
63
|
|
66
64
|
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
66
|
|
69
67
|
if attributes.has_key?(:'name')
|
70
68
|
self.name = attributes[:'name']
|
@@ -89,20 +87,19 @@ module SwaggerAemClient
|
|
89
87
|
if attributes.has_key?(:'description')
|
90
88
|
self.description = attributes[:'description']
|
91
89
|
end
|
92
|
-
|
93
90
|
end
|
94
91
|
|
95
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
-
# @return Array for valid
|
93
|
+
# @return Array for valid properties with the reasons
|
97
94
|
def list_invalid_properties
|
98
95
|
invalid_properties = Array.new
|
99
|
-
|
96
|
+
invalid_properties
|
100
97
|
end
|
101
98
|
|
102
99
|
# Check to see if the all the properties in the model are valid
|
103
100
|
# @return true if the model is valid
|
104
101
|
def valid?
|
105
|
-
|
102
|
+
true
|
106
103
|
end
|
107
104
|
|
108
105
|
# Checks equality by comparing each attribute.
|
@@ -135,12 +132,12 @@ module SwaggerAemClient
|
|
135
132
|
# @return [Object] Returns the model itself
|
136
133
|
def build_from_hash(attributes)
|
137
134
|
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.
|
135
|
+
self.class.openapi_types.each_pair do |key, type|
|
139
136
|
if type =~ /\AArray<(.*)>/i
|
140
137
|
# check to ensure the input is an array given that the the attribute
|
141
138
|
# is documented as an array but the input is not
|
142
139
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
144
141
|
end
|
145
142
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
143
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -222,7 +219,7 @@ module SwaggerAemClient
|
|
222
219
|
# @return [Hash] Returns the value in the form of hash
|
223
220
|
def _to_hash(value)
|
224
221
|
if value.is_a?(Array)
|
225
|
-
value.compact.map{ |v| _to_hash(v) }
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
226
223
|
elsif value.is_a?(Hash)
|
227
224
|
{}.tap do |hash|
|
228
225
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -233,7 +230,5 @@ module SwaggerAemClient
|
|
233
230
|
value
|
234
231
|
end
|
235
232
|
end
|
236
|
-
|
237
233
|
end
|
238
|
-
|
239
234
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SwaggerAemClient
|
16
|
-
|
17
16
|
class SamlConfigurationPropertyItemsString
|
18
17
|
# property name
|
19
18
|
attr_accessor :name
|
@@ -33,7 +32,6 @@ module SwaggerAemClient
|
|
33
32
|
# Property description
|
34
33
|
attr_accessor :description
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -47,7 +45,7 @@ module SwaggerAemClient
|
|
47
45
|
end
|
48
46
|
|
49
47
|
# Attribute type mapping.
|
50
|
-
def self.
|
48
|
+
def self.openapi_types
|
51
49
|
{
|
52
50
|
:'name' => :'String',
|
53
51
|
:'optional' => :'BOOLEAN',
|
@@ -64,7 +62,7 @@ module SwaggerAemClient
|
|
64
62
|
return unless attributes.is_a?(Hash)
|
65
63
|
|
66
64
|
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
66
|
|
69
67
|
if attributes.has_key?(:'name')
|
70
68
|
self.name = attributes[:'name']
|
@@ -89,20 +87,19 @@ module SwaggerAemClient
|
|
89
87
|
if attributes.has_key?(:'description')
|
90
88
|
self.description = attributes[:'description']
|
91
89
|
end
|
92
|
-
|
93
90
|
end
|
94
91
|
|
95
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
-
# @return Array for valid
|
93
|
+
# @return Array for valid properties with the reasons
|
97
94
|
def list_invalid_properties
|
98
95
|
invalid_properties = Array.new
|
99
|
-
|
96
|
+
invalid_properties
|
100
97
|
end
|
101
98
|
|
102
99
|
# Check to see if the all the properties in the model are valid
|
103
100
|
# @return true if the model is valid
|
104
101
|
def valid?
|
105
|
-
|
102
|
+
true
|
106
103
|
end
|
107
104
|
|
108
105
|
# Checks equality by comparing each attribute.
|
@@ -135,12 +132,12 @@ module SwaggerAemClient
|
|
135
132
|
# @return [Object] Returns the model itself
|
136
133
|
def build_from_hash(attributes)
|
137
134
|
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.
|
135
|
+
self.class.openapi_types.each_pair do |key, type|
|
139
136
|
if type =~ /\AArray<(.*)>/i
|
140
137
|
# check to ensure the input is an array given that the the attribute
|
141
138
|
# is documented as an array but the input is not
|
142
139
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
144
141
|
end
|
145
142
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
143
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -222,7 +219,7 @@ module SwaggerAemClient
|
|
222
219
|
# @return [Hash] Returns the value in the form of hash
|
223
220
|
def _to_hash(value)
|
224
221
|
if value.is_a?(Array)
|
225
|
-
value.compact.map{ |v| _to_hash(v) }
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
226
223
|
elsif value.is_a?(Hash)
|
227
224
|
{}.tap do |hash|
|
228
225
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -233,7 +230,5 @@ module SwaggerAemClient
|
|
233
230
|
value
|
234
231
|
end
|
235
232
|
end
|
236
|
-
|
237
233
|
end
|
238
|
-
|
239
234
|
end
|
@@ -3,24 +3,22 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SwaggerAemClient
|
16
|
-
|
17
16
|
class TruststoreInfo
|
18
17
|
attr_accessor :aliases
|
19
18
|
|
20
19
|
# False if truststore don't exist
|
21
20
|
attr_accessor :exists
|
22
21
|
|
23
|
-
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
23
|
def self.attribute_map
|
26
24
|
{
|
@@ -30,7 +28,7 @@ module SwaggerAemClient
|
|
30
28
|
end
|
31
29
|
|
32
30
|
# Attribute type mapping.
|
33
|
-
def self.
|
31
|
+
def self.openapi_types
|
34
32
|
{
|
35
33
|
:'aliases' => :'Array<TruststoreItems>',
|
36
34
|
:'exists' => :'BOOLEAN'
|
@@ -43,7 +41,7 @@ module SwaggerAemClient
|
|
43
41
|
return unless attributes.is_a?(Hash)
|
44
42
|
|
45
43
|
# convert string to symbol for hash key
|
46
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
47
45
|
|
48
46
|
if attributes.has_key?(:'aliases')
|
49
47
|
if (value = attributes[:'aliases']).is_a?(Array)
|
@@ -54,20 +52,19 @@ module SwaggerAemClient
|
|
54
52
|
if attributes.has_key?(:'exists')
|
55
53
|
self.exists = attributes[:'exists']
|
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
|
58
|
+
# @return Array for valid properties with the reasons
|
62
59
|
def list_invalid_properties
|
63
60
|
invalid_properties = Array.new
|
64
|
-
|
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
|
-
|
67
|
+
true
|
71
68
|
end
|
72
69
|
|
73
70
|
# Checks equality by comparing each attribute.
|
@@ -96,12 +93,12 @@ module SwaggerAemClient
|
|
96
93
|
# @return [Object] Returns the model itself
|
97
94
|
def build_from_hash(attributes)
|
98
95
|
return nil unless attributes.is_a?(Hash)
|
99
|
-
self.class.
|
96
|
+
self.class.openapi_types.each_pair do |key, type|
|
100
97
|
if type =~ /\AArray<(.*)>/i
|
101
98
|
# check to ensure the input is an array given that the the attribute
|
102
99
|
# is documented as an array but the input is not
|
103
100
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
104
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
105
102
|
end
|
106
103
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
107
104
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -183,7 +180,7 @@ module SwaggerAemClient
|
|
183
180
|
# @return [Hash] Returns the value in the form of hash
|
184
181
|
def _to_hash(value)
|
185
182
|
if value.is_a?(Array)
|
186
|
-
value.compact.map{ |v| _to_hash(v) }
|
183
|
+
value.compact.map { |v| _to_hash(v) }
|
187
184
|
elsif value.is_a?(Hash)
|
188
185
|
{}.tap do |hash|
|
189
186
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -194,7 +191,5 @@ module SwaggerAemClient
|
|
194
191
|
value
|
195
192
|
end
|
196
193
|
end
|
197
|
-
|
198
194
|
end
|
199
|
-
|
200
195
|
end
|