lib/datadog_api_client/v2/api/key_management_api.rb
def delete_application_key_with_http_info(app_key_id, opts = {})

      if @api_client.config.unstable_operations.has_key?(:delete_application_key)
        unstable_enabled = @api_client.config.unstable_operations[:delete_application_key]
        if unstable_enabled
          @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_application_key")
        else
          raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_application_key"))
        end
      end

      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: KeyManagementAPI.delete_application_key ...'
      end
      # verify the required parameter 'app_key_id' is set
      if @api_client.config.client_side_validation && app_key_id.nil?
        fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_application_key"
      end
      # resource path
      local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/'))

      # 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(['*/*'])

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

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

      # return_type
      return_type = opts[:debug_return_type]

      # auth_names
      auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]

      new_options = opts.merge(
        :operation => :delete_application_key,
        :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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: KeyManagementAPI#delete_application_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Delete an application key
# Delete an application key
# @param app_key_id [String] The ID of the application key.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Delete an application key
Delete an application key
Delete an application key Delete an application key
def delete_application_key_with_http_info(app_key_id, opts = {})
      if @api_client.config.unstable_operations.has_key?(:delete_application_key)
        unstable_enabled = @api_client.config.unstable_operations[:delete_application_key]
        if unstable_enabled
          @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_application_key")
        else
          raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_application_key"))
        end
      end
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: KeyManagementAPI.delete_application_key ...'
      end
      if @api_client.config.client_side_validation && app_key_id.nil?
        fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_application_key"
      end
      local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/'))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['*/*'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
      new_options = opts.merge(
        :operation => :delete_application_key,
        :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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: KeyManagementAPI#delete_application_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_application_key_with_http_info ( app_key_id , opts = { } ) if @api_client . config . unstable_operations . has_key? ( :delete_application_key ) unstable_enabled = @api_client . config . unstable_operations [ :delete_application_key ] if unstable_enabled @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "delete_application_key" ) else raise APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "delete_application_key" ) ) end end if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: KeyManagementAPI.delete_application_key ...' end if @api_client . config . client_side_validation && app_key_id . nil? fail ArgumentError , "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_application_key" end local_var_path = '/api/v2/application_keys/{app_key_id}' . sub ( '{app_key_id}' , CGI . escape ( app_key_id . to_s ) . gsub ( '%2F' , '/' ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ] new_options = opts . merge ( :operation => :delete_application_key , :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 ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: KeyManagementAPI#delete_application_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete an application key
Delete an application key
Delete an application key Delete an application key
# verify the required parameter 'app_key_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
app_key_id
The ID of the application key.
The ID of the application key .
opts
the optional parameters
the optional parameters