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

package p_cloud_s_p_p_placement_groups

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

import (
	"fmt"
	"io"

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

	"github.com/IBM-Cloud/power-go-client/power/models"
)

// PcloudSppplacementgroupsMembersDeleteReader is a Reader for the PcloudSppplacementgroupsMembersDelete structure.
type PcloudSppplacementgroupsMembersDeleteReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *PcloudSppplacementgroupsMembersDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPcloudSppplacementgroupsMembersDeleteOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPcloudSppplacementgroupsMembersDeleteBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPcloudSppplacementgroupsMembersDeleteUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewPcloudSppplacementgroupsMembersDeleteForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewPcloudSppplacementgroupsMembersDeleteNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 409:
		result := NewPcloudSppplacementgroupsMembersDeleteConflict()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPcloudSppplacementgroupsMembersDeleteInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}] pcloud.sppplacementgroups.members.delete", response, response.Code())
	}
}

// NewPcloudSppplacementgroupsMembersDeleteOK creates a PcloudSppplacementgroupsMembersDeleteOK with default headers values
func NewPcloudSppplacementgroupsMembersDeleteOK() *PcloudSppplacementgroupsMembersDeleteOK {
	return &PcloudSppplacementgroupsMembersDeleteOK{}
}

/*
PcloudSppplacementgroupsMembersDeleteOK describes a response with status code 200, with default header values.

OK
*/
type PcloudSppplacementgroupsMembersDeleteOK struct {
	Payload *models.SPPPlacementGroup
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete o k response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteOK) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete o k response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteOK) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete o k response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteOK) IsClientError() bool {
	return false
}

// IsServerError returns true when this pcloud sppplacementgroups members delete o k response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteOK) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete o k response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteOK) IsCode(code int) bool {
	return code == 200
}

// Code gets the status code for the pcloud sppplacementgroups members delete o k response
func (o *PcloudSppplacementgroupsMembersDeleteOK) Code() int {
	return 200
}

func (o *PcloudSppplacementgroupsMembersDeleteOK) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteOK  %+v", 200, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteOK) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteOK  %+v", 200, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteOK) GetPayload() *models.SPPPlacementGroup {
	return o.Payload
}

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

	o.Payload = new(models.SPPPlacementGroup)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteBadRequest creates a PcloudSppplacementgroupsMembersDeleteBadRequest with default headers values
func NewPcloudSppplacementgroupsMembersDeleteBadRequest() *PcloudSppplacementgroupsMembersDeleteBadRequest {
	return &PcloudSppplacementgroupsMembersDeleteBadRequest{}
}

/*
PcloudSppplacementgroupsMembersDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request
*/
type PcloudSppplacementgroupsMembersDeleteBadRequest struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete bad request response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete bad request response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete bad request response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud sppplacementgroups members delete bad request response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete bad request response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) IsCode(code int) bool {
	return code == 400
}

// Code gets the status code for the pcloud sppplacementgroups members delete bad request response
func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) Code() int {
	return 400
}

func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteBadRequest  %+v", 400, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteBadRequest  %+v", 400, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteBadRequest) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteUnauthorized creates a PcloudSppplacementgroupsMembersDeleteUnauthorized with default headers values
func NewPcloudSppplacementgroupsMembersDeleteUnauthorized() *PcloudSppplacementgroupsMembersDeleteUnauthorized {
	return &PcloudSppplacementgroupsMembersDeleteUnauthorized{}
}

/*
PcloudSppplacementgroupsMembersDeleteUnauthorized describes a response with status code 401, with default header values.

Unauthorized
*/
type PcloudSppplacementgroupsMembersDeleteUnauthorized struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete unauthorized response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete unauthorized response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete unauthorized response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud sppplacementgroups members delete unauthorized response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete unauthorized response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) IsCode(code int) bool {
	return code == 401
}

// Code gets the status code for the pcloud sppplacementgroups members delete unauthorized response
func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) Code() int {
	return 401
}

func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteUnauthorized  %+v", 401, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteUnauthorized  %+v", 401, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteUnauthorized) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteForbidden creates a PcloudSppplacementgroupsMembersDeleteForbidden with default headers values
func NewPcloudSppplacementgroupsMembersDeleteForbidden() *PcloudSppplacementgroupsMembersDeleteForbidden {
	return &PcloudSppplacementgroupsMembersDeleteForbidden{}
}

