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 CustomApi
@@ -19,158 +19,170 @@ 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
  # @option opts [String] :tags
27
- # @option opts [BOOLEAN] :combine_tags_or
24
+ # @option opts [Boolean] :combine_tags_or
28
25
  # @return [String]
29
26
  def get_aem_health_check(opts = {})
30
27
  data, _status_code, _headers = get_aem_health_check_with_http_info(opts)
31
- return data
28
+ data
32
29
  end
33
30
 
34
- #
35
- #
36
31
  # @param [Hash] opts the optional parameters
37
32
  # @option opts [String] :tags
38
- # @option opts [BOOLEAN] :combine_tags_or
39
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
33
+ # @option opts [Boolean] :combine_tags_or
34
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
40
35
  def get_aem_health_check_with_http_info(opts = {})
41
36
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: CustomApi.get_aem_health_check ..."
37
+ @api_client.config.logger.debug 'Calling API: CustomApi.get_aem_health_check ...'
43
38
  end
44
39
  # resource path
45
- local_var_path = "/system/health"
40
+ local_var_path = '/system/health'
46
41
 
47
42
  # query parameters
48
- query_params = {}
43
+ query_params = opts[:query_params] || {}
49
44
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
50
45
  query_params[:'combineTagsOr'] = opts[:'combine_tags_or'] if !opts[:'combine_tags_or'].nil?
51
46
 
52
47
  # header parameters
53
- header_params = {}
48
+ header_params = opts[:header_params] || {}
54
49
  # HTTP header 'Accept' (if needed)
55
50
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
51
 
57
52
  # form parameters
58
- form_params = {}
53
+ form_params = opts[:form_params] || {}
59
54
 
60
55
  # http body (model)
61
- post_body = nil
62
- auth_names = ['aemAuth']
63
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
56
+ post_body = opts[:body]
57
+
58
+ # return_type
59
+ return_type = opts[:return_type] || 'String'
60
+
61
+ # auth_names
62
+ auth_names = opts[:auth_names] || ['aemAuth']
63
+
64
+ new_options = opts.merge(
64
65
  :header_params => header_params,
65
66
  :query_params => query_params,
66
67
  :form_params => form_params,
67
68
  :body => post_body,
68
69
  :auth_names => auth_names,
69
- :return_type => 'String')
70
+ :return_type => return_type
71
+ )
72
+
73
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
70
74
  if @api_client.config.debugging
71
75
  @api_client.config.logger.debug "API called: CustomApi#get_aem_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
76
  end
73
77
  return data, status_code, headers
74
78
  end
75
79
 
76
- #
77
- #
78
80
  # @param [Hash] opts the optional parameters
79
81
  # @option opts [Array<String>] :bundles_ignored
80
82
  # @option opts [String] :bundles_ignored_type_hint
81
83
  # @return [nil]
82
84
  def post_config_aem_health_check_servlet(opts = {})
83
85
  post_config_aem_health_check_servlet_with_http_info(opts)
84
- return nil
86
+ nil
85
87
  end
86
88
 
87
- #
88
- #
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @option opts [Array<String>] :bundles_ignored
91
91
  # @option opts [String] :bundles_ignored_type_hint
92
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
92
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
93
93
  def post_config_aem_health_check_servlet_with_http_info(opts = {})
94
94
  if @api_client.config.debugging
95
- @api_client.config.logger.debug "Calling API: CustomApi.post_config_aem_health_check_servlet ..."
95
+ @api_client.config.logger.debug 'Calling API: CustomApi.post_config_aem_health_check_servlet ...'
96
96
  end
97
97
  # resource path
98
- local_var_path = "/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck"
98
+ local_var_path = '/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck'
99
99
 
100
100
  # query parameters
101
- query_params = {}
101
+ query_params = opts[:query_params] || {}
102
102
  query_params[:'bundles.ignored'] = @api_client.build_collection_param(opts[:'bundles_ignored'], :multi) if !opts[:'bundles_ignored'].nil?
103
103
  query_params[:'bundles.ignored@TypeHint'] = opts[:'bundles_ignored_type_hint'] if !opts[:'bundles_ignored_type_hint'].nil?
104
104
 
105
105
  # header parameters
106
- header_params = {}
107
- # HTTP header 'Accept' (if needed)
108
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
106
+ header_params = opts[:header_params] || {}
109
107
 
110
108
  # form parameters
111
- form_params = {}
109
+ form_params = opts[:form_params] || {}
112
110
 
113
111
  # http body (model)
114
- post_body = nil
115
- auth_names = ['aemAuth']
116
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
112
+ post_body = opts[:body]
113
+
114
+ # return_type
115
+ return_type = opts[:return_type]
116
+
117
+ # auth_names
118
+ auth_names = opts[:auth_names] || ['aemAuth']
119
+
120
+ new_options = opts.merge(
117
121
  :header_params => header_params,
118
122
  :query_params => query_params,
119
123
  :form_params => form_params,
120
124
  :body => post_body,
121
- :auth_names => auth_names)
125
+ :auth_names => auth_names,
126
+ :return_type => return_type
127
+ )
128
+
129
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
122
130
  if @api_client.config.debugging
123
131
  @api_client.config.logger.debug "API called: CustomApi#post_config_aem_health_check_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
132
  end
125
133
  return data, status_code, headers
126
134
  end
127
135
 
128
- #
129
- #
130
136
  # @param [Hash] opts the optional parameters
131
137
  # @option opts [Array<String>] :pwdreset_authorizables
132
138
  # @option opts [String] :pwdreset_authorizables_type_hint
133
139
  # @return [nil]
134
140
  def post_config_aem_password_reset(opts = {})
135
141
  post_config_aem_password_reset_with_http_info(opts)
136
- return nil
142
+ nil
137
143
  end
138
144
 
139
- #
140
- #
141
145
  # @param [Hash] opts the optional parameters
142
146
  # @option opts [Array<String>] :pwdreset_authorizables
143
147
  # @option opts [String] :pwdreset_authorizables_type_hint
144
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
148
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
145
149
  def post_config_aem_password_reset_with_http_info(opts = {})
146
150
  if @api_client.config.debugging
147
- @api_client.config.logger.debug "Calling API: CustomApi.post_config_aem_password_reset ..."
151
+ @api_client.config.logger.debug 'Calling API: CustomApi.post_config_aem_password_reset ...'
148
152
  end
149
153
  # resource path
150
- local_var_path = "/apps/system/config/com.shinesolutions.aem.passwordreset.Activator"
154
+ local_var_path = '/apps/system/config/com.shinesolutions.aem.passwordreset.Activator'
151
155
 
152
156
  # query parameters
153
- query_params = {}
157
+ query_params = opts[:query_params] || {}
154
158
  query_params[:'pwdreset.authorizables'] = @api_client.build_collection_param(opts[:'pwdreset_authorizables'], :multi) if !opts[:'pwdreset_authorizables'].nil?
155
159
  query_params[:'pwdreset.authorizables@TypeHint'] = opts[:'pwdreset_authorizables_type_hint'] if !opts[:'pwdreset_authorizables_type_hint'].nil?
156
160
 
157
161
  # header parameters
158
- header_params = {}
159
- # HTTP header 'Accept' (if needed)
160
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
162
+ header_params = opts[:header_params] || {}
161
163
 
162
164
  # form parameters
163
- form_params = {}
165
+ form_params = opts[:form_params] || {}
164
166
 
165
167
  # http body (model)
166
- post_body = nil
167
- auth_names = ['aemAuth']
168
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
168
+ post_body = opts[:body]
169
+
170
+ # return_type
171
+ return_type = opts[:return_type]
172
+
173
+ # auth_names
174
+ auth_names = opts[:auth_names] || ['aemAuth']
175
+
176
+ new_options = opts.merge(
169
177
  :header_params => header_params,
170
178
  :query_params => query_params,
171
179
  :form_params => form_params,
172
180
  :body => post_body,
173
- :auth_names => auth_names)
181
+ :auth_names => auth_names,
182
+ :return_type => return_type
183
+ )
184
+
185
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
174
186
  if @api_client.config.debugging
175
187
  @api_client.config.logger.debug "API called: CustomApi#post_config_aem_password_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
188
  end
@@ -0,0 +1,124 @@
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.4.0
7
+ Contact: opensource@shinesolutions.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module SwaggerAemClient
16
+ class GraniteApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param keystore_password [String]
23
+ # @param keystore_password_confirm [String]
24
+ # @param truststore_password [String]
25
+ # @param truststore_password_confirm [String]
26
+ # @param https_hostname [String]
27
+ # @param https_port [String]
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [File] :privatekey_file
30
+ # @option opts [File] :certificate_file
31
+ # @return [String]
32
+ def ssl_setup(keystore_password, keystore_password_confirm, truststore_password, truststore_password_confirm, https_hostname, https_port, opts = {})
33
+ data, _status_code, _headers = ssl_setup_with_http_info(keystore_password, keystore_password_confirm, truststore_password, truststore_password_confirm, https_hostname, https_port, opts)
34
+ data
35
+ end
36
+
37
+ # @param keystore_password [String]
38
+ # @param keystore_password_confirm [String]
39
+ # @param truststore_password [String]
40
+ # @param truststore_password_confirm [String]
41
+ # @param https_hostname [String]
42
+ # @param https_port [String]
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [File] :privatekey_file
45
+ # @option opts [File] :certificate_file
46
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
47
+ def ssl_setup_with_http_info(keystore_password, keystore_password_confirm, truststore_password, truststore_password_confirm, https_hostname, https_port, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: GraniteApi.ssl_setup ...'
50
+ end
51
+ # verify the required parameter 'keystore_password' is set
52
+ if @api_client.config.client_side_validation && keystore_password.nil?
53
+ fail ArgumentError, "Missing the required parameter 'keystore_password' when calling GraniteApi.ssl_setup"
54
+ end
55
+ # verify the required parameter 'keystore_password_confirm' is set
56
+ if @api_client.config.client_side_validation && keystore_password_confirm.nil?
57
+ fail ArgumentError, "Missing the required parameter 'keystore_password_confirm' when calling GraniteApi.ssl_setup"
58
+ end
59
+ # verify the required parameter 'truststore_password' is set
60
+ if @api_client.config.client_side_validation && truststore_password.nil?
61
+ fail ArgumentError, "Missing the required parameter 'truststore_password' when calling GraniteApi.ssl_setup"
62
+ end
63
+ # verify the required parameter 'truststore_password_confirm' is set
64
+ if @api_client.config.client_side_validation && truststore_password_confirm.nil?
65
+ fail ArgumentError, "Missing the required parameter 'truststore_password_confirm' when calling GraniteApi.ssl_setup"
66
+ end
67
+ # verify the required parameter 'https_hostname' is set
68
+ if @api_client.config.client_side_validation && https_hostname.nil?
69
+ fail ArgumentError, "Missing the required parameter 'https_hostname' when calling GraniteApi.ssl_setup"
70
+ end
71
+ # verify the required parameter 'https_port' is set
72
+ if @api_client.config.client_side_validation && https_port.nil?
73
+ fail ArgumentError, "Missing the required parameter 'https_port' when calling GraniteApi.ssl_setup"
74
+ end
75
+ # resource path
76
+ local_var_path = '/libs/granite/security/post/sslSetup.html'
77
+
78
+ # query parameters
79
+ query_params = opts[:query_params] || {}
80
+ query_params[:'keystorePassword'] = keystore_password
81
+ query_params[:'keystorePasswordConfirm'] = keystore_password_confirm
82
+ query_params[:'truststorePassword'] = truststore_password
83
+ query_params[:'truststorePasswordConfirm'] = truststore_password_confirm
84
+ query_params[:'httpsHostname'] = https_hostname
85
+ query_params[:'httpsPort'] = https_port
86
+
87
+ # header parameters
88
+ header_params = opts[:header_params] || {}
89
+ # HTTP header 'Accept' (if needed)
90
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
91
+ # HTTP header 'Content-Type'
92
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
93
+
94
+ # form parameters
95
+ form_params = opts[:form_params] || {}
96
+ form_params['privatekeyFile'] = opts[:'privatekey_file'] if !opts[:'privatekey_file'].nil?
97
+ form_params['certificateFile'] = opts[:'certificate_file'] if !opts[:'certificate_file'].nil?
98
+
99
+ # http body (model)
100
+ post_body = opts[:body]
101
+
102
+ # return_type
103
+ return_type = opts[:return_type] || 'String'
104
+
105
+ # auth_names
106
+ auth_names = opts[:auth_names] || ['aemAuth']
107
+
108
+ new_options = opts.merge(
109
+ :header_params => header_params,
110
+ :query_params => query_params,
111
+ :form_params => form_params,
112
+ :body => post_body,
113
+ :auth_names => auth_names,
114
+ :return_type => return_type
115
+ )
116
+
117
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug "API called: GraniteApi#ssl_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
+ end
121
+ return data, status_code, headers
122
+ end
123
+ end
124
+ 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 SlingApi
@@ -19,27 +19,22 @@ module SwaggerAemClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
- #
25
- # @param runmode
26
- # @param name
22
+ # @param runmode [String]
23
+ # @param name [String]
27
24
  # @param [Hash] opts the optional parameters
28
25
  # @return [nil]
29
26
  def delete_agent(runmode, name, opts = {})
30
27
  delete_agent_with_http_info(runmode, name, opts)
31
- return nil
28
+ nil
32
29
  end
33
30
 
34
- #
35
- #
36
- # @param runmode
37
- # @param name
31
+ # @param runmode [String]
32
+ # @param name [String]
38
33
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
34
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
40
35
  def delete_agent_with_http_info(runmode, name, opts = {})
41
36
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: SlingApi.delete_agent ..."
37
+ @api_client.config.logger.debug 'Calling API: SlingApi.delete_agent ...'
43
38
  end
44
39
  # verify the required parameter 'runmode' is set
45
40
  if @api_client.config.client_side_validation && runmode.nil?
@@ -50,54 +45,58 @@ module SwaggerAemClient
50
45
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.delete_agent"
51
46
  end
52
47
  # resource path
53
- local_var_path = "/etc/replication/agents.{runmode}/{name}".sub('{' + 'runmode' + '}', runmode.to_s).sub('{' + 'name' + '}', name.to_s)
48
+ local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
54
49
 
55
50
  # query parameters
56
- query_params = {}
51
+ query_params = opts[:query_params] || {}
57
52
 
58
53
  # header parameters
59
- header_params = {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
54
+ header_params = opts[:header_params] || {}
62
55
 
63
56
  # form parameters
64
- form_params = {}
57
+ form_params = opts[:form_params] || {}
65
58
 
66
59
  # http body (model)
67
- post_body = nil
68
- auth_names = ['aemAuth']
69
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
60
+ post_body = opts[:body]
61
+
62
+ # return_type
63
+ return_type = opts[:return_type]
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['aemAuth']
67
+
68
+ new_options = opts.merge(
70
69
  :header_params => header_params,
71
70
  :query_params => query_params,
72
71
  :form_params => form_params,
73
72
  :body => post_body,
74
- :auth_names => auth_names)
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
75
78
  if @api_client.config.debugging
76
79
  @api_client.config.logger.debug "API called: SlingApi#delete_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
80
  end
78
81
  return data, status_code, headers
79
82
  end
80
83
 
81
- #
82
- #
83
- # @param path
84
- # @param name
84
+ # @param path [String]
85
+ # @param name [String]
85
86
  # @param [Hash] opts the optional parameters
86
87
  # @return [nil]
87
88
  def delete_node(path, name, opts = {})
88
89
  delete_node_with_http_info(path, name, opts)
89
- return nil
90
+ nil
90
91
  end
91
92
 
92
- #
93
- #
94
- # @param path
95
- # @param name
93
+ # @param path [String]
94
+ # @param name [String]
96
95
  # @param [Hash] opts the optional parameters
97
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
96
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
98
97
  def delete_node_with_http_info(path, name, opts = {})
99
98
  if @api_client.config.debugging
100
- @api_client.config.logger.debug "Calling API: SlingApi.delete_node ..."
99
+ @api_client.config.logger.debug 'Calling API: SlingApi.delete_node ...'
101
100
  end
102
101
  # verify the required parameter 'path' is set
103
102
  if @api_client.config.client_side_validation && path.nil?
@@ -108,54 +107,58 @@ module SwaggerAemClient
108
107
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.delete_node"
109
108
  end
110
109
  # resource path
111
- local_var_path = "/{path}/{name}".sub('{' + 'path' + '}', path.to_s).sub('{' + 'name' + '}', name.to_s)
110
+ local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
112
111
 
113
112
  # query parameters
114
- query_params = {}
113
+ query_params = opts[:query_params] || {}
115
114
 
116
115
  # header parameters
117
- header_params = {}
118
- # HTTP header 'Accept' (if needed)
119
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
116
+ header_params = opts[:header_params] || {}
120
117
 
121
118
  # form parameters
122
- form_params = {}
119
+ form_params = opts[:form_params] || {}
123
120
 
124
121
  # http body (model)
125
- post_body = nil
126
- auth_names = ['aemAuth']
127
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['aemAuth']
129
+
130
+ new_options = opts.merge(
128
131
  :header_params => header_params,
129
132
  :query_params => query_params,
130
133
  :form_params => form_params,
131
134
  :body => post_body,
132
- :auth_names => auth_names)
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
133
140
  if @api_client.config.debugging
134
141
  @api_client.config.logger.debug "API called: SlingApi#delete_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
142
  end
136
143
  return data, status_code, headers
137
144
  end
138
145
 
139
- #
140
- #
141
- # @param runmode
142
- # @param name
146
+ # @param runmode [String]
147
+ # @param name [String]
143
148
  # @param [Hash] opts the optional parameters
144
149
  # @return [nil]
145
150
  def get_agent(runmode, name, opts = {})
146
151
  get_agent_with_http_info(runmode, name, opts)
147
- return nil
152
+ nil
148
153
  end
149
154
 
150
- #
151
- #
152
- # @param runmode
153
- # @param name
155
+ # @param runmode [String]
156
+ # @param name [String]
154
157
  # @param [Hash] opts the optional parameters
155
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
158
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
156
159
  def get_agent_with_http_info(runmode, name, opts = {})
157
160
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "Calling API: SlingApi.get_agent ..."
161
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_agent ...'
159
162
  end
160
163
  # verify the required parameter 'runmode' is set
161
164
  if @api_client.config.client_side_validation && runmode.nil?
@@ -166,107 +169,116 @@ module SwaggerAemClient
166
169
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_agent"
167
170
  end
168
171
  # resource path
169
- local_var_path = "/etc/replication/agents.{runmode}/{name}".sub('{' + 'runmode' + '}', runmode.to_s).sub('{' + 'name' + '}', name.to_s)
172
+ local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
170
173
 
171
174
  # query parameters
172
- query_params = {}
175
+ query_params = opts[:query_params] || {}
173
176
 
174
177
  # header parameters
175
- header_params = {}
176
- # HTTP header 'Accept' (if needed)
177
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
178
+ header_params = opts[:header_params] || {}
178
179
 
179
180
  # form parameters
180
- form_params = {}
181
+ form_params = opts[:form_params] || {}
181
182
 
182
183
  # http body (model)
183
- post_body = nil
184
- auth_names = ['aemAuth']
185
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
184
+ post_body = opts[:body]
185
+
186
+ # return_type
187
+ return_type = opts[:return_type]
188
+
189
+ # auth_names
190
+ auth_names = opts[:auth_names] || ['aemAuth']
191
+
192
+ new_options = opts.merge(
186
193
  :header_params => header_params,
187
194
  :query_params => query_params,
188
195
  :form_params => form_params,
189
196
  :body => post_body,
190
- :auth_names => auth_names)
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
191
202
  if @api_client.config.debugging
192
203
  @api_client.config.logger.debug "API called: SlingApi#get_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
193
204
  end
194
205
  return data, status_code, headers
195
206
  end
196
207
 
197
- #
198
- #
199
- # @param runmode
208
+ # @param runmode [String]
200
209
  # @param [Hash] opts the optional parameters
201
210
  # @return [String]
202
211
  def get_agents(runmode, opts = {})
203
212
  data, _status_code, _headers = get_agents_with_http_info(runmode, opts)
204
- return data
213
+ data
205
214
  end
206
215
 
207
- #
208
- #
209
- # @param runmode
216
+ # @param runmode [String]
210
217
  # @param [Hash] opts the optional parameters
211
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
218
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
212
219
  def get_agents_with_http_info(runmode, opts = {})
213
220
  if @api_client.config.debugging
214
- @api_client.config.logger.debug "Calling API: SlingApi.get_agents ..."
221
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_agents ...'
215
222
  end
216
223
  # verify the required parameter 'runmode' is set
217
224
  if @api_client.config.client_side_validation && runmode.nil?
218
225
  fail ArgumentError, "Missing the required parameter 'runmode' when calling SlingApi.get_agents"
219
226
  end
220
227
  # resource path
221
- local_var_path = "/etc/replication/agents.{runmode}.-1.json".sub('{' + 'runmode' + '}', runmode.to_s)
228
+ local_var_path = '/etc/replication/agents.{runmode}.-1.json'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s))
222
229
 
