swagger_aem 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +17 -17
  3. data/README.md +25 -5
  4. data/docs/ConsoleApi.md +110 -0
  5. data/docs/CustomApi.md +4 -10
  6. data/docs/KeystoreChainItems.md +12 -0
  7. data/docs/KeystoreInfo.md +9 -0
  8. data/docs/KeystoreItems.md +12 -0
  9. data/docs/SamlConfigurationInfo.md +13 -0
  10. data/docs/SamlConfigurationProperties.md +31 -0
  11. data/docs/SamlConfigurationPropertyItemsArray.md +13 -0
  12. data/docs/SamlConfigurationPropertyItemsBoolean.md +13 -0
  13. data/docs/SamlConfigurationPropertyItemsLong.md +13 -0
  14. data/docs/SamlConfigurationPropertyItemsString.md +13 -0
  15. data/docs/SlingApi.md +550 -21
  16. data/docs/TruststoreInfo.md +9 -0
  17. data/docs/TruststoreItems.md +14 -0
  18. data/lib/swagger_aem.rb +12 -1
  19. data/lib/swagger_aem/api/console_api.rb +138 -1
  20. data/lib/swagger_aem/api/cq_api.rb +1 -1
  21. data/lib/swagger_aem/api/crx_api.rb +1 -1
  22. data/lib/swagger_aem/api/custom_api.rb +9 -21
  23. data/lib/swagger_aem/api/sling_api.rb +641 -41
  24. data/lib/swagger_aem/api_client.rb +1 -1
  25. data/lib/swagger_aem/api_error.rb +1 -1
  26. data/lib/swagger_aem/configuration.rb +1 -1
  27. data/lib/swagger_aem/models/install_status.rb +1 -1
  28. data/lib/swagger_aem/models/install_status_status.rb +1 -1
  29. data/lib/swagger_aem/models/keystore_chain_items.rb +229 -0
  30. data/lib/swagger_aem/models/keystore_info.rb +200 -0
  31. data/lib/swagger_aem/models/keystore_items.rb +230 -0
  32. data/lib/swagger_aem/models/saml_configuration_info.rb +238 -0
  33. data/lib/swagger_aem/models/saml_configuration_properties.rb +467 -0
  34. data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +241 -0
  35. data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +239 -0
  36. data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +239 -0
  37. data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +239 -0
  38. data/lib/swagger_aem/models/truststore_info.rb +200 -0
  39. data/lib/swagger_aem/models/truststore_items.rb +248 -0
  40. data/lib/swagger_aem/version.rb +2 -2
  41. data/spec/api/console_api_spec.rb +42 -1
  42. data/spec/api/cq_api_spec.rb +1 -1
  43. data/spec/api/crx_api_spec.rb +1 -1
  44. data/spec/api/custom_api_spec.rb +1 -3
  45. data/spec/api/sling_api_spec.rb +164 -5
  46. data/spec/api_client_spec.rb +1 -1
  47. data/spec/configuration_spec.rb +1 -1
  48. data/spec/models/install_status_spec.rb +1 -1
  49. data/spec/models/install_status_status_spec.rb +1 -1
  50. data/spec/models/keystore_chain_items_spec.rb +66 -0
  51. data/spec/models/keystore_info_spec.rb +48 -0
  52. data/spec/models/keystore_items_spec.rb +66 -0
  53. data/spec/models/saml_configuration_info_spec.rb +72 -0
  54. data/spec/models/saml_configuration_properties_spec.rb +180 -0
  55. data/spec/models/saml_configuration_property_items_array_spec.rb +72 -0
  56. data/spec/models/saml_configuration_property_items_boolean_spec.rb +72 -0
  57. data/spec/models/saml_configuration_property_items_long_spec.rb +72 -0
  58. data/spec/models/saml_configuration_property_items_string_spec.rb +72 -0
  59. data/spec/models/truststore_info_spec.rb +48 -0
  60. data/spec/models/truststore_items_spec.rb +78 -0
  61. data/spec/spec_helper.rb +1 -1
  62. data/swagger_aem.gemspec +2 -2
  63. metadata +47 -3
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.1.0
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.1.0
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.1.0
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.1.0
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.1.0
7
7
  Contact: opensource@shinesolutions.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -0,0 +1,229 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ OpenAPI spec version: 2.1.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module SwaggerAemClient
