swagger_aem 2.5.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +47 -46
  4. data/README.md +20 -9
  5. data/Rakefile +2 -0
  6. data/docs/ConsoleApi.md +107 -58
  7. data/docs/CqApi.md +14 -13
  8. data/docs/CrxApi.md +60 -60
  9. data/docs/CustomApi.md +27 -24
  10. data/docs/GraniteApi.md +75 -0
  11. data/docs/InlineObject.md +17 -0
  12. data/docs/InlineObject1.md +17 -0
  13. data/docs/InlineObject2.md +17 -0
  14. data/docs/InlineObject3.md +17 -0
  15. data/docs/InlineObject4.md +21 -0
  16. data/docs/InlineObject5.md +19 -0
  17. data/docs/InstallStatus.md +9 -0
  18. data/docs/InstallStatusStatus.md +11 -1
  19. data/docs/KeystoreChainItems.md +13 -0
  20. data/docs/KeystoreInfo.md +11 -1
  21. data/docs/KeystoreItems.md +13 -0
  22. data/docs/SamlConfigurationInfo.md +15 -1
  23. data/docs/SamlConfigurationProperties.md +56 -24
  24. data/docs/SamlConfigurationPropertyItemsArray.md +16 -2
  25. data/docs/SamlConfigurationPropertyItemsBoolean.md +17 -3
  26. data/docs/SamlConfigurationPropertyItemsLong.md +17 -3
  27. data/docs/SamlConfigurationPropertyItemsString.md +17 -3
  28. data/docs/SlingApi.md +482 -445
  29. data/docs/TruststoreInfo.md +11 -1
  30. data/docs/TruststoreItems.md +15 -0
  31. data/git_push.sh +11 -8
  32. data/lib/swagger_aem.rb +10 -3
  33. data/lib/swagger_aem/api/console_api.rb +160 -91
  34. data/lib/swagger_aem/api/cq_api.rb +49 -41
  35. data/lib/swagger_aem/api/crx_api.rb +170 -135
  36. data/lib/swagger_aem/api/custom_api.rb +68 -56
  37. data/lib/swagger_aem/api/granite_api.rb +124 -0
  38. data/lib/swagger_aem/api/sling_api.rb +900 -720
  39. data/lib/swagger_aem/api_client.rb +53 -54
  40. data/lib/swagger_aem/api_error.rb +22 -3
  41. data/lib/swagger_aem/configuration.rb +49 -10
  42. data/lib/swagger_aem/models/inline_object.rb +206 -0
  43. data/lib/swagger_aem/models/inline_object1.rb +206 -0
  44. data/lib/swagger_aem/models/inline_object2.rb +206 -0
  45. data/lib/swagger_aem/models/inline_object3.rb +206 -0
  46. data/lib/swagger_aem/models/inline_object4.rb +224 -0
  47. data/lib/swagger_aem/models/inline_object5.rb +215 -0
  48. data/lib/swagger_aem/models/install_status.rb +43 -25
  49. data/lib/swagger_aem/models/install_status_status.rb +46 -28
  50. data/lib/swagger_aem/models/keystore_chain_items.rb +50 -32
  51. data/lib/swagger_aem/models/keystore_info.rb +45 -27
  52. data/lib/swagger_aem/models/keystore_items.rb +49 -31
  53. data/lib/swagger_aem/models/saml_configuration_info.rb +49 -31
  54. data/lib/swagger_aem/models/saml_configuration_properties.rb +114 -168
  55. data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +50 -32
  56. data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +56 -38
  57. data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +56 -38
  58. data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +56 -38
  59. data/lib/swagger_aem/models/truststore_info.rb +45 -27
  60. data/lib/swagger_aem/models/truststore_items.rb +54 -36
  61. data/lib/swagger_aem/version.rb +4 -4
  62. data/spec/api/console_api_spec.rb +17 -16
  63. data/spec/api/cq_api_spec.rb +6 -10
  64. data/spec/api/crx_api_spec.rb +11 -25
  65. data/spec/api/custom_api_spec.rb +7 -13
  66. data/spec/api/granite_api_spec.rb +52 -0
  67. data/spec/api/sling_api_spec.rb +32 -88
  68. data/spec/api_client_spec.rb +37 -37
  69. data/spec/configuration_spec.rb +11 -11
  70. data/spec/models/inline_object1_spec.rb +41 -0
  71. data/spec/models/inline_object2_spec.rb +41 -0
  72. data/spec/models/inline_object3_spec.rb +41 -0
  73. data/spec/models/inline_object4_spec.rb +53 -0
  74. data/spec/models/inline_object5_spec.rb +47 -0
  75. data/spec/models/inline_object_spec.rb +41 -0
  76. data/spec/models/install_status_spec.rb +5 -6
  77. data/spec/models/install_status_status_spec.rb +6 -7
  78. data/spec/models/keystore_chain_items_spec.rb +9 -10
  79. data/spec/models/keystore_info_spec.rb +6 -7
  80. data/spec/models/keystore_items_spec.rb +9 -10
  81. data/spec/models/saml_configuration_info_spec.rb +10 -11
  82. data/spec/models/saml_configuration_properties_spec.rb +28 -29
  83. data/spec/models/saml_configuration_property_items_array_spec.rb +10 -11
  84. data/spec/models/saml_configuration_property_items_boolean_spec.rb +11 -12
  85. data/spec/models/saml_configuration_property_items_long_spec.rb +11 -12
  86. data/spec/models/saml_configuration_property_items_string_spec.rb +11 -12
  87. data/spec/models/truststore_info_spec.rb +6 -7
  88. data/spec/models/truststore_items_spec.rb +11 -12
  89. data/spec/spec_helper.rb +3 -3
  90. data/swagger_aem.gemspec +8 -14
  91. metadata +36 -128
