// 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"
)

// DeleteContactpointsReader is a Reader for the DeleteContactpoints structure.
type DeleteContactpointsReader struct {
	formats strfmt.Registry
}

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

// NewDeleteContactpointsAccepted creates a DeleteContactpointsAccepted with default headers values
func NewDeleteContactpointsAccepted() *DeleteContactpointsAccepted {
	return &DeleteContactpointsAccepted{}
}

/*
DeleteContactpointsAccepted describes a response with status code 202, with default header values.

	The contact point was deleted successfully.
*/
type DeleteContactpointsAccepted struct {
}

// IsSuccess returns true when this delete contactpoints accepted response has a 2xx status code
func (o *DeleteContactpointsAccepted) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this delete contactpoints accepted response has a 3xx status code
func (o *DeleteContactpointsAccepted) IsRedirect() bool {
	return false
}

// IsClientError returns true when this delete contactpoints accepted response has a 4xx status code
func (o *DeleteContactpointsAccepted) IsClientError() bool {
	return false
}

// IsServerError returns true when this delete contactpoints accepted response has a 5xx status code
func (o *DeleteContactpointsAccepted) IsServerError() bool {
	return false
}

// IsCode returns true when this delete contactpoints accepted response a status code equal to that given
func (o *DeleteContactpointsAccepted) IsCode(code int) bool {
	return code == 202
}

// Code gets the status code for the delete contactpoints accepted response
func (o *DeleteContactpointsAccepted) Code() int {
	return 202
}

func (o *DeleteContactpointsAccepted) Error() string {
	return fmt.Sprintf("[DELETE /v1/provisioning/contact-points/{UID}][%d] deleteContactpointsAccepted", 202)
}

func (o *DeleteContactpointsAccepted) String() string {
	return fmt.Sprintf("[DELETE /v1/provisioning/contact-points/{UID}][%d] deleteContactpointsAccepted", 202)
}

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

	return nil
}
