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). Use this pattern to construct endpoints for identity domains: `Finding an Identity Domain URL to locate the domain URL you need. 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



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

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:



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

def api_client
  @api_client
end

#endpointString (readonly)

Fully qualified endpoint URL

Returns:

  • (String)


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

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



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

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:



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
154
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 105

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



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
239
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 190

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:



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
324
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 275

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:



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
409
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 360

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:



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
494
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 445

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:



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
579
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 530

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:



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
664
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 615

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:



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
734
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 697

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:



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
819
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 770

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:



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
904
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 855

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:



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
989
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 940

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:



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
1074
1075
1076
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1027

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:



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
1159
1160
1161
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1112

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:



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
1244
1245
1246
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1197

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:



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
1329
1330
1331
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1282

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:



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
1414
1415
1416
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1367

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:



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
1501
1502
1503
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1454

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:



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
1586
1587
1588
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1539

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



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
1671
1672
1673
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1624

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:



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
1741
1742
1743
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1706

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:



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
1811
1812
1813
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1776

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:



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
1881
1882
1883
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1846

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:



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
1951
1952
1953
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1916

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:



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
2021
2022
2023
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 1986

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:



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
2091
2092
2093
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2056

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:



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
2161
2162
2163
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2126

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:



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
2246
2247
2248
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2199

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:



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
2316
2317
2318
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2281

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:



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
2386
2387
2388
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2351

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:



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
2456
2457
2458
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2421

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:



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
2541
2542
2543
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2494

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:



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
2626
2627
2628
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2579

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:



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
2696
2697
2698
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2661

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:



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
2766
2767
2768
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2731

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:



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
2851
2852
2853
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2804

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:



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
2936
2937
2938
2939
2940
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2891

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_restore_oci_console_policy(opts = {}) ⇒ Response

Note:

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

Create a RestoreOciConsolePolicy entry to restore Policy to factory default.

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.

  • :restore_oci_console_policy (OCI::IdentityDomains::Models::RestoreOciConsolePolicy)

    RestoreOciConsolePolicy 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:



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 2975

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


  path = '/admin/v1/RestoreOciConsolePolicy'
  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[:restore_oci_console_policy])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_restore_oci_console_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::RestoreOciConsolePolicy'
    )
  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:



3050
3051
3052
3053
3054
3055
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3050

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:



3135
3136
3137
3138
3139
3140
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3135

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:



3220
3221
3222
3223
3224
3225
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3220

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:



3305
3306
3307
3308
3309
3310
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3305

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_social_identity_provider(opts = {}) ⇒ Response

Note:

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

Create a Social 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.

  • :social_identity_provider (OCI::IdentityDomains::Models::SocialIdentityProvider)

    SocialIdentityProvider 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:



3389
3390
3391
3392
3393
3394
3395
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3389

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


  path = '/admin/v1/SocialIdentityProviders'
  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[:social_identity_provider])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#create_social_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::SocialIdentityProvider'
    )
  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:



3462
3463
3464
3465
3466
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
3508
3509
3510
3511
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3462

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:



3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3547

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



3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3618

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



3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3680

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



3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3742

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



3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3804

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



3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3866

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



3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3928

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



3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 3990

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



4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4052

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



4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4114

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



4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4176

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



4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4238

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



4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4300

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



4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4362

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



4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4424

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



4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4486

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



4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4548

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



4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4610

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



4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4672

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



4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4734

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



4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4796

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



4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4858

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



4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4920

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



4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 4982

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



5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5044

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



5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5106

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



5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5168

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



5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5230

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



5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5292

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



5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5354

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



5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5416

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



5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5478

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



5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5540

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



5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5602

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



5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5664

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



5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5726

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



5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5788

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_social_identity_provider(social_identity_provider_id, opts = {}) ⇒ Response

Note:

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

Delete a Social Identity Provider

Parameters:

  • social_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



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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5850

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

  raise "Missing the required parameter 'social_identity_provider_id' when calling delete_social_identity_provider." if social_identity_provider_id.nil?
  raise "Parameter value for 'social_identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(social_identity_provider_id)

  path = '/admin/v1/SocialIdentityProviders/{socialIdentityProviderId}'.sub('{socialIdentityProviderId}', social_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_social_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_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



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
5950
5951
5952
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5912

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



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 5974

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:



6037
6038
6039
6040
6041
6042
6043
6044
6045
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6037

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:



6111
6112
6113
6114
6115
6116
6117
6118
6119
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6111

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:



6185
6186
6187
6188
6189
6190
6191
6192
6193
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6185

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



6259
6260
6261
6262
6263
6264
6265
6266
6267
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6259

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:



6333
6334
6335
6336
6337
6338
6339
6340
6341
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6333

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:



6407
6408
6409
6410
6411
6412
6413
6414
6415
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6407

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:



6481
6482
6483
6484
6485
6486
6487
6488
6489
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6481

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:



6555
6556
6557
6558
6559
6560
6561
6562
6563
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6555

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:



6629
6630
6631
6632
6633
6634
6635
6636
6637
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6629

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:



6703
6704
6705
6706
6707
6708
6709
6710
6711
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6703

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:



6777
6778
6779
6780
6781
6782
6783
6784
6785
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6777

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:



6851
6852
6853
6854
6855
6856
6857
6858
6859
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6851

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:



6925
6926
6927
6928
6929
6930
6931
6932
6933
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6925

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:



6999
7000
7001
7002
7003
7004
7005
7006
7007
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 6999

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:



7073
7074
7075
7076
7077
7078
7079
7080
7081
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7073

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:



7147
7148
7149
7150
7151
7152
7153
7154
7155
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7147

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:



7221
7222
7223
7224
7225
7226
7227
7228
7229
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7221

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:



7295
7296
7297
7298
7299
7300
7301
7302
7303
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7295

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:



7369
7370
7371
7372
7373
7374
7375
7376
7377
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7369

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:



7443
7444
7445
7446
7447
7448
7449
7450
7451
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7443

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:



7517
7518
7519
7520
7521
7522
7523
7524
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7517

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:



7591
7592
7593
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
7634
7635
7636
7637
7638
7639
7640
7641
7642
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7591

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:



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
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7665

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



7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7738

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:



7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7807

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:



7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7866

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:



7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7925

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:



7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 7984

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:



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
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8046

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:



8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8117

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:



8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8176

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:



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
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8238

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:



8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8309

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:



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
8402
8403
8404
8405
8406
8407
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8368

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:



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
8476
8477
8478
8479
8480
8481
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8430

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:



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8501

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:



8563
8564
8565
8566
8567
8568
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
8609
8610
8611
8612
8613
8614
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8563

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:



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
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8637

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:



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
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8711

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:



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
8816
8817
8818
8819
8820
8821
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8782

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:



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8841

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
Note:

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

Get a OciConsoleSignOnPolicyConsent Entry.

Parameters:

  • oci_console_sign_on_policy_consent_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:



8903
8904
8905
8906
8907
8908
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
8949
8950
8951
8952
8953
8954
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8903

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

  raise "Missing the required parameter 'oci_console_sign_on_policy_consent_id' when calling get_oci_console_sign_on_policy_consent." if oci_console_sign_on_policy_consent_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 'oci_console_sign_on_policy_consent_id' must not be blank" if OCI::Internal::Util.blank_string?(oci_console_sign_on_policy_consent_id)

  path = '/admin/v1/OciConsoleSignOnPolicyConsents/{ociConsoleSignOnPolicyConsentId}'.sub('{ociConsoleSignOnPolicyConsentId}', oci_console_sign_on_policy_consent_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_oci_console_sign_on_policy_consent') 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::OciConsoleSignOnPolicyConsent'
    )
  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:



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
9023
9024
9025
9026
9027
9028
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 8977

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:



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
9097
9098
9099
9100
9101
9102
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9051

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:



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
9171
9172
9173
9174
9175
9176
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9125

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:



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9196

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:



9258
9259
9260
9261
9262
9263
9264
9265
9266
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9258

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:



9332
9333
9334
9335
9336
9337
9338
9339
9340
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9332

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:



9406
9407
9408
9409
9410
9411
9412
9413
9414
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9406

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:



9480
9481
9482
9483
9484
9485
9486
9487
9488
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9480

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:



9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9554

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_social_identity_provider(social_identity_provider_id, opts = {}) ⇒ Response

Note:

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

Get a Social Identity Provider

Parameters:

  • social_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.

  • :opc_retry_token (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:



9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9625

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

  raise "Missing the required parameter 'social_identity_provider_id' when calling get_social_identity_provider." if social_identity_provider_id.nil?
  raise "Parameter value for 'social_identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(social_identity_provider_id)

  path = '/admin/v1/SocialIdentityProviders/{socialIdentityProviderId}'.sub('{socialIdentityProviderId}', social_identity_provider_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_social_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::SocialIdentityProvider'
    )
  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:



9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9687

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:



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
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9761

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:



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
9883
9884
9885
9886
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9835

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:



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
9972
9973
9974
9975
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9915

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:



9999
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 9999

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:



10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10079

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:



10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10168

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:



10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10257

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:



10346
10347
10348
10349
10350
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
10403
10404
10405
10406
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10346

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:



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
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10435

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:



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
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10524

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:



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
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10613

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:



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
10745
10746
10747
10748
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10697

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:



10772
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10772

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:



10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10852

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:



10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 10941

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:



11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11030

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:



11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11119

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:



11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11208

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:



11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11297

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:



11386
11387
11388
11389
11390
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
11443
11444
11445
11446
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11386

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:



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
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11475

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:



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
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11564

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:



11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11653

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:



11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11737

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:



11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11812

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:



11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11889

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:



11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 11963

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:



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
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12037

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:



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
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12111

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:



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
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12185

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:



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
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12262

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:



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
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12351

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:



12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12437

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:



12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12511

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:



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
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12585

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:



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
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12662

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:



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
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12748

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:



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
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12822

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:



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
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12899

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:



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
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 12985

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:



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
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13062

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:



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
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13146

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:



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
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13226

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:



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
13356
13357
13358
13359
13360
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13312

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:



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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13386

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_oci_console_sign_on_policy_consents(opts = {}) ⇒ Response

Note:

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

Search OciConsoleSignOnPolicyConsent entries

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:



13463
13464
13465
13466
13467
13468
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
13517
13518
13519
13520
13521
13522
13523
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13463

def list_oci_console_sign_on_policy_consents(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_oci_console_sign_on_policy_consents.' 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/OciConsoleSignOnPolicyConsents'
  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_oci_console_sign_on_policy_consents') 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::OciConsoleSignOnPolicyConsents'
    )
  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:



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
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13552

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:



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
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13641

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:



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
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13730

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:



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
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13819

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:



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
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13904

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:



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
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 13975

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:



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
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14055

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:



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
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14144

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:



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
14277
14278
14279
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14228

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:



14308
14309
14310
14311
14312
14313
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
14367
14368
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14308

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_social_identity_providers(opts = {}) ⇒ Response

Note:

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

Search Social 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)

  • :authorization (String)

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

  • :resource_type_schema_version (String)

    An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will 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:



14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14394

def list_social_identity_providers(opts = {})
  logger.debug 'Calling operation IdentityDomainsClient#list_social_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

  path = '/admin/v1/SocialIdentityProviders'
  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_social_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::SocialIdentityProviders'
    )
  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:



14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14466

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:



14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14546

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:



14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14635

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.



70
71
72
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 70

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:



14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14733

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:



14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14823

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



14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 14913

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:



15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15003

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:



15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15093

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:



15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15183

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:



15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15273

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:



15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15363

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:



15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15453

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:



15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15543

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:



15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15635

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:



15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15725

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:



15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15815

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:



15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15905

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:



15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 15995

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:



16087
16088
16089
16090
16091
16092
16093
16094
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
16136
16137
16138
16139
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16087

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:



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
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16177

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:



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
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16267

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:



16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16357

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



16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16446

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:



16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16531

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:



16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16606

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:



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
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16681

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:



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
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16759

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:



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
16886
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16846

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:



16921
16922
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16921

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:



16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 16999

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:



17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17086

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:



17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17164

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:



17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17254

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:



17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17344

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:



17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17436

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:



17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17528

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:



17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17615

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:



17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17693

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:



17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17783

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:



17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17873

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:



17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 17963

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:



18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18053

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_social_identity_provider(social_identity_provider_id, opts = {}) ⇒ Response

Note:

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

Update a Social Identity Provider

Parameters:

  • social_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.

  • :patch_op (OCI::IdentityDomains::Models::PatchOp)

    Update the SocialIdentityProvider 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:



18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18142

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

  raise "Missing the required parameter 'social_identity_provider_id' when calling patch_social_identity_provider." if social_identity_provider_id.nil?
  raise "Parameter value for 'social_identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(social_identity_provider_id)

  path = '/admin/v1/SocialIdentityProviders/{socialIdentityProviderId}'.sub('{socialIdentityProviderId}', social_identity_provider_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_social_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::SocialIdentityProvider'
    )
  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:



18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18220

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:



18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18310

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:



18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18400

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



18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18490

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:



18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18580

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:



18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18670

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:



18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18760

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:



18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18850

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:



18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 18940

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:



19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19030

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:



19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19122

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:



19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19212

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:



19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19302

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:



19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19394

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:



19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19484

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:



19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19574

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:



19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19664

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



19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19753

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:



19837
19838
19839
19840
19841
19842
19843
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19837

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:



19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 19913

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:



20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20003

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:



20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20093

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:



20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20185

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:



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
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20277

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:



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
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20364

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:



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
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20442

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:



20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20532

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:



20622
20623
20624
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
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20622

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_social_identity_provider(social_identity_provider_id, opts = {}) ⇒ Response

Note:

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

Replace a Social Identity Provider

Parameters:

  • social_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.

  • :social_identity_provider (OCI::IdentityDomains::Models::SocialIdentityProvider)

    Replace the current instance of SocialIdentityProvider 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:



20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20711

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

  raise "Missing the required parameter 'social_identity_provider_id' when calling put_social_identity_provider." if social_identity_provider_id.nil?
  raise "Parameter value for 'social_identity_provider_id' must not be blank" if OCI::Internal::Util.blank_string?(social_identity_provider_id)

  path = '/admin/v1/SocialIdentityProviders/{socialIdentityProviderId}'.sub('{socialIdentityProviderId}', social_identity_provider_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[:social_identity_provider])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#put_social_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::SocialIdentityProvider'
    )
  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:



20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
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
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20789

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:



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
20909
20910
20911
20912
20913
20914
20915
20916
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20876

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:



20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 20951

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:



21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21026

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:



21104
21105
21106
21107
21108
21109
21110
21111
21112
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
21153
21154
21155
21156
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21104

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:



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
21214
21215
21216
21217
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21178

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:



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
21275
21276
21277
21278
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21239

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:



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
21336
21337
21338
21339
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21300

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:



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
21397
21398
21399
21400
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21361

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:



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
21458
21459
21460
21461
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21422

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:



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
21519
21520
21521
21522
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21483

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:



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
21580
21581
21582
21583
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21544

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:



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
21641
21642
21643
21644
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21605

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:



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
21702
21703
21704
21705
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21666

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:



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
21763
21764
21765
21766
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21727

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:



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
21824
21825
21826
21827
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21788

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:



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
21885
21886
21887
21888
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21849

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:



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
21946
21947
21948
21949
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21910

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:



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
22007
22008
22009
22010
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 21971

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:



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
22068
22069
22070
22071
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22032

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:



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
22129
22130
22131
22132
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22093

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:



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
22190
22191
22192
22193
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22154

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:



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
22251
22252
22253
22254
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22215

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:



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
22312
22313
22314
22315
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22276

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:



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
22373
22374
22375
22376
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22337

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:



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
22434
22435
22436
22437
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22398

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:



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
22495
22496
22497
22498
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22459

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:



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
22556
22557
22558
22559
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22520

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:



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
22617
22618
22619
22620
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22581

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:



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
22678
22679
22680
22681
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22642

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:



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
22739
22740
22741
22742
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22703

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_oci_console_sign_on_policy_consents(opts = {}) ⇒ Response

Note:

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

Search OciConsoleSignOnPolicyConsents 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.

  • :oci_console_sign_on_policy_consent_search_request (OCI::IdentityDomains::Models::OciConsoleSignOnPolicyConsentSearchRequest)

    Parameters for searching OciConsoleSignOnPolicyConsents

  • :opc_retry_token (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:



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
22800
22801
22802
22803
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22764

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


  path = '/admin/v1/OciConsoleSignOnPolicyConsents/.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[:oci_console_sign_on_policy_consent_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_oci_console_sign_on_policy_consents') 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::OciConsoleSignOnPolicyConsents'
    )
  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:



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
22861
22862
22863
22864
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22825

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:



22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22886

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:



22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 22947

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:



23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23008

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:



23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23069

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:



23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23130

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:



23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23191

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:



23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23252

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:



23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23313

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:



23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23374

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_social_identity_providers(opts = {}) ⇒ Response

Note:

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

Search Social 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.

  • :social_identity_provider_search_request (OCI::IdentityDomains::Models::SocialIdentityProviderSearchRequest)

    Parameters for searching SocialIdentityProviders

  • :opc_retry_token (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:



23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23435

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


  path = '/admin/v1/SocialIdentityProviders/.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[:social_identity_provider_search_request])

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityDomainsClient#search_social_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::SocialIdentityProviders'
    )
  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:



23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23496

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:



23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23557

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:



23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
# File 'lib/oci/identity_domains/identity_domains_client.rb', line 23618

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