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
@@ -1,9 +1,19 @@
1
1
  # SwaggerAemClient::TruststoreInfo
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **aliases** | [**Array<TruststoreItems>**](TruststoreItems.md) | | [optional]
7
- **exists** | **BOOLEAN** | False if truststore don't exist | [optional]
8
+ **exists** | **Boolean** | False if truststore don't exist | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'SwaggerAemClient'
14
+
15
+ instance = SwaggerAemClient::TruststoreInfo.new(aliases: null,
16
+ exists: null)
17
+ ```
8
18
 
9
19
 
@@ -1,6 +1,7 @@
1
1
  # SwaggerAemClient::TruststoreItems
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **_alias** | **String** | Truststore alias name | [optional]
@@ -11,4 +12,18 @@ Name | Type | Description | Notes
11
12
  **not_after** | **String** | e.g. \"Sun Jun 30 23:59:50 AEST 2019\" | [optional]
12
13
  **serial_number** | **Integer** | 18165099476682912368 | [optional]
13
14
 
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'SwaggerAemClient'
19
+
20
+ instance = SwaggerAemClient::TruststoreItems.new(_alias: null,
21
+ entry_type: null,
22
+ subject: null,
23
+ issuer: null,
24
+ not_before: null,
25
+ not_after: null,
26
+ serial_number: null)
27
+ ```
28
+
14
29
 
@@ -1,14 +1,17 @@
1
1
  #!/bin/sh
2
- #
3
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
- #
5
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
3
  #
7
- # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
8
5
 
9
6
  git_user_id=$1
10
7
  git_repo_id=$2
11
8
  release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
12
15
 
13
16
  if [ "$git_user_id" = "" ]; then
14
17
  git_user_id="GIT_USER_ID"
@@ -39,10 +42,10 @@ git_remote=`git remote`
39
42
  if [ "$git_remote" = "" ]; then # git remote not defined
40
43
 
41
44
  if [ "$GIT_TOKEN" = "" ]; then
42
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
44
47
  else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
46
49
  fi
47
50
 
48
51
  fi
@@ -50,6 +53,6 @@ fi
50
53
  git pull origin master
51
54
 
52
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
54
57
  git push origin master 2>&1 | grep -v 'To https'
55
58
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
5
5
 
6
- OpenAPI spec version: 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
 
@@ -17,6 +17,12 @@ require 'swagger_aem/version'
17
17
  require 'swagger_aem/configuration'
18
18
 
19
19
  # Models
20
+ require 'swagger_aem/models/inline_object'
21
+ require 'swagger_aem/models/inline_object1'
22
+ require 'swagger_aem/models/inline_object2'
23
+ require 'swagger_aem/models/inline_object3'
24
+ require 'swagger_aem/models/inline_object4'
25
+ require 'swagger_aem/models/inline_object5'
20
26
  require 'swagger_aem/models/install_status'
21
27
  require 'swagger_aem/models/install_status_status'
22
28
  require 'swagger_aem/models/keystore_chain_items'
@@ -36,6 +42,7 @@ require 'swagger_aem/api/console_api'
36
42
  require 'swagger_aem/api/cq_api'
37
43
  require 'swagger_aem/api/crx_api'
38
44
  require 'swagger_aem/api/custom_api'
45
+ require 'swagger_aem/api/granite_api'
39
46
  require 'swagger_aem/api/sling_api'
40
47
 
41
48
  module SwaggerAemClient
@@ -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 ConsoleApi
@@ -19,74 +19,126 @@ module SwaggerAemClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
- #
25
22
  # @param [Hash] opts the optional parameters
26
23
  # @return [Array<String>]
27
24
  def get_aem_product_info(opts = {})
28
25
  data, _status_code, _headers = get_aem_product_info_with_http_info(opts)
29
- return data
26
+ data
30
27
  end
31
28
 
32
- #
33
- #
34
29
  # @param [Hash] opts the optional parameters
35
- # @return [Array<(Array<String>, Fixnum, Hash)>] Array<String> data, response status code and response headers
30
+ # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
36
31
  def get_aem_product_info_with_http_info(opts = {})
37
32
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: ConsoleApi.get_aem_product_info ..."
33
+ @api_client.config.logger.debug 'Calling API: ConsoleApi.get_aem_product_info ...'
39
34
  end
40
35
  # resource path
41
- local_var_path = "/system/console/status-productinfo.json"
36
+ local_var_path = '/system/console/status-productinfo.json'
42
37
 
43
38
  # query parameters
44
- query_params = {}
39
+ query_params = opts[:query_params] || {}
45
40
 
46
41
  # header parameters
47
- header_params = {}
42
+ header_params = opts[:header_params] || {}
48
43
  # HTTP header 'Accept' (if needed)
49
44
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
45
 
51
46
  # form parameters
