clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Create an OAuth 2.0 Client
# Create a new OAuth 2.0 client If you pass &#x60;client_secret&#x60; the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe.  OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
# @param body [OAuth2Client] 
# @param [Hash] opts the optional parameters
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
Create an OAuth 2.0 Client
Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe.  OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
Create an OAuth 2 . 0 Client Create a new OAuth 2 . 0 client If you pass ` client_secret ` the secret will be used otherwise a random secret will be generated . The secret will be returned in the response and you will not be able to retrieve it later on . Write the secret down and keep it somwhere safe . OAuth 2 . 0 clients are used to perform OAuth 2 . 0 and OpenID Connect flows . Usually OAuth 2 . 0 clients are generated for applications which want to consume your OAuth 2 . 0 or OpenID Connect capabilities . To manage ORY Hydra you will need an OAuth 2 . 0 Client as well . Make sure that this endpoint is well protected and only callable by first - party components .
def create_o_auth2_client_with_http_info(body, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.create_o_auth2_client ...'
      end
      if @api_client.config.client_side_validation && body.nil?
        fail ArgumentError, "Missing the required parameter 'body' when calling AdminApi.create_o_auth2_client"
      end
      local_var_path = '/clients'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
      return_type = opts[:debug_return_type] || 'OAuth2Client'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.create_o_auth2_client",
        :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(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#create_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_o_auth2_client_with_http_info ( body , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.create_o_auth2_client ...' end if @api_client . config . client_side_validation && body . nil? fail ArgumentError , "Missing the required parameter 'body' when calling AdminApi.create_o_auth2_client" end local_var_path = '/clients' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( body ) return_type = opts [ :debug_return_type ] || 'OAuth2Client' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.create_o_auth2_client " , :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 ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#create_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create an OAuth 2.0 Client
Create a new OAuth 2.0 client If you pass &#x60;client_secret&#x60; the secret will be used, otherwise a random secret will be generated.
Create an OAuth 2 . 0 Client Create a new OAuth 2 . 0 client If you pass &#x60 ; client_secret&#x60 ; the secret will be used otherwise a random secret will be generated .
# verify the required parameter 'body' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
OAuth2Client data, response status code and response headers
OAuth2Client data response status code and response headers
Array<(OAuth2Client, Integer, Hash)>
body
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters