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

package installer

// 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/openshift/assisted-service/models"
)

// V2UpdateClusterLogsProgressReader is a Reader for the V2UpdateClusterLogsProgress structure.
type V2UpdateClusterLogsProgressReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *V2UpdateClusterLogsProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewV2UpdateClusterLogsProgressNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 401:
		result := NewV2UpdateClusterLogsProgressUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewV2UpdateClusterLogsProgressForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewV2UpdateClusterLogsProgressNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 405:
		result := NewV2UpdateClusterLogsProgressMethodNotAllowed()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 409:
		result := NewV2UpdateClusterLogsProgressConflict()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewV2UpdateClusterLogsProgressInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 503:
		result := NewV2UpdateClusterLogsProgressServiceUnavailable()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}

// NewV2UpdateClusterLogsProgressNoContent creates a V2UpdateClusterLogsProgressNoContent with default headers values
func NewV2UpdateClusterLogsProgressNoContent() *V2UpdateClusterLogsProgressNoContent {
	return &V2UpdateClusterLogsProgressNoContent{}
}

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

Update cluster install progress.
*/
type V2UpdateClusterLogsProgressNoContent struct {
}

// IsSuccess returns true when this v2 update cluster logs progress no content response has a 2xx status code
func (o *V2UpdateClusterLogsProgressNoContent) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this v2 update cluster logs progress no content response has a 3xx status code
func (o *V2UpdateClusterLogsProgressNoContent) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress no content response has a 4xx status code
func (o *V2UpdateClusterLogsProgressNoContent) IsClientError() bool {
	return false
}

// IsServerError returns true when this v2 update cluster logs progress no content response has a 5xx status code
func (o *V2UpdateClusterLogsProgressNoContent) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress no content response a status code equal to that given
func (o *V2UpdateClusterLogsProgressNoContent) IsCode(code int) bool {
	return code == 204
}

func (o *V2UpdateClusterLogsProgressNoContent) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressNoContent ", 204)
}

func (o *V2UpdateClusterLogsProgressNoContent) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressNoContent ", 204)
}

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

	return nil
}

// NewV2UpdateClusterLogsProgressUnauthorized creates a V2UpdateClusterLogsProgressUnauthorized with default headers values
func NewV2UpdateClusterLogsProgressUnauthorized() *V2UpdateClusterLogsProgressUnauthorized {
	return &V2UpdateClusterLogsProgressUnauthorized{}
}

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

Unauthorized.
*/
type V2UpdateClusterLogsProgressUnauthorized struct {
	Payload *models.InfraError
}

// IsSuccess returns true when this v2 update cluster logs progress unauthorized response has a 2xx status code
func (o *V2UpdateClusterLogsProgressUnauthorized) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress unauthorized response has a 3xx status code
func (o *V2UpdateClusterLogsProgressUnauthorized) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress unauthorized response has a 4xx status code
func (o *V2UpdateClusterLogsProgressUnauthorized) IsClientError() bool {
	return true
}

// IsServerError returns true when this v2 update cluster logs progress unauthorized response has a 5xx status code
func (o *V2UpdateClusterLogsProgressUnauthorized) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress unauthorized response a status code equal to that given
func (o *V2UpdateClusterLogsProgressUnauthorized) IsCode(code int) bool {
	return code == 401
}

func (o *V2UpdateClusterLogsProgressUnauthorized) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressUnauthorized  %+v", 401, o.Payload)
}

func (o *V2UpdateClusterLogsProgressUnauthorized) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressUnauthorized  %+v", 401, o.Payload)
}

func (o *V2UpdateClusterLogsProgressUnauthorized) GetPayload() *models.InfraError {
	return o.Payload
}

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

	o.Payload = new(models.InfraError)

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

	return nil
}

// NewV2UpdateClusterLogsProgressForbidden creates a V2UpdateClusterLogsProgressForbidden with default headers values
func NewV2UpdateClusterLogsProgressForbidden() *V2UpdateClusterLogsProgressForbidden {
	return &V2UpdateClusterLogsProgressForbidden{}
}

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

Forbidden.
*/
type V2UpdateClusterLogsProgressForbidden struct {
	Payload *models.InfraError
}

// IsSuccess returns true when this v2 update cluster logs progress forbidden response has a 2xx status code
func (o *V2UpdateClusterLogsProgressForbidden) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress forbidden response has a 3xx status code
func (o *V2UpdateClusterLogsProgressForbidden) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress forbidden response has a 4xx status code
func (o *V2UpdateClusterLogsProgressForbidden) IsClientError() bool {
	return true
}

