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

package organization

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

// OrgUpdateAvatarReader is a Reader for the OrgUpdateAvatar structure.
type OrgUpdateAvatarReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *OrgUpdateAvatarReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewOrgUpdateAvatarNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 404:
		result := NewOrgUpdateAvatarNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("[POST /orgs/{org}/avatar] orgUpdateAvatar", response, response.Code())
	}
}

// NewOrgUpdateAvatarNoContent creates a OrgUpdateAvatarNoContent with default headers values
func NewOrgUpdateAvatarNoContent() *OrgUpdateAvatarNoContent {
	return &OrgUpdateAvatarNoContent{}
}

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

APIEmpty is an empty response
*/
type OrgUpdateAvatarNoContent struct {
}

// IsSuccess returns true when this org update avatar no content response has a 2xx status code
func (o *OrgUpdateAvatarNoContent) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this org update avatar no content response has a 3xx status code
func (o *OrgUpdateAvatarNoContent) IsRedirect() bool {
	return false
}

// IsClientError returns true when this org update avatar no content response has a 4xx status code
func (o *OrgUpdateAvatarNoContent) IsClientError() bool {
	return false
}

// IsServerError returns true when this org update avatar no content response has a 5xx status code
func (o *OrgUpdateAvatarNoContent) IsServerError() bool {
	return false
}

// IsCode returns true when this org update avatar no content response a status code equal to that given
func (o *OrgUpdateAvatarNoContent) IsCode(code int) bool {
	return code == 204
}

// Code gets the status code for the org update avatar no content response
func (o *OrgUpdateAvatarNoContent) Code() int {
	return 204
}

func (o *OrgUpdateAvatarNoContent) Error() string {
	return fmt.Sprintf("[POST /orgs/{org}/avatar][%d] orgUpdateAvatarNoContent", 204)
}

func (o *OrgUpdateAvatarNoContent) String() string {
	return fmt.Sprintf("[POST /orgs/{org}/avatar][%d] orgUpdateAvatarNoContent", 204)
}

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

	return nil
}

// NewOrgUpdateAvatarNotFound creates a OrgUpdateAvatarNotFound with default headers values
func NewOrgUpdateAvatarNotFound() *OrgUpdateAvatarNotFound {
	return &OrgUpdateAvatarNotFound{}
}

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

APINotFound is a not found empty response
*/
type OrgUpdateAvatarNotFound struct {
}

// IsSuccess returns true when this org update avatar not found response has a 2xx status code
func (o *OrgUpdateAvatarNotFound) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this org update avatar not found response has a 3xx status code
func (o *OrgUpdateAvatarNotFound) IsRedirect() bool {
	return false
}

// IsClientError returns true when this org update avatar not found response has a 4xx status code
func (o *OrgUpdateAvatarNotFound) IsClientError() bool {
	return true
}

// IsServerError returns true when this org update avatar not found response has a 5xx status code
func (o *OrgUpdateAvatarNotFound) IsServerError() bool {
	return false
}

// IsCode returns true when this org update avatar not found response a status code equal to that given
func (o *OrgUpdateAvatarNotFound) IsCode(code int) bool {
	return code == 404
}

// Code gets the status code for the org update avatar not found response
func (o *OrgUpdateAvatarNotFound) Code() int {
	return 404
}

func (o *OrgUpdateAvatarNotFound) Error() string {
	return fmt.Sprintf("[POST /orgs/{org}/avatar][%d] orgUpdateAvatarNotFound", 404)
}

func (o *OrgUpdateAvatarNotFound) String() string {
	return fmt.Sprintf("[POST /orgs/{org}/avatar][%d] orgUpdateAvatarNotFound", 404)
}

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

	return nil
}