@@ -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: 2.4.0
6
+ The version of the OpenAPI document: 3.4.0
7
7
  Contact: opensource@shinesolutions.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0-SNAPSHOT
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'cgi'
14
14
 
15
15
  module SwaggerAemClient
16
16
  class CqApi
@@ -19,74 +19,74 @@ module SwaggerAemClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
- #
25
22
  # @param [Hash] opts the optional parameters
26
23
  # @return [String]
27
24
  def get_login_page(opts = {})
28
25
  data, _status_code, _headers = get_login_page_with_http_info(opts)
29
- return data
26
+ data
30
27
  end
31
28
 
32
- #
33
- #
34
29
  # @param [Hash] opts the optional parameters
35
- # @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
36
31
  def get_login_page_with_http_info(opts = {})
37
32
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: CqApi.get_login_page ..."
33
+ @api_client.config.logger.debug 'Calling API: CqApi.get_login_page ...'
39
34
  end
40
35
  # resource path
41
- local_var_path = "/libs/granite/core/content/login.html"
36
+ local_var_path = '/libs/granite/core/content/login.html'
42
37
 
43
38
  # query parameters
44
- query_params = {}
39
+ query_params = opts[:query_params] || {}
45
40
 
46
41
  # header parameters
47
- header_params = {}
42
+ header_params = opts[:header_params] || {}
48
43
  # HTTP header 'Accept' (if needed)
49
44
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])
50
45
 
51
46
  # form parameters
52
- form_params = {}
47
+ form_params = opts[:form_params] || {}
53
48
 
54
49
  # http body (model)
55
- post_body = nil
56
- auth_names = []
57
- 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(
58
59
  :header_params => header_params,
59
60
  :query_params => query_params,
60
61
  :form_params => form_params,
61
62
  :body => post_body,
62
63
  :auth_names => auth_names,
63
- :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)
64
68
  if @api_client.config.debugging
65
69
  @api_client.config.logger.debug "API called: CqApi#get_login_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
70
  end
67
71
  return data, status_code, headers
68
72
  end
69
73
 
70
- #
71
- #
72
- # @param authorizable_id
73
- # @param changelog
74
+ # @param authorizable_id [String]
75
+ # @param changelog [String]
74
76
  # @param [Hash] opts the optional parameters
