swagger_aem 3.1.0 → 3.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 +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,14 +3,14 @@
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
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module SwaggerAemClient
16
16
  class CqApi
@@ -27,7 +27,7 @@ module SwaggerAemClient
27
27
  end
28
28
 
29
29
  # @param [Hash] opts the optional parameters
30
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
30
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
31
31
  def get_login_page_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: CqApi.get_login_page ...'
@@ -36,33 +36,43 @@ module SwaggerAemClient
36
36
  local_var_path = '/libs/granite/core/content/login.html'
37
37
 
38
38
  # query parameters
39
- query_params = {}
39
+ query_params = opts[:query_params] || {}
40
40
 
41
41
  # header parameters
42
- header_params = {}
42
+ header_params = opts[:header_params] || {}
43
43
  # HTTP header 'Accept' (if needed)
44
44
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])
45
45
 
46
46
  # form parameters
47
- form_params = {}
47
+ form_params = opts[:form_params] || {}
48
48
 
49
49
  # http body (model)
50
- post_body = nil
51
- auth_names = []
52
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type] || 'String'
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || []
57
+
58
+ new_options = opts.merge(
53
59
  :header_params => header_params,
54
60
  :query_params => query_params,
55
61
  :form_params => form_params,
56
62
  :body => post_body,
57
63
  :auth_names => auth_names,
58
- :return_type => 'String')
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: CqApi#get_login_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
61
70
  end
62
71
  return data, status_code, headers
63
72
  end
64
- # @param authorizable_id
65
- # @param changelog
73
+
74
+ # @param authorizable_id [String]
75
+ # @param changelog [String]
66
76
  # @param [Hash] opts the optional parameters
67
77
  # @return [nil]
68
78
  def post_cq_actions(authorizable_id, changelog, opts = {})
@@ -70,10 +80,10 @@ module SwaggerAemClient
70
80
  nil
71
81
  end
72
82
 
73
- # @param authorizable_id
74
- # @param changelog
83
+ # @param authorizable_id [String]
84
+ # @param changelog [String]
75
85
  # @param [Hash] opts the optional parameters
76
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
86
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
77
87
  def post_cq_actions_with_http_info(authorizable_id, changelog, opts = {})
78
88
  if @api_client.config.debugging
79
89
  @api_client.config.logger.debug 'Calling API: CqApi.post_cq_actions ...'
@@ -90,25 +100,35 @@ module SwaggerAemClient
90
100
  local_var_path = '/.cqactions.html'
91
101
 
92
102
  # query parameters
93
- query_params = {}
103
+ query_params = opts[:query_params] || {}
94
104
  query_params[:'authorizableId'] = authorizable_id
95
105
  query_params[:'changelog'] = changelog
96
106
 
97
107
  # header parameters
98
- header_params = {}
108
+ header_params = opts[:header_params] || {}
99
109
 
100
110
  # form parameters
101
- form_params = {}
111
+ form_params = opts[:form_params] || {}
102
112
 
103
113
  # http body (model)
104
- post_body = nil
105
- auth_names = ['aemAuth']
106
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
114
+ post_body = opts[:body]
115
+
116
+ # return_type
117
+ return_type = opts[:return_type]
118
+
119
+ # auth_names
120
+ auth_names = opts[:auth_names] || ['aemAuth']
121
+
122
+ new_options = opts.merge(
107
123
  :header_params => header_params,
108
124
  :query_params => query_params,
109
125
  :form_params => form_params,
110
126
  :body => post_body,
111
- :auth_names => auth_names)
127
+ :auth_names => auth_names,
128
+ :return_type => return_type
129
+ )
130
+
131
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
112
132
  if @api_client.config.debugging
113
133
  @api_client.config.logger.debug "API called: CqApi#post_cq_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
114
134
  end
@@ -3,14 +3,14 @@
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
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module SwaggerAemClient
16
16
  class CrxApi
@@ -27,7 +27,7 @@ module SwaggerAemClient
27
27
  end
28
28
 
29
29
  # @param [Hash] opts the optional parameters
30
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
30
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
31
31
  def get_crxde_status_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: CrxApi.get_crxde_status ...'