// IsServerError returns true when this v2 update cluster logs progress forbidden response has a 5xx status code
func (o *V2UpdateClusterLogsProgressForbidden) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress forbidden response a status code equal to that given
func (o *V2UpdateClusterLogsProgressForbidden) IsCode(code int) bool {
	return code == 403
}

func (o *V2UpdateClusterLogsProgressForbidden) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressForbidden  %+v", 403, o.Payload)
}

func (o *V2UpdateClusterLogsProgressForbidden) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressForbidden  %+v", 403, o.Payload)
}

func (o *V2UpdateClusterLogsProgressForbidden) GetPayload() *models.InfraError {
	return o.Payload
}

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

	o.Payload = new(models.InfraError)

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

	return nil
}

// NewV2UpdateClusterLogsProgressNotFound creates a V2UpdateClusterLogsProgressNotFound with default headers values
func NewV2UpdateClusterLogsProgressNotFound() *V2UpdateClusterLogsProgressNotFound {
	return &V2UpdateClusterLogsProgressNotFound{}
}

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

Error.
*/
type V2UpdateClusterLogsProgressNotFound struct {
	Payload *models.Error
}

// IsSuccess returns true when this v2 update cluster logs progress not found response has a 2xx status code
func (o *V2UpdateClusterLogsProgressNotFound) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress not found response has a 3xx status code
func (o *V2UpdateClusterLogsProgressNotFound) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress not found response has a 4xx status code
func (o *V2UpdateClusterLogsProgressNotFound) IsClientError() bool {
	return true
}

// IsServerError returns true when this v2 update cluster logs progress not found response has a 5xx status code
func (o *V2UpdateClusterLogsProgressNotFound) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress not found response a status code equal to that given
func (o *V2UpdateClusterLogsProgressNotFound) IsCode(code int) bool {
	return code == 404
}

func (o *V2UpdateClusterLogsProgressNotFound) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressNotFound  %+v", 404, o.Payload)
}

func (o *V2UpdateClusterLogsProgressNotFound) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressNotFound  %+v", 404, o.Payload)
}

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

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

// NewV2UpdateClusterLogsProgressMethodNotAllowed creates a V2UpdateClusterLogsProgressMethodNotAllowed with default headers values
func NewV2UpdateClusterLogsProgressMethodNotAllowed() *V2UpdateClusterLogsProgressMethodNotAllowed {
	return &V2UpdateClusterLogsProgressMethodNotAllowed{}
}

/*
V2UpdateClusterLogsProgressMethodNotAllowed describes a response with status code 405, with default header values.

Method Not Allowed.
*/
type V2UpdateClusterLogsProgressMethodNotAllowed struct {
	Payload *models.Error
}

// IsSuccess returns true when this v2 update cluster logs progress method not allowed response has a 2xx status code
func (o *V2UpdateClusterLogsProgressMethodNotAllowed) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress method not allowed response has a 3xx status code
func (o *V2UpdateClusterLogsProgressMethodNotAllowed) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress method not allowed response has a 4xx status code
func (o *V2UpdateClusterLogsProgressMethodNotAllowed) IsClientError() bool {
	return true
}

// IsServerError returns true when this v2 update cluster logs progress method not allowed response has a 5xx status code
func (o *V2UpdateClusterLogsProgressMethodNotAllowed) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress method not allowed response a status code equal to that given
func (o *V2UpdateClusterLogsProgressMethodNotAllowed) IsCode(code int) bool {
	return code == 405
}

func (o *V2UpdateClusterLogsProgressMethodNotAllowed) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressMethodNotAllowed  %+v", 405, o.Payload)
}

func (o *V2UpdateClusterLogsProgressMethodNotAllowed) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressMethodNotAllowed  %+v", 405, o.Payload)
}

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

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

// NewV2UpdateClusterLogsProgressConflict creates a V2UpdateClusterLogsProgressConflict with default headers values
func NewV2UpdateClusterLogsProgressConflict() *V2UpdateClusterLogsProgressConflict {
	return &V2UpdateClusterLogsProgressConflict{}
}

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

Error.
*/
type V2UpdateClusterLogsProgressConflict struct {
	Payload *models.Error
}