16
+
17
+ class KeystoreChainItems
18
+ # e.g. \"CN=localhost\"
19
+ attr_accessor :subject
20
+
21
+ # e.g. \"CN=Admin\"
22
+ attr_accessor :issuer
23
+
24
+ # e.g. \"Sun Jul 01 12:00:00 AEST 2018\"
25
+ attr_accessor :not_before
26
+
27
+ # e.g. \"Sun Jun 30 23:59:50 AEST 2019\"
28
+ attr_accessor :not_after
29
+
30
+ # 18165099476682912368
31
+ attr_accessor :serial_number
32
+
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'subject' => :'subject',
38
+ :'issuer' => :'issuer',
39
+ :'not_before' => :'notBefore',
40
+ :'not_after' => :'notAfter',
41
+ :'serial_number' => :'serialNumber'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+ :'subject' => :'String',
49
+ :'issuer' => :'String',
50
+ :'not_before' => :'String',
51
+ :'not_after' => :'String',
52
+ :'serial_number' => :'Integer'
53
+ }
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ return unless attributes.is_a?(Hash)
60
+
61
+ # convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
+
64
+ if attributes.has_key?(:'subject')
65
+ self.subject = attributes[:'subject']
66
+ end
67
+
68
+ if attributes.has_key?(:'issuer')
69
+ self.issuer = attributes[:'issuer']
70
+ end
71
+
72
+ if attributes.has_key?(:'notBefore')
73
+ self.not_before = attributes[:'notBefore']
74
+ end
75
+
76
+ if attributes.has_key?(:'notAfter')
77
+ self.not_after = attributes[:'notAfter']
78
+ end
79
+
80
+ if attributes.has_key?(:'serialNumber')
81
+ self.serial_number = attributes[:'serialNumber']
82
+ end
83
+
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ return invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ return true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ subject == o.subject &&
105
+ issuer == o.issuer &&
106
+ not_before == o.not_before &&
107
+ not_after == o.not_after &&
108
+ serial_number == o.serial_number
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Fixnum] Hash code
119
+ def hash
120
+ [subject, issuer, not_before, not_after, serial_number].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.swagger_types.each_pair do |key, type|
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the the attribute
131
+ # is documented as an array but the input is not
132
+ 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) } )
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ DateTime.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :BOOLEAN
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ temp_model = SwaggerAemClient.const_get(type).new
181
+ temp_model.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map{ |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -0,0 +1,200 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ OpenAPI spec version: 2.1.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module SwaggerAemClient
16
+
17
+ class KeystoreInfo
18
+ attr_accessor :aliases
19
+
20
+ # False if truststore don't exist
21
+ attr_accessor :exists
22
+
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'aliases' => :'aliases',
28
+ :'exists' => :'exists'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.swagger_types
34
+ {
35
+ :'aliases' => :'Array<KeystoreItems>',
36
+ :'exists' => :'BOOLEAN'
37
+ }
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+
48
+ if attributes.has_key?(:'aliases')
49
+ if (value = attributes[:'aliases']).is_a?(Array)
50
+ self.aliases = value
51
+ end
52
+ end
53
+
54
+ if attributes.has_key?(:'exists')
55
+ self.exists = attributes[:'exists']
56
+ end
57
+
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ return invalid_properties
65
+ end
66
+
67
+ # Check to see if the all the properties in the model are valid
68
+ # @return true if the model is valid
69
+ def valid?
70
+ return true
71
+ end
72
+
73
+ # Checks equality by comparing each attribute.
74
+ # @param [Object] Object to be compared
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ aliases == o.aliases &&
79
+ exists == o.exists
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Fixnum] Hash code
90
+ def hash
91
+ [aliases, exists].hash
92
+ end
93
+
94
+ # Builds the object from hash
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ # @return [Object] Returns the model itself
97
+ def build_from_hash(attributes)
98
+ return nil unless attributes.is_a?(Hash)
99
+ self.class.swagger_types.each_pair do |key, type|
100
+ if type =~ /\AArray<(.*)>/i
101
+ # check to ensure the input is an array given that the the attribute
102
+ # is documented as an array but the input is not
103
+ 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) } )
105
+ end
106
+ elsif !attributes[self.class.attribute_map[key]].nil?
107
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
108
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
109
+ end
110
+
111
+ self
112
+ end
113
+
114
+ # Deserializes the data based on type
115
+ # @param string type Data type
116
+ # @param string value Value to be deserialized
117
+ # @return [Object] Deserialized data
118
+ def _deserialize(type, value)
119
+ case type.to_sym
120
+ when :DateTime
121
+ DateTime.parse(value)
122
+ when :Date
123
+ Date.parse(value)
124
+ when :String
125
+ value.to_s
126
+ when :Integer
127
+ value.to_i
128
+ when :Float
129
+ value.to_f
130
+ when :BOOLEAN
131
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
132
+ true
133
+ else
134
+ false
135
+ end
136
+ when :Object
137
+ # generic object (usually a Hash), return directly
138
+ value
139
+ when /\AArray<(?<inner_type>.+)>\z/
140
+ inner_type = Regexp.last_match[:inner_type]
141
+ value.map { |v| _deserialize(inner_type, v) }
142
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
143
+ k_type = Regexp.last_match[:k_type]
144
+ v_type = Regexp.last_match[:v_type]
145
+ {}.tap do |hash|
146
+ value.each do |k, v|
147
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
148
+ end
149
+ end
150
+ else # model
151
+ temp_model = SwaggerAemClient.const_get(type).new
152
+ temp_model.build_from_hash(value)
153
+ end
154
+ end
155
+
156
+ # Returns the string representation of the object
157
+ # @return [String] String presentation of the object
158
+ def to_s
159
+ to_hash.to_s
160
+ end
161
+
162
+ # to_body is an alias to to_hash (backward compatibility)
163
+ # @return [Hash] Returns the object in the form of hash
164
+ def to_body
165
+ to_hash
166
+ end
167
+
168
+ # Returns the object in the form of hash
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_hash
171
+ hash = {}
172
+ self.class.attribute_map.each_pair do |attr, param|
173
+ value = self.send(attr)
174
+ next if value.nil?
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ # Outputs non-array value in the form of hash
181
+ # For object, use to_hash. Otherwise, just return the value
182
+ # @param [Object] value Any valid value
183
+ # @return [Hash] Returns the value in the form of hash
184
+ def _to_hash(value)
185
+ if value.is_a?(Array)
186
+ value.compact.map{ |v| _to_hash(v) }
187
+ elsif value.is_a?(Hash)
188
+ {}.tap do |hash|
189
+ value.each { |k, v| hash[k] = _to_hash(v) }
190
+ end
191
+ elsif value.respond_to? :to_hash
192
+ value.to_hash
193
+ else
194
+ value
195
+ end
196
+ end
197
+
198
+ end
199
+
200
+ end