75
77
  # @return [nil]
76
78
  def post_cq_actions(authorizable_id, changelog, opts = {})
77
79
  post_cq_actions_with_http_info(authorizable_id, changelog, opts)
78
- return nil
80
+ nil
79
81
  end
80
82
 
81
- #
82
- #
83
- # @param authorizable_id
84
- # @param changelog
83
+ # @param authorizable_id [String]
84
+ # @param changelog [String]
85
85
  # @param [Hash] opts the optional parameters
86
- # @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
87
87
  def post_cq_actions_with_http_info(authorizable_id, changelog, opts = {})
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "Calling API: CqApi.post_cq_actions ..."
89
+ @api_client.config.logger.debug 'Calling API: CqApi.post_cq_actions ...'
90
90
  end
91
91
  # verify the required parameter 'authorizable_id' is set
92
92
  if @api_client.config.client_side_validation && authorizable_id.nil?
@@ -97,30 +97,38 @@ module SwaggerAemClient
97
97
  fail ArgumentError, "Missing the required parameter 'changelog' when calling CqApi.post_cq_actions"
98
98
  end
99
99
  # resource path
100
- local_var_path = "/.cqactions.html"
100
+ local_var_path = '/.cqactions.html'
101
101
 
102
102
  # query parameters
103
- query_params = {}
103
+ query_params = opts[:query_params] || {}
104
104
  query_params[:'authorizableId'] = authorizable_id
105
105
  query_params[:'changelog'] = changelog
106
106
 
107
107
  # header parameters
108
- header_params = {}
109
- # HTTP header 'Accept' (if needed)
110
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
108
+ header_params = opts[:header_params] || {}
111
109
 
112
110
  # form parameters
113
- form_params = {}
111
+ form_params = opts[:form_params] || {}
114
112
 
115
113
  # http body (model)
116
- post_body = nil
117
- auth_names = ['aemAuth']
118
- 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(
119
123
  :header_params => header_params,
120
124
  :query_params => query_params,
121
125
  :form_params => form_params,
122
126
  :body => post_body,
123
- :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)
124
132
  if @api_client.config.debugging
125
133
  @api_client.config.logger.debug "API called: CqApi#post_cq_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
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: 2.4.0
6
+ The version of the OpenAPI document: 3.4.0
7
7
  Contact: opensource@shinesolutions.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0-SNAPSHOT
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'cgi'
14
14
 
15
15
  module SwaggerAemClient
16
16
  class CrxApi
@@ -19,235 +19,251 @@ module SwaggerAemClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
- #
25
22
  # @param [Hash] opts the optional parameters
26
23
  # @return [String]
27
24
  def get_crxde_status(opts = {})
28
25
  data, _status_code, _headers = get_crxde_status_with_http_info(opts)
29
- return data
26
+ data
30
27
  end
31
28
 
32
- #
33
- #
34
29
  # @param [Hash] opts the optional parameters
35
- # @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
36
31
  def get_crxde_status_with_http_info(opts = {})
37
32
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: CrxApi.get_crxde_status ..."
33
+ @api_client.config.logger.debug 'Calling API: CrxApi.get_crxde_status ...'
39
34
  end
40
35
  # resource path
41
- local_var_path = "/crx/server/crx.default/jcr:root/.1.json"
36
+ local_var_path = '/crx/server/crx.default/jcr:root/.1.json'
42
37
 
43
38
  # query parameters
44
- query_params = {}
39
+ query_params = opts[:query_params] || {}
45
40
 
46
41
  # header parameters
47
- header_params = {}
42
+ header_params = opts[:header_params] || {}
48
43
  # HTTP header 'Accept' (if needed)
49
44
  header_params['Accept'] = @api_client.select_header_accept(['plain/text'])
50
45
 
51
46
  # form parameters
52
- form_params = {}
47
+ form_params = opts[:form_params] || {}
53
48
 
54
49
  # http body (model)
