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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +44 -43
  4. data/README.md +15 -7
  5. data/docs/ConsoleApi.md +43 -33
  6. data/docs/CqApi.md +12 -8
  7. data/docs/CrxApi.md +41 -27
  8. data/docs/CustomApi.md +19 -13
  9. data/docs/InlineObject.md +17 -0
  10. data/docs/InlineObject1.md +17 -0
  11. data/docs/InlineObject2.md +17 -0
  12. data/docs/InlineObject3.md +17 -0
  13. data/docs/InlineObject4.md +21 -0
  14. data/docs/InstallStatus.md +9 -0
  15. data/docs/InstallStatusStatus.md +11 -1
  16. data/docs/KeystoreChainItems.md +13 -0
  17. data/docs/KeystoreInfo.md +11 -1
  18. data/docs/KeystoreItems.md +13 -0
  19. data/docs/SamlConfigurationInfo.md +14 -0
  20. data/docs/SamlConfigurationProperties.md +32 -0
  21. data/docs/SamlConfigurationPropertyItemsArray.md +16 -2
  22. data/docs/SamlConfigurationPropertyItemsBoolean.md +17 -3
  23. data/docs/SamlConfigurationPropertyItemsLong.md +16 -2
  24. data/docs/SamlConfigurationPropertyItemsString.md +16 -2
  25. data/docs/SlingApi.md +320 -214
  26. data/docs/TruststoreInfo.md +11 -1
  27. data/docs/TruststoreItems.md +15 -0
  28. data/git_push.sh +10 -7
  29. data/lib/swagger_aem.rb +7 -2
  30. data/lib/swagger_aem/api/console_api.rb +118 -67
  31. data/lib/swagger_aem/api/cq_api.rb +43 -23
  32. data/lib/swagger_aem/api/crx_api.rb +154 -84
  33. data/lib/swagger_aem/api/custom_api.rb +60 -29
  34. data/lib/swagger_aem/api/sling_api.rb +850 -500
  35. data/lib/swagger_aem/api_client.rb +42 -43
  36. data/lib/swagger_aem/api_error.rb +21 -2
  37. data/lib/swagger_aem/configuration.rb +46 -7
  38. data/lib/swagger_aem/models/inline_object.rb +206 -0
  39. data/lib/swagger_aem/models/inline_object1.rb +206 -0
  40. data/lib/swagger_aem/models/inline_object2.rb +206 -0
  41. data/lib/swagger_aem/models/inline_object3.rb +206 -0
  42. data/lib/swagger_aem/models/inline_object4.rb +224 -0
  43. data/lib/swagger_aem/models/install_status.rb +35 -12
  44. data/lib/swagger_aem/models/install_status_status.rb +38 -15
  45. data/lib/swagger_aem/models/keystore_chain_items.rb +42 -19
  46. data/lib/swagger_aem/models/keystore_info.rb +37 -14
  47. data/lib/swagger_aem/models/keystore_items.rb +41 -18
  48. data/lib/swagger_aem/models/saml_configuration_info.rb +40 -17
  49. data/lib/swagger_aem/models/saml_configuration_properties.rb +81 -58
  50. data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +42 -19
  51. data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +43 -20
  52. data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +42 -19
  53. data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +42 -19
  54. data/lib/swagger_aem/models/truststore_info.rb +37 -14
  55. data/lib/swagger_aem/models/truststore_items.rb +46 -23
  56. data/lib/swagger_aem/version.rb +3 -3
  57. data/spec/models/inline_object1_spec.rb +41 -0
  58. data/spec/models/inline_object2_spec.rb +41 -0
  59. data/spec/models/inline_object3_spec.rb +41 -0
  60. data/spec/models/inline_object4_spec.rb +53 -0
  61. data/spec/models/inline_object_spec.rb +41 -0
  62. data/swagger_aem.gemspec +2 -8
  63. 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 spec version: 3.1.0
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.2.1-SNAPSHOT
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<TruststoreItems>',
34
- :'exists' => :'BOOLEAN'
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
- return unless attributes.is_a?(Hash)
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::TruststoreInfo` initialize method"
49
+ end
42
50
 
43
- # convert string to symbol for hash key
44
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
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::TruststoreInfo`. 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.has_key?(:'aliases')
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.has_key?(:'exists')
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 [Fixnum] Hash code
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 the attribute
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 :BOOLEAN
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
- temp_model = SwaggerAemClient.const_get(type).new
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
- next if value.nil?
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 spec version: 3.1.0
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.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -60,40 +60,53 @@ module SwaggerAemClient
60
60
  }
61
61
  end
62
62
 
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
63
69
  # Initializes the object
64
70
  # @param [Hash] attributes Model attributes in the form of hash
65
71
  def initialize(attributes = {})
