// Code generated by go-swagger; DO NOT EDIT.

package provisioning

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)

// DeleteAlertRuleReader is a Reader for the DeleteAlertRule structure.
type DeleteAlertRuleReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *DeleteAlertRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewDeleteAlertRuleNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	default:
		return nil, runtime.NewAPIError("[DELETE /v1/provisioning/alert-rules/{UID}] DeleteAlertRule", response, response.Code())
	}
}

// NewDeleteAlertRuleNoContent creates a DeleteAlertRuleNoContent with default headers values
func NewDeleteAlertRuleNoContent() *DeleteAlertRuleNoContent {
	return &DeleteAlertRuleNoContent{}
}

/*
DeleteAlertRuleNoContent describes a response with status code 204, with default header values.

	The alert rule was deleted successfully.
*/
type DeleteAlertRuleNoContent struct {
}

// IsSuccess returns true when this delete alert rule no content response has a 2xx status code
func (o *DeleteAlertRuleNoContent) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this delete alert rule no content response has a 3xx status code
func (o *DeleteAlertRuleNoContent) IsRedirect() bool {
	return false
}

// IsClientError returns true when this delete alert rule no content response has a 4xx status code
func (o *DeleteAlertRuleNoContent) IsClientError() bool {
	return false
}

// IsServerError returns true when this delete alert rule no content response has a 5xx status code
func (o *DeleteAlertRuleNoContent) IsServerError() bool {
	return false
}

// IsCode returns true when this delete alert rule no content response a status code equal to that given
func (o *DeleteAlertRuleNoContent) IsCode(code int) bool {
	return code == 204
}

// Code gets the status code for the delete alert rule no content response
func (o *DeleteAlertRuleNoContent) Code() int {
	return 204
}

func (o *DeleteAlertRuleNoContent) Error() string {
	return fmt.Sprintf("[DELETE /v1/provisioning/alert-rules/{UID}][%d] deleteAlertRuleNoContent", 204)
}

func (o *DeleteAlertRuleNoContent) String() string {
	return fmt.Sprintf("[DELETE /v1/provisioning/alert-rules/{UID}][%d] deleteAlertRuleNoContent", 204)
}

func (o *DeleteAlertRuleNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	return nil
}