223
230
  # query parameters
224
- query_params = {}
231
+ query_params = opts[:query_params] || {}
225
232
 
226
233
  # header parameters
227
- header_params = {}
234
+ header_params = opts[:header_params] || {}
228
235
  # HTTP header 'Accept' (if needed)
229
236
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
230
237
 
231
238
  # form parameters
232
- form_params = {}
239
+ form_params = opts[:form_params] || {}
233
240
 
234
241
  # http body (model)
235
- post_body = nil
236
- auth_names = ['aemAuth']
237
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
242
+ post_body = opts[:body]
243
+
244
+ # return_type
245
+ return_type = opts[:return_type] || 'String'
246
+
247
+ # auth_names
248
+ auth_names = opts[:auth_names] || ['aemAuth']
249
+
250
+ new_options = opts.merge(
238
251
  :header_params => header_params,
239
252
  :query_params => query_params,
240
253
  :form_params => form_params,
241
254
  :body => post_body,
242
255
  :auth_names => auth_names,
243
- :return_type => 'String')
256
+ :return_type => return_type
257
+ )
258
+
259
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
244
260
  if @api_client.config.debugging
245
261
  @api_client.config.logger.debug "API called: SlingApi#get_agents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
246
262
  end
247
263
  return data, status_code, headers
248
264
  end
249
265
 
250
- #
251
- #
252
- # @param intermediate_path
253
- # @param authorizable_id
266
+ # @param intermediate_path [String]
267
+ # @param authorizable_id [String]
254
268
  # @param [Hash] opts the optional parameters
255
269
  # @return [KeystoreInfo]
256
270
  def get_authorizable_keystore(intermediate_path, authorizable_id, opts = {})
257
271
  data, _status_code, _headers = get_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts)
258
- return data
272
+ data
259
273
  end
260
274
 
261
- #
262
- #
263
- # @param intermediate_path
264
- # @param authorizable_id
275
+ # @param intermediate_path [String]
276
+ # @param authorizable_id [String]
265
277
  # @param [Hash] opts the optional parameters
266
- # @return [Array<(KeystoreInfo, Fixnum, Hash)>] KeystoreInfo data, response status code and response headers
278
+ # @return [Array<(KeystoreInfo, Integer, Hash)>] KeystoreInfo data, response status code and response headers
267
279
  def get_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts = {})
268
280
  if @api_client.config.debugging
269
- @api_client.config.logger.debug "Calling API: SlingApi.get_authorizable_keystore ..."
281
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_authorizable_keystore ...'
270
282
  end
271
283
  # verify the required parameter 'intermediate_path' is set
272
284
  if @api_client.config.client_side_validation && intermediate_path.nil?
@@ -277,55 +289,60 @@ module SwaggerAemClient
277
289
  fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.get_authorizable_keystore"
278
290
  end
279
291
  # resource path
280
- local_var_path = "/{intermediatePath}/{authorizableId}.ks.json".sub('{' + 'intermediatePath' + '}', intermediate_path.to_s).sub('{' + 'authorizableId' + '}', authorizable_id.to_s)
292
+ local_var_path = '/{intermediatePath}/{authorizableId}.ks.json'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))
281
293
 
282
294
  # query parameters
283
- query_params = {}
295
+ query_params = opts[:query_params] || {}
284
296
 
285
297
  # header parameters
286
- header_params = {}
298
+ header_params = opts[:header_params] || {}
287
299
  # HTTP header 'Accept' (if needed)
288
300
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
289
301
 
290
302
  # form parameters
291
- form_params = {}
303
+ form_params = opts[:form_params] || {}
292
304
 
293
305
  # http body (model)
294
- post_body = nil
295
- auth_names = ['aemAuth']
296
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
306
+ post_body = opts[:body]
307
+
308
+ # return_type
309
+ return_type = opts[:return_type] || 'KeystoreInfo'
310
+
311
+ # auth_names
312
+ auth_names = opts[:auth_names] || ['aemAuth']
313
+
314
+ new_options = opts.merge(
297
315
  :header_params => header_params,
298
316
  :query_params => query_params,
299
317
  :form_params => form_params,
300
318
  :body => post_body,
301
319
  :auth_names => auth_names,
302
- :return_type => 'KeystoreInfo')
320
+ :return_type => return_type
321
+ )
322
+
323
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
303
324
  if @api_client.config.debugging
304
325
  @api_client.config.logger.debug "API called: SlingApi#get_authorizable_keystore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
305
326
  end
306
327
  return data, status_code, headers
307
328
  end
308
329
 
309
- #
310
- #
311
- # @param intermediate_path
312
- # @param authorizable_id
330
+ # @param intermediate_path [String]
331
+ # @param authorizable_id [String]
313
332
  # @param [Hash] opts the optional parameters
314
333
  # @return [File]
315
334
  def get_keystore(intermediate_path, authorizable_id, opts = {})
316
335
  data, _status_code, _headers = get_keystore_with_http_info(intermediate_path, authorizable_id, opts)
317
- return data
336
+ data
318
337
  end
319
338
 
320
- #
321
- #
322
- # @param intermediate_path
323
- # @param authorizable_id
339
+ # @param intermediate_path [String]
340
+ # @param authorizable_id [String]
324
341
  # @param [Hash] opts the optional parameters
325
- # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
342
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
326
343
  def get_keystore_with_http_info(intermediate_path, authorizable_id, opts = {})
327
344
  if @api_client.config.debugging
328
- @api_client.config.logger.debug "Calling API: SlingApi.get_keystore ..."
345
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_keystore ...'
329
346
  end
330
347
  # verify the required parameter 'intermediate_path' is set
331
348
  if @api_client.config.client_side_validation && intermediate_path.nil?
@@ -336,55 +353,60 @@ module SwaggerAemClient
336
353
  fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.get_keystore"
337
354
  end
338
355
  # resource path
339
- local_var_path = "/{intermediatePath}/{authorizableId}/keystore/store.p12".sub('{' + 'intermediatePath' + '}', intermediate_path.to_s).sub('{' + 'authorizableId' + '}', authorizable_id.to_s)
356
+ local_var_path = '/{intermediatePath}/{authorizableId}/keystore/store.p12'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))
340
357
 
341
358
  # query parameters
342
- query_params = {}
359
+ query_params = opts[:query_params] || {}
343
360
 
344
361
  # header parameters
345
- header_params = {}
362
+ header_params = opts[:header_params] || {}
346
363
  # HTTP header 'Accept' (if needed)
347
364
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
348
365
 
349
366
  # form parameters
350
- form_params = {}
367
+ form_params = opts[:form_params] || {}
351
368
 
352
369
  # http body (model)
353
- post_body = nil
354
- auth_names = ['aemAuth']
355
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
370
+ post_body = opts[:body]
371
+
372
+ # return_type
373
+ return_type = opts[:return_type] || 'File'
374
+
375
+ # auth_names
376
+ auth_names = opts[:auth_names] || ['aemAuth']
377
+
378
+ new_options = opts.merge(
356
379
  :header_params => header_params,
357
380
  :query_params => query_params,
358
381
  :form_params => form_params,
359
382
  :body => post_body,
360
383
  :auth_names => auth_names,
361
- :return_type => 'File')
384
+ :return_type => return_type
385
+ )
386
+
387
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
362
388
  if @api_client.config.debugging
363
389
  @api_client.config.logger.debug "API called: SlingApi#get_keystore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
364
390
  end
365
391
  return data, status_code, headers
366
392
  end
367
393
 
368
- #
369
- #
370
- # @param path
371
- # @param name
394
+ # @param path [String]
395
+ # @param name [String]
372
396
  # @param [Hash] opts the optional parameters
373
397
  # @return [nil]
374
398
  def get_node(path, name, opts = {})
375
399
  get_node_with_http_info(path, name, opts)
376
- return nil
400
+ nil
377
401
  end
378
402
 
379
- #
380
- #
381
- # @param path
382
- # @param name
403
+ # @param path [String]
404
+ # @param name [String]
383
405
  # @param [Hash] opts the optional parameters
384
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
406
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
385
407
  def get_node_with_http_info(path, name, opts = {})
386
408
  if @api_client.config.debugging
387
- @api_client.config.logger.debug "Calling API: SlingApi.get_node ..."
409
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_node ...'
388
410
  end
389
411
  # verify the required parameter 'path' is set
390
412
  if @api_client.config.client_side_validation && path.nil?
@@ -395,56 +417,60 @@ module SwaggerAemClient
395
417
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.get_node"
396
418
  end
397
419
  # resource path
398
- local_var_path = "/{path}/{name}".sub('{' + 'path' + '}', path.to_s).sub('{' + 'name' + '}', name.to_s)
420
+ local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
399
421
 
400
422
  # query parameters
401
- query_params = {}
423
+ query_params = opts[:query_params] || {}
402
424
 
403
425
  # header parameters
404
- header_params = {}
405
- # HTTP header 'Accept' (if needed)
406
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
426
+ header_params = opts[:header_params] || {}
407
427
 
408
428
  # form parameters
409
- form_params = {}
429
+ form_params = opts[:form_params] || {}
410
430
 
411
431
  # http body (model)
412
- post_body = nil
413
- auth_names = ['aemAuth']
414
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
432
+ post_body = opts[:body]
433
+
434
+ # return_type
435
+ return_type = opts[:return_type]
436
+
437
+ # auth_names
438
+ auth_names = opts[:auth_names] || ['aemAuth']
439
+
440
+ new_options = opts.merge(
415
441
  :header_params => header_params,
416
442
  :query_params => query_params,
417
443
  :form_params => form_params,
418
444
  :body => post_body,
419
- :auth_names => auth_names)
445
+ :auth_names => auth_names,
446
+ :return_type => return_type
447
+ )
448
+
449
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
420
450
  if @api_client.config.debugging
421
451
  @api_client.config.logger.debug "API called: SlingApi#get_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
422
452
  end
423
453
  return data, status_code, headers
424
454
  end
425
455
 
426
- #
427
- #
428
- # @param group
429
- # @param name
430
- # @param version
456
+ # @param group [String]
457
+ # @param name [String]
458
+ # @param version [String]
431
459
  # @param [Hash] opts the optional parameters
432
460
  # @return [File]
433
461
  def get_package(group, name, version, opts = {})
434
462
  data, _status_code, _headers = get_package_with_http_info(group, name, version, opts)
435
- return data
463
+ data
436
464
  end
437
465
 
438
- #
439
- #
440
- # @param group
441
- # @param name
442
- # @param version
466
+ # @param group [String]
467
+ # @param name [String]
468
+ # @param version [String]
443
469
  # @param [Hash] opts the optional parameters
444
- # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
470
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
445
471
  def get_package_with_http_info(group, name, version, opts = {})
446
472
  if @api_client.config.debugging
447
- @api_client.config.logger.debug "Calling API: SlingApi.get_package ..."
473
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_package ...'
448
474
  end
449
475
  # verify the required parameter 'group' is set
450
476
  if @api_client.config.client_side_validation && group.nil?
@@ -459,57 +485,62 @@ module SwaggerAemClient
459
485
  fail ArgumentError, "Missing the required parameter 'version' when calling SlingApi.get_package"
460
486
  end
461
487
  # resource path
462
- local_var_path = "/etc/packages/{group}/{name}-{version}.zip".sub('{' + 'group' + '}', group.to_s).sub('{' + 'name' + '}', name.to_s).sub('{' + 'version' + '}', version.to_s)
488
+ local_var_path = '/etc/packages/{group}/{name}-{version}.zip'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))
463
489
 
464
490
  # query parameters
465
- query_params = {}
491
+ query_params = opts[:query_params] || {}
466
492
 
467
493
  # header parameters
468
- header_params = {}
494
+ header_params = opts[:header_params] || {}
469
495
  # HTTP header 'Accept' (if needed)
470
496
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
471
497
 
472
498
  # form parameters
473
- form_params = {}
499
+ form_params = opts[:form_params] || {}
474
500
 
475
501
  # http body (model)
476
- post_body = nil
477
- auth_names = ['aemAuth']
478
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
502
+ post_body = opts[:body]
503
+
504
+ # return_type
505
+ return_type = opts[:return_type] || 'File'
506
+
507
+ # auth_names
508
+ auth_names = opts[:auth_names] || ['aemAuth']
509
+
510
+ new_options = opts.merge(
479
511
  :header_params => header_params,
480
512
  :query_params => query_params,
481
513
  :form_params => form_params,
482
514
  :body => post_body,
483
515
  :auth_names => auth_names,
484
- :return_type => 'File')
516
+ :return_type => return_type
517
+ )
518
+
519
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
485
520
  if @api_client.config.debugging
486
521
  @api_client.config.logger.debug "API called: SlingApi#get_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
522
  end
488
523
  return data, status_code, headers
489
524
  end
490
525
 
491
- #
492
- #
493
- # @param group
494
- # @param name
495
- # @param version
526
+ # @param group [String]
527
+ # @param name [String]
528
+ # @param version [String]
496
529
  # @param [Hash] opts the optional parameters
497
530
  # @return [String]
498
531
  def get_package_filter(group, name, version, opts = {})
499
532
  data, _status_code, _headers = get_package_filter_with_http_info(group, name, version, opts)
500
- return data
533
+ data
501
534
  end
502
535
 
503
- #
504
- #
505
- # @param group
506
- # @param name
507
- # @param version
536
+ # @param group [String]
537
+ # @param name [String]
538
+ # @param version [String]
508
539
  # @param [Hash] opts the optional parameters
509
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
540
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
510
541
  def get_package_filter_with_http_info(group, name, version, opts = {})
511
542
  if @api_client.config.debugging
512
- @api_client.config.logger.debug "Calling API: SlingApi.get_package_filter ..."
543
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_package_filter ...'
513
544
  end
514
545
  # verify the required parameter 'group' is set
515
546
  if @api_client.config.client_side_validation && group.nil?
@@ -524,59 +555,64 @@ module SwaggerAemClient
524
555
  fail ArgumentError, "Missing the required parameter 'version' when calling SlingApi.get_package_filter"
525
556
  end
526
557
  # resource path
527
- local_var_path = "/etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json".sub('{' + 'group' + '}', group.to_s).sub('{' + 'name' + '}', name.to_s).sub('{' + 'version' + '}', version.to_s)
558
+ local_var_path = '/etc/packages/{group}/{name}-{version}.zip/jcr:content/vlt:definition/filter.tidy.2.json'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))
528
559
 
529
560
  # query parameters
530
- query_params = {}
561
+ query_params = opts[:query_params] || {}
531
562
 
532
563
  # header parameters
533
- header_params = {}
564
+ header_params = opts[:header_params] || {}
534
565
  # HTTP header 'Accept' (if needed)
