lib/dependency-tracker-client/api/team_api.rb
# Generates an API key and returns its value
# @param uuid [String] The UUID of the team to generate a key for
# @param [Hash] opts the optional parameters
# @return [Array<(ApiKey, Integer, Hash)>] ApiKey data, response status code and response headers
Generates an API key and returns its value
Generates an API key and returns its value
def generate_api_key_with_http_info(uuid, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: TeamApi.generate_api_key ...'
      end
      if @api_client.config.client_side_validation && uuid.nil?
        fail ArgumentError, "Missing the required parameter 'uuid' when calling TeamApi.generate_api_key"
      end
      local_var_path = '/v1/team/{uuid}/key'.sub('{' + 'uuid' + '}', CGI.escape(uuid.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[:body] 
      return_type = opts[:return_type] || 'ApiKey' 
      auth_names = opts[:auth_names] || ['X-Api-Key']
      new_options = opts.merge(
        :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(:PUT, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: TeamApi#generate_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def generate_api_key_with_http_info ( uuid , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: TeamApi.generate_api_key ...' end if @api_client . config . client_side_validation && uuid . nil? fail ArgumentError , "Missing the required parameter 'uuid' when calling TeamApi.generate_api_key" end local_var_path = '/v1/team/{uuid}/key' . sub ( '{' + 'uuid' + '}' , CGI . escape ( uuid . 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 [ :body ] return_type = opts [ :return_type ] || 'ApiKey' auth_names = opts [ :auth_names ] || [ 'X-Api-Key' ] new_options = opts . merge ( :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 ( :PUT , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: TeamApi#generate_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Generates an API key and returns its value
Generates an API key and returns its value
# verify the required parameter 'uuid' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
ApiKey data, response status code and response headers
ApiKey data response status code and response headers
Array<(ApiKey, Integer, Hash)>
uuid
The UUID of the team to generate a key for
The UUID of the team to generate a key for
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters