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
|
|
@@ -31,25 +31,38 @@ module SwaggerAemClient
|
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
33
|
:'aliases' => :'Array<KeystoreItems>',
|
34
|
-
:'exists' => :'
|
34
|
+
:'exists' => :'Boolean'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
+
# List of attributes with nullable: true
|
39
|
+
def self.openapi_nullable
|
40
|
+
Set.new([
|
41
|
+
])
|
42
|
+
end
|
43
|
+
|
38
44
|
# Initializes the object
|
39
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
46
|
def initialize(attributes = {})
|
41
|
-
|
47
|
+
if (!attributes.is_a?(Hash))
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::KeystoreInfo` initialize method"
|
49
|
+
end
|
42
50
|
|
43
|
-
# convert string to symbol for hash key
|
44
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::KeystoreInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
end
|
56
|
+
h[k.to_sym] = v
|
57
|
+
}
|
45
58
|
|
46
|
-
if attributes.
|
59
|
+
if attributes.key?(:'aliases')
|
47
60
|
if (value = attributes[:'aliases']).is_a?(Array)
|
48
61
|
self.aliases = value
|
49
62
|
end
|
50
63
|
end
|
51
64
|
|
52
|
-
if attributes.
|
65
|
+
if attributes.key?(:'exists')
|
53
66
|
self.exists = attributes[:'exists']
|
54
67
|
end
|
55
68
|
end
|
@@ -83,11 +96,18 @@ module SwaggerAemClient
|
|
83
96
|
end
|
84
97
|
|
85
98
|
# Calculates hash code according to all attributes.
|
86
|
-
# @return [
|
99
|
+
# @return [Integer] Hash code
|
87
100
|
def hash
|
88
101
|
[aliases, exists].hash
|
89
102
|
end
|
90
103
|
|
104
|
+
# Builds the object from hash
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
+
# @return [Object] Returns the model itself
|
107
|
+
def self.build_from_hash(attributes)
|
108
|
+
new.build_from_hash(attributes)
|
109
|
+
end
|
110
|
+
|
91
111
|
# Builds the object from hash
|
92
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
93
113
|
# @return [Object] Returns the model itself
|
@@ -95,7 +115,7 @@ module SwaggerAemClient
|
|
95
115
|
return nil unless attributes.is_a?(Hash)
|
96
116
|
self.class.openapi_types.each_pair do |key, type|
|
97
117
|
if type =~ /\AArray<(.*)>/i
|
98
|
-
# check to ensure the input is an array given that the
|
118
|
+
# check to ensure the input is an array given that the attribute
|
99
119
|
# is documented as an array but the input is not
|
100
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
121
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -124,7 +144,7 @@ module SwaggerAemClient
|
|
124
144
|
value.to_i
|
125
145
|
when :Float
|
126
146
|
value.to_f
|
127
|
-
when :
|
147
|
+
when :Boolean
|
128
148
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
129
149
|
true
|
130
150
|
else
|
@@ -145,8 +165,7 @@ module SwaggerAemClient
|
|
145
165
|
end
|
146
166
|
end
|
147
167
|
else # model
|
148
|
-
|
149
|
-
temp_model.build_from_hash(value)
|
168
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
150
169
|
end
|
151
170
|
end
|
152
171
|
|
@@ -168,7 +187,11 @@ module SwaggerAemClient
|
|
168
187
|
hash = {}
|
169
188
|
self.class.attribute_map.each_pair do |attr, param|
|
170
189
|
value = self.send(attr)
|
171
|
-
|
190
|
+
if value.nil?
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
|
+
end
|
194
|
+
|
172
195
|
hash[param] = _to_hash(value)
|
173
196
|
end
|
174
197
|
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
|
|
@@ -50,31 +50,44 @@ module SwaggerAemClient
|
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
53
|
+
# List of attributes with nullable: true
|
54
|
+
def self.openapi_nullable
|
55
|
+
Set.new([
|
56
|
+
])
|
57
|
+
end
|
58
|
+
|
53
59
|
# Initializes the object
|
54
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
61
|
def initialize(attributes = {})
|
56
|
-
|
62
|
+
if (!attributes.is_a?(Hash))
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::KeystoreItems` initialize method"
|
64
|
+
end
|
57
65
|
|
58
|
-
# convert string to symbol for hash key
|
59
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::KeystoreItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
|
+
end
|
71
|
+
h[k.to_sym] = v
|
72
|
+
}
|
60
73
|
|
61
|
-
if attributes.
|
62
|
-
self._alias = attributes[:'
|
74
|
+
if attributes.key?(:'_alias')
|
75
|
+
self._alias = attributes[:'_alias']
|
63
76
|
end
|
64
77
|
|
65
|
-
if attributes.
|
66
|
-
self.entry_type = attributes[:'
|
78
|
+
if attributes.key?(:'entry_type')
|
79
|
+
self.entry_type = attributes[:'entry_type']
|
67
80
|
end
|
68
81
|
|
69
|
-
if attributes.
|
82
|
+
if attributes.key?(:'algorithm')
|
70
83
|
self.algorithm = attributes[:'algorithm']
|
71
84
|
end
|
72
85
|
|
73
|
-
if attributes.
|
86
|
+
if attributes.key?(:'format')
|
74
87
|
self.format = attributes[:'format']
|
75
88
|
end
|
76
89
|
|
77
|
-
if attributes.
|
90
|
+
if attributes.key?(:'chain')
|
78
91
|
if (value = attributes[:'chain']).is_a?(Array)
|
79
92
|
self.chain = value
|
80
93
|
end
|
@@ -113,11 +126,18 @@ module SwaggerAemClient
|
|
113
126
|
end
|
114
127
|
|
115
128
|
# Calculates hash code according to all attributes.
|
116
|
-
# @return [
|
129
|
+
# @return [Integer] Hash code
|
117
130
|
def hash
|
118
131
|
[_alias, entry_type, algorithm, format, chain].hash
|
119
132
|
end
|
120
133
|
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def self.build_from_hash(attributes)
|
138
|
+
new.build_from_hash(attributes)
|
139
|
+
end
|
140
|
+
|
121
141
|
# Builds the object from hash
|
122
142
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
143
|
# @return [Object] Returns the model itself
|
@@ -125,7 +145,7 @@ module SwaggerAemClient
|
|
125
145
|
return nil unless attributes.is_a?(Hash)
|
126
146
|
self.class.openapi_types.each_pair do |key, type|
|
127
147
|
if type =~ /\AArray<(.*)>/i
|
128
|
-
# check to ensure the input is an array given that the
|
148
|
+
# check to ensure the input is an array given that the attribute
|
129
149
|
# is documented as an array but the input is not
|
130
150
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
151
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -154,7 +174,7 @@ module SwaggerAemClient
|
|
154
174
|
value.to_i
|
155
175
|
when :Float
|
156
176
|
value.to_f
|
157
|
-
when :
|
177
|
+
when :Boolean
|
158
178
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
159
179
|
true
|
160
180
|
else
|
@@ -175,8 +195,7 @@ module SwaggerAemClient
|
|
175
195
|
end
|
176
196
|
end
|
177
197
|
else # model
|
178
|
-
|
179
|
-
temp_model.build_from_hash(value)
|
198
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
180
199
|
end
|
181
200
|
end
|
182
201
|
|
@@ -198,7 +217,11 @@ module SwaggerAemClient
|
|
198
217
|
hash = {}
|
199
218
|
self.class.attribute_map.each_pair do |attr, param|
|
200
219
|
value = self.send(attr)
|
201
|
-
|
220
|
+
if value.nil?
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
|
+
end
|
224
|
+
|
202
225
|
hash[param] = _to_hash(value)
|
203
226
|
end
|
204
227
|
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
|
|
@@ -55,35 +55,48 @@ module SwaggerAemClient
|
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
58
|
+
# List of attributes with nullable: true
|
59
|
+
def self.openapi_nullable
|
60
|
+
Set.new([
|
61
|
+
])
|
62
|
+
end
|
63
|
+
|
58
64
|
# Initializes the object
|
59
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
66
|
def initialize(attributes = {})
|
61
|
-
|
67
|
+
if (!attributes.is_a?(Hash))
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationInfo` initialize method"
|
69
|
+
end
|
62
70
|
|
63
|
-
# convert string to symbol for hash key
|
64
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
|
+
end
|
76
|
+
h[k.to_sym] = v
|
77
|
+
}
|
65
78
|
|
66
|
-
if attributes.
|
79
|
+
if attributes.key?(:'pid')
|
67
80
|
self.pid = attributes[:'pid']
|
68
81
|
end
|
69
82
|
|
70
|
-
if attributes.
|
83
|
+
if attributes.key?(:'title')
|
71
84
|
self.title = attributes[:'title']
|
72
85
|
end
|
73
86
|
|
74
|
-
if attributes.
|
87
|
+
if attributes.key?(:'description')
|
75
88
|
self.description = attributes[:'description']
|
76
89
|
end
|
77
90
|
|
78
|
-
if attributes.
|
91
|
+
if attributes.key?(:'bundle_location')
|
79
92
|
self.bundle_location = attributes[:'bundle_location']
|
80
93
|
end
|
81
94
|
|
82
|
-
if attributes.
|
95
|
+
if attributes.key?(:'service_location')
|
83
96
|
self.service_location = attributes[:'service_location']
|
84
97
|
end
|
85
98
|
|
86
|
-
if attributes.
|
99
|
+
if attributes.key?(:'properties')
|
87
100
|
self.properties = attributes[:'properties']
|
88
101
|
end
|
89
102
|
end
|
@@ -121,11 +134,18 @@ module SwaggerAemClient
|
|
121
134
|
end
|
122
135
|
|
123
136
|
# Calculates hash code according to all attributes.
|
124
|
-
# @return [
|
137
|
+
# @return [Integer] Hash code
|
125
138
|
def hash
|
126
139
|
[pid, title, description, bundle_location, service_location, properties].hash
|
127
140
|
end
|
128
141
|
|
142
|
+
# Builds the object from hash
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
+
# @return [Object] Returns the model itself
|
145
|
+
def self.build_from_hash(attributes)
|
146
|
+
new.build_from_hash(attributes)
|
147
|
+
end
|
148
|
+
|
129
149
|
# Builds the object from hash
|
130
150
|
# @param [Hash] attributes Model attributes in the form of hash
|
131
151
|
# @return [Object] Returns the model itself
|
@@ -133,7 +153,7 @@ module SwaggerAemClient
|
|
133
153
|
return nil unless attributes.is_a?(Hash)
|
134
154
|
self.class.openapi_types.each_pair do |key, type|
|
135
155
|
if type =~ /\AArray<(.*)>/i
|
136
|
-
# check to ensure the input is an array given that the
|
156
|
+
# check to ensure the input is an array given that the attribute
|
137
157
|
# is documented as an array but the input is not
|
138
158
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
159
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -162,7 +182,7 @@ module SwaggerAemClient
|
|
162
182
|
value.to_i
|
163
183
|
when :Float
|
164
184
|
value.to_f
|
165
|
-
when :
|
185
|
+
when :Boolean
|
166
186
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
187
|
true
|
168
188
|
else
|
@@ -183,8 +203,7 @@ module SwaggerAemClient
|
|
183
203
|
end
|
184
204
|
end
|
185
205
|
else # model
|
186
|
-
|
187
|
-
temp_model.build_from_hash(value)
|
206
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
188
207
|
end
|
189
208
|
end
|
190
209
|
|
@@ -206,7 +225,11 @@ module SwaggerAemClient
|
|
206
225
|
hash = {}
|
207
226
|
self.class.attribute_map.each_pair do |attr, param|
|
208
227
|
value = self.send(attr)
|
209
|
-
|
228
|
+
if value.nil?
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
+
end
|
232
|
+
|
210
233
|
hash[param] = _to_hash(value)
|
211
234
|
end
|
212
235
|
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
|
|
@@ -122,108 +122,121 @@ module SwaggerAemClient
|
|
122
122
|
}
|
123
123
|
end
|
124
124
|
|
125
|
+
# List of attributes with nullable: true
|
126
|
+
def self.openapi_nullable
|
127
|
+
Set.new([
|
128
|
+
])
|
129
|
+
end
|
130
|
+
|
125
131
|
# Initializes the object
|
126
132
|
# @param [Hash] attributes Model attributes in the form of hash
|
127
133
|
def initialize(attributes = {})
|
128
|
-
|
134
|
+
if (!attributes.is_a?(Hash))
|
135
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::SamlConfigurationProperties` initialize method"
|
136
|
+
end
|
129
137
|
|
130
|
-
# convert string to symbol for hash key
|
131
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
138
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
139
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
140
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
141
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::SamlConfigurationProperties`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
142
|
+
end
|
143
|
+
h[k.to_sym] = v
|
144
|
+
}
|
132
145
|
|
133
|
-
if attributes.
|
146
|
+
if attributes.key?(:'path')
|
134
147
|
self.path = attributes[:'path']
|
135
148
|
end
|
136
149
|
|
137
|
-
if attributes.
|
138
|
-
self.service_ranking = attributes[:'
|
150
|
+
if attributes.key?(:'service_ranking')
|
151
|
+
self.service_ranking = attributes[:'service_ranking']
|
139
152
|
end
|
140
153
|
|
141
|
-
if attributes.
|
142
|
-
self.idp_url = attributes[:'
|
154
|
+
if attributes.key?(:'idp_url')
|
155
|
+
self.idp_url = attributes[:'idp_url']
|
143
156
|
end
|
144
157
|
|
145
|
-
if attributes.
|
146
|
-
self.idp_cert_alias = attributes[:'
|
158
|
+
if attributes.key?(:'idp_cert_alias')
|
159
|
+
self.idp_cert_alias = attributes[:'idp_cert_alias']
|
147
160
|
end
|
148
161
|
|
149
|
-
if attributes.
|
150
|
-
self.idp_http_redirect = attributes[:'
|
162
|
+
if attributes.key?(:'idp_http_redirect')
|
163
|
+
self.idp_http_redirect = attributes[:'idp_http_redirect']
|
151
164
|
end
|
152
165
|
|
153
|
-
if attributes.
|
154
|
-
self.service_provider_entity_id = attributes[:'
|
166
|
+
if attributes.key?(:'service_provider_entity_id')
|
167
|
+
self.service_provider_entity_id = attributes[:'service_provider_entity_id']
|
155
168
|
end
|
156
169
|
|
157
|
-
if attributes.
|
158
|
-
self.assertion_consumer_service_url = attributes[:'
|
170
|
+
if attributes.key?(:'assertion_consumer_service_url')
|
171
|
+
self.assertion_consumer_service_url = attributes[:'assertion_consumer_service_url']
|
159
172
|
end
|
160
173
|
|
161
|
-
if attributes.
|
162
|
-
self.sp_private_key_alias = attributes[:'
|
174
|
+
if attributes.key?(:'sp_private_key_alias')
|
175
|
+
self.sp_private_key_alias = attributes[:'sp_private_key_alias']
|
163
176
|
end
|
164
177
|
|
165
|
-
if attributes.
|
166
|
-
self.key_store_password = attributes[:'
|
178
|
+
if attributes.key?(:'key_store_password')
|
179
|
+
self.key_store_password = attributes[:'key_store_password']
|
167
180
|
end
|
168
181
|
|
169
|
-
if attributes.
|
170
|
-
self.default_redirect_url = attributes[:'
|
182
|
+
if attributes.key?(:'default_redirect_url')
|
183
|
+
self.default_redirect_url = attributes[:'default_redirect_url']
|
171
184
|
end
|
172
185
|
|
173
|
-
if attributes.
|
174
|
-
self.user_id_attribute = attributes[:'
|
186
|
+
if attributes.key?(:'user_id_attribute')
|
187
|
+
self.user_id_attribute = attributes[:'user_id_attribute']
|
175
188
|
end
|
176
189
|
|
177
|
-
if attributes.
|
178
|
-
self.use_encryption = attributes[:'
|
190
|
+
if attributes.key?(:'use_encryption')
|
191
|
+
self.use_encryption = attributes[:'use_encryption']
|
179
192
|
end
|
180
193
|
|
181
|
-
if attributes.
|
182
|
-
self.create_user = attributes[:'
|
194
|
+
if attributes.key?(:'create_user')
|
195
|
+
self.create_user = attributes[:'create_user']
|
183
196
|
end
|
184
197
|
|
185
|
-
if attributes.
|
186
|
-
self.add_group_memberships = attributes[:'
|
198
|
+
if attributes.key?(:'add_group_memberships')
|
199
|
+
self.add_group_memberships = attributes[:'add_group_memberships']
|
187
200
|
end
|
188
201
|
|
189
|
-
if attributes.
|
190
|
-
self.group_membership_attribute = attributes[:'
|
202
|
+
if attributes.key?(:'group_membership_attribute')
|
203
|
+
self.group_membership_attribute = attributes[:'group_membership_attribute']
|
191
204
|
end
|
192
205
|
|
193
|
-
if attributes.
|
194
|
-
self.default_groups = attributes[:'
|
206
|
+
if attributes.key?(:'default_groups')
|
207
|
+
self.default_groups = attributes[:'default_groups']
|
195
208
|
end
|
196
209
|
|
197
|
-
if attributes.
|
198
|
-
self.name_id_format = attributes[:'
|
210
|
+
if attributes.key?(:'name_id_format')
|
211
|
+
self.name_id_format = attributes[:'name_id_format']
|
199
212
|
end
|
200
213
|
|
201
|
-
if attributes.
|
202
|
-
self.synchronize_attributes = attributes[:'
|
214
|
+
if attributes.key?(:'synchronize_attributes')
|
215
|
+
self.synchronize_attributes = attributes[:'synchronize_attributes']
|
203
216
|
end
|
204
217
|
|
205
|
-
if attributes.
|
206
|
-
self.handle_logout = attributes[:'
|
218
|
+
if attributes.key?(:'handle_logout')
|
219
|
+
self.handle_logout = attributes[:'handle_logout']
|
207
220
|
end
|
208
221
|
|
209
|
-
if attributes.
|
210
|
-
self.logout_url = attributes[:'
|
222
|
+
if attributes.key?(:'logout_url')
|
223
|
+
self.logout_url = attributes[:'logout_url']
|
211
224
|
end
|
212
225
|
|
213
|
-
if attributes.
|
214
|
-
self.clock_tolerance = attributes[:'
|
226
|
+
if attributes.key?(:'clock_tolerance')
|
227
|
+
self.clock_tolerance = attributes[:'clock_tolerance']
|
215
228
|
end
|
216
229
|
|
217
|
-
if attributes.
|
218
|
-
self.digest_method = attributes[:'
|
230
|
+
if attributes.key?(:'digest_method')
|
231
|
+
self.digest_method = attributes[:'digest_method']
|
219
232
|
end
|
220
233
|
|
221
|
-
if attributes.
|
222
|
-
self.signature_method = attributes[:'
|
234
|
+
if attributes.key?(:'signature_method')
|
235
|
+
self.signature_method = attributes[:'signature_method']
|
223
236
|
end
|
224
237
|
|
225
|
-
if attributes.
|
226
|
-
self.user_intermediate_path = attributes[:'
|
238
|
+
if attributes.key?(:'user_intermediate_path')
|
239
|
+
self.user_intermediate_path = attributes[:'user_intermediate_path']
|
227
240
|
end
|
228
241
|
end
|
229
242
|
|
@@ -278,11 +291,18 @@ module SwaggerAemClient
|
|
278
291
|
end
|
279
292
|
|
280
293
|
# Calculates hash code according to all attributes.
|
281
|
-
# @return [
|
294
|
+
# @return [Integer] Hash code
|
282
295
|
def hash
|
283
296
|
[path, service_ranking, idp_url, idp_cert_alias, idp_http_redirect, service_provider_entity_id, assertion_consumer_service_url, sp_private_key_alias, key_store_password, default_redirect_url, user_id_attribute, use_encryption, create_user, add_group_memberships, group_membership_attribute, default_groups, name_id_format, synchronize_attributes, handle_logout, logout_url, clock_tolerance, digest_method, signature_method, user_intermediate_path].hash
|
284
297
|
end
|
285
298
|
|
299
|
+
# Builds the object from hash
|
300
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
301
|
+
# @return [Object] Returns the model itself
|
302
|
+
def self.build_from_hash(attributes)
|
303
|
+
new.build_from_hash(attributes)
|
304
|
+
end
|
305
|
+
|
286
306
|
# Builds the object from hash
|
287
307
|
# @param [Hash] attributes Model attributes in the form of hash
|
288
308
|
# @return [Object] Returns the model itself
|
@@ -290,7 +310,7 @@ module SwaggerAemClient
|
|
290
310
|
return nil unless attributes.is_a?(Hash)
|
291
311
|
self.class.openapi_types.each_pair do |key, type|
|
292
312
|
if type =~ /\AArray<(.*)>/i
|
293
|
-
# check to ensure the input is an array given that the
|
313
|
+
# check to ensure the input is an array given that the attribute
|
294
314
|
# is documented as an array but the input is not
|
295
315
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
296
316
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -319,7 +339,7 @@ module SwaggerAemClient
|
|
319
339
|
value.to_i
|
320
340
|
when :Float
|
321
341
|
value.to_f
|
322
|
-
when :
|
342
|
+
when :Boolean
|
323
343
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
324
344
|
true
|
325
345
|
else
|
@@ -340,8 +360,7 @@ module SwaggerAemClient
|
|
340
360
|
end
|
341
361
|
end
|
342
362
|
else # model
|
343
|
-
|
344
|
-
temp_model.build_from_hash(value)
|
363
|
+
SwaggerAemClient.const_get(type).build_from_hash(value)
|
345
364
|
end
|
346
365
|
end
|
347
366
|
|
@@ -363,7 +382,11 @@ module SwaggerAemClient
|
|
363
382
|
hash = {}
|
364
383
|
self.class.attribute_map.each_pair do |attr, param|
|
365
384
|
value = self.send(attr)
|
366
|
-
|
385
|
+
if value.nil?
|
386
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
387
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
388
|
+
end
|
389
|
+
|
367
390
|
hash[param] = _to_hash(value)
|
368
391
|
end
|
369
392
|
hash
|