lib/oci/identity/identity_client.rb
def list_api_keys(user_id, opts = {})
      logger.debug 'Calling operation IdentityClient#list_api_keys.' if logger

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

      path = '/users/{userId}/apiKeys/'.sub('{userId}', user_id.to_s)
      operation_signing_strategy = :standard

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

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#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: 'Array<OCI::Identity::Models::ApiKey>'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Lists the API signing keys for the specified user. A user can have a maximum of three keys.
#
# Every user has permission to use this API call for *their own user ID*.  An administrator in your
# organization does not need to write a policy to give users this ability.
#
# @param [String] user_id The OCID of the user.
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::ApiKey ApiKey}>
Lists the API signing keys for the specified user. A user can have a maximum of three keys.
Every user has permission to use this API call for *their own user ID*.  An administrator in your
organization does not need to write a policy to give users this ability.
Lists the API signing keys for the specified user . A user can have a maximum of three keys . Every user has permission to use this API call for * their own user ID * . An administrator in your organization does not need to write a policy to give users this ability .
def list_api_keys(user_id, opts = {})
      logger.debug 'Calling operation IdentityClient#list_api_keys.' if logger
      raise "Missing the required parameter 'user_id' when calling list_api_keys." if user_id.nil?
      raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
      path = '/users/{userId}/apiKeys/'.sub('{userId}', user_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#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: 'Array<OCI::Identity::Models::ApiKey>'
        )
      end
    end
def list_api_keys ( user_id , opts = { } ) logger . debug 'Calling operation IdentityClient#list_api_keys.' if logger raise "Missing the required parameter 'user_id' when calling list_api_keys." if user_id . nil? raise "Parameter value for 'user_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( user_id ) path = '/users/{userId}/apiKeys/' . sub ( '{userId}' , user_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#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 : 'Array<OCI::Identity::Models::ApiKey>' ) end end
Lists the API signing keys for the specified user.
Lists the API signing keys for the specified user .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::Identity::Models::ApiKey ApiKey}>
A Response object with data of type Array< { OCI :: Identity :: Models :: ApiKey ApiKey } >
Response
user_id
opts
:retry_config The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
: retry_config The retry configuration to apply to this operation . If no key is provided then the service - level retry configuration defined by { #retry_config } will be used . If an explicit ` nil ` value is provided then the operation will not retry
opts the optional parameters
opts the optional parameters