Class: OCI::IdentityDomains::IdentityDomainsClient

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/identity_domains_client.rb

Overview

Use the Identity Domains API to manage resources within an identity domain, for example, users, dynamic resource groups, groups, and identity providers. For information about managing resources within identity domains, see Identity and Access Management (with identity domains). This REST API is SCIM compliant. Use the table of contents and search tool to explore the Identity Domains API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ IdentityDomainsClient

Creates a new IdentityDomainsClient. Notes: If a config is not specified, then the global OCI.config will be used.

This client is not thread-safe

Parameters:

  • config (Config) (defaults to: nil)

    A Config object.

  • endpoint (String) (defaults to: nil)

    The fully qualified endpoint URL

  • signer (OCI::BaseSigner) (defaults to: nil)

    A signer implementation which can be used by this client. If this is not provided then a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication, so that the instance principals signer can be provided to the client

  • proxy_settings (OCI::ApiClientProxySettings) (defaults to: nil)

    If your environment requires you to use a proxy server for outgoing HTTP requests the details for the proxy can be provided in this parameter

  • retry_config (OCI::Retry::RetryConfig) (defaults to: nil)

    The retry configuration for this service client. This represents the default retry configuration to apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is nil, which means that an operation will not perform any retries



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 46

def initialize(config: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
  raise 'A fully qualified endpoint URL must be defined' unless endpoint

  @endpoint = endpoint + ''

  # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
  # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
  # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
  # pass it to this constructor.
  #
  # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
  # so try and load the config from the default file.
  config = OCI::Config.validate_and_build_config_with_signer(config, signer)

  signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?

  @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
  @retry_config = retry_config
  logger.info "IdentityDomainsClient endpoint set to '#{@endpoint}'." if logger
end

Instance Attribute Details

#api_clientOCI::ApiClient (readonly)

Client used to make HTTP requests.

Returns:



16
17
18
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16

def api_client
  @api_client
end

#endpointString (readonly)

Fully qualified endpoint URL

Returns:

  • (String)


20
21
22
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20

def endpoint
  @endpoint
end

#retry_configOCI::Retry::RetryConfig (readonly)

The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil, which means that an operation will not perform any retries



26
27
28
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 26

def retry_config
  @retry_config
end

Instance Method Details

#create_api_key(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_api_key API.

Create a user's API key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :api_key (OCI::IdentityDomains::Models::ApiKey)

    ApiKey schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 104

def create_api_key(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_api_key.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApiKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:api_key])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_api_key') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_app(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_app API.

Create an App

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :app (OCI::IdentityDomains::Models::App)

    App schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type App



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 189

def create_app(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_app.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Apps'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_app') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::App'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_app_role(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_app_role API.

Create an AppRole

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :app_role (OCI::IdentityDomains::Models::AppRole)

    AppRole schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 274

def create_app_role(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_app_role.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AppRoles'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app_role])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_app_role') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppRole'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_approval_workflow(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_approval_workflow API.

Create ApprovalWorkflow

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :approval_workflow (OCI::IdentityDomains::Models::ApprovalWorkflow)

    ApprovalWorkflow schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 359

def create_approval_workflow(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_approval_workflow.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflows'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:approval_workflow])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_approval_workflow') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflow'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_approval_workflow_assignment(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_approval_workflow_assignment API.

Create Approval Workflow Assignment

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :approval_workflow_assignment (OCI::IdentityDomains::Models::ApprovalWorkflowAssignment)

    ApprovalWorkflowAssignment schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 444

def create_approval_workflow_assignment(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_approval_workflow_assignment.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflowAssignments'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:approval_workflow_assignment])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_approval_workflow_assignment') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowAssignment'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_approval_workflow_step(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_approval_workflow_step API.

Create ApprovalWorkflowStep

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :approval_workflow_step (OCI::IdentityDomains::Models::ApprovalWorkflowStep)

    ApprovalWorkflowStep schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 529

def create_approval_workflow_step(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_approval_workflow_step.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflowSteps'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:approval_workflow_step])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_approval_workflow_step') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowStep'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_auth_token(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_auth_token API.

Create a user's Auth token.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :auth_token (OCI::IdentityDomains::Models::AuthToken)

    AuthToken schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 614

def create_auth_token(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_auth_token.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AuthTokens'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:auth_token])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_auth_token') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_authentication_factors_remover(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_authentication_factors_remover API.

Remove All Authentication Factor Channels for a User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :authentication_factors_remover (OCI::IdentityDomains::Models::AuthenticationFactorsRemover)

    AuthenticationFactorsRemover schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 696

def create_authentication_factors_remover(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_authentication_factors_remover.' if logger


  path = '/admin/v1/AuthenticationFactorsRemover'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:authentication_factors_remover])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_authentication_factors_remover') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthenticationFactorsRemover'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_cloud_gate(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_cloud_gate API.

Create a Cloud Gate

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate (OCI::IdentityDomains::Models::CloudGate)

    CloudGate schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 769

def create_cloud_gate(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_cloud_gate.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_cloud_gate') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_cloud_gate_mapping(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_cloud_gate_mapping API.

Create a Cloud Gate mapping

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate_mapping (OCI::IdentityDomains::Models::CloudGateMapping)

    CloudGateMapping schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 854

def create_cloud_gate_mapping(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_cloud_gate_mapping.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGateMappings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_mapping])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_cloud_gate_mapping') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMapping'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_cloud_gate_server(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_cloud_gate_server API.

Create a Cloud Gate server

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate_server (OCI::IdentityDomains::Models::CloudGateServer)

    CloudGateServer schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 939

def create_cloud_gate_server(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_cloud_gate_server.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGateServers'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_server])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_cloud_gate_server') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServer'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_condition(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_condition API.

Create a Condition

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :condition (OCI::IdentityDomains::Models::Condition)

    Condition schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1024

def create_condition(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_condition.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Conditions'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:condition])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_condition') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Condition'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_customer_secret_key(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_customer_secret_key API.

Create a user's customer secret key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :customer_secret_key (OCI::IdentityDomains::Models::CustomerSecretKey)

    CustomerSecretKey schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1109

def create_customer_secret_key(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_customer_secret_key.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CustomerSecretKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:customer_secret_key])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_customer_secret_key') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_dynamic_resource_group(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_dynamic_resource_group API.

Create a Dynamic Resource Group.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :dynamic_resource_group (OCI::IdentityDomains::Models::DynamicResourceGroup)

    DynamicResourceGroup schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1194

def create_dynamic_resource_group(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_dynamic_resource_group.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/DynamicResourceGroups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:dynamic_resource_group])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_dynamic_resource_group') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroup'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_grant(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_grant API.

Add a Grantee to an AppRole

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :grant (OCI::IdentityDomains::Models::Grant)

    Grant schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1279

def create_grant(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_grant.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Grants'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:grant])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_grant') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Grant'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_group(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_group API.

Create a group.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :group (OCI::IdentityDomains::Models::Group)

    Group schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1364

def create_group(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_group.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Groups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:group])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_group') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Group'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_identity_propagation_trust(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_identity_propagation_trust API.

Register a new Identity Propagation Trust configuration.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :identity_propagation_trust (OCI::IdentityDomains::Models::IdentityPropagationTrust)

    IdentityPropagationTrust schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute.

    • Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable:

    • The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly.

    • The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly.

    • Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below:

    • Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always:

    • If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always.

    • If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always.

    • The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1451

def create_identity_propagation_trust(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_identity_propagation_trust.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/IdentityPropagationTrusts'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_propagation_trust])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_identity_propagation_trust') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityPropagationTrust'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_identity_provider(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_identity_provider API.

Create an Identity Provider

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :identity_provider (OCI::IdentityDomains::Models::IdentityProvider)

    IdentityProvider schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1536

def create_identity_provider(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_identity_provider.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/IdentityProviders'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_provider])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_identity_provider') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProvider'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_me(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_me API.

Self register a user.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :me (OCI::IdentityDomains::Models::Me)

    Me schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type Me



1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1621

def create_me(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_me.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Me'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:me])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_me') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Me'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_api_key(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_api_key API.

Add a user's own API key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_api_key (OCI::IdentityDomains::Models::MyApiKey)

    MyApiKey schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1703

def create_my_api_key(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_api_key.' if logger


  path = '/admin/v1/MyApiKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_api_key])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_api_key') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_auth_token(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_auth_token API.

Create a user's own Auth token.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_auth_token (OCI::IdentityDomains::Models::MyAuthToken)

    MyAuthToken schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1773

def create_my_auth_token(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_auth_token.' if logger


  path = '/admin/v1/MyAuthTokens'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_auth_token])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_auth_token') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_authentication_factor_initiator(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_authentication_factor_initiator API.

Initiate Self Service Enrollment using the Requested MFA Factor

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_authentication_factor_initiator (OCI::IdentityDomains::Models::MyAuthenticationFactorInitiator)

    MyAuthenticationFactorInitiator schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1843

def create_my_authentication_factor_initiator(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_authentication_factor_initiator.' if logger


  path = '/admin/v1/MyAuthenticationFactorInitiator'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_authentication_factor_initiator])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_authentication_factor_initiator') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthenticationFactorInitiator'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_authentication_factor_validator(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_authentication_factor_validator API.

Validate Self Service Enrollment using the Requested MFA Factor

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_authentication_factor_validator (OCI::IdentityDomains::Models::MyAuthenticationFactorValidator)

    MyAuthenticationFactorValidator schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1913

def create_my_authentication_factor_validator(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_authentication_factor_validator.' if logger


  path = '/admin/v1/MyAuthenticationFactorValidator'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_authentication_factor_validator])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_authentication_factor_validator') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthenticationFactorValidator'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_authentication_factors_remover(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_authentication_factors_remover API.

Remove All Authentication Factor Channels for a User

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_authentication_factors_remover (OCI::IdentityDomains::Models::MyAuthenticationFactorsRemover)

    MyAuthenticationFactorsRemover schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1983

def create_my_authentication_factors_remover(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_authentication_factors_remover.' if logger


  path = '/admin/v1/MyAuthenticationFactorsRemover'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_authentication_factors_remover])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_authentication_factors_remover') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthenticationFactorsRemover'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_customer_secret_key(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_customer_secret_key API.

Add a user's own customer secret key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_customer_secret_key (OCI::IdentityDomains::Models::MyCustomerSecretKey)

    MyCustomerSecretKey schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2053

def create_my_customer_secret_key(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_customer_secret_key.' if logger


  path = '/admin/v1/MyCustomerSecretKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_customer_secret_key])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_customer_secret_key') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_o_auth2_client_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_o_auth2_client_credential API.

Create a user's own OAuth2 client credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_o_auth2_client_credential (OCI::IdentityDomains::Models::MyOAuth2ClientCredential)

    MyOAuth2ClientCredential schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2123

def create_my_o_auth2_client_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_o_auth2_client_credential.' if logger


  path = '/admin/v1/MyOAuth2ClientCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_o_auth2_client_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_o_auth2_client_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyOAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_request(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_request API.

Create a Request

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :my_request (OCI::IdentityDomains::Models::MyRequest)

    MyRequest schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2196

def create_my_request(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_request.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/MyRequests'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_request') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequest'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_smtp_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_smtp_credential API.

Create a user's own SMTP credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_smtp_credential (OCI::IdentityDomains::Models::MySmtpCredential)

    MySmtpCredential schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2278

def create_my_smtp_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_smtp_credential.' if logger


  path = '/admin/v1/MySmtpCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_smtp_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_smtp_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_support_account(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_support_account API.

Create a user's own support account.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_support_account (OCI::IdentityDomains::Models::MySupportAccount)

    MySupportAccount schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2348

def (opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_support_account.' if logger


  path = '/admin/v1/MySupportAccounts'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_support_account])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_support_account') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySupportAccount'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_my_user_db_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_my_user_db_credential API.

Create a user's own database (DB) credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_user_db_credential (OCI::IdentityDomains::Models::MyUserDbCredential)

    MyUserDbCredentials schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2418

def create_my_user_db_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_my_user_db_credential.' if logger


  path = '/admin/v1/MyUserDbCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_user_db_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_my_user_db_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyUserDbCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_network_perimeter(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_network_perimeter API.

Create a NetworkPerimeter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :network_perimeter (OCI::IdentityDomains::Models::NetworkPerimeter)

    NetworkPerimeter schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2491

def create_network_perimeter(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_network_perimeter.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/NetworkPerimeters'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:network_perimeter])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_network_perimeter') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeter'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_o_auth2_client_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_o_auth2_client_credential API.

Add a user's OAuth2 client credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :o_auth2_client_credential (OCI::IdentityDomains::Models::OAuth2ClientCredential)

    OAuth2ClientCredential schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2576