535
566
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
536
567
 
537
568
  # form parameters
538
- form_params = {}
569
+ form_params = opts[:form_params] || {}
539
570
 
540
571
  # http body (model)
541
- post_body = nil
542
- auth_names = ['aemAuth']
543
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
572
+ post_body = opts[:body]
573
+
574
+ # return_type
575
+ return_type = opts[:return_type] || 'String'
576
+
577
+ # auth_names
578
+ auth_names = opts[:auth_names] || ['aemAuth']
579
+
580
+ new_options = opts.merge(
544
581
  :header_params => header_params,
545
582
  :query_params => query_params,
546
583
  :form_params => form_params,
547
584
  :body => post_body,
548
585
  :auth_names => auth_names,
549
- :return_type => 'String')
586
+ :return_type => return_type
587
+ )
588
+
589
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
550
590
  if @api_client.config.debugging
551
591
  @api_client.config.logger.debug "API called: SlingApi#get_package_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
552
592
  end
553
593
  return data, status_code, headers
554
594
  end
555
595
 
556
- #
557
- #
558
- # @param path
559
- # @param p_limit
560
- # @param _1_property
561
- # @param _1_property_value
596
+ # @param path [String]
597
+ # @param p_limit [Float]
598
+ # @param _1_property [String]
599
+ # @param _1_property_value [String]
562
600
  # @param [Hash] opts the optional parameters
563
601
  # @return [String]
564
602
  def get_query(path, p_limit, _1_property, _1_property_value, opts = {})
565
603
  data, _status_code, _headers = get_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts)
566
- return data
604
+ data
567
605
  end
568
606
 
569
- #
570
- #
571
- # @param path
572
- # @param p_limit
573
- # @param _1_property
574
- # @param _1_property_value
607
+ # @param path [String]
608
+ # @param p_limit [Float]
609
+ # @param _1_property [String]
610
+ # @param _1_property_value [String]
575
611
  # @param [Hash] opts the optional parameters
576
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
612
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
577
613
  def get_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {})
578
614
  if @api_client.config.debugging
579
- @api_client.config.logger.debug "Calling API: SlingApi.get_query ..."
615
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_query ...'
580
616
  end
581
617
  # verify the required parameter 'path' is set
582
618
  if @api_client.config.client_side_validation && path.nil?
@@ -595,253 +631,268 @@ module SwaggerAemClient
595
631
  fail ArgumentError, "Missing the required parameter '_1_property_value' when calling SlingApi.get_query"
596
632
  end
597
633
  # resource path
598
- local_var_path = "/bin/querybuilder.json"
634
+ local_var_path = '/bin/querybuilder.json'
599
635
 
600
636
  # query parameters
601
- query_params = {}
637
+ query_params = opts[:query_params] || {}
602
638
  query_params[:'path'] = path
603
639
  query_params[:'p.limit'] = p_limit
604
640
  query_params[:'1_property'] = _1_property
605
641
  query_params[:'1_property.value'] = _1_property_value
606
642
 
607
643
  # header parameters
608
- header_params = {}
644
+ header_params = opts[:header_params] || {}
609
645
  # HTTP header 'Accept' (if needed)
610
646
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
611
647
 
612
648
  # form parameters
613
- form_params = {}
649
+ form_params = opts[:form_params] || {}
614
650
 
615
651
  # http body (model)
616
- post_body = nil
617
- auth_names = ['aemAuth']
618
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
652
+ post_body = opts[:body]
653
+
654
+ # return_type
655
+ return_type = opts[:return_type] || 'String'
656
+
657
+ # auth_names
658
+ auth_names = opts[:auth_names] || ['aemAuth']
659
+
660
+ new_options = opts.merge(
619
661
  :header_params => header_params,
620
662
  :query_params => query_params,
621
663
  :form_params => form_params,
622
664
  :body => post_body,
623
665
  :auth_names => auth_names,
624
- :return_type => 'String')
666
+ :return_type => return_type
667
+ )
668
+
669
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
625
670
  if @api_client.config.debugging
626
671
  @api_client.config.logger.debug "API called: SlingApi#get_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
627
672
  end
628
673
  return data, status_code, headers
629
674
  end
630
675
 
631
- #
632
- #
633
676
  # @param [Hash] opts the optional parameters
634
677
  # @return [File]
635
678
  def get_truststore(opts = {})
636
679
  data, _status_code, _headers = get_truststore_with_http_info(opts)
637
- return data
680
+ data
638
681
  end
639
682
 
640
- #
641
- #
642
683
  # @param [Hash] opts the optional parameters
643
- # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
684
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
644
685
  def get_truststore_with_http_info(opts = {})
645
686
  if @api_client.config.debugging
646
- @api_client.config.logger.debug "Calling API: SlingApi.get_truststore ..."
687
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_truststore ...'
647
688
  end
648
689
  # resource path
649
- local_var_path = "/etc/truststore/truststore.p12"
690
+ local_var_path = '/etc/truststore/truststore.p12'
650
691
 
651
692
  # query parameters
652
- query_params = {}
693
+ query_params = opts[:query_params] || {}
653
694
 
654
695
  # header parameters
655
- header_params = {}
696
+ header_params = opts[:header_params] || {}
656
697
  # HTTP header 'Accept' (if needed)
657
698
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
658
699
 
659
700
  # form parameters
660
- form_params = {}
701
+ form_params = opts[:form_params] || {}
661
702
 
662
703
  # http body (model)
663
- post_body = nil
664
- auth_names = ['aemAuth']
665
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
704
+ post_body = opts[:body]
705
+
706
+ # return_type
707
+ return_type = opts[:return_type] || 'File'
708
+
709
+ # auth_names
710
+ auth_names = opts[:auth_names] || ['aemAuth']
711
+
712
+ new_options = opts.merge(
666
713
  :header_params => header_params,
667
714
  :query_params => query_params,
668
715
  :form_params => form_params,
669
716
  :body => post_body,
670
717
  :auth_names => auth_names,
671
- :return_type => 'File')
718
+ :return_type => return_type
719
+ )
720
+
721
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
672
722
  if @api_client.config.debugging
673
723
  @api_client.config.logger.debug "API called: SlingApi#get_truststore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
724
  end
675
725
  return data, status_code, headers
676
726
  end
677
727
 
678
- #
679
- #
680
728
  # @param [Hash] opts the optional parameters
681
729
  # @return [TruststoreInfo]
682
730
  def get_truststore_info(opts = {})
683
731
  data, _status_code, _headers = get_truststore_info_with_http_info(opts)
684
- return data
732
+ data
685
733
  end
686
734
 
687
- #
688
- #
689
735
  # @param [Hash] opts the optional parameters
690
- # @return [Array<(TruststoreInfo, Fixnum, Hash)>] TruststoreInfo data, response status code and response headers
736
+ # @return [Array<(TruststoreInfo, Integer, Hash)>] TruststoreInfo data, response status code and response headers
691
737
  def get_truststore_info_with_http_info(opts = {})
692
738
  if @api_client.config.debugging
693
- @api_client.config.logger.debug "Calling API: SlingApi.get_truststore_info ..."
739
+ @api_client.config.logger.debug 'Calling API: SlingApi.get_truststore_info ...'
694
740
  end
695
741
  # resource path
696
- local_var_path = "/libs/granite/security/truststore.json"
742
+ local_var_path = '/libs/granite/security/truststore.json'
697
743
 
698
744
  # query parameters
699
- query_params = {}
745
+ query_params = opts[:query_params] || {}
700
746
 
701
747
  # header parameters
702
- header_params = {}
748
+ header_params = opts[:header_params] || {}
703
749
  # HTTP header 'Accept' (if needed)
704
750
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
705
751
 
706
752
  # form parameters
707
- form_params = {}
753
+ form_params = opts[:form_params] || {}
708
754
 
709
755
  # http body (model)
710
- post_body = nil
711
- auth_names = ['aemAuth']
712
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
756
+ post_body = opts[:body]
757
+
758
+ # return_type
759
+ return_type = opts[:return_type] || 'TruststoreInfo'
760
+
761
+ # auth_names
762
+ auth_names = opts[:auth_names] || ['aemAuth']
763
+
764
+ new_options = opts.merge(
713
765
  :header_params => header_params,
714
766
  :query_params => query_params,
715
767
  :form_params => form_params,
716
768
  :body => post_body,
717
769
  :auth_names => auth_names,
718
- :return_type => 'TruststoreInfo')
770
+ :return_type => return_type
771
+ )
772
+
773
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
719
774
  if @api_client.config.debugging
720
775
  @api_client.config.logger.debug "API called: SlingApi#get_truststore_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
776
  end
722
777
  return data, status_code, headers
723
778
  end
724
779
 
725
- #
726
- #
727
- # @param runmode
728
- # @param name
780
+ # @param runmode [String]
781
+ # @param name [String]
729
782
  # @param [Hash] opts the optional parameters
730
- # @option opts [BOOLEAN] :jcrcontentcqdistribute
731
- # @option opts [String] :jcrcontentcqdistribute_type_hint
732
- # @option opts [String] :jcrcontentcqname
733
- # @option opts [String] :jcrcontentcqtemplate
734
- # @option opts [BOOLEAN] :jcrcontentenabled
735
- # @option opts [String] :jcrcontentjcrdescription
736
- # @option opts [String] :jcrcontentjcrlast_modified
737
- # @option opts [String] :jcrcontentjcrlast_modified_by
738
- # @option opts [String] :jcrcontentjcrmixin_types
739
- # @option opts [String] :jcrcontentjcrtitle
740
- # @option opts [String] :jcrcontentlog_level
741
- # @option opts [BOOLEAN] :jcrcontentno_status_update
742
- # @option opts [BOOLEAN] :jcrcontentno_versioning
743
- # @option opts [Float] :jcrcontentprotocol_connect_timeout
744
- # @option opts [BOOLEAN] :jcrcontentprotocol_http_connection_closed
745
- # @option opts [String] :jcrcontentprotocol_http_expired
746
- # @option opts [Array<String>] :jcrcontentprotocol_http_headers
747
- # @option opts [String] :jcrcontentprotocol_http_headers_type_hint
748
- # @option opts [String] :jcrcontentprotocol_http_method
749
- # @option opts [BOOLEAN] :jcrcontentprotocol_https_relaxed
750
- # @option opts [String] :jcrcontentprotocol_interface
751
- # @option opts [Float] :jcrcontentprotocol_socket_timeout
752
- # @option opts [String] :jcrcontentprotocol_version
753
- # @option opts [String] :jcrcontentproxy_ntlm_domain
754
- # @option opts [String] :jcrcontentproxy_ntlm_host
755
- # @option opts [String] :jcrcontentproxy_host
756
- # @option opts [String] :jcrcontentproxy_password
757
- # @option opts [Float] :jcrcontentproxy_port
758
- # @option opts [String] :jcrcontentproxy_user
759
- # @option opts [Float] :jcrcontentqueue_batch_max_size
760
- # @option opts [String] :jcrcontentqueue_batch_mode
761
- # @option opts [Float] :jcrcontentqueue_batch_wait_time
762
- # @option opts [String] :jcrcontentretry_delay
763
- # @option opts [BOOLEAN] :jcrcontentreverse_replication
764
- # @option opts [String] :jcrcontentserialization_type
765
- # @option opts [String] :jcrcontentslingresource_type
766
- # @option opts [String] :jcrcontentssl
767
- # @option opts [String] :jcrcontenttransport_ntlm_domain
768
- # @option opts [String] :jcrcontenttransport_ntlm_host
769
- # @option opts [String] :jcrcontenttransport_password
770
- # @option opts [String] :jcrcontenttransport_uri
771
- # @option opts [String] :jcrcontenttransport_user
772
- # @option opts [BOOLEAN] :jcrcontenttrigger_distribute
773
- # @option opts [BOOLEAN] :jcrcontenttrigger_modified
774
- # @option opts [BOOLEAN] :jcrcontenttrigger_on_off_time
775
- # @option opts [BOOLEAN] :jcrcontenttrigger_receive
776
- # @option opts [BOOLEAN] :jcrcontenttrigger_specific
777
- # @option opts [String] :jcrcontentuser_id
783
+ # @option opts [Boolean] :jcrcontent_cqdistribute
784
+ # @option opts [String] :jcrcontent_cqdistribute_type_hint
785
+ # @option opts [String] :jcrcontent_cqname
786
+ # @option opts [String] :jcrcontent_cqtemplate
787
+ # @option opts [Boolean] :jcrcontent_enabled
788
+ # @option opts [String] :jcrcontent_jcrdescription
789
+ # @option opts [String] :jcrcontent_jcrlast_modified
790
+ # @option opts [String] :jcrcontent_jcrlast_modified_by
791
+ # @option opts [String] :jcrcontent_jcrmixin_types
792
+ # @option opts [String] :jcrcontent_jcrtitle
793
+ # @option opts [String] :jcrcontent_log_level
794
+ # @option opts [Boolean] :jcrcontent_no_status_update
795
+ # @option opts [Boolean] :jcrcontent_no_versioning
796
+ # @option opts [Float] :jcrcontent_protocol_connect_timeout
797
+ # @option opts [Boolean] :jcrcontent_protocol_http_connection_closed
798
+ # @option opts [String] :jcrcontent_protocol_http_expired
799
+ # @option opts [Array<String>] :jcrcontent_protocol_http_headers
800
+ # @option opts [String] :jcrcontent_protocol_http_headers_type_hint
801
+ # @option opts [String] :jcrcontent_protocol_http_method
802
+ # @option opts [Boolean] :jcrcontent_protocol_https_relaxed
803
+ # @option opts [String] :jcrcontent_protocol_interface
804
+ # @option opts [Float] :jcrcontent_protocol_socket_timeout
805
+ # @option opts [String] :jcrcontent_protocol_version
806
+ # @option opts [String] :jcrcontent_proxy_ntlm_domain
807
+ # @option opts [String] :jcrcontent_proxy_ntlm_host
808
+ # @option opts [String] :jcrcontent_proxy_host
809
+ # @option opts [String] :jcrcontent_proxy_password
810
+ # @option opts [Float] :jcrcontent_proxy_port
811
+ # @option opts [String] :jcrcontent_proxy_user
812
+ # @option opts [Float] :jcrcontent_queue_batch_max_size
813
+ # @option opts [String] :jcrcontent_queue_batch_mode
814
+ # @option opts [Float] :jcrcontent_queue_batch_wait_time
815
+ # @option opts [String] :jcrcontent_retry_delay
816
+ # @option opts [Boolean] :jcrcontent_reverse_replication
817
+ # @option opts [String] :jcrcontent_serialization_type
818
+ # @option opts [String] :jcrcontent_slingresource_type
819
+ # @option opts [String] :jcrcontent_ssl
820
+ # @option opts [String] :jcrcontent_transport_ntlm_domain
821
+ # @option opts [String] :jcrcontent_transport_ntlm_host
822
+ # @option opts [String] :jcrcontent_transport_password
823
+ # @option opts [String] :jcrcontent_transport_uri
824
+ # @option opts [String] :jcrcontent_transport_user
825
+ # @option opts [Boolean] :jcrcontent_trigger_distribute
826
+ # @option opts [Boolean] :jcrcontent_trigger_modified
827
+ # @option opts [Boolean] :jcrcontent_trigger_on_off_time
828
+ # @option opts [Boolean] :jcrcontent_trigger_receive
829
+ # @option opts [Boolean] :jcrcontent_trigger_specific
830
+ # @option opts [String] :jcrcontent_user_id
778
831
  # @option opts [String] :jcrprimary_type
779
832
  # @option opts [String] :operation
780
833
  # @return [nil]
781
834
  def post_agent(runmode, name, opts = {})
782
835
  post_agent_with_http_info(runmode, name, opts)
783
- return nil
836
+ nil
784
837
  end
785
838
 
786
- #
787
- #
788
- # @param runmode
789
- # @param name
839
+ # @param runmode [String]
840
+ # @param name [String]
790
841
  # @param [Hash] opts the optional parameters
