swagger_aem 0.9.1

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.
data/git_push.sh ADDED
@@ -0,0 +1,67 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
18
+ #
19
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
20
+
21
+ git_user_id=$1
22
+ git_repo_id=$2
23
+ release_note=$3
24
+
25
+ if [ "$git_user_id" = "" ]; then
26
+ git_user_id="GIT_USER_ID"
27
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
28
+ fi
29
+
30
+ if [ "$git_repo_id" = "" ]; then
31
+ git_repo_id="GIT_REPO_ID"
32
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
33
+ fi
34
+
35
+ if [ "$release_note" = "" ]; then
36
+ release_note="Minor update"
37
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
38
+ fi
39
+
40
+ # Initialize the local directory as a Git repository
41
+ git init
42
+
43
+ # Adds the files in the local repository and stages them for commit.
44
+ git add .
45
+
46
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
47
+ git commit -m "$release_note"
48
+
49
+ # Sets the new remote
50
+ git_remote=`git remote`
51
+ if [ "$git_remote" = "" ]; then # git remote not defined
52
+
53
+ if [ "$GIT_TOKEN" = "" ]; then
54
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
55
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
56
+ else
57
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
58
+ fi
59
+
60
+ fi
61
+
62
+ git pull origin master
63
+
64
+ # Pushes (Forces) the changes in the local repository up to the remote repository
65
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
66
+ git push origin master 2>&1 | grep -v 'To https'
67
+
@@ -0,0 +1,54 @@
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: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ # Common files
25
+ require 'swagger_aem/api_client'
26
+ require 'swagger_aem/api_error'
27
+ require 'swagger_aem/version'
28
+ require 'swagger_aem/configuration'
29
+
30
+ # Models
31
+
32
+ # APIs
33
+ require 'swagger_aem/api/console_api'
34
+ require 'swagger_aem/api/cq_api'
35
+ require 'swagger_aem/api/crx_api'
36
+ require 'swagger_aem/api/sling_api'
37
+
38
+ module SwaggerAemClient
39
+ class << self
40
+ # Customize default settings for the SDK using block.
41
+ # SwaggerAemClient.configure do |config|
42
+ # config.username = "xxx"
43
+ # config.password = "xxx"
44
+ # end
45
+ # If no block given, return the default Configuration object.
46
+ def configure
47
+ if block_given?
48
+ yield(Configuration.default)
49
+ else
50
+ Configuration.default
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,151 @@
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: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module SwaggerAemClient
27
+ class ConsoleApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ #
35
+ #
36
+ # @param name
37
+ # @param action
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [nil]
40
+ def post_bundle(name, action, opts = {})
41
+ post_bundle_with_http_info(name, action, opts)
42
+ return nil
43
+ end
44
+
45
+ #
46
+ #
47
+ # @param name
48
+ # @param action
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
51
+ def post_bundle_with_http_info(name, action, opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug "Calling API: ConsoleApi.post_bundle ..."
54
+ end
55
+ # verify the required parameter 'name' is set
56
+ fail ArgumentError, "Missing the required parameter 'name' when calling ConsoleApi.post_bundle" if name.nil?
57
+ # verify the required parameter 'action' is set
58
+ fail ArgumentError, "Missing the required parameter 'action' when calling ConsoleApi.post_bundle" if action.nil?
59
+ # resource path
60
+ local_var_path = "/system/console/bundles/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
61
+
62
+ # query parameters
63
+ query_params = {}
64
+ query_params[:'action'] = action
65
+
66
+ # header parameters
67
+ header_params = {}
68
+
69
+ # HTTP header 'Accept' (if needed)
70
+ local_header_accept = ['text/plain']
71
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
72
+
73
+ # HTTP header 'Content-Type'
74
+ local_header_content_type = []
75
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
76
+
77
+ # form parameters
78
+ form_params = {}
79
+
80
+ # http body (model)
81
+ post_body = nil
82
+ auth_names = ['aemAuth']
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: ConsoleApi#post_bundle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ #
96
+ #
97
+ # @param action
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [nil]
100
+ def post_jmx_repository(action, opts = {})
101
+ post_jmx_repository_with_http_info(action, opts)
102
+ return nil
103
+ end
104
+
105
+ #
106
+ #
107
+ # @param action
108
+ # @param [Hash] opts the optional parameters
109
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
110
+ def post_jmx_repository_with_http_info(action, opts = {})
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "Calling API: ConsoleApi.post_jmx_repository ..."
113
+ end
114
+ # verify the required parameter 'action' is set
115
+ fail ArgumentError, "Missing the required parameter 'action' when calling ConsoleApi.post_jmx_repository" if action.nil?
116
+ # resource path
117
+ local_var_path = "/system/console/jmx/com.adobe.granite:type=Repository/op/{action}".sub('{format}','json').sub('{' + 'action' + '}', action.to_s)
118
+
119
+ # query parameters
120
+ query_params = {}
121
+
122
+ # header parameters
123
+ header_params = {}
124
+
125
+ # HTTP header 'Accept' (if needed)
126
+ local_header_accept = ['text/plain']
127
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
128
+
129
+ # HTTP header 'Content-Type'
130
+ local_header_content_type = []
131
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
132
+
133
+ # form parameters
134
+ form_params = {}
135
+
136
+ # http body (model)
137
+ post_body = nil
138
+ auth_names = ['aemAuth']
139
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
140
+ :header_params => header_params,
141
+ :query_params => query_params,
142
+ :form_params => form_params,
143
+ :body => post_body,
144
+ :auth_names => auth_names)
145
+ if @api_client.config.debugging
146
+ @api_client.config.logger.debug "API called: ConsoleApi#post_jmx_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ end
148
+ return data, status_code, headers
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,96 @@
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: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module SwaggerAemClient
27
+ class CqApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ #
35
+ #
36
+ # @param authorizable_id
37
+ # @param changelog
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [nil]
40
+ def post_cq_actions(authorizable_id, changelog, opts = {})
41
+ post_cq_actions_with_http_info(authorizable_id, changelog, opts)
42
+ return nil
43
+ end
44
+
45
+ #
46
+ #
47
+ # @param authorizable_id
48
+ # @param changelog
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
51
+ def post_cq_actions_with_http_info(authorizable_id, changelog, opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug "Calling API: CqApi.post_cq_actions ..."
54
+ end
55
+ # verify the required parameter 'authorizable_id' is set
56
+ fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling CqApi.post_cq_actions" if authorizable_id.nil?
57
+ # verify the required parameter 'changelog' is set
58
+ fail ArgumentError, "Missing the required parameter 'changelog' when calling CqApi.post_cq_actions" if changelog.nil?
59
+ # resource path
60
+ local_var_path = ".cqactions.html".sub('{format}','json')
61
+
62
+ # query parameters
63
+ query_params = {}
64
+ query_params[:'authorizableId'] = authorizable_id
65
+ query_params[:'changelog'] = changelog
66
+
67
+ # header parameters
68
+ header_params = {}
69
+
70
+ # HTTP header 'Accept' (if needed)
71
+ local_header_accept = ['text/plain']
72
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
73
+
74
+ # HTTP header 'Content-Type'
75
+ local_header_content_type = []
76
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
77
+
78
+ # form parameters
79
+ form_params = {}
80
+
81
+ # http body (model)
82
+ post_body = nil
83
+ auth_names = ['aemAuth']
84
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: CqApi#post_cq_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,318 @@
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: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module SwaggerAemClient
27
+ class CrxApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ #
35
+ #
36
+ # @param cmd
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [String]
39
+ def post_package_service(cmd, opts = {})
40
+ data, _status_code, _headers = post_package_service_with_http_info(cmd, opts)
41
+ return data
42
+ end
43
+
44
+ #
45
+ #
46
+ # @param cmd
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
49
+ def post_package_service_with_http_info(cmd, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug "Calling API: CrxApi.post_package_service ..."
52
+ end
53
+ # verify the required parameter 'cmd' is set
54
+ fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service" if cmd.nil?
55
+ # resource path
56
+ local_var_path = "/crx/packmgr/service.jsp".sub('{format}','json')
57
+
58
+ # query parameters
59
+ query_params = {}
60
+ query_params[:'cmd'] = cmd
61
+
62
+ # header parameters
63
+ header_params = {}
64
+
65
+ # HTTP header 'Accept' (if needed)
66
+ local_header_accept = ['text/xml']
67
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
68
+
69
+ # HTTP header 'Content-Type'
70
+ local_header_content_type = []
71
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
72
+
73
+ # form parameters
74
+ form_params = {}
75
+
76
+ # http body (model)
77
+ post_body = nil
78
+ auth_names = ['aemAuth']
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => 'String')
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: CrxApi#post_package_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ #
93
+ #
94
+ # @param path
95
+ # @param cmd
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [String] :group_name
98
+ # @option opts [String] :package_name
99
+ # @option opts [String] :package_version
100
+ # @option opts [String] :_charset_
101
+ # @option opts [BOOLEAN] :force
102
+ # @option opts [File] :package
103
+ # @return [String]
104
+ def post_package_service_json(path, cmd, opts = {})
105
+ data, _status_code, _headers = post_package_service_json_with_http_info(path, cmd, opts)
106
+ return data
107
+ end
108
+
109
+ #
110
+ #
111
+ # @param path
112
+ # @param cmd
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [String] :group_name
115
+ # @option opts [String] :package_name
116
+ # @option opts [String] :package_version
117
+ # @option opts [String] :_charset_
118
+ # @option opts [BOOLEAN] :force
119
+ # @option opts [File] :package
120
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
121
+ def post_package_service_json_with_http_info(path, cmd, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug "Calling API: CrxApi.post_package_service_json ..."
124
+ end
125
+ # verify the required parameter 'path' is set
126
+ fail ArgumentError, "Missing the required parameter 'path' when calling CrxApi.post_package_service_json" if path.nil?
127
+ # verify the required parameter 'cmd' is set
128
+ fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service_json" if cmd.nil?
129
+ # resource path
130
+ local_var_path = "/crx/packmgr/service/.json/{path}".sub('{format}','json').sub('{' + 'path' + '}', path.to_s)
131
+
132
+ # query parameters
133
+ query_params = {}
134
+ query_params[:'cmd'] = cmd
135
+ query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
136
+ query_params[:'packageName'] = opts[:'package_name'] if !opts[:'package_name'].nil?
137
+ query_params[:'packageVersion'] = opts[:'package_version'] if !opts[:'package_version'].nil?
138
+ query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].nil?
139
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
140
+
141
+ # header parameters
142
+ header_params = {}
143
+
144
+ # HTTP header 'Accept' (if needed)
145
+ local_header_accept = ['application/json']
146
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
147
+
148
+ # HTTP header 'Content-Type'
149
+ local_header_content_type = ['multipart/form-data']
150
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
151
+
152
+ # form parameters
153
+ form_params = {}
154
+ form_params["package"] = opts[:'package'] if !opts[:'package'].nil?
155
+
156
+ # http body (model)
157
+ post_body = nil
158
+ auth_names = ['aemAuth']
159
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
160
+ :header_params => header_params,
161
+ :query_params => query_params,
162
+ :form_params => form_params,
163
+ :body => post_body,
164
+ :auth_names => auth_names,
165
+ :return_type => 'String')
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug "API called: CrxApi#post_package_service_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
+ end
169
+ return data, status_code, headers
170
+ end
171
+
172
+ #
173
+ #
174
+ # @param group_name
175
+ # @param package_name
176
+ # @param version
177
+ # @param path
178
+ # @param [Hash] opts the optional parameters
179
+ # @option opts [String] :filter
180
+ # @option opts [String] :_charset_
181
+ # @return [String]
182
+ def post_package_update(group_name, package_name, version, path, opts = {})
183
+ data, _status_code, _headers = post_package_update_with_http_info(group_name, package_name, version, path, opts)
184
+ return data
185
+ end
186
+
187
+ #
188
+ #
189
+ # @param group_name
190
+ # @param package_name
191
+ # @param version
192
+ # @param path
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [String] :filter
195
+ # @option opts [String] :_charset_
196
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
197
+ def post_package_update_with_http_info(group_name, package_name, version, path, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug "Calling API: CrxApi.post_package_update ..."
200
+ end
201
+ # verify the required parameter 'group_name' is set
202
+ fail ArgumentError, "Missing the required parameter 'group_name' when calling CrxApi.post_package_update" if group_name.nil?
203
+ # verify the required parameter 'package_name' is set
204
+ fail ArgumentError, "Missing the required parameter 'package_name' when calling CrxApi.post_package_update" if package_name.nil?
205
+ # verify the required parameter 'version' is set
206
+ fail ArgumentError, "Missing the required parameter 'version' when calling CrxApi.post_package_update" if version.nil?
207
+ # verify the required parameter 'path' is set
208
+ fail ArgumentError, "Missing the required parameter 'path' when calling CrxApi.post_package_update" if path.nil?
209
+ # resource path
210
+ local_var_path = "/crx/packmgr/update.jsp".sub('{format}','json')
211
+
212
+ # query parameters
213
+ query_params = {}
214
+ query_params[:'groupName'] = group_name
215
+ query_params[:'packageName'] = package_name
216
+ query_params[:'version'] = version
217
+ query_params[:'path'] = path
218
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
219
+ query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].nil?
220
+
221
+ # header parameters
222
+ header_params = {}
223
+
224
+ # HTTP header 'Accept' (if needed)
225
+ local_header_accept = ['application/json']
226
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
227
+
228
+ # HTTP header 'Content-Type'
229
+ local_header_content_type = []
230
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = ['aemAuth']
238
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'String')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: CrxApi#post_package_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+
251
+ #
252
+ #
253
+ # @param old
254
+ # @param plain
255
+ # @param verify
256
+ # @param [Hash] opts the optional parameters
257
+ # @return [nil]
258
+ def post_set_password(old, plain, verify, opts = {})
259
+ post_set_password_with_http_info(old, plain, verify, opts)
260
+ return nil
261
+ end
262
+
263
+ #
264
+ #
265
+ # @param old
266
+ # @param plain
267
+ # @param verify
268
+ # @param [Hash] opts the optional parameters
269
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
270
+ def post_set_password_with_http_info(old, plain, verify, opts = {})
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "Calling API: CrxApi.post_set_password ..."
273
+ end
274
+ # verify the required parameter 'old' is set
275
+ fail ArgumentError, "Missing the required parameter 'old' when calling CrxApi.post_set_password" if old.nil?
276
+ # verify the required parameter 'plain' is set
277
+ fail ArgumentError, "Missing the required parameter 'plain' when calling CrxApi.post_set_password" if plain.nil?
278
+ # verify the required parameter 'verify' is set
279
+ fail ArgumentError, "Missing the required parameter 'verify' when calling CrxApi.post_set_password" if verify.nil?
280
+ # resource path
281
+ local_var_path = "/crx/explorer/ui/setpassword.jsp".sub('{format}','json')
282
+
283
+ # query parameters
284
+ query_params = {}
285
+ query_params[:'old'] = old
286
+ query_params[:'plain'] = plain
287
+ query_params[:'verify'] = verify
288
+
289
+ # header parameters
290
+ header_params = {}
291
+
292
+ # HTTP header 'Accept' (if needed)
293
+ local_header_accept = ['text/plain']
294
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
295
+
296
+ # HTTP header 'Content-Type'
297
+ local_header_content_type = []
298
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
299
+
300
+ # form parameters
301
+ form_params = {}
302
+
303
+ # http body (model)
304
+ post_body = nil
305
+ auth_names = ['aemAuth']
306
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
307
+ :header_params => header_params,
308
+ :query_params => query_params,
309
+ :form_params => form_params,
310
+ :body => post_body,
311
+ :auth_names => auth_names)
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug "API called: CrxApi#post_set_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
314
+ end
315
+ return data, status_code, headers
316
+ end
317
+ end
318
+ end