@@ -36,31 +36,41 @@ module SwaggerAemClient
36
36
  local_var_path = '/crx/server/crx.default/jcr:root/.1.json'
37
37
 
38
38
  # query parameters
39
- query_params = {}
39
+ query_params = opts[:query_params] || {}
40
40
 
41
41
  # header parameters
42
- header_params = {}
42
+ header_params = opts[:header_params] || {}
43
43
  # HTTP header 'Accept' (if needed)
44
44
  header_params['Accept'] = @api_client.select_header_accept(['plain/text'])
45
45
 
46
46
  # form parameters
47
- form_params = {}
47
+ form_params = opts[:form_params] || {}
48
48
 
49
49
  # http body (model)
50
- post_body = nil
51
- auth_names = ['aemAuth']
52
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type] || 'String'
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || ['aemAuth']
57
+
58
+ new_options = opts.merge(
53
59
  :header_params => header_params,
54
60
  :query_params => query_params,
55
61
  :form_params => form_params,
56
62
  :body => post_body,
57
63
  :auth_names => auth_names,
58
- :return_type => 'String')
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: CrxApi#get_crxde_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
61
70
  end
62
71
  return data, status_code, headers
63
72
  end
73
+
64
74
  # @param [Hash] opts the optional parameters
65
75
  # @return [InstallStatus]
66
76
  def get_install_status(opts = {})
@@ -69,7 +79,7 @@ module SwaggerAemClient
69
79
  end
70
80
 
71
81
  # @param [Hash] opts the optional parameters
72
- # @return [Array<(InstallStatus, Fixnum, Hash)>] InstallStatus data, response status code and response headers
82
+ # @return [Array<(InstallStatus, Integer, Hash)>] InstallStatus data, response status code and response headers
73
83
  def get_install_status_with_http_info(opts = {})
74
84
  if @api_client.config.debugging
75
85
  @api_client.config.logger.debug 'Calling API: CrxApi.get_install_status ...'
@@ -78,31 +88,41 @@ module SwaggerAemClient
78
88
  local_var_path = '/crx/packmgr/installstatus.jsp'
79
89
 
80
90
  # query parameters
81
- query_params = {}
91
+ query_params = opts[:query_params] || {}
82
92
 
83
93
  # header parameters
84
- header_params = {}
94
+ header_params = opts[:header_params] || {}
85
95
  # HTTP header 'Accept' (if needed)
86
96
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
87
97
 
88
98
  # form parameters
89
- form_params = {}
99
+ form_params = opts[:form_params] || {}
90
100
 
91
101
  # http body (model)
92
- post_body = nil
93
- auth_names = ['aemAuth']
94
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
102
+ post_body = opts[:body]
103
+
104
+ # return_type
105
+ return_type = opts[:return_type] || 'InstallStatus'
106
+
107
+ # auth_names
108
+ auth_names = opts[:auth_names] || ['aemAuth']
109
+
110
+ new_options = opts.merge(
95
111
  :header_params => header_params,
96
112
  :query_params => query_params,
97
113
  :form_params => form_params,
98
114
  :body => post_body,
99
115
  :auth_names => auth_names,
100
- :return_type => 'InstallStatus')
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
101
120
  if @api_client.config.debugging
102
121
  @api_client.config.logger.debug "API called: CrxApi#get_install_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
122
  end
104
123
  return data, status_code, headers
105
124
  end
125
+
106
126
  # @param [Hash] opts the optional parameters
107
127
  # @return [nil]
108
128
  def get_package_manager_servlet(opts = {})
@@ -111,7 +131,7 @@ module SwaggerAemClient
111
131
  end
112
132
 
113
133
  # @param [Hash] opts the optional parameters
114
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
134
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
115
135
  def get_package_manager_servlet_with_http_info(opts = {})
116
136
  if @api_client.config.debugging
117
137
  @api_client.config.logger.debug 'Calling API: CrxApi.get_package_manager_servlet ...'
@@ -120,31 +140,42 @@ module SwaggerAemClient
120
140
  local_var_path = '/crx/packmgr/service/script.html'
121
141
 
122
142
  # query parameters
123
- query_params = {}
143
+ query_params = opts[:query_params] || {}
124
144
 