791
- # @option opts [BOOLEAN] :jcrcontentcqdistribute
792
- # @option opts [String] :jcrcontentcqdistribute_type_hint
793
- # @option opts [String] :jcrcontentcqname
794
- # @option opts [String] :jcrcontentcqtemplate
795
- # @option opts [BOOLEAN] :jcrcontentenabled
796
- # @option opts [String] :jcrcontentjcrdescription
797
- # @option opts [String] :jcrcontentjcrlast_modified
798
- # @option opts [String] :jcrcontentjcrlast_modified_by
799
- # @option opts [String] :jcrcontentjcrmixin_types
800
- # @option opts [String] :jcrcontentjcrtitle
801
- # @option opts [String] :jcrcontentlog_level
802
- # @option opts [BOOLEAN] :jcrcontentno_status_update
803
- # @option opts [BOOLEAN] :jcrcontentno_versioning
804
- # @option opts [Float] :jcrcontentprotocol_connect_timeout
805
- # @option opts [BOOLEAN] :jcrcontentprotocol_http_connection_closed
806
- # @option opts [String] :jcrcontentprotocol_http_expired
807
- # @option opts [Array<String>] :jcrcontentprotocol_http_headers
808
- # @option opts [String] :jcrcontentprotocol_http_headers_type_hint
809
- # @option opts [String] :jcrcontentprotocol_http_method
810
- # @option opts [BOOLEAN] :jcrcontentprotocol_https_relaxed
811
- # @option opts [String] :jcrcontentprotocol_interface
812
- # @option opts [Float] :jcrcontentprotocol_socket_timeout
813
- # @option opts [String] :jcrcontentprotocol_version
814
- # @option opts [String] :jcrcontentproxy_ntlm_domain
815
- # @option opts [String] :jcrcontentproxy_ntlm_host
816
- # @option opts [String] :jcrcontentproxy_host
817
- # @option opts [String] :jcrcontentproxy_password
818
- # @option opts [Float] :jcrcontentproxy_port
819
- # @option opts [String] :jcrcontentproxy_user
820
- # @option opts [Float] :jcrcontentqueue_batch_max_size
821
- # @option opts [String] :jcrcontentqueue_batch_mode
822
- # @option opts [Float] :jcrcontentqueue_batch_wait_time
823
- # @option opts [String] :jcrcontentretry_delay
824
- # @option opts [BOOLEAN] :jcrcontentreverse_replication
825
- # @option opts [String] :jcrcontentserialization_type
826
- # @option opts [String] :jcrcontentslingresource_type
827
- # @option opts [String] :jcrcontentssl
828
- # @option opts [String] :jcrcontenttransport_ntlm_domain
829
- # @option opts [String] :jcrcontenttransport_ntlm_host
830
- # @option opts [String] :jcrcontenttransport_password
831
- # @option opts [String] :jcrcontenttransport_uri
832
- # @option opts [String] :jcrcontenttransport_user
833
- # @option opts [BOOLEAN] :jcrcontenttrigger_distribute
834
- # @option opts [BOOLEAN] :jcrcontenttrigger_modified
835
- # @option opts [BOOLEAN] :jcrcontenttrigger_on_off_time
836
- # @option opts [BOOLEAN] :jcrcontenttrigger_receive
837
- # @option opts [BOOLEAN] :jcrcontenttrigger_specific
838
- # @option opts [String] :jcrcontentuser_id
842
+ # @option opts [Boolean] :jcrcontent_cqdistribute
843
+ # @option opts [String] :jcrcontent_cqdistribute_type_hint
844
+ # @option opts [String] :jcrcontent_cqname
845
+ # @option opts [String] :jcrcontent_cqtemplate
846
+ # @option opts [Boolean] :jcrcontent_enabled
847
+ # @option opts [String] :jcrcontent_jcrdescription
848
+ # @option opts [String] :jcrcontent_jcrlast_modified
849
+ # @option opts [String] :jcrcontent_jcrlast_modified_by
850
+ # @option opts [String] :jcrcontent_jcrmixin_types
851
+ # @option opts [String] :jcrcontent_jcrtitle
852
+ # @option opts [String] :jcrcontent_log_level
853
+ # @option opts [Boolean] :jcrcontent_no_status_update
854
+ # @option opts [Boolean] :jcrcontent_no_versioning
855
+ # @option opts [Float] :jcrcontent_protocol_connect_timeout
856
+ # @option opts [Boolean] :jcrcontent_protocol_http_connection_closed
857
+ # @option opts [String] :jcrcontent_protocol_http_expired
858
+ # @option opts [Array<String>] :jcrcontent_protocol_http_headers
859
+ # @option opts [String] :jcrcontent_protocol_http_headers_type_hint
860
+ # @option opts [String] :jcrcontent_protocol_http_method
861
+ # @option opts [Boolean] :jcrcontent_protocol_https_relaxed
862
+ # @option opts [String] :jcrcontent_protocol_interface
863
+ # @option opts [Float] :jcrcontent_protocol_socket_timeout
864
+ # @option opts [String] :jcrcontent_protocol_version
865
+ # @option opts [String] :jcrcontent_proxy_ntlm_domain
866
+ # @option opts [String] :jcrcontent_proxy_ntlm_host
867
+ # @option opts [String] :jcrcontent_proxy_host
868
+ # @option opts [String] :jcrcontent_proxy_password
869
+ # @option opts [Float] :jcrcontent_proxy_port
870
+ # @option opts [String] :jcrcontent_proxy_user
871
+ # @option opts [Float] :jcrcontent_queue_batch_max_size
872
+ # @option opts [String] :jcrcontent_queue_batch_mode
873
+ # @option opts [Float] :jcrcontent_queue_batch_wait_time
874
+ # @option opts [String] :jcrcontent_retry_delay
875
+ # @option opts [Boolean] :jcrcontent_reverse_replication
876
+ # @option opts [String] :jcrcontent_serialization_type
877
+ # @option opts [String] :jcrcontent_slingresource_type
878
+ # @option opts [String] :jcrcontent_ssl
879
+ # @option opts [String] :jcrcontent_transport_ntlm_domain
880
+ # @option opts [String] :jcrcontent_transport_ntlm_host
881
+ # @option opts [String] :jcrcontent_transport_password
882
+ # @option opts [String] :jcrcontent_transport_uri
883
+ # @option opts [String] :jcrcontent_transport_user
884
+ # @option opts [Boolean] :jcrcontent_trigger_distribute
885
+ # @option opts [Boolean] :jcrcontent_trigger_modified
886
+ # @option opts [Boolean] :jcrcontent_trigger_on_off_time
887
+ # @option opts [Boolean] :jcrcontent_trigger_receive
888
+ # @option opts [Boolean] :jcrcontent_trigger_specific
889
+ # @option opts [String] :jcrcontent_user_id
839
890
  # @option opts [String] :jcrprimary_type
840
891
  # @option opts [String] :operation
841
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
892
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
842
893
  def post_agent_with_http_info(runmode, name, opts = {})
843
894
  if @api_client.config.debugging
844
- @api_client.config.logger.debug "Calling API: SlingApi.post_agent ..."
895
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_agent ...'
845
896
  end
846
897
  # verify the required parameter 'runmode' is set
847
898
  if @api_client.config.client_side_validation && runmode.nil?
@@ -852,88 +903,94 @@ module SwaggerAemClient
852
903
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_agent"
853
904
  end
854
905
  # resource path
855
- local_var_path = "/etc/replication/agents.{runmode}/{name}".sub('{' + 'runmode' + '}', runmode.to_s).sub('{' + 'name' + '}', name.to_s)
906
+ local_var_path = '/etc/replication/agents.{runmode}/{name}'.sub('{' + 'runmode' + '}', CGI.escape(runmode.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
856
907
 
857
908
  # query parameters
858
- query_params = {}
859
- query_params[:'jcr:content/cq:distribute'] = opts[:'jcrcontentcqdistribute'] if !opts[:'jcrcontentcqdistribute'].nil?
860
- query_params[:'jcr:content/cq:distribute@TypeHint'] = opts[:'jcrcontentcqdistribute_type_hint'] if !opts[:'jcrcontentcqdistribute_type_hint'].nil?
861
- query_params[:'jcr:content/cq:name'] = opts[:'jcrcontentcqname'] if !opts[:'jcrcontentcqname'].nil?
862
- query_params[:'jcr:content/cq:template'] = opts[:'jcrcontentcqtemplate'] if !opts[:'jcrcontentcqtemplate'].nil?
863
- query_params[:'jcr:content/enabled'] = opts[:'jcrcontentenabled'] if !opts[:'jcrcontentenabled'].nil?
864
- query_params[:'jcr:content/jcr:description'] = opts[:'jcrcontentjcrdescription'] if !opts[:'jcrcontentjcrdescription'].nil?
865
- query_params[:'jcr:content/jcr:lastModified'] = opts[:'jcrcontentjcrlast_modified'] if !opts[:'jcrcontentjcrlast_modified'].nil?
866
- query_params[:'jcr:content/jcr:lastModifiedBy'] = opts[:'jcrcontentjcrlast_modified_by'] if !opts[:'jcrcontentjcrlast_modified_by'].nil?
867
- query_params[:'jcr:content/jcr:mixinTypes'] = opts[:'jcrcontentjcrmixin_types'] if !opts[:'jcrcontentjcrmixin_types'].nil?
868
- query_params[:'jcr:content/jcr:title'] = opts[:'jcrcontentjcrtitle'] if !opts[:'jcrcontentjcrtitle'].nil?
869
- query_params[:'jcr:content/logLevel'] = opts[:'jcrcontentlog_level'] if !opts[:'jcrcontentlog_level'].nil?
870
- query_params[:'jcr:content/noStatusUpdate'] = opts[:'jcrcontentno_status_update'] if !opts[:'jcrcontentno_status_update'].nil?
871
- query_params[:'jcr:content/noVersioning'] = opts[:'jcrcontentno_versioning'] if !opts[:'jcrcontentno_versioning'].nil?
872
- query_params[:'jcr:content/protocolConnectTimeout'] = opts[:'jcrcontentprotocol_connect_timeout'] if !opts[:'jcrcontentprotocol_connect_timeout'].nil?
873
- query_params[:'jcr:content/protocolHTTPConnectionClosed'] = opts[:'jcrcontentprotocol_http_connection_closed'] if !opts[:'jcrcontentprotocol_http_connection_closed'].nil?
874
- query_params[:'jcr:content/protocolHTTPExpired'] = opts[:'jcrcontentprotocol_http_expired'] if !opts[:'jcrcontentprotocol_http_expired'].nil?
875
- query_params[:'jcr:content/protocolHTTPHeaders'] = @api_client.build_collection_param(opts[:'jcrcontentprotocol_http_headers'], :multi) if !opts[:'jcrcontentprotocol_http_headers'].nil?
876
- query_params[:'jcr:content/protocolHTTPHeaders@TypeHint'] = opts[:'jcrcontentprotocol_http_headers_type_hint'] if !opts[:'jcrcontentprotocol_http_headers_type_hint'].nil?
877
- query_params[:'jcr:content/protocolHTTPMethod'] = opts[:'jcrcontentprotocol_http_method'] if !opts[:'jcrcontentprotocol_http_method'].nil?
878
- query_params[:'jcr:content/protocolHTTPSRelaxed'] = opts[:'jcrcontentprotocol_https_relaxed'] if !opts[:'jcrcontentprotocol_https_relaxed'].nil?
879
- query_params[:'jcr:content/protocolInterface'] = opts[:'jcrcontentprotocol_interface'] if !opts[:'jcrcontentprotocol_interface'].nil?
880
- query_params[:'jcr:content/protocolSocketTimeout'] = opts[:'jcrcontentprotocol_socket_timeout'] if !opts[:'jcrcontentprotocol_socket_timeout'].nil?
881
- query_params[:'jcr:content/protocolVersion'] = opts[:'jcrcontentprotocol_version'] if !opts[:'jcrcontentprotocol_version'].nil?
882
- query_params[:'jcr:content/proxyNTLMDomain'] = opts[:'jcrcontentproxy_ntlm_domain'] if !opts[:'jcrcontentproxy_ntlm_domain'].nil?
883
- query_params[:'jcr:content/proxyNTLMHost'] = opts[:'jcrcontentproxy_ntlm_host'] if !opts[:'jcrcontentproxy_ntlm_host'].nil?
884
- query_params[:'jcr:content/proxyHost'] = opts[:'jcrcontentproxy_host'] if !opts[:'jcrcontentproxy_host'].nil?
885
- query_params[:'jcr:content/proxyPassword'] = opts[:'jcrcontentproxy_password'] if !opts[:'jcrcontentproxy_password'].nil?
886
- query_params[:'jcr:content/proxyPort'] = opts[:'jcrcontentproxy_port'] if !opts[:'jcrcontentproxy_port'].nil?
887
- query_params[:'jcr:content/proxyUser'] = opts[:'jcrcontentproxy_user'] if !opts[:'jcrcontentproxy_user'].nil?
888
- query_params[:'jcr:content/queueBatchMaxSize'] = opts[:'jcrcontentqueue_batch_max_size'] if !opts[:'jcrcontentqueue_batch_max_size'].nil?
889
- query_params[:'jcr:content/queueBatchMode'] = opts[:'jcrcontentqueue_batch_mode'] if !opts[:'jcrcontentqueue_batch_mode'].nil?
890
- query_params[:'jcr:content/queueBatchWaitTime'] = opts[:'jcrcontentqueue_batch_wait_time'] if !opts[:'jcrcontentqueue_batch_wait_time'].nil?
891
- query_params[:'jcr:content/retryDelay'] = opts[:'jcrcontentretry_delay'] if !opts[:'jcrcontentretry_delay'].nil?
892
- query_params[:'jcr:content/reverseReplication'] = opts[:'jcrcontentreverse_replication'] if !opts[:'jcrcontentreverse_replication'].nil?
893
- query_params[:'jcr:content/serializationType'] = opts[:'jcrcontentserialization_type'] if !opts[:'jcrcontentserialization_type'].nil?
894
- query_params[:'jcr:content/sling:resourceType'] = opts[:'jcrcontentslingresource_type'] if !opts[:'jcrcontentslingresource_type'].nil?
895
- query_params[:'jcr:content/ssl'] = opts[:'jcrcontentssl'] if !opts[:'jcrcontentssl'].nil?
896
- query_params[:'jcr:content/transportNTLMDomain'] = opts[:'jcrcontenttransport_ntlm_domain'] if !opts[:'jcrcontenttransport_ntlm_domain'].nil?
897
- query_params[:'jcr:content/transportNTLMHost'] = opts[:'jcrcontenttransport_ntlm_host'] if !opts[:'jcrcontenttransport_ntlm_host'].nil?
898
- query_params[:'jcr:content/transportPassword'] = opts[:'jcrcontenttransport_password'] if !opts[:'jcrcontenttransport_password'].nil?
899
- query_params[:'jcr:content/transportUri'] = opts[:'jcrcontenttransport_uri'] if !opts[:'jcrcontenttransport_uri'].nil?
900
- query_params[:'jcr:content/transportUser'] = opts[:'jcrcontenttransport_user'] if !opts[:'jcrcontenttransport_user'].nil?
901
- query_params[:'jcr:content/triggerDistribute'] = opts[:'jcrcontenttrigger_distribute'] if !opts[:'jcrcontenttrigger_distribute'].nil?
902
- query_params[:'jcr:content/triggerModified'] = opts[:'jcrcontenttrigger_modified'] if !opts[:'jcrcontenttrigger_modified'].nil?
903
- query_params[:'jcr:content/triggerOnOffTime'] = opts[:'jcrcontenttrigger_on_off_time'] if !opts[:'jcrcontenttrigger_on_off_time'].nil?
904
- query_params[:'jcr:content/triggerReceive'] = opts[:'jcrcontenttrigger_receive'] if !opts[:'jcrcontenttrigger_receive'].nil?
905
- query_params[:'jcr:content/triggerSpecific'] = opts[:'jcrcontenttrigger_specific'] if !opts[:'jcrcontenttrigger_specific'].nil?
906
- query_params[:'jcr:content/userId'] = opts[:'jcrcontentuser_id'] if !opts[:'jcrcontentuser_id'].nil?
909
+ query_params = opts[:query_params] || {}
910
+ query_params[:'jcr:content/cq:distribute'] = opts[:'jcrcontent_cqdistribute'] if !opts[:'jcrcontent_cqdistribute'].nil?
911
+ query_params[:'jcr:content/cq:distribute@TypeHint'] = opts[:'jcrcontent_cqdistribute_type_hint'] if !opts[:'jcrcontent_cqdistribute_type_hint'].nil?
912
+ query_params[:'jcr:content/cq:name'] = opts[:'jcrcontent_cqname'] if !opts[:'jcrcontent_cqname'].nil?
913
+ query_params[:'jcr:content/cq:template'] = opts[:'jcrcontent_cqtemplate'] if !opts[:'jcrcontent_cqtemplate'].nil?
914
+ query_params[:'jcr:content/enabled'] = opts[:'jcrcontent_enabled'] if !opts[:'jcrcontent_enabled'].nil?
915
+ query_params[:'jcr:content/jcr:description'] = opts[:'jcrcontent_jcrdescription'] if !opts[:'jcrcontent_jcrdescription'].nil?
916
+ query_params[:'jcr:content/jcr:lastModified'] = opts[:'jcrcontent_jcrlast_modified'] if !opts[:'jcrcontent_jcrlast_modified'].nil?
917
+ query_params[:'jcr:content/jcr:lastModifiedBy'] = opts[:'jcrcontent_jcrlast_modified_by'] if !opts[:'jcrcontent_jcrlast_modified_by'].nil?
918
+ query_params[:'jcr:content/jcr:mixinTypes'] = opts[:'jcrcontent_jcrmixin_types'] if !opts[:'jcrcontent_jcrmixin_types'].nil?
919
+ query_params[:'jcr:content/jcr:title'] = opts[:'jcrcontent_jcrtitle'] if !opts[:'jcrcontent_jcrtitle'].nil?
920
+ query_params[:'jcr:content/logLevel'] = opts[:'jcrcontent_log_level'] if !opts[:'jcrcontent_log_level'].nil?
921
+ query_params[:'jcr:content/noStatusUpdate'] = opts[:'jcrcontent_no_status_update'] if !opts[:'jcrcontent_no_status_update'].nil?
922
+ query_params[:'jcr:content/noVersioning'] = opts[:'jcrcontent_no_versioning'] if !opts[:'jcrcontent_no_versioning'].nil?
923
+ query_params[:'jcr:content/protocolConnectTimeout'] = opts[:'jcrcontent_protocol_connect_timeout'] if !opts[:'jcrcontent_protocol_connect_timeout'].nil?
924
+ query_params[:'jcr:content/protocolHTTPConnectionClosed'] = opts[:'jcrcontent_protocol_http_connection_closed'] if !opts[:'jcrcontent_protocol_http_connection_closed'].nil?
925
+ query_params[:'jcr:content/protocolHTTPExpired'] = opts[:'jcrcontent_protocol_http_expired'] if !opts[:'jcrcontent_protocol_http_expired'].nil?
926
+ query_params[:'jcr:content/protocolHTTPHeaders'] = @api_client.build_collection_param(opts[:'jcrcontent_protocol_http_headers'], :multi) if !opts[:'jcrcontent_protocol_http_headers'].nil?
927
+ query_params[:'jcr:content/protocolHTTPHeaders@TypeHint'] = opts[:'jcrcontent_protocol_http_headers_type_hint'] if !opts[:'jcrcontent_protocol_http_headers_type_hint'].nil?
928
+ query_params[:'jcr:content/protocolHTTPMethod'] = opts[:'jcrcontent_protocol_http_method'] if !opts[:'jcrcontent_protocol_http_method'].nil?
929
+ query_params[:'jcr:content/protocolHTTPSRelaxed'] = opts[:'jcrcontent_protocol_https_relaxed'] if !opts[:'jcrcontent_protocol_https_relaxed'].nil?
930
+ query_params[:'jcr:content/protocolInterface'] = opts[:'jcrcontent_protocol_interface'] if !opts[:'jcrcontent_protocol_interface'].nil?
931
+ query_params[:'jcr:content/protocolSocketTimeout'] = opts[:'jcrcontent_protocol_socket_timeout'] if !opts[:'jcrcontent_protocol_socket_timeout'].nil?
932
+ query_params[:'jcr:content/protocolVersion'] = opts[:'jcrcontent_protocol_version'] if !opts[:'jcrcontent_protocol_version'].nil?
933
+ query_params[:'jcr:content/proxyNTLMDomain'] = opts[:'jcrcontent_proxy_ntlm_domain'] if !opts[:'jcrcontent_proxy_ntlm_domain'].nil?
934
+ query_params[:'jcr:content/proxyNTLMHost'] = opts[:'jcrcontent_proxy_ntlm_host'] if !opts[:'jcrcontent_proxy_ntlm_host'].nil?
935
+ query_params[:'jcr:content/proxyHost'] = opts[:'jcrcontent_proxy_host'] if !opts[:'jcrcontent_proxy_host'].nil?
936
+ query_params[:'jcr:content/proxyPassword'] = opts[:'jcrcontent_proxy_password'] if !opts[:'jcrcontent_proxy_password'].nil?
937
+ query_params[:'jcr:content/proxyPort'] = opts[:'jcrcontent_proxy_port'] if !opts[:'jcrcontent_proxy_port'].nil?
938
+ query_params[:'jcr:content/proxyUser'] = opts[:'jcrcontent_proxy_user'] if !opts[:'jcrcontent_proxy_user'].nil?
939
+ query_params[:'jcr:content/queueBatchMaxSize'] = opts[:'jcrcontent_queue_batch_max_size'] if !opts[:'jcrcontent_queue_batch_max_size'].nil?
940
+ query_params[:'jcr:content/queueBatchMode'] = opts[:'jcrcontent_queue_batch_mode'] if !opts[:'jcrcontent_queue_batch_mode'].nil?
941
+ query_params[:'jcr:content/queueBatchWaitTime'] = opts[:'jcrcontent_queue_batch_wait_time'] if !opts[:'jcrcontent_queue_batch_wait_time'].nil?
942
+ query_params[:'jcr:content/retryDelay'] = opts[:'jcrcontent_retry_delay'] if !opts[:'jcrcontent_retry_delay'].nil?
943
+ query_params[:'jcr:content/reverseReplication'] = opts[:'jcrcontent_reverse_replication'] if !opts[:'jcrcontent_reverse_replication'].nil?
944
+ query_params[:'jcr:content/serializationType'] = opts[:'jcrcontent_serialization_type'] if !opts[:'jcrcontent_serialization_type'].nil?
945
+ query_params[:'jcr:content/sling:resourceType'] = opts[:'jcrcontent_slingresource_type'] if !opts[:'jcrcontent_slingresource_type'].nil?
946
+ query_params[:'jcr:content/ssl'] = opts[:'jcrcontent_ssl'] if !opts[:'jcrcontent_ssl'].nil?
947
+ query_params[:'jcr:content/transportNTLMDomain'] = opts[:'jcrcontent_transport_ntlm_domain'] if !opts[:'jcrcontent_transport_ntlm_domain'].nil?
948
+ query_params[:'jcr:content/transportNTLMHost'] = opts[:'jcrcontent_transport_ntlm_host'] if !opts[:'jcrcontent_transport_ntlm_host'].nil?
949
+ query_params[:'jcr:content/transportPassword'] = opts[:'jcrcontent_transport_password'] if !opts[:'jcrcontent_transport_password'].nil?
950
+ query_params[:'jcr:content/transportUri'] = opts[:'jcrcontent_transport_uri'] if !opts[:'jcrcontent_transport_uri'].nil?
951
+ query_params[:'jcr:content/transportUser'] = opts[:'jcrcontent_transport_user'] if !opts[:'jcrcontent_transport_user'].nil?
952
+ query_params[:'jcr:content/triggerDistribute'] = opts[:'jcrcontent_trigger_distribute'] if !opts[:'jcrcontent_trigger_distribute'].nil?
953
+ query_params[:'jcr:content/triggerModified'] = opts[:'jcrcontent_trigger_modified'] if !opts[:'jcrcontent_trigger_modified'].nil?
954
+ query_params[:'jcr:content/triggerOnOffTime'] = opts[:'jcrcontent_trigger_on_off_time'] if !opts[:'jcrcontent_trigger_on_off_time'].nil?
955
+ query_params[:'jcr:content/triggerReceive'] = opts[:'jcrcontent_trigger_receive'] if !opts[:'jcrcontent_trigger_receive'].nil?
956
+ query_params[:'jcr:content/triggerSpecific'] = opts[:'jcrcontent_trigger_specific'] if !opts[:'jcrcontent_trigger_specific'].nil?
957
+ query_params[:'jcr:content/userId'] = opts[:'jcrcontent_user_id'] if !opts[:'jcrcontent_user_id'].nil?
907
958
  query_params[:'jcr:primaryType'] = opts[:'jcrprimary_type'] if !opts[:'jcrprimary_type'].nil?
908
959
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
909
960
 
910
961
  # header parameters
911
- header_params = {}
912
- # HTTP header 'Accept' (if needed)
913
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
962
+ header_params = opts[:header_params] || {}
914
963
 
915
964
  # form parameters
916
- form_params = {}
965
+ form_params = opts[:form_params] || {}
917
966
 
918
967
  # http body (model)
919
- post_body = nil
920
- auth_names = ['aemAuth']
921
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
968
+ post_body = opts[:body]
969
+
970
+ # return_type
971
+ return_type = opts[:return_type]
972
+
973
+ # auth_names
974
+ auth_names = opts[:auth_names] || ['aemAuth']
975
+
976
+ new_options = opts.merge(
922
977
  :header_params => header_params,
923
978
  :query_params => query_params,
924
979
  :form_params => form_params,
925
980
  :body => post_body,
926
- :auth_names => auth_names)
981
+ :auth_names => auth_names,
982
+ :return_type => return_type
983
+ )
984
+
985
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
927
986
  if @api_client.config.debugging
928
987
  @api_client.config.logger.debug "API called: SlingApi#post_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
929
988
  end
930
989
  return data, status_code, headers
931
990
  end
932
991
 
933
- #
934
- #
935
- # @param intermediate_path
936
- # @param authorizable_id
992
+ # @param intermediate_path [String]
993
+ # @param authorizable_id [String]
937
994
  # @param [Hash] opts the optional parameters
938
995
  # @option opts [String] :operation
939
996
  # @option opts [String] :current_password
@@ -950,13 +1007,11 @@ module SwaggerAemClient
950
1007
  # @return [KeystoreInfo]
951
1008
  def post_authorizable_keystore(intermediate_path, authorizable_id, opts = {})
952
1009
  data, _status_code, _headers = post_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts)
