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

package p_cloud_volume_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"
)

// PcloudVolumegroupsRemoteCopyRelationshipsGetReader is a Reader for the PcloudVolumegroupsRemoteCopyRelationshipsGet structure.
type PcloudVolumegroupsRemoteCopyRelationshipsGetReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 429:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships] pcloud.volumegroups.remoteCopyRelationships.get", response, response.Code())
	}
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetOK creates a PcloudVolumegroupsRemoteCopyRelationshipsGetOK with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetOK() *PcloudVolumegroupsRemoteCopyRelationshipsGetOK {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetOK{}
}

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

OK
*/
type PcloudVolumegroupsRemoteCopyRelationshipsGetOK struct {
	Payload *models.VolumeGroupRemoteCopyRelationships
}

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get o k response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get o k response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get o k response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) IsClientError() bool {
	return false
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get o k response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get o k response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) IsCode(code int) bool {
	return code == 200
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get o k response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) Code() int {
	return 200
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetOK  %+v", 200, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetOK  %+v", 200, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetOK) GetPayload() *models.VolumeGroupRemoteCopyRelationships {
	return o.Payload
}

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

	o.Payload = new(models.VolumeGroupRemoteCopyRelationships)

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

	return nil
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest creates a PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest() *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest{}
}

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

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

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get bad request response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get bad request response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get bad request response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get bad request response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get bad request response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) IsCode(code int) bool {
	return code == 400
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get bad request response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) Code() int {
	return 400
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest  %+v", 400, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest  %+v", 400, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetBadRequest) 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
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized creates a PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized() *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized{}
}

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

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

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get unauthorized response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get unauthorized response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get unauthorized response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get unauthorized response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get unauthorized response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) IsCode(code int) bool {
	return code == 401
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get unauthorized response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) Code() int {
	return 401
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized  %+v", 401, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized  %+v", 401, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetUnauthorized) 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
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetForbidden creates a PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetForbidden() *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden{}
}

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

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

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get forbidden response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get forbidden response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get forbidden response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get forbidden response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get forbidden response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) IsCode(code int) bool {
	return code == 403
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get forbidden response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) Code() int {
	return 403
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetForbidden  %+v", 403, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetForbidden  %+v", 403, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetForbidden) 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
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetNotFound creates a PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetNotFound() *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound{}
}

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

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

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get not found response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get not found response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get not found response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get not found response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get not found response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) IsCode(code int) bool {
	return code == 404
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get not found response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) Code() int {
	return 404
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetNotFound  %+v", 404, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetNotFound  %+v", 404, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetNotFound) 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
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests creates a PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests() *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests{}
}

/*
PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests
*/
type PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests struct {
	Payload *models.Error
}

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get too many requests response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get too many requests response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get too many requests response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) IsClientError() bool {
	return true
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get too many requests response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) IsServerError() bool {
	return false
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get too many requests response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) IsCode(code int) bool {
	return code == 429
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get too many requests response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) Code() int {
	return 429
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests  %+v", 429, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests  %+v", 429, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetTooManyRequests) 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
}

// NewPcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError creates a PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError with default headers values
func NewPcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError() *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError {
	return &PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError{}
}

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

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

// IsSuccess returns true when this pcloud volumegroups remote copy relationships get internal server error response has a 2xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this pcloud volumegroups remote copy relationships get internal server error response has a 3xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) IsRedirect() bool {
	return false
}

// IsClientError returns true when this pcloud volumegroups remote copy relationships get internal server error response has a 4xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) IsClientError() bool {
	return false
}

// IsServerError returns true when this pcloud volumegroups remote copy relationships get internal server error response has a 5xx status code
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) IsServerError() bool {
	return true
}

// IsCode returns true when this pcloud volumegroups remote copy relationships get internal server error response a status code equal to that given
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) IsCode(code int) bool {
	return code == 500
}

// Code gets the status code for the pcloud volumegroups remote copy relationships get internal server error response
func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) Code() int {
	return 500
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) Error() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError  %+v", 500, o.Payload)
}

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) String() string {
	return fmt.Sprintf("[GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships][%d] pcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError  %+v", 500, o.Payload)
}

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

func (o *PcloudVolumegroupsRemoteCopyRelationshipsGetInternalServerError) 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
}
