smplkit 3.0.64 → 3.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/sso_api.rb +461 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection.rb +445 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain.rb +228 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_list_response.rb +193 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +10 -0
- data/lib/smplkit/_generated/app/spec/api/sso_api_spec.rb +117 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_spec.rb +138 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_list_response_spec.rb +42 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_spec.rb +64 -0
- metadata +21 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16abf7a226f27e82a2343a6a85e23ee92f2f15198bd5353f94ee8daa51af36d3
|
|
4
|
+
data.tar.gz: f43cc4fb669ff5ce6cd3fb81e84bdc64f5b619be2df2c1b2328ad1f62c4bd512
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2fbbc5b9369e51bb2729ca286a19a40ef1c40af66c803f28a8b7baa7d7d218128906b75a254fc7126c4dd3ce6f4127cf558e1554f261a978641906cd2451421
|
|
7
|
+
data.tar.gz: cea0ae0643d5be5e403e0c398543933a1cdcd9e1d68fb77a02004c3021e657585d4861eb6aded5740e75531bf8a0d31c981ad63eca64b0e91bb5337f7ba1096f
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit API
|
|
3
|
+
|
|
4
|
+
#API for the smplkit platform.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SmplkitGeneratedClient::App
|
|
16
|
+
class SSOApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Claim SSO Domain
|
|
23
|
+
# Claim a domain for SSO routing. Idempotent — re-claiming a domain already held by the account is a no-op success. The response includes the DNS TXT token to publish.
|
|
24
|
+
# @param domain [String]
|
|
25
|
+
# @param sso_domain_request [SSODomainRequest]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [SSODomainResponse]
|
|
28
|
+
def claim_sso_domain(domain, sso_domain_request, opts = {})
|
|
29
|
+
data, _status_code, _headers = claim_sso_domain_with_http_info(domain, sso_domain_request, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Claim SSO Domain
|
|
34
|
+
# Claim a domain for SSO routing. Idempotent — re-claiming a domain already held by the account is a no-op success. The response includes the DNS TXT token to publish.
|
|
35
|
+
# @param domain [String]
|
|
36
|
+
# @param sso_domain_request [SSODomainRequest]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(SSODomainResponse, Integer, Hash)>] SSODomainResponse data, response status code and response headers
|
|
39
|
+
def claim_sso_domain_with_http_info(domain, sso_domain_request, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.claim_sso_domain ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'domain' is set
|
|
44
|
+
if @api_client.config.client_side_validation && domain.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'domain' when calling SSOApi.claim_sso_domain"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'sso_domain_request' is set
|
|
48
|
+
if @api_client.config.client_side_validation && sso_domain_request.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'sso_domain_request' when calling SSOApi.claim_sso_domain"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/api/v1/accounts/current/sso_domains/{domain}'.sub('{domain}', CGI.escape(domain.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
|
|
63
|
+
if !content_type.nil?
|
|
64
|
+
header_params['Content-Type'] = content_type
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(sso_domain_request)
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'SSODomainResponse'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"SSOApi.claim_sso_domain",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: SSOApi#claim_sso_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete SSO Connection
|
|
97
|
+
# Soft-delete the account's SSO connection. Domains are preserved.
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @return [nil]
|
|
100
|
+
def delete_sso_connection(opts = {})
|
|
101
|
+
delete_sso_connection_with_http_info(opts)
|
|
102
|
+
nil
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Delete SSO Connection
|
|
106
|
+
# Soft-delete the account's SSO connection. Domains are preserved.
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
109
|
+
def delete_sso_connection_with_http_info(opts = {})
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.delete_sso_connection ...'
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/api/v1/accounts/current/sso_connection'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = opts[:form_params] || {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = opts[:debug_body]
|
|
129
|
+
|
|
130
|
+
# return_type
|
|
131
|
+
return_type = opts[:debug_return_type]
|
|
132
|
+
|
|
133
|
+
# auth_names
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
135
|
+
|
|
136
|
+
new_options = opts.merge(
|
|
137
|
+
:operation => :"SSOApi.delete_sso_connection",
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => return_type
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: SSOApi#delete_sso_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Get SSO Connection
|
|
154
|
+
# Return the SSO connection for the current account, including computed Service Provider metadata. Returns `404` when no connection has been configured.
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [SSOConnectionResponse]
|
|
157
|
+
def get_sso_connection(opts = {})
|
|
158
|
+
data, _status_code, _headers = get_sso_connection_with_http_info(opts)
|
|
159
|
+
data
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Get SSO Connection
|
|
163
|
+
# Return the SSO connection for the current account, including computed Service Provider metadata. Returns `404` when no connection has been configured.
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @return [Array<(SSOConnectionResponse, Integer, Hash)>] SSOConnectionResponse data, response status code and response headers
|
|
166
|
+
def get_sso_connection_with_http_info(opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.get_sso_connection ...'
|
|
169
|
+
end
|
|
170
|
+
# resource path
|
|
171
|
+
local_var_path = '/api/v1/accounts/current/sso_connection'
|
|
172
|
+
|
|
173
|
+
# query parameters
|
|
174
|
+
query_params = opts[:query_params] || {}
|
|
175
|
+
|
|
176
|
+
# header parameters
|
|
177
|
+
header_params = opts[:header_params] || {}
|
|
178
|
+
# HTTP header 'Accept' (if needed)
|
|
179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
180
|
+
|
|
181
|
+
# form parameters
|
|
182
|
+
form_params = opts[:form_params] || {}
|
|
183
|
+
|
|
184
|
+
# http body (model)
|
|
185
|
+
post_body = opts[:debug_body]
|
|
186
|
+
|
|
187
|
+
# return_type
|
|
188
|
+
return_type = opts[:debug_return_type] || 'SSOConnectionResponse'
|
|
189
|
+
|
|
190
|
+
# auth_names
|
|
191
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
192
|
+
|
|
193
|
+
new_options = opts.merge(
|
|
194
|
+
:operation => :"SSOApi.get_sso_connection",
|
|
195
|
+
:header_params => header_params,
|
|
196
|
+
:query_params => query_params,
|
|
197
|
+
:form_params => form_params,
|
|
198
|
+
:body => post_body,
|
|
199
|
+
:auth_names => auth_names,
|
|
200
|
+
:return_type => return_type
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
204
|
+
if @api_client.config.debugging
|
|
205
|
+
@api_client.config.logger.debug "API called: SSOApi#get_sso_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
206
|
+
end
|
|
207
|
+
return data, status_code, headers
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# List SSO Domains
|
|
211
|
+
# List the domains claimed by the current account, including each row's verification status.
|
|
212
|
+
# @param [Hash] opts the optional parameters
|
|
213
|
+
# @return [SSODomainListResponse]
|
|
214
|
+
def list_sso_domains(opts = {})
|
|
215
|
+
data, _status_code, _headers = list_sso_domains_with_http_info(opts)
|
|
216
|
+
data
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# List SSO Domains
|
|
220
|
+
# List the domains claimed by the current account, including each row's verification status.
|
|
221
|
+
# @param [Hash] opts the optional parameters
|
|
222
|
+
# @return [Array<(SSODomainListResponse, Integer, Hash)>] SSODomainListResponse data, response status code and response headers
|
|
223
|
+
def list_sso_domains_with_http_info(opts = {})
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.list_sso_domains ...'
|
|
226
|
+
end
|
|
227
|
+
# resource path
|
|
228
|
+
local_var_path = '/api/v1/accounts/current/sso_domains'
|
|
229
|
+
|
|
230
|
+
# query parameters
|
|
231
|
+
query_params = opts[:query_params] || {}
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = opts[:header_params] || {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
237
|
+
|
|
238
|
+
# form parameters
|
|
239
|
+
form_params = opts[:form_params] || {}
|
|
240
|
+
|
|
241
|
+
# http body (model)
|
|
242
|
+
post_body = opts[:debug_body]
|
|
243
|
+
|
|
244
|
+
# return_type
|
|
245
|
+
return_type = opts[:debug_return_type] || 'SSODomainListResponse'
|
|
246
|
+
|
|
247
|
+
# auth_names
|
|
248
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
249
|
+
|
|
250
|
+
new_options = opts.merge(
|
|
251
|
+
:operation => :"SSOApi.list_sso_domains",
|
|
252
|
+
:header_params => header_params,
|
|
253
|
+
:query_params => query_params,
|
|
254
|
+
:form_params => form_params,
|
|
255
|
+
:body => post_body,
|
|
256
|
+
:auth_names => auth_names,
|
|
257
|
+
:return_type => return_type
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
261
|
+
if @api_client.config.debugging
|
|
262
|
+
@api_client.config.logger.debug "API called: SSOApi#list_sso_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
263
|
+
end
|
|
264
|
+
return data, status_code, headers
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Create or Replace SSO Connection
|
|
268
|
+
# Create-or-replace the account's SSO connection. The OIDC `client_secret` is write-only; supply it on first creation, omit on subsequent updates to retain the stored value.
|
|
269
|
+
# @param sso_connection_request [SSOConnectionRequest]
|
|
270
|
+
# @param [Hash] opts the optional parameters
|
|
271
|
+
# @return [SSOConnectionResponse]
|
|
272
|
+
def put_sso_connection(sso_connection_request, opts = {})
|
|
273
|
+
data, _status_code, _headers = put_sso_connection_with_http_info(sso_connection_request, opts)
|
|
274
|
+
data
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Create or Replace SSO Connection
|
|
278
|
+
# Create-or-replace the account's SSO connection. The OIDC `client_secret` is write-only; supply it on first creation, omit on subsequent updates to retain the stored value.
|
|
279
|
+
# @param sso_connection_request [SSOConnectionRequest]
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @return [Array<(SSOConnectionResponse, Integer, Hash)>] SSOConnectionResponse data, response status code and response headers
|
|
282
|
+
def put_sso_connection_with_http_info(sso_connection_request, opts = {})
|
|
283
|
+
if @api_client.config.debugging
|
|
284
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.put_sso_connection ...'
|
|
285
|
+
end
|
|
286
|
+
# verify the required parameter 'sso_connection_request' is set
|
|
287
|
+
if @api_client.config.client_side_validation && sso_connection_request.nil?
|
|
288
|
+
fail ArgumentError, "Missing the required parameter 'sso_connection_request' when calling SSOApi.put_sso_connection"
|
|
289
|
+
end
|
|
290
|
+
# resource path
|
|
291
|
+
local_var_path = '/api/v1/accounts/current/sso_connection'
|
|
292
|
+
|
|
293
|
+
# query parameters
|
|
294
|
+
query_params = opts[:query_params] || {}
|
|
295
|
+
|
|
296
|
+
# header parameters
|
|
297
|
+
header_params = opts[:header_params] || {}
|
|
298
|
+
# HTTP header 'Accept' (if needed)
|
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
300
|
+
# HTTP header 'Content-Type'
|
|
301
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
|
|
302
|
+
if !content_type.nil?
|
|
303
|
+
header_params['Content-Type'] = content_type
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# form parameters
|
|
307
|
+
form_params = opts[:form_params] || {}
|
|
308
|
+
|
|
309
|
+
# http body (model)
|
|
310
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(sso_connection_request)
|
|
311
|
+
|
|
312
|
+
# return_type
|
|
313
|
+
return_type = opts[:debug_return_type] || 'SSOConnectionResponse'
|
|
314
|
+
|
|
315
|
+
# auth_names
|
|
316
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
317
|
+
|
|
318
|
+
new_options = opts.merge(
|
|
319
|
+
:operation => :"SSOApi.put_sso_connection",
|
|
320
|
+
:header_params => header_params,
|
|
321
|
+
:query_params => query_params,
|
|
322
|
+
:form_params => form_params,
|
|
323
|
+
:body => post_body,
|
|
324
|
+
:auth_names => auth_names,
|
|
325
|
+
:return_type => return_type
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
329
|
+
if @api_client.config.debugging
|
|
330
|
+
@api_client.config.logger.debug "API called: SSOApi#put_sso_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
331
|
+
end
|
|
332
|
+
return data, status_code, headers
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Release SSO Domain
|
|
336
|
+
# Release a previously-claimed SSO domain.
|
|
337
|
+
# @param domain [String]
|
|
338
|
+
# @param [Hash] opts the optional parameters
|
|
339
|
+
# @return [nil]
|
|
340
|
+
def release_sso_domain(domain, opts = {})
|
|
341
|
+
release_sso_domain_with_http_info(domain, opts)
|
|
342
|
+
nil
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Release SSO Domain
|
|
346
|
+
# Release a previously-claimed SSO domain.
|
|
347
|
+
# @param domain [String]
|
|
348
|
+
# @param [Hash] opts the optional parameters
|
|
349
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
350
|
+
def release_sso_domain_with_http_info(domain, opts = {})
|
|
351
|
+
if @api_client.config.debugging
|
|
352
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.release_sso_domain ...'
|
|
353
|
+
end
|
|
354
|
+
# verify the required parameter 'domain' is set
|
|
355
|
+
if @api_client.config.client_side_validation && domain.nil?
|
|
356
|
+
fail ArgumentError, "Missing the required parameter 'domain' when calling SSOApi.release_sso_domain"
|
|
357
|
+
end
|
|
358
|
+
# resource path
|
|
359
|
+
local_var_path = '/api/v1/accounts/current/sso_domains/{domain}'.sub('{domain}', CGI.escape(domain.to_s))
|
|
360
|
+
|
|
361
|
+
# query parameters
|
|
362
|
+
query_params = opts[:query_params] || {}
|
|
363
|
+
|
|
364
|
+
# header parameters
|
|
365
|
+
header_params = opts[:header_params] || {}
|
|
366
|
+
# HTTP header 'Accept' (if needed)
|
|
367
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
368
|
+
|
|
369
|
+
# form parameters
|
|
370
|
+
form_params = opts[:form_params] || {}
|
|
371
|
+
|
|
372
|
+
# http body (model)
|
|
373
|
+
post_body = opts[:debug_body]
|
|
374
|
+
|
|
375
|
+
# return_type
|
|
376
|
+
return_type = opts[:debug_return_type]
|
|
377
|
+
|
|
378
|
+
# auth_names
|
|
379
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
380
|
+
|
|
381
|
+
new_options = opts.merge(
|
|
382
|
+
:operation => :"SSOApi.release_sso_domain",
|
|
383
|
+
:header_params => header_params,
|
|
384
|
+
:query_params => query_params,
|
|
385
|
+
:form_params => form_params,
|
|
386
|
+
:body => post_body,
|
|
387
|
+
:auth_names => auth_names,
|
|
388
|
+
:return_type => return_type
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug "API called: SSOApi#release_sso_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
|
+
end
|
|
395
|
+
return data, status_code, headers
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Verify SSO Domain
|
|
399
|
+
# Run the DNS TXT check for a claimed domain. Returns the updated resource on success. Returns `409` if a different account has already verified this domain. Returns `422` when the DNS TXT record has not yet been published or does not match the expected token.
|
|
400
|
+
# @param domain [String]
|
|
401
|
+
# @param [Hash] opts the optional parameters
|
|
402
|
+
# @return [SSODomainResponse]
|
|
403
|
+
def verify_sso_domain(domain, opts = {})
|
|
404
|
+
data, _status_code, _headers = verify_sso_domain_with_http_info(domain, opts)
|
|
405
|
+
data
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Verify SSO Domain
|
|
409
|
+
# Run the DNS TXT check for a claimed domain. Returns the updated resource on success. Returns `409` if a different account has already verified this domain. Returns `422` when the DNS TXT record has not yet been published or does not match the expected token.
|
|
410
|
+
# @param domain [String]
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @return [Array<(SSODomainResponse, Integer, Hash)>] SSODomainResponse data, response status code and response headers
|
|
413
|
+
def verify_sso_domain_with_http_info(domain, opts = {})
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug 'Calling API: SSOApi.verify_sso_domain ...'
|
|
416
|
+
end
|
|
417
|
+
# verify the required parameter 'domain' is set
|
|
418
|
+
if @api_client.config.client_side_validation && domain.nil?
|
|
419
|
+
fail ArgumentError, "Missing the required parameter 'domain' when calling SSOApi.verify_sso_domain"
|
|
420
|
+
end
|
|
421
|
+
# resource path
|
|
422
|
+
local_var_path = '/api/v1/accounts/current/sso_domains/{domain}/actions/verify'.sub('{domain}', CGI.escape(domain.to_s))
|
|
423
|
+
|
|
424
|
+
# query parameters
|
|
425
|
+
query_params = opts[:query_params] || {}
|
|
426
|
+
|
|
427
|
+
# header parameters
|
|
428
|
+
header_params = opts[:header_params] || {}
|
|
429
|
+
# HTTP header 'Accept' (if needed)
|
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
431
|
+
|
|
432
|
+
# form parameters
|
|
433
|
+
form_params = opts[:form_params] || {}
|
|
434
|
+
|
|
435
|
+
# http body (model)
|
|
436
|
+
post_body = opts[:debug_body]
|
|
437
|
+
|
|
438
|
+
# return_type
|
|
439
|
+
return_type = opts[:debug_return_type] || 'SSODomainResponse'
|
|
440
|
+
|
|
441
|
+
# auth_names
|
|
442
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
443
|
+
|
|
444
|
+
new_options = opts.merge(
|
|
445
|
+
:operation => :"SSOApi.verify_sso_domain",
|
|
446
|
+
:header_params => header_params,
|
|
447
|
+
:query_params => query_params,
|
|
448
|
+
:form_params => form_params,
|
|
449
|
+
:body => post_body,
|
|
450
|
+
:auth_names => auth_names,
|
|
451
|
+
:return_type => return_type
|
|
452
|
+
)
|
|
453
|
+
|
|
454
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
455
|
+
if @api_client.config.debugging
|
|
456
|
+
@api_client.config.logger.debug "API called: SSOApi#verify_sso_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
457
|
+
end
|
|
458
|
+
return data, status_code, headers
|
|
459
|
+
end
|
|
460
|
+
end
|
|
461
|
+
end
|