953
- return data
1010
+ data
954
1011
  end
955
1012
 
956
- #
957
- #
958
- # @param intermediate_path
959
- # @param authorizable_id
1013
+ # @param intermediate_path [String]
1014
+ # @param authorizable_id [String]
960
1015
  # @param [Hash] opts the optional parameters
961
1016
  # @option opts [String] :operation
962
1017
  # @option opts [String] :current_password
@@ -970,10 +1025,10 @@ module SwaggerAemClient
970
1025
  # @option opts [File] :cert_chain
971
1026
  # @option opts [File] :pk
972
1027
  # @option opts [File] :key_store
973
- # @return [Array<(KeystoreInfo, Fixnum, Hash)>] KeystoreInfo data, response status code and response headers
1028
+ # @return [Array<(KeystoreInfo, Integer, Hash)>] KeystoreInfo data, response status code and response headers
974
1029
  def post_authorizable_keystore_with_http_info(intermediate_path, authorizable_id, opts = {})
975
1030
  if @api_client.config.debugging
976
- @api_client.config.logger.debug "Calling API: SlingApi.post_authorizable_keystore ..."
1031
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_authorizable_keystore ...'
977
1032
  end
978
1033
  # verify the required parameter 'intermediate_path' is set
979
1034
  if @api_client.config.client_side_validation && intermediate_path.nil?
@@ -984,10 +1039,10 @@ module SwaggerAemClient
984
1039
  fail ArgumentError, "Missing the required parameter 'authorizable_id' when calling SlingApi.post_authorizable_keystore"
985
1040
  end
986
1041
  # resource path
987
- local_var_path = "/{intermediatePath}/{authorizableId}.ks.html".sub('{' + 'intermediatePath' + '}', intermediate_path.to_s).sub('{' + 'authorizableId' + '}', authorizable_id.to_s)
1042
+ local_var_path = '/{intermediatePath}/{authorizableId}.ks.html'.sub('{' + 'intermediatePath' + '}', CGI.escape(intermediate_path.to_s)).sub('{' + 'authorizableId' + '}', CGI.escape(authorizable_id.to_s))
988
1043
 
989
1044
  # query parameters
990
- query_params = {}
1045
+ query_params = opts[:query_params] || {}
991
1046
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
992
1047
  query_params[:'currentPassword'] = opts[:'current_password'] if !opts[:'current_password'].nil?
993
1048
  query_params[:'newPassword'] = opts[:'new_password'] if !opts[:'new_password'].nil?
@@ -999,62 +1054,67 @@ module SwaggerAemClient
999
1054
  query_params[:'removeAlias'] = opts[:'remove_alias'] if !opts[:'remove_alias'].nil?
1000
1055
 
1001
1056
  # header parameters
1002
- header_params = {}
1057
+ header_params = opts[:header_params] || {}
1003
1058
  # HTTP header 'Accept' (if needed)
1004
1059
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1005
1060
  # HTTP header 'Content-Type'
1006
1061
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1007
1062
 
1008
1063
  # form parameters
1009
- form_params = {}
1010
- form_params["cert-chain"] = opts[:'cert_chain'] if !opts[:'cert_chain'].nil?
1011
- form_params["pk"] = opts[:'pk'] if !opts[:'pk'].nil?
1012
- form_params["keyStore"] = opts[:'key_store'] if !opts[:'key_store'].nil?
1064
+ form_params = opts[:form_params] || {}
1065
+ form_params['cert-chain'] = opts[:'cert_chain'] if !opts[:'cert_chain'].nil?
1066
+ form_params['pk'] = opts[:'pk'] if !opts[:'pk'].nil?
1067
+ form_params['keyStore'] = opts[:'key_store'] if !opts[:'key_store'].nil?
1013
1068
 
1014
1069
  # http body (model)
1015
- post_body = nil
1016
- auth_names = ['aemAuth']
1017
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1070
+ post_body = opts[:body]
1071
+
1072
+ # return_type
1073
+ return_type = opts[:return_type] || 'KeystoreInfo'
1074
+
1075
+ # auth_names
1076
+ auth_names = opts[:auth_names] || ['aemAuth']
1077
+
1078
+ new_options = opts.merge(
1018
1079
  :header_params => header_params,
1019
1080
  :query_params => query_params,
1020
1081
  :form_params => form_params,
1021
1082
  :body => post_body,
1022
1083
  :auth_names => auth_names,
1023
- :return_type => 'KeystoreInfo')
1084
+ :return_type => return_type
1085
+ )
1086
+
1087
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1024
1088
  if @api_client.config.debugging
1025
1089
  @api_client.config.logger.debug "API called: SlingApi#post_authorizable_keystore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1026
1090
  end
1027
1091
  return data, status_code, headers
1028
1092
  end
1029
1093
 
1030
- #
1031
- #
1032
- # @param authorizable_id
1033
- # @param intermediate_path
1094
+ # @param authorizable_id [String]
1095
+ # @param intermediate_path [String]
1034
1096
  # @param [Hash] opts the optional parameters
1035
1097
  # @option opts [String] :create_user
1036
1098
  # @option opts [String] :create_group
1037
1099
  # @option opts [String] :reppassword
1038
- # @option opts [String] :profilegiven_name
1100
+ # @option opts [String] :profile_given_name
1039
1101
  # @return [String]
1040
1102
  def post_authorizables(authorizable_id, intermediate_path, opts = {})
1041
1103
  data, _status_code, _headers = post_authorizables_with_http_info(authorizable_id, intermediate_path, opts)
1042
- return data
1104
+ data
1043
1105
  end
1044
1106
 
1045
- #
1046
- #
1047
- # @param authorizable_id
1048
- # @param intermediate_path
1107
+ # @param authorizable_id [String]
1108
+ # @param intermediate_path [String]
1049
1109
  # @param [Hash] opts the optional parameters
1050
1110
  # @option opts [String] :create_user
1051
1111
  # @option opts [String] :create_group
1052
1112
  # @option opts [String] :reppassword
1053
- # @option opts [String] :profilegiven_name
1054
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
1113
+ # @option opts [String] :profile_given_name
1114
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1055
1115
  def post_authorizables_with_http_info(authorizable_id, intermediate_path, opts = {})
1056
1116
  if @api_client.config.debugging
1057
- @api_client.config.logger.debug "Calling API: SlingApi.post_authorizables ..."
1117
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_authorizables ...'
1058
1118
  end
1059
1119
  # verify the required parameter 'authorizable_id' is set
1060
1120
  if @api_client.config.client_side_validation && authorizable_id.nil?
@@ -1065,51 +1125,58 @@ module SwaggerAemClient
1065
1125
  fail ArgumentError, "Missing the required parameter 'intermediate_path' when calling SlingApi.post_authorizables"
1066
1126
  end
1067
1127
  # resource path
1068
- local_var_path = "/libs/granite/security/post/authorizables"
1128
+ local_var_path = '/libs/granite/security/post/authorizables'
1069
1129
 
1070
1130
  # query parameters
1071
- query_params = {}
1131
+ query_params = opts[:query_params] || {}
1072
1132
  query_params[:'authorizableId'] = authorizable_id
1073
1133
  query_params[:'intermediatePath'] = intermediate_path
1074
1134
  query_params[:'createUser'] = opts[:'create_user'] if !opts[:'create_user'].nil?
1075
1135
  query_params[:'createGroup'] = opts[:'create_group'] if !opts[:'create_group'].nil?
1076
1136
  query_params[:'rep:password'] = opts[:'reppassword'] if !opts[:'reppassword'].nil?
1077
- query_params[:'profile/givenName'] = opts[:'profilegiven_name'] if !opts[:'profilegiven_name'].nil?
1137
+ query_params[:'profile/givenName'] = opts[:'profile_given_name'] if !opts[:'profile_given_name'].nil?
1078
1138
 
1079
1139
  # header parameters
1080
- header_params = {}
1140
+ header_params = opts[:header_params] || {}
1081
1141
  # HTTP header 'Accept' (if needed)
1082
1142
  header_params['Accept'] = @api_client.select_header_accept(['text/html'])
1083
1143
 
1084
1144
  # form parameters
1085
- form_params = {}
1145
+ form_params = opts[:form_params] || {}
1086
1146
 
1087
1147
  # http body (model)
1088
- post_body = nil
1089
- auth_names = ['aemAuth']
1090
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1148
+ post_body = opts[:body]
1149
+
1150
+ # return_type
1151
+ return_type = opts[:return_type] || 'String'
1152
+
1153
+ # auth_names
1154
+ auth_names = opts[:auth_names] || ['aemAuth']
1155
+
1156
+ new_options = opts.merge(
1091
1157
  :header_params => header_params,
1092
1158
  :query_params => query_params,
1093
1159
  :form_params => form_params,
1094
1160
  :body => post_body,
1095
1161
  :auth_names => auth_names,
1096
- :return_type => 'String')
1162
+ :return_type => return_type
1163
+ )
1164
+
1165
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1097
1166
  if @api_client.config.debugging
1098
1167
  @api_client.config.logger.debug "API called: SlingApi#post_authorizables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1099
1168
  end
1100
1169
  return data, status_code, headers
1101
1170
  end
1102
1171
 
1103
- #
1104
- #
1105
1172
  # @param [Hash] opts the optional parameters
1106
1173
  # @option opts [String] :key_store_password
1107
1174
  # @option opts [String] :key_store_password_type_hint
1108
1175
  # @option opts [Integer] :service_ranking
1109
1176
  # @option opts [String] :service_ranking_type_hint
1110
- # @option opts [BOOLEAN] :idp_http_redirect
1177
+ # @option opts [Boolean] :idp_http_redirect
1111
1178
  # @option opts [String] :idp_http_redirect_type_hint
1112
- # @option opts [BOOLEAN] :create_user
1179
+ # @option opts [Boolean] :create_user
1113
1180
  # @option opts [String] :create_user_type_hint
1114
1181
  # @option opts [String] :default_redirect_url
1115
1182
  # @option opts [String] :default_redirect_url_type_hint
@@ -1119,7 +1186,7 @@ module SwaggerAemClient
1119
1186
  # @option opts [String] :default_groups_type_hint
1120
1187
  # @option opts [String] :idp_cert_alias
1121
1188
  # @option opts [String] :idp_cert_alias_type_hint
1122
- # @option opts [BOOLEAN] :add_group_memberships
1189
+ # @option opts [Boolean] :add_group_memberships
1123
1190
  # @option opts [String] :add_group_memberships_type_hint
1124
1191
  # @option opts [Array<String>] :path
1125
1192
  # @option opts [String] :path_type_hint
@@ -1137,11 +1204,11 @@ module SwaggerAemClient
1137
1204
  # @option opts [String] :service_provider_entity_id_type_hint
1138
1205
  # @option opts [String] :assertion_consumer_service_url
1139
1206
  # @option opts [String] :assertion_consumer_service_url_type_hint
