swagger_aem 2.5.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,10 +3,10 @@
|
|
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
|
|
@@ -31,9 +31,9 @@ module SwaggerAemClient
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "
|
34
|
+
@user_agent = "OpenAPI-Generator/#{VERSION}/ruby"
|
35
35
|
@default_headers = {
|
36
|
-
'Content-Type' =>
|
36
|
+
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
38
38
|
}
|
39
39
|
end
|
@@ -137,7 +137,7 @@ module SwaggerAemClient
|
|
137
137
|
# @param [String] mime MIME
|
138
138
|
# @return [Boolean] True if the MIME is application/json
|
139
139
|
def json_mime?(mime)
|
140
|
-
|
140
|
+
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
141
141
|
end
|
142
142
|
|
143
143
|
# Deserialize the response to the given return type.
|
@@ -201,12 +201,12 @@ module SwaggerAemClient
|
|
201
201
|
when /\AArray<(.+)>\z/
|
202
202
|
# e.g. Array<Pet>
|
203
203
|
sub_type = $1
|
204
|
-
data.map {|item| convert_to_type(item, sub_type) }
|
204
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
205
205
|
when /\AHash\<String, (.+)\>\z/
|
206
206
|
# e.g. Hash<String, Integer>
|
207
207
|
sub_type = $1
|
208
208
|
{}.tap do |hash|
|
209
|
-
data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
|
209
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
210
210
|
end
|
211
211
|
else
|
212
212
|
# models, e.g. Pet
|
@@ -228,7 +228,7 @@ module SwaggerAemClient
|
|
228
228
|
encoding = nil
|
229
229
|
request.on_headers do |response|
|
230
230
|
content_disposition = response.headers['Content-Disposition']
|
231
|
-
if content_disposition
|
231
|
+
if content_disposition && content_disposition =~ /filename=/i
|
232
232
|
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
233
233
|
prefix = sanitize_filename(filename)
|
234
234
|
else
|
@@ -244,7 +244,7 @@ module SwaggerAemClient
|
|
244
244
|
tempfile.write(chunk)
|
245
245
|
end
|
246
246
|
request.on_complete do |response|
|
247
|
-
tempfile.close
|
247
|
+
tempfile.close if tempfile
|
248
248
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
249
249
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
250
250
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
@@ -314,7 +314,7 @@ module SwaggerAemClient
|
|
314
314
|
|
315
315
|
# Sets user agent in HTTP header
|
316
316
|
#
|
317
|
-
# @param [String] user_agent User agent (e.g.
|
317
|
+
# @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0)
|
318
318
|
def user_agent=(user_agent)
|
319
319
|
@user_agent = user_agent
|
320
320
|
@default_headers['User-Agent'] = @user_agent
|
@@ -327,7 +327,7 @@ module SwaggerAemClient
|
|
327
327
|
return nil if accepts.nil? || accepts.empty?
|
328
328
|
# use JSON when present, otherwise use all of the provided
|
329
329
|
json_accept = accepts.find { |s| json_mime?(s) }
|
330
|
-
|
330
|
+
json_accept || accepts.join(',')
|
331
331
|
end
|
332
332
|
|
333
333
|
# Return Content-Type header based on an array of content types provided.
|
@@ -338,7 +338,7 @@ module SwaggerAemClient
|
|
338
338
|
return 'application/json' if content_types.nil? || content_types.empty?
|
339
339
|
# use JSON when present, otherwise use the first one
|
340
340
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
341
|
-
|
341
|
+
json_content_type || content_types.first
|
342
342
|
end
|
343
343
|
|
344
344
|
# Convert object (array, hash, object, etc) to JSON string.
|
@@ -348,7 +348,7 @@ module SwaggerAemClient
|
|
348
348
|
return model if model.nil? || model.is_a?(String)
|
349
349
|
local_body = nil
|
350
350
|
if model.is_a?(Array)
|
351
|
-
local_body = model.map{|m| object_to_hash(m) }
|
351
|
+
local_body = model.map { |m| object_to_hash(m) }
|
352
352
|
else
|
353
353
|
local_body = object_to_hash(model)
|
354
354
|
end
|
@@ -3,10 +3,10 @@
|
|
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
|
|
@@ -3,10 +3,10 @@
|
|
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
|
|
@@ -129,7 +129,7 @@ module SwaggerAemClient
|
|
129
129
|
|
130
130
|
def initialize
|
131
131
|
@scheme = 'http'
|
132
|
-
@host = ''
|
132
|
+
@host = 'localhost'
|
133
133
|
@base_path = '/'
|
134
134
|
@api_key = {}
|
135
135
|
@api_key_prefix = {}
|
@@ -170,7 +170,7 @@ module SwaggerAemClient
|
|
170
170
|
def base_path=(base_path)
|
171
171
|
# Add leading and trailing slashes to base_path
|
172
172
|
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
173
|
-
@base_path =
|
173
|
+
@base_path = '' if @base_path == '/'
|
174
174
|
end
|
175
175
|
|
176
176
|
def base_url
|
@@ -3,21 +3,19 @@
|
|
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 InstallStatus
|
18
17
|
attr_accessor :status
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -26,7 +24,7 @@ module SwaggerAemClient
|
|
26
24
|
end
|
27
25
|
|
28
26
|
# Attribute type mapping.
|
29
|
-
def self.
|
27
|
+
def self.openapi_types
|
30
28
|
{
|
31
29
|
:'status' => :'InstallStatusStatus'
|
32
30
|
}
|
@@ -38,25 +36,24 @@ module SwaggerAemClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'status')
|
44
42
|
self.status = attributes[:'status']
|
45
43
|
end
|
46
|
-
|
47
44
|
end
|
48
45
|
|
49
46
|
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
-
# @return Array for valid
|
47
|
+
# @return Array for valid properties with the reasons
|
51
48
|
def list_invalid_properties
|
52
49
|
invalid_properties = Array.new
|
53
|
-
|
50
|
+
invalid_properties
|
54
51
|
end
|
55
52
|
|
56
53
|
# Check to see if the all the properties in the model are valid
|
57
54
|
# @return true if the model is valid
|
58
55
|
def valid?
|
59
|
-
|
56
|
+
true
|
60
57
|
end
|
61
58
|
|
62
59
|
# Checks equality by comparing each attribute.
|
@@ -84,12 +81,12 @@ module SwaggerAemClient
|
|
84
81
|
# @return [Object] Returns the model itself
|
85
82
|
def build_from_hash(attributes)
|
86
83
|
return nil unless attributes.is_a?(Hash)
|
87
|
-
self.class.
|
84
|
+
self.class.openapi_types.each_pair do |key, type|
|
88
85
|
if type =~ /\AArray<(.*)>/i
|
89
86
|
# check to ensure the input is an array given that the the attribute
|
90
87
|
# is documented as an array but the input is not
|
91
88
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
93
90
|
end
|
94
91
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
92
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -171,7 +168,7 @@ module SwaggerAemClient
|
|
171
168
|
# @return [Hash] Returns the value in the form of hash
|
172
169
|
def _to_hash(value)
|
173
170
|
if value.is_a?(Array)
|
174
|
-
value.compact.map{ |v| _to_hash(v) }
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
175
172
|
elsif value.is_a?(Hash)
|
176
173
|
{}.tap do |hash|
|
177
174
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -182,7 +179,5 @@ module SwaggerAemClient
|
|
182
179
|
value
|
183
180
|
end
|
184
181
|
end
|
185
|
-
|
186
182
|
end
|
187
|
-
|
188
183
|
end
|
@@ -3,23 +3,21 @@
|
|
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 InstallStatusStatus
|
18
17
|
attr_accessor :finished
|
19
18
|
|
20
19
|
attr_accessor :item_count
|
21
20
|
|
22
|
-
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
@@ -29,7 +27,7 @@ module SwaggerAemClient
|
|
29
27
|
end
|
30
28
|
|
31
29
|
# Attribute type mapping.
|
32
|
-
def self.
|
30
|
+
def self.openapi_types
|
33
31
|
{
|
34
32
|
:'finished' => :'BOOLEAN',
|
35
33
|
:'item_count' => :'Integer'
|
@@ -42,7 +40,7 @@ module SwaggerAemClient
|
|
42
40
|
return unless attributes.is_a?(Hash)
|
43
41
|
|
44
42
|
# convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
44
|
|
47
45
|
if attributes.has_key?(:'finished')
|
48
46
|
self.finished = attributes[:'finished']
|
@@ -51,20 +49,19 @@ module SwaggerAemClient
|
|
51
49
|
if attributes.has_key?(:'itemCount')
|
52
50
|
self.item_count = attributes[:'itemCount']
|
53
51
|
end
|
54
|
-
|
55
52
|
end
|
56
53
|
|
57
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
-
# @return Array for valid
|
55
|
+
# @return Array for valid properties with the reasons
|
59
56
|
def list_invalid_properties
|
60
57
|
invalid_properties = Array.new
|
61
|
-
|
58
|
+
invalid_properties
|
62
59
|
end
|
63
60
|
|
64
61
|
# Check to see if the all the properties in the model are valid
|
65
62
|
# @return true if the model is valid
|
66
63
|
def valid?
|
67
|
-
|
64
|
+
true
|
68
65
|
end
|
69
66
|
|
70
67
|
# Checks equality by comparing each attribute.
|
@@ -93,12 +90,12 @@ module SwaggerAemClient
|
|
93
90
|
# @return [Object] Returns the model itself
|
94
91
|
def build_from_hash(attributes)
|
95
92
|
return nil unless attributes.is_a?(Hash)
|
96
|
-
self.class.
|
93
|
+
self.class.openapi_types.each_pair do |key, type|
|
97
94
|
if type =~ /\AArray<(.*)>/i
|
98
95
|
# check to ensure the input is an array given that the the attribute
|
99
96
|
# is documented as an array but the input is not
|
100
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
102
99
|
end
|
103
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -180,7 +177,7 @@ module SwaggerAemClient
|
|
180
177
|
# @return [Hash] Returns the value in the form of hash
|
181
178
|
def _to_hash(value)
|
182
179
|
if value.is_a?(Array)
|
183
|
-
value.compact.map{ |v| _to_hash(v) }
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
184
181
|
elsif value.is_a?(Hash)
|
185
182
|
{}.tap do |hash|
|
186
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -191,7 +188,5 @@ module SwaggerAemClient
|
|
191
188
|
value
|
192
189
|
end
|
193
190
|
end
|
194
|
-
|
195
191
|
end
|
196
|
-
|
197
192
|
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 KeystoreChainItems
|
18
17
|
# e.g. \"CN=localhost\"
|
19
18
|
attr_accessor :subject
|
@@ -30,7 +29,6 @@ module SwaggerAemClient
|
|
30
29
|
# 18165099476682912368
|
31
30
|
attr_accessor :serial_number
|
32
31
|
|
33
|
-
|
34
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
33
|
def self.attribute_map
|
36
34
|
{
|
@@ -43,7 +41,7 @@ module SwaggerAemClient
|
|
43
41
|
end
|
44
42
|
|
45
43
|
# Attribute type mapping.
|
46
|
-
def self.
|
44
|
+
def self.openapi_types
|
47
45
|
{
|
48
46
|
:'subject' => :'String',
|
49
47
|
:'issuer' => :'String',
|
@@ -59,7 +57,7 @@ module SwaggerAemClient
|
|
59
57
|
return unless attributes.is_a?(Hash)
|
60
58
|
|
61
59
|
# convert string to symbol for hash key
|
62
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
61
|
|
64
62
|
if attributes.has_key?(:'subject')
|
65
63
|
self.subject = attributes[:'subject']
|
@@ -80,20 +78,19 @@ module SwaggerAemClient
|
|
80
78
|
if attributes.has_key?(:'serialNumber')
|
81
79
|
self.serial_number = attributes[:'serialNumber']
|
82
80
|
end
|
83
|
-
|
84
81
|
end
|
85
82
|
|
86
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
-
# @return Array for valid
|
84
|
+
# @return Array for valid properties with the reasons
|
88
85
|
def list_invalid_properties
|
89
86
|
invalid_properties = Array.new
|
90
|
-
|
87
|
+
invalid_properties
|
91
88
|
end
|
92
89
|
|
93
90
|
# Check to see if the all the properties in the model are valid
|
94
91
|
# @return true if the model is valid
|
95
92
|
def valid?
|
96
|
-
|
93
|
+
true
|
97
94
|
end
|
98
95
|
|
99
96
|
# Checks equality by comparing each attribute.
|
@@ -125,12 +122,12 @@ module SwaggerAemClient
|
|
125
122
|
# @return [Object] Returns the model itself
|
126
123
|
def build_from_hash(attributes)
|
127
124
|
return nil unless attributes.is_a?(Hash)
|
128
|
-
self.class.
|
125
|
+
self.class.openapi_types.each_pair do |key, type|
|
129
126
|
if type =~ /\AArray<(.*)>/i
|
130
127
|
# check to ensure the input is an array given that the the attribute
|
131
128
|
# is documented as an array but the input is not
|
132
129
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
134
131
|
end
|
135
132
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
133
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -212,7 +209,7 @@ module SwaggerAemClient
|
|
212
209
|
# @return [Hash] Returns the value in the form of hash
|
213
210
|
def _to_hash(value)
|
214
211
|
if value.is_a?(Array)
|
215
|
-
value.compact.map{ |v| _to_hash(v) }
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
216
213
|
elsif value.is_a?(Hash)
|
217
214
|
{}.tap do |hash|
|
218
215
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -223,7 +220,5 @@ module SwaggerAemClient
|
|
223
220
|
value
|
224
221
|
end
|
225
222
|
end
|
226
|
-
|
227
223
|
end
|
228
|
-
|
229
224
|
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 KeystoreInfo
|
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<KeystoreItems>',
|
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
|