lib/dependency-tracker-client/api/default_api.rb
# Removes a project from a notification rule
# @param rule_uuid [String] The UUID of the rule to remove the project from
# @param project_uuid [String] The UUID of the project to remove from the rule
# @param [Hash] opts the optional parameters
# @return [Array<(NotificationRule, Integer, Hash)>] NotificationRule data, response status code and response headers
Removes a project from a notification rule
Removes a project from a notification rule
def remove_project_from_rule_with_http_info(rule_uuid, project_uuid, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: DefaultApi.remove_project_from_rule ...'
      end
      if @api_client.config.client_side_validation && rule_uuid.nil?
        fail ArgumentError, "Missing the required parameter 'rule_uuid' when calling DefaultApi.remove_project_from_rule"
      end
      if @api_client.config.client_side_validation && project_uuid.nil?
        fail ArgumentError, "Missing the required parameter 'project_uuid' when calling DefaultApi.remove_project_from_rule"
      end
      local_var_path = '/v1/notification/rule/{ruleUuid}/project/{projectUuid}'.sub('{' + 'ruleUuid' + '}', CGI.escape(rule_uuid.to_s)).sub('{' + 'projectUuid' + '}', CGI.escape(project_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] || 'NotificationRule' 
      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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: DefaultApi#remove_project_from_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def remove_project_from_rule_with_http_info ( rule_uuid , project_uuid , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: DefaultApi.remove_project_from_rule ...' end if @api_client . config . client_side_validation && rule_uuid . nil? fail ArgumentError , "Missing the required parameter 'rule_uuid' when calling DefaultApi.remove_project_from_rule" end if @api_client . config . client_side_validation && project_uuid . nil? fail ArgumentError , "Missing the required parameter 'project_uuid' when calling DefaultApi.remove_project_from_rule" end local_var_path = '/v1/notification/rule/{ruleUuid}/project/{projectUuid}' . sub ( '{' + 'ruleUuid' + '}' , CGI . escape ( rule_uuid . to_s ) ) . sub ( '{' + 'projectUuid' + '}' , CGI . escape ( project_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 ] || 'NotificationRule' 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 ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: DefaultApi#remove_project_from_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Removes a project from a notification rule
Removes a project from a notification rule
# verify the required parameter 'rule_uuid' is set # verify the required parameter 'project_uuid' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
NotificationRule data, response status code and response headers
NotificationRule data response status code and response headers
Array<(NotificationRule, Integer, Hash)>
rule_uuid
The UUID of the rule to remove the project from
The UUID of the rule to remove the project from
project_uuid
The UUID of the project to remove from the rule
The UUID of the project to remove from the rule
opts
<not_specific>
<not_specific>
opts the optional parameters
opts the optional parameters