52
- form_params = {}
47
+ form_params = opts[:form_params] || {}
53
48
 
54
49
  # http body (model)
55
- post_body = nil
56
- auth_names = ['aemAuth']
57
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type] || 'Array<String>'
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || ['aemAuth']
57
+
58
+ new_options = opts.merge(
58
59
  :header_params => header_params,
59
60
  :query_params => query_params,
60
61
  :form_params => form_params,
61
62
  :body => post_body,
62
63
  :auth_names => auth_names,
63
- :return_type => 'Array<String>')
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
64
68
  if @api_client.config.debugging
65
69
  @api_client.config.logger.debug "API called: ConsoleApi#get_aem_product_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
66
70
  end
67
71
  return data, status_code, headers
68
72
  end
69
73
 
70
- #
71
- #
72
- # @param name
73
- # @param action
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [String]
76
+ def get_config_mgr(opts = {})
77
+ data, _status_code, _headers = get_config_mgr_with_http_info(opts)
78
+ data
79
+ end
80
+
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
83
+ def get_config_mgr_with_http_info(opts = {})
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug 'Calling API: ConsoleApi.get_config_mgr ...'
86
+ end
87
+ # resource path
88
+ local_var_path = '/system/console/configMgr'
89
+
90
+ # query parameters
91
+ query_params = opts[:query_params] || {}
92
+
93
+ # header parameters
94
+ header_params = opts[:header_params] || {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
97
+
98
+ # form parameters
99
+ form_params = opts[:form_params] || {}
100
+
101
+ # http body (model)
102
+ post_body = opts[:body]
103
+
104
+ # return_type
105
+ return_type = opts[:return_type] || 'String'
106
+
107
+ # auth_names
108
+ auth_names = opts[:auth_names] || ['aemAuth']
109
+
110
+ new_options = opts.merge(
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: ConsoleApi#get_config_mgr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+
126
+ # @param name [String]
127
+ # @param action [String]
74
128
  # @param [Hash] opts the optional parameters
75
129
  # @return [nil]
76
130
  def post_bundle(name, action, opts = {})
77
131
  post_bundle_with_http_info(name, action, opts)
78
- return nil
132
+ nil
79
133
  end
80
134
 
81
- #
82
- #
83
- # @param name
84
- # @param action
135
+ # @param name [String]
136
+ # @param action [String]
85
137
  # @param [Hash] opts the optional parameters
86
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
138
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
87
139
  def post_bundle_with_http_info(name, action, opts = {})
88
140
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "Calling API: ConsoleApi.post_bundle ..."
141
+ @api_client.config.logger.debug 'Calling API: ConsoleApi.post_bundle ...'
90
142
  end
91
143
  # verify the required parameter 'name' is set
92
144
  if @api_client.config.client_side_validation && name.nil?
@@ -97,114 +149,124 @@ module SwaggerAemClient
97
149
  fail ArgumentError, "Missing the required parameter 'action' when calling ConsoleApi.post_bundle"
98
150
  end
99
151
  # resource path
100
- local_var_path = "/system/console/bundles/{name}".sub('{' + 'name' + '}', name.to_s)
152
+ local_var_path = '/system/console/bundles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
101
153
 
102
154
  # query parameters
103
- query_params = {}
155
+ query_params = opts[:query_params] || {}
104
156
  query_params[:'action'] = action
105
157
 
106
158
  # header parameters
107
- header_params = {}
108
- # HTTP header 'Accept' (if needed)
109
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
159
+ header_params = opts[:header_params] || {}
110
160
 
111
161
  # form parameters
112
- form_params = {}
162
+ form_params = opts[:form_params] || {}
113
163
 
114
164
  # http body (model)
115
- post_body = nil
116
- auth_names = ['aemAuth']
117
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
165
+ post_body = opts[:body]
166
+
167
+ # return_type
168
+ return_type = opts[:return_type]
169
+
170
+ # auth_names
171
+ auth_names = opts[:auth_names] || ['aemAuth']
172
+
173
+ new_options = opts.merge(
118
174
  :header_params => header_params,
119
175
  :query_params => query_params,
120
176
  :form_params => form_params,
121
177
  :body => post_body,
122
- :auth_names => auth_names)
178
+ :auth_names => auth_names,
179
+ :return_type => return_type
180
+ )
181
+
182
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
123
183
  if @api_client.config.debugging
124
184
  @api_client.config.logger.debug "API called: ConsoleApi#post_bundle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
125
185
  end
126
186
  return data, status_code, headers
127
187
  end
128
188
 
129
- #
130
- #
131
- # @param action
189
+ # @param action [String]
132
190
  # @param [Hash] opts the optional parameters
133
191
  # @return [nil]
134
192
  def post_jmx_repository(action, opts = {})
135
193
  post_jmx_repository_with_http_info(action, opts)
136
- return nil
194
+ nil
137
195
  end
138
196
 
139
- #
140
- #
141
- # @param action
197
+ # @param action [String]
142
198
  # @param [Hash] opts the optional parameters
143
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
199
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
144
200
  def post_jmx_repository_with_http_info(action, opts = {})
145
201
  if @api_client.config.debugging
146
- @api_client.config.logger.debug "Calling API: ConsoleApi.post_jmx_repository ..."
202
+ @api_client.config.logger.debug 'Calling API: ConsoleApi.post_jmx_repository ...'
147
203
  end
148
204
  # verify the required parameter 'action' is set
149
205
  if @api_client.config.client_side_validation && action.nil?
150
206
  fail ArgumentError, "Missing the required parameter 'action' when calling ConsoleApi.post_jmx_repository"
151
207
  end
152
208
  # resource path
153
- local_var_path = "/system/console/jmx/com.adobe.granite:type=Repository/op/{action}".sub('{' + 'action' + '}', action.to_s)
209
+ local_var_path = '/system/console/jmx/com.adobe.granite:type=Repository/op/{action}'.sub('{' + 'action' + '}', CGI.escape(action.to_s))
154
210
 
155
211
  # query parameters
156
- query_params = {}
212
+ query_params = opts[:query_params] || {}
157
213
 
158
214
  # header parameters
159
- header_params = {}
160
- # HTTP header 'Accept' (if needed)
161
- header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
215
+ header_params = opts[:header_params] || {}
162
216
 
163
217
  # form parameters
164
- form_params = {}
218
+ form_params = opts[:form_params] || {}
165
219
 
166
220
  # http body (model)
167
- post_body = nil
168
- auth_names = ['aemAuth']
169
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
221
+ post_body = opts[:body]
222
+
223
+ # return_type
224
+ return_type = opts[:return_type]
225
+
226
+ # auth_names
227
+ auth_names = opts[:auth_names] || ['aemAuth']
228
+
229
+ new_options = opts.merge(
170
230
  :header_params => header_params,
171
231
  :query_params => query_params,
172
232
  :form_params => form_params,
173
233
  :body => post_body,
174
- :auth_names => auth_names)
234
+ :auth_names => auth_names,
235
+ :return_type => return_type
236
+ )
237
+
238
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
175
239
  if @api_client.config.debugging
