oci 2.2.0 → 2.2.1
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/README.md +1 -1
- data/lib/oci/audit/audit_client.rb +9 -3
- data/lib/oci/core/blockstorage_client.rb +90 -30
- data/lib/oci/core/compute_client.rb +115 -41
- data/lib/oci/core/compute_client_composite_operations.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +315 -105
- data/lib/oci/database/database_client.rb +112 -38
- data/lib/oci/dns/dns_client.rb +48 -16
- data/lib/oci/email/email_client.rb +24 -8
- data/lib/oci/file_storage/file_storage_client.rb +63 -21
- data/lib/oci/identity/identity.rb +3 -0
- data/lib/oci/identity/identity_client.rb +460 -69
- data/lib/oci/identity/models/auth_token.rb +282 -0
- data/lib/oci/identity/models/create_auth_token_details.rb +147 -0
- data/lib/oci/identity/models/swift_password.rb +3 -1
- data/lib/oci/identity/models/update_auth_token_details.rb +146 -0
- data/lib/oci/identity/models/user.rb +2 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +126 -42
- data/lib/oci/object_storage/object_storage_client.rb +78 -26
- data/lib/oci/version.rb +1 -1
- metadata +5 -2
@@ -12,9 +12,11 @@ end
|
|
12
12
|
# Require models
|
13
13
|
require 'oci/identity/models/add_user_to_group_details'
|
14
14
|
require 'oci/identity/models/api_key'
|
15
|
+
require 'oci/identity/models/auth_token'
|
15
16
|
require 'oci/identity/models/availability_domain'
|
16
17
|
require 'oci/identity/models/compartment'
|
17
18
|
require 'oci/identity/models/create_api_key_details'
|
19
|
+
require 'oci/identity/models/create_auth_token_details'
|
18
20
|
require 'oci/identity/models/create_compartment_details'
|
19
21
|
require 'oci/identity/models/create_customer_secret_key_details'
|
20
22
|
require 'oci/identity/models/create_dynamic_group_details'
|
@@ -48,6 +50,7 @@ require 'oci/identity/models/tag_namespace_summary'
|
|
48
50
|
require 'oci/identity/models/tag_summary'
|
49
51
|
require 'oci/identity/models/tenancy'
|
50
52
|
require 'oci/identity/models/ui_password'
|
53
|
+
require 'oci/identity/models/update_auth_token_details'
|
51
54
|
require 'oci/identity/models/update_compartment_details'
|
52
55
|
require 'oci/identity/models/update_customer_secret_key_details'
|
53
56
|
require 'oci/identity/models/update_dynamic_group_details'
|
@@ -107,7 +107,7 @@ module OCI
|
|
107
107
|
# @param [OCI::Identity::Models::AddUserToGroupDetails] add_user_to_group_details Request object for adding a user to a group.
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
109
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
110
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
110
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
111
111
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
112
112
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
113
113
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -123,6 +123,7 @@ module OCI
|
|
123
123
|
path = '/userGroupMemberships/'
|
124
124
|
operation_signing_strategy = :standard
|
125
125
|
|
126
|
+
# rubocop:disable Style/NegatedIf
|
126
127
|
# Query Params
|
127
128
|
query_params = {}
|
128
129
|
|
@@ -131,6 +132,7 @@ module OCI
|
|
131
132
|
header_params['accept'] = 'application/json'
|
132
133
|
header_params['content-type'] = 'application/json'
|
133
134
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
135
|
+
# rubocop:enable Style/NegatedIf
|
134
136
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
135
137
|
|
136
138
|
post_body = @api_client.object_to_http_body(add_user_to_group_details)
|
@@ -159,6 +161,77 @@ module OCI
|
|
159
161
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
160
162
|
|
161
163
|
|
164
|
+
# Creates a new auth token for the specified user. For information about what auth tokens are for, see
|
165
|
+
# [Managing User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm).
|
166
|
+
#
|
167
|
+
# You must specify a *description* for the auth token (although it can be an empty string). It does not
|
168
|
+
# have to be unique, and you can change it anytime with
|
169
|
+
# {#update_auth_token update_auth_token}.
|
170
|
+
#
|
171
|
+
# Every user has permission to create an auth token for *their own user ID*. An administrator in your organization
|
172
|
+
# does not need to write a policy to give users this ability. To compare, administrators who have permission to the
|
173
|
+
# tenancy can use this operation to create an auth token for any user, including themselves.
|
174
|
+
#
|
175
|
+
# @param [OCI::Identity::Models::CreateAuthTokenDetails] create_auth_token_details Request object for creating a new auth token.
|
176
|
+
# @param [String] user_id The OCID of the user.
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
179
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
180
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
181
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
182
|
+
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
183
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
184
|
+
# may be rejected).
|
185
|
+
#
|
186
|
+
# @return [Response] A Response object with data of type {OCI::Identity::Models::AuthToken AuthToken}
|
187
|
+
def create_auth_token(create_auth_token_details, user_id, opts = {})
|
188
|
+
logger.debug 'Calling operation IdentityClient#create_auth_token.' if logger
|
189
|
+
|
190
|
+
raise "Missing the required parameter 'create_auth_token_details' when calling create_auth_token." if create_auth_token_details.nil?
|
191
|
+
raise "Missing the required parameter 'user_id' when calling create_auth_token." if user_id.nil?
|
192
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
|
193
|
+
|
194
|
+
path = '/users/{userId}/authTokens/'.sub('{userId}', user_id.to_s)
|
195
|
+
operation_signing_strategy = :standard
|
196
|
+
|
197
|
+
# rubocop:disable Style/NegatedIf
|
198
|
+
# Query Params
|
199
|
+
query_params = {}
|
200
|
+
|
201
|
+
# Header Params
|
202
|
+
header_params = {}
|
203
|
+
header_params['accept'] = 'application/json'
|
204
|
+
header_params['content-type'] = 'application/json'
|
205
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
206
|
+
# rubocop:enable Style/NegatedIf
|
207
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
208
|
+
|
209
|
+
post_body = @api_client.object_to_http_body(create_auth_token_details)
|
210
|
+
|
211
|
+
# rubocop:disable Metrics/BlockLength
|
212
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#create_auth_token') do
|
213
|
+
@api_client.call_api(
|
214
|
+
:POST,
|
215
|
+
path,
|
216
|
+
endpoint,
|
217
|
+
header_params: header_params,
|
218
|
+
query_params: query_params,
|
219
|
+
operation_signing_strategy: operation_signing_strategy,
|
220
|
+
body: post_body,
|
221
|
+
return_type: 'OCI::Identity::Models::AuthToken'
|
222
|
+
)
|
223
|
+
end
|
224
|
+
# rubocop:enable Metrics/BlockLength
|
225
|
+
end
|
226
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
227
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
228
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
229
|
+
|
230
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
231
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
232
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
233
|
+
|
234
|
+
|
162
235
|
# Creates a new compartment in your tenancy.
|
163
236
|
#
|
164
237
|
# **Important:** Compartments cannot be deleted.
|
@@ -182,7 +255,7 @@ module OCI
|
|
182
255
|
# @param [OCI::Identity::Models::CreateCompartmentDetails] create_compartment_details Request object for creating a new compartment.
|
183
256
|
# @param [Hash] opts the optional parameters
|
184
257
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
185
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
258
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
186
259
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
187
260
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
188
261
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -198,6 +271,7 @@ module OCI
|
|
198
271
|
path = '/compartments/'
|
199
272
|
operation_signing_strategy = :standard
|
200
273
|
|
274
|
+
# rubocop:disable Style/NegatedIf
|
201
275
|
# Query Params
|
202
276
|
query_params = {}
|
203
277
|
|
@@ -206,6 +280,7 @@ module OCI
|
|
206
280
|
header_params['accept'] = 'application/json'
|
207
281
|
header_params['content-type'] = 'application/json'
|
208
282
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
283
|
+
# rubocop:enable Style/NegatedIf
|
209
284
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
210
285
|
|
211
286
|
post_body = @api_client.object_to_http_body(create_compartment_details)
|
@@ -250,7 +325,7 @@ module OCI
|
|
250
325
|
# @param [String] user_id The OCID of the user.
|
251
326
|
# @param [Hash] opts the optional parameters
|
252
327
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
253
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
328
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
254
329
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
255
330
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
256
331
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -268,6 +343,7 @@ module OCI
|
|
268
343
|
path = '/users/{userId}/customerSecretKeys/'.sub('{userId}', user_id.to_s)
|
269
344
|
operation_signing_strategy = :standard
|
270
345
|
|
346
|
+
# rubocop:disable Style/NegatedIf
|
271
347
|
# Query Params
|
272
348
|
query_params = {}
|
273
349
|
|
@@ -276,6 +352,7 @@ module OCI
|
|
276
352
|
header_params['accept'] = 'application/json'
|
277
353
|
header_params['content-type'] = 'application/json'
|
278
354
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
355
|
+
# rubocop:enable Style/NegatedIf
|
279
356
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
280
357
|
|
281
358
|
post_body = @api_client.object_to_http_body(create_customer_secret_key_details)
|
@@ -326,7 +403,7 @@ module OCI
|
|
326
403
|
# @param [OCI::Identity::Models::CreateDynamicGroupDetails] create_dynamic_group_details Request object for creating a new dynamic group.
|
327
404
|
# @param [Hash] opts the optional parameters
|
328
405
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
329
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
406
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
330
407
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
331
408
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
332
409
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -342,6 +419,7 @@ module OCI
|
|
342
419
|
path = '/dynamicGroups/'
|
343
420
|
operation_signing_strategy = :standard
|
344
421
|
|
422
|
+
# rubocop:disable Style/NegatedIf
|
345
423
|
# Query Params
|
346
424
|
query_params = {}
|
347
425
|
|
@@ -350,6 +428,7 @@ module OCI
|
|
350
428
|
header_params['accept'] = 'application/json'
|
351
429
|
header_params['content-type'] = 'application/json'
|
352
430
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
431
|
+
# rubocop:enable Style/NegatedIf
|
353
432
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
354
433
|
|
355
434
|
post_body = @api_client.object_to_http_body(create_dynamic_group_details)
|
@@ -403,7 +482,7 @@ module OCI
|
|
403
482
|
# @param [OCI::Identity::Models::CreateGroupDetails] create_group_details Request object for creating a new group.
|
404
483
|
# @param [Hash] opts the optional parameters
|
405
484
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
406
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
485
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
407
486
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
408
487
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
409
488
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -419,6 +498,7 @@ module OCI
|
|
419
498
|
path = '/groups/'
|
420
499
|
operation_signing_strategy = :standard
|
421
500
|
|
501
|
+
# rubocop:disable Style/NegatedIf
|
422
502
|
# Query Params
|
423
503
|
query_params = {}
|
424
504
|
|
@@ -427,6 +507,7 @@ module OCI
|
|
427
507
|
header_params['accept'] = 'application/json'
|
428
508
|
header_params['content-type'] = 'application/json'
|
429
509
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
510
|
+
# rubocop:enable Style/NegatedIf
|
430
511
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
431
512
|
|
432
513
|
post_body = @api_client.object_to_http_body(create_group_details)
|
@@ -477,7 +558,7 @@ module OCI
|
|
477
558
|
# @param [OCI::Identity::Models::CreateIdentityProviderDetails] create_identity_provider_details Request object for creating a new SAML2 identity provider.
|
478
559
|
# @param [Hash] opts the optional parameters
|
479
560
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
480
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
561
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
481
562
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
482
563
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
483
564
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -493,6 +574,7 @@ module OCI
|
|
493
574
|
path = '/identityProviders/'
|
494
575
|
operation_signing_strategy = :standard
|
495
576
|
|
577
|
+
# rubocop:disable Style/NegatedIf
|
496
578
|
# Query Params
|
497
579
|
query_params = {}
|
498
580
|
|
@@ -501,6 +583,7 @@ module OCI
|
|
501
583
|
header_params['accept'] = 'application/json'
|
502
584
|
header_params['content-type'] = 'application/json'
|
503
585
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
586
|
+
# rubocop:enable Style/NegatedIf
|
504
587
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
505
588
|
|
506
589
|
post_body = @api_client.object_to_http_body(create_identity_provider_details)
|
@@ -536,7 +619,7 @@ module OCI
|
|
536
619
|
# @param [String] identity_provider_id The OCID of the identity provider.
|
537
620
|
# @param [Hash] opts the optional parameters
|
538
621
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
539
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
622
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
540
623
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
541
624
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
542
625
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -554,6 +637,7 @@ module OCI
|
|
554
637
|
path = '/identityProviders/{identityProviderId}/groupMappings/'.sub('{identityProviderId}', identity_provider_id.to_s)
|
555
638
|
operation_signing_strategy = :standard
|
556
639
|
|
640
|
+
# rubocop:disable Style/NegatedIf
|
557
641
|
# Query Params
|
558
642
|
query_params = {}
|
559
643
|
|
@@ -562,6 +646,7 @@ module OCI
|
|
562
646
|
header_params['accept'] = 'application/json'
|
563
647
|
header_params['content-type'] = 'application/json'
|
564
648
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
649
|
+
# rubocop:enable Style/NegatedIf
|
565
650
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
566
651
|
|
567
652
|
post_body = @api_client.object_to_http_body(create_idp_group_mapping_details)
|
@@ -605,7 +690,7 @@ module OCI
|
|
605
690
|
# @param [String] user_id The OCID of the user.
|
606
691
|
# @param [Hash] opts the optional parameters
|
607
692
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
608
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
693
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
609
694
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
610
695
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
611
696
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -622,6 +707,7 @@ module OCI
|
|
622
707
|
path = '/users/{userId}/uiPassword'.sub('{userId}', user_id.to_s)
|
623
708
|
operation_signing_strategy = :standard
|
624
709
|
|
710
|
+
# rubocop:disable Style/NegatedIf
|
625
711
|
# Query Params
|
626
712
|
query_params = {}
|
627
713
|
|
@@ -630,6 +716,7 @@ module OCI
|
|
630
716
|
header_params['accept'] = 'application/json'
|
631
717
|
header_params['content-type'] = 'application/json'
|
632
718
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
719
|
+
# rubocop:enable Style/NegatedIf
|
633
720
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
634
721
|
|
635
722
|
post_body = nil
|
@@ -679,7 +766,7 @@ module OCI
|
|
679
766
|
# @param [OCI::Identity::Models::CreatePolicyDetails] create_policy_details Request object for creating a new policy.
|
680
767
|
# @param [Hash] opts the optional parameters
|
681
768
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
682
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
769
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
683
770
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
684
771
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
685
772
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -695,6 +782,7 @@ module OCI
|
|
695
782
|
path = '/policies/'
|
696
783
|
operation_signing_strategy = :standard
|
697
784
|
|
785
|
+
# rubocop:disable Style/NegatedIf
|
698
786
|
# Query Params
|
699
787
|
query_params = {}
|
700
788
|
|
@@ -703,6 +791,7 @@ module OCI
|
|
703
791
|
header_params['accept'] = 'application/json'
|
704
792
|
header_params['content-type'] = 'application/json'
|
705
793
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
794
|
+
# rubocop:enable Style/NegatedIf
|
706
795
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
707
796
|
|
708
797
|
post_body = @api_client.object_to_http_body(create_policy_details)
|
@@ -737,7 +826,7 @@ module OCI
|
|
737
826
|
# @param [String] tenancy_id The OCID of the tenancy.
|
738
827
|
# @param [Hash] opts the optional parameters
|
739
828
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
740
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
829
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
741
830
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
742
831
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
743
832
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -755,6 +844,7 @@ module OCI
|
|
755
844
|
path = '/tenancies/{tenancyId}/regionSubscriptions'.sub('{tenancyId}', tenancy_id.to_s)
|
756
845
|
operation_signing_strategy = :standard
|
757
846
|
|
847
|
+
# rubocop:disable Style/NegatedIf
|
758
848
|
# Query Params
|
759
849
|
query_params = {}
|
760
850
|
|
@@ -763,6 +853,7 @@ module OCI
|
|
763
853
|
header_params['accept'] = 'application/json'
|
764
854
|
header_params['content-type'] = 'application/json'
|
765
855
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
856
|
+
# rubocop:enable Style/NegatedIf
|
766
857
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
767
858
|
|
768
859
|
post_body = @api_client.object_to_http_body(create_region_subscription_details)
|
@@ -800,7 +891,7 @@ module OCI
|
|
800
891
|
# @param [String] user_id The OCID of the user.
|
801
892
|
# @param [Hash] opts the optional parameters
|
802
893
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
803
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
894
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
804
895
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
805
896
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
806
897
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -818,6 +909,7 @@ module OCI
|
|
818
909
|
path = '/users/{userId}/smtpCredentials/'.sub('{userId}', user_id.to_s)
|
819
910
|
operation_signing_strategy = :standard
|
820
911
|
|
912
|
+
# rubocop:disable Style/NegatedIf
|
821
913
|
# Query Params
|
822
914
|
query_params = {}
|
823
915
|
|
@@ -826,6 +918,7 @@ module OCI
|
|
826
918
|
header_params['accept'] = 'application/json'
|
827
919
|
header_params['content-type'] = 'application/json'
|
828
920
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
921
|
+
# rubocop:enable Style/NegatedIf
|
829
922
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
830
923
|
|
831
924
|
post_body = @api_client.object_to_http_body(create_smtp_credential_details)
|
@@ -854,6 +947,8 @@ module OCI
|
|
854
947
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
855
948
|
|
856
949
|
|
950
|
+
# **Deprecated. Use {#create_auth_token create_auth_token} instead.**
|
951
|
+
#
|
857
952
|
# Creates a new Swift password for the specified user. For information about what Swift passwords are for, see
|
858
953
|
# [Managing User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm).
|
859
954
|
#
|
@@ -869,7 +964,7 @@ module OCI
|
|
869
964
|
# @param [String] user_id The OCID of the user.
|
870
965
|
# @param [Hash] opts the optional parameters
|
871
966
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
872
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
967
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
873
968
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
874
969
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
875
970
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -887,6 +982,7 @@ module OCI
|
|
887
982
|
path = '/users/{userId}/swiftPasswords/'.sub('{userId}', user_id.to_s)
|
888
983
|
operation_signing_strategy = :standard
|
889
984
|
|
985
|
+
# rubocop:disable Style/NegatedIf
|
890
986
|
# Query Params
|
891
987
|
query_params = {}
|
892
988
|
|
@@ -895,6 +991,7 @@ module OCI
|
|
895
991
|
header_params['accept'] = 'application/json'
|
896
992
|
header_params['content-type'] = 'application/json'
|
897
993
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
994
|
+
# rubocop:enable Style/NegatedIf
|
898
995
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
899
996
|
|
900
997
|
post_body = @api_client.object_to_http_body(create_swift_password_details)
|
@@ -941,7 +1038,7 @@ module OCI
|
|
941
1038
|
# @param [OCI::Identity::Models::CreateTagDetails] create_tag_details Request object for creating a new tag in the specified tag namespace.
|
942
1039
|
# @param [Hash] opts the optional parameters
|
943
1040
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
944
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1041
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
945
1042
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
946
1043
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
947
1044
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -959,6 +1056,7 @@ module OCI
|
|
959
1056
|
path = '/tagNamespaces/{tagNamespaceId}/tags'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
960
1057
|
operation_signing_strategy = :standard
|
961
1058
|
|
1059
|
+
# rubocop:disable Style/NegatedIf
|
962
1060
|
# Query Params
|
963
1061
|
query_params = {}
|
964
1062
|
|
@@ -967,6 +1065,7 @@ module OCI
|
|
967
1065
|
header_params['accept'] = 'application/json'
|
968
1066
|
header_params['content-type'] = 'application/json'
|
969
1067
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1068
|
+
# rubocop:enable Style/NegatedIf
|
970
1069
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
971
1070
|
|
972
1071
|
post_body = @api_client.object_to_http_body(create_tag_details)
|
@@ -1016,7 +1115,7 @@ module OCI
|
|
1016
1115
|
# @param [OCI::Identity::Models::CreateTagNamespaceDetails] create_tag_namespace_details Request object for creating a new tag namespace.
|
1017
1116
|
# @param [Hash] opts the optional parameters
|
1018
1117
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1019
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1118
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1020
1119
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1021
1120
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1022
1121
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -1032,6 +1131,7 @@ module OCI
|
|
1032
1131
|
path = '/tagNamespaces'
|
1033
1132
|
operation_signing_strategy = :standard
|
1034
1133
|
|
1134
|
+
# rubocop:disable Style/NegatedIf
|
1035
1135
|
# Query Params
|
1036
1136
|
query_params = {}
|
1037
1137
|
|
@@ -1040,6 +1140,7 @@ module OCI
|
|
1040
1140
|
header_params['accept'] = 'application/json'
|
1041
1141
|
header_params['content-type'] = 'application/json'
|
1042
1142
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1143
|
+
# rubocop:enable Style/NegatedIf
|
1043
1144
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1044
1145
|
|
1045
1146
|
post_body = @api_client.object_to_http_body(create_tag_namespace_details)
|
@@ -1107,7 +1208,7 @@ module OCI
|
|
1107
1208
|
# @param [OCI::Identity::Models::CreateUserDetails] create_user_details Request object for creating a new user.
|
1108
1209
|
# @param [Hash] opts the optional parameters
|
1109
1210
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1110
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1211
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1111
1212
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1112
1213
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1113
1214
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -1123,6 +1224,7 @@ module OCI
|
|
1123
1224
|
path = '/users/'
|
1124
1225
|
operation_signing_strategy = :standard
|
1125
1226
|
|
1227
|
+
# rubocop:disable Style/NegatedIf
|
1126
1228
|
# Query Params
|
1127
1229
|
query_params = {}
|
1128
1230
|
|
@@ -1131,6 +1233,7 @@ module OCI
|
|
1131
1233
|
header_params['accept'] = 'application/json'
|
1132
1234
|
header_params['content-type'] = 'application/json'
|
1133
1235
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1236
|
+
# rubocop:enable Style/NegatedIf
|
1134
1237
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1135
1238
|
|
1136
1239
|
post_body = @api_client.object_to_http_body(create_user_details)
|
@@ -1170,7 +1273,7 @@ module OCI
|
|
1170
1273
|
# @param [String] fingerprint The key's fingerprint.
|
1171
1274
|
# @param [Hash] opts the optional parameters
|
1172
1275
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1173
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1276
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1174
1277
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1175
1278
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1176
1279
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1187,6 +1290,7 @@ module OCI
|
|
1187
1290
|
path = '/users/{userId}/apiKeys/{fingerprint}'.sub('{userId}', user_id.to_s).sub('{fingerprint}', fingerprint.to_s)
|
1188
1291
|
operation_signing_strategy = :standard
|
1189
1292
|
|
1293
|
+
# rubocop:disable Style/NegatedIf
|
1190
1294
|
# Query Params
|
1191
1295
|
query_params = {}
|
1192
1296
|
|
@@ -1195,6 +1299,7 @@ module OCI
|
|
1195
1299
|
header_params['accept'] = 'application/json'
|
1196
1300
|
header_params['content-type'] = 'application/json'
|
1197
1301
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1302
|
+
# rubocop:enable Style/NegatedIf
|
1198
1303
|
|
1199
1304
|
post_body = nil
|
1200
1305
|
|
@@ -1221,13 +1326,72 @@ module OCI
|
|
1221
1326
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1222
1327
|
|
1223
1328
|
|
1329
|
+
# Deletes the specified auth token for the specified user.
|
1330
|
+
#
|
1331
|
+
# @param [String] user_id The OCID of the user.
|
1332
|
+
# @param [String] auth_token_id The OCID of the auth token.
|
1333
|
+
# @param [Hash] opts the optional parameters
|
1334
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1335
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1336
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1337
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1338
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1339
|
+
#
|
1340
|
+
# @return [Response] A Response object with data of type nil
|
1341
|
+
def delete_auth_token(user_id, auth_token_id, opts = {})
|
1342
|
+
logger.debug 'Calling operation IdentityClient#delete_auth_token.' if logger
|
1343
|
+
|
1344
|
+
raise "Missing the required parameter 'user_id' when calling delete_auth_token." if user_id.nil?
|
1345
|
+
raise "Missing the required parameter 'auth_token_id' when calling delete_auth_token." if auth_token_id.nil?
|
1346
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
|
1347
|
+
raise "Parameter value for 'auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(auth_token_id)
|
1348
|
+
|
1349
|
+
path = '/users/{userId}/authTokens/{authTokenId}'.sub('{userId}', user_id.to_s).sub('{authTokenId}', auth_token_id.to_s)
|
1350
|
+
operation_signing_strategy = :standard
|
1351
|
+
|
1352
|
+
# rubocop:disable Style/NegatedIf
|
1353
|
+
# Query Params
|
1354
|
+
query_params = {}
|
1355
|
+
|
1356
|
+
# Header Params
|
1357
|
+
header_params = {}
|
1358
|
+
header_params['accept'] = 'application/json'
|
1359
|
+
header_params['content-type'] = 'application/json'
|
1360
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1361
|
+
# rubocop:enable Style/NegatedIf
|
1362
|
+
|
1363
|
+
post_body = nil
|
1364
|
+
|
1365
|
+
# rubocop:disable Metrics/BlockLength
|
1366
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#delete_auth_token') do
|
1367
|
+
@api_client.call_api(
|
1368
|
+
:DELETE,
|
1369
|
+
path,
|
1370
|
+
endpoint,
|
1371
|
+
header_params: header_params,
|
1372
|
+
query_params: query_params,
|
1373
|
+
operation_signing_strategy: operation_signing_strategy,
|
1374
|
+
body: post_body
|
1375
|
+
)
|
1376
|
+
end
|
1377
|
+
# rubocop:enable Metrics/BlockLength
|
1378
|
+
end
|
1379
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1380
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1381
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1382
|
+
|
1383
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1384
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1385
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1386
|
+
|
1387
|
+
|
1224
1388
|
# Deletes the specified secret key for the specified user.
|
1225
1389
|
#
|
1226
1390
|
# @param [String] user_id The OCID of the user.
|
1227
1391
|
# @param [String] customer_secret_key_id The OCID of the secret key.
|
1228
1392
|
# @param [Hash] opts the optional parameters
|
1229
1393
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1230
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1394
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1231
1395
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1232
1396
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1233
1397
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1244,6 +1408,7 @@ module OCI
|
|
1244
1408
|
path = '/users/{userId}/customerSecretKeys/{customerSecretKeyId}'.sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
1245
1409
|
operation_signing_strategy = :standard
|
1246
1410
|
|
1411
|
+
# rubocop:disable Style/NegatedIf
|
1247
1412
|
# Query Params
|
1248
1413
|
query_params = {}
|
1249
1414
|
|
@@ -1252,6 +1417,7 @@ module OCI
|
|
1252
1417
|
header_params['accept'] = 'application/json'
|
1253
1418
|
header_params['content-type'] = 'application/json'
|
1254
1419
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1420
|
+
# rubocop:enable Style/NegatedIf
|
1255
1421
|
|
1256
1422
|
post_body = nil
|
1257
1423
|
|
@@ -1283,7 +1449,7 @@ module OCI
|
|
1283
1449
|
# @param [String] dynamic_group_id The OCID of the dynamic group.
|
1284
1450
|
# @param [Hash] opts the optional parameters
|
1285
1451
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1286
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1452
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1287
1453
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1288
1454
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1289
1455
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1298,6 +1464,7 @@ module OCI
|
|
1298
1464
|
path = '/dynamicGroups/{dynamicGroupId}'.sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
1299
1465
|
operation_signing_strategy = :standard
|
1300
1466
|
|
1467
|
+
# rubocop:disable Style/NegatedIf
|
1301
1468
|
# Query Params
|
1302
1469
|
query_params = {}
|
1303
1470
|
|
@@ -1306,6 +1473,7 @@ module OCI
|
|
1306
1473
|
header_params['accept'] = 'application/json'
|
1307
1474
|
header_params['content-type'] = 'application/json'
|
1308
1475
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1476
|
+
# rubocop:enable Style/NegatedIf
|
1309
1477
|
|
1310
1478
|
post_body = nil
|
1311
1479
|
|
@@ -1337,7 +1505,7 @@ module OCI
|
|
1337
1505
|
# @param [String] group_id The OCID of the group.
|
1338
1506
|
# @param [Hash] opts the optional parameters
|
1339
1507
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1340
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1508
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1341
1509
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1342
1510
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1343
1511
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1352,6 +1520,7 @@ module OCI
|
|
1352
1520
|
path = '/groups/{groupId}'.sub('{groupId}', group_id.to_s)
|
1353
1521
|
operation_signing_strategy = :standard
|
1354
1522
|
|
1523
|
+
# rubocop:disable Style/NegatedIf
|
1355
1524
|
# Query Params
|
1356
1525
|
query_params = {}
|
1357
1526
|
|
@@ -1360,6 +1529,7 @@ module OCI
|
|
1360
1529
|
header_params['accept'] = 'application/json'
|
1361
1530
|
header_params['content-type'] = 'application/json'
|
1362
1531
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1532
|
+
# rubocop:enable Style/NegatedIf
|
1363
1533
|
|
1364
1534
|
post_body = nil
|
1365
1535
|
|
@@ -1392,7 +1562,7 @@ module OCI
|
|
1392
1562
|
# @param [String] identity_provider_id The OCID of the identity provider.
|
1393
1563
|
# @param [Hash] opts the optional parameters
|
1394
1564
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1395
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1565
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1396
1566
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1397
1567
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1398
1568
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1407,6 +1577,7 @@ module OCI
|
|
1407
1577
|
path = '/identityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
|
1408
1578
|
operation_signing_strategy = :standard
|
1409
1579
|
|
1580
|
+
# rubocop:disable Style/NegatedIf
|
1410
1581
|
# Query Params
|
1411
1582
|
query_params = {}
|
1412
1583
|
|
@@ -1415,6 +1586,7 @@ module OCI
|
|
1415
1586
|
header_params['accept'] = 'application/json'
|
1416
1587
|
header_params['content-type'] = 'application/json'
|
1417
1588
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1589
|
+
# rubocop:enable Style/NegatedIf
|
1418
1590
|
|
1419
1591
|
post_body = nil
|
1420
1592
|
|
@@ -1446,7 +1618,7 @@ module OCI
|
|
1446
1618
|
# @param [String] mapping_id The OCID of the group mapping.
|
1447
1619
|
# @param [Hash] opts the optional parameters
|
1448
1620
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1449
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1621
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1450
1622
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1451
1623
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1452
1624
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1463,6 +1635,7 @@ module OCI
|
|
1463
1635
|
path = '/identityProviders/{identityProviderId}/groupMappings/{mappingId}'.sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1464
1636
|
operation_signing_strategy = :standard
|
1465
1637
|
|
1638
|
+
# rubocop:disable Style/NegatedIf
|
1466
1639
|
# Query Params
|
1467
1640
|
query_params = {}
|
1468
1641
|
|
@@ -1471,6 +1644,7 @@ module OCI
|
|
1471
1644
|
header_params['accept'] = 'application/json'
|
1472
1645
|
header_params['content-type'] = 'application/json'
|
1473
1646
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1647
|
+
# rubocop:enable Style/NegatedIf
|
1474
1648
|
|
1475
1649
|
post_body = nil
|
1476
1650
|
|
@@ -1501,7 +1675,7 @@ module OCI
|
|
1501
1675
|
# @param [String] policy_id The OCID of the policy.
|
1502
1676
|
# @param [Hash] opts the optional parameters
|
1503
1677
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1504
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1678
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1505
1679
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1506
1680
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1507
1681
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1516,6 +1690,7 @@ module OCI
|
|
1516
1690
|
path = '/policies/{policyId}'.sub('{policyId}', policy_id.to_s)
|
1517
1691
|
operation_signing_strategy = :standard
|
1518
1692
|
|
1693
|
+
# rubocop:disable Style/NegatedIf
|
1519
1694
|
# Query Params
|
1520
1695
|
query_params = {}
|
1521
1696
|
|
@@ -1524,6 +1699,7 @@ module OCI
|
|
1524
1699
|
header_params['accept'] = 'application/json'
|
1525
1700
|
header_params['content-type'] = 'application/json'
|
1526
1701
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1702
|
+
# rubocop:enable Style/NegatedIf
|
1527
1703
|
|
1528
1704
|
post_body = nil
|
1529
1705
|
|
@@ -1556,7 +1732,7 @@ module OCI
|
|
1556
1732
|
# @param [String] smtp_credential_id The OCID of the SMTP credential.
|
1557
1733
|
# @param [Hash] opts the optional parameters
|
1558
1734
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1559
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1735
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1560
1736
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1561
1737
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1562
1738
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1573,6 +1749,7 @@ module OCI
|
|
1573
1749
|
path = '/users/{userId}/smtpCredentials/{smtpCredentialId}'.sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
1574
1750
|
operation_signing_strategy = :standard
|
1575
1751
|
|
1752
|
+
# rubocop:disable Style/NegatedIf
|
1576
1753
|
# Query Params
|
1577
1754
|
query_params = {}
|
1578
1755
|
|
@@ -1581,6 +1758,7 @@ module OCI
|
|
1581
1758
|
header_params['accept'] = 'application/json'
|
1582
1759
|
header_params['content-type'] = 'application/json'
|
1583
1760
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1761
|
+
# rubocop:enable Style/NegatedIf
|
1584
1762
|
|
1585
1763
|
post_body = nil
|
1586
1764
|
|
@@ -1607,13 +1785,15 @@ module OCI
|
|
1607
1785
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1608
1786
|
|
1609
1787
|
|
1788
|
+
# **Deprecated. Use {#delete_auth_token delete_auth_token} instead.**
|
1789
|
+
#
|
1610
1790
|
# Deletes the specified Swift password for the specified user.
|
1611
1791
|
#
|
1612
1792
|
# @param [String] user_id The OCID of the user.
|
1613
1793
|
# @param [String] swift_password_id The OCID of the Swift password.
|
1614
1794
|
# @param [Hash] opts the optional parameters
|
1615
1795
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1616
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1796
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1617
1797
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1618
1798
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1619
1799
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1630,6 +1810,7 @@ module OCI
|
|
1630
1810
|
path = '/users/{userId}/swiftPasswords/{swiftPasswordId}'.sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
1631
1811
|
operation_signing_strategy = :standard
|
1632
1812
|
|
1813
|
+
# rubocop:disable Style/NegatedIf
|
1633
1814
|
# Query Params
|
1634
1815
|
query_params = {}
|
1635
1816
|
|
@@ -1638,6 +1819,7 @@ module OCI
|
|
1638
1819
|
header_params['accept'] = 'application/json'
|
1639
1820
|
header_params['content-type'] = 'application/json'
|
1640
1821
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1822
|
+
# rubocop:enable Style/NegatedIf
|
1641
1823
|
|
1642
1824
|
post_body = nil
|
1643
1825
|
|
@@ -1668,7 +1850,7 @@ module OCI
|
|
1668
1850
|
# @param [String] user_id The OCID of the user.
|
1669
1851
|
# @param [Hash] opts the optional parameters
|
1670
1852
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1671
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1853
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1672
1854
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1673
1855
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1674
1856
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1683,6 +1865,7 @@ module OCI
|
|
1683
1865
|
path = '/users/{userId}'.sub('{userId}', user_id.to_s)
|
1684
1866
|
operation_signing_strategy = :standard
|
1685
1867
|
|
1868
|
+
# rubocop:disable Style/NegatedIf
|
1686
1869
|
# Query Params
|
1687
1870
|
query_params = {}
|
1688
1871
|
|
@@ -1691,6 +1874,7 @@ module OCI
|
|
1691
1874
|
header_params['accept'] = 'application/json'
|
1692
1875
|
header_params['content-type'] = 'application/json'
|
1693
1876
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1877
|
+
# rubocop:enable Style/NegatedIf
|
1694
1878
|
|
1695
1879
|
post_body = nil
|
1696
1880
|
|
@@ -1730,7 +1914,7 @@ module OCI
|
|
1730
1914
|
# @param [String] compartment_id The OCID of the compartment.
|
1731
1915
|
# @param [Hash] opts the optional parameters
|
1732
1916
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1733
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1917
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1734
1918
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Compartment Compartment}
|
1735
1919
|
def get_compartment(compartment_id, opts = {})
|
1736
1920
|
logger.debug 'Calling operation IdentityClient#get_compartment.' if logger
|
@@ -1741,6 +1925,7 @@ module OCI
|
|
1741
1925
|
path = '/compartments/{compartmentId}'.sub('{compartmentId}', compartment_id.to_s)
|
1742
1926
|
operation_signing_strategy = :standard
|
1743
1927
|
|
1928
|
+
# rubocop:disable Style/NegatedIf
|
1744
1929
|
# Query Params
|
1745
1930
|
query_params = {}
|
1746
1931
|
|
@@ -1748,6 +1933,7 @@ module OCI
|
|
1748
1933
|
header_params = {}
|
1749
1934
|
header_params['accept'] = 'application/json'
|
1750
1935
|
header_params['content-type'] = 'application/json'
|
1936
|
+
# rubocop:enable Style/NegatedIf
|
1751
1937
|
|
1752
1938
|
post_body = nil
|
1753
1939
|
|
@@ -1782,7 +1968,7 @@ module OCI
|
|
1782
1968
|
# @param [String] dynamic_group_id The OCID of the dynamic group.
|
1783
1969
|
# @param [Hash] opts the optional parameters
|
1784
1970
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1785
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
1971
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1786
1972
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::DynamicGroup DynamicGroup}
|
1787
1973
|
def get_dynamic_group(dynamic_group_id, opts = {})
|
1788
1974
|
logger.debug 'Calling operation IdentityClient#get_dynamic_group.' if logger
|
@@ -1793,6 +1979,7 @@ module OCI
|
|
1793
1979
|
path = '/dynamicGroups/{dynamicGroupId}'.sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
1794
1980
|
operation_signing_strategy = :standard
|
1795
1981
|
|
1982
|
+
# rubocop:disable Style/NegatedIf
|
1796
1983
|
# Query Params
|
1797
1984
|
query_params = {}
|
1798
1985
|
|
@@ -1800,6 +1987,7 @@ module OCI
|
|
1800
1987
|
header_params = {}
|
1801
1988
|
header_params['accept'] = 'application/json'
|
1802
1989
|
header_params['content-type'] = 'application/json'
|
1990
|
+
# rubocop:enable Style/NegatedIf
|
1803
1991
|
|
1804
1992
|
post_body = nil
|
1805
1993
|
|
@@ -1838,7 +2026,7 @@ module OCI
|
|
1838
2026
|
# @param [String] group_id The OCID of the group.
|
1839
2027
|
# @param [Hash] opts the optional parameters
|
1840
2028
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1841
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2029
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1842
2030
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Group Group}
|
1843
2031
|
def get_group(group_id, opts = {})
|
1844
2032
|
logger.debug 'Calling operation IdentityClient#get_group.' if logger
|
@@ -1849,6 +2037,7 @@ module OCI
|
|
1849
2037
|
path = '/groups/{groupId}'.sub('{groupId}', group_id.to_s)
|
1850
2038
|
operation_signing_strategy = :standard
|
1851
2039
|
|
2040
|
+
# rubocop:disable Style/NegatedIf
|
1852
2041
|
# Query Params
|
1853
2042
|
query_params = {}
|
1854
2043
|
|
@@ -1856,6 +2045,7 @@ module OCI
|
|
1856
2045
|
header_params = {}
|
1857
2046
|
header_params['accept'] = 'application/json'
|
1858
2047
|
header_params['content-type'] = 'application/json'
|
2048
|
+
# rubocop:enable Style/NegatedIf
|
1859
2049
|
|
1860
2050
|
post_body = nil
|
1861
2051
|
|
@@ -1889,7 +2079,7 @@ module OCI
|
|
1889
2079
|
# @param [String] identity_provider_id The OCID of the identity provider.
|
1890
2080
|
# @param [Hash] opts the optional parameters
|
1891
2081
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1892
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2082
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1893
2083
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::IdentityProvider IdentityProvider}
|
1894
2084
|
def get_identity_provider(identity_provider_id, opts = {})
|
1895
2085
|
logger.debug 'Calling operation IdentityClient#get_identity_provider.' if logger
|
@@ -1900,6 +2090,7 @@ module OCI
|
|
1900
2090
|
path = '/identityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
|
1901
2091
|
operation_signing_strategy = :standard
|
1902
2092
|
|
2093
|
+
# rubocop:disable Style/NegatedIf
|
1903
2094
|
# Query Params
|
1904
2095
|
query_params = {}
|
1905
2096
|
|
@@ -1907,6 +2098,7 @@ module OCI
|
|
1907
2098
|
header_params = {}
|
1908
2099
|
header_params['accept'] = 'application/json'
|
1909
2100
|
header_params['content-type'] = 'application/json'
|
2101
|
+
# rubocop:enable Style/NegatedIf
|
1910
2102
|
|
1911
2103
|
post_body = nil
|
1912
2104
|
|
@@ -1941,7 +2133,7 @@ module OCI
|
|
1941
2133
|
# @param [String] mapping_id The OCID of the group mapping.
|
1942
2134
|
# @param [Hash] opts the optional parameters
|
1943
2135
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1944
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2136
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1945
2137
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::IdpGroupMapping IdpGroupMapping}
|
1946
2138
|
def get_idp_group_mapping(identity_provider_id, mapping_id, opts = {})
|
1947
2139
|
logger.debug 'Calling operation IdentityClient#get_idp_group_mapping.' if logger
|
@@ -1954,6 +2146,7 @@ module OCI
|
|
1954
2146
|
path = '/identityProviders/{identityProviderId}/groupMappings/{mappingId}'.sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1955
2147
|
operation_signing_strategy = :standard
|
1956
2148
|
|
2149
|
+
# rubocop:disable Style/NegatedIf
|
1957
2150
|
# Query Params
|
1958
2151
|
query_params = {}
|
1959
2152
|
|
@@ -1961,6 +2154,7 @@ module OCI
|
|
1961
2154
|
header_params = {}
|
1962
2155
|
header_params['accept'] = 'application/json'
|
1963
2156
|
header_params['content-type'] = 'application/json'
|
2157
|
+
# rubocop:enable Style/NegatedIf
|
1964
2158
|
|
1965
2159
|
post_body = nil
|
1966
2160
|
|
@@ -1994,7 +2188,7 @@ module OCI
|
|
1994
2188
|
# @param [String] policy_id The OCID of the policy.
|
1995
2189
|
# @param [Hash] opts the optional parameters
|
1996
2190
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1997
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2191
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1998
2192
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Policy Policy}
|
1999
2193
|
def get_policy(policy_id, opts = {})
|
2000
2194
|
logger.debug 'Calling operation IdentityClient#get_policy.' if logger
|
@@ -2005,6 +2199,7 @@ module OCI
|
|
2005
2199
|
path = '/policies/{policyId}'.sub('{policyId}', policy_id.to_s)
|
2006
2200
|
operation_signing_strategy = :standard
|
2007
2201
|
|
2202
|
+
# rubocop:disable Style/NegatedIf
|
2008
2203
|
# Query Params
|
2009
2204
|
query_params = {}
|
2010
2205
|
|
@@ -2012,6 +2207,7 @@ module OCI
|
|
2012
2207
|
header_params = {}
|
2013
2208
|
header_params['accept'] = 'application/json'
|
2014
2209
|
header_params['content-type'] = 'application/json'
|
2210
|
+
# rubocop:enable Style/NegatedIf
|
2015
2211
|
|
2016
2212
|
post_body = nil
|
2017
2213
|
|
@@ -2048,7 +2244,7 @@ module OCI
|
|
2048
2244
|
#
|
2049
2245
|
# @param [Hash] opts the optional parameters
|
2050
2246
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2051
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2247
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2052
2248
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Tag Tag}
|
2053
2249
|
def get_tag(tag_namespace_id, tag_name, opts = {})
|
2054
2250
|
logger.debug 'Calling operation IdentityClient#get_tag.' if logger
|
@@ -2061,6 +2257,7 @@ module OCI
|
|
2061
2257
|
path = '/tagNamespaces/{tagNamespaceId}/tags/{tagName}'.sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
2062
2258
|
operation_signing_strategy = :standard
|
2063
2259
|
|
2260
|
+
# rubocop:disable Style/NegatedIf
|
2064
2261
|
# Query Params
|
2065
2262
|
query_params = {}
|
2066
2263
|
|
@@ -2068,6 +2265,7 @@ module OCI
|
|
2068
2265
|
header_params = {}
|
2069
2266
|
header_params['accept'] = 'application/json'
|
2070
2267
|
header_params['content-type'] = 'application/json'
|
2268
|
+
# rubocop:enable Style/NegatedIf
|
2071
2269
|
|
2072
2270
|
post_body = nil
|
2073
2271
|
|
@@ -2103,7 +2301,7 @@ module OCI
|
|
2103
2301
|
#
|
2104
2302
|
# @param [Hash] opts the optional parameters
|
2105
2303
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2106
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2304
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2107
2305
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::TagNamespace TagNamespace}
|
2108
2306
|
def get_tag_namespace(tag_namespace_id, opts = {})
|
2109
2307
|
logger.debug 'Calling operation IdentityClient#get_tag_namespace.' if logger
|
@@ -2114,6 +2312,7 @@ module OCI
|
|
2114
2312
|
path = '/tagNamespaces/{tagNamespaceId}'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2115
2313
|
operation_signing_strategy = :standard
|
2116
2314
|
|
2315
|
+
# rubocop:disable Style/NegatedIf
|
2117
2316
|
# Query Params
|
2118
2317
|
query_params = {}
|
2119
2318
|
|
@@ -2121,6 +2320,7 @@ module OCI
|
|
2121
2320
|
header_params = {}
|
2122
2321
|
header_params['accept'] = 'application/json'
|
2123
2322
|
header_params['content-type'] = 'application/json'
|
2323
|
+
# rubocop:enable Style/NegatedIf
|
2124
2324
|
|
2125
2325
|
post_body = nil
|
2126
2326
|
|
@@ -2154,7 +2354,7 @@ module OCI
|
|
2154
2354
|
# @param [String] tenancy_id The OCID of the tenancy.
|
2155
2355
|
# @param [Hash] opts the optional parameters
|
2156
2356
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2157
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2357
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2158
2358
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Tenancy Tenancy}
|
2159
2359
|
def get_tenancy(tenancy_id, opts = {})
|
2160
2360
|
logger.debug 'Calling operation IdentityClient#get_tenancy.' if logger
|
@@ -2165,6 +2365,7 @@ module OCI
|
|
2165
2365
|
path = '/tenancies/{tenancyId}'.sub('{tenancyId}', tenancy_id.to_s)
|
2166
2366
|
operation_signing_strategy = :standard
|
2167
2367
|
|
2368
|
+
# rubocop:disable Style/NegatedIf
|
2168
2369
|
# Query Params
|
2169
2370
|
query_params = {}
|
2170
2371
|
|
@@ -2172,6 +2373,7 @@ module OCI
|
|
2172
2373
|
header_params = {}
|
2173
2374
|
header_params['accept'] = 'application/json'
|
2174
2375
|
header_params['content-type'] = 'application/json'
|
2376
|
+
# rubocop:enable Style/NegatedIf
|
2175
2377
|
|
2176
2378
|
post_body = nil
|
2177
2379
|
|
@@ -2205,7 +2407,7 @@ module OCI
|
|
2205
2407
|
# @param [String] user_id The OCID of the user.
|
2206
2408
|
# @param [Hash] opts the optional parameters
|
2207
2409
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2208
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2410
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2209
2411
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::User User}
|
2210
2412
|
def get_user(user_id, opts = {})
|
2211
2413
|
logger.debug 'Calling operation IdentityClient#get_user.' if logger
|
@@ -2216,6 +2418,7 @@ module OCI
|
|
2216
2418
|
path = '/users/{userId}'.sub('{userId}', user_id.to_s)
|
2217
2419
|
operation_signing_strategy = :standard
|
2218
2420
|
|
2421
|
+
# rubocop:disable Style/NegatedIf
|
2219
2422
|
# Query Params
|
2220
2423
|
query_params = {}
|
2221
2424
|
|
@@ -2223,6 +2426,7 @@ module OCI
|
|
2223
2426
|
header_params = {}
|
2224
2427
|
header_params['accept'] = 'application/json'
|
2225
2428
|
header_params['content-type'] = 'application/json'
|
2429
|
+
# rubocop:enable Style/NegatedIf
|
2226
2430
|
|
2227
2431
|
post_body = nil
|
2228
2432
|
|
@@ -2256,7 +2460,7 @@ module OCI
|
|
2256
2460
|
# @param [String] user_group_membership_id The OCID of the userGroupMembership.
|
2257
2461
|
# @param [Hash] opts the optional parameters
|
2258
2462
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2259
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2463
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2260
2464
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::UserGroupMembership UserGroupMembership}
|
2261
2465
|
def get_user_group_membership(user_group_membership_id, opts = {})
|
2262
2466
|
logger.debug 'Calling operation IdentityClient#get_user_group_membership.' if logger
|
@@ -2267,6 +2471,7 @@ module OCI
|
|
2267
2471
|
path = '/userGroupMemberships/{userGroupMembershipId}'.sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
2268
2472
|
operation_signing_strategy = :standard
|
2269
2473
|
|
2474
|
+
# rubocop:disable Style/NegatedIf
|
2270
2475
|
# Query Params
|
2271
2476
|
query_params = {}
|
2272
2477
|
|
@@ -2274,6 +2479,7 @@ module OCI
|
|
2274
2479
|
header_params = {}
|
2275
2480
|
header_params['accept'] = 'application/json'
|
2276
2481
|
header_params['content-type'] = 'application/json'
|
2482
|
+
# rubocop:enable Style/NegatedIf
|
2277
2483
|
|
2278
2484
|
post_body = nil
|
2279
2485
|
|
@@ -2311,7 +2517,7 @@ module OCI
|
|
2311
2517
|
# @param [String] user_id The OCID of the user.
|
2312
2518
|
# @param [Hash] opts the optional parameters
|
2313
2519
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2314
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2520
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2315
2521
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::ApiKey ApiKey}>
|
2316
2522
|
def list_api_keys(user_id, opts = {})
|
2317
2523
|
logger.debug 'Calling operation IdentityClient#list_api_keys.' if logger
|
@@ -2322,6 +2528,7 @@ module OCI
|
|
2322
2528
|
path = '/users/{userId}/apiKeys/'.sub('{userId}', user_id.to_s)
|
2323
2529
|
operation_signing_strategy = :standard
|
2324
2530
|
|
2531
|
+
# rubocop:disable Style/NegatedIf
|
2325
2532
|
# Query Params
|
2326
2533
|
query_params = {}
|
2327
2534
|
|
@@ -2329,6 +2536,7 @@ module OCI
|
|
2329
2536
|
header_params = {}
|
2330
2537
|
header_params['accept'] = 'application/json'
|
2331
2538
|
header_params['content-type'] = 'application/json'
|
2539
|
+
# rubocop:enable Style/NegatedIf
|
2332
2540
|
|
2333
2541
|
post_body = nil
|
2334
2542
|
|
@@ -2358,6 +2566,61 @@ module OCI
|
|
2358
2566
|
# rubocop:disable Lint/UnusedMethodArgument
|
2359
2567
|
|
2360
2568
|
|
2569
|
+
# Lists the auth tokens for the specified user. The returned object contains the token's OCID, but not
|
2570
|
+
# the token itself. The actual token is returned only upon creation.
|
2571
|
+
#
|
2572
|
+
# @param [String] user_id The OCID of the user.
|
2573
|
+
# @param [Hash] opts the optional parameters
|
2574
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2575
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2576
|
+
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::AuthToken AuthToken}>
|
2577
|
+
def list_auth_tokens(user_id, opts = {})
|
2578
|
+
logger.debug 'Calling operation IdentityClient#list_auth_tokens.' if logger
|
2579
|
+
|
2580
|
+
raise "Missing the required parameter 'user_id' when calling list_auth_tokens." if user_id.nil?
|
2581
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
|
2582
|
+
|
2583
|
+
path = '/users/{userId}/authTokens/'.sub('{userId}', user_id.to_s)
|
2584
|
+
operation_signing_strategy = :standard
|
2585
|
+
|
2586
|
+
# rubocop:disable Style/NegatedIf
|
2587
|
+
# Query Params
|
2588
|
+
query_params = {}
|
2589
|
+
|
2590
|
+
# Header Params
|
2591
|
+
header_params = {}
|
2592
|
+
header_params['accept'] = 'application/json'
|
2593
|
+
header_params['content-type'] = 'application/json'
|
2594
|
+
# rubocop:enable Style/NegatedIf
|
2595
|
+
|
2596
|
+
post_body = nil
|
2597
|
+
|
2598
|
+
# rubocop:disable Metrics/BlockLength
|
2599
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_auth_tokens') do
|
2600
|
+
@api_client.call_api(
|
2601
|
+
:GET,
|
2602
|
+
path,
|
2603
|
+
endpoint,
|
2604
|
+
header_params: header_params,
|
2605
|
+
query_params: query_params,
|
2606
|
+
operation_signing_strategy: operation_signing_strategy,
|
2607
|
+
body: post_body,
|
2608
|
+
return_type: 'Array<OCI::Identity::Models::AuthToken>'
|
2609
|
+
)
|
2610
|
+
end
|
2611
|
+
# rubocop:enable Metrics/BlockLength
|
2612
|
+
end
|
2613
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2614
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2615
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2616
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
2617
|
+
|
2618
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2619
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2620
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2621
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
2622
|
+
|
2623
|
+
|
2361
2624
|
# Lists the Availability Domains in your tenancy. Specify the OCID of either the tenancy or another
|
2362
2625
|
# of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
|
2363
2626
|
# See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
|
@@ -2366,7 +2629,7 @@ module OCI
|
|
2366
2629
|
#
|
2367
2630
|
# @param [Hash] opts the optional parameters
|
2368
2631
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2369
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2632
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2370
2633
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::AvailabilityDomain AvailabilityDomain}>
|
2371
2634
|
def list_availability_domains(compartment_id, opts = {})
|
2372
2635
|
logger.debug 'Calling operation IdentityClient#list_availability_domains.' if logger
|
@@ -2376,6 +2639,7 @@ module OCI
|
|
2376
2639
|
path = '/availabilityDomains/'
|
2377
2640
|
operation_signing_strategy = :standard
|
2378
2641
|
|
2642
|
+
# rubocop:disable Style/NegatedIf
|
2379
2643
|
# Query Params
|
2380
2644
|
query_params = {}
|
2381
2645
|
query_params[:compartmentId] = compartment_id
|
@@ -2384,6 +2648,7 @@ module OCI
|
|
2384
2648
|
header_params = {}
|
2385
2649
|
header_params['accept'] = 'application/json'
|
2386
2650
|
header_params['content-type'] = 'application/json'
|
2651
|
+
# rubocop:enable Style/NegatedIf
|
2387
2652
|
|
2388
2653
|
post_body = nil
|
2389
2654
|
|
@@ -2420,7 +2685,7 @@ module OCI
|
|
2420
2685
|
#
|
2421
2686
|
# @param [Hash] opts the optional parameters
|
2422
2687
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2423
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2688
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2424
2689
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2425
2690
|
#
|
2426
2691
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2434,6 +2699,7 @@ module OCI
|
|
2434
2699
|
path = '/compartments/'
|
2435
2700
|
operation_signing_strategy = :standard
|
2436
2701
|
|
2702
|
+
# rubocop:disable Style/NegatedIf
|
2437
2703
|
# Query Params
|
2438
2704
|
query_params = {}
|
2439
2705
|
query_params[:compartmentId] = compartment_id
|
@@ -2444,6 +2710,7 @@ module OCI
|
|
2444
2710
|
header_params = {}
|
2445
2711
|
header_params['accept'] = 'application/json'
|
2446
2712
|
header_params['content-type'] = 'application/json'
|
2713
|
+
# rubocop:enable Style/NegatedIf
|
2447
2714
|
|
2448
2715
|
post_body = nil
|
2449
2716
|
|
@@ -2478,7 +2745,7 @@ module OCI
|
|
2478
2745
|
# @param [String] user_id The OCID of the user.
|
2479
2746
|
# @param [Hash] opts the optional parameters
|
2480
2747
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2481
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2748
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2482
2749
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::CustomerSecretKeySummary CustomerSecretKeySummary}>
|
2483
2750
|
def list_customer_secret_keys(user_id, opts = {})
|
2484
2751
|
logger.debug 'Calling operation IdentityClient#list_customer_secret_keys.' if logger
|
@@ -2489,6 +2756,7 @@ module OCI
|
|
2489
2756
|
path = '/users/{userId}/customerSecretKeys/'.sub('{userId}', user_id.to_s)
|
2490
2757
|
operation_signing_strategy = :standard
|
2491
2758
|
|
2759
|
+
# rubocop:disable Style/NegatedIf
|
2492
2760
|
# Query Params
|
2493
2761
|
query_params = {}
|
2494
2762
|
|
@@ -2496,6 +2764,7 @@ module OCI
|
|
2496
2764
|
header_params = {}
|
2497
2765
|
header_params['accept'] = 'application/json'
|
2498
2766
|
header_params['content-type'] = 'application/json'
|
2767
|
+
# rubocop:enable Style/NegatedIf
|
2499
2768
|
|
2500
2769
|
post_body = nil
|
2501
2770
|
|
@@ -2532,7 +2801,7 @@ module OCI
|
|
2532
2801
|
#
|
2533
2802
|
# @param [Hash] opts the optional parameters
|
2534
2803
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2535
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2804
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2536
2805
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2537
2806
|
#
|
2538
2807
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2546,6 +2815,7 @@ module OCI
|
|
2546
2815
|
path = '/dynamicGroups/'
|
2547
2816
|
operation_signing_strategy = :standard
|
2548
2817
|
|
2818
|
+
# rubocop:disable Style/NegatedIf
|
2549
2819
|
# Query Params
|
2550
2820
|
query_params = {}
|
2551
2821
|
query_params[:compartmentId] = compartment_id
|
@@ -2556,6 +2826,7 @@ module OCI
|
|
2556
2826
|
header_params = {}
|
2557
2827
|
header_params['accept'] = 'application/json'
|
2558
2828
|
header_params['content-type'] = 'application/json'
|
2829
|
+
# rubocop:enable Style/NegatedIf
|
2559
2830
|
|
2560
2831
|
post_body = nil
|
2561
2832
|
|
@@ -2591,7 +2862,7 @@ module OCI
|
|
2591
2862
|
#
|
2592
2863
|
# @param [Hash] opts the optional parameters
|
2593
2864
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2594
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2865
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2595
2866
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2596
2867
|
#
|
2597
2868
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2605,6 +2876,7 @@ module OCI
|
|
2605
2876
|
path = '/groups/'
|
2606
2877
|
operation_signing_strategy = :standard
|
2607
2878
|
|
2879
|
+
# rubocop:disable Style/NegatedIf
|
2608
2880
|
# Query Params
|
2609
2881
|
query_params = {}
|
2610
2882
|
query_params[:compartmentId] = compartment_id
|
@@ -2615,6 +2887,7 @@ module OCI
|
|
2615
2887
|
header_params = {}
|
2616
2888
|
header_params['accept'] = 'application/json'
|
2617
2889
|
header_params['content-type'] = 'application/json'
|
2890
|
+
# rubocop:enable Style/NegatedIf
|
2618
2891
|
|
2619
2892
|
post_body = nil
|
2620
2893
|
|
@@ -2653,7 +2926,7 @@ module OCI
|
|
2653
2926
|
#
|
2654
2927
|
# @param [Hash] opts the optional parameters
|
2655
2928
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2656
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2929
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2657
2930
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2658
2931
|
#
|
2659
2932
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2671,6 +2944,7 @@ module OCI
|
|
2671
2944
|
path = '/identityProviders/'
|
2672
2945
|
operation_signing_strategy = :standard
|
2673
2946
|
|
2947
|
+
# rubocop:disable Style/NegatedIf
|
2674
2948
|
# Query Params
|
2675
2949
|
query_params = {}
|
2676
2950
|
query_params[:protocol] = protocol
|
@@ -2682,6 +2956,7 @@ module OCI
|
|
2682
2956
|
header_params = {}
|
2683
2957
|
header_params['accept'] = 'application/json'
|
2684
2958
|
header_params['content-type'] = 'application/json'
|
2959
|
+
# rubocop:enable Style/NegatedIf
|
2685
2960
|
|
2686
2961
|
post_body = nil
|
2687
2962
|
|
@@ -2714,7 +2989,7 @@ module OCI
|
|
2714
2989
|
# @param [String] identity_provider_id The OCID of the identity provider.
|
2715
2990
|
# @param [Hash] opts the optional parameters
|
2716
2991
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2717
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
2992
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2718
2993
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2719
2994
|
#
|
2720
2995
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2729,6 +3004,7 @@ module OCI
|
|
2729
3004
|
path = '/identityProviders/{identityProviderId}/groupMappings/'.sub('{identityProviderId}', identity_provider_id.to_s)
|
2730
3005
|
operation_signing_strategy = :standard
|
2731
3006
|
|
3007
|
+
# rubocop:disable Style/NegatedIf
|
2732
3008
|
# Query Params
|
2733
3009
|
query_params = {}
|
2734
3010
|
query_params[:page] = opts[:page] if opts[:page]
|
@@ -2738,6 +3014,7 @@ module OCI
|
|
2738
3014
|
header_params = {}
|
2739
3015
|
header_params['accept'] = 'application/json'
|
2740
3016
|
header_params['content-type'] = 'application/json'
|
3017
|
+
# rubocop:enable Style/NegatedIf
|
2741
3018
|
|
2742
3019
|
post_body = nil
|
2743
3020
|
|
@@ -2775,7 +3052,7 @@ module OCI
|
|
2775
3052
|
#
|
2776
3053
|
# @param [Hash] opts the optional parameters
|
2777
3054
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2778
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3055
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2779
3056
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
2780
3057
|
#
|
2781
3058
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -2789,6 +3066,7 @@ module OCI
|
|
2789
3066
|
path = '/policies/'
|
2790
3067
|
operation_signing_strategy = :standard
|
2791
3068
|
|
3069
|
+
# rubocop:disable Style/NegatedIf
|
2792
3070
|
# Query Params
|
2793
3071
|
query_params = {}
|
2794
3072
|
query_params[:compartmentId] = compartment_id
|
@@ -2799,6 +3077,7 @@ module OCI
|
|
2799
3077
|
header_params = {}
|
2800
3078
|
header_params['accept'] = 'application/json'
|
2801
3079
|
header_params['content-type'] = 'application/json'
|
3080
|
+
# rubocop:enable Style/NegatedIf
|
2802
3081
|
|
2803
3082
|
post_body = nil
|
2804
3083
|
|
@@ -2831,7 +3110,7 @@ module OCI
|
|
2831
3110
|
# @param [String] tenancy_id The OCID of the tenancy.
|
2832
3111
|
# @param [Hash] opts the optional parameters
|
2833
3112
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2834
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3113
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2835
3114
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::RegionSubscription RegionSubscription}>
|
2836
3115
|
def list_region_subscriptions(tenancy_id, opts = {})
|
2837
3116
|
logger.debug 'Calling operation IdentityClient#list_region_subscriptions.' if logger
|
@@ -2842,6 +3121,7 @@ module OCI
|
|
2842
3121
|
path = '/tenancies/{tenancyId}/regionSubscriptions'.sub('{tenancyId}', tenancy_id.to_s)
|
2843
3122
|
operation_signing_strategy = :standard
|
2844
3123
|
|
3124
|
+
# rubocop:disable Style/NegatedIf
|
2845
3125
|
# Query Params
|
2846
3126
|
query_params = {}
|
2847
3127
|
|
@@ -2849,6 +3129,7 @@ module OCI
|
|
2849
3129
|
header_params = {}
|
2850
3130
|
header_params['accept'] = 'application/json'
|
2851
3131
|
header_params['content-type'] = 'application/json'
|
3132
|
+
# rubocop:enable Style/NegatedIf
|
2852
3133
|
|
2853
3134
|
post_body = nil
|
2854
3135
|
|
@@ -2881,7 +3162,7 @@ module OCI
|
|
2881
3162
|
# Lists all the regions offered by Oracle Cloud Infrastructure.
|
2882
3163
|
# @param [Hash] opts the optional parameters
|
2883
3164
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2884
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3165
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2885
3166
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::Region Region}>
|
2886
3167
|
def list_regions(opts = {})
|
2887
3168
|
logger.debug 'Calling operation IdentityClient#list_regions.' if logger
|
@@ -2890,6 +3171,7 @@ module OCI
|
|
2890
3171
|
path = '/regions'
|
2891
3172
|
operation_signing_strategy = :standard
|
2892
3173
|
|
3174
|
+
# rubocop:disable Style/NegatedIf
|
2893
3175
|
# Query Params
|
2894
3176
|
query_params = {}
|
2895
3177
|
|
@@ -2897,6 +3179,7 @@ module OCI
|
|
2897
3179
|
header_params = {}
|
2898
3180
|
header_params['accept'] = 'application/json'
|
2899
3181
|
header_params['content-type'] = 'application/json'
|
3182
|
+
# rubocop:enable Style/NegatedIf
|
2900
3183
|
|
2901
3184
|
post_body = nil
|
2902
3185
|
|
@@ -2932,7 +3215,7 @@ module OCI
|
|
2932
3215
|
# @param [String] user_id The OCID of the user.
|
2933
3216
|
# @param [Hash] opts the optional parameters
|
2934
3217
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2935
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3218
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2936
3219
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::SmtpCredentialSummary SmtpCredentialSummary}>
|
2937
3220
|
def list_smtp_credentials(user_id, opts = {})
|
2938
3221
|
logger.debug 'Calling operation IdentityClient#list_smtp_credentials.' if logger
|
@@ -2943,6 +3226,7 @@ module OCI
|
|
2943
3226
|
path = '/users/{userId}/smtpCredentials/'.sub('{userId}', user_id.to_s)
|
2944
3227
|
operation_signing_strategy = :standard
|
2945
3228
|
|
3229
|
+
# rubocop:disable Style/NegatedIf
|
2946
3230
|
# Query Params
|
2947
3231
|
query_params = {}
|
2948
3232
|
|
@@ -2950,6 +3234,7 @@ module OCI
|
|
2950
3234
|
header_params = {}
|
2951
3235
|
header_params['accept'] = 'application/json'
|
2952
3236
|
header_params['content-type'] = 'application/json'
|
3237
|
+
# rubocop:enable Style/NegatedIf
|
2953
3238
|
|
2954
3239
|
post_body = nil
|
2955
3240
|
|
@@ -2979,13 +3264,15 @@ module OCI
|
|
2979
3264
|
# rubocop:disable Lint/UnusedMethodArgument
|
2980
3265
|
|
2981
3266
|
|
3267
|
+
# **Deprecated. Use {#list_auth_tokens list_auth_tokens} instead.**
|
3268
|
+
#
|
2982
3269
|
# Lists the Swift passwords for the specified user. The returned object contains the password's OCID, but not
|
2983
3270
|
# the password itself. The actual password is returned only upon creation.
|
2984
3271
|
#
|
2985
3272
|
# @param [String] user_id The OCID of the user.
|
2986
3273
|
# @param [Hash] opts the optional parameters
|
2987
3274
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2988
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3275
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2989
3276
|
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::SwiftPassword SwiftPassword}>
|
2990
3277
|
def list_swift_passwords(user_id, opts = {})
|
2991
3278
|
logger.debug 'Calling operation IdentityClient#list_swift_passwords.' if logger
|
@@ -2996,6 +3283,7 @@ module OCI
|
|
2996
3283
|
path = '/users/{userId}/swiftPasswords/'.sub('{userId}', user_id.to_s)
|
2997
3284
|
operation_signing_strategy = :standard
|
2998
3285
|
|
3286
|
+
# rubocop:disable Style/NegatedIf
|
2999
3287
|
# Query Params
|
3000
3288
|
query_params = {}
|
3001
3289
|
|
@@ -3003,6 +3291,7 @@ module OCI
|
|
3003
3291
|
header_params = {}
|
3004
3292
|
header_params['accept'] = 'application/json'
|
3005
3293
|
header_params['content-type'] = 'application/json'
|
3294
|
+
# rubocop:enable Style/NegatedIf
|
3006
3295
|
|
3007
3296
|
post_body = nil
|
3008
3297
|
|
@@ -3037,7 +3326,7 @@ module OCI
|
|
3037
3326
|
#
|
3038
3327
|
# @param [Hash] opts the optional parameters
|
3039
3328
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3040
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3329
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3041
3330
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
3042
3331
|
#
|
3043
3332
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -3054,17 +3343,19 @@ module OCI
|
|
3054
3343
|
path = '/tagNamespaces'
|
3055
3344
|
operation_signing_strategy = :standard
|
3056
3345
|
|
3346
|
+
# rubocop:disable Style/NegatedIf
|
3057
3347
|
# Query Params
|
3058
3348
|
query_params = {}
|
3059
3349
|
query_params[:compartmentId] = compartment_id
|
3060
3350
|
query_params[:page] = opts[:page] if opts[:page]
|
3061
3351
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
3062
|
-
query_params[:includeSubcompartments] = opts[:include_subcompartments] if opts[:include_subcompartments]
|
3352
|
+
query_params[:includeSubcompartments] = opts[:include_subcompartments] if !opts[:include_subcompartments].nil?
|
3063
3353
|
|
3064
3354
|
# Header Params
|
3065
3355
|
header_params = {}
|
3066
3356
|
header_params['accept'] = 'application/json'
|
3067
3357
|
header_params['content-type'] = 'application/json'
|
3358
|
+
# rubocop:enable Style/NegatedIf
|
3068
3359
|
|
3069
3360
|
post_body = nil
|
3070
3361
|
|
@@ -3098,7 +3389,7 @@ module OCI
|
|
3098
3389
|
#
|
3099
3390
|
# @param [Hash] opts the optional parameters
|
3100
3391
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3101
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3392
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3102
3393
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
3103
3394
|
#
|
3104
3395
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -3113,6 +3404,7 @@ module OCI
|
|
3113
3404
|
path = '/tagNamespaces/{tagNamespaceId}/tags'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
3114
3405
|
operation_signing_strategy = :standard
|
3115
3406
|
|
3407
|
+
# rubocop:disable Style/NegatedIf
|
3116
3408
|
# Query Params
|
3117
3409
|
query_params = {}
|
3118
3410
|
query_params[:page] = opts[:page] if opts[:page]
|
@@ -3122,6 +3414,7 @@ module OCI
|
|
3122
3414
|
header_params = {}
|
3123
3415
|
header_params['accept'] = 'application/json'
|
3124
3416
|
header_params['content-type'] = 'application/json'
|
3417
|
+
# rubocop:enable Style/NegatedIf
|
3125
3418
|
|
3126
3419
|
post_body = nil
|
3127
3420
|
|
@@ -3164,7 +3457,7 @@ module OCI
|
|
3164
3457
|
#
|
3165
3458
|
# @param [Hash] opts the optional parameters
|
3166
3459
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3167
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3460
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3168
3461
|
# @option opts [String] :user_id The OCID of the user.
|
3169
3462
|
# @option opts [String] :group_id The OCID of the group.
|
3170
3463
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
@@ -3180,6 +3473,7 @@ module OCI
|
|
3180
3473
|
path = '/userGroupMemberships/'
|
3181
3474
|
operation_signing_strategy = :standard
|
3182
3475
|
|
3476
|
+
# rubocop:disable Style/NegatedIf
|
3183
3477
|
# Query Params
|
3184
3478
|
query_params = {}
|
3185
3479
|
query_params[:compartmentId] = compartment_id
|
@@ -3192,6 +3486,7 @@ module OCI
|
|
3192
3486
|
header_params = {}
|
3193
3487
|
header_params['accept'] = 'application/json'
|
3194
3488
|
header_params['content-type'] = 'application/json'
|
3489
|
+
# rubocop:enable Style/NegatedIf
|
3195
3490
|
|
3196
3491
|
post_body = nil
|
3197
3492
|
|
@@ -3227,7 +3522,7 @@ module OCI
|
|
3227
3522
|
#
|
3228
3523
|
# @param [Hash] opts the optional parameters
|
3229
3524
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3230
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3525
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3231
3526
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
3232
3527
|
#
|
3233
3528
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
@@ -3241,6 +3536,7 @@ module OCI
|
|
3241
3536
|
path = '/users/'
|
3242
3537
|
operation_signing_strategy = :standard
|
3243
3538
|
|
3539
|
+
# rubocop:disable Style/NegatedIf
|
3244
3540
|
# Query Params
|
3245
3541
|
query_params = {}
|
3246
3542
|
query_params[:compartmentId] = compartment_id
|
@@ -3251,6 +3547,7 @@ module OCI
|
|
3251
3547
|
header_params = {}
|
3252
3548
|
header_params['accept'] = 'application/json'
|
3253
3549
|
header_params['content-type'] = 'application/json'
|
3550
|
+
# rubocop:enable Style/NegatedIf
|
3254
3551
|
|
3255
3552
|
post_body = nil
|
3256
3553
|
|
@@ -3282,7 +3579,7 @@ module OCI
|
|
3282
3579
|
# @param [String] user_group_membership_id The OCID of the userGroupMembership.
|
3283
3580
|
# @param [Hash] opts the optional parameters
|
3284
3581
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3285
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3582
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3286
3583
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3287
3584
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3288
3585
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3297,6 +3594,7 @@ module OCI
|
|
3297
3594
|
path = '/userGroupMemberships/{userGroupMembershipId}'.sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
3298
3595
|
operation_signing_strategy = :standard
|
3299
3596
|
|
3597
|
+
# rubocop:disable Style/NegatedIf
|
3300
3598
|
# Query Params
|
3301
3599
|
query_params = {}
|
3302
3600
|
|
@@ -3305,6 +3603,7 @@ module OCI
|
|
3305
3603
|
header_params['accept'] = 'application/json'
|
3306
3604
|
header_params['content-type'] = 'application/json'
|
3307
3605
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3606
|
+
# rubocop:enable Style/NegatedIf
|
3308
3607
|
|
3309
3608
|
post_body = nil
|
3310
3609
|
|
@@ -3331,12 +3630,74 @@ module OCI
|
|
3331
3630
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3332
3631
|
|
3333
3632
|
|
3633
|
+
# Updates the specified auth token's description.
|
3634
|
+
#
|
3635
|
+
# @param [String] user_id The OCID of the user.
|
3636
|
+
# @param [String] auth_token_id The OCID of the auth token.
|
3637
|
+
# @param [OCI::Identity::Models::UpdateAuthTokenDetails] update_auth_token_details Request object for updating an auth token.
|
3638
|
+
# @param [Hash] opts the optional parameters
|
3639
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3640
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3641
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3642
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3643
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3644
|
+
#
|
3645
|
+
# @return [Response] A Response object with data of type {OCI::Identity::Models::AuthToken AuthToken}
|
3646
|
+
def update_auth_token(user_id, auth_token_id, update_auth_token_details, opts = {})
|
3647
|
+
logger.debug 'Calling operation IdentityClient#update_auth_token.' if logger
|
3648
|
+
|
3649
|
+
raise "Missing the required parameter 'user_id' when calling update_auth_token." if user_id.nil?
|
3650
|
+
raise "Missing the required parameter 'auth_token_id' when calling update_auth_token." if auth_token_id.nil?
|
3651
|
+
raise "Missing the required parameter 'update_auth_token_details' when calling update_auth_token." if update_auth_token_details.nil?
|
3652
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
|
3653
|
+
raise "Parameter value for 'auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(auth_token_id)
|
3654
|
+
|
3655
|
+
path = '/users/{userId}/authTokens/{authTokenId}'.sub('{userId}', user_id.to_s).sub('{authTokenId}', auth_token_id.to_s)
|
3656
|
+
operation_signing_strategy = :standard
|
3657
|
+
|
3658
|
+
# rubocop:disable Style/NegatedIf
|
3659
|
+
# Query Params
|
3660
|
+
query_params = {}
|
3661
|
+
|
3662
|
+
# Header Params
|
3663
|
+
header_params = {}
|
3664
|
+
header_params['accept'] = 'application/json'
|
3665
|
+
header_params['content-type'] = 'application/json'
|
3666
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3667
|
+
# rubocop:enable Style/NegatedIf
|
3668
|
+
|
3669
|
+
post_body = @api_client.object_to_http_body(update_auth_token_details)
|
3670
|
+
|
3671
|
+
# rubocop:disable Metrics/BlockLength
|
3672
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#update_auth_token') do
|
3673
|
+
@api_client.call_api(
|
3674
|
+
:PUT,
|
3675
|
+
path,
|
3676
|
+
endpoint,
|
3677
|
+
header_params: header_params,
|
3678
|
+
query_params: query_params,
|
3679
|
+
operation_signing_strategy: operation_signing_strategy,
|
3680
|
+
body: post_body,
|
3681
|
+
return_type: 'OCI::Identity::Models::AuthToken'
|
3682
|
+
)
|
3683
|
+
end
|
3684
|
+
# rubocop:enable Metrics/BlockLength
|
3685
|
+
end
|
3686
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3687
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3688
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3689
|
+
|
3690
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3691
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3692
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3693
|
+
|
3694
|
+
|
3334
3695
|
# Updates the specified compartment's description or name. You can't update the root compartment.
|
3335
3696
|
# @param [String] compartment_id The OCID of the compartment.
|
3336
3697
|
# @param [OCI::Identity::Models::UpdateCompartmentDetails] update_compartment_details Request object for updating a compartment.
|
3337
3698
|
# @param [Hash] opts the optional parameters
|
3338
3699
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3339
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3700
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3340
3701
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3341
3702
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3342
3703
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3352,6 +3713,7 @@ module OCI
|
|
3352
3713
|
path = '/compartments/{compartmentId}'.sub('{compartmentId}', compartment_id.to_s)
|
3353
3714
|
operation_signing_strategy = :standard
|
3354
3715
|
|
3716
|
+
# rubocop:disable Style/NegatedIf
|
3355
3717
|
# Query Params
|
3356
3718
|
query_params = {}
|
3357
3719
|
|
@@ -3360,6 +3722,7 @@ module OCI
|
|
3360
3722
|
header_params['accept'] = 'application/json'
|
3361
3723
|
header_params['content-type'] = 'application/json'
|
3362
3724
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3725
|
+
# rubocop:enable Style/NegatedIf
|
3363
3726
|
|
3364
3727
|
post_body = @api_client.object_to_http_body(update_compartment_details)
|
3365
3728
|
|
@@ -3394,7 +3757,7 @@ module OCI
|
|
3394
3757
|
# @param [OCI::Identity::Models::UpdateCustomerSecretKeyDetails] update_customer_secret_key_details Request object for updating a secret key.
|
3395
3758
|
# @param [Hash] opts the optional parameters
|
3396
3759
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3397
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3760
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3398
3761
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3399
3762
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3400
3763
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3412,6 +3775,7 @@ module OCI
|
|
3412
3775
|
path = '/users/{userId}/customerSecretKeys/{customerSecretKeyId}'.sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
3413
3776
|
operation_signing_strategy = :standard
|
3414
3777
|
|
3778
|
+
# rubocop:disable Style/NegatedIf
|
3415
3779
|
# Query Params
|
3416
3780
|
query_params = {}
|
3417
3781
|
|
@@ -3420,6 +3784,7 @@ module OCI
|
|
3420
3784
|
header_params['accept'] = 'application/json'
|
3421
3785
|
header_params['content-type'] = 'application/json'
|
3422
3786
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3787
|
+
# rubocop:enable Style/NegatedIf
|
3423
3788
|
|
3424
3789
|
post_body = @api_client.object_to_http_body(update_customer_secret_key_details)
|
3425
3790
|
|
@@ -3452,7 +3817,7 @@ module OCI
|
|
3452
3817
|
# @param [OCI::Identity::Models::UpdateDynamicGroupDetails] update_dynamic_group_details Request object for updating an dynamic group.
|
3453
3818
|
# @param [Hash] opts the optional parameters
|
3454
3819
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3455
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3820
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3456
3821
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3457
3822
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3458
3823
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3468,6 +3833,7 @@ module OCI
|
|
3468
3833
|
path = '/dynamicGroups/{dynamicGroupId}'.sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
3469
3834
|
operation_signing_strategy = :standard
|
3470
3835
|
|
3836
|
+
# rubocop:disable Style/NegatedIf
|
3471
3837
|
# Query Params
|
3472
3838
|
query_params = {}
|
3473
3839
|
|
@@ -3476,6 +3842,7 @@ module OCI
|
|
3476
3842
|
header_params['accept'] = 'application/json'
|
3477
3843
|
header_params['content-type'] = 'application/json'
|
3478
3844
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3845
|
+
# rubocop:enable Style/NegatedIf
|
3479
3846
|
|
3480
3847
|
post_body = @api_client.object_to_http_body(update_dynamic_group_details)
|
3481
3848
|
|
@@ -3508,7 +3875,7 @@ module OCI
|
|
3508
3875
|
# @param [OCI::Identity::Models::UpdateGroupDetails] update_group_details Request object for updating a group.
|
3509
3876
|
# @param [Hash] opts the optional parameters
|
3510
3877
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3511
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3878
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3512
3879
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3513
3880
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3514
3881
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3524,6 +3891,7 @@ module OCI
|
|
3524
3891
|
path = '/groups/{groupId}'.sub('{groupId}', group_id.to_s)
|
3525
3892
|
operation_signing_strategy = :standard
|
3526
3893
|
|
3894
|
+
# rubocop:disable Style/NegatedIf
|
3527
3895
|
# Query Params
|
3528
3896
|
query_params = {}
|
3529
3897
|
|
@@ -3532,6 +3900,7 @@ module OCI
|
|
3532
3900
|
header_params['accept'] = 'application/json'
|
3533
3901
|
header_params['content-type'] = 'application/json'
|
3534
3902
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3903
|
+
# rubocop:enable Style/NegatedIf
|
3535
3904
|
|
3536
3905
|
post_body = @api_client.object_to_http_body(update_group_details)
|
3537
3906
|
|
@@ -3564,7 +3933,7 @@ module OCI
|
|
3564
3933
|
# @param [OCI::Identity::Models::UpdateIdentityProviderDetails] update_identity_provider_details Request object for updating a identity provider.
|
3565
3934
|
# @param [Hash] opts the optional parameters
|
3566
3935
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3567
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3936
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3568
3937
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3569
3938
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3570
3939
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3580,6 +3949,7 @@ module OCI
|
|
3580
3949
|
path = '/identityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
|
3581
3950
|
operation_signing_strategy = :standard
|
3582
3951
|
|
3952
|
+
# rubocop:disable Style/NegatedIf
|
3583
3953
|
# Query Params
|
3584
3954
|
query_params = {}
|
3585
3955
|
|
@@ -3588,6 +3958,7 @@ module OCI
|
|
3588
3958
|
header_params['accept'] = 'application/json'
|
3589
3959
|
header_params['content-type'] = 'application/json'
|
3590
3960
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3961
|
+
# rubocop:enable Style/NegatedIf
|
3591
3962
|
|
3592
3963
|
post_body = @api_client.object_to_http_body(update_identity_provider_details)
|
3593
3964
|
|
@@ -3621,7 +3992,7 @@ module OCI
|
|
3621
3992
|
# @param [OCI::Identity::Models::UpdateIdpGroupMappingDetails] update_idp_group_mapping_details Request object for updating an identity provider group mapping
|
3622
3993
|
# @param [Hash] opts the optional parameters
|
3623
3994
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3624
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
3995
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3625
3996
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3626
3997
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3627
3998
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3639,6 +4010,7 @@ module OCI
|
|
3639
4010
|
path = '/identityProviders/{identityProviderId}/groupMappings/{mappingId}'.sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
3640
4011
|
operation_signing_strategy = :standard
|
3641
4012
|
|
4013
|
+
# rubocop:disable Style/NegatedIf
|
3642
4014
|
# Query Params
|
3643
4015
|
query_params = {}
|
3644
4016
|
|
@@ -3647,6 +4019,7 @@ module OCI
|
|
3647
4019
|
header_params['accept'] = 'application/json'
|
3648
4020
|
header_params['content-type'] = 'application/json'
|
3649
4021
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4022
|
+
# rubocop:enable Style/NegatedIf
|
3650
4023
|
|
3651
4024
|
post_body = @api_client.object_to_http_body(update_idp_group_mapping_details)
|
3652
4025
|
|
@@ -3682,7 +4055,7 @@ module OCI
|
|
3682
4055
|
# @param [OCI::Identity::Models::UpdatePolicyDetails] update_policy_details Request object for updating a policy.
|
3683
4056
|
# @param [Hash] opts the optional parameters
|
3684
4057
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3685
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4058
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3686
4059
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3687
4060
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3688
4061
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3698,6 +4071,7 @@ module OCI
|
|
3698
4071
|
path = '/policies/{policyId}'.sub('{policyId}', policy_id.to_s)
|
3699
4072
|
operation_signing_strategy = :standard
|
3700
4073
|
|
4074
|
+
# rubocop:disable Style/NegatedIf
|
3701
4075
|
# Query Params
|
3702
4076
|
query_params = {}
|
3703
4077
|
|
@@ -3706,6 +4080,7 @@ module OCI
|
|
3706
4080
|
header_params['accept'] = 'application/json'
|
3707
4081
|
header_params['content-type'] = 'application/json'
|
3708
4082
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4083
|
+
# rubocop:enable Style/NegatedIf
|
3709
4084
|
|
3710
4085
|
post_body = @api_client.object_to_http_body(update_policy_details)
|
3711
4086
|
|
@@ -3740,7 +4115,7 @@ module OCI
|
|
3740
4115
|
# @param [OCI::Identity::Models::UpdateSmtpCredentialDetails] update_smtp_credential_details Request object for updating a SMTP credential.
|
3741
4116
|
# @param [Hash] opts the optional parameters
|
3742
4117
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3743
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4118
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3744
4119
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3745
4120
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3746
4121
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3758,6 +4133,7 @@ module OCI
|
|
3758
4133
|
path = '/users/{userId}/smtpCredentials/{smtpCredentialId}'.sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
3759
4134
|
operation_signing_strategy = :standard
|
3760
4135
|
|
4136
|
+
# rubocop:disable Style/NegatedIf
|
3761
4137
|
# Query Params
|
3762
4138
|
query_params = {}
|
3763
4139
|
|
@@ -3766,6 +4142,7 @@ module OCI
|
|
3766
4142
|
header_params['accept'] = 'application/json'
|
3767
4143
|
header_params['content-type'] = 'application/json'
|
3768
4144
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4145
|
+
# rubocop:enable Style/NegatedIf
|
3769
4146
|
|
3770
4147
|
post_body = @api_client.object_to_http_body(update_smtp_credential_details)
|
3771
4148
|
|
@@ -3793,6 +4170,8 @@ module OCI
|
|
3793
4170
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3794
4171
|
|
3795
4172
|
|
4173
|
+
# **Deprecated. Use {#update_auth_token update_auth_token} instead.**
|
4174
|
+
#
|
3796
4175
|
# Updates the specified Swift password's description.
|
3797
4176
|
#
|
3798
4177
|
# @param [String] user_id The OCID of the user.
|
@@ -3800,7 +4179,7 @@ module OCI
|
|
3800
4179
|
# @param [OCI::Identity::Models::UpdateSwiftPasswordDetails] update_swift_password_details Request object for updating a Swift password.
|
3801
4180
|
# @param [Hash] opts the optional parameters
|
3802
4181
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3803
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4182
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3804
4183
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3805
4184
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3806
4185
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3818,6 +4197,7 @@ module OCI
|
|
3818
4197
|
path = '/users/{userId}/swiftPasswords/{swiftPasswordId}'.sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
3819
4198
|
operation_signing_strategy = :standard
|
3820
4199
|
|
4200
|
+
# rubocop:disable Style/NegatedIf
|
3821
4201
|
# Query Params
|
3822
4202
|
query_params = {}
|
3823
4203
|
|
@@ -3826,6 +4206,7 @@ module OCI
|
|
3826
4206
|
header_params['accept'] = 'application/json'
|
3827
4207
|
header_params['content-type'] = 'application/json'
|
3828
4208
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4209
|
+
# rubocop:enable Style/NegatedIf
|
3829
4210
|
|
3830
4211
|
post_body = @api_client.object_to_http_body(update_swift_password_details)
|
3831
4212
|
|
@@ -3863,7 +4244,7 @@ module OCI
|
|
3863
4244
|
# @param [OCI::Identity::Models::UpdateTagDetails] update_tag_details Request object for updating a tag.
|
3864
4245
|
# @param [Hash] opts the optional parameters
|
3865
4246
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3866
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4247
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3867
4248
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::Tag Tag}
|
3868
4249
|
def update_tag(tag_namespace_id, tag_name, update_tag_details, opts = {})
|
3869
4250
|
logger.debug 'Calling operation IdentityClient#update_tag.' if logger
|
@@ -3877,6 +4258,7 @@ module OCI
|
|
3877
4258
|
path = '/tagNamespaces/{tagNamespaceId}/tags/{tagName}'.sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
3878
4259
|
operation_signing_strategy = :standard
|
3879
4260
|
|
4261
|
+
# rubocop:disable Style/NegatedIf
|
3880
4262
|
# Query Params
|
3881
4263
|
query_params = {}
|
3882
4264
|
|
@@ -3884,6 +4266,7 @@ module OCI
|
|
3884
4266
|
header_params = {}
|
3885
4267
|
header_params['accept'] = 'application/json'
|
3886
4268
|
header_params['content-type'] = 'application/json'
|
4269
|
+
# rubocop:enable Style/NegatedIf
|
3887
4270
|
|
3888
4271
|
post_body = @api_client.object_to_http_body(update_tag_details)
|
3889
4272
|
|
@@ -3928,7 +4311,7 @@ module OCI
|
|
3928
4311
|
# @param [OCI::Identity::Models::UpdateTagNamespaceDetails] update_tag_namespace_details Request object for updating a namespace.
|
3929
4312
|
# @param [Hash] opts the optional parameters
|
3930
4313
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3931
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4314
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3932
4315
|
# @return [Response] A Response object with data of type {OCI::Identity::Models::TagNamespace TagNamespace}
|
3933
4316
|
def update_tag_namespace(tag_namespace_id, update_tag_namespace_details, opts = {})
|
3934
4317
|
logger.debug 'Calling operation IdentityClient#update_tag_namespace.' if logger
|
@@ -3940,6 +4323,7 @@ module OCI
|
|
3940
4323
|
path = '/tagNamespaces/{tagNamespaceId}'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
3941
4324
|
operation_signing_strategy = :standard
|
3942
4325
|
|
4326
|
+
# rubocop:disable Style/NegatedIf
|
3943
4327
|
# Query Params
|
3944
4328
|
query_params = {}
|
3945
4329
|
|
@@ -3947,6 +4331,7 @@ module OCI
|
|
3947
4331
|
header_params = {}
|
3948
4332
|
header_params['accept'] = 'application/json'
|
3949
4333
|
header_params['content-type'] = 'application/json'
|
4334
|
+
# rubocop:enable Style/NegatedIf
|
3950
4335
|
|
3951
4336
|
post_body = @api_client.object_to_http_body(update_tag_namespace_details)
|
3952
4337
|
|
@@ -3980,7 +4365,7 @@ module OCI
|
|
3980
4365
|
# @param [OCI::Identity::Models::UpdateUserDetails] update_user_details Request object for updating a user.
|
3981
4366
|
# @param [Hash] opts the optional parameters
|
3982
4367
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3983
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4368
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3984
4369
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3985
4370
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3986
4371
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -3996,6 +4381,7 @@ module OCI
|
|
3996
4381
|
path = '/users/{userId}'.sub('{userId}', user_id.to_s)
|
3997
4382
|
operation_signing_strategy = :standard
|
3998
4383
|
|
4384
|
+
# rubocop:disable Style/NegatedIf
|
3999
4385
|
# Query Params
|
4000
4386
|
query_params = {}
|
4001
4387
|
|
@@ -4004,6 +4390,7 @@ module OCI
|
|
4004
4390
|
header_params['accept'] = 'application/json'
|
4005
4391
|
header_params['content-type'] = 'application/json'
|
4006
4392
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4393
|
+
# rubocop:enable Style/NegatedIf
|
4007
4394
|
|
4008
4395
|
post_body = @api_client.object_to_http_body(update_user_details)
|
4009
4396
|
|
@@ -4037,7 +4424,7 @@ module OCI
|
|
4037
4424
|
# @param [OCI::Identity::Models::UpdateStateDetails] update_state_details Request object for updating a user state.
|
4038
4425
|
# @param [Hash] opts the optional parameters
|
4039
4426
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4040
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4427
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4041
4428
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4042
4429
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4043
4430
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -4053,6 +4440,7 @@ module OCI
|
|
4053
4440
|
path = '/users/{userId}/state/'.sub('{userId}', user_id.to_s)
|
4054
4441
|
operation_signing_strategy = :standard
|
4055
4442
|
|
4443
|
+
# rubocop:disable Style/NegatedIf
|
4056
4444
|
# Query Params
|
4057
4445
|
query_params = {}
|
4058
4446
|
|
@@ -4061,6 +4449,7 @@ module OCI
|
|
4061
4449
|
header_params['accept'] = 'application/json'
|
4062
4450
|
header_params['content-type'] = 'application/json'
|
4063
4451
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4452
|
+
# rubocop:enable Style/NegatedIf
|
4064
4453
|
|
4065
4454
|
post_body = @api_client.object_to_http_body(update_state_details)
|
4066
4455
|
|
@@ -4108,7 +4497,7 @@ module OCI
|
|
4108
4497
|
# @param [OCI::Identity::Models::CreateApiKeyDetails] create_api_key_details Request object for uploading an API key for a user.
|
4109
4498
|
# @param [Hash] opts the optional parameters
|
4110
4499
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4111
|
-
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then
|
4500
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4112
4501
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
4113
4502
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
4114
4503
|
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
@@ -4126,6 +4515,7 @@ module OCI
|
|
4126
4515
|
path = '/users/{userId}/apiKeys/'.sub('{userId}', user_id.to_s)
|
4127
4516
|
operation_signing_strategy = :standard
|
4128
4517
|
|
4518
|
+
# rubocop:disable Style/NegatedIf
|
4129
4519
|
# Query Params
|
4130
4520
|
query_params = {}
|
4131
4521
|
|
@@ -4134,6 +4524,7 @@ module OCI
|
|
4134
4524
|
header_params['accept'] = 'application/json'
|
4135
4525
|
header_params['content-type'] = 'application/json'
|
4136
4526
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
4527
|
+
# rubocop:enable Style/NegatedIf
|
4137
4528
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
4138
4529
|
|
4139
4530
|
post_body = @api_client.object_to_http_body(create_api_key_details)
|