66
- return unless attributes.is_a?(Hash)
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerAemClient::TruststoreItems` initialize method"
74
+ end
67
75
 
68
- # convert string to symbol for hash key
69
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerAemClient::TruststoreItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
70
83
 
71
- if attributes.has_key?(:'alias')
72
- self._alias = attributes[:'alias']
84
+ if attributes.key?(:'_alias')
85
+ self._alias = attributes[:'_alias']
73
86
  end
74
87
 
75
- if attributes.has_key?(:'entryType')
76
- self.entry_type = attributes[:'entryType']
88
+ if attributes.key?(:'entry_type')
89
+ self.entry_type = attributes[:'entry_type']
77
90
  end
78
91
 
79
- if attributes.has_key?(:'subject')
92
+ if attributes.key?(:'subject')
80
93
  self.subject = attributes[:'subject']
81
94
  end
82
95
 
83
- if attributes.has_key?(:'issuer')
96
+ if attributes.key?(:'issuer')
84
97
  self.issuer = attributes[:'issuer']
85
98
  end
86
99
 
87
- if attributes.has_key?(:'notBefore')
88
- self.not_before = attributes[:'notBefore']
100
+ if attributes.key?(:'not_before')
101
+ self.not_before = attributes[:'not_before']
89
102
  end
90
103
 
91
- if attributes.has_key?(:'notAfter')
92
- self.not_after = attributes[:'notAfter']
104
+ if attributes.key?(:'not_after')
105
+ self.not_after = attributes[:'not_after']
93
106
  end
94
107
 
95
- if attributes.has_key?(:'serialNumber')
96
- self.serial_number = attributes[:'serialNumber']
108
+ if attributes.key?(:'serial_number')
109
+ self.serial_number = attributes[:'serial_number']
97
110
  end
98
111
  end
99
112
 
@@ -131,11 +144,18 @@ module SwaggerAemClient
131
144
  end
132
145
 
133
146
  # Calculates hash code according to all attributes.
134
- # @return [Fixnum] Hash code
147
+ # @return [Integer] Hash code
135
148
  def hash
136
149
  [_alias, entry_type, subject, issuer, not_before, not_after, serial_number].hash
137
150
  end
138
151
 
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ new.build_from_hash(attributes)
157
+ end
158
+
139
159
  # Builds the object from hash
140
160
  # @param [Hash] attributes Model attributes in the form of hash
141
161
  # @return [Object] Returns the model itself
@@ -143,7 +163,7 @@ module SwaggerAemClient
143
163
  return nil unless attributes.is_a?(Hash)
144
164
  self.class.openapi_types.each_pair do |key, type|
145
165
  if type =~ /\AArray<(.*)>/i
146
- # check to ensure the input is an array given that the the attribute
166
+ # check to ensure the input is an array given that the attribute
147
167
  # is documented as an array but the input is not
148
168
  if attributes[self.class.attribute_map[key]].is_a?(Array)
149
169
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -172,7 +192,7 @@ module SwaggerAemClient
172
192
  value.to_i
173
193
  when :Float
174
194
  value.to_f
175
- when :BOOLEAN
195
+ when :Boolean
176
196
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
197
  true
178
198
  else
@@ -193,8 +213,7 @@ module SwaggerAemClient
193
213
  end
194
214
  end
195
215
  else # model
196
- temp_model = SwaggerAemClient.const_get(type).new
197
- temp_model.build_from_hash(value)
216
+ SwaggerAemClient.const_get(type).build_from_hash(value)
198
217
  end
199
218
  end
200
219
 
@@ -216,7 +235,11 @@ module SwaggerAemClient
216
235
  hash = {}
217
236
  self.class.attribute_map.each_pair do |attr, param|
218
237
  value = self.send(attr)
219
- next if value.nil?
238
+ if value.nil?
239
+ is_nullable = self.class.openapi_nullable.include?(attr)
240
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
241
+ end
242
+
220
243
  hash[param] = _to_hash(value)
221
244
  end
222
245
  hash
@@ -3,13 +3,13 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 3.1.0
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.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module SwaggerAemClient
14
- VERSION = '3.1.0'
14
+ VERSION = '3.2.0'
15
15
  end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ The version of the OpenAPI document: 3.2.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SwaggerAemClient::InlineObject1
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'InlineObject1' do
21
+ before do
22
+ # run before each test
23
+ @instance = SwaggerAemClient::InlineObject1.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineObject1' do
31
+ it 'should create an instance of InlineObject1' do
32
+ expect(@instance).to be_instance_of(SwaggerAemClient::InlineObject1)
33
+ end
34
+ end
35
+ describe 'test attribute "package"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ The version of the OpenAPI document: 3.2.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SwaggerAemClient::InlineObject2
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'InlineObject2' do
21
+ before do
22
+ # run before each test
23
+ @instance = SwaggerAemClient::InlineObject2.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineObject2' do
31
+ it 'should create an instance of InlineObject2' do
32
+ expect(@instance).to be_instance_of(SwaggerAemClient::InlineObject2)
33
+ end
34
+ end
35
+ describe 'test attribute "certificate"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ The version of the OpenAPI document: 3.2.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SwaggerAemClient::InlineObject3
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'InlineObject3' do
21
+ before do
22
+ # run before each test
23
+ @instance = SwaggerAemClient::InlineObject3.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineObject3' do
31
+ it 'should create an instance of InlineObject3' do
32
+ expect(@instance).to be_instance_of(SwaggerAemClient::InlineObject3)
33
+ end
34
+ end
35
+ describe 'test attribute "truststore_p12"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Adobe Experience Manager (AEM) API
3
+
4
+ #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
+
6
+ The version of the OpenAPI document: 3.2.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SwaggerAemClient::InlineObject4
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'InlineObject4' do
21
+ before do
22
+ # run before each test
23
+ @instance = SwaggerAemClient::InlineObject4.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of InlineObject4' do
31
+ it 'should create an instance of InlineObject4' do
32
+ expect(@instance).to be_instance_of(SwaggerAemClient::InlineObject4)
33
+ end
34
+ end
35
+ describe 'test attribute "cert_chain"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "pk"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "key_store"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end