clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
def admin_get_identity_with_http_info(id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.admin_get_identity ...'
      end
      # verify the required parameter 'id' is set
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha1Api.admin_get_identity"
      end
      # resource path
      local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type] || 'Identity'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['oryAccessToken']

      new_options = opts.merge(
        :operation => :"V0alpha1Api.admin_get_identity",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#admin_get_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Get an Identity
# Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
# @param id [String] ID must be set to the ID of identity you want to get
# @param [Hash] opts the optional parameters
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
Get an Identity
Learn how identities work in [Ory Kratos' User And Identity Model Documentation].
Get an Identity Learn how identities work in [ Ory Kratos ' User And Identity Model Documentation ] .
def admin_get_identity_with_http_info(id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.admin_get_identity ...'
      end
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha1Api.admin_get_identity"
      end
      local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'Identity'
      auth_names = opts[:debug_auth_names] || ['oryAccessToken']
      new_options = opts.merge(
        :operation => :"V0alpha1Api.admin_get_identity",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#admin_get_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def admin_get_identity_with_http_info ( id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.admin_get_identity ...' end if @api_client . config . client_side_validation && id . nil? fail ArgumentError , "Missing the required parameter 'id' when calling V0alpha1Api.admin_get_identity" end local_var_path = '/identities/{id}' . sub ( '{' + 'id' + '}' , CGI . escape ( id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'Identity' auth_names = opts [ :debug_auth_names ] || [ 'oryAccessToken' ] new_options = opts . merge ( :operation => :" V0alpha1Api.admin_get_identity " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#admin_get_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Get an Identity
Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
Get an Identity Learn how identities work in [ Ory Kratos&#39 ; User And Identity Model Documentation ] ( https : // www . ory . sh / docs / next / kratos / concepts / identity - user - model ) .
# verify the required parameter 'id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
Identity data, response status code and response headers
Identity data response status code and response headers
Array<(Identity, Integer, Hash)>
id
ID must be set to the ID of identity you want to get
ID must be set to the ID of identity you want to get
opts
opts the optional parameters
opts the optional parameters