125
145
  # header parameters
126
- header_params = {}
146
+ header_params = opts[:header_params] || {}
127
147
  # HTTP header 'Accept' (if needed)
128
148
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])
129
149
 
130
150
  # form parameters
131
- form_params = {}
151
+ form_params = opts[:form_params] || {}
132
152
 
133
153
  # http body (model)
134
- post_body = nil
135
- auth_names = ['aemAuth']
136
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
154
+ post_body = opts[:body]
155
+
156
+ # return_type
157
+ return_type = opts[:return_type]
158
+
159
+ # auth_names
160
+ auth_names = opts[:auth_names] || ['aemAuth']
161
+
162
+ new_options = opts.merge(
137
163
  :header_params => header_params,
138
164
  :query_params => query_params,
139
165
  :form_params => form_params,
140
166
  :body => post_body,
141
- :auth_names => auth_names)
167
+ :auth_names => auth_names,
168
+ :return_type => return_type
169
+ )
170
+
171
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
142
172
  if @api_client.config.debugging
143
173
  @api_client.config.logger.debug "API called: CrxApi#get_package_manager_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
174
  end
145
175
  return data, status_code, headers
146
176
  end
147
- # @param cmd
177
+
178
+ # @param cmd [String]
148
179
  # @param [Hash] opts the optional parameters
149
180
  # @return [String]
150
181
  def post_package_service(cmd, opts = {})
@@ -152,9 +183,9 @@ module SwaggerAemClient
152
183
  data
153
184
  end
154
185
 
155
- # @param cmd
186
+ # @param cmd [String]
156
187
  # @param [Hash] opts the optional parameters
157
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
188
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
158
189
  def post_package_service_with_http_info(cmd, opts = {})
159
190
  if @api_client.config.debugging
160
191
  @api_client.config.logger.debug 'Calling API: CrxApi.post_package_service ...'
@@ -167,41 +198,51 @@ module SwaggerAemClient
167
198
  local_var_path = '/crx/packmgr/service.jsp'
168
199
 
169
200
  # query parameters
170
- query_params = {}
201
+ query_params = opts[:query_params] || {}
171
202
  query_params[:'cmd'] = cmd
172
203
 
173
204
  # header parameters
174
- header_params = {}
205
+ header_params = opts[:header_params] || {}
175
206
  # HTTP header 'Accept' (if needed)
176
207
  header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
177
208
 
178
209
  # form parameters
179
- form_params = {}
210
+ form_params = opts[:form_params] || {}
180
211
 
181
212
  # http body (model)
182
- post_body = nil
183
- auth_names = ['aemAuth']
184
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
213
+ post_body = opts[:body]
214
+
215
+ # return_type
216
+ return_type = opts[:return_type] || 'String'
217
+
218
+ # auth_names
219
+ auth_names = opts[:auth_names] || ['aemAuth']
220
+
221
+ new_options = opts.merge(
185
222
  :header_params => header_params,
186
223
  :query_params => query_params,
187
224
  :form_params => form_params,
188
225
  :body => post_body,
189
226
  :auth_names => auth_names,
190
- :return_type => 'String')
227
+ :return_type => return_type
228
+ )
229
+
230
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
191
231
  if @api_client.config.debugging
192
232
  @api_client.config.logger.debug "API called: CrxApi#post_package_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
193
233
  end
194
234
  return data, status_code, headers
195
235
  end
196
- # @param path
197
- # @param cmd
236
+
237
+ # @param path [String]
238
+ # @param cmd [String]
198
239
  # @param [Hash] opts the optional parameters
199
240
  # @option opts [String] :group_name
200
241
  # @option opts [String] :package_name
201
242
  # @option opts [String] :package_version
202
243
  # @option opts [String] :_charset_
203
- # @option opts [BOOLEAN] :force
204
- # @option opts [BOOLEAN] :recursive
244
+ # @option opts [Boolean] :force
245
+ # @option opts [Boolean] :recursive
205
246
  # @option opts [File] :package
206
247
  # @return [String]
207
248
  def post_package_service_json(path, cmd, opts = {})
@@ -209,17 +250,17 @@ module SwaggerAemClient
209
250
  data
210
251
  end