55
- post_body = nil
56
- auth_names = ['aemAuth']
57
- 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(
58
59
  :header_params => header_params,
59
60
  :query_params => query_params,
60
61
  :form_params => form_params,
61
62
  :body => post_body,
62
63
  :auth_names => auth_names,
63
- :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)
64
68
  if @api_client.config.debugging
65
69
  @api_client.config.logger.debug "API called: CrxApi#get_crxde_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
70
  end
67
71
  return data, status_code, headers
68
72
  end
69
73
 
70
- #
71
- #
72
74
  # @param [Hash] opts the optional parameters
73
75
  # @return [InstallStatus]
74
76
  def get_install_status(opts = {})
75
77
  data, _status_code, _headers = get_install_status_with_http_info(opts)
76
- return data
78
+ data
77
79
  end
78
80
 
79
- #
80
- #
81
81
  # @param [Hash] opts the optional parameters
82
- # @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
83
83
  def get_install_status_with_http_info(opts = {})
84
84
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "Calling API: CrxApi.get_install_status ..."
85
+ @api_client.config.logger.debug 'Calling API: CrxApi.get_install_status ...'
86
86
  end
87
87
  # resource path
88
- local_var_path = "/crx/packmgr/installstatus.jsp"
88
+ local_var_path = '/crx/packmgr/installstatus.jsp'
89
89
 
90
90
  # query parameters
91
- query_params = {}
91
+ query_params = opts[:query_params] || {}
92
92
 
93
93
  # header parameters
94
- header_params = {}
94
+ header_params = opts[:header_params] || {}
95
95
  # HTTP header 'Accept' (if needed)
96
96
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
97
 
98
98
  # form parameters
99
- form_params = {}
99
+ form_params = opts[:form_params] || {}
100
100
 
101
101
  # http body (model)
102
- post_body = nil
103
- auth_names = ['aemAuth']
104
- 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(
105
111
  :header_params => header_params,
106
112
  :query_params => query_params,
107
113
  :form_params => form_params,
108
114
  :body => post_body,
109
115
  :auth_names => auth_names,
110
- :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)
111
120
  if @api_client.config.debugging
112
121
  @api_client.config.logger.debug "API called: CrxApi#get_install_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
122
  end
114
123
  return data, status_code, headers
115
124
  end
116
125
 
117
- #
118
- #
119
126
  # @param [Hash] opts the optional parameters
120
127
  # @return [nil]
121
128
  def get_package_manager_servlet(opts = {})
122
129
  get_package_manager_servlet_with_http_info(opts)
123
- return nil
130
+ nil
124
131
  end
125
132
 
126
- #
127
- #
128
133
  # @param [Hash] opts the optional parameters
129
- # @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
130
135
  def get_package_manager_servlet_with_http_info(opts = {})
131
136
  if @api_client.config.debugging
132
- @api_client.config.logger.debug "Calling API: CrxApi.get_package_manager_servlet ..."
137
+ @api_client.config.logger.debug 'Calling API: CrxApi.get_package_manager_servlet ...'
133
138
  end
134
139
  # resource path
135
- local_var_path = "/crx/packmgr/service/script.html"
140
+ local_var_path = '/crx/packmgr/service/script.html'
136
141
 
137
142
  # query parameters
138
- query_params = {}
143
+ query_params = opts[:query_params] || {}
139
144
 
140
145
  # header parameters
141
- header_params = {}
146
+ header_params = opts[:header_params] || {}
142
147
  # HTTP header 'Accept' (if needed)
143
148
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])
144
149
 
145
150
  # form parameters
146
- form_params = {}
151
+ form_params = opts[:form_params] || {}
147
152
 
148
153
  # http body (model)
149
- post_body = nil
150
- auth_names = ['aemAuth']
151
- 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(
152
163
  :header_params => header_params,
153
164
  :query_params => query_params,
154
165
  :form_params => form_params,
155
166
  :body => post_body,
156
- :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)
157
172
  if @api_client.config.debugging
