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

package fleets

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

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

	"git.inf3.xyz/tschwery/eve-goclient.git/models"
)

// PutFleetsFleetIDWingsWingIDReader is a Reader for the PutFleetsFleetIDWingsWingID structure.
type PutFleetsFleetIDWingsWingIDReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *PutFleetsFleetIDWingsWingIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {

	case 204:
		result := NewPutFleetsFleetIDWingsWingIDNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil

	case 403:
		result := NewPutFleetsFleetIDWingsWingIDForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 404:
		result := NewPutFleetsFleetIDWingsWingIDNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 500:
		result := NewPutFleetsFleetIDWingsWingIDInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}

// NewPutFleetsFleetIDWingsWingIDNoContent creates a PutFleetsFleetIDWingsWingIDNoContent with default headers values
func NewPutFleetsFleetIDWingsWingIDNoContent() *PutFleetsFleetIDWingsWingIDNoContent {
	return &PutFleetsFleetIDWingsWingIDNoContent{}
}

/*PutFleetsFleetIDWingsWingIDNoContent handles this case with default header values.

Wing renamed
*/
type PutFleetsFleetIDWingsWingIDNoContent struct {
}

func (o *PutFleetsFleetIDWingsWingIDNoContent) Error() string {
	return fmt.Sprintf("[PUT /fleets/{fleet_id}/wings/{wing_id}/][%d] putFleetsFleetIdWingsWingIdNoContent ", 204)
}

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

	return nil
}

// NewPutFleetsFleetIDWingsWingIDForbidden creates a PutFleetsFleetIDWingsWingIDForbidden with default headers values
func NewPutFleetsFleetIDWingsWingIDForbidden() *PutFleetsFleetIDWingsWingIDForbidden {
	return &PutFleetsFleetIDWingsWingIDForbidden{}
}

/*PutFleetsFleetIDWingsWingIDForbidden handles this case with default header values.

Forbidden
*/
type PutFleetsFleetIDWingsWingIDForbidden struct {
	Payload *models.Forbidden
}

func (o *PutFleetsFleetIDWingsWingIDForbidden) Error() string {
	return fmt.Sprintf("[PUT /fleets/{fleet_id}/wings/{wing_id}/][%d] putFleetsFleetIdWingsWingIdForbidden  %+v", 403, o.Payload)
}

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

	o.Payload = new(models.Forbidden)

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

	return nil
}

// NewPutFleetsFleetIDWingsWingIDNotFound creates a PutFleetsFleetIDWingsWingIDNotFound with default headers values
func NewPutFleetsFleetIDWingsWingIDNotFound() *PutFleetsFleetIDWingsWingIDNotFound {
	return &PutFleetsFleetIDWingsWingIDNotFound{}
}

/*PutFleetsFleetIDWingsWingIDNotFound handles this case with default header values.

The fleet does not exist or you don't have access to it
*/
type PutFleetsFleetIDWingsWingIDNotFound struct {
	Payload *models.PutFleetsFleetIDWingsWingIDNotFoundBody
}

func (o *PutFleetsFleetIDWingsWingIDNotFound) Error() string {
	return fmt.Sprintf("[PUT /fleets/{fleet_id}/wings/{wing_id}/][%d] putFleetsFleetIdWingsWingIdNotFound  %+v", 404, o.Payload)
}

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

	o.Payload = new(models.PutFleetsFleetIDWingsWingIDNotFoundBody)

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

	return nil
}

// NewPutFleetsFleetIDWingsWingIDInternalServerError creates a PutFleetsFleetIDWingsWingIDInternalServerError with default headers values
func NewPutFleetsFleetIDWingsWingIDInternalServerError() *PutFleetsFleetIDWingsWingIDInternalServerError {
	return &PutFleetsFleetIDWingsWingIDInternalServerError{}
}

/*PutFleetsFleetIDWingsWingIDInternalServerError handles this case with default header values.

Internal server error
*/
type PutFleetsFleetIDWingsWingIDInternalServerError struct {
	Payload *models.InternalServerError
}

func (o *PutFleetsFleetIDWingsWingIDInternalServerError) Error() string {
	return fmt.Sprintf("[PUT /fleets/{fleet_id}/wings/{wing_id}/][%d] putFleetsFleetIdWingsWingIdInternalServerError  %+v", 500, o.Payload)
}

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

	o.Payload = new(models.InternalServerError)

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

	return nil
}