211
252
 
212
- # @param path
213
- # @param cmd
253
+ # @param path [String]
254
+ # @param cmd [String]
214
255
  # @param [Hash] opts the optional parameters
215
256
  # @option opts [String] :group_name
216
257
  # @option opts [String] :package_name
217
258
  # @option opts [String] :package_version
218
259
  # @option opts [String] :_charset_
219
- # @option opts [BOOLEAN] :force
220
- # @option opts [BOOLEAN] :recursive
260
+ # @option opts [Boolean] :force
261
+ # @option opts [Boolean] :recursive
221
262
  # @option opts [File] :package
222
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
263
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
223
264
  def post_package_service_json_with_http_info(path, cmd, opts = {})
224
265
  if @api_client.config.debugging
225
266
  @api_client.config.logger.debug 'Calling API: CrxApi.post_package_service_json ...'
@@ -233,10 +274,10 @@ module SwaggerAemClient
233
274
  fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service_json"
234
275
  end
235
276
  # resource path
236
- local_var_path = '/crx/packmgr/service/.json/{path}'.sub('{' + 'path' + '}', path.to_s)
277
+ local_var_path = '/crx/packmgr/service/.json/{path}'.sub('{' + 'path' + '}', CGI.escape(path.to_s))
237
278
 
238
279
  # query parameters
239
- query_params = {}
280
+ query_params = opts[:query_params] || {}
240
281
  query_params[:'cmd'] = cmd
241
282
  query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
242
283
  query_params[:'packageName'] = opts[:'package_name'] if !opts[:'package_name'].nil?
@@ -246,35 +287,45 @@ module SwaggerAemClient
246
287
  query_params[:'recursive'] = opts[:'recursive'] if !opts[:'recursive'].nil?
247
288
 
248
289
  # header parameters
249
- header_params = {}
290
+ header_params = opts[:header_params] || {}
250
291
  # HTTP header 'Accept' (if needed)
251
292
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
293
  # HTTP header 'Content-Type'
253
294
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
254
295
 
255
296
  # form parameters
256
- form_params = {}
297
+ form_params = opts[:form_params] || {}
257
298
  form_params['package'] = opts[:'package'] if !opts[:'package'].nil?
258
299
 
259
300
  # http body (model)
260
- post_body = nil
261
- auth_names = ['aemAuth']
262
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
301
+ post_body = opts[:body]
302
+
303
+ # return_type
304
+ return_type = opts[:return_type] || 'String'
305
+
306
+ # auth_names
307
+ auth_names = opts[:auth_names] || ['aemAuth']
308
+
309
+ new_options = opts.merge(
263
310
  :header_params => header_params,
264
311
  :query_params => query_params,
265
312
  :form_params => form_params,
266
313
  :body => post_body,
267
314
  :auth_names => auth_names,
268
- :return_type => 'String')
315
+ :return_type => return_type
316
+ )
317
+
318
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
269
319
  if @api_client.config.debugging
270
320
  @api_client.config.logger.debug "API called: CrxApi#post_package_service_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
321
  end
272
322
  return data, status_code, headers
273
323
  end
274
- # @param group_name
275
- # @param package_name
276
- # @param version
277
- # @param path
324
+
325
+ # @param group_name [String]
326
+ # @param package_name [String]
327
+ # @param version [String]
328
+ # @param path [String]
278
329
  # @param [Hash] opts the optional parameters
279
330
  # @option opts [String] :filter
280
331
  # @option opts [String] :_charset_
@@ -284,14 +335,14 @@ module SwaggerAemClient
284
335
  data
285
336
  end
286
337
 
287
- # @param group_name
288
- # @param package_name
289
- # @param version
290
- # @param path
338
+ # @param group_name [String]
339
+ # @param package_name [String]
340
+ # @param version [String]
341
+ # @param path [String]
291
342
  # @param [Hash] opts the optional parameters
292
343
  # @option opts [String] :filter
293
344
  # @option opts [String] :_charset_
294
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
345
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
295
346
  def post_package_update_with_http_info(group_name, package_name, version, path, opts = {})
296
347
  if @api_client.config.debugging
297
348
  @api_client.config.logger.debug 'Calling API: CrxApi.post_package_update ...'