176
240
  @api_client.config.logger.debug "API called: ConsoleApi#post_jmx_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
241
  end
178
242
  return data, status_code, headers
179
243
  end
180
244
 
181
- #
182
- #
183
245
  # @param [Hash] opts the optional parameters
184
- # @option opts [BOOLEAN] :post
185
- # @option opts [BOOLEAN] :apply
186
- # @option opts [BOOLEAN] :delete
246
+ # @option opts [Boolean] :post
247
+ # @option opts [Boolean] :apply
248
+ # @option opts [Boolean] :delete
187
249
  # @option opts [String] :action
188
250
  # @option opts [String] :location
189
251
  # @option opts [Array<String>] :path
190
252
  # @option opts [Integer] :service_ranking
191
253
  # @option opts [String] :idp_url
192
254
  # @option opts [String] :idp_cert_alias
193
- # @option opts [BOOLEAN] :idp_http_redirect
255
+ # @option opts [Boolean] :idp_http_redirect
194
256
  # @option opts [String] :service_provider_entity_id
195
257
  # @option opts [String] :assertion_consumer_service_url
196
258
  # @option opts [String] :sp_private_key_alias
197
259
  # @option opts [String] :key_store_password
198
260
  # @option opts [String] :default_redirect_url
199
261
  # @option opts [String] :user_id_attribute
200
- # @option opts [BOOLEAN] :use_encryption
201
- # @option opts [BOOLEAN] :create_user
202
- # @option opts [BOOLEAN] :add_group_memberships
262
+ # @option opts [Boolean] :use_encryption
263
+ # @option opts [Boolean] :create_user
264
+ # @option opts [Boolean] :add_group_memberships
203
265
  # @option opts [String] :group_membership_attribute
204
266
  # @option opts [Array<String>] :default_groups
205
267
  # @option opts [String] :name_id_format
206
268
  # @option opts [Array<String>] :synchronize_attributes
207
- # @option opts [BOOLEAN] :handle_logout
269
+ # @option opts [Boolean] :handle_logout
208
270
  # @option opts [String] :logout_url
209
271
  # @option opts [Integer] :clock_tolerance
210
272
  # @option opts [String] :digest_method
@@ -214,52 +276,50 @@ module SwaggerAemClient
214
276
  # @return [SamlConfigurationInfo]
215
277
  def post_saml_configuration(opts = {})
216
278
  data, _status_code, _headers = post_saml_configuration_with_http_info(opts)
217
- return data
279
+ data
218
280
  end
219
281
 