// IsSuccess returns true when this v2 update cluster logs progress conflict response has a 2xx status code
func (o *V2UpdateClusterLogsProgressConflict) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress conflict response has a 3xx status code
func (o *V2UpdateClusterLogsProgressConflict) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress conflict response has a 4xx status code
func (o *V2UpdateClusterLogsProgressConflict) IsClientError() bool {
	return true
}

// IsServerError returns true when this v2 update cluster logs progress conflict response has a 5xx status code
func (o *V2UpdateClusterLogsProgressConflict) IsServerError() bool {
	return false
}

// IsCode returns true when this v2 update cluster logs progress conflict response a status code equal to that given
func (o *V2UpdateClusterLogsProgressConflict) IsCode(code int) bool {
	return code == 409
}

func (o *V2UpdateClusterLogsProgressConflict) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressConflict  %+v", 409, o.Payload)
}

func (o *V2UpdateClusterLogsProgressConflict) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressConflict  %+v", 409, o.Payload)
}

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

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

// NewV2UpdateClusterLogsProgressInternalServerError creates a V2UpdateClusterLogsProgressInternalServerError with default headers values
func NewV2UpdateClusterLogsProgressInternalServerError() *V2UpdateClusterLogsProgressInternalServerError {
	return &V2UpdateClusterLogsProgressInternalServerError{}
}

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

Error.
*/
type V2UpdateClusterLogsProgressInternalServerError struct {
	Payload *models.Error
}

// IsSuccess returns true when this v2 update cluster logs progress internal server error response has a 2xx status code
func (o *V2UpdateClusterLogsProgressInternalServerError) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress internal server error response has a 3xx status code
func (o *V2UpdateClusterLogsProgressInternalServerError) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress internal server error response has a 4xx status code
func (o *V2UpdateClusterLogsProgressInternalServerError) IsClientError() bool {
	return false
}

// IsServerError returns true when this v2 update cluster logs progress internal server error response has a 5xx status code
func (o *V2UpdateClusterLogsProgressInternalServerError) IsServerError() bool {
	return true
}

// IsCode returns true when this v2 update cluster logs progress internal server error response a status code equal to that given
func (o *V2UpdateClusterLogsProgressInternalServerError) IsCode(code int) bool {
	return code == 500
}

func (o *V2UpdateClusterLogsProgressInternalServerError) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressInternalServerError  %+v", 500, o.Payload)
}

func (o *V2UpdateClusterLogsProgressInternalServerError) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressInternalServerError  %+v", 500, o.Payload)
}

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

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

// NewV2UpdateClusterLogsProgressServiceUnavailable creates a V2UpdateClusterLogsProgressServiceUnavailable with default headers values
func NewV2UpdateClusterLogsProgressServiceUnavailable() *V2UpdateClusterLogsProgressServiceUnavailable {
	return &V2UpdateClusterLogsProgressServiceUnavailable{}
}

/*
V2UpdateClusterLogsProgressServiceUnavailable describes a response with status code 503, with default header values.

Unavailable.
*/
type V2UpdateClusterLogsProgressServiceUnavailable struct {
	Payload *models.Error
}

// IsSuccess returns true when this v2 update cluster logs progress service unavailable response has a 2xx status code
func (o *V2UpdateClusterLogsProgressServiceUnavailable) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this v2 update cluster logs progress service unavailable response has a 3xx status code
func (o *V2UpdateClusterLogsProgressServiceUnavailable) IsRedirect() bool {
	return false
}

// IsClientError returns true when this v2 update cluster logs progress service unavailable response has a 4xx status code
func (o *V2UpdateClusterLogsProgressServiceUnavailable) IsClientError() bool {
	return false
}

// IsServerError returns true when this v2 update cluster logs progress service unavailable response has a 5xx status code
func (o *V2UpdateClusterLogsProgressServiceUnavailable) IsServerError() bool {
	return true
}

// IsCode returns true when this v2 update cluster logs progress service unavailable response a status code equal to that given
func (o *V2UpdateClusterLogsProgressServiceUnavailable) IsCode(code int) bool {
	return code == 503
}

func (o *V2UpdateClusterLogsProgressServiceUnavailable) Error() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressServiceUnavailable  %+v", 503, o.Payload)
}

func (o *V2UpdateClusterLogsProgressServiceUnavailable) String() string {
	return fmt.Sprintf("[PUT /v2/clusters/{cluster_id}/logs-progress][%d] v2UpdateClusterLogsProgressServiceUnavailable  %+v", 503, o.Payload)
}

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

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