158
173
  @api_client.config.logger.debug "API called: CrxApi#get_package_manager_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
174
  end
160
175
  return data, status_code, headers
161
176
  end
162
177
 
163
- #
164
- #
165
- # @param cmd
178
+ # @param cmd [String]
166
179
  # @param [Hash] opts the optional parameters
167
180
  # @return [String]
168
181
  def post_package_service(cmd, opts = {})
169
182
  data, _status_code, _headers = post_package_service_with_http_info(cmd, opts)
170
- return data
183
+ data
171
184
  end
172
185
 
173
- #
174
- #
175
- # @param cmd
186
+ # @param cmd [String]
176
187
  # @param [Hash] opts the optional parameters
177
- # @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
178
189
  def post_package_service_with_http_info(cmd, opts = {})
179
190
  if @api_client.config.debugging
180
- @api_client.config.logger.debug "Calling API: CrxApi.post_package_service ..."
191
+ @api_client.config.logger.debug 'Calling API: CrxApi.post_package_service ...'
181
192
  end
182
193
  # verify the required parameter 'cmd' is set
183
194
  if @api_client.config.client_side_validation && cmd.nil?
184
195
  fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service"
185
196
  end
186
197
  # resource path
187
- local_var_path = "/crx/packmgr/service.jsp"
198
+ local_var_path = '/crx/packmgr/service.jsp'
188
199
 
189
200
  # query parameters
190
- query_params = {}
201
+ query_params = opts[:query_params] || {}
191
202
  query_params[:'cmd'] = cmd
192
203
 
193
204
  # header parameters
194
- header_params = {}
205
+ header_params = opts[:header_params] || {}
195
206
  # HTTP header 'Accept' (if needed)
196
207
  header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
197
208
 
198
209
  # form parameters
199
- form_params = {}
210
+ form_params = opts[:form_params] || {}
200
211
 
201
212
  # http body (model)
202
- post_body = nil
203
- auth_names = ['aemAuth']
204
- 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(
205
222
  :header_params => header_params,
206
223
  :query_params => query_params,
207
224
  :form_params => form_params,
208
225
  :body => post_body,
209
226
  :auth_names => auth_names,
210
- :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)
211
231
  if @api_client.config.debugging
212
232
  @api_client.config.logger.debug "API called: CrxApi#post_package_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
233
  end
214
234
  return data, status_code, headers
215
235
  end
216
236
 
217
- #
218
- #
219
- # @param path
220
- # @param cmd
237
+ # @param path [String]
238
+ # @param cmd [String]
221
239
  # @param [Hash] opts the optional parameters
222
240
  # @option opts [String] :group_name
223
241
  # @option opts [String] :package_name
224
242
  # @option opts [String] :package_version
225
243
  # @option opts [String] :_charset_
226
- # @option opts [BOOLEAN] :force
227
- # @option opts [BOOLEAN] :recursive
244
+ # @option opts [Boolean] :force
245
+ # @option opts [Boolean] :recursive
228
246
  # @option opts [File] :package
229
247
  # @return [String]
230
248
  def post_package_service_json(path, cmd, opts = {})
231
249
  data, _status_code, _headers = post_package_service_json_with_http_info(path, cmd, opts)
232
- return data
250
+ data
233
251
  end
234
252
 
235
- #
236
- #
237
- # @param path
238
- # @param cmd
253
+ # @param path [String]
254
+ # @param cmd [String]
239
255
  # @param [Hash] opts the optional parameters
240
256
  # @option opts [String] :group_name
241
257
  # @option opts [String] :package_name
242
258
  # @option opts [String] :package_version
243
259
  # @option opts [String] :_charset_
244
- # @option opts [BOOLEAN] :force
245
- # @option opts [BOOLEAN] :recursive
260
+ # @option opts [Boolean] :force
261
+ # @option opts [Boolean] :recursive
246
262
  # @option opts [File] :package
247
- # @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
248
264
  def post_package_service_json_with_http_info(path, cmd, opts = {})
249
265
  if @api_client.config.debugging