1140
- # @option opts [BOOLEAN] :handle_logout
1207
+ # @option opts [Boolean] :handle_logout
1141
1208
  # @option opts [String] :handle_logout_type_hint
1142
1209
  # @option opts [String] :sp_private_key_alias
1143
1210
  # @option opts [String] :sp_private_key_alias_type_hint
1144
- # @option opts [BOOLEAN] :use_encryption
1211
+ # @option opts [Boolean] :use_encryption
1145
1212
  # @option opts [String] :use_encryption_type_hint
1146
1213
  # @option opts [String] :name_id_format
1147
1214
  # @option opts [String] :name_id_format_type_hint
@@ -1154,19 +1221,17 @@ module SwaggerAemClient
1154
1221
  # @return [nil]
1155
1222
  def post_config_adobe_granite_saml_authentication_handler(opts = {})
1156
1223
  post_config_adobe_granite_saml_authentication_handler_with_http_info(opts)
1157
- return nil
1224
+ nil
1158
1225
  end
1159
1226
 
1160
- #
1161
- #
1162
1227
  # @param [Hash] opts the optional parameters
1163
1228
  # @option opts [String] :key_store_password
1164
1229
  # @option opts [String] :key_store_password_type_hint
1165
1230
  # @option opts [Integer] :service_ranking
1166
1231
  # @option opts [String] :service_ranking_type_hint
1167
- # @option opts [BOOLEAN] :idp_http_redirect
1232
+ # @option opts [Boolean] :idp_http_redirect
1168
1233
  # @option opts [String] :idp_http_redirect_type_hint
1169
- # @option opts [BOOLEAN] :create_user
1234
+ # @option opts [Boolean] :create_user
1170
1235
  # @option opts [String] :create_user_type_hint
1171
1236
  # @option opts [String] :default_redirect_url
1172
1237
  # @option opts [String] :default_redirect_url_type_hint
@@ -1176,7 +1241,7 @@ module SwaggerAemClient
1176
1241
  # @option opts [String] :default_groups_type_hint
1177
1242
  # @option opts [String] :idp_cert_alias
1178
1243
  # @option opts [String] :idp_cert_alias_type_hint
1179
- # @option opts [BOOLEAN] :add_group_memberships
1244
+ # @option opts [Boolean] :add_group_memberships
1180
1245
  # @option opts [String] :add_group_memberships_type_hint
1181
1246
  # @option opts [Array<String>] :path
1182
1247
  # @option opts [String] :path_type_hint
@@ -1194,11 +1259,11 @@ module SwaggerAemClient
1194
1259
  # @option opts [String] :service_provider_entity_id_type_hint
1195
1260
  # @option opts [String] :assertion_consumer_service_url
1196
1261
  # @option opts [String] :assertion_consumer_service_url_type_hint
1197
- # @option opts [BOOLEAN] :handle_logout
1262
+ # @option opts [Boolean] :handle_logout
1198
1263
  # @option opts [String] :handle_logout_type_hint
1199
1264
  # @option opts [String] :sp_private_key_alias
1200
1265
  # @option opts [String] :sp_private_key_alias_type_hint
1201
- # @option opts [BOOLEAN] :use_encryption
1266
+ # @option opts [Boolean] :use_encryption
1202
1267
  # @option opts [String] :use_encryption_type_hint
1203
1268
  # @option opts [String] :name_id_format
1204
1269
  # @option opts [String] :name_id_format_type_hint
@@ -1208,16 +1273,16 @@ module SwaggerAemClient
1208
1273
  # @option opts [String] :signature_method_type_hint
1209
1274
  # @option opts [String] :user_intermediate_path
1210
1275
  # @option opts [String] :user_intermediate_path_type_hint
1211
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1276
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1212
1277
  def post_config_adobe_granite_saml_authentication_handler_with_http_info(opts = {})
1213
1278
  if @api_client.config.debugging
1214
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_adobe_granite_saml_authentication_handler ..."
1279
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_adobe_granite_saml_authentication_handler ...'
1215
1280
  end
1216
1281
  # resource path
1217
- local_var_path = "/apps/system/config/com.adobe.granite.auth.saml.SamlAuthenticationHandler.config"
1282
+ local_var_path = '/apps/system/config/com.adobe.granite.auth.saml.SamlAuthenticationHandler.config'
1218
1283
 
1219
1284
  # query parameters
1220
- query_params = {}
1285
+ query_params = opts[:query_params] || {}
1221
1286
  query_params[:'keyStorePassword'] = opts[:'key_store_password'] if !opts[:'key_store_password'].nil?
1222
1287
  query_params[:'keyStorePassword@TypeHint'] = opts[:'key_store_password_type_hint'] if !opts[:'key_store_password_type_hint'].nil?
1223
1288
  query_params[:'service.ranking'] = opts[:'service_ranking'] if !opts[:'service_ranking'].nil?
@@ -1268,32 +1333,38 @@ module SwaggerAemClient
1268
1333
  query_params[:'userIntermediatePath@TypeHint'] = opts[:'user_intermediate_path_type_hint'] if !opts[:'user_intermediate_path_type_hint'].nil?
1269
1334
 
1270
1335
  # header parameters
1271
- header_params = {}
1272
- # HTTP header 'Accept' (if needed)
1273
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1336
+ header_params = opts[:header_params] || {}
1274
1337
 
1275
1338
  # form parameters
1276
- form_params = {}
1339
+ form_params = opts[:form_params] || {}
1277
1340
 
1278
1341
  # http body (model)
1279
- post_body = nil
1280
- auth_names = ['aemAuth']
1281
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1342
+ post_body = opts[:body]
1343
+
1344
+ # return_type
1345
+ return_type = opts[:return_type]
1346
+
1347
+ # auth_names
1348
+ auth_names = opts[:auth_names] || ['aemAuth']
1349
+
1350
+ new_options = opts.merge(
1282
1351
  :header_params => header_params,
1283
1352
  :query_params => query_params,
1284
1353
  :form_params => form_params,
1285
1354
  :body => post_body,
1286
- :auth_names => auth_names)
1355
+ :auth_names => auth_names,
1356
+ :return_type => return_type
1357
+ )
1358
+
1359
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1287
1360
  if @api_client.config.debugging
1288
1361
  @api_client.config.logger.debug "API called: SlingApi#post_config_adobe_granite_saml_authentication_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1289
1362
  end
1290
1363
  return data, status_code, headers
1291
1364
  end
1292
1365
 
1293
- #
1294
- #
1295
1366
  # @param [Hash] opts the optional parameters
1296
- # @option opts [BOOLEAN] :org_apache_felix_https_nio
1367
+ # @option opts [Boolean] :org_apache_felix_https_nio
1297
1368
  # @option opts [String] :org_apache_felix_https_nio_type_hint
1298
1369
  # @option opts [String] :org_apache_felix_https_keystore
1299
1370
  # @option opts [String] :org_apache_felix_https_keystore_type_hint
@@ -1309,20 +1380,18 @@ module SwaggerAemClient
1309
1380
  # @option opts [String] :org_apache_felix_https_truststore_password_type_hint
1310
1381
  # @option opts [String] :org_apache_felix_https_clientcertificate
1311
1382
  # @option opts [String] :org_apache_felix_https_clientcertificate_type_hint
1312
- # @option opts [BOOLEAN] :org_apache_felix_https_enable
1383
+ # @option opts [Boolean] :org_apache_felix_https_enable
1313
1384
  # @option opts [String] :org_apache_felix_https_enable_type_hint
1314
1385
  # @option opts [String] :org_osgi_service_http_port_secure
1315
1386
  # @option opts [String] :org_osgi_service_http_port_secure_type_hint
1316
1387
  # @return [nil]
1317
1388
  def post_config_apache_felix_jetty_based_http_service(opts = {})
1318
1389
  post_config_apache_felix_jetty_based_http_service_with_http_info(opts)
1319
- return nil
1390
+ nil
1320
1391
  end
1321
1392
 
1322
- #
1323
- #
1324
1393
  # @param [Hash] opts the optional parameters
1325
- # @option opts [BOOLEAN] :org_apache_felix_https_nio
1394
+ # @option opts [Boolean] :org_apache_felix_https_nio
1326
1395
  # @option opts [String] :org_apache_felix_https_nio_type_hint
1327
1396
  # @option opts [String] :org_apache_felix_https_keystore
1328
1397
  # @option opts [String] :org_apache_felix_https_keystore_type_hint
@@ -1338,20 +1407,20 @@ module SwaggerAemClient
1338
1407
  # @option opts [String] :org_apache_felix_https_truststore_password_type_hint
1339
1408
  # @option opts [String] :org_apache_felix_https_clientcertificate
1340
1409
  # @option opts [String] :org_apache_felix_https_clientcertificate_type_hint
1341
- # @option opts [BOOLEAN] :org_apache_felix_https_enable
1410
+ # @option opts [Boolean] :org_apache_felix_https_enable
1342
1411
  # @option opts [String] :org_apache_felix_https_enable_type_hint
1343
1412
  # @option opts [String] :org_osgi_service_http_port_secure
1344
1413
  # @option opts [String] :org_osgi_service_http_port_secure_type_hint
1345
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1414
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1346
1415
  def post_config_apache_felix_jetty_based_http_service_with_http_info(opts = {})
1347
1416
  if @api_client.config.debugging
1348
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_apache_felix_jetty_based_http_service ..."
1417
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_felix_jetty_based_http_service ...'
1349
1418
  end
1350
1419
  # resource path
1351
- local_var_path = "/apps/system/config/org.apache.felix.http"
1420
+ local_var_path = '/apps/system/config/org.apache.felix.http'
1352
1421
 
1353
1422
  # query parameters
1354
- query_params = {}
1423
+ query_params = opts[:query_params] || {}
1355
1424
  query_params[:'org.apache.felix.https.nio'] = opts[:'org_apache_felix_https_nio'] if !opts[:'org_apache_felix_https_nio'].nil?
1356
1425
  query_params[:'org.apache.felix.https.nio@TypeHint'] = opts[:'org_apache_felix_https_nio_type_hint'] if !opts[:'org_apache_felix_https_nio_type_hint'].nil?
1357
1426
  query_params[:'org.apache.felix.https.keystore'] = opts[:'org_apache_felix_https_keystore'] if !opts[:'org_apache_felix_https_keystore'].nil?
@@ -1374,30 +1443,36 @@ module SwaggerAemClient
1374
1443
  query_params[:'org.osgi.service.http.port.secure@TypeHint'] = opts[:'org_osgi_service_http_port_secure_type_hint'] if !opts[:'org_osgi_service_http_port_secure_type_hint'].nil?
1375
1444
 
1376
1445
  # header parameters
1377
- header_params = {}
1378
- # HTTP header 'Accept' (if needed)
1379
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1446
+ header_params = opts[:header_params] || {}
1380
1447
 
1381
1448
  # form parameters
1382
- form_params = {}
1449
+ form_params = opts[:form_params] || {}
1383
1450
 
1384
1451
  # http body (model)
1385
- post_body = nil
1386
- auth_names = ['aemAuth']
1387
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1452
+ post_body = opts[:body]
1453
+
1454
+ # return_type
1455
+ return_type = opts[:return_type]
1456
+
1457
+ # auth_names
1458
+ auth_names = opts[:auth_names] || ['aemAuth']
1459
+
1460
+ new_options = opts.merge(
1388
1461
  :header_params => header_params,
1389
1462
  :query_params => query_params,
1390
1463
  :form_params => form_params,
1391
1464
  :body => post_body,
1392
- :auth_names => auth_names)
1465
+ :auth_names => auth_names,
1466
+ :return_type => return_type
1467
+ )
1468
+
1469
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1393
1470
  if @api_client.config.debugging
1394
1471
  @api_client.config.logger.debug "API called: SlingApi#post_config_apache_felix_jetty_based_http_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1395
1472
  end
1396
1473
  return data, status_code, headers
1397
1474
  end
1398
1475
 
1399
- #
1400
- #
1401
1476
  # @param [Hash] opts the optional parameters
1402
1477
  # @option opts [String] :proxy_host
1403
1478
  # @option opts [String] :proxy_host_type_hint
@@ -1405,7 +1480,7 @@ module SwaggerAemClient
1405
1480
  # @option opts [String] :proxy_port_type_hint
1406
1481
  # @option opts [Array<String>] :proxy_exceptions
1407
1482
  # @option opts [String] :proxy_exceptions_type_hint
1408
- # @option opts [BOOLEAN] :proxy_enabled
1483
+ # @option opts [Boolean] :proxy_enabled
1409
1484
  # @option opts [String] :proxy_enabled_type_hint
1410
1485
  # @option opts [String] :proxy_user
1411
1486
  # @option opts [String] :proxy_user_type_hint
@@ -1414,11 +1489,9 @@ module SwaggerAemClient
1414
1489
  # @return [nil]
1415
1490
  def post_config_apache_http_components_proxy_configuration(opts = {})
1416
1491
  post_config_apache_http_components_proxy_configuration_with_http_info(opts)
1417
- return nil
1492
+ nil
1418
1493
  end
1419
1494
 
1420
- #
1421
- #
1422
1495
  # @param [Hash] opts the optional parameters
1423
1496
  # @option opts [String] :proxy_host
1424
1497
  # @option opts [String] :proxy_host_type_hint
@@ -1426,22 +1499,22 @@ module SwaggerAemClient
1426
1499
  # @option opts [String] :proxy_port_type_hint
1427
1500
  # @option opts [Array<String>] :proxy_exceptions
1428
1501
  # @option opts [String] :proxy_exceptions_type_hint
1429
- # @option opts [BOOLEAN] :proxy_enabled
1502
+ # @option opts [Boolean] :proxy_enabled
1430
1503
  # @option opts [String] :proxy_enabled_type_hint
1431
1504
  # @option opts [String] :proxy_user
1432
1505
  # @option opts [String] :proxy_user_type_hint
1433
1506
  # @option opts [String] :proxy_password
1434
1507
  # @option opts [String] :proxy_password_type_hint
1435
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1508
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1436
1509
  def post_config_apache_http_components_proxy_configuration_with_http_info(opts = {})
1437
1510
  if @api_client.config.debugging
1438
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_apache_http_components_proxy_configuration ..."
1511
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_http_components_proxy_configuration ...'
1439
1512
  end
1440
1513
  # resource path
1441
- local_var_path = "/apps/system/config/org.apache.http.proxyconfigurator.config"
1514
+ local_var_path = '/apps/system/config/org.apache.http.proxyconfigurator.config'
1442
1515
 
1443
1516
  # query parameters
1444
- query_params = {}
1517
+ query_params = opts[:query_params] || {}
1445
1518
  query_params[:'proxy.host'] = opts[:'proxy_host'] if !opts[:'proxy_host'].nil?
1446
1519
  query_params[:'proxy.host@TypeHint'] = opts[:'proxy_host_type_hint'] if !opts[:'proxy_host_type_hint'].nil?
1447
1520
  query_params[:'proxy.port'] = opts[:'proxy_port'] if !opts[:'proxy_port'].nil?
@@ -1456,124 +1529,132 @@ module SwaggerAemClient
1456
1529
  query_params[:'proxy.password@TypeHint'] = opts[:'proxy_password_type_hint'] if !opts[:'proxy_password_type_hint'].nil?
1457
1530
 
1458
1531
  # header parameters
1459
- header_params = {}
1460
- # HTTP header 'Accept' (if needed)
1461
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1532
+ header_params = opts[:header_params] || {}
1462
1533
 
1463
1534
  # form parameters
1464
- form_params = {}
1535
+ form_params = opts[:form_params] || {}
1465
1536
 
1466
1537
  # http body (model)
1467
- post_body = nil
1468
- auth_names = ['aemAuth']
1469
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1538
+ post_body = opts[:body]
1539
+
1540
+ # return_type
1541
+ return_type = opts[:return_type]
1542
+
1543
+ # auth_names
1544
+ auth_names = opts[:auth_names] || ['aemAuth']
1545
+
1546
+ new_options = opts.merge(
1470
1547
  :header_params => header_params,
1471
1548
  :query_params => query_params,
1472
1549
  :form_params => form_params,
1473
1550
  :body => post_body,
1474
- :auth_names => auth_names)
1551
+ :auth_names => auth_names,
1552
+ :return_type => return_type
1553
+ )
1554
+
1555
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1475
1556
  if @api_client.config.debugging
1476
1557
  @api_client.config.logger.debug "API called: SlingApi#post_config_apache_http_components_proxy_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1477
1558
  end
1478
1559
  return data, status_code, headers
1479
1560
  end
1480
1561
 
1481
- #
1482
- #
1483
1562
  # @param [Hash] opts the optional parameters
1484
1563
  # @option opts [String] :_alias
1485
1564
  # @option opts [String] :alias_type_hint
1486
- # @option opts [BOOLEAN] :dav_create_absolute_uri
1565
+ # @option opts [Boolean] :dav_create_absolute_uri
1487
1566
  # @option opts [String] :dav_create_absolute_uri_type_hint
1488
1567
  # @return [nil]
1489
1568
  def post_config_apache_sling_dav_ex_servlet(opts = {})
1490
1569
  post_config_apache_sling_dav_ex_servlet_with_http_info(opts)
1491
- return nil
1570
+ nil
1492
1571
  end
1493
1572
 
1494
- #
1495
- #
1496
1573
  # @param [Hash] opts the optional parameters
1497
1574
  # @option opts [String] :_alias
1498
1575
  # @option opts [String] :alias_type_hint
1499
- # @option opts [BOOLEAN] :dav_create_absolute_uri
1576
+ # @option opts [Boolean] :dav_create_absolute_uri
1500
1577
  # @option opts [String] :dav_create_absolute_uri_type_hint
1501
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1578
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1502
1579
  def post_config_apache_sling_dav_ex_servlet_with_http_info(opts = {})
1503
1580
  if @api_client.config.debugging