220
- #
221
- #
222
282
  # @param [Hash] opts the optional parameters
223
- # @option opts [BOOLEAN] :post
224
- # @option opts [BOOLEAN] :apply
225
- # @option opts [BOOLEAN] :delete
283
+ # @option opts [Boolean] :post
284
+ # @option opts [Boolean] :apply
285
+ # @option opts [Boolean] :delete
226
286
  # @option opts [String] :action
227
287
  # @option opts [String] :location
228
288
  # @option opts [Array<String>] :path
229
289
  # @option opts [Integer] :service_ranking
230
290
  # @option opts [String] :idp_url
231
291
  # @option opts [String] :idp_cert_alias
232
- # @option opts [BOOLEAN] :idp_http_redirect
292
+ # @option opts [Boolean] :idp_http_redirect
233
293
  # @option opts [String] :service_provider_entity_id
234
294
  # @option opts [String] :assertion_consumer_service_url
235
295
  # @option opts [String] :sp_private_key_alias
236
296
  # @option opts [String] :key_store_password
237
297
  # @option opts [String] :default_redirect_url
238
298
  # @option opts [String] :user_id_attribute
239
- # @option opts [BOOLEAN] :use_encryption
240
- # @option opts [BOOLEAN] :create_user
241
- # @option opts [BOOLEAN] :add_group_memberships
299
+ # @option opts [Boolean] :use_encryption
300
+ # @option opts [Boolean] :create_user
301
+ # @option opts [Boolean] :add_group_memberships
242
302
  # @option opts [String] :group_membership_attribute
243
303
  # @option opts [Array<String>] :default_groups
244
304
  # @option opts [String] :name_id_format
245
305
  # @option opts [Array<String>] :synchronize_attributes
246
- # @option opts [BOOLEAN] :handle_logout
306
+ # @option opts [Boolean] :handle_logout
247
307
  # @option opts [String] :logout_url
248
308
  # @option opts [Integer] :clock_tolerance
249
309
  # @option opts [String] :digest_method
250
310
  # @option opts [String] :signature_method
251
311
  # @option opts [String] :user_intermediate_path
252
312
  # @option opts [Array<String>] :propertylist
253
- # @return [Array<(SamlConfigurationInfo, Fixnum, Hash)>] SamlConfigurationInfo data, response status code and response headers
313
+ # @return [Array<(SamlConfigurationInfo, Integer, Hash)>] SamlConfigurationInfo data, response status code and response headers
254
314
  def post_saml_configuration_with_http_info(opts = {})
255
315
  if @api_client.config.debugging
256
- @api_client.config.logger.debug "Calling API: ConsoleApi.post_saml_configuration ..."
316
+ @api_client.config.logger.debug 'Calling API: ConsoleApi.post_saml_configuration ...'
257
317
  end
258
318
  # resource path
259
- local_var_path = "/system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler"
319
+ local_var_path = '/system/console/configMgr/com.adobe.granite.auth.saml.SamlAuthenticationHandler'
260
320
 
261
321
  # query parameters
262
- query_params = {}
322
+ query_params = opts[:query_params] || {}
263
323
  query_params[:'post'] = opts[:'post'] if !opts[:'post'].nil?
264
324
  query_params[:'apply'] = opts[:'apply'] if !opts[:'apply'].nil?
265
325
  query_params[:'delete'] = opts[:'delete'] if !opts[:'delete'].nil?
@@ -292,23 +352,32 @@ module SwaggerAemClient
292
352
  query_params[:'propertylist'] = @api_client.build_collection_param(opts[:'propertylist'], :csv) if !opts[:'propertylist'].nil?
293
353
 
294
354
  # header parameters
295
- header_params = {}
355
+ header_params = opts[:header_params] || {}
296
356
  # HTTP header 'Accept' (if needed)
297
357
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
298
358
 
299
359
  # form parameters
300
- form_params = {}
360
+ form_params = opts[:form_params] || {}
301
361
 
302
362
  # http body (model)
303
- post_body = nil
304
- auth_names = ['aemAuth']
305
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
363
+ post_body = opts[:body]
364
+
365
+ # return_type
366
+ return_type = opts[:return_type] || 'SamlConfigurationInfo'
367
+
368
+ # auth_names
369
+ auth_names = opts[:auth_names] || ['aemAuth']
370
+
371
+ new_options = opts.merge(
306
372
  :header_params => header_params,
307
373
  :query_params => query_params,
308
374
  :form_params => form_params,
309
375
  :body => post_body,
310
376
  :auth_names => auth_names,
311
- :return_type => 'SamlConfigurationInfo')
377
+ :return_type => return_type
378
+ )
379
+
380
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
312
381
  if @api_client.config.debugging
313
382
  @api_client.config.logger.debug "API called: ConsoleApi#post_saml_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
314
383
  end