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.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +47 -46
- data/README.md +20 -9
- data/Rakefile +2 -0
- data/docs/ConsoleApi.md +107 -58
- data/docs/CqApi.md +14 -13
- data/docs/CrxApi.md +60 -60
- data/docs/CustomApi.md +27 -24
- data/docs/GraniteApi.md +75 -0
- data/docs/InlineObject.md +17 -0
- data/docs/InlineObject1.md +17 -0
- data/docs/InlineObject2.md +17 -0
- data/docs/InlineObject3.md +17 -0
- data/docs/InlineObject4.md +21 -0
- data/docs/InlineObject5.md +19 -0
- data/docs/InstallStatus.md +9 -0
- data/docs/InstallStatusStatus.md +11 -1
- data/docs/KeystoreChainItems.md +13 -0
- data/docs/KeystoreInfo.md +11 -1
- data/docs/KeystoreItems.md +13 -0
- data/docs/SamlConfigurationInfo.md +15 -1
- data/docs/SamlConfigurationProperties.md +56 -24
- data/docs/SamlConfigurationPropertyItemsArray.md +16 -2
- data/docs/SamlConfigurationPropertyItemsBoolean.md +17 -3
- data/docs/SamlConfigurationPropertyItemsLong.md +17 -3
- data/docs/SamlConfigurationPropertyItemsString.md +17 -3
- data/docs/SlingApi.md +482 -445
- data/docs/TruststoreInfo.md +11 -1
- data/docs/TruststoreItems.md +15 -0
- data/git_push.sh +11 -8
- data/lib/swagger_aem.rb +10 -3
- data/lib/swagger_aem/api/console_api.rb +160 -91
- data/lib/swagger_aem/api/cq_api.rb +49 -41
- data/lib/swagger_aem/api/crx_api.rb +170 -135
- data/lib/swagger_aem/api/custom_api.rb +68 -56
- data/lib/swagger_aem/api/granite_api.rb +124 -0
- data/lib/swagger_aem/api/sling_api.rb +900 -720
- data/lib/swagger_aem/api_client.rb +53 -54
- data/lib/swagger_aem/api_error.rb +22 -3
- data/lib/swagger_aem/configuration.rb +49 -10
- data/lib/swagger_aem/models/inline_object.rb +206 -0
- data/lib/swagger_aem/models/inline_object1.rb +206 -0
- data/lib/swagger_aem/models/inline_object2.rb +206 -0
- data/lib/swagger_aem/models/inline_object3.rb +206 -0
- data/lib/swagger_aem/models/inline_object4.rb +224 -0
- data/lib/swagger_aem/models/inline_object5.rb +215 -0
- data/lib/swagger_aem/models/install_status.rb +43 -25
- data/lib/swagger_aem/models/install_status_status.rb +46 -28
- data/lib/swagger_aem/models/keystore_chain_items.rb +50 -32
- data/lib/swagger_aem/models/keystore_info.rb +45 -27
- data/lib/swagger_aem/models/keystore_items.rb +49 -31
- data/lib/swagger_aem/models/saml_configuration_info.rb +49 -31
- data/lib/swagger_aem/models/saml_configuration_properties.rb +114 -168
- data/lib/swagger_aem/models/saml_configuration_property_items_array.rb +50 -32
- data/lib/swagger_aem/models/saml_configuration_property_items_boolean.rb +56 -38
- data/lib/swagger_aem/models/saml_configuration_property_items_long.rb +56 -38
- data/lib/swagger_aem/models/saml_configuration_property_items_string.rb +56 -38
- data/lib/swagger_aem/models/truststore_info.rb +45 -27
- data/lib/swagger_aem/models/truststore_items.rb +54 -36
- data/lib/swagger_aem/version.rb +4 -4
- data/spec/api/console_api_spec.rb +17 -16
- data/spec/api/cq_api_spec.rb +6 -10
- data/spec/api/crx_api_spec.rb +11 -25
- data/spec/api/custom_api_spec.rb +7 -13
- data/spec/api/granite_api_spec.rb +52 -0
- data/spec/api/sling_api_spec.rb +32 -88
- data/spec/api_client_spec.rb +37 -37
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/inline_object1_spec.rb +41 -0
- data/spec/models/inline_object2_spec.rb +41 -0
- data/spec/models/inline_object3_spec.rb +41 -0
- data/spec/models/inline_object4_spec.rb +53 -0
- data/spec/models/inline_object5_spec.rb +47 -0
- data/spec/models/inline_object_spec.rb +41 -0
- data/spec/models/install_status_spec.rb +5 -6
- data/spec/models/install_status_status_spec.rb +6 -7
- data/spec/models/keystore_chain_items_spec.rb +9 -10
- data/spec/models/keystore_info_spec.rb +6 -7
- data/spec/models/keystore_items_spec.rb +9 -10
- data/spec/models/saml_configuration_info_spec.rb +10 -11
- data/spec/models/saml_configuration_properties_spec.rb +28 -29
- data/spec/models/saml_configuration_property_items_array_spec.rb +10 -11
- data/spec/models/saml_configuration_property_items_boolean_spec.rb +11 -12
- data/spec/models/saml_configuration_property_items_long_spec.rb +11 -12
- data/spec/models/saml_configuration_property_items_string_spec.rb +11 -12
- data/spec/models/truststore_info_spec.rb +6 -7
- data/spec/models/truststore_items_spec.rb +11 -12
- data/spec/spec_helper.rb +3 -3
- data/swagger_aem.gemspec +8 -14
- metadata +36 -128
data/docs/TruststoreInfo.md
CHANGED
@@ -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** | **
|
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
|
|
data/docs/TruststoreItems.md
CHANGED
@@ -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
|
|
data/git_push.sh
CHANGED
@@ -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
|
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
|
43
|
-
git remote add origin https
|
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}
|
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
|
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
|
|
data/lib/swagger_aem.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
|
5
5
|
|
6
|
-
OpenAPI
|
6
|
+
The version of the OpenAPI document: 3.4.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
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
|
6
|
+
The version of the OpenAPI document: 3.4.0
|
7
7
|
Contact: opensource@shinesolutions.com
|
8
|
-
Generated by: https://
|
9
|
-
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
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
|
-
|
26
|
+
data
|
30
27
|
end
|
31
28
|
|
32
|
-
#
|
33
|
-
#
|
34
29
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<(Array<String>,
|
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
|
33
|
+
@api_client.config.logger.debug 'Calling API: ConsoleApi.get_aem_product_info ...'
|
39
34
|
end
|
40
35
|
# resource path
|
41
|
-
local_var_path =
|
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 =
|
56
|
-
|
57
|
-
|
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 =>
|
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
|
-
|
73
|
-
|
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
|
-
|
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,
|
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
|
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 =
|
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 =
|
116
|
-
|
117
|
-
|
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
|
-
|
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,
|
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
|
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 =
|
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 =
|
168
|
-
|
169
|
-
|
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 [
|
185
|
-
# @option opts [
|
186
|
-
# @option opts [
|
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 [
|
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 [
|
201
|
-
# @option opts [
|
202
|
-
# @option opts [
|
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 [
|
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
|
-
|
279
|
+
data
|
218
280
|
end
|
219
281
|
|
220
|
-
#
|
221
|
-
#
|
222
282
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @option opts [
|
224
|
-
# @option opts [
|
225
|
-
# @option opts [
|
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 [
|
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 [
|
240
|
-
# @option opts [
|
241
|
-
# @option opts [
|
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 [
|
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,
|
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
|
316
|
+
@api_client.config.logger.debug 'Calling API: ConsoleApi.post_saml_configuration ...'
|
257
317
|
end
|
258
318
|
# resource path
|
259
|
-
local_var_path =
|
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 =
|
304
|
-
|
305
|
-
|
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 =>
|
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
|