1504
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_apache_sling_dav_ex_servlet ..."
1581
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_dav_ex_servlet ...'
1505
1582
  end
1506
1583
  # resource path
1507
- local_var_path = "/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet"
1584
+ local_var_path = '/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet'
1508
1585
 
1509
1586
  # query parameters
1510
- query_params = {}
1587
+ query_params = opts[:query_params] || {}
1511
1588
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
1512
1589
  query_params[:'alias@TypeHint'] = opts[:'alias_type_hint'] if !opts[:'alias_type_hint'].nil?
1513
1590
  query_params[:'dav.create-absolute-uri'] = opts[:'dav_create_absolute_uri'] if !opts[:'dav_create_absolute_uri'].nil?
1514
1591
  query_params[:'dav.create-absolute-uri@TypeHint'] = opts[:'dav_create_absolute_uri_type_hint'] if !opts[:'dav_create_absolute_uri_type_hint'].nil?
1515
1592
 
1516
1593
  # header parameters
1517
- header_params = {}
1518
- # HTTP header 'Accept' (if needed)
1519
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1594
+ header_params = opts[:header_params] || {}
1520
1595
 
1521
1596
  # form parameters
1522
- form_params = {}
1597
+ form_params = opts[:form_params] || {}
1523
1598
 
1524
1599
  # http body (model)
1525
- post_body = nil
1526
- auth_names = ['aemAuth']
1527
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1600
+ post_body = opts[:body]
1601
+
1602
+ # return_type
1603
+ return_type = opts[:return_type]
1604
+
1605
+ # auth_names
1606
+ auth_names = opts[:auth_names] || ['aemAuth']
1607
+
1608
+ new_options = opts.merge(
1528
1609
  :header_params => header_params,
1529
1610
  :query_params => query_params,
1530
1611
  :form_params => form_params,
1531
1612
  :body => post_body,
1532
- :auth_names => auth_names)
1613
+ :auth_names => auth_names,
1614
+ :return_type => return_type
1615
+ )
1616
+
1617
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1533
1618
  if @api_client.config.debugging
1534
1619
  @api_client.config.logger.debug "API called: SlingApi#post_config_apache_sling_dav_ex_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1535
1620
  end
1536
1621
  return data, status_code, headers
1537
1622
  end
1538
1623
 
1539
- #
1540
- #
1541
1624
  # @param [Hash] opts the optional parameters
1542
1625
  # @option opts [String] :json_maximumresults
1543
1626
  # @option opts [String] :json_maximumresults_type_hint
1544
- # @option opts [BOOLEAN] :enable_html
1627
+ # @option opts [Boolean] :enable_html
1545
1628
  # @option opts [String] :enable_html_type_hint
1546
- # @option opts [BOOLEAN] :enable_txt
1629
+ # @option opts [Boolean] :enable_txt
1547
1630
  # @option opts [String] :enable_txt_type_hint
1548
- # @option opts [BOOLEAN] :enable_xml
1631
+ # @option opts [Boolean] :enable_xml
1549
1632
  # @option opts [String] :enable_xml_type_hint
1550
1633
  # @return [nil]
1551
1634
  def post_config_apache_sling_get_servlet(opts = {})
1552
1635
  post_config_apache_sling_get_servlet_with_http_info(opts)
1553
- return nil
1636
+ nil
1554
1637
  end
1555
1638
 
1556
- #
1557
- #
1558
1639
  # @param [Hash] opts the optional parameters
1559
1640
  # @option opts [String] :json_maximumresults
1560
1641
  # @option opts [String] :json_maximumresults_type_hint
1561
- # @option opts [BOOLEAN] :enable_html
1642
+ # @option opts [Boolean] :enable_html
1562
1643
  # @option opts [String] :enable_html_type_hint
1563
- # @option opts [BOOLEAN] :enable_txt
1644
+ # @option opts [Boolean] :enable_txt
1564
1645
  # @option opts [String] :enable_txt_type_hint
1565
- # @option opts [BOOLEAN] :enable_xml
1646
+ # @option opts [Boolean] :enable_xml
1566
1647
  # @option opts [String] :enable_xml_type_hint
1567
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1648
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1568
1649
  def post_config_apache_sling_get_servlet_with_http_info(opts = {})
1569
1650
  if @api_client.config.debugging
1570
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_apache_sling_get_servlet ..."
1651
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_get_servlet ...'
1571
1652
  end
1572
1653
  # resource path
1573
- local_var_path = "/apps/system/config/org.apache.sling.servlets.get.DefaultGetServlet"
1654
+ local_var_path = '/apps/system/config/org.apache.sling.servlets.get.DefaultGetServlet'
1574
1655
 
1575
1656
  # query parameters
1576
- query_params = {}
1657
+ query_params = opts[:query_params] || {}
1577
1658
  query_params[:'json.maximumresults'] = opts[:'json_maximumresults'] if !opts[:'json_maximumresults'].nil?
1578
1659
  query_params[:'json.maximumresults@TypeHint'] = opts[:'json_maximumresults_type_hint'] if !opts[:'json_maximumresults_type_hint'].nil?
1579
1660
  query_params[:'enable.html'] = opts[:'enable_html'] if !opts[:'enable_html'].nil?
@@ -1584,32 +1665,38 @@ module SwaggerAemClient
1584
1665
  query_params[:'enable.xml@TypeHint'] = opts[:'enable_xml_type_hint'] if !opts[:'enable_xml_type_hint'].nil?
1585
1666
 
1586
1667
  # header parameters
1587
- header_params = {}
1588
- # HTTP header 'Accept' (if needed)
1589
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1668
+ header_params = opts[:header_params] || {}
1590
1669
 
1591
1670
  # form parameters
1592
- form_params = {}
1671
+ form_params = opts[:form_params] || {}
1593
1672
 
1594
1673
  # http body (model)
1595
- post_body = nil
1596
- auth_names = ['aemAuth']
1597
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1674
+ post_body = opts[:body]
1675
+
1676
+ # return_type
1677
+ return_type = opts[:return_type]
1678
+
1679
+ # auth_names
1680
+ auth_names = opts[:auth_names] || ['aemAuth']
1681
+
1682
+ new_options = opts.merge(
1598
1683
  :header_params => header_params,
1599
1684
  :query_params => query_params,
1600
1685
  :form_params => form_params,
1601
1686
  :body => post_body,
1602
- :auth_names => auth_names)
1687
+ :auth_names => auth_names,
1688
+ :return_type => return_type
1689
+ )
1690
+
1691
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1603
1692
  if @api_client.config.debugging
1604
1693
  @api_client.config.logger.debug "API called: SlingApi#post_config_apache_sling_get_servlet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1605
1694
  end
1606
1695
  return data, status_code, headers
1607
1696
  end
1608
1697
 
1609
- #
1610
- #
1611
1698
  # @param [Hash] opts the optional parameters
1612
- # @option opts [BOOLEAN] :allow_empty
1699
+ # @option opts [Boolean] :allow_empty
1613
1700
  # @option opts [String] :allow_empty_type_hint
1614
1701
  # @option opts [String] :allow_hosts
1615
1702
  # @option opts [String] :allow_hosts_type_hint
@@ -1620,13 +1707,11 @@ module SwaggerAemClient
1620
1707
  # @return [nil]
1621
1708
  def post_config_apache_sling_referrer_filter(opts = {})
1622
1709
  post_config_apache_sling_referrer_filter_with_http_info(opts)
1623
- return nil
1710
+ nil
1624
1711
  end
1625
1712
 
1626
- #
1627
- #
1628
1713
  # @param [Hash] opts the optional parameters
1629
- # @option opts [BOOLEAN] :allow_empty
1714
+ # @option opts [Boolean] :allow_empty
1630
1715
  # @option opts [String] :allow_empty_type_hint
1631
1716
  # @option opts [String] :allow_hosts
1632
1717
  # @option opts [String] :allow_hosts_type_hint
@@ -1634,16 +1719,16 @@ module SwaggerAemClient
1634
1719
  # @option opts [String] :allow_hosts_regexp_type_hint
1635
1720
  # @option opts [String] :filter_methods
1636
1721
  # @option opts [String] :filter_methods_type_hint
1637
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1722
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1638
1723
  def post_config_apache_sling_referrer_filter_with_http_info(opts = {})
1639
1724
  if @api_client.config.debugging
1640
- @api_client.config.logger.debug "Calling API: SlingApi.post_config_apache_sling_referrer_filter ..."
1725
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_apache_sling_referrer_filter ...'
1641
1726
  end
1642
1727
  # resource path
1643
- local_var_path = "/apps/system/config/org.apache.sling.security.impl.ReferrerFilter"
1728
+ local_var_path = '/apps/system/config/org.apache.sling.security.impl.ReferrerFilter'
1644
1729
 
1645
1730
  # query parameters
1646
- query_params = {}
1731
+ query_params = opts[:query_params] || {}
1647
1732
  query_params[:'allow.empty'] = opts[:'allow_empty'] if !opts[:'allow_empty'].nil?
1648
1733
  query_params[:'allow.empty@TypeHint'] = opts[:'allow_empty_type_hint'] if !opts[:'allow_empty_type_hint'].nil?
1649
1734
  query_params[:'allow.hosts'] = opts[:'allow_hosts'] if !opts[:'allow_hosts'].nil?
@@ -1654,32 +1739,94 @@ module SwaggerAemClient
1654
1739
  query_params[:'filter.methods@TypeHint'] = opts[:'filter_methods_type_hint'] if !opts[:'filter_methods_type_hint'].nil?
1655
1740
 
1656
1741
  # header parameters
1657
- header_params = {}
1658
- # HTTP header 'Accept' (if needed)
1659
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1742
+ header_params = opts[:header_params] || {}
1660
1743
 
1661
1744
  # form parameters
1662
- form_params = {}
1745
+ form_params = opts[:form_params] || {}
1663
1746
 
1664
1747
  # http body (model)
1665
- post_body = nil
1666
- auth_names = ['aemAuth']
1667
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1748
+ post_body = opts[:body]
1749
+
1750
+ # return_type
1751
+ return_type = opts[:return_type]
1752
+
1753
+ # auth_names
1754
+ auth_names = opts[:auth_names] || ['aemAuth']
1755
+
1756
+ new_options = opts.merge(
1668
1757
  :header_params => header_params,
1669
1758
  :query_params => query_params,
1670
1759
  :form_params => form_params,
1671
1760
  :body => post_body,
1672
- :auth_names => auth_names)
1761
+ :auth_names => auth_names,
1762
+ :return_type => return_type
1763
+ )
1764
+
1765
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1673
1766
  if @api_client.config.debugging
1674
1767
  @api_client.config.logger.debug "API called: SlingApi#post_config_apache_sling_referrer_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1675
1768
  end
1676
1769
  return data, status_code, headers
1677
1770
  end
1678
1771
 
1679
- #
1680
- #
1681
- # @param path
1682
- # @param name
1772
+ # @param config_node_name [String]
1773
+ # @param [Hash] opts the optional parameters
1774
+ # @return [nil]
1775
+ def post_config_property(config_node_name, opts = {})
1776
+ post_config_property_with_http_info(config_node_name, opts)
1777
+ nil
1778
+ end
1779
+
1780
+ # @param config_node_name [String]
1781
+ # @param [Hash] opts the optional parameters
1782
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1783
+ def post_config_property_with_http_info(config_node_name, opts = {})
1784
+ if @api_client.config.debugging
1785
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_config_property ...'
1786
+ end
1787
+ # verify the required parameter 'config_node_name' is set
1788
+ if @api_client.config.client_side_validation && config_node_name.nil?
1789
+ fail ArgumentError, "Missing the required parameter 'config_node_name' when calling SlingApi.post_config_property"
1790
+ end
1791
+ # resource path
1792
+ local_var_path = '/apps/system/config/{configNodeName}'.sub('{' + 'configNodeName' + '}', CGI.escape(config_node_name.to_s))
1793
+
1794
+ # query parameters
1795
+ query_params = opts[:query_params] || {}
1796
+
1797
+ # header parameters
1798
+ header_params = opts[:header_params] || {}
1799
+
1800
+ # form parameters
1801
+ form_params = opts[:form_params] || {}
1802
+
1803
+ # http body (model)
1804
+ post_body = opts[:body]
1805
+
1806
+ # return_type
1807
+ return_type = opts[:return_type]
1808
+
1809
+ # auth_names
1810
+ auth_names = opts[:auth_names] || ['aemAuth']
1811
+
1812
+ new_options = opts.merge(
1813
+ :header_params => header_params,
1814
+ :query_params => query_params,
1815
+ :form_params => form_params,
1816
+ :body => post_body,
1817
+ :auth_names => auth_names,
1818
+ :return_type => return_type
1819
+ )
1820
+
1821
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1822
+ if @api_client.config.debugging
1823
+ @api_client.config.logger.debug "API called: SlingApi#post_config_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1824
+ end
1825
+ return data, status_code, headers
1826
+ end
1827
+
1828
+ # @param path [String]
1829
+ # @param name [String]
1683
1830
  # @param [Hash] opts the optional parameters
1684
1831
  # @option opts [String] :operation
1685
1832
  # @option opts [String] :delete_authorizable
@@ -1687,21 +1834,19 @@ module SwaggerAemClient
1687
1834
  # @return [nil]
1688
1835
  def post_node(path, name, opts = {})
1689
1836
  post_node_with_http_info(path, name, opts)
1690
- return nil
1837
+ nil
1691
1838
  end
1692
1839
 
1693
- #
1694
- #
1695
- # @param path
1696
- # @param name
1840
+ # @param path [String]
1841
+ # @param name [String]
1697
1842
  # @param [Hash] opts the optional parameters
1698
1843
  # @option opts [String] :operation
1699
1844
  # @option opts [String] :delete_authorizable
1700
1845
  # @option opts [File] :file
1701
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1846
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1702
1847
  def post_node_with_http_info(path, name, opts = {})
1703
1848
  if @api_client.config.debugging
1704
- @api_client.config.logger.debug "Calling API: SlingApi.post_node ..."
1849
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_node ...'
1705
1850
  end
1706
1851
  # verify the required parameter 'path' is set
1707
1852
  if @api_client.config.client_side_validation && path.nil?
@@ -1712,61 +1857,65 @@ module SwaggerAemClient
1712
1857
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_node"
1713
1858
  end
1714
1859
  # resource path
1715
- local_var_path = "/{path}/{name}".sub('{' + 'path' + '}', path.to_s).sub('{' + 'name' + '}', name.to_s)
1860
+ local_var_path = '/{path}/{name}'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1716
1861
 
1717
1862
  # query parameters
1718
- query_params = {}
1863
+ query_params = opts[:query_params] || {}
1719
1864
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
1720
1865
  query_params[:'deleteAuthorizable'] = opts[:'delete_authorizable'] if !opts[:'delete_authorizable'].nil?
1721
1866
 
1722
1867
  # header parameters
1723
- header_params = {}
1724
- # HTTP header 'Accept' (if needed)
1725
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1868
+ header_params = opts[:header_params] || {}
1726
1869
  # HTTP header 'Content-Type'
1727
1870
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1728
1871
 
1729
1872
  # form parameters
1730
- form_params = {}
1731
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
1873
+ form_params = opts[:form_params] || {}
1874
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
1732
1875
 
1733
1876
  # http body (model)
1734
- post_body = nil
1735
- auth_names = ['aemAuth']
1736
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1877
+ post_body = opts[:body]
1878
+
1879
+ # return_type
1880
+ return_type = opts[:return_type]
1881
+
1882
+ # auth_names
1883
+ auth_names = opts[:auth_names] || ['aemAuth']
1884
+
1885
+ new_options = opts.merge(
1737
1886
  :header_params => header_params,
1738
1887
  :query_params => query_params,
1739
1888
  :form_params => form_params,
1740
1889
  :body => post_body,
1741
- :auth_names => auth_names)
1890
+ :auth_names => auth_names,
1891
+ :return_type => return_type
1892
+ )
1893
+
1894
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1742
1895
  if @api_client.config.debugging
1743
1896
  @api_client.config.logger.debug "API called: SlingApi#post_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1744
1897
  end
1745
1898
  return data, status_code, headers
1746
1899
  end
1747
1900
 
1748
- #
1749
- #
1750
- # @param path
1751
- # @param name
1901
+ # @param path [String]
1902
+ # @param name [String]
1752
1903
  # @param [Hash] opts the optional parameters
1753
1904
  # @option opts [String] :add_members
1754
1905
  # @return [nil]
1755
1906
  def post_node_rw(path, name, opts = {})
1756
1907
  post_node_rw_with_http_info(path, name, opts)
1757
- return nil
1908
+ nil
1758
1909
  end
1759
1910
 
1760
- #
1761
- #
1762
- # @param path
1763
- # @param name
1911
+ # @param path [String]
1912
+ # @param name [String]
1764
1913
  # @param [Hash] opts the optional parameters
1765
1914
  # @option opts [String] :add_members
1766
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1915
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1767
1916
  def post_node_rw_with_http_info(path, name, opts = {})
1768
1917
  if @api_client.config.debugging
1769
- @api_client.config.logger.debug "Calling API: SlingApi.post_node_rw ..."
1918
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_node_rw ...'
1770
1919
  end
1771
1920
  # verify the required parameter 'path' is set
1772
1921
  if @api_client.config.client_side_validation && path.nil?
@@ -1777,57 +1926,61 @@ module SwaggerAemClient
1777
1926
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_node_rw"
1778
1927
  end
1779
1928
  # resource path
1780
- local_var_path = "/{path}/{name}.rw.html".sub('{' + 'path' + '}', path.to_s).sub('{' + 'name' + '}', name.to_s)
1929
+ local_var_path = '/{path}/{name}.rw.html'.sub('{' + 'path' + '}', CGI.escape(path.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1781
1930
 
1782
1931
  # query parameters
1783
- query_params = {}
1932
+ query_params = opts[:query_params] || {}
1784
1933
  query_params[:'addMembers'] = opts[:'add_members'] if !opts[:'add_members'].nil?
1785
1934
 
1786
1935
  # header parameters
1787
- header_params = {}
1788
- # HTTP header 'Accept' (if needed)
1789
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
1936
+ header_params = opts[:header_params] || {}
1790
1937
 
1791
1938
  # form parameters
1792
- form_params = {}
1939
+ form_params = opts[:form_params] || {}
1793
1940
 
1794
1941
  # http body (model)
1795
- post_body = nil
1796
- auth_names = ['aemAuth']
1797
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1942
+ post_body = opts[:body]
1943
+
1944
+ # return_type
1945
+ return_type = opts[:return_type]
1946
+
1947
+ # auth_names
1948
+ auth_names = opts[:auth_names] || ['aemAuth']
1949
+
1950
+ new_options = opts.merge(
1798
1951
  :header_params => header_params,
1799
1952
  :query_params => query_params,
1800
1953
  :form_params => form_params,
1801
1954
  :body => post_body,
1802
- :auth_names => auth_names)
1955
+ :auth_names => auth_names,
1956
+ :return_type => return_type
1957
+ )
1958
+
1959
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1803
1960
  if @api_client.config.debugging
1804
1961
  @api_client.config.logger.debug "API called: SlingApi#post_node_rw\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1805
1962
  end
1806
1963
  return data, status_code, headers
1807
1964
  end
1808
1965
 
1809
- #
1810
- #
1811
- # @param path
1812
- # @param jcrprimary_type
1813
- # @param name
1966
+ # @param path [String]
1967
+ # @param jcrprimary_type [String]
1968
+ # @param name [String]
1814
1969
  # @param [Hash] opts the optional parameters
1815
1970
  # @return [nil]
1816
1971
  def post_path(path, jcrprimary_type, name, opts = {})
1817
1972
  post_path_with_http_info(path, jcrprimary_type, name, opts)
1818
- return nil
1973
+ nil
1819
1974
  end
1820
1975
 
1821
- #
1822
- #
1823
- # @param path
1824
- # @param jcrprimary_type
1825
- # @param name
1976
+ # @param path [String]
1977
+ # @param jcrprimary_type [String]
1978
+ # @param name [String]
1826
1979
  # @param [Hash] opts the optional parameters
1827
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1980
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1828
1981
  def post_path_with_http_info(path, jcrprimary_type, name, opts = {})
1829
1982
  if @api_client.config.debugging
1830
- @api_client.config.logger.debug "Calling API: SlingApi.post_path ..."
1983
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_path ...'
1831
1984
  end
1832
1985
  # verify the required parameter 'path' is set
1833
1986
  if @api_client.config.client_side_validation && path.nil?
@@ -1842,60 +1995,64 @@ module SwaggerAemClient
1842
1995
  fail ArgumentError, "Missing the required parameter 'name' when calling SlingApi.post_path"
1843
1996
  end
1844
1997
  # resource path
1845
- local_var_path = "/{path}/".sub('{' + 'path' + '}', path.to_s)
1998
+ local_var_path = '/{path}/'.sub('{' + 'path' + '}', CGI.escape(path.to_s))
1846
1999
 
1847
2000
  # query parameters
1848
- query_params = {}
2001
+ query_params = opts[:query_params] || {}
1849
2002
  query_params[:'jcr:primaryType'] = jcrprimary_type
1850
2003
  query_params[:':name'] = name
1851
2004
 
1852
2005
  # header parameters
1853
- header_params = {}
1854
- # HTTP header 'Accept' (if needed)
1855
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2006
+ header_params = opts[:header_params] || {}
1856
2007
 
1857
2008
  # form parameters
1858
- form_params = {}
2009
+ form_params = opts[:form_params] || {}
1859
2010
 
1860
2011
  # http body (model)
1861
- post_body = nil
1862
- auth_names = ['aemAuth']
1863
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2012
+ post_body = opts[:body]
2013
+
2014
+ # return_type
2015
+ return_type = opts[:return_type]
2016
+
2017
+ # auth_names
2018
+ auth_names = opts[:auth_names] || ['aemAuth']
2019
+
2020
+ new_options = opts.merge(
1864
2021
  :header_params => header_params,
1865
2022
  :query_params => query_params,
1866
2023
  :form_params => form_params,
1867
2024
  :body => post_body,
1868
- :auth_names => auth_names)
2025
+ :auth_names => auth_names,
2026
+ :return_type => return_type
2027
+ )
2028
+
2029
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1869
2030
  if @api_client.config.debugging
1870
2031
  @api_client.config.logger.debug "API called: SlingApi#post_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1871
2032
  end
1872
2033
  return data, status_code, headers
1873
2034
  end
1874
2035
 
1875
- #
1876
- #
1877
- # @param path
1878
- # @param p_limit
1879
- # @param _1_property
1880
- # @param _1_property_value
2036
+ # @param path [String]
2037
+ # @param p_limit [Float]
2038
+ # @param _1_property [String]
2039
+ # @param _1_property_value [String]
1881
2040
  # @param [Hash] opts the optional parameters
1882
2041
  # @return [String]
1883
2042
  def post_query(path, p_limit, _1_property, _1_property_value, opts = {})
1884
2043
  data, _status_code, _headers = post_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts)
1885
- return data
2044
+ data
1886
2045
  end
1887
2046
 
1888
- #
1889
- #
1890
- # @param path
1891
- # @param p_limit
1892
- # @param _1_property
1893
- # @param _1_property_value
2047
+ # @param path [String]
2048
+ # @param p_limit [Float]
2049
+ # @param _1_property [String]
2050
+ # @param _1_property_value [String]
1894
2051
  # @param [Hash] opts the optional parameters
1895
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2052
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1896
2053
  def post_query_with_http_info(path, p_limit, _1_property, _1_property_value, opts = {})
1897
2054
  if @api_client.config.debugging
1898
- @api_client.config.logger.debug "Calling API: SlingApi.post_query ..."
2055
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_query ...'
1899
2056
  end
1900
2057
  # verify the required parameter 'path' is set
1901
2058
  if @api_client.config.client_side_validation && path.nil?
@@ -1914,61 +2071,66 @@ module SwaggerAemClient
1914
2071
  fail ArgumentError, "Missing the required parameter '_1_property_value' when calling SlingApi.post_query"
1915
2072
  end
1916
2073
  # resource path
1917
- local_var_path = "/bin/querybuilder.json"
2074
+ local_var_path = '/bin/querybuilder.json'
1918
2075
 
1919
2076
  # query parameters
1920
- query_params = {}
2077
+ query_params = opts[:query_params] || {}
1921
2078
  query_params[:'path'] = path
1922
2079
  query_params[:'p.limit'] = p_limit
1923
2080
  query_params[:'1_property'] = _1_property
1924
2081
  query_params[:'1_property.value'] = _1_property_value
1925
2082
 
1926
2083
  # header parameters
1927
- header_params = {}
2084
+ header_params = opts[:header_params] || {}
1928
2085
  # HTTP header 'Accept' (if needed)
1929
2086
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1930
2087
 
1931
2088
  # form parameters
1932
- form_params = {}
2089
+ form_params = opts[:form_params] || {}
1933
2090
 
1934
2091
  # http body (model)
1935
- post_body = nil
1936
- auth_names = ['aemAuth']
1937
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2092
+ post_body = opts[:body]
2093
+
2094
+ # return_type
2095
+ return_type = opts[:return_type] || 'String'
2096
+
2097
+ # auth_names
2098
+ auth_names = opts[:auth_names] || ['aemAuth']
2099
+
2100
+ new_options = opts.merge(
1938
2101
  :header_params => header_params,
1939
2102
  :query_params => query_params,
1940
2103
  :form_params => form_params,
1941
2104
  :body => post_body,
1942
2105
  :auth_names => auth_names,
1943
- :return_type => 'String')
2106
+ :return_type => return_type
2107
+ )
2108
+
2109
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1944
2110
  if @api_client.config.debugging
1945
2111
  @api_client.config.logger.debug "API called: SlingApi#post_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1946
2112
  end
1947
2113
  return data, status_code, headers
1948
2114
  end
1949
2115
 
1950
- #
1951
- #
1952
- # @param ignoredeactivated
1953
- # @param onlymodified
1954
- # @param path
2116
+ # @param ignoredeactivated [Boolean]
2117
+ # @param onlymodified [Boolean]
2118
+ # @param path [String]
1955
2119
  # @param [Hash] opts the optional parameters
1956
2120
  # @return [nil]
1957
2121
  def post_tree_activation(ignoredeactivated, onlymodified, path, opts = {})
1958
2122
  post_tree_activation_with_http_info(ignoredeactivated, onlymodified, path, opts)
1959
- return nil
2123
+ nil
1960
2124
  end
1961
2125
 
1962
- #
1963
- #
1964
- # @param ignoredeactivated
1965
- # @param onlymodified
1966
- # @param path
2126
+ # @param ignoredeactivated [Boolean]
2127
+ # @param onlymodified [Boolean]
2128
+ # @param path [String]
1967
2129
  # @param [Hash] opts the optional parameters
1968
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2130
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1969
2131
  def post_tree_activation_with_http_info(ignoredeactivated, onlymodified, path, opts = {})
1970
2132
  if @api_client.config.debugging
1971
- @api_client.config.logger.debug "Calling API: SlingApi.post_tree_activation ..."
2133
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_tree_activation ...'
1972
2134
  end
1973
2135
  # verify the required parameter 'ignoredeactivated' is set
1974
2136
  if @api_client.config.client_side_validation && ignoredeactivated.nil?
@@ -1983,39 +2145,45 @@ module SwaggerAemClient
1983
2145
  fail ArgumentError, "Missing the required parameter 'path' when calling SlingApi.post_tree_activation"
1984
2146
  end
1985
2147
  # resource path
1986
- local_var_path = "/etc/replication/treeactivation.html"
2148
+ local_var_path = '/etc/replication/treeactivation.html'
1987
2149
 
1988
2150
  # query parameters
1989
- query_params = {}
2151
+ query_params = opts[:query_params] || {}
1990
2152
  query_params[:'ignoredeactivated'] = ignoredeactivated
1991
2153
  query_params[:'onlymodified'] = onlymodified
1992
2154
  query_params[:'path'] = path
1993
2155
 
1994
2156
  # header parameters
1995
- header_params = {}
1996
- # HTTP header 'Accept' (if needed)
1997
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2157
+ header_params = opts[:header_params] || {}
1998
2158
 
1999
2159
  # form parameters
2000
- form_params = {}
2160
+ form_params = opts[:form_params] || {}
2001
2161
 
2002
2162
  # http body (model)
2003
- post_body = nil
2004
- auth_names = ['aemAuth']
2005
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2163
+ post_body = opts[:body]
2164
+
2165
+ # return_type
2166
+ return_type = opts[:return_type]
2167
+
2168
+ # auth_names
2169
+ auth_names = opts[:auth_names] || ['aemAuth']
2170
+
2171
+ new_options = opts.merge(
2006
2172
  :header_params => header_params,
2007
2173
  :query_params => query_params,
2008
2174
  :form_params => form_params,
2009
2175
  :body => post_body,
2010
- :auth_names => auth_names)
2176
+ :auth_names => auth_names,
2177
+ :return_type => return_type
2178
+ )
2179
+
2180
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2011
2181
  if @api_client.config.debugging
2012
2182
  @api_client.config.logger.debug "API called: SlingApi#post_tree_activation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2013
2183
  end
2014
2184
  return data, status_code, headers
2015
2185
  end
2016
2186
 
2017
- #
2018
- #
2019
2187
  # @param [Hash] opts the optional parameters
2020
2188
  # @option opts [String] :operation
2021
2189
  # @option opts [String] :new_password
@@ -2026,11 +2194,9 @@ module SwaggerAemClient
2026
2194
  # @return [String]
2027
2195
  def post_truststore(opts = {})
2028
2196
  data, _status_code, _headers = post_truststore_with_http_info(opts)
2029
- return data
2197
+ data
2030
2198
  end
2031
2199
 
2032
- #
2033
- #
2034
2200
  # @param [Hash] opts the optional parameters
2035
2201
  # @option opts [String] :operation
2036
2202
  # @option opts [String] :new_password
@@ -2038,16 +2204,16 @@ module SwaggerAemClient
2038
2204
  # @option opts [String] :key_store_type
2039
2205
  # @option opts [String] :remove_alias
2040
2206
  # @option opts [File] :certificate
2041
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2207
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2042
2208
  def post_truststore_with_http_info(opts = {})
2043
2209
  if @api_client.config.debugging
2044
- @api_client.config.logger.debug "Calling API: SlingApi.post_truststore ..."
2210
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_truststore ...'
2045
2211
  end
2046
2212
  # resource path
2047
- local_var_path = "/libs/granite/security/post/truststore"
2213
+ local_var_path = '/libs/granite/security/post/truststore'
2048
2214
 
2049
2215
  # query parameters
2050
- query_params = {}
2216
+ query_params = opts[:query_params] || {}
2051
2217
  query_params[:':operation'] = opts[:'operation'] if !opts[:'operation'].nil?
2052
2218
  query_params[:'newPassword'] = opts[:'new_password'] if !opts[:'new_password'].nil?
2053
2219
  query_params[:'rePassword'] = opts[:'re_password'] if !opts[:'re_password'].nil?
@@ -2055,78 +2221,92 @@ module SwaggerAemClient
2055
2221
  query_params[:'removeAlias'] = opts[:'remove_alias'] if !opts[:'remove_alias'].nil?
2056
2222
 
2057
2223
  # header parameters
2058
- header_params = {}
2224
+ header_params = opts[:header_params] || {}
2059
2225
  # HTTP header 'Accept' (if needed)
2060
2226
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2061
2227
  # HTTP header 'Content-Type'
2062
2228
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2063
2229
 
2064
2230
  # form parameters
2065
- form_params = {}
2066
- form_params["certificate"] = opts[:'certificate'] if !opts[:'certificate'].nil?
2231
+ form_params = opts[:form_params] || {}
2232
+ form_params['certificate'] = opts[:'certificate'] if !opts[:'certificate'].nil?
2067
2233
 
2068
2234
  # http body (model)
2069
- post_body = nil
2070
- auth_names = ['aemAuth']
2071
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2235
+ post_body = opts[:body]
2236
+
2237
+ # return_type
2238
+ return_type = opts[:return_type] || 'String'
2239
+
2240
+ # auth_names
2241
+ auth_names = opts[:auth_names] || ['aemAuth']
2242
+
2243
+ new_options = opts.merge(
2072
2244
  :header_params => header_params,
2073
2245
  :query_params => query_params,
2074
2246
  :form_params => form_params,
2075
2247
  :body => post_body,
2076
2248
  :auth_names => auth_names,
2077
- :return_type => 'String')
2249
+ :return_type => return_type
2250
+ )
2251
+
2252
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2078
2253
  if @api_client.config.debugging
2079
2254
  @api_client.config.logger.debug "API called: SlingApi#post_truststore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2080
2255
  end
2081
2256
  return data, status_code, headers
2082
2257
  end
2083
2258
 
2084
- #
2085
- #
2086
2259
  # @param [Hash] opts the optional parameters
2087
2260
  # @option opts [File] :truststore_p12
2088
2261
  # @return [String]
2089
2262
  def post_truststore_pkcs12(opts = {})
2090
2263
  data, _status_code, _headers = post_truststore_pkcs12_with_http_info(opts)
2091
- return data
2264
+ data
2092
2265
  end
2093
2266
 
2094
- #
2095
- #
2096
2267
  # @param [Hash] opts the optional parameters
2097
2268
  # @option opts [File] :truststore_p12
2098
- # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
2269
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2099
2270
  def post_truststore_pkcs12_with_http_info(opts = {})
2100
2271
  if @api_client.config.debugging
2101
- @api_client.config.logger.debug "Calling API: SlingApi.post_truststore_pkcs12 ..."
2272
+ @api_client.config.logger.debug 'Calling API: SlingApi.post_truststore_pkcs12 ...'
2102
2273
  end
2103
2274
  # resource path
2104
- local_var_path = "/etc/truststore"
2275
+ local_var_path = '/etc/truststore'
2105
2276
 
2106
2277
  # query parameters
2107
- query_params = {}
2278
+ query_params = opts[:query_params] || {}
2108
2279
 
2109
2280
  # header parameters
2110
- header_params = {}
2281
+ header_params = opts[:header_params] || {}
2111
2282
  # HTTP header 'Accept' (if needed)
2112
2283
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2113
2284
  # HTTP header 'Content-Type'
2114
2285
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2115
2286
 
2116
2287
  # form parameters
2117
- form_params = {}
2118
- form_params["truststore.p12"] = opts[:'truststore_p12'] if !opts[:'truststore_p12'].nil?
2288
+ form_params = opts[:form_params] || {}
2289
+ form_params['truststore.p12'] = opts[:'truststore_p12'] if !opts[:'truststore_p12'].nil?
2119
2290
 
2120
2291
  # http body (model)
2121
- post_body = nil
2122
- auth_names = ['aemAuth']
2123
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2292
+ post_body = opts[:body]
2293
+
2294
+ # return_type
2295
+ return_type = opts[:return_type] || 'String'
2296
+
2297
+ # auth_names
2298
+ auth_names = opts[:auth_names] || ['aemAuth']
2299
+
2300
+ new_options = opts.merge(
2124
2301
  :header_params => header_params,
2125
2302
  :query_params => query_params,
2126
2303
  :form_params => form_params,
2127
2304
  :body => post_body,
2128
2305
  :auth_names => auth_names,
2129
- :return_type => 'String')
2306
+ :return_type => return_type
2307
+ )
2308
+
2309
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2130
2310
  if @api_client.config.debugging
2131
2311
  @api_client.config.logger.debug "API called: SlingApi#post_truststore_pkcs12\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2132
2312
  end