clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Patch an OAuth 2.0 Client
# Patch an existing OAuth 2.0 Client. If you pass &#x60;client_secret&#x60; the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it 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 id [String] 
# @param body [Array<PatchDocument>] 
# @param [Hash] opts the optional parameters
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
Patch an OAuth 2.0 Client
Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it 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.
Patch an OAuth 2 . 0 Client Patch an existing OAuth 2 . 0 Client . If you pass ` client_secret ` the secret will be updated and returned via the API . This is the only time you will be able to retrieve the client secret so write it down and keep it 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 patch_o_auth2_client_with_http_info(id, body, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.patch_o_auth2_client ...'
      end
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.patch_o_auth2_client"
      end
      if @api_client.config.client_side_validation && body.nil?
        fail ArgumentError, "Missing the required parameter 'body' when calling AdminApi.patch_o_auth2_client"
      end
      local_var_path = '/clients/{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'])
      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.patch_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(:PATCH, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#patch_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def patch_o_auth2_client_with_http_info ( id , body , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.patch_o_auth2_client ...' end if @api_client . config . client_side_validation && id . nil? fail ArgumentError , "Missing the required parameter 'id' when calling AdminApi.patch_o_auth2_client" end if @api_client . config . client_side_validation && body . nil? fail ArgumentError , "Missing the required parameter 'body' when calling AdminApi.patch_o_auth2_client" end local_var_path = '/clients/{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' ] ) 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.patch_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 ( :PATCH , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#patch_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Patch an OAuth 2.0 Client
Patch an existing OAuth 2.0 Client.
Patch an OAuth 2 . 0 Client Patch an existing OAuth 2 . 0 Client .
# verify the required parameter 'id' is set # 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)>
id
<not_specific>
body
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters