swagger_aem 2.1.0 → 2.2.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.
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
@@ -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 TruststoreInfo
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<TruststoreItems>',
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
@@ -0,0 +1,248 @@
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 TruststoreItems
18
+ # Truststore alias name
19
+ attr_accessor :_alias
20
+
21
+ attr_accessor :entry_type
22
+
23
+ # e.g. \"CN=localhost\"
24
+ attr_accessor :subject
25
+
26
+ # e.g. \"CN=Admin\"
27
+ attr_accessor :issuer
28
+
29
+ # e.g. \"Sun Jul 01 12:00:00 AEST 2018\"
30
+ attr_accessor :not_before
31
+
32
+ # e.g. \"Sun Jun 30 23:59:50 AEST 2019\"
33
+ attr_accessor :not_after
34
+
35
+ # 18165099476682912368
36
+ attr_accessor :serial_number
37
+
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'_alias' => :'alias',
43
+ :'entry_type' => :'entryType',
44
+ :'subject' => :'subject',
45
+ :'issuer' => :'issuer',
46
+ :'not_before' => :'notBefore',
47
+ :'not_after' => :'notAfter',
48
+ :'serial_number' => :'serialNumber'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'_alias' => :'String',
56
+ :'entry_type' => :'String',
57
+ :'subject' => :'String',
58
+ :'issuer' => :'String',
59
+ :'not_before' => :'String',
60
+ :'not_after' => :'String',
61
+ :'serial_number' => :'Integer'
62
+ }
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ return unless attributes.is_a?(Hash)
69
+
70
+ # convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
72
+
73
+ if attributes.has_key?(:'alias')
74
+ self._alias = attributes[:'alias']
75
+ end
76
+
77
+ if attributes.has_key?(:'entryType')
78
+ self.entry_type = attributes[:'entryType']
79
+ end
80
+
81
+ if attributes.has_key?(:'subject')
82
+ self.subject = attributes[:'subject']
83
+ end
84
+
85
+ if attributes.has_key?(:'issuer')
86
+ self.issuer = attributes[:'issuer']
87
+ end
88
+
89
+ if attributes.has_key?(:'notBefore')
90
+ self.not_before = attributes[:'notBefore']
91
+ end
92
+
93
+ if attributes.has_key?(:'notAfter')
94
+ self.not_after = attributes[:'notAfter']
95
+ end
96
+
97
+ if attributes.has_key?(:'serialNumber')
98
+ self.serial_number = attributes[:'serialNumber']
99
+ end
100
+
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ return invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ return true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ _alias == o._alias &&
122
+ entry_type == o.entry_type &&
123
+ subject == o.subject &&
124
+ issuer == o.issuer &&
125
+ not_before == o.not_before &&
126
+ not_after == o.not_after &&
127
+ serial_number == o.serial_number
128
+ end
129
+
130
+ # @see the `==` method
131
+ # @param [Object] Object to be compared
132
+ def eql?(o)
133
+ self == o
134
+ end
135
+
136
+ # Calculates hash code according to all attributes.
137
+ # @return [Fixnum] Hash code
138
+ def hash
139
+ [_alias, entry_type, subject, issuer, not_before, not_after, serial_number].hash
140
+ end
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 build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ self.class.swagger_types.each_pair do |key, type|
148
+ if type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :BOOLEAN
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ temp_model = SwaggerAemClient.const_get(type).new
200
+ temp_model.build_from_hash(value)
201
+ end
202
+ end
203
+
204
+ # Returns the string representation of the object
205
+ # @return [String] String presentation of the object
206
+ def to_s
207
+ to_hash.to_s
208
+ end
209
+
210
+ # to_body is an alias to to_hash (backward compatibility)
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_body
213
+ to_hash
214
+ end
215
+
216
+ # Returns the object in the form of hash
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_hash
219
+ hash = {}
220
+ self.class.attribute_map.each_pair do |attr, param|
221
+ value = self.send(attr)
222
+ next if value.nil?
223
+ hash[param] = _to_hash(value)
224
+ end
225
+ hash
226
+ end
227
+
228
+ # Outputs non-array value in the form of hash
229
+ # For object, use to_hash. Otherwise, just return the value
230
+ # @param [Object] value Any valid value
231
+ # @return [Hash] Returns the value in the form of hash
232
+ def _to_hash(value)
233
+ if value.is_a?(Array)
234
+ value.compact.map{ |v| _to_hash(v) }
235
+ elsif value.is_a?(Hash)
236
+ {}.tap do |hash|
237
+ value.each { |k, v| hash[k] = _to_hash(v) }
238
+ end
239
+ elsif value.respond_to? :to_hash
240
+ value.to_hash
241
+ else
242
+ value
243
+ end
244
+ end
245
+
246
+ end
247
+
248
+ end
@@ -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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module SwaggerAemClient
14
- VERSION = "2.1.0"
14
+ VERSION = "2.2.0"
15
15
  end