swagger_aem 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +44 -43
- data/README.md +15 -7
- data/docs/ConsoleApi.md +43 -33
- data/docs/CqApi.md +12 -8
- data/docs/CrxApi.md +41 -27
- data/docs/CustomApi.md +19 -13
- data/docs/InlineObject.md +17 -0
- data/docs/InlineObject1.md +17 -0
- data/docs/InlineObject2.md +17 -0
- data/docs/InlineObject3.md +17 -0
- data/docs/InlineObject4.md +21 -0
- data/docs/InstallStatus.md +9 -0
- data/docs/InstallStatusStatus.md +11 -1
- data/docs/KeystoreChainItems.md +13 -0
- data/docs/KeystoreInfo.md +11 -1
- data/docs/KeystoreItems.md +13 -0
- data/docs/SamlConfigurationInfo.md +14 -0
- data/docs/SamlConfigurationProperties.md +32 -0
- data/docs/SamlConfigurationPropertyItemsArray.md +16 -2
- data/docs/SamlConfigurationPropertyItemsBoolean.md +17 -3
- data/docs/SamlConfigurationPropertyItemsLong.md +16 -2
- data/docs/SamlConfigurationPropertyItemsString.md +16 -2
- data/docs/SlingApi.md +320 -214
- data/docs/TruststoreInfo.md +11 -1
- data/docs/TruststoreItems.md +15 -0
- data/git_push.sh +10 -7
- data/lib/swagger_aem.rb +7 -2
- data/lib/swagger_aem/api/console_api.rb +118 -67
- data/lib/swagger_aem/api/cq_api.rb +43 -23
- data/lib/swagger_aem/api/crx_api.rb +154 -84
- data/lib/swagger_aem/api/custom_api.rb +60 -29
- data/lib/swagger_aem/api/sling_api.rb +850 -500
- data/lib/swagger_aem/api_client.rb +42 -43
- data/lib/swagger_aem/api_error.rb +21 -2
- data/lib/swagger_aem/configuration.rb +46 -7
- data/lib/swagger_aem/models/inline_object.rb +206 -0
- data/lib/swagger_aem/models/inline_object1.rb +206 -0
- data/lib/swagger_aem/models/inline_object2.rb +206 -0
- data/lib/swagger_aem/models/inline_object3.rb +206 -0
- data/lib/swagger_aem/models/inline_object4.rb +224 -0
- data/lib/swagger_aem/models/install_status.rb +35 -12
- data/lib/swagger_aem/models/install_status_status.rb +38 -15
- data/lib/swagger_aem/models/keystore_chain_items.rb +42 -19
- data/lib/swagger_aem/models/keystore_info.rb +37 -14
- data/lib/swagger_aem/models/keystore_items.rb +41 -18
- data/lib/swagger_aem/models/saml_configuration_info.rb +40 -17
- data/lib/swagger_aem/models/saml_configuration_properties.rb +81 -58
- data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +42 -19
- data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +43 -20
- data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +42 -19
- data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +42 -19
- data/lib/swagger_aem/models/truststore_info.rb +37 -14
- data/lib/swagger_aem/models/truststore_items.rb +46 -23
- data/lib/swagger_aem/version.rb +3 -3
- data/spec/models/inline_object1_spec.rb +41 -0
- data/spec/models/inline_object2_spec.rb +41 -0
- data/spec/models/inline_object3_spec.rb +41 -0
- data/spec/models/inline_object4_spec.rb +53 -0
- data/spec/models/inline_object_spec.rb +41 -0
- data/swagger_aem.gemspec +2 -8
- metadata +22 -122
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 3.2.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 3.
|
9
|
+
OpenAPI Generator version: 4.3.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,45 +48,58 @@ module SwaggerAemClient
|
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
|
-
:'optional' => :'
|
52
|
-
:'is_set' => :'
|
51
|
+
:'optional' => :'Boolean',
|
52
|
+
:'is_set' => :'Boolean',
|
53
53
|
:'type' => :'Integer',
|
54
54
|
:'values' => :'Array<String>',
|
55
55
|
:'description' => :'String'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
59
65
|
# Initializes the object
|
60
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
67
|
def initialize(attributes = {})
|
62
|
-
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationPropertyItemsArray` initialize method"
|
70
|
+
end
|
63
71
|
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationPropertyItemsArray`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
66
79
|
|
67
|
-
if attributes.
|
80
|
+
if attributes.key?(:'name')
|
68
81
|
self.name = attributes[:'name']
|
69
82
|
end
|
70
83
|
|
71
|
-
if attributes.
|
84
|
+
if attributes.key?(:'optional')
|
72
85
|
self.optional = attributes[:'optional']
|
73
86
|
end
|
74
87
|
|
75
|
-
if attributes.
|
88
|
+
if attributes.key?(:'is_set')
|
76
89
|
self.is_set = attributes[:'is_set']
|
77
90
|
end
|
78
91
|
|
79
|
-
if attributes.
|
92
|
+
if attributes.key?(:'type')
|
80
93
|
self.type = attributes[:'type']
|
81
94
|
end
|
82
95
|
|
83
|
-
if attributes.
|
96
|
+
if attributes.key?(:'values')
|
84
97
|
if (value = attributes[:'values']).is_a?(Array)
|
85
98
|
self.values = value
|
86
99
|
end
|
87
100
|
end
|
88
101
|
|
89
|
-
if attributes.
|
102
|
+
if attributes.key?(:'description')
|
90
103
|
self.description = attributes[:'description']
|
91
104
|
end
|
92
105
|
end
|
@@ -124,11 +137,18 @@ module SwaggerAemClient
|
|
124
137
|
end
|
125
138
|
|
126
139
|
# Calculates hash code according to all attributes.
|
127
|
-
# @return [
|
140
|
+
# @return [Integer] Hash code
|
128
141
|
def hash
|
129
142
|
[name, optional, is_set, type, values, description].hash
|
130
143
|
end
|
131
144
|
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
new.build_from_hash(attributes)
|
150
|
+
end
|
151
|
+
|
132
152
|
# Builds the object from hash
|
133
153
|
# @param [Hash] attributes Model attributes in the form of hash
|
134
154
|
# @return [Object] Returns the model itself
|
@@ -136,7 +156,7 @@ module SwaggerAemClient
|
|
136
156
|
return nil unless attributes.is_a?(Hash)
|
137
157
|
self.class.openapi_types.each_pair do |key, type|
|
138
158
|
if type =~ /\AArray<(.*)>/i
|
139
|
-
# check to ensure the input is an array given that the
|
159
|
+
# check to ensure the input is an array given that the attribute
|
140
160
|
# is documented as an array but the input is not
|
141
161
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
162
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -165,7 +185,7 @@ module SwaggerAemClient
|
|
165
185
|
value.to_i
|
166
186
|
when :Float
|
167
187
|
value.to_f
|
168
|
-
when :
|
188
|
+
when :Boolean
|
169
189
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
170
190
|
true
|
171
191
|
else
|
@@ -186,8 +206,7 @@ module SwaggerAemClient
|
|
186
206
|
end
|
187
207
|
end
|
188
208
|
else # model
|
189
|
-
|
190
|
-
temp_model.build_from_hash(value)
|
209
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
191
210
|
end
|
192
211
|
end
|
193
212
|
|
@@ -209,7 +228,11 @@ module SwaggerAemClient
|
|
209
228
|
hash = {}
|
210
229
|
self.class.attribute_map.each_pair do |attr, param|
|
211
230
|
value = self.send(attr)
|
212
|
-
|
231
|
+
if value.nil?
|
232
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
233
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
234
|
+
end
|
235
|
+
|
213
236
|
hash[param] = _to_hash(value)
|
214
237
|
end
|
215
238
|
hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 3.2.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 3.
|
9
|
+
OpenAPI Generator version: 4.3.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,43 +48,56 @@ module SwaggerAemClient
|
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
|
-
:'optional' => :'
|
52
|
-
:'is_set' => :'
|
51
|
+
:'optional' => :'Boolean',
|
52
|
+
:'is_set' => :'Boolean',
|
53
53
|
:'type' => :'Integer',
|
54
|
-
:'value' => :'
|
54
|
+
:'value' => :'Boolean',
|
55
55
|
:'description' => :'String'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
59
65
|
# Initializes the object
|
60
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
67
|
def initialize(attributes = {})
|
62
|
-
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationPropertyItemsBoolean` initialize method"
|
70
|
+
end
|
63
71
|
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationPropertyItemsBoolean`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
66
79
|
|
67
|
-
if attributes.
|
80
|
+
if attributes.key?(:'name')
|
68
81
|
self.name = attributes[:'name']
|
69
82
|
end
|
70
83
|
|
71
|
-
if attributes.
|
84
|
+
if attributes.key?(:'optional')
|
72
85
|
self.optional = attributes[:'optional']
|
73
86
|
end
|
74
87
|
|
75
|
-
if attributes.
|
88
|
+
if attributes.key?(:'is_set')
|
76
89
|
self.is_set = attributes[:'is_set']
|
77
90
|
end
|
78
91
|
|
79
|
-
if attributes.
|
92
|
+
if attributes.key?(:'type')
|
80
93
|
self.type = attributes[:'type']
|
81
94
|
end
|
82
95
|
|
83
|
-
if attributes.
|
96
|
+
if attributes.key?(:'value')
|
84
97
|
self.value = attributes[:'value']
|
85
98
|
end
|
86
99
|
|
87
|
-
if attributes.
|
100
|
+
if attributes.key?(:'description')
|
88
101
|
self.description = attributes[:'description']
|
89
102
|
end
|
90
103
|
end
|
@@ -122,11 +135,18 @@ module SwaggerAemClient
|
|
122
135
|
end
|
123
136
|
|
124
137
|
# Calculates hash code according to all attributes.
|
125
|
-
# @return [
|
138
|
+
# @return [Integer] Hash code
|
126
139
|
def hash
|
127
140
|
[name, optional, is_set, type, value, description].hash
|
128
141
|
end
|
129
142
|
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
130
150
|
# Builds the object from hash
|
131
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
132
152
|
# @return [Object] Returns the model itself
|
@@ -134,7 +154,7 @@ module SwaggerAemClient
|
|
134
154
|
return nil unless attributes.is_a?(Hash)
|
135
155
|
self.class.openapi_types.each_pair do |key, type|
|
136
156
|
if type =~ /\AArray<(.*)>/i
|
137
|
-
# check to ensure the input is an array given that the
|
157
|
+
# check to ensure the input is an array given that the attribute
|
138
158
|
# is documented as an array but the input is not
|
139
159
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
160
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -163,7 +183,7 @@ module SwaggerAemClient
|
|
163
183
|
value.to_i
|
164
184
|
when :Float
|
165
185
|
value.to_f
|
166
|
-
when :
|
186
|
+
when :Boolean
|
167
187
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
188
|
true
|
169
189
|
else
|
@@ -184,8 +204,7 @@ module SwaggerAemClient
|
|
184
204
|
end
|
185
205
|
end
|
186
206
|
else # model
|
187
|
-
|
188
|
-
temp_model.build_from_hash(value)
|
207
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
189
208
|
end
|
190
209
|
end
|
191
210
|
|
@@ -207,7 +226,11 @@ module SwaggerAemClient
|
|
207
226
|
hash = {}
|
208
227
|
self.class.attribute_map.each_pair do |attr, param|
|
209
228
|
value = self.send(attr)
|
210
|
-
|
229
|
+
if value.nil?
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
|
+
end
|
233
|
+
|
211
234
|
hash[param] = _to_hash(value)
|
212
235
|
end
|
213
236
|
hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 3.2.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 3.
|
9
|
+
OpenAPI Generator version: 4.3.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,43 +48,56 @@ module SwaggerAemClient
|
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
|
-
:'optional' => :'
|
52
|
-
:'is_set' => :'
|
51
|
+
:'optional' => :'Boolean',
|
52
|
+
:'is_set' => :'Boolean',
|
53
53
|
:'type' => :'Integer',
|
54
54
|
:'value' => :'Integer',
|
55
55
|
:'description' => :'String'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
59
65
|
# Initializes the object
|
60
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
67
|
def initialize(attributes = {})
|
62
|
-
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationPropertyItemsLong` initialize method"
|
70
|
+
end
|
63
71
|
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationPropertyItemsLong`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
66
79
|
|
67
|
-
if attributes.
|
80
|
+
if attributes.key?(:'name')
|
68
81
|
self.name = attributes[:'name']
|
69
82
|
end
|
70
83
|
|
71
|
-
if attributes.
|
84
|
+
if attributes.key?(:'optional')
|
72
85
|
self.optional = attributes[:'optional']
|
73
86
|
end
|
74
87
|
|
75
|
-
if attributes.
|
88
|
+
if attributes.key?(:'is_set')
|
76
89
|
self.is_set = attributes[:'is_set']
|
77
90
|
end
|
78
91
|
|
79
|
-
if attributes.
|
92
|
+
if attributes.key?(:'type')
|
80
93
|
self.type = attributes[:'type']
|
81
94
|
end
|
82
95
|
|
83
|
-
if attributes.
|
96
|
+
if attributes.key?(:'value')
|
84
97
|
self.value = attributes[:'value']
|
85
98
|
end
|
86
99
|
|
87
|
-
if attributes.
|
100
|
+
if attributes.key?(:'description')
|
88
101
|
self.description = attributes[:'description']
|
89
102
|
end
|
90
103
|
end
|
@@ -122,11 +135,18 @@ module SwaggerAemClient
|
|
122
135
|
end
|
123
136
|
|
124
137
|
# Calculates hash code according to all attributes.
|
125
|
-
# @return [
|
138
|
+
# @return [Integer] Hash code
|
126
139
|
def hash
|
127
140
|
[name, optional, is_set, type, value, description].hash
|
128
141
|
end
|
129
142
|
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
130
150
|
# Builds the object from hash
|
131
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
132
152
|
# @return [Object] Returns the model itself
|
@@ -134,7 +154,7 @@ module SwaggerAemClient
|
|
134
154
|
return nil unless attributes.is_a?(Hash)
|
135
155
|
self.class.openapi_types.each_pair do |key, type|
|
136
156
|
if type =~ /\AArray<(.*)>/i
|
137
|
-
# check to ensure the input is an array given that the
|
157
|
+
# check to ensure the input is an array given that the attribute
|
138
158
|
# is documented as an array but the input is not
|
139
159
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
160
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -163,7 +183,7 @@ module SwaggerAemClient
|
|
163
183
|
value.to_i
|
164
184
|
when :Float
|
165
185
|
value.to_f
|
166
|
-
when :
|
186
|
+
when :Boolean
|
167
187
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
188
|
true
|
169
189
|
else
|
@@ -184,8 +204,7 @@ module SwaggerAemClient
|
|
184
204
|
end
|
185
205
|
end
|
186
206
|
else # model
|
187
|
-
|
188
|
-
temp_model.build_from_hash(value)
|
207
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
189
208
|
end
|
190
209
|
end
|
191
210
|
|
@@ -207,7 +226,11 @@ module SwaggerAemClient
|
|
207
226
|
hash = {}
|
208
227
|
self.class.attribute_map.each_pair do |attr, param|
|
209
228
|
value = self.send(attr)
|
210
|
-
|
229
|
+
if value.nil?
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
|
+
end
|
233
|
+
|
211
234
|
hash[param] = _to_hash(value)
|
212
235
|
end
|
213
236
|
hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 3.2.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 3.
|
9
|
+
OpenAPI Generator version: 4.3.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,43 +48,56 @@ module SwaggerAemClient
|
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
|
-
:'optional' => :'
|
52
|
-
:'is_set' => :'
|
51
|
+
:'optional' => :'Boolean',
|
52
|
+
:'is_set' => :'Boolean',
|
53
53
|
:'type' => :'Integer',
|
54
54
|
:'value' => :'String',
|
55
55
|
:'description' => :'String'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
59
65
|
# Initializes the object
|
60
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
67
|
def initialize(attributes = {})
|
62
|
-
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationPropertyItemsString` initialize method"
|
70
|
+
end
|
63
71
|
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationPropertyItemsString`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
66
79
|
|
67
|
-
if attributes.
|
80
|
+
if attributes.key?(:'name')
|
68
81
|
self.name = attributes[:'name']
|
69
82
|
end
|
70
83
|
|
71
|
-
if attributes.
|
84
|
+
if attributes.key?(:'optional')
|
72
85
|
self.optional = attributes[:'optional']
|
73
86
|
end
|
74
87
|
|
75
|
-
if attributes.
|
88
|
+
if attributes.key?(:'is_set')
|
76
89
|
self.is_set = attributes[:'is_set']
|
77
90
|
end
|
78
91
|
|
79
|
-
if attributes.
|
92
|
+
if attributes.key?(:'type')
|
80
93
|
self.type = attributes[:'type']
|
81
94
|
end
|
82
95
|
|
83
|
-
if attributes.
|
96
|
+
if attributes.key?(:'value')
|
84
97
|
self.value = attributes[:'value']
|
85
98
|
end
|
86
99
|
|
87
|
-
if attributes.
|
100
|
+
if attributes.key?(:'description')
|
88
101
|
self.description = attributes[:'description']
|
89
102
|
end
|
90
103
|
end
|
@@ -122,11 +135,18 @@ module SwaggerAemClient
|
|
122
135
|
end
|
123
136
|
|
124
137
|
# Calculates hash code according to all attributes.
|
125
|
-
# @return [
|
138
|
+
# @return [Integer] Hash code
|
126
139
|
def hash
|
127
140
|
[name, optional, is_set, type, value, description].hash
|
128
141
|
end
|
129
142
|
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
130
150
|
# Builds the object from hash
|
131
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
132
152
|
# @return [Object] Returns the model itself
|
@@ -134,7 +154,7 @@ module SwaggerAemClient
|
|
134
154
|
return nil unless attributes.is_a?(Hash)
|
135
155
|
self.class.openapi_types.each_pair do |key, type|
|
136
156
|
if type =~ /\AArray<(.*)>/i
|
137
|
-
# check to ensure the input is an array given that the
|
157
|
+
# check to ensure the input is an array given that the attribute
|
138
158
|
# is documented as an array but the input is not
|
139
159
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
160
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -163,7 +183,7 @@ module SwaggerAemClient
|
|
163
183
|
value.to_i
|
164
184
|
when :Float
|
165
185
|
value.to_f
|
166
|
-
when :
|
186
|
+
when :Boolean
|
167
187
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
168
188
|
true
|
169
189
|
else
|
@@ -184,8 +204,7 @@ module SwaggerAemClient
|
|
184
204
|
end
|
185
205
|
end
|
186
206
|
else # model
|
187
|
-
|
188
|
-
temp_model.build_from_hash(value)
|
207
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
189
208
|
end
|
190
209
|
end
|
191
210
|
|
@@ -207,7 +226,11 @@ module SwaggerAemClient
|
|
207
226
|
hash = {}
|
208
227
|
self.class.attribute_map.each_pair do |attr, param|
|
209
228
|
value = self.send(attr)
|
210
|
-
|
229
|
+
if value.nil?
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
|
+
end
|
233
|
+
|
211
234
|
hash[param] = _to_hash(value)
|
212
235
|
end
|
213
236
|
hash
|