@@ -316,7 +367,7 @@ module SwaggerAemClient
316
367
  local_var_path = '/crx/packmgr/update.jsp'
317
368
 
318
369
  # query parameters
319
- query_params = {}
370
+ query_params = opts[:query_params] || {}
320
371
  query_params[:'groupName'] = group_name
321
372
  query_params[:'packageName'] = package_name
322
373
  query_params[:'version'] = version
@@ -325,31 +376,41 @@ module SwaggerAemClient
325
376
  query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].nil?
326
377
 
327
378
  # header parameters
328
- header_params = {}
379
+ header_params = opts[:header_params] || {}
329
380
  # HTTP header 'Accept' (if needed)
330
381
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
331
382
 
332
383
  # form parameters
333
- form_params = {}
384
+ form_params = opts[:form_params] || {}
334
385
 
335
386
  # http body (model)
336
- post_body = nil
337
- auth_names = ['aemAuth']
338
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
387
+ post_body = opts[:body]
388
+
389
+ # return_type
390
+ return_type = opts[:return_type] || 'String'
391
+
392
+ # auth_names
393
+ auth_names = opts[:auth_names] || ['aemAuth']
394
+
395
+ new_options = opts.merge(
339
396
  :header_params => header_params,
340
397
  :query_params => query_params,
341
398
  :form_params => form_params,
342
399
  :body => post_body,
343
400
  :auth_names => auth_names,
344
- :return_type => 'String')
401
+ :return_type => return_type
402
+ )
403
+
404
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
345
405
  if @api_client.config.debugging
346
406
  @api_client.config.logger.debug "API called: CrxApi#post_package_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
407
  end
348
408
  return data, status_code, headers
349
409
  end
350
- # @param old
351
- # @param plain
352
- # @param verify
410
+
411
+ # @param old [String]
412
+ # @param plain [String]
413
+ # @param verify [String]
353
414
  # @param [Hash] opts the optional parameters
354
415
  # @return [String]
355
416
  def post_set_password(old, plain, verify, opts = {})
@@ -357,11 +418,11 @@ module SwaggerAemClient
357
418
  data
358
419
  end
359
420
 
360
- # @param old
361
- # @param plain
362
- # @param verify
421
+ # @param old [String]
422
+ # @param plain [String]
423
+ # @param verify [String]
363
424
  # @param [Hash] opts the optional parameters
364
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
425
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
365
426
  def post_set_password_with_http_info(old, plain, verify, opts = {})
366
427
  if @api_client.config.debugging
367
428
  @api_client.config.logger.debug 'Calling API: CrxApi.post_set_password ...'
@@ -382,29 +443,38 @@ module SwaggerAemClient
382
443
  local_var_path = '/crx/explorer/ui/setpassword.jsp'
383
444
 
384
445
  # query parameters
385
- query_params = {}
446
+ query_params = opts[:query_params] || {}
386
447
  query_params[:'old'] = old
387
448
  query_params[:'plain'] = plain
388
449
  query_params[:'verify'] = verify
389
450
 
390
451
  # header parameters
391
- header_params = {}
452
+ header_params = opts[:header_params] || {}
392
453
  # HTTP header 'Accept' (if needed)
393
454
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
394
455
 
395
456
  # form parameters
396
- form_params = {}
457
+ form_params = opts[:form_params] || {}
397
458
 
398
459
  # http body (model)
399
- post_body = nil
400
- auth_names = ['aemAuth']
401
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
460
+ post_body = opts[:body]
461
+
462
+ # return_type
463
+ return_type = opts[:return_type] || 'String'
464
+
465
+ # auth_names
466
+ auth_names = opts[:auth_names] || ['aemAuth']
467
+
468
+ new_options = opts.merge(
402
469
  :header_params => header_params,
403
470
  :query_params => query_params,
404
471
  :form_params => form_params,
405
472
  :body => post_body,
406
473
  :auth_names => auth_names,
407
- :return_type => 'String')
474
+ :return_type => return_type
475
+ )
476
+
477
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
408
478
  if @api_client.config.debugging
409
479
  @api_client.config.logger.debug "API called: CrxApi#post_set_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
410
480
  end