250
- @api_client.config.logger.debug "Calling API: CrxApi.post_package_service_json ..."
266
+ @api_client.config.logger.debug 'Calling API: CrxApi.post_package_service_json ...'
251
267
  end
252
268
  # verify the required parameter 'path' is set
253
269
  if @api_client.config.client_side_validation && path.nil?
@@ -258,10 +274,10 @@ module SwaggerAemClient
258
274
  fail ArgumentError, "Missing the required parameter 'cmd' when calling CrxApi.post_package_service_json"
259
275
  end
260
276
  # resource path
261
- 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))
262
278
 
263
279
  # query parameters
264
- query_params = {}
280
+ query_params = opts[:query_params] || {}
265
281
  query_params[:'cmd'] = cmd
266
282
  query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
267
283
  query_params[:'packageName'] = opts[:'package_name'] if !opts[:'package_name'].nil?
@@ -271,60 +287,65 @@ module SwaggerAemClient
271
287
  query_params[:'recursive'] = opts[:'recursive'] if !opts[:'recursive'].nil?
272
288
 
273
289
  # header parameters
274
- header_params = {}
290
+ header_params = opts[:header_params] || {}
275
291
  # HTTP header 'Accept' (if needed)
276
292
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
277
293
  # HTTP header 'Content-Type'
278
294
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
279
295
 
280
296
  # form parameters
281
- form_params = {}
282
- form_params["package"] = opts[:'package'] if !opts[:'package'].nil?
297
+ form_params = opts[:form_params] || {}
298
+ form_params['package'] = opts[:'package'] if !opts[:'package'].nil?
283
299
 
284
300
  # http body (model)
285
- post_body = nil
286
- auth_names = ['aemAuth']
287
- 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(
288
310
  :header_params => header_params,
289
311
  :query_params => query_params,
290
312
  :form_params => form_params,
291
313
  :body => post_body,
292
314
  :auth_names => auth_names,
293
- :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)
294
319
  if @api_client.config.debugging
295
320
  @api_client.config.logger.debug "API called: CrxApi#post_package_service_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
296
321
  end
297
322
  return data, status_code, headers
298
323
  end
299
324
 
300
- #
301
- #
302
- # @param group_name
303
- # @param package_name
304
- # @param version
305
- # @param path
325
+ # @param group_name [String]
326
+ # @param package_name [String]
327
+ # @param version [String]
328
+ # @param path [String]
306
329
  # @param [Hash] opts the optional parameters
307
330
  # @option opts [String] :filter
308
331
  # @option opts [String] :_charset_
309
332
  # @return [String]
310
333
  def post_package_update(group_name, package_name, version, path, opts = {})
311
334
  data, _status_code, _headers = post_package_update_with_http_info(group_name, package_name, version, path, opts)
312
- return data
335
+ data
313
336
  end
314
337
 
315
- #
316
- #
317
- # @param group_name
318
- # @param package_name
319
- # @param version
320
- # @param path
338
+ # @param group_name [String]
339
+ # @param package_name [String]
340
+ # @param version [String]
341
+ # @param path [String]
321
342
  # @param [Hash] opts the optional parameters
322
343
  # @option opts [String] :filter
323
344
  # @option opts [String] :_charset_
324
- # @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
325
346
  def post_package_update_with_http_info(group_name, package_name, version, path, opts = {})
326
347
  if @api_client.config.debugging
327
- @api_client.config.logger.debug "Calling API: CrxApi.post_package_update ..."
348
+ @api_client.config.logger.debug 'Calling API: CrxApi.post_package_update ...'
328
349
  end
329
350
  # verify the required parameter 'group_name' is set
330
351
  if @api_client.config.client_side_validation && group_name.nil?
@@ -343,10 +364,10 @@ module SwaggerAemClient
343
364
  fail ArgumentError, "Missing the required parameter 'path' when calling CrxApi.post_package_update"
344
365
  end
345
366
  # resource path