/*
PcloudSppplacementgroupsMembersDeleteForbidden describes a response with status code 403, with default header values.

Forbidden
*/
type PcloudSppplacementgroupsMembersDeleteForbidden struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete forbidden response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete forbidden response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete forbidden response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud sppplacementgroups members delete forbidden response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete forbidden response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) IsCode(code int) bool {
	return code == 403
}

// Code gets the status code for the pcloud sppplacementgroups members delete forbidden response
func (o *PcloudSppplacementgroupsMembersDeleteForbidden) Code() int {
	return 403
}

func (o *PcloudSppplacementgroupsMembersDeleteForbidden) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteForbidden  %+v", 403, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteForbidden) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteForbidden  %+v", 403, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteForbidden) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteNotFound creates a PcloudSppplacementgroupsMembersDeleteNotFound with default headers values
func NewPcloudSppplacementgroupsMembersDeleteNotFound() *PcloudSppplacementgroupsMembersDeleteNotFound {
	return &PcloudSppplacementgroupsMembersDeleteNotFound{}
}

/*
PcloudSppplacementgroupsMembersDeleteNotFound describes a response with status code 404, with default header values.

Not Found
*/
type PcloudSppplacementgroupsMembersDeleteNotFound struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete not found response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete not found response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete not found response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud sppplacementgroups members delete not found response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete not found response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) IsCode(code int) bool {
	return code == 404
}

// Code gets the status code for the pcloud sppplacementgroups members delete not found response
func (o *PcloudSppplacementgroupsMembersDeleteNotFound) Code() int {
	return 404
}

func (o *PcloudSppplacementgroupsMembersDeleteNotFound) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteNotFound  %+v", 404, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteNotFound) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteNotFound  %+v", 404, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteNotFound) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteConflict creates a PcloudSppplacementgroupsMembersDeleteConflict with default headers values
func NewPcloudSppplacementgroupsMembersDeleteConflict() *PcloudSppplacementgroupsMembersDeleteConflict {
	return &PcloudSppplacementgroupsMembersDeleteConflict{}
}

/*
PcloudSppplacementgroupsMembersDeleteConflict describes a response with status code 409, with default header values.

Conflict
*/
type PcloudSppplacementgroupsMembersDeleteConflict struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete conflict response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteConflict) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete conflict response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteConflict) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete conflict response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteConflict) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud sppplacementgroups members delete conflict response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteConflict) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud sppplacementgroups members delete conflict response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteConflict) IsCode(code int) bool {
	return code == 409
}

// Code gets the status code for the pcloud sppplacementgroups members delete conflict response
func (o *PcloudSppplacementgroupsMembersDeleteConflict) Code() int {
	return 409
}

func (o *PcloudSppplacementgroupsMembersDeleteConflict) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteConflict  %+v", 409, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteConflict) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteConflict  %+v", 409, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteConflict) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewPcloudSppplacementgroupsMembersDeleteInternalServerError creates a PcloudSppplacementgroupsMembersDeleteInternalServerError with default headers values
func NewPcloudSppplacementgroupsMembersDeleteInternalServerError() *PcloudSppplacementgroupsMembersDeleteInternalServerError {
	return &PcloudSppplacementgroupsMembersDeleteInternalServerError{}
}

/*
PcloudSppplacementgroupsMembersDeleteInternalServerError describes a response with status code 500, with default header values.

Internal Server Error
*/
type PcloudSppplacementgroupsMembersDeleteInternalServerError struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud sppplacementgroups members delete internal server error response has a 2xx status code
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud sppplacementgroups members delete internal server error response has a 3xx status code
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud sppplacementgroups members delete internal server error response has a 4xx status code
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) IsClientError() bool {
	return false
}

// IsServerError returns true when this pcloud sppplacementgroups members delete internal server error response has a 5xx status code
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) IsServerError() bool {
	return true
}

// IsCode returns true when this pcloud sppplacementgroups members delete internal server error response a status code equal to that given
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) IsCode(code int) bool {
	return code == 500
}

// Code gets the status code for the pcloud sppplacementgroups members delete internal server error response
func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) Code() int {
	return 500
}

func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) Error() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteInternalServerError  %+v", 500, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) String() string {
	return fmt.Sprintf("[DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}][%d] pcloudSppplacementgroupsMembersDeleteInternalServerError  %+v", 500, o.Payload)
}

func (o *PcloudSppplacementgroupsMembersDeleteInternalServerError) GetPayload() *models.Error {
	return o.Payload
}

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

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}