def create_o_auth2_client_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_o_auth2_client_credential.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/OAuth2ClientCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth2_client_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_o_auth2_client_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_o_auth_client_certificate(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_o_auth_client_certificate API.

Create an OAuth Client Certificate

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :o_auth_client_certificate (OCI::IdentityDomains::Models::OAuthClientCertificate)

    OAuthClientCertificate schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2658

def create_o_auth_client_certificate(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_o_auth_client_certificate.' if logger


  path = '/admin/v1/OAuthClientCertificates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth_client_certificate])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_o_auth_client_certificate') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthClientCertificate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_o_auth_partner_certificate(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_o_auth_partner_certificate API.

Create an OAuth Partner Certificate

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :o_auth_partner_certificate (OCI::IdentityDomains::Models::OAuthPartnerCertificate)

    OAuthPartnerCertificate schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2728

def create_o_auth_partner_certificate(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_o_auth_partner_certificate.' if logger


  path = '/admin/v1/OAuthPartnerCertificates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth_partner_certificate])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_o_auth_partner_certificate') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthPartnerCertificate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_password_policy(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_password_policy API.

Create a password policy.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :password_policy (OCI::IdentityDomains::Models::PasswordPolicy)

    PasswordPolicy schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2801

def create_password_policy(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_password_policy.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/PasswordPolicies'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:password_policy])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_password_policy') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_policy(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_policy API.

Create a Policy

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :policy (OCI::IdentityDomains::Models::Policy)

    Policy schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2886

def create_policy(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_policy.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Policies'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:policy])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_policy') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_rule(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_rule API.

Create a Rule

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :rule (OCI::IdentityDomains::Models::Rule)

    Rule schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2971

def create_rule(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_rule.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Rules'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:rule])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_rule') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rule'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_security_question(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_security_question API.

Create a security question.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :security_question (OCI::IdentityDomains::Models::SecurityQuestion)

    SecurityQuestion schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3056

def create_security_question(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_security_question.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SecurityQuestions'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:security_question])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_security_question') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestion'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_self_registration_profile(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_self_registration_profile API.

Create a self-registration profile.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :self_registration_profile (OCI::IdentityDomains::Models::SelfRegistrationProfile)

    SelfRegistrationProfile schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3141

def create_self_registration_profile(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_self_registration_profile.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SelfRegistrationProfiles'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:self_registration_profile])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_self_registration_profile') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfile'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_smtp_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_smtp_credential API.

Create a user's SMTP credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :smtp_credential (OCI::IdentityDomains::Models::SmtpCredential)

    SmtpCredential schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3226

def create_smtp_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_smtp_credential.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SmtpCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:smtp_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_smtp_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_user(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_user API.

Create a user.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :user (OCI::IdentityDomains::Models::User)

    User schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3311

def create_user(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_user.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Users'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_user') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::User'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_user_db_credential(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use create_user_db_credential API.

Create a user's database (DB) credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :user_db_credential (OCI::IdentityDomains::Models::UserDbCredential)

    UserDbCredentials schema.

    Before you specify an attribute-value in a request to create a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3396

def create_user_db_credential(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#create_user_db_credential.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/UserDbCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_db_credential])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_user_db_credential') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserDbCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_api_key(api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_api_key API.

Delete a user's API key.

Parameters:

  • api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3467

def delete_api_key(api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_api_key.' if logger

  raise "Missing the required parameter 'api_key_id' when calling delete_api_key." if api_key_id.nil?
  raise "Parameter value for 'api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(api_key_id)

  path = '/admin/v1/ApiKeys/{apiKeyId}'.sub('{apiKeyId}', api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_api_key') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_app(app_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_app API.

Delete an App

Parameters:

  • app_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3529

def delete_app(app_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_app.' if logger

  raise "Missing the required parameter 'app_id' when calling delete_app." if app_id.nil?
  raise "Parameter value for 'app_id' must not be blank" if OCI::Internal::Util.blank_string?(app_id)

  path = '/admin/v1/Apps/{appId}'.sub('{appId}', app_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_app') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_app_role(app_role_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_app_role API.

Delete an AppRole

Parameters:

  • app_role_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3591

def delete_app_role(app_role_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_app_role.' if logger

  raise "Missing the required parameter 'app_role_id' when calling delete_app_role." if app_role_id.nil?
  raise "Parameter value for 'app_role_id' must not be blank" if OCI::Internal::Util.blank_string?(app_role_id)

  path = '/admin/v1/AppRoles/{appRoleId}'.sub('{appRoleId}', app_role_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_app_role') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_approval_workflow(approval_workflow_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_approval_workflow API.

Delete ApprovalWorkflow

Parameters:

  • approval_workflow_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3653

def delete_approval_workflow(approval_workflow_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_approval_workflow.' if logger

  raise "Missing the required parameter 'approval_workflow_id' when calling delete_approval_workflow." if approval_workflow_id.nil?
  raise "Parameter value for 'approval_workflow_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_id)

  path = '/admin/v1/ApprovalWorkflows/{approvalWorkflowId}'.sub('{approvalWorkflowId}', approval_workflow_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_approval_workflow') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_approval_workflow_assignment(approval_workflow_assignment_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_approval_workflow_assignment API.

Delete Approval Workflow Assignment

Parameters:

  • approval_workflow_assignment_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3715

def delete_approval_workflow_assignment(approval_workflow_assignment_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_approval_workflow_assignment.' if logger

  raise "Missing the required parameter 'approval_workflow_assignment_id' when calling delete_approval_workflow_assignment." if approval_workflow_assignment_id.nil?
  raise "Parameter value for 'approval_workflow_assignment_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_assignment_id)

  path = '/admin/v1/ApprovalWorkflowAssignments/{approvalWorkflowAssignmentId}'.sub('{approvalWorkflowAssignmentId}', approval_workflow_assignment_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_approval_workflow_assignment') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_approval_workflow_step(approval_workflow_step_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_approval_workflow_step API.

Delete ApprovalWorkflowStep

Parameters:

  • approval_workflow_step_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3777

def delete_approval_workflow_step(approval_workflow_step_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_approval_workflow_step.' if logger

  raise "Missing the required parameter 'approval_workflow_step_id' when calling delete_approval_workflow_step." if approval_workflow_step_id.nil?
  raise "Parameter value for 'approval_workflow_step_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_step_id)

  path = '/admin/v1/ApprovalWorkflowSteps/{approvalWorkflowStepId}'.sub('{approvalWorkflowStepId}', approval_workflow_step_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_approval_workflow_step') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_auth_token(auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_auth_token API.

Delete a user's Auth token.

Parameters:

  • auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3839

def delete_auth_token(auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_auth_token.' if logger

  raise "Missing the required parameter 'auth_token_id' when calling delete_auth_token." if auth_token_id.nil?
  raise "Parameter value for 'auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(auth_token_id)

  path = '/admin/v1/AuthTokens/{authTokenId}'.sub('{authTokenId}', auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_auth_token') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_cloud_gate(cloud_gate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_cloud_gate API.

Delete a Cloud Gate

Parameters:

  • cloud_gate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3901

def delete_cloud_gate(cloud_gate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_cloud_gate.' if logger

  raise "Missing the required parameter 'cloud_gate_id' when calling delete_cloud_gate." if cloud_gate_id.nil?
  raise "Parameter value for 'cloud_gate_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_id)

  path = '/admin/v1/CloudGates/{cloudGateId}'.sub('{cloudGateId}', cloud_gate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_cloud_gate') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_cloud_gate_mapping(cloud_gate_mapping_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_cloud_gate_mapping API.

Delete a Cloud Gate mapping

Parameters:

  • cloud_gate_mapping_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3963

def delete_cloud_gate_mapping(cloud_gate_mapping_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_cloud_gate_mapping.' if logger

  raise "Missing the required parameter 'cloud_gate_mapping_id' when calling delete_cloud_gate_mapping." if cloud_gate_mapping_id.nil?
  raise "Parameter value for 'cloud_gate_mapping_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_mapping_id)

  path = '/admin/v1/CloudGateMappings/{cloudGateMappingId}'.sub('{cloudGateMappingId}', cloud_gate_mapping_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_cloud_gate_mapping') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_cloud_gate_server(cloud_gate_server_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_cloud_gate_server API.

Delete a Cloud Gate server

Parameters:

  • cloud_gate_server_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4025

def delete_cloud_gate_server(cloud_gate_server_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_cloud_gate_server.' if logger

  raise "Missing the required parameter 'cloud_gate_server_id' when calling delete_cloud_gate_server." if cloud_gate_server_id.nil?
  raise "Parameter value for 'cloud_gate_server_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_server_id)

  path = '/admin/v1/CloudGateServers/{cloudGateServerId}'.sub('{cloudGateServerId}', cloud_gate_server_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_cloud_gate_server') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_condition(condition_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_condition API.

Delete a Condition

Parameters:

  • condition_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4087

def delete_condition(condition_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_condition.' if logger

  raise "Missing the required parameter 'condition_id' when calling delete_condition." if condition_id.nil?
  raise "Parameter value for 'condition_id' must not be blank" if OCI::Internal::Util.blank_string?(condition_id)

  path = '/admin/v1/Conditions/{conditionId}'.sub('{conditionId}', condition_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_condition') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_customer_secret_key(customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_customer_secret_key API.

Delete a user's customer secret key.

Parameters:

  • customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4149

def delete_customer_secret_key(customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_customer_secret_key.' if logger

  raise "Missing the required parameter 'customer_secret_key_id' when calling delete_customer_secret_key." if customer_secret_key_id.nil?
  raise "Parameter value for 'customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(customer_secret_key_id)

  path = '/admin/v1/CustomerSecretKeys/{customerSecretKeyId}'.sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_customer_secret_key') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_dynamic_resource_group(dynamic_resource_group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_dynamic_resource_group API.

Delete a Dynamic Resource Group.

Parameters:

  • dynamic_resource_group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4211

def delete_dynamic_resource_group(dynamic_resource_group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_dynamic_resource_group.' if logger

  raise "Missing the required parameter 'dynamic_resource_group_id' when calling delete_dynamic_resource_group." if dynamic_resource_group_id.nil?
  raise "Parameter value for 'dynamic_resource_group_id' must not be blank" if OCI::Internal::Util.blank_string?(dynamic_resource_group_id)

  path = '/admin/v1/DynamicResourceGroups/{dynamicResourceGroupId}'.sub('{dynamicResourceGroupId}', dynamic_resource_group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_dynamic_resource_group') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_grant(grant_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_grant API.

Remove a Grantee from an AppRole

Parameters:

  • grant_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4273

def delete_grant(grant_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_grant.' if logger

  raise "Missing the required parameter 'grant_id' when calling delete_grant." if grant_id.nil?
  raise "Parameter value for 'grant_id' must not be blank" if OCI::Internal::Util.blank_string?(grant_id)

  path = '/admin/v1/Grants/{grantId}'.sub('{grantId}', grant_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_grant') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_group(group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_group API.

Delete a group.

Parameters:

  • group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4335

def delete_group(group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_group.' if logger

  raise "Missing the required parameter 'group_id' when calling delete_group." if group_id.nil?
  raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util.blank_string?(group_id)

  path = '/admin/v1/Groups/{groupId}'.sub('{groupId}', group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_group') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_identity_propagation_trust(identity_propagation_trust_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_identity_propagation_trust API.

Delete an existing Identity Propagation Trust configuration.

Parameters:

  • identity_propagation_trust_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4397

def delete_identity_propagation_trust(identity_propagation_trust_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_identity_propagation_trust.' if logger

  raise "Missing the required parameter 'identity_propagation_trust_id' when calling delete_identity_propagation_trust." if identity_propagation_trust_id.nil?
  raise "Parameter value for 'identity_propagation_trust_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_propagation_trust_id)

  path = '/admin/v1/IdentityPropagationTrusts/{identityPropagationTrustId}'.sub('{identityPropagationTrustId}', identity_propagation_trust_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_identity_propagation_trust') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_identity_provider(identity_provider_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_identity_provider API.

Delete an Identity Provider

Parameters:

  • identity_provider_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4459

def delete_identity_provider(identity_provider_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_identity_provider.' if logger

  raise "Missing the required parameter 'identity_provider_id' when calling delete_identity_provider." if identity_provider_id.nil?
  raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_provider_id)

  path = '/admin/v1/IdentityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_identity_provider') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_api_key(my_api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_api_key API.

Delete a user's own API key.

Parameters:

  • my_api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4521

def delete_my_api_key(my_api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_api_key.' if logger

  raise "Missing the required parameter 'my_api_key_id' when calling delete_my_api_key." if my_api_key_id.nil?
  raise "Parameter value for 'my_api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_api_key_id)

  path = '/admin/v1/MyApiKeys/{myApiKeyId}'.sub('{myApiKeyId}', my_api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_api_key') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_auth_token(my_auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_auth_token API.

Delete a user's own Auth token.

Parameters:

  • my_auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4583

def delete_my_auth_token(my_auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_auth_token.' if logger

  raise "Missing the required parameter 'my_auth_token_id' when calling delete_my_auth_token." if my_auth_token_id.nil?
  raise "Parameter value for 'my_auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(my_auth_token_id)

  path = '/admin/v1/MyAuthTokens/{myAuthTokenId}'.sub('{myAuthTokenId}', my_auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_auth_token') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_customer_secret_key(my_customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_customer_secret_key API.

Delete a user's own customer secret key.

Parameters:

  • my_customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4645

def delete_my_customer_secret_key(my_customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_customer_secret_key.' if logger

  raise "Missing the required parameter 'my_customer_secret_key_id' when calling delete_my_customer_secret_key." if my_customer_secret_key_id.nil?
  raise "Parameter value for 'my_customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_customer_secret_key_id)

  path = '/admin/v1/MyCustomerSecretKeys/{myCustomerSecretKeyId}'.sub('{myCustomerSecretKeyId}', my_customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_customer_secret_key') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_device(my_device_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_device API.

Delete a Device

Parameters:

  • my_device_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4707

def delete_my_device(my_device_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_device.' if logger

  raise "Missing the required parameter 'my_device_id' when calling delete_my_device." if my_device_id.nil?
  raise "Parameter value for 'my_device_id' must not be blank" if OCI::Internal::Util.blank_string?(my_device_id)

  path = '/admin/v1/MyDevices/{myDeviceId}'.sub('{myDeviceId}', my_device_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_device') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_o_auth2_client_credential API.

Delete a user's own OAuth2 client credential.

Parameters:

  • my_o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4769

def delete_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'my_o_auth2_client_credential_id' when calling delete_my_o_auth2_client_credential." if my_o_auth2_client_credential_id.nil?
  raise "Parameter value for 'my_o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_o_auth2_client_credential_id)

  path = '/admin/v1/MyOAuth2ClientCredentials/{myOAuth2ClientCredentialId}'.sub('{myOAuth2ClientCredentialId}', my_o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_o_auth2_client_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_smtp_credential(my_smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_smtp_credential API.

Delete a user's own SMTP credential.

Parameters:

  • my_smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4831

def delete_my_smtp_credential(my_smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_smtp_credential.' if logger

  raise "Missing the required parameter 'my_smtp_credential_id' when calling delete_my_smtp_credential." if my_smtp_credential_id.nil?
  raise "Parameter value for 'my_smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_smtp_credential_id)

  path = '/admin/v1/MySmtpCredentials/{mySmtpCredentialId}'.sub('{mySmtpCredentialId}', my_smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_smtp_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_support_account(my_support_account_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_support_account API.

Delete a user's own support account.

Parameters:

  • my_support_account_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4893

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_support_account.' if logger

  raise "Missing the required parameter 'my_support_account_id' when calling delete_my_support_account." if .nil?
  raise "Parameter value for 'my_support_account_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/MySupportAccounts/{mySupportAccountId}'.sub('{mySupportAccountId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_support_account') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_trusted_user_agent(my_trusted_user_agent_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_trusted_user_agent API.

Delete a Trusted User Agent

Parameters:

  • my_trusted_user_agent_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4955

def delete_my_trusted_user_agent(my_trusted_user_agent_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_trusted_user_agent.' if logger

  raise "Missing the required parameter 'my_trusted_user_agent_id' when calling delete_my_trusted_user_agent." if my_trusted_user_agent_id.nil?
  raise "Parameter value for 'my_trusted_user_agent_id' must not be blank" if OCI::Internal::Util.blank_string?(my_trusted_user_agent_id)

  path = '/admin/v1/MyTrustedUserAgents/{myTrustedUserAgentId}'.sub('{myTrustedUserAgentId}', my_trusted_user_agent_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_trusted_user_agent') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_my_user_db_credential(my_user_db_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_my_user_db_credential API.

Delete a user's own database (DB) credential.

Parameters:

  • my_user_db_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5017

def delete_my_user_db_credential(my_user_db_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_my_user_db_credential.' if logger

  raise "Missing the required parameter 'my_user_db_credential_id' when calling delete_my_user_db_credential." if my_user_db_credential_id.nil?
  raise "Parameter value for 'my_user_db_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_user_db_credential_id)

  path = '/admin/v1/MyUserDbCredentials/{myUserDbCredentialId}'.sub('{myUserDbCredentialId}', my_user_db_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_my_user_db_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_network_perimeter(network_perimeter_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_network_perimeter API.

Delete a NetworkPerimeter

Parameters:

  • network_perimeter_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5079

def delete_network_perimeter(network_perimeter_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_network_perimeter.' if logger

  raise "Missing the required parameter 'network_perimeter_id' when calling delete_network_perimeter." if network_perimeter_id.nil?
  raise "Parameter value for 'network_perimeter_id' must not be blank" if OCI::Internal::Util.blank_string?(network_perimeter_id)

  path = '/admin/v1/NetworkPerimeters/{networkPerimeterId}'.sub('{networkPerimeterId}', network_perimeter_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_network_perimeter') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_o_auth2_client_credential(o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_o_auth2_client_credential API.

Delete a user's OAuth2 client credentials.

Parameters:

  • o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5141

def delete_o_auth2_client_credential(o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'o_auth2_client_credential_id' when calling delete_o_auth2_client_credential." if o_auth2_client_credential_id.nil?
  raise "Parameter value for 'o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth2_client_credential_id)

  path = '/admin/v1/OAuth2ClientCredentials/{oAuth2ClientCredentialId}'.sub('{oAuth2ClientCredentialId}', o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_o_auth2_client_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_o_auth_client_certificate(o_auth_client_certificate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_o_auth_client_certificate API.

Delete an OAuth Client Certificate

Parameters:

  • o_auth_client_certificate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5203

def delete_o_auth_client_certificate(o_auth_client_certificate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_o_auth_client_certificate.' if logger

  raise "Missing the required parameter 'o_auth_client_certificate_id' when calling delete_o_auth_client_certificate." if o_auth_client_certificate_id.nil?
  raise "Parameter value for 'o_auth_client_certificate_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth_client_certificate_id)

  path = '/admin/v1/OAuthClientCertificates/{oAuthClientCertificateId}'.sub('{oAuthClientCertificateId}', o_auth_client_certificate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_o_auth_client_certificate') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_o_auth_partner_certificate(o_auth_partner_certificate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_o_auth_partner_certificate API.

Delete an OAuth Partner Certificate

Parameters:

  • o_auth_partner_certificate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5265

def delete_o_auth_partner_certificate(o_auth_partner_certificate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_o_auth_partner_certificate.' if logger

  raise "Missing the required parameter 'o_auth_partner_certificate_id' when calling delete_o_auth_partner_certificate." if o_auth_partner_certificate_id.nil?
  raise "Parameter value for 'o_auth_partner_certificate_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth_partner_certificate_id)

  path = '/admin/v1/OAuthPartnerCertificates/{oAuthPartnerCertificateId}'.sub('{oAuthPartnerCertificateId}', o_auth_partner_certificate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_o_auth_partner_certificate') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_password_policy(password_policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_password_policy API.

Delete a password policy.

Parameters:

  • password_policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5327

def delete_password_policy(password_policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_password_policy.' if logger

  raise "Missing the required parameter 'password_policy_id' when calling delete_password_policy." if password_policy_id.nil?
  raise "Parameter value for 'password_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(password_policy_id)

  path = '/admin/v1/PasswordPolicies/{passwordPolicyId}'.sub('{passwordPolicyId}', password_policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_password_policy') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_policy(policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_policy API.

Delete a Policy

Parameters:

  • policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5389

def delete_policy(policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_policy.' if logger

  raise "Missing the required parameter 'policy_id' when calling delete_policy." if policy_id.nil?
  raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util.blank_string?(policy_id)

  path = '/admin/v1/Policies/{policyId}'.sub('{policyId}', policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_policy') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_rule(rule_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_rule API.

Delete a Rule

Parameters:

  • rule_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5451

def delete_rule(rule_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_rule.' if logger

  raise "Missing the required parameter 'rule_id' when calling delete_rule." if rule_id.nil?
  raise "Parameter value for 'rule_id' must not be blank" if OCI::Internal::Util.blank_string?(rule_id)

  path = '/admin/v1/Rules/{ruleId}'.sub('{ruleId}', rule_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_rule') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_security_question(security_question_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_security_question API.

Delete a security question.

Parameters:

  • security_question_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5513

def delete_security_question(security_question_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_security_question.' if logger

  raise "Missing the required parameter 'security_question_id' when calling delete_security_question." if security_question_id.nil?
  raise "Parameter value for 'security_question_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_id)

  path = '/admin/v1/SecurityQuestions/{securityQuestionId}'.sub('{securityQuestionId}', security_question_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_security_question') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_self_registration_profile(self_registration_profile_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_self_registration_profile API.

Delete a self-registration profile.

Parameters:

  • self_registration_profile_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5575

def delete_self_registration_profile(self_registration_profile_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_self_registration_profile.' if logger

  raise "Missing the required parameter 'self_registration_profile_id' when calling delete_self_registration_profile." if self_registration_profile_id.nil?
  raise "Parameter value for 'self_registration_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(self_registration_profile_id)

  path = '/admin/v1/SelfRegistrationProfiles/{selfRegistrationProfileId}'.sub('{selfRegistrationProfileId}', self_registration_profile_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_self_registration_profile') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_smtp_credential(smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_smtp_credential API.

Delete a user's SMTP credentials.

Parameters:

  • smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5637

def delete_smtp_credential(smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_smtp_credential.' if logger

  raise "Missing the required parameter 'smtp_credential_id' when calling delete_smtp_credential." if smtp_credential_id.nil?
  raise "Parameter value for 'smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(smtp_credential_id)

  path = '/admin/v1/SmtpCredentials/{smtpCredentialId}'.sub('{smtpCredentialId}', smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_smtp_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_user(user_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_user API.

Delete a user.

Parameters:

  • user_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5699

def delete_user(user_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_user.' if logger

  raise "Missing the required parameter 'user_id' when calling delete_user." if user_id.nil?
  raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)

  path = '/admin/v1/Users/{userId}'.sub('{userId}', user_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_user') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_user_db_credential(user_db_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use delete_user_db_credential API.

Delete a user's database (DB) credentials.

Parameters:

  • user_db_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :force_delete (BOOLEAN)

    To force delete the resource and all its references (if any).

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type nil



5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5761

def delete_user_db_credential(user_db_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#delete_user_db_credential.' if logger

  raise "Missing the required parameter 'user_db_credential_id' when calling delete_user_db_credential." if user_db_credential_id.nil?
  raise "Parameter value for 'user_db_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(user_db_credential_id)

  path = '/admin/v1/UserDbCredentials/{userDbCredentialId}'.sub('{userDbCredentialId}', user_db_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:forceDelete] = opts[:force_delete] if !opts[:force_delete].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#delete_user_db_credential') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_account_mgmt_info(account_mgmt_info_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_account_mgmt_info API.

Get Account Mgmt Info

Parameters:

  • account_mgmt_info_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5824

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_account_mgmt_info.' if logger

  raise "Missing the required parameter 'account_mgmt_info_id' when calling get_account_mgmt_info." if .nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'account_mgmt_info_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/AccountMgmtInfos/{accountMgmtInfoId}'.sub('{accountMgmtInfoId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_account_mgmt_info') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountMgmtInfo'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_account_recovery_setting(account_recovery_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_account_recovery_setting API.

Get an account recovery setting.

Parameters:

  • account_recovery_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5898

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_account_recovery_setting.' if logger

  raise "Missing the required parameter 'account_recovery_setting_id' when calling get_account_recovery_setting." if .nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'account_recovery_setting_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/AccountRecoverySettings/{accountRecoverySettingId}'.sub('{accountRecoverySettingId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_account_recovery_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountRecoverySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_api_key(api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_api_key API.

Get a user's API key.

Parameters:

  • api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5972

def get_api_key(api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_api_key.' if logger

  raise "Missing the required parameter 'api_key_id' when calling get_api_key." if api_key_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(api_key_id)

  path = '/admin/v1/ApiKeys/{apiKeyId}'.sub('{apiKeyId}', api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_api_key') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_app(app_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_app API.

Get an App

Parameters:

  • app_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type App



6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6046

def get_app(app_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_app.' if logger

  raise "Missing the required parameter 'app_id' when calling get_app." if app_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_id' must not be blank" if OCI::Internal::Util.blank_string?(app_id)

  path = '/admin/v1/Apps/{appId}'.sub('{appId}', app_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_app') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::App'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_app_role(app_role_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_app_role API.

Get an AppRole

Parameters:

  • app_role_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6120

def get_app_role(app_role_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_app_role.' if logger

  raise "Missing the required parameter 'app_role_id' when calling get_app_role." if app_role_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_role_id' must not be blank" if OCI::Internal::Util.blank_string?(app_role_id)

  path = '/admin/v1/AppRoles/{appRoleId}'.sub('{appRoleId}', app_role_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_app_role') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppRole'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_approval_workflow(approval_workflow_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_approval_workflow API.

Get ApprovalWorkflow

Parameters:

  • approval_workflow_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6194

def get_approval_workflow(approval_workflow_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_approval_workflow.' if logger

  raise "Missing the required parameter 'approval_workflow_id' when calling get_approval_workflow." if approval_workflow_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_id)

  path = '/admin/v1/ApprovalWorkflows/{approvalWorkflowId}'.sub('{approvalWorkflowId}', approval_workflow_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_approval_workflow') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflow'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_approval_workflow_assignment(approval_workflow_assignment_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_approval_workflow_assignment API.

Get an Approval Workflow Assignment

Parameters:

  • approval_workflow_assignment_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6268

def get_approval_workflow_assignment(approval_workflow_assignment_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_approval_workflow_assignment.' if logger

  raise "Missing the required parameter 'approval_workflow_assignment_id' when calling get_approval_workflow_assignment." if approval_workflow_assignment_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_assignment_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_assignment_id)

  path = '/admin/v1/ApprovalWorkflowAssignments/{approvalWorkflowAssignmentId}'.sub('{approvalWorkflowAssignmentId}', approval_workflow_assignment_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_approval_workflow_assignment') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowAssignment'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_approval_workflow_step(approval_workflow_step_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_approval_workflow_step API.

Get ApprovalWorkflowStep

Parameters:

  • approval_workflow_step_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6342

def get_approval_workflow_step(approval_workflow_step_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_approval_workflow_step.' if logger

  raise "Missing the required parameter 'approval_workflow_step_id' when calling get_approval_workflow_step." if approval_workflow_step_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_step_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_step_id)

  path = '/admin/v1/ApprovalWorkflowSteps/{approvalWorkflowStepId}'.sub('{approvalWorkflowStepId}', approval_workflow_step_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_approval_workflow_step') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowStep'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_auth_token(auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_auth_token API.

Get a user's Auth token.

Parameters:

  • auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6416

def get_auth_token(auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_auth_token.' if logger

  raise "Missing the required parameter 'auth_token_id' when calling get_auth_token." if auth_token_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(auth_token_id)

  path = '/admin/v1/AuthTokens/{authTokenId}'.sub('{authTokenId}', auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_auth_token') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_authentication_factor_setting(authentication_factor_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_authentication_factor_setting API.

Get Authentication Factor Settings

Parameters:

  • authentication_factor_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6490

def get_authentication_factor_setting(authentication_factor_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_authentication_factor_setting.' if logger

  raise "Missing the required parameter 'authentication_factor_setting_id' when calling get_authentication_factor_setting." if authentication_factor_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'authentication_factor_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(authentication_factor_setting_id)

  path = '/admin/v1/AuthenticationFactorSettings/{authenticationFactorSettingId}'.sub('{authenticationFactorSettingId}', authentication_factor_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_authentication_factor_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthenticationFactorSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_branding_setting(branding_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_branding_setting API.

Get Branding Settings

Parameters:

  • branding_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6564

def get_branding_setting(branding_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_branding_setting.' if logger

  raise "Missing the required parameter 'branding_setting_id' when calling get_branding_setting." if branding_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'branding_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(branding_setting_id)

  path = '/admin/v1/BrandingSettings/{brandingSettingId}'.sub('{brandingSettingId}', branding_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_branding_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::BrandingSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_cloud_gate(cloud_gate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_cloud_gate API.

Get a Cloud Gate

Parameters:

  • cloud_gate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6638

def get_cloud_gate(cloud_gate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_cloud_gate.' if logger

  raise "Missing the required parameter 'cloud_gate_id' when calling get_cloud_gate." if cloud_gate_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_id)

  path = '/admin/v1/CloudGates/{cloudGateId}'.sub('{cloudGateId}', cloud_gate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_cloud_gate') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_cloud_gate_mapping(cloud_gate_mapping_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_cloud_gate_mapping API.

Get a Cloud Gate mapping

Parameters:

  • cloud_gate_mapping_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6712

def get_cloud_gate_mapping(cloud_gate_mapping_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_cloud_gate_mapping.' if logger

  raise "Missing the required parameter 'cloud_gate_mapping_id' when calling get_cloud_gate_mapping." if cloud_gate_mapping_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_mapping_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_mapping_id)

  path = '/admin/v1/CloudGateMappings/{cloudGateMappingId}'.sub('{cloudGateMappingId}', cloud_gate_mapping_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_cloud_gate_mapping') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMapping'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_cloud_gate_server(cloud_gate_server_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_cloud_gate_server API.

Get a Cloud Gate server

Parameters:

  • cloud_gate_server_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6786

def get_cloud_gate_server(cloud_gate_server_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_cloud_gate_server.' if logger

  raise "Missing the required parameter 'cloud_gate_server_id' when calling get_cloud_gate_server." if cloud_gate_server_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_server_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_server_id)

  path = '/admin/v1/CloudGateServers/{cloudGateServerId}'.sub('{cloudGateServerId}', cloud_gate_server_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_cloud_gate_server') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServer'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_condition(condition_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_condition API.

Get a Condition

Parameters:

  • condition_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6860

def get_condition(condition_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_condition.' if logger

  raise "Missing the required parameter 'condition_id' when calling get_condition." if condition_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'condition_id' must not be blank" if OCI::Internal::Util.blank_string?(condition_id)

  path = '/admin/v1/Conditions/{conditionId}'.sub('{conditionId}', condition_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_condition') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Condition'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_customer_secret_key(customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_customer_secret_key API.

Get a user's customer secret key.

Parameters:

  • customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6934

def get_customer_secret_key(customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_customer_secret_key.' if logger

  raise "Missing the required parameter 'customer_secret_key_id' when calling get_customer_secret_key." if customer_secret_key_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(customer_secret_key_id)

  path = '/admin/v1/CustomerSecretKeys/{customerSecretKeyId}'.sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_customer_secret_key') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_dynamic_resource_group(dynamic_resource_group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_dynamic_resource_group API.

Get a Dynamic Resource Group.

Parameters:

  • dynamic_resource_group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7008

def get_dynamic_resource_group(dynamic_resource_group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_dynamic_resource_group.' if logger

  raise "Missing the required parameter 'dynamic_resource_group_id' when calling get_dynamic_resource_group." if dynamic_resource_group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'dynamic_resource_group_id' must not be blank" if OCI::Internal::Util.blank_string?(dynamic_resource_group_id)

  path = '/admin/v1/DynamicResourceGroups/{dynamicResourceGroupId}'.sub('{dynamicResourceGroupId}', dynamic_resource_group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_dynamic_resource_group') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroup'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_grant(grant_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_grant API.

Get a Grant

Parameters:

  • grant_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7082

def get_grant(grant_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_grant.' if logger

  raise "Missing the required parameter 'grant_id' when calling get_grant." if grant_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'grant_id' must not be blank" if OCI::Internal::Util.blank_string?(grant_id)

  path = '/admin/v1/Grants/{grantId}'.sub('{grantId}', grant_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_grant') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Grant'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_group(group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_group API.

Get a group. Important: The Group SEARCH and GET operations on users and members will throw an exception if the response has more than 10,000 members. To avoid the exception, use the pagination filter to GET or SEARCH group members.

Parameters:

  • group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7156

def get_group(group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_group.' if logger

  raise "Missing the required parameter 'group_id' when calling get_group." if group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util.blank_string?(group_id)

  path = '/admin/v1/Groups/{groupId}'.sub('{groupId}', group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_group') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Group'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_identity_propagation_trust(identity_propagation_trust_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_identity_propagation_trust API.

Get an existing Identity Propagation Trust configuration.

Parameters:

  • identity_propagation_trust_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7230

def get_identity_propagation_trust(identity_propagation_trust_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_identity_propagation_trust.' if logger

  raise "Missing the required parameter 'identity_propagation_trust_id' when calling get_identity_propagation_trust." if identity_propagation_trust_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_propagation_trust_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_propagation_trust_id)

  path = '/admin/v1/IdentityPropagationTrusts/{identityPropagationTrustId}'.sub('{identityPropagationTrustId}', identity_propagation_trust_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_identity_propagation_trust') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityPropagationTrust'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_identity_provider(identity_provider_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_identity_provider API.

Get an Identity Provider

Parameters:

  • identity_provider_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7304

def get_identity_provider(identity_provider_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_identity_provider.' if logger

  raise "Missing the required parameter 'identity_provider_id' when calling get_identity_provider." if identity_provider_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_provider_id)

  path = '/admin/v1/IdentityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_identity_provider') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProvider'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_identity_setting(identity_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_identity_setting API.

Get an Identity setting.

Parameters:

  • identity_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7378

def get_identity_setting(identity_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_identity_setting.' if logger

  raise "Missing the required parameter 'identity_setting_id' when calling get_identity_setting." if identity_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_setting_id)

  path = '/admin/v1/IdentitySettings/{identitySettingId}'.sub('{identitySettingId}', identity_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_identity_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentitySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_kmsi_setting(kmsi_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_kmsi_setting API.

Get KmsiSettings

Parameters:

  • kmsi_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7452

def get_kmsi_setting(kmsi_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_kmsi_setting.' if logger

  raise "Missing the required parameter 'kmsi_setting_id' when calling get_kmsi_setting." if kmsi_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'kmsi_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(kmsi_setting_id)

  path = '/admin/v1/KmsiSettings/{kmsiSettingId}'.sub('{kmsiSettingId}', kmsi_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_kmsi_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::KmsiSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_me(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_me API.

Get a user's own information.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type Me



7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7525

def get_me(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_me.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Me'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_me') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Me'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_api_key(my_api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_api_key API.

Get a user's own API key.

Parameters:

  • my_api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7594

def get_my_api_key(my_api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_api_key.' if logger

  raise "Missing the required parameter 'my_api_key_id' when calling get_my_api_key." if my_api_key_id.nil?
  raise "Parameter value for 'my_api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_api_key_id)

  path = '/admin/v1/MyApiKeys/{myApiKeyId}'.sub('{myApiKeyId}', my_api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_api_key') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_auth_token(my_auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_auth_token API.

Get a user's own Auth token.

Parameters:

  • my_auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7653

def get_my_auth_token(my_auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_auth_token.' if logger

  raise "Missing the required parameter 'my_auth_token_id' when calling get_my_auth_token." if my_auth_token_id.nil?
  raise "Parameter value for 'my_auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(my_auth_token_id)

  path = '/admin/v1/MyAuthTokens/{myAuthTokenId}'.sub('{myAuthTokenId}', my_auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_auth_token') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_completed_approval(my_completed_approval_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_completed_approval API.

Get My MyCompletedApproval

Parameters:

  • my_completed_approval_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7712

def get_my_completed_approval(my_completed_approval_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_completed_approval.' if logger

  raise "Missing the required parameter 'my_completed_approval_id' when calling get_my_completed_approval." if my_completed_approval_id.nil?
  raise "Parameter value for 'my_completed_approval_id' must not be blank" if OCI::Internal::Util.blank_string?(my_completed_approval_id)

  path = '/admin/v1/MyCompletedApprovals/{myCompletedApprovalId}'.sub('{myCompletedApprovalId}', my_completed_approval_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_completed_approval') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCompletedApproval'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_customer_secret_key(my_customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_customer_secret_key API.

Get a user's own customer secret key.

Parameters:

  • my_customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7771

def get_my_customer_secret_key(my_customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_customer_secret_key.' if logger

  raise "Missing the required parameter 'my_customer_secret_key_id' when calling get_my_customer_secret_key." if my_customer_secret_key_id.nil?
  raise "Parameter value for 'my_customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_customer_secret_key_id)

  path = '/admin/v1/MyCustomerSecretKeys/{myCustomerSecretKeyId}'.sub('{myCustomerSecretKeyId}', my_customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_customer_secret_key') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_device(my_device_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_device API.

Get a Device

Parameters:

  • my_device_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7833

def get_my_device(my_device_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_device.' if logger

  raise "Missing the required parameter 'my_device_id' when calling get_my_device." if my_device_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'my_device_id' must not be blank" if OCI::Internal::Util.blank_string?(my_device_id)

  path = '/admin/v1/MyDevices/{myDeviceId}'.sub('{myDeviceId}', my_device_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_device') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyDevice'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_o_auth2_client_credential API.

Get a user's own OAuth2 client credential.

Parameters:

  • my_o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7904

def get_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'my_o_auth2_client_credential_id' when calling get_my_o_auth2_client_credential." if my_o_auth2_client_credential_id.nil?
  raise "Parameter value for 'my_o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_o_auth2_client_credential_id)

  path = '/admin/v1/MyOAuth2ClientCredentials/{myOAuth2ClientCredentialId}'.sub('{myOAuth2ClientCredentialId}', my_o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_o_auth2_client_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyOAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_pending_approval(my_pending_approval_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_pending_approval API.

Get My MyPendingApproval

Parameters:

  • my_pending_approval_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7963

def get_my_pending_approval(my_pending_approval_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_pending_approval.' if logger

  raise "Missing the required parameter 'my_pending_approval_id' when calling get_my_pending_approval." if my_pending_approval_id.nil?
  raise "Parameter value for 'my_pending_approval_id' must not be blank" if OCI::Internal::Util.blank_string?(my_pending_approval_id)

  path = '/admin/v1/MyPendingApprovals/{myPendingApprovalId}'.sub('{myPendingApprovalId}', my_pending_approval_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_pending_approval') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyPendingApproval'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_request(my_request_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_request API.

Get My Requests

Parameters:

  • my_request_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8025

def get_my_request(my_request_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_request.' if logger

  raise "Missing the required parameter 'my_request_id' when calling get_my_request." if my_request_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'my_request_id' must not be blank" if OCI::Internal::Util.blank_string?(my_request_id)

  path = '/admin/v1/MyRequests/{myRequestId}'.sub('{myRequestId}', my_request_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_request') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequest'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_smtp_credential(my_smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_smtp_credential API.

Get a user's own SMTP credential.

Parameters:

  • my_smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8096

def get_my_smtp_credential(my_smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_smtp_credential.' if logger

  raise "Missing the required parameter 'my_smtp_credential_id' when calling get_my_smtp_credential." if my_smtp_credential_id.nil?
  raise "Parameter value for 'my_smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_smtp_credential_id)

  path = '/admin/v1/MySmtpCredentials/{mySmtpCredentialId}'.sub('{mySmtpCredentialId}', my_smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_smtp_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_support_account(my_support_account_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_support_account API.

Get a user's own support account.

Parameters:

  • my_support_account_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8155

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_support_account.' if logger

  raise "Missing the required parameter 'my_support_account_id' when calling get_my_support_account." if .nil?
  raise "Parameter value for 'my_support_account_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/MySupportAccounts/{mySupportAccountId}'.sub('{mySupportAccountId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_support_account') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySupportAccount'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_trusted_user_agent(my_trusted_user_agent_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_trusted_user_agent API.

Get a Trusted User Agent

Parameters:

  • my_trusted_user_agent_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8217

def get_my_trusted_user_agent(my_trusted_user_agent_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_trusted_user_agent.' if logger

  raise "Missing the required parameter 'my_trusted_user_agent_id' when calling get_my_trusted_user_agent." if my_trusted_user_agent_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'my_trusted_user_agent_id' must not be blank" if OCI::Internal::Util.blank_string?(my_trusted_user_agent_id)

  path = '/admin/v1/MyTrustedUserAgents/{myTrustedUserAgentId}'.sub('{myTrustedUserAgentId}', my_trusted_user_agent_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_trusted_user_agent') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyTrustedUserAgent'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_my_user_db_credential(my_user_db_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_my_user_db_credential API.

Get a user's own database (DB) credential.

Parameters:

  • my_user_db_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8288

def get_my_user_db_credential(my_user_db_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_my_user_db_credential.' if logger

  raise "Missing the required parameter 'my_user_db_credential_id' when calling get_my_user_db_credential." if my_user_db_credential_id.nil?
  raise "Parameter value for 'my_user_db_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_user_db_credential_id)

  path = '/admin/v1/MyUserDbCredentials/{myUserDbCredentialId}'.sub('{myUserDbCredentialId}', my_user_db_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_my_user_db_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyUserDbCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_network_perimeter(network_perimeter_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_network_perimeter API.

Get a NetworkPerimeter

Parameters:

  • network_perimeter_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8350

def get_network_perimeter(network_perimeter_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_network_perimeter.' if logger

  raise "Missing the required parameter 'network_perimeter_id' when calling get_network_perimeter." if network_perimeter_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'network_perimeter_id' must not be blank" if OCI::Internal::Util.blank_string?(network_perimeter_id)

  path = '/admin/v1/NetworkPerimeters/{networkPerimeterId}'.sub('{networkPerimeterId}', network_perimeter_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_network_perimeter') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeter'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_notification_setting(notification_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_notification_setting API.

Get Notification Settings

Parameters:

  • notification_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8424

def get_notification_setting(notification_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_notification_setting.' if logger

  raise "Missing the required parameter 'notification_setting_id' when calling get_notification_setting." if notification_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'notification_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(notification_setting_id)

  path = '/admin/v1/NotificationSettings/{notificationSettingId}'.sub('{notificationSettingId}', notification_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_notification_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NotificationSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_o_auth2_client_credential(o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_o_auth2_client_credential API.

Get a user's OAuth2 client credentials.

Parameters:

  • o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8498

def get_o_auth2_client_credential(o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'o_auth2_client_credential_id' when calling get_o_auth2_client_credential." if o_auth2_client_credential_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth2_client_credential_id)

  path = '/admin/v1/OAuth2ClientCredentials/{oAuth2ClientCredentialId}'.sub('{oAuth2ClientCredentialId}', o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_o_auth2_client_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_o_auth_client_certificate(o_auth_client_certificate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_o_auth_client_certificate API.

Get OAuth Client Certificates

Parameters:

  • o_auth_client_certificate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8569

def get_o_auth_client_certificate(o_auth_client_certificate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_o_auth_client_certificate.' if logger

  raise "Missing the required parameter 'o_auth_client_certificate_id' when calling get_o_auth_client_certificate." if o_auth_client_certificate_id.nil?
  raise "Parameter value for 'o_auth_client_certificate_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth_client_certificate_id)

  path = '/admin/v1/OAuthClientCertificates/{oAuthClientCertificateId}'.sub('{oAuthClientCertificateId}', o_auth_client_certificate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_o_auth_client_certificate') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthClientCertificate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_o_auth_partner_certificate(o_auth_partner_certificate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_o_auth_partner_certificate API.

Get an OAuth Partner Certificate

Parameters:

  • o_auth_partner_certificate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8628

def get_o_auth_partner_certificate(o_auth_partner_certificate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_o_auth_partner_certificate.' if logger

  raise "Missing the required parameter 'o_auth_partner_certificate_id' when calling get_o_auth_partner_certificate." if o_auth_partner_certificate_id.nil?
  raise "Parameter value for 'o_auth_partner_certificate_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth_partner_certificate_id)

  path = '/admin/v1/OAuthPartnerCertificates/{oAuthPartnerCertificateId}'.sub('{oAuthPartnerCertificateId}', o_auth_partner_certificate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_o_auth_partner_certificate') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthPartnerCertificate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_password_policy(password_policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_password_policy API.

Get a password policy.

Parameters:

  • password_policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8690

def get_password_policy(password_policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_password_policy.' if logger

  raise "Missing the required parameter 'password_policy_id' when calling get_password_policy." if password_policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'password_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(password_policy_id)

  path = '/admin/v1/PasswordPolicies/{passwordPolicyId}'.sub('{passwordPolicyId}', password_policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_password_policy') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_policy(policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_policy API.

Get a Policy

Parameters:

  • policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8764

def get_policy(policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_policy.' if logger

  raise "Missing the required parameter 'policy_id' when calling get_policy." if policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util.blank_string?(policy_id)

  path = '/admin/v1/Policies/{policyId}'.sub('{policyId}', policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_policy') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_rule(rule_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_rule API.

Get a Rule

Parameters:

  • rule_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8838

def get_rule(rule_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_rule.' if logger

  raise "Missing the required parameter 'rule_id' when calling get_rule." if rule_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'rule_id' must not be blank" if OCI::Internal::Util.blank_string?(rule_id)

  path = '/admin/v1/Rules/{ruleId}'.sub('{ruleId}', rule_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_rule') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rule'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_schema(schema_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_schema API.

Get a Schema

Parameters:

  • schema_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8909

def get_schema(schema_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_schema.' if logger

  raise "Missing the required parameter 'schema_id' when calling get_schema." if schema_id.nil?
  raise "Parameter value for 'schema_id' must not be blank" if OCI::Internal::Util.blank_string?(schema_id)

  path = '/admin/v1/Schemas/{schemaId}'.sub('{schemaId}', schema_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_schema') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Schema'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_security_question(security_question_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_security_question API.

Get a security question.

Parameters:

  • security_question_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8971

def get_security_question(security_question_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_security_question.' if logger

  raise "Missing the required parameter 'security_question_id' when calling get_security_question." if security_question_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'security_question_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_id)

  path = '/admin/v1/SecurityQuestions/{securityQuestionId}'.sub('{securityQuestionId}', security_question_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_security_question') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestion'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_security_question_setting(security_question_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_security_question_setting API.

Get a security question setting.

Parameters:

  • security_question_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9045

def get_security_question_setting(security_question_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_security_question_setting.' if logger

  raise "Missing the required parameter 'security_question_setting_id' when calling get_security_question_setting." if security_question_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'security_question_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_setting_id)

  path = '/admin/v1/SecurityQuestionSettings/{securityQuestionSettingId}'.sub('{securityQuestionSettingId}', security_question_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_security_question_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestionSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_self_registration_profile(self_registration_profile_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_self_registration_profile API.

Get a self-registration profile.

Parameters:

  • self_registration_profile_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9119

def get_self_registration_profile(self_registration_profile_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_self_registration_profile.' if logger

  raise "Missing the required parameter 'self_registration_profile_id' when calling get_self_registration_profile." if self_registration_profile_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'self_registration_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(self_registration_profile_id)

  path = '/admin/v1/SelfRegistrationProfiles/{selfRegistrationProfileId}'.sub('{selfRegistrationProfileId}', self_registration_profile_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_self_registration_profile') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfile'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_setting(setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_setting API.

Get Settings

Parameters:

  • setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9193

def get_setting(setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_setting.' if logger

  raise "Missing the required parameter 'setting_id' when calling get_setting." if setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'setting_id' must not be blank" if OCI::Internal::Util.blank_string?(setting_id)

  path = '/admin/v1/Settings/{settingId}'.sub('{settingId}', setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Setting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_smtp_credential(smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_smtp_credential API.

Get a user's SMTP credentials.

Parameters:

  • smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9267

def get_smtp_credential(smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_smtp_credential.' if logger

  raise "Missing the required parameter 'smtp_credential_id' when calling get_smtp_credential." if smtp_credential_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(smtp_credential_id)

  path = '/admin/v1/SmtpCredentials/{smtpCredentialId}'.sub('{smtpCredentialId}', smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_smtp_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_user(user_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_user API.

Get a user.

Parameters:

  • user_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9341

def get_user(user_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_user.' if logger

  raise "Missing the required parameter 'user_id' when calling get_user." if user_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)

  path = '/admin/v1/Users/{userId}'.sub('{userId}', user_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_user') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::User'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_user_attributes_setting(user_attributes_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_user_attributes_setting API.

Get User Schema Attribute Settings

Parameters:

  • user_attributes_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9415

def get_user_attributes_setting(user_attributes_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_user_attributes_setting.' if logger

  raise "Missing the required parameter 'user_attributes_setting_id' when calling get_user_attributes_setting." if user_attributes_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_attributes_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(user_attributes_setting_id)

  path = '/admin/v1/UserAttributesSettings/{userAttributesSettingId}'.sub('{userAttributesSettingId}', user_attributes_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_user_attributes_setting') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserAttributesSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_user_db_credential(user_db_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use get_user_db_credential API.

Get a user's database (DB) credentials.

Parameters:

  • user_db_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9489

def get_user_db_credential(user_db_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#get_user_db_credential.' if logger

  raise "Missing the required parameter 'user_db_credential_id' when calling get_user_db_credential." if user_db_credential_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_db_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(user_db_credential_id)

  path = '/admin/v1/UserDbCredentials/{userDbCredentialId}'.sub('{userDbCredentialId}', user_db_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#get_user_db_credential') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserDbCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_account_mgmt_infos(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_account_mgmt_infos API.

Search Account Mgmt Info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9569

def (opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_account_mgmt_infos.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AccountMgmtInfos'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_account_mgmt_infos') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountMgmtInfos'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_account_recovery_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_account_recovery_settings API.

Search for account recovery settings.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9653

def (opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_account_recovery_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AccountRecoverySettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_account_recovery_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountRecoverySettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_api_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_api_keys API.

Search API keys.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9733

def list_api_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_api_keys.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApiKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_api_keys') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApiKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_app_roles(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_app_roles API.

Search AppRoles

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9822

def list_app_roles(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_app_roles.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AppRoles'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_app_roles') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppRoles'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_approval_workflow_assignments(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_approval_workflow_assignments API.

Search Approval Workflow Assignments

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9911

def list_approval_workflow_assignments(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_approval_workflow_assignments.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflowAssignments'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_approval_workflow_assignments') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowAssignments'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_approval_workflow_steps(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_approval_workflow_steps API.

Search ApprovalWorkflowStep

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10000

def list_approval_workflow_steps(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_approval_workflow_steps.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflowSteps'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_approval_workflow_steps') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowSteps'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_approval_workflows(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_approval_workflows API.

Search ApprovalWorkflow

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10089

def list_approval_workflows(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_approval_workflows.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ApprovalWorkflows'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_approval_workflows') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflows'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_apps(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_apps API.

Search Apps

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10178

def list_apps(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_apps.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Apps'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_apps') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Apps'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_auth_tokens(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_auth_tokens API.

Search for Auth tokens.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10267

def list_auth_tokens(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_auth_tokens.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AuthTokens'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_auth_tokens') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthTokens'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_authentication_factor_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_authentication_factor_settings API.

Search Authentication Factor Settings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10351

def list_authentication_factor_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_authentication_factor_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/AuthenticationFactorSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_authentication_factor_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthenticationFactorSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_branding_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_branding_settings API.

Search Branding Settings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10426

def list_branding_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_branding_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/BrandingSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_branding_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::BrandingSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_cloud_gate_mappings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_cloud_gate_mappings API.

Search Cloud Gate mappings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10506

def list_cloud_gate_mappings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_cloud_gate_mappings.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGateMappings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_cloud_gate_mappings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMappings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_cloud_gate_servers(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_cloud_gate_servers API.

Search Cloud Gate servers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10595

def list_cloud_gate_servers(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_cloud_gate_servers.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGateServers'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_cloud_gate_servers') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServers'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_cloud_gates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_cloud_gates API.

Search Cloud Gates

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10684

def list_cloud_gates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_cloud_gates.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CloudGates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_cloud_gates') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_conditions(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_conditions API.

Search Conditions

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10773

def list_conditions(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_conditions.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Conditions'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_conditions') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Conditions'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_customer_secret_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_customer_secret_keys API.

Search for a user's customer secret keys.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10862

def list_customer_secret_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_customer_secret_keys.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/CustomerSecretKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_customer_secret_keys') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CustomerSecretKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_dynamic_resource_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_dynamic_resource_groups API.

Search for Dynamic Resource Groups.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10951

def list_dynamic_resource_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_dynamic_resource_groups.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/DynamicResourceGroups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_dynamic_resource_groups') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_grants(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_grants API.

Search Grants

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11040

def list_grants(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_grants.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Grants'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_grants') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Grants'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_groups API.

Search for groups. Important: The Group SEARCH and GET operations on users and members will throw an exception if the response has more than 10,000 members. To avoid the exception, use the pagination filter to GET or SEARCH group members.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11129

def list_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_groups.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Groups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_groups') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Groups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_identity_propagation_trusts(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_identity_propagation_trusts API.

List the Identity Propagation Trust configurations.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11218

def list_identity_propagation_trusts(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_identity_propagation_trusts.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/IdentityPropagationTrusts'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_identity_propagation_trusts') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityPropagationTrusts'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_identity_providers(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_identity_providers API.

Search Identity Providers

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11307

def list_identity_providers(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_identity_providers.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/IdentityProviders'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_identity_providers') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProviders'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_identity_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_identity_settings API.

Search for Identity settings.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11391

def list_identity_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_identity_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/IdentitySettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_identity_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentitySettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_kmsi_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_kmsi_settings API.

Search KmsiSettings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11466

def list_kmsi_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_kmsi_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/KmsiSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_kmsi_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::KmsiSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_api_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_api_keys API.

Search for a user's own API key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11543

def list_my_api_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_api_keys.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyApiKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_api_keys') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApiKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_apps(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_apps API.

Search My Apps

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11617

def list_my_apps(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_apps.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyApps'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_apps') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApps'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_auth_tokens(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_auth_tokens API.

Search for a user's own Auth token.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11691

def list_my_auth_tokens(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_auth_tokens.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyAuthTokens'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_auth_tokens') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthTokens'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_completed_approvals(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_completed_approvals API.

Search My MyCompletedApproval

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11765

def list_my_completed_approvals(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_completed_approvals.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyCompletedApprovals'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_completed_approvals') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCompletedApprovals'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_customer_secret_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_customer_secret_keys API.

Search for a user's own customer secret key.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11839

def list_my_customer_secret_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_customer_secret_keys.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyCustomerSecretKeys'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_customer_secret_keys') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCustomerSecretKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_devices(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_devices API.

Search Devices

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11916

def list_my_devices(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_devices.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/MyDevices'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_devices') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyDevices'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_groups API.

Search for 'My Groups'.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12005

def list_my_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_groups.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/MyGroups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_groups') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_o_auth2_client_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_o_auth2_client_credentials API.

Search for a user's own OAuth2 client credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12091

def list_my_o_auth2_client_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_o_auth2_client_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyOAuth2ClientCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_o_auth2_client_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyOAuth2ClientCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_pending_approvals(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_pending_approvals API.

Search My Approvals

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12165

def list_my_pending_approvals(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_pending_approvals.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyPendingApprovals'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_pending_approvals') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyPendingApprovals'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_requestable_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_requestable_groups API.

Search My Requestable Groups

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12239

def list_my_requestable_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_requestable_groups.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyRequestableGroups'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_requestable_groups') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequestableGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_requests(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_requests API.

Search My Requests

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12316

def list_my_requests(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_requests.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/MyRequests'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_requests') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequests'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_smtp_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_smtp_credentials API.

Search for a user's own SMTP credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12402

def list_my_smtp_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_smtp_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MySmtpCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_smtp_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySmtpCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_support_accounts(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_support_accounts API.

Search for a user's own support account.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12476

def list_my_support_accounts(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_support_accounts.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MySupportAccounts'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_support_accounts') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySupportAccounts'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_trusted_user_agents(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_trusted_user_agents API.

Search Trusted User Agents

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12553

def list_my_trusted_user_agents(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_trusted_user_agents.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/MyTrustedUserAgents'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_trusted_user_agents') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyTrustedUserAgents'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_my_user_db_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_my_user_db_credentials API.

Search for a user's own database (DB) credential.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12639

def list_my_user_db_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_my_user_db_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/MyUserDbCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_my_user_db_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyUserDbCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_network_perimeters(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_network_perimeters API.

Search NetworkPerimeters

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12716

def list_network_perimeters(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_network_perimeters.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/NetworkPerimeters'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_network_perimeters') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeters'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_notification_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_notification_settings API.

Search Notification Settings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12800

def list_notification_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_notification_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/NotificationSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_notification_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NotificationSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_o_auth2_client_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_o_auth2_client_credentials API.

Search for a user's OAuth2 client credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12880

def list_o_auth2_client_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_o_auth2_client_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/OAuth2ClientCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_o_auth2_client_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuth2ClientCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_o_auth_client_certificates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_o_auth_client_certificates API.

Search OAuth Client Certificates

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12966

def list_o_auth_client_certificates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_o_auth_client_certificates.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/OAuthClientCertificates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_o_auth_client_certificates') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthClientCertificates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_o_auth_partner_certificates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_o_auth_partner_certificates API.

Search OAuth Partner Certificates

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13040

def list_o_auth_partner_certificates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_o_auth_partner_certificates.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/OAuthPartnerCertificates'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_o_auth_partner_certificates') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthPartnerCertificates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_password_policies(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_password_policies API.

Search for password policies.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13117

def list_password_policies(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_password_policies.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/PasswordPolicies'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_password_policies') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicies'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_policies(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_policies API.

Search Policies

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13206

def list_policies(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_policies.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Policies'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_policies') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policies'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_resource_type_schema_attributes(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_resource_type_schema_attributes API.

Search Resource Type Schema Attributes

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13295

def list_resource_type_schema_attributes(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_resource_type_schema_attributes.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/ResourceTypeSchemaAttributes'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_resource_type_schema_attributes') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ResourceTypeSchemaAttributes'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_rules(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_rules API.

Search Rules

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13384

def list_rules(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_rules.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Rules'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_rules') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rules'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_schemas(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_schemas API.

Search Schemas

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13469

def list_schemas(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_schemas.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end

  path = '/admin/v1/Schemas'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_schemas') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Schemas'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_security_question_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_security_question_settings API.

Search for security question settings.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13540

def list_security_question_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_security_question_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SecurityQuestionSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_security_question_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestionSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_security_questions(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_security_questions API.

Search for security questions.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13620

def list_security_questions(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_security_questions.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SecurityQuestions'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_security_questions') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestions'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_self_registration_profiles(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_self_registration_profiles API.

Search for self-registration profiles.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13709

def list_self_registration_profiles(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_self_registration_profiles.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SelfRegistrationProfiles'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_self_registration_profiles') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfiles'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_settings API.

Search Settings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13793

def list_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Settings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Settings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_smtp_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_smtp_credentials API.

Search for SMTP credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13873

def list_smtp_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_smtp_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/SmtpCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_smtp_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SmtpCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_user_attributes_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_user_attributes_settings API.

Search User Schema Attribute Settings

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13957

def list_user_attributes_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_user_attributes_settings.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/UserAttributesSettings'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_user_attributes_settings') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserAttributesSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_user_db_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_user_db_credentials API.

Search for a user's database (DB) credentials.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14037

def list_user_db_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_user_db_credentials.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/UserDbCredentials'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_user_db_credentials') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserDbCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_users(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use list_users API.

Search for users.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :filter (String)

    OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.

  • :sort_by (String)

    OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3). (default to id)

  • :sort_order (String)

    A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See (Sorting Section). OPTIONAL. (default to ASCENDING)

  • :start_index (Integer)

    OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on. (default to 1)

  • :count (Integer)

    OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4). (default to 50)

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14126

def list_users(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_users.' if logger


  if opts[:sort_order] && !OCI::IdentityDomains::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of the values in OCI::IdentityDomains::Models::SORT_ORDER_ENUM.'
  end


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Users'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:filter] = opts[:filter] if opts[:filter]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:startIndex] = opts[:start_index] if opts[:start_index]
  query_params[:count] = opts[:count] if opts[:count]
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#list_users') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Users'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#loggerLogger

Returns The logger for this client. May be nil.

Returns:

  • (Logger)

    The logger for this client. May be nil.



69
70
71
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 69

def logger
  @api_client.config.logger
end

#patch_account_recovery_setting(account_recovery_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_account_recovery_setting API.

Update an account recovery setting.

Parameters:

  • account_recovery_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the AccountRecoverySettings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14224

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_account_recovery_setting.' if logger

  raise "Missing the required parameter 'account_recovery_setting_id' when calling patch_account_recovery_setting." if .nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'account_recovery_setting_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/AccountRecoverySettings/{accountRecoverySettingId}'.sub('{accountRecoverySettingId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_account_recovery_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountRecoverySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_api_key(api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_api_key API.

Update a user's API key.

Parameters:

  • api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the ApiKey with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14314

def patch_api_key(api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_api_key.' if logger

  raise "Missing the required parameter 'api_key_id' when calling patch_api_key." if api_key_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(api_key_id)

  path = '/admin/v1/ApiKeys/{apiKeyId}'.sub('{apiKeyId}', api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_api_key') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_app(app_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_app API.

Update an App

Parameters:

  • app_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the App with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type App



14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14404

def patch_app(app_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_app.' if logger

  raise "Missing the required parameter 'app_id' when calling patch_app." if app_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_id' must not be blank" if OCI::Internal::Util.blank_string?(app_id)

  path = '/admin/v1/Apps/{appId}'.sub('{appId}', app_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_app') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::App'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_app_role(app_role_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_app_role API.

Update an AppRole

Parameters:

  • app_role_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the AppRole with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14494

def patch_app_role(app_role_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_app_role.' if logger

  raise "Missing the required parameter 'app_role_id' when calling patch_app_role." if app_role_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_role_id' must not be blank" if OCI::Internal::Util.blank_string?(app_role_id)

  path = '/admin/v1/AppRoles/{appRoleId}'.sub('{appRoleId}', app_role_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_app_role') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppRole'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_approval_workflow(approval_workflow_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_approval_workflow API.

Update ApprovalWorkflow

Parameters:

  • approval_workflow_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the ApprovalWorkflow with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14584

def patch_approval_workflow(approval_workflow_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_approval_workflow.' if logger

  raise "Missing the required parameter 'approval_workflow_id' when calling patch_approval_workflow." if approval_workflow_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_id)

  path = '/admin/v1/ApprovalWorkflows/{approvalWorkflowId}'.sub('{approvalWorkflowId}', approval_workflow_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_approval_workflow') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflow'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_approval_workflow_step(approval_workflow_step_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_approval_workflow_step API.

Update ApprovalWorkflowStep

Parameters:

  • approval_workflow_step_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the ApprovalWorkflowStep with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14674

def patch_approval_workflow_step(approval_workflow_step_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_approval_workflow_step.' if logger

  raise "Missing the required parameter 'approval_workflow_step_id' when calling patch_approval_workflow_step." if approval_workflow_step_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_step_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_step_id)

  path = '/admin/v1/ApprovalWorkflowSteps/{approvalWorkflowStepId}'.sub('{approvalWorkflowStepId}', approval_workflow_step_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_approval_workflow_step') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflowStep'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_auth_token(auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_auth_token API.

Update a user's Auth token.

Parameters:

  • auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the AuthToken with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14764

def patch_auth_token(auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_auth_token.' if logger

  raise "Missing the required parameter 'auth_token_id' when calling patch_auth_token." if auth_token_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(auth_token_id)

  path = '/admin/v1/AuthTokens/{authTokenId}'.sub('{authTokenId}', auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_auth_token') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_cloud_gate(cloud_gate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_cloud_gate API.

Update a Cloud Gate

Parameters:

  • cloud_gate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the CloudGate with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14854

def patch_cloud_gate(cloud_gate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_cloud_gate.' if logger

  raise "Missing the required parameter 'cloud_gate_id' when calling patch_cloud_gate." if cloud_gate_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_id)

  path = '/admin/v1/CloudGates/{cloudGateId}'.sub('{cloudGateId}', cloud_gate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_cloud_gate') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_cloud_gate_mapping(cloud_gate_mapping_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_cloud_gate_mapping API.

Update a Cloud Gate mapping

Parameters:

  • cloud_gate_mapping_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the CloudGateMapping with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14944

def patch_cloud_gate_mapping(cloud_gate_mapping_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_cloud_gate_mapping.' if logger

  raise "Missing the required parameter 'cloud_gate_mapping_id' when calling patch_cloud_gate_mapping." if cloud_gate_mapping_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_mapping_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_mapping_id)

  path = '/admin/v1/CloudGateMappings/{cloudGateMappingId}'.sub('{cloudGateMappingId}', cloud_gate_mapping_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_cloud_gate_mapping') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMapping'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_cloud_gate_server(cloud_gate_server_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_cloud_gate_server API.

Update a Cloud Gate server

Parameters:

  • cloud_gate_server_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the CloudGateServer with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15034

def patch_cloud_gate_server(cloud_gate_server_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_cloud_gate_server.' if logger

  raise "Missing the required parameter 'cloud_gate_server_id' when calling patch_cloud_gate_server." if cloud_gate_server_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_server_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_server_id)

  path = '/admin/v1/CloudGateServers/{cloudGateServerId}'.sub('{cloudGateServerId}', cloud_gate_server_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_cloud_gate_server') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServer'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_condition(condition_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_condition API.

Update a Condition

Parameters:

  • condition_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Condition with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15124

def patch_condition(condition_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_condition.' if logger

  raise "Missing the required parameter 'condition_id' when calling patch_condition." if condition_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'condition_id' must not be blank" if OCI::Internal::Util.blank_string?(condition_id)

  path = '/admin/v1/Conditions/{conditionId}'.sub('{conditionId}', condition_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_condition') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Condition'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_customer_secret_key(customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_customer_secret_key API.

Update a user's customer secret key.

Parameters:

  • customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the CustomerSecretKey with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15214

def patch_customer_secret_key(customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_customer_secret_key.' if logger

  raise "Missing the required parameter 'customer_secret_key_id' when calling patch_customer_secret_key." if customer_secret_key_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(customer_secret_key_id)

  path = '/admin/v1/CustomerSecretKeys/{customerSecretKeyId}'.sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_customer_secret_key') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_dynamic_resource_group(dynamic_resource_group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_dynamic_resource_group API.

Update a Dynamic Resource Group.

Parameters:

  • dynamic_resource_group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the DynamicResourceGroup with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15304

def patch_dynamic_resource_group(dynamic_resource_group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_dynamic_resource_group.' if logger

  raise "Missing the required parameter 'dynamic_resource_group_id' when calling patch_dynamic_resource_group." if dynamic_resource_group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'dynamic_resource_group_id' must not be blank" if OCI::Internal::Util.blank_string?(dynamic_resource_group_id)

  path = '/admin/v1/DynamicResourceGroups/{dynamicResourceGroupId}'.sub('{dynamicResourceGroupId}', dynamic_resource_group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_dynamic_resource_group') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroup'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_grant(grant_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_grant API.

Update a Grant

Parameters:

  • grant_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Grant with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15394

def patch_grant(grant_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_grant.' if logger

  raise "Missing the required parameter 'grant_id' when calling patch_grant." if grant_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'grant_id' must not be blank" if OCI::Internal::Util.blank_string?(grant_id)

  path = '/admin/v1/Grants/{grantId}'.sub('{grantId}', grant_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_grant') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Grant'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_group(group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_group API.

Update a group.

Parameters:

  • group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Group with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15484

def patch_group(group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_group.' if logger

  raise "Missing the required parameter 'group_id' when calling patch_group." if group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util.blank_string?(group_id)

  path = '/admin/v1/Groups/{groupId}'.sub('{groupId}', group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_group') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Group'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_identity_propagation_trust(identity_propagation_trust_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_identity_propagation_trust API.

Update an existing Identity Propagation Trust configuration.

Parameters:

  • identity_propagation_trust_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the IdentityPropagationTrust with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute.

    • Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable:

    • The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly.

    • The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly.

    • Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below:

    • Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always:

    • If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always.

    • If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always.

    • The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15576

def patch_identity_propagation_trust(identity_propagation_trust_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_identity_propagation_trust.' if logger

  raise "Missing the required parameter 'identity_propagation_trust_id' when calling patch_identity_propagation_trust." if identity_propagation_trust_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_propagation_trust_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_propagation_trust_id)

  path = '/admin/v1/IdentityPropagationTrusts/{identityPropagationTrustId}'.sub('{identityPropagationTrustId}', identity_propagation_trust_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_identity_propagation_trust') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityPropagationTrust'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_identity_provider(identity_provider_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_identity_provider API.

Update an Identity Provider

Parameters:

  • identity_provider_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the IdentityProvider with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15666

def patch_identity_provider(identity_provider_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_identity_provider.' if logger

  raise "Missing the required parameter 'identity_provider_id' when calling patch_identity_provider." if identity_provider_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_provider_id)

  path = '/admin/v1/IdentityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_identity_provider') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProvider'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_identity_setting(identity_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_identity_setting API.

Update an Identity setting.

Parameters:

  • identity_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the IdentitySettings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15756

def patch_identity_setting(identity_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_identity_setting.' if logger

  raise "Missing the required parameter 'identity_setting_id' when calling patch_identity_setting." if identity_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_setting_id)

  path = '/admin/v1/IdentitySettings/{identitySettingId}'.sub('{identitySettingId}', identity_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_identity_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentitySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_kmsi_setting(kmsi_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_kmsi_setting API.

Update a Setting

Parameters:

  • kmsi_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the KmsiSettings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15846

def patch_kmsi_setting(kmsi_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_kmsi_setting.' if logger

  raise "Missing the required parameter 'kmsi_setting_id' when calling patch_kmsi_setting." if kmsi_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'kmsi_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(kmsi_setting_id)

  path = '/admin/v1/KmsiSettings/{kmsiSettingId}'.sub('{kmsiSettingId}', kmsi_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_kmsi_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::KmsiSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_me(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_me API.

Update a user's own information.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Me with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type Me



15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15935

def patch_me(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_me.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Me'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_me') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Me'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_api_key(my_api_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_api_key API.

Update a user's own API key.

Parameters:

  • my_api_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyApiKey with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16020

def patch_my_api_key(my_api_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_api_key.' if logger

  raise "Missing the required parameter 'my_api_key_id' when calling patch_my_api_key." if my_api_key_id.nil?
  raise "Parameter value for 'my_api_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_api_key_id)

  path = '/admin/v1/MyApiKeys/{myApiKeyId}'.sub('{myApiKeyId}', my_api_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_api_key') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApiKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_auth_token(my_auth_token_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_auth_token API.

Update a user's own Auth token.

Parameters:

  • my_auth_token_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyAuthToken with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16095

def patch_my_auth_token(my_auth_token_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_auth_token.' if logger

  raise "Missing the required parameter 'my_auth_token_id' when calling patch_my_auth_token." if my_auth_token_id.nil?
  raise "Parameter value for 'my_auth_token_id' must not be blank" if OCI::Internal::Util.blank_string?(my_auth_token_id)

  path = '/admin/v1/MyAuthTokens/{myAuthTokenId}'.sub('{myAuthTokenId}', my_auth_token_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_auth_token') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyAuthToken'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_customer_secret_key(my_customer_secret_key_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_customer_secret_key API.

Update a user's own customer secret key.

Parameters:

  • my_customer_secret_key_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyCustomerSecretKey with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16170

def patch_my_customer_secret_key(my_customer_secret_key_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_customer_secret_key.' if logger

  raise "Missing the required parameter 'my_customer_secret_key_id' when calling patch_my_customer_secret_key." if my_customer_secret_key_id.nil?
  raise "Parameter value for 'my_customer_secret_key_id' must not be blank" if OCI::Internal::Util.blank_string?(my_customer_secret_key_id)

  path = '/admin/v1/MyCustomerSecretKeys/{myCustomerSecretKeyId}'.sub('{myCustomerSecretKeyId}', my_customer_secret_key_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_customer_secret_key') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyCustomerSecretKey'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_device(my_device_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_device API.

Update a Device

Parameters:

  • my_device_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyDevice with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16248

def patch_my_device(my_device_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_device.' if logger

  raise "Missing the required parameter 'my_device_id' when calling patch_my_device." if my_device_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'my_device_id' must not be blank" if OCI::Internal::Util.blank_string?(my_device_id)

  path = '/admin/v1/MyDevices/{myDeviceId}'.sub('{myDeviceId}', my_device_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_device') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyDevice'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_o_auth2_client_credential API.

Update a user's own OAuth2 client credential.

Parameters:

  • my_o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyOAuth2ClientCredential with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16335

def patch_my_o_auth2_client_credential(my_o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'my_o_auth2_client_credential_id' when calling patch_my_o_auth2_client_credential." if my_o_auth2_client_credential_id.nil?
  raise "Parameter value for 'my_o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_o_auth2_client_credential_id)

  path = '/admin/v1/MyOAuth2ClientCredentials/{myOAuth2ClientCredentialId}'.sub('{myOAuth2ClientCredentialId}', my_o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_o_auth2_client_credential') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyOAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_pending_approval(my_pending_approval_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_pending_approval API.

Update MyPendingApproval

Parameters:

  • my_pending_approval_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyPendingApproval with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16410

def patch_my_pending_approval(my_pending_approval_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_pending_approval.' if logger

  raise "Missing the required parameter 'my_pending_approval_id' when calling patch_my_pending_approval." if my_pending_approval_id.nil?
  raise "Parameter value for 'my_pending_approval_id' must not be blank" if OCI::Internal::Util.blank_string?(my_pending_approval_id)

  path = '/admin/v1/MyPendingApprovals/{myPendingApprovalId}'.sub('{myPendingApprovalId}', my_pending_approval_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_pending_approval') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyPendingApproval'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_request(my_request_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_request API.

Update My Requests

Parameters:

  • my_request_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MyRequest with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16488

def patch_my_request(my_request_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_request.' if logger

  raise "Missing the required parameter 'my_request_id' when calling patch_my_request." if my_request_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'my_request_id' must not be blank" if OCI::Internal::Util.blank_string?(my_request_id)

  path = '/admin/v1/MyRequests/{myRequestId}'.sub('{myRequestId}', my_request_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_request') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequest'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_my_smtp_credential(my_smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_my_smtp_credential API.

Update a user's own SMTP credential.

Parameters:

  • my_smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the MySmtpCredential with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16575

def patch_my_smtp_credential(my_smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_my_smtp_credential.' if logger

  raise "Missing the required parameter 'my_smtp_credential_id' when calling patch_my_smtp_credential." if my_smtp_credential_id.nil?
  raise "Parameter value for 'my_smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(my_smtp_credential_id)

  path = '/admin/v1/MySmtpCredentials/{mySmtpCredentialId}'.sub('{mySmtpCredentialId}', my_smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_my_smtp_credential') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MySmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_network_perimeter(network_perimeter_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_network_perimeter API.

Update a NetworkPerimeter

Parameters:

  • network_perimeter_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the NetworkPerimeter with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16653

def patch_network_perimeter(network_perimeter_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_network_perimeter.' if logger

  raise "Missing the required parameter 'network_perimeter_id' when calling patch_network_perimeter." if network_perimeter_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'network_perimeter_id' must not be blank" if OCI::Internal::Util.blank_string?(network_perimeter_id)

  path = '/admin/v1/NetworkPerimeters/{networkPerimeterId}'.sub('{networkPerimeterId}', network_perimeter_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_network_perimeter') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeter'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_o_auth2_client_credential(o_auth2_client_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_o_auth2_client_credential API.

Update a user's OAuth2 client credentials.

Parameters:

  • o_auth2_client_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the OAuth2ClientCredential with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16743

def patch_o_auth2_client_credential(o_auth2_client_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_o_auth2_client_credential.' if logger

  raise "Missing the required parameter 'o_auth2_client_credential_id' when calling patch_o_auth2_client_credential." if o_auth2_client_credential_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'o_auth2_client_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(o_auth2_client_credential_id)

  path = '/admin/v1/OAuth2ClientCredentials/{oAuth2ClientCredentialId}'.sub('{oAuth2ClientCredentialId}', o_auth2_client_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_o_auth2_client_credential') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuth2ClientCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_password_policy(password_policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_password_policy API.

Update a password policy.

Parameters:

  • password_policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the PasswordPolicy with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16833

def patch_password_policy(password_policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_password_policy.' if logger

  raise "Missing the required parameter 'password_policy_id' when calling patch_password_policy." if password_policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'password_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(password_policy_id)

  path = '/admin/v1/PasswordPolicies/{passwordPolicyId}'.sub('{passwordPolicyId}', password_policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_password_policy') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_policy(policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_policy API.

Update a Policy

Parameters:

  • policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Policy with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16923

def patch_policy(policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_policy.' if logger

  raise "Missing the required parameter 'policy_id' when calling patch_policy." if policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util.blank_string?(policy_id)

  path = '/admin/v1/Policies/{policyId}'.sub('{policyId}', policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_policy') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_rule(rule_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_rule API.

Update a Rule

Parameters:

  • rule_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Rule with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17013

def patch_rule(rule_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_rule.' if logger

  raise "Missing the required parameter 'rule_id' when calling patch_rule." if rule_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'rule_id' must not be blank" if OCI::Internal::Util.blank_string?(rule_id)

  path = '/admin/v1/Rules/{ruleId}'.sub('{ruleId}', rule_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_rule') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rule'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_schema(schema_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_schema API.

Update a Schema Def

Parameters:

  • schema_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Schema with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17100

def patch_schema(schema_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_schema.' if logger

  raise "Missing the required parameter 'schema_id' when calling patch_schema." if schema_id.nil?
  raise "Parameter value for 'schema_id' must not be blank" if OCI::Internal::Util.blank_string?(schema_id)

  path = '/admin/v1/Schemas/{schemaId}'.sub('{schemaId}', schema_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_schema') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Schema'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_security_question(security_question_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_security_question API.

Update a security question.

Parameters:

  • security_question_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the SecurityQuestion with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17178

def patch_security_question(security_question_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_security_question.' if logger

  raise "Missing the required parameter 'security_question_id' when calling patch_security_question." if security_question_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'security_question_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_id)

  path = '/admin/v1/SecurityQuestions/{securityQuestionId}'.sub('{securityQuestionId}', security_question_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_security_question') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestion'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_security_question_setting(security_question_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_security_question_setting API.

Update a security question setting.

Parameters:

  • security_question_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the SecurityQuestionSettings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17268

def patch_security_question_setting(security_question_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_security_question_setting.' if logger

  raise "Missing the required parameter 'security_question_setting_id' when calling patch_security_question_setting." if security_question_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'security_question_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_setting_id)

  path = '/admin/v1/SecurityQuestionSettings/{securityQuestionSettingId}'.sub('{securityQuestionSettingId}', security_question_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_security_question_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestionSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_self_registration_profile(self_registration_profile_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_self_registration_profile API.

Update a self-registration profile.

Parameters:

  • self_registration_profile_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the SelfRegistrationProfile with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17358

def patch_self_registration_profile(self_registration_profile_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_self_registration_profile.' if logger

  raise "Missing the required parameter 'self_registration_profile_id' when calling patch_self_registration_profile." if self_registration_profile_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'self_registration_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(self_registration_profile_id)

  path = '/admin/v1/SelfRegistrationProfiles/{selfRegistrationProfileId}'.sub('{selfRegistrationProfileId}', self_registration_profile_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_self_registration_profile') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfile'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_setting(setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_setting API.

Update a Setting

Parameters:

  • setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the Settings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17448

def patch_setting(setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_setting.' if logger

  raise "Missing the required parameter 'setting_id' when calling patch_setting." if setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'setting_id' must not be blank" if OCI::Internal::Util.blank_string?(setting_id)

  path = '/admin/v1/Settings/{settingId}'.sub('{settingId}', setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Setting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_smtp_credential(smtp_credential_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_smtp_credential API.

Update a user's SMTP credentials.

Parameters:

  • smtp_credential_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the SmtpCredential with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17538

def patch_smtp_credential(smtp_credential_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_smtp_credential.' if logger

  raise "Missing the required parameter 'smtp_credential_id' when calling patch_smtp_credential." if smtp_credential_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'smtp_credential_id' must not be blank" if OCI::Internal::Util.blank_string?(smtp_credential_id)

  path = '/admin/v1/SmtpCredentials/{smtpCredentialId}'.sub('{smtpCredentialId}', smtp_credential_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_smtp_credential') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SmtpCredential'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_user(user_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_user API.

Update a user.

Parameters:

  • user_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the User with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17628

def patch_user(user_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_user.' if logger

  raise "Missing the required parameter 'user_id' when calling patch_user." if user_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)

  path = '/admin/v1/Users/{userId}'.sub('{userId}', user_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_user') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::User'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#patch_user_attributes_setting(user_attributes_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use patch_user_attributes_setting API.

Update User Schema Attribute Settings

Parameters:

  • user_attributes_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the UserAttributesSettings with SCIM Patch schema.

    Before you specify an attribute-value in a request to update a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17718

def patch_user_attributes_setting(user_attributes_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#patch_user_attributes_setting.' if logger

  raise "Missing the required parameter 'user_attributes_setting_id' when calling patch_user_attributes_setting." if user_attributes_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_attributes_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(user_attributes_setting_id)

  path = '/admin/v1/UserAttributesSettings/{userAttributesSettingId}'.sub('{userAttributesSettingId}', user_attributes_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:patch_op])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#patch_user_attributes_setting') do
    @api_client.call_api(
      :PATCH,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserAttributesSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_account_recovery_setting(account_recovery_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_account_recovery_setting API.

Replace an account recovery setting.

Parameters:

  • account_recovery_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :account_recovery_setting (OCI::IdentityDomains::Models::AccountRecoverySetting)

    Replace the current instance of AccountRecoverySettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17808

def (, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_account_recovery_setting.' if logger

  raise "Missing the required parameter 'account_recovery_setting_id' when calling put_account_recovery_setting." if .nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'account_recovery_setting_id' must not be blank" if OCI::Internal::Util.blank_string?()

  path = '/admin/v1/AccountRecoverySettings/{accountRecoverySettingId}'.sub('{accountRecoverySettingId}', .to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:account_recovery_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_account_recovery_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountRecoverySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_app(app_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_app API.

Replace an App

Parameters:

  • app_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :app (OCI::IdentityDomains::Models::App)

    Replace the current instance of App with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type App



17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17898

def put_app(app_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_app.' if logger

  raise "Missing the required parameter 'app_id' when calling put_app." if app_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_id' must not be blank" if OCI::Internal::Util.blank_string?(app_id)

  path = '/admin/v1/Apps/{appId}'.sub('{appId}', app_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_app') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::App'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_app_status_changer(app_status_changer_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_app_status_changer API.

Activate/Deactivate an App

Parameters:

  • app_status_changer_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :app_status_changer (OCI::IdentityDomains::Models::AppStatusChanger)

    Replace the current instance of AppStatusChanger with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17988

def put_app_status_changer(app_status_changer_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_app_status_changer.' if logger

  raise "Missing the required parameter 'app_status_changer_id' when calling put_app_status_changer." if app_status_changer_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'app_status_changer_id' must not be blank" if OCI::Internal::Util.blank_string?(app_status_changer_id)

  path = '/admin/v1/AppStatusChanger/{appStatusChangerId}'.sub('{appStatusChangerId}', app_status_changer_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app_status_changer])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_app_status_changer') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppStatusChanger'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_approval_workflow(approval_workflow_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_approval_workflow API.

Replace ApprovalWorkflow

Parameters:

  • approval_workflow_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :approval_workflow (OCI::IdentityDomains::Models::ApprovalWorkflow)

    Replace the current instance of ApprovalWorkflow with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18078

def put_approval_workflow(approval_workflow_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_approval_workflow.' if logger

  raise "Missing the required parameter 'approval_workflow_id' when calling put_approval_workflow." if approval_workflow_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'approval_workflow_id' must not be blank" if OCI::Internal::Util.blank_string?(approval_workflow_id)

  path = '/admin/v1/ApprovalWorkflows/{approvalWorkflowId}'.sub('{approvalWorkflowId}', approval_workflow_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:approval_workflow])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_approval_workflow') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApprovalWorkflow'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_authentication_factor_setting(authentication_factor_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_authentication_factor_setting API.

Replace Authentication Factor Settings

Parameters:

  • authentication_factor_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :authentication_factor_setting (OCI::IdentityDomains::Models::AuthenticationFactorSetting)

    Replace the current instance of AuthenticationFactorSettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18168

def put_authentication_factor_setting(authentication_factor_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_authentication_factor_setting.' if logger

  raise "Missing the required parameter 'authentication_factor_setting_id' when calling put_authentication_factor_setting." if authentication_factor_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'authentication_factor_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(authentication_factor_setting_id)

  path = '/admin/v1/AuthenticationFactorSettings/{authenticationFactorSettingId}'.sub('{authenticationFactorSettingId}', authentication_factor_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:authentication_factor_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_authentication_factor_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthenticationFactorSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_cloud_gate(cloud_gate_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_cloud_gate API.

Replace a Cloud Gate

Parameters:

  • cloud_gate_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate (OCI::IdentityDomains::Models::CloudGate)

    Replace the current instance of CloudGate with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18258

def put_cloud_gate(cloud_gate_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_cloud_gate.' if logger

  raise "Missing the required parameter 'cloud_gate_id' when calling put_cloud_gate." if cloud_gate_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_id)

  path = '/admin/v1/CloudGates/{cloudGateId}'.sub('{cloudGateId}', cloud_gate_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_cloud_gate') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGate'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_cloud_gate_mapping(cloud_gate_mapping_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_cloud_gate_mapping API.

Replace a Cloud Gate mapping

Parameters:

  • cloud_gate_mapping_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate_mapping (OCI::IdentityDomains::Models::CloudGateMapping)

    Replace the current instance of CloudGateMapping with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18348

def put_cloud_gate_mapping(cloud_gate_mapping_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_cloud_gate_mapping.' if logger

  raise "Missing the required parameter 'cloud_gate_mapping_id' when calling put_cloud_gate_mapping." if cloud_gate_mapping_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_mapping_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_mapping_id)

  path = '/admin/v1/CloudGateMappings/{cloudGateMappingId}'.sub('{cloudGateMappingId}', cloud_gate_mapping_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_mapping])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_cloud_gate_mapping') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMapping'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_cloud_gate_server(cloud_gate_server_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_cloud_gate_server API.

Replace a Cloud Gate server

Parameters:

  • cloud_gate_server_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :cloud_gate_server (OCI::IdentityDomains::Models::CloudGateServer)

    Replace the current instance of CloudGateServer with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18438

def put_cloud_gate_server(cloud_gate_server_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_cloud_gate_server.' if logger

  raise "Missing the required parameter 'cloud_gate_server_id' when calling put_cloud_gate_server." if cloud_gate_server_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'cloud_gate_server_id' must not be blank" if OCI::Internal::Util.blank_string?(cloud_gate_server_id)

  path = '/admin/v1/CloudGateServers/{cloudGateServerId}'.sub('{cloudGateServerId}', cloud_gate_server_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_server])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_cloud_gate_server') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServer'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_condition(condition_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_condition API.

Replace a Condition

Parameters:

  • condition_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :condition (OCI::IdentityDomains::Models::Condition)

    Replace the current instance of Condition with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18528

def put_condition(condition_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_condition.' if logger

  raise "Missing the required parameter 'condition_id' when calling put_condition." if condition_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'condition_id' must not be blank" if OCI::Internal::Util.blank_string?(condition_id)

  path = '/admin/v1/Conditions/{conditionId}'.sub('{conditionId}', condition_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:condition])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_condition') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Condition'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_dynamic_resource_group(dynamic_resource_group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_dynamic_resource_group API.

Replace a Dynamic Resource Group.

Parameters:

  • dynamic_resource_group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :dynamic_resource_group (OCI::IdentityDomains::Models::DynamicResourceGroup)

    Replace the current instance of DynamicResourceGroup with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18618

def put_dynamic_resource_group(dynamic_resource_group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_dynamic_resource_group.' if logger

  raise "Missing the required parameter 'dynamic_resource_group_id' when calling put_dynamic_resource_group." if dynamic_resource_group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'dynamic_resource_group_id' must not be blank" if OCI::Internal::Util.blank_string?(dynamic_resource_group_id)

  path = '/admin/v1/DynamicResourceGroups/{dynamicResourceGroupId}'.sub('{dynamicResourceGroupId}', dynamic_resource_group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:dynamic_resource_group])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_dynamic_resource_group') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroup'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_group(group_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_group API.

Replace a group.

Parameters:

  • group_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :group (OCI::IdentityDomains::Models::Group)

    Replace the current instance of Group with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18708

def put_group(group_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_group.' if logger

  raise "Missing the required parameter 'group_id' when calling put_group." if group_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util.blank_string?(group_id)

  path = '/admin/v1/Groups/{groupId}'.sub('{groupId}', group_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:group])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_group') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Group'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_identity_propagation_trust(identity_propagation_trust_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_identity_propagation_trust API.

Replace an existing Identity Propagation Trust configuration.

Parameters:

  • identity_propagation_trust_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :identity_propagation_trust (OCI::IdentityDomains::Models::IdentityPropagationTrust)

    Replace the current instance of IdentityPropagationTrust with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute.

    • Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable:

    • The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly.

    • The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly.

    • Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below:

    • Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always:

    • If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always.

    • If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always.

    • The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18800

def put_identity_propagation_trust(identity_propagation_trust_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_identity_propagation_trust.' if logger

  raise "Missing the required parameter 'identity_propagation_trust_id' when calling put_identity_propagation_trust." if identity_propagation_trust_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_propagation_trust_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_propagation_trust_id)

  path = '/admin/v1/IdentityPropagationTrusts/{identityPropagationTrustId}'.sub('{identityPropagationTrustId}', identity_propagation_trust_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_propagation_trust])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_identity_propagation_trust') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityPropagationTrust'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_identity_provider(identity_provider_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_identity_provider API.

Replace an Identity Provider

Parameters:

  • identity_provider_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :identity_provider (OCI::IdentityDomains::Models::IdentityProvider)

    Replace the current instance of IdentityProvider with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18890

def put_identity_provider(identity_provider_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_identity_provider.' if logger

  raise "Missing the required parameter 'identity_provider_id' when calling put_identity_provider." if identity_provider_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_provider_id)

  path = '/admin/v1/IdentityProviders/{identityProviderId}'.sub('{identityProviderId}', identity_provider_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_provider])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_identity_provider') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProvider'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_identity_setting(identity_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_identity_setting API.

Replace an Identity setting.

Parameters:

  • identity_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :identity_setting (OCI::IdentityDomains::Models::IdentitySetting)

    Replace the current instance of IdentitySettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18980

def put_identity_setting(identity_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_identity_setting.' if logger

  raise "Missing the required parameter 'identity_setting_id' when calling put_identity_setting." if identity_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'identity_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(identity_setting_id)

  path = '/admin/v1/IdentitySettings/{identitySettingId}'.sub('{identitySettingId}', identity_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_identity_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentitySetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_kmsi_setting(kmsi_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_kmsi_setting API.

Replace KmsiSettings

Parameters:

  • kmsi_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :kmsi_setting (OCI::IdentityDomains::Models::KmsiSetting)

    Replace the current instance of KmsiSettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19070

def put_kmsi_setting(kmsi_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_kmsi_setting.' if logger

  raise "Missing the required parameter 'kmsi_setting_id' when calling put_kmsi_setting." if kmsi_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'kmsi_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(kmsi_setting_id)

  path = '/admin/v1/KmsiSettings/{kmsiSettingId}'.sub('{kmsiSettingId}', kmsi_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:kmsi_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_kmsi_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::KmsiSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_me(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_me API.

Replace a user's own information.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :me (OCI::IdentityDomains::Models::Me)

    Replace the current instance of Me with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:

  • (Response)

    A Response object with data of type Me



19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19159

def put_me(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_me.' if logger



  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end

  path = '/admin/v1/Me'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:me])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_me') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Me'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_me_password_changer(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_me_password_changer API.

Update a user's own password.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :me_password_changer (OCI::IdentityDomains::Models::MePasswordChanger)

    Replace the current instance of MePasswordChanger with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19243

def put_me_password_changer(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_me_password_changer.' if logger


  path = '/admin/v1/MePasswordChanger'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:me_password_changer])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_me_password_changer') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MePasswordChanger'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_network_perimeter(network_perimeter_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_network_perimeter API.

Replace a NetworkPerimeter

Parameters:

  • network_perimeter_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :network_perimeter (OCI::IdentityDomains::Models::NetworkPerimeter)

    Replace the current instance of NetworkPerimeter with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19319

def put_network_perimeter(network_perimeter_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_network_perimeter.' if logger

  raise "Missing the required parameter 'network_perimeter_id' when calling put_network_perimeter." if network_perimeter_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'network_perimeter_id' must not be blank" if OCI::Internal::Util.blank_string?(network_perimeter_id)

  path = '/admin/v1/NetworkPerimeters/{networkPerimeterId}'.sub('{networkPerimeterId}', network_perimeter_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:network_perimeter])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_network_perimeter') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeter'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_notification_setting(notification_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_notification_setting API.

Replace Notification Settings

Parameters:

  • notification_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :notification_setting (OCI::IdentityDomains::Models::NotificationSetting)

    Replace the current instance of NotificationSettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19409

def put_notification_setting(notification_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_notification_setting.' if logger

  raise "Missing the required parameter 'notification_setting_id' when calling put_notification_setting." if notification_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'notification_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(notification_setting_id)

  path = '/admin/v1/NotificationSettings/{notificationSettingId}'.sub('{notificationSettingId}', notification_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:notification_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_notification_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NotificationSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_password_policy(password_policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_password_policy API.

Replace a password policy.

Parameters:

  • password_policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :password_policy (OCI::IdentityDomains::Models::PasswordPolicy)

    Replace the current instance of PasswordPolicy with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19499

def put_password_policy(password_policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_password_policy.' if logger

  raise "Missing the required parameter 'password_policy_id' when calling put_password_policy." if password_policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'password_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(password_policy_id)

  path = '/admin/v1/PasswordPolicies/{passwordPolicyId}'.sub('{passwordPolicyId}', password_policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:password_policy])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_password_policy') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_policy(policy_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_policy API.

Replace a Policy

Parameters:

  • policy_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :policy (OCI::IdentityDomains::Models::Policy)

    Replace the current instance of Policy with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19589

def put_policy(policy_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_policy.' if logger

  raise "Missing the required parameter 'policy_id' when calling put_policy." if policy_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util.blank_string?(policy_id)

  path = '/admin/v1/Policies/{policyId}'.sub('{policyId}', policy_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:policy])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_policy') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policy'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_rule(rule_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_rule API.

Replace a Rule

Parameters:

  • rule_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :rule (OCI::IdentityDomains::Models::Rule)

    Replace the current instance of Rule with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19679

def put_rule(rule_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_rule.' if logger

  raise "Missing the required parameter 'rule_id' when calling put_rule." if rule_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'rule_id' must not be blank" if OCI::Internal::Util.blank_string?(rule_id)

  path = '/admin/v1/Rules/{ruleId}'.sub('{ruleId}', rule_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:rule])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_rule') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rule'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_schema(schema_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_schema API.

Replace a Schema Def

Parameters:

  • schema_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :schema (OCI::IdentityDomains::Models::Schema)

    Replace the current instance of Schema with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19766

def put_schema(schema_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_schema.' if logger

  raise "Missing the required parameter 'schema_id' when calling put_schema." if schema_id.nil?
  raise "Parameter value for 'schema_id' must not be blank" if OCI::Internal::Util.blank_string?(schema_id)

  path = '/admin/v1/Schemas/{schemaId}'.sub('{schemaId}', schema_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:schema])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_schema') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Schema'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_security_question_setting(security_question_setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_security_question_setting API.

Replace a security question setting.

Parameters:

  • security_question_setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :security_question_setting (OCI::IdentityDomains::Models::SecurityQuestionSetting)

    Replace the current instance of SecurityQuestionSettings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19844

def put_security_question_setting(security_question_setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_security_question_setting.' if logger

  raise "Missing the required parameter 'security_question_setting_id' when calling put_security_question_setting." if security_question_setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'security_question_setting_id' must not be blank" if OCI::Internal::Util.blank_string?(security_question_setting_id)

  path = '/admin/v1/SecurityQuestionSettings/{securityQuestionSettingId}'.sub('{securityQuestionSettingId}', security_question_setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:security_question_setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_security_question_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestionSetting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_self_registration_profile(self_registration_profile_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_self_registration_profile API.

Replace a self-registration profile.

Parameters:

  • self_registration_profile_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :self_registration_profile (OCI::IdentityDomains::Models::SelfRegistrationProfile)

    Replace the current instance of SelfRegistrationProfile with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19934

def put_self_registration_profile(self_registration_profile_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_self_registration_profile.' if logger

  raise "Missing the required parameter 'self_registration_profile_id' when calling put_self_registration_profile." if self_registration_profile_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'self_registration_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(self_registration_profile_id)

  path = '/admin/v1/SelfRegistrationProfiles/{selfRegistrationProfileId}'.sub('{selfRegistrationProfileId}', self_registration_profile_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:self_registration_profile])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_self_registration_profile') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfile'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_setting(setting_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_setting API.

Replace Settings

Parameters:

  • setting_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :setting (OCI::IdentityDomains::Models::Setting)

    Replace the current instance of Settings with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20024

def put_setting(setting_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_setting.' if logger

  raise "Missing the required parameter 'setting_id' when calling put_setting." if setting_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'setting_id' must not be blank" if OCI::Internal::Util.blank_string?(setting_id)

  path = '/admin/v1/Settings/{settingId}'.sub('{settingId}', setting_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:setting])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_setting') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Setting'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_user(user_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_user API.

Replace a user.

Parameters:

  • user_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :user (OCI::IdentityDomains::Models::User)

    Replace the current instance of User with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20114

def put_user(user_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_user.' if logger

  raise "Missing the required parameter 'user_id' when calling put_user." if user_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)

  path = '/admin/v1/Users/{userId}'.sub('{userId}', user_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_user') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::User'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_user_capabilities_changer(user_capabilities_changer_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_user_capabilities_changer API.

Change a user's capabilities.

Parameters:

  • user_capabilities_changer_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_capabilities_changer (OCI::IdentityDomains::Models::UserCapabilitiesChanger)

    Replace the current instance of UserCapabilitiesChanger with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20201

def put_user_capabilities_changer(user_capabilities_changer_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_user_capabilities_changer.' if logger

  raise "Missing the required parameter 'user_capabilities_changer_id' when calling put_user_capabilities_changer." if user_capabilities_changer_id.nil?
  raise "Parameter value for 'user_capabilities_changer_id' must not be blank" if OCI::Internal::Util.blank_string?(user_capabilities_changer_id)

  path = '/admin/v1/UserCapabilitiesChanger/{userCapabilitiesChangerId}'.sub('{userCapabilitiesChangerId}', user_capabilities_changer_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_capabilities_changer])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_user_capabilities_changer') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserCapabilitiesChanger'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_user_password_changer(user_password_changer_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_user_password_changer API.

Change a user's password to a known value.

Parameters:

  • user_password_changer_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_password_changer (OCI::IdentityDomains::Models::UserPasswordChanger)

    Replace the current instance of UserPasswordChanger with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20276

def put_user_password_changer(user_password_changer_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_user_password_changer.' if logger

  raise "Missing the required parameter 'user_password_changer_id' when calling put_user_password_changer." if user_password_changer_id.nil?
  raise "Parameter value for 'user_password_changer_id' must not be blank" if OCI::Internal::Util.blank_string?(user_password_changer_id)

  path = '/admin/v1/UserPasswordChanger/{userPasswordChangerId}'.sub('{userPasswordChangerId}', user_password_changer_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_password_changer])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_user_password_changer') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserPasswordChanger'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_user_password_resetter(user_password_resetter_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_user_password_resetter API.

Reset a user's password to a randomly-generated value.

Parameters:

  • user_password_resetter_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_password_resetter (OCI::IdentityDomains::Models::UserPasswordResetter)

    Replace the current instance of UserPasswordResetter with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20351

def put_user_password_resetter(user_password_resetter_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_user_password_resetter.' if logger

  raise "Missing the required parameter 'user_password_resetter_id' when calling put_user_password_resetter." if user_password_resetter_id.nil?
  raise "Parameter value for 'user_password_resetter_id' must not be blank" if OCI::Internal::Util.blank_string?(user_password_resetter_id)

  path = '/admin/v1/UserPasswordResetter/{userPasswordResetterId}'.sub('{userPasswordResetterId}', user_password_resetter_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_password_resetter])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_user_password_resetter') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserPasswordResetter'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#put_user_status_changer(user_status_changer_id, opts = {}) ⇒ Response

Note:

Click here to see an example of how to use put_user_status_changer API.

Change a user's status.

Parameters:

  • user_status_changer_id (String)

    ID of the resource

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :attributes (String)

    A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.

  • :attribute_sets (Array<String>)

    A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive. Allowed values are: all, always, never, request, default

  • :user_status_changer (OCI::IdentityDomains::Models::UserStatusChanger)

    Replace the current instance of UserStatusChanger with provided payload.

    Before you specify an attribute-value in a request to replace a resource, please check the 'mutability' property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the SCIM++ Properties of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as mutability:readWrite or mutability:writeOnly or mutability:immutable: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as mutability:readOnly. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as mutability:readOnly. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as mutability:immutable and that already has a value in the specified resource.

    Also, before you use the query-parameter attributes to request specific attributes, please check the 'returned' property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as returned:default or returned:request or returned:always: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as returned:always. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as returned:default, as well as any attribute that is defined as returned:always. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as returned:never.

  • :if_match (String)

    Used to make the request conditional on an ETag

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

Returns:



20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20429

def put_user_status_changer(user_status_changer_id, opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#put_user_status_changer.' if logger

  raise "Missing the required parameter 'user_status_changer_id' when calling put_user_status_changer." if user_status_changer_id.nil?


  attribute_sets_allowable_values = %w[all always never request default]
  if opts[:attribute_sets] && !opts[:attribute_sets].empty?
    opts[:attribute_sets].each do |val_to_check|
      unless attribute_sets_allowable_values.include?(val_to_check)
        raise 'Invalid value for "attribute_sets", must be one of all, always, never, request, default.'
      end
    end
  end
  raise "Parameter value for 'user_status_changer_id' must not be blank" if OCI::Internal::Util.blank_string?(user_status_changer_id)

  path = '/admin/v1/UserStatusChanger/{userStatusChangerId}'.sub('{userStatusChangerId}', user_status_changer_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:attributes] = opts[:attributes] if opts[:attributes]
  query_params[:attributeSets] = OCI::ApiClient.build_collection_params(opts[:attribute_sets], :multi) if opts[:attribute_sets] && !opts[:attribute_sets].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_status_changer])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_user_status_changer') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserStatusChanger'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_account_mgmt_infos(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_account_mgmt_infos API.

Search Account Mgmt Info Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :account_mgmt_info_search_request (OCI::IdentityDomains::Models::AccountMgmtInfoSearchRequest)

    Parameters for searching AccountMgmtInfos

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20503

def (opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_account_mgmt_infos.' if logger


  path = '/admin/v1/AccountMgmtInfos/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:account_mgmt_info_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_account_mgmt_infos') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AccountMgmtInfos'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_api_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_api_keys API.

Search for API keys using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :api_key_search_request (OCI::IdentityDomains::Models::ApiKeySearchRequest)

    Parameters for searching ApiKeys

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20564

def search_api_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_api_keys.' if logger


  path = '/admin/v1/ApiKeys/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:api_key_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_api_keys') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ApiKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_app_roles(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_app_roles API.

Search AppRoles Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :app_role_search_request (OCI::IdentityDomains::Models::AppRoleSearchRequest)

    Parameters for searching AppRoles

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20625

def search_app_roles(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_app_roles.' if logger


  path = '/admin/v1/AppRoles/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app_role_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_app_roles') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AppRoles'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_apps(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_apps API.

Search Apps Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :app_search_request (OCI::IdentityDomains::Models::AppSearchRequest)

    Parameters for searching Apps

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20686

def search_apps(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_apps.' if logger


  path = '/admin/v1/Apps/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:app_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_apps') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Apps'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_auth_tokens(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_auth_tokens API.

Search for Auth tokens using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :auth_token_search_request (OCI::IdentityDomains::Models::AuthTokenSearchRequest)

    Parameters for searching AuthTokens

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20747

def search_auth_tokens(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_auth_tokens.' if logger


  path = '/admin/v1/AuthTokens/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:auth_token_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_auth_tokens') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthTokens'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_authentication_factor_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_authentication_factor_settings API.

Search Authentication Factor Settings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :authentication_factor_settings_search_request (OCI::IdentityDomains::Models::AuthenticationFactorSettingsSearchRequest)

    Parameters for searching AuthenticationFactorSettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20808

def search_authentication_factor_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_authentication_factor_settings.' if logger


  path = '/admin/v1/AuthenticationFactorSettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:authentication_factor_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_authentication_factor_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::AuthenticationFactorSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_cloud_gate_mappings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_cloud_gate_mappings API.

Search Cloud Gate mappings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :cloud_gate_mapping_search_request (OCI::IdentityDomains::Models::CloudGateMappingSearchRequest)

    Parameters for searching CloudGateMappings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20869

def search_cloud_gate_mappings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_cloud_gate_mappings.' if logger


  path = '/admin/v1/CloudGateMappings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_mapping_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_cloud_gate_mappings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateMappings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_cloud_gate_servers(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_cloud_gate_servers API.

Search Cloud Gate servers Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :cloud_gate_server_search_request (OCI::IdentityDomains::Models::CloudGateServerSearchRequest)

    Parameters for searching CloudGateServers

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20930

def search_cloud_gate_servers(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_cloud_gate_servers.' if logger


  path = '/admin/v1/CloudGateServers/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_server_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_cloud_gate_servers') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGateServers'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_cloud_gates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_cloud_gates API.

Search Cloud Gates Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :cloud_gate_search_request (OCI::IdentityDomains::Models::CloudGateSearchRequest)

    Parameters for searching CloudGates

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20991

def search_cloud_gates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_cloud_gates.' if logger


  path = '/admin/v1/CloudGates/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:cloud_gate_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_cloud_gates') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CloudGates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_conditions(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_conditions API.

Search Conditions Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :condition_search_request (OCI::IdentityDomains::Models::ConditionSearchRequest)

    Parameters for searching Conditions

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21052

def search_conditions(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_conditions.' if logger


  path = '/admin/v1/Conditions/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:condition_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_conditions') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Conditions'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_customer_secret_keys(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_customer_secret_keys API.

Search for customer secret keys using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :customer_secret_key_search_request (OCI::IdentityDomains::Models::CustomerSecretKeySearchRequest)

    Parameters for searching CustomerSecretKeys

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21113

def search_customer_secret_keys(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_customer_secret_keys.' if logger


  path = '/admin/v1/CustomerSecretKeys/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:customer_secret_key_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_customer_secret_keys') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::CustomerSecretKeys'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_dynamic_resource_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_dynamic_resource_groups API.

Search for Dynamic Resource Groups using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :dynamic_resource_group_search_request (OCI::IdentityDomains::Models::DynamicResourceGroupSearchRequest)

    Parameters for searching DynamicResourceGroups

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21174

def search_dynamic_resource_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_dynamic_resource_groups.' if logger


  path = '/admin/v1/DynamicResourceGroups/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:dynamic_resource_group_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_dynamic_resource_groups') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::DynamicResourceGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_grants(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_grants API.

Search Grants Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :grant_search_request (OCI::IdentityDomains::Models::GrantSearchRequest)

    Parameters for searching Grants

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21235

def search_grants(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_grants.' if logger


  path = '/admin/v1/Grants/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:grant_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_grants') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Grants'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_groups API.

Search for groups using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :group_search_request (OCI::IdentityDomains::Models::GroupSearchRequest)

    Parameters for searching Groups

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21296

def search_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_groups.' if logger


  path = '/admin/v1/Groups/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:group_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_groups') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Groups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_identity_providers(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_identity_providers API.

Search Identity Providers Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :identity_provider_search_request (OCI::IdentityDomains::Models::IdentityProviderSearchRequest)

    Parameters for searching IdentityProviders

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21357

def search_identity_providers(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_identity_providers.' if logger


  path = '/admin/v1/IdentityProviders/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_provider_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_identity_providers') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentityProviders'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_identity_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_identity_settings API.

Search for Identity settings using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :identity_settings_search_request (OCI::IdentityDomains::Models::IdentitySettingsSearchRequest)

    Parameters for searching IdentitySettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21418

def search_identity_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_identity_settings.' if logger


  path = '/admin/v1/IdentitySettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:identity_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_identity_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::IdentitySettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_kmsi_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_kmsi_settings API.

Search KmsiSettings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :kmsi_settings_search_request (OCI::IdentityDomains::Models::KmsiSettingsSearchRequest)

    Parameters for searching KmsiSettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21479

def search_kmsi_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_kmsi_settings.' if logger


  path = '/admin/v1/KmsiSettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:kmsi_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_kmsi_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::KmsiSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_my_apps(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_my_apps API.

Search My Apps Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_app_search_request (OCI::IdentityDomains::Models::MyAppSearchRequest)

    Parameters for searching MyApps

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21540

def search_my_apps(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_my_apps.' if logger


  path = '/admin/v1/MyApps/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_app_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_my_apps') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyApps'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_my_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_my_groups API.

Search for 'My Groups' using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_group_search_request (OCI::IdentityDomains::Models::MyGroupSearchRequest)

    Parameters for searching MyGroups

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21601

def search_my_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_my_groups.' if logger


  path = '/admin/v1/MyGroups/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_group_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_my_groups') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_my_requestable_groups(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_my_requestable_groups API.

Search My Requestable Groups Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_requestable_group_search_request (OCI::IdentityDomains::Models::MyRequestableGroupSearchRequest)

    Parameters for searching MyRequestableGroups

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21662

def search_my_requestable_groups(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_my_requestable_groups.' if logger


  path = '/admin/v1/MyRequestableGroups/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_requestable_group_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_my_requestable_groups') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequestableGroups'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_my_requests(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_my_requests API.

Search My Requests Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :my_request_search_request (OCI::IdentityDomains::Models::MyRequestSearchRequest)

    Parameters for searching MyRequests

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21723

def search_my_requests(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_my_requests.' if logger


  path = '/admin/v1/MyRequests/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:my_request_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_my_requests') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::MyRequests'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_network_perimeters(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_network_perimeters API.

Search NetworkPerimeters Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :network_perimeter_search_request (OCI::IdentityDomains::Models::NetworkPerimeterSearchRequest)

    Parameters for searching NetworkPerimeters

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21784

def search_network_perimeters(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_network_perimeters.' if logger


  path = '/admin/v1/NetworkPerimeters/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:network_perimeter_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_network_perimeters') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NetworkPerimeters'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_notification_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_notification_settings API.

Search Notification Settings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :notification_settings_search_request (OCI::IdentityDomains::Models::NotificationSettingsSearchRequest)

    Parameters for searching NotificationSettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21845

def search_notification_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_notification_settings.' if logger


  path = '/admin/v1/NotificationSettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:notification_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_notification_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::NotificationSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_o_auth2_client_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_o_auth2_client_credentials API.

Search for OAuth2 client credentials using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :o_auth2_client_credential_search_request (OCI::IdentityDomains::Models::OAuth2ClientCredentialSearchRequest)

    Parameters for searching OAuth2ClientCredentials

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21906

def search_o_auth2_client_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_o_auth2_client_credentials.' if logger


  path = '/admin/v1/OAuth2ClientCredentials/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth2_client_credential_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_o_auth2_client_credentials') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuth2ClientCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_o_auth_client_certificates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_o_auth_client_certificates API.

Search OAuth Client Certificates Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :o_auth_client_certificate_search_request (OCI::IdentityDomains::Models::OAuthClientCertificateSearchRequest)

    Parameters for searching OAuthClientCertificates

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21967

def search_o_auth_client_certificates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_o_auth_client_certificates.' if logger


  path = '/admin/v1/OAuthClientCertificates/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth_client_certificate_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_o_auth_client_certificates') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthClientCertificates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_o_auth_partner_certificates(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_o_auth_partner_certificates API.

Search OAuth Partner Certificates Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :o_auth_partner_certificate_search_request (OCI::IdentityDomains::Models::OAuthPartnerCertificateSearchRequest)

    Parameters for searching OAuthPartnerCertificates

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22028

def search_o_auth_partner_certificates(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_o_auth_partner_certificates.' if logger


  path = '/admin/v1/OAuthPartnerCertificates/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:o_auth_partner_certificate_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_o_auth_partner_certificates') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::OAuthPartnerCertificates'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_password_policies(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_password_policies API.

Search for password policies using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :password_policy_search_request (OCI::IdentityDomains::Models::PasswordPolicySearchRequest)

    Parameters for searching PasswordPolicies

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22089

def search_password_policies(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_password_policies.' if logger


  path = '/admin/v1/PasswordPolicies/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:password_policy_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_password_policies') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::PasswordPolicies'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_policies(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_policies API.

Search Policies Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :policy_search_request (OCI::IdentityDomains::Models::PolicySearchRequest)

    Parameters for searching Policies

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22150

def search_policies(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_policies.' if logger


  path = '/admin/v1/Policies/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:policy_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_policies') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Policies'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_resource_type_schema_attributes(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_resource_type_schema_attributes API.

Search Resource Type Schema Attributes Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :resource_type_schema_attribute_search_request (OCI::IdentityDomains::Models::ResourceTypeSchemaAttributeSearchRequest)

    Parameters for searching ResourceTypeSchemaAttributes

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22211

def search_resource_type_schema_attributes(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_resource_type_schema_attributes.' if logger


  path = '/admin/v1/ResourceTypeSchemaAttributes/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:resource_type_schema_attribute_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_resource_type_schema_attributes') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::ResourceTypeSchemaAttributes'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_rules(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_rules API.

Search Rules Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :rule_search_request (OCI::IdentityDomains::Models::RuleSearchRequest)

    Parameters for searching Rules

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22272

def search_rules(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_rules.' if logger


  path = '/admin/v1/Rules/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:rule_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_rules') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Rules'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_schemas(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_schemas API.

Search Schemas Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :schema_search_request (OCI::IdentityDomains::Models::SchemaSearchRequest)

    Parameters for searching Schemas

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22333

def search_schemas(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_schemas.' if logger


  path = '/admin/v1/Schemas/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:schema_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_schemas') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Schemas'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_security_question_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_security_question_settings API.

Search for security question settings using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :security_question_settings_search_request (OCI::IdentityDomains::Models::SecurityQuestionSettingsSearchRequest)

    Parameters for searching SecurityQuestionSettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22394

def search_security_question_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_security_question_settings.' if logger


  path = '/admin/v1/SecurityQuestionSettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:security_question_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_security_question_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestionSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_security_questions(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_security_questions API.

Search for security questions using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :security_question_search_request (OCI::IdentityDomains::Models::SecurityQuestionSearchRequest)

    Parameters for searching SecurityQuestions

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22455

def search_security_questions(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_security_questions.' if logger


  path = '/admin/v1/SecurityQuestions/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:security_question_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_security_questions') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SecurityQuestions'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_self_registration_profiles(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_self_registration_profiles API.

Search for self-registration profile using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :self_registration_profile_search_request (OCI::IdentityDomains::Models::SelfRegistrationProfileSearchRequest)

    Parameters for searching SelfRegistrationProfiles

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22516

def search_self_registration_profiles(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_self_registration_profiles.' if logger


  path = '/admin/v1/SelfRegistrationProfiles/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:self_registration_profile_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_self_registration_profiles') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SelfRegistrationProfiles'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_settings API.

Search Settings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :settings_search_request (OCI::IdentityDomains::Models::SettingsSearchRequest)

    Parameters for searching Settings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22577

def search_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_settings.' if logger


  path = '/admin/v1/Settings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Settings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_smtp_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_smtp_credentials API.

Search for SMTP credentials using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :smtp_credential_search_request (OCI::IdentityDomains::Models::SmtpCredentialSearchRequest)

    Parameters for searching SmtpCredentials

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22638

def search_smtp_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_smtp_credentials.' if logger


  path = '/admin/v1/SmtpCredentials/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:smtp_credential_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_smtp_credentials') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::SmtpCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_user_attributes_settings(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_user_attributes_settings API.

Search User Schema Attribute Settings Using POST

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_attributes_settings_search_request (OCI::IdentityDomains::Models::UserAttributesSettingsSearchRequest)

    Parameters for searching UserAttributesSettings

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22699

def search_user_attributes_settings(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_user_attributes_settings.' if logger


  path = '/admin/v1/UserAttributesSettings/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_attributes_settings_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_user_attributes_settings') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserAttributesSettings'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_user_db_credentials(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_user_db_credentials API.

Search for a user's database (DB) credentials using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_db_credentials_search_request (OCI::IdentityDomains::Models::UserDbCredentialsSearchRequest)

    Parameters for searching UserDbCredentials

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22760

def search_user_db_credentials(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_user_db_credentials.' if logger


  path = '/admin/v1/UserDbCredentials/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_db_credentials_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_user_db_credentials') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::UserDbCredentials'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#search_users(opts = {}) ⇒ Response

Note:

Click here to see an example of how to use search_users API.

Search for users using POST.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit nil value is provided then the operation will not retry

  • :authorization (String)

    The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.

  • :user_search_request (OCI::IdentityDomains::Models::UserSearchRequest)

    Parameters for searching Users

  • :opc_retry_token (String)

    A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.

  • :page (String)

    The value of the opc-next-page response header from the previous 'List' call.

  • :limit (Integer)

    The maximum number of items to return in a paginated 'List' call. (default to 50)

Returns:



22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22821

def search_users(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#search_users.' if logger


  path = '/admin/v1/Users/.search'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json, application/scim+json'
  header_params[:'content-type'] = 'application/json'
  header_params[:authorization] = opts[:authorization] if opts[:authorization]
  header_params[:resource_type_schema_version] = opts[:resource_type_schema_version] if opts[:resource_type_schema_version]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(opts[:user_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_users') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::IdentityDomains::Models::Users'
    )
  end
  # rubocop:enable Metrics/BlockLength
end