346
- local_var_path = "/crx/packmgr/update.jsp"
367
+ local_var_path = '/crx/packmgr/update.jsp'
347
368
 
348
369
  # query parameters
349
- query_params = {}
370
+ query_params = opts[:query_params] || {}
350
371
  query_params[:'groupName'] = group_name
351
372
  query_params[:'packageName'] = package_name
352
373
  query_params[:'version'] = version
@@ -355,51 +376,56 @@ module SwaggerAemClient
355
376
  query_params[:'_charset_'] = opts[:'_charset_'] if !opts[:'_charset_'].nil?
356
377
 
357
378
  # header parameters
358
- header_params = {}
379
+ header_params = opts[:header_params] || {}
359
380
  # HTTP header 'Accept' (if needed)
360
381
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
361
382
 
362
383
  # form parameters
363
- form_params = {}
384
+ form_params = opts[:form_params] || {}
364
385
 
365
386
  # http body (model)
366
- post_body = nil
367
- auth_names = ['aemAuth']
368
- 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(
369
396
  :header_params => header_params,
370
397
  :query_params => query_params,
371
398
  :form_params => form_params,
372
399
  :body => post_body,
373
400
  :auth_names => auth_names,
374
- :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)
375
405
  if @api_client.config.debugging
376
406
  @api_client.config.logger.debug "API called: CrxApi#post_package_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
407
  end
378
408
  return data, status_code, headers
379
409
  end
380
410
 
381
- #
382
- #
383
- # @param old
384
- # @param plain
385
- # @param verify
411
+ # @param old [String]
412
+ # @param plain [String]
413
+ # @param verify [String]
386
414
  # @param [Hash] opts the optional parameters
387
415
  # @return [String]
388
416
  def post_set_password(old, plain, verify, opts = {})
389
417
  data, _status_code, _headers = post_set_password_with_http_info(old, plain, verify, opts)
390
- return data
418
+ data
391
419
  end
392
420
 
393
- #
394
- #
395
- # @param old
396
- # @param plain
397
- # @param verify
421
+ # @param old [String]
422
+ # @param plain [String]
423
+ # @param verify [String]
398
424
  # @param [Hash] opts the optional parameters
399
- # @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
400
426
  def post_set_password_with_http_info(old, plain, verify, opts = {})
401
427
  if @api_client.config.debugging
402
- @api_client.config.logger.debug "Calling API: CrxApi.post_set_password ..."
428
+ @api_client.config.logger.debug 'Calling API: CrxApi.post_set_password ...'
403
429
  end
404
430
  # verify the required parameter 'old' is set
405
431
  if @api_client.config.client_side_validation && old.nil?
@@ -414,32 +440,41 @@ module SwaggerAemClient
414
440
  fail ArgumentError, "Missing the required parameter 'verify' when calling CrxApi.post_set_password"
415
441
  end
416
442
  # resource path
417
- local_var_path = "/crx/explorer/ui/setpassword.jsp"
443
+ local_var_path = '/crx/explorer/ui/setpassword.jsp'
418
444
 
419
445
  # query parameters
420
- query_params = {}
446
+ query_params = opts[:query_params] || {}
421
447
  query_params[:'old'] = old
422
448
  query_params[:'plain'] = plain
423
449
  query_params[:'verify'] = verify
424
450
 
425
451
  # header parameters
426
- header_params = {}
452
+ header_params = opts[:header_params] || {}
427
453
  # HTTP header 'Accept' (if needed)
428
454
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
429
455
 
430
456
  # form parameters
431
- form_params = {}
457
+ form_params = opts[:form_params] || {}
432
458
 
433
459
  # http body (model)
434
- post_body = nil
435
- auth_names = ['aemAuth']
436
- 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(
437
469
  :header_params => header_params,
438
470
  :query_params => query_params,
439
471
  :form_params => form_params,
440
472
  :body => post_body,
441
473
  :auth_names => auth_names,
442
- :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)
443
478
  if @api_client.config.debugging
444
479
  @api_client.config.logger.debug "API called: CrxApi#post_set_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
445
480
  end