lib/oci/identity/identity_client.rb
# Lists the auth tokens for the specified user. The returned object contains the token's OCID, but not
# the token itself. The actual token is returned only upon creation.
#
# @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::AuthToken AuthToken}>
Lists the auth tokens for the specified user. The returned object contains the token's OCID, but not
the token itself. The actual token is returned only upon creation.
Lists the auth tokens for the specified user . The returned object contains the token ' s OCID but not the token itself . The actual token is returned only upon creation .
def list_auth_tokens(user_id, opts = {})
      logger.debug 'Calling operation IdentityClient#list_auth_tokens.' if logger
      raise "Missing the required parameter 'user_id' when calling list_auth_tokens." 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}/authTokens/'.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_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: 'Array<OCI::Identity::Models::AuthToken>'
        )
      end
    end
def list_auth_tokens ( user_id , opts = { } ) logger . debug 'Calling operation IdentityClient#list_auth_tokens.' if logger raise "Missing the required parameter 'user_id' when calling list_auth_tokens." 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}/authTokens/' . 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_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 : 'Array<OCI::Identity::Models::AuthToken>' ) end end
Lists the auth tokens for the specified user.
Lists the auth tokens 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::AuthToken AuthToken}>
A Response object with data of type Array< { OCI :: Identity :: Models :: AuthToken AuthToken } >
Response
user_id
<not_specific>
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
<not_specific>
opts the optional parameters
opts the optional parameters