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

package repository_management

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

// CreateRepository29Reader is a Reader for the CreateRepository29 structure.
type CreateRepository29Reader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *CreateRepository29Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 201:
		result := NewCreateRepository29Created()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 401:
		result := NewCreateRepository29Unauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewCreateRepository29Forbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 405:
		result := NewCreateRepository29MethodNotAllowed()
		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())
	}
}

// NewCreateRepository29Created creates a CreateRepository29Created with default headers values
func NewCreateRepository29Created() *CreateRepository29Created {
	return &CreateRepository29Created{}
}

/*
CreateRepository29Created describes a response with status code 201, with default header values.

Repository created
*/
type CreateRepository29Created struct {
}

// IsSuccess returns true when this create repository29 created response has a 2xx status code
func (o *CreateRepository29Created) IsSuccess() bool {
	return true
}

// IsRedirect returns true when this create repository29 created response has a 3xx status code
func (o *CreateRepository29Created) IsRedirect() bool {
	return false
}

// IsClientError returns true when this create repository29 created response has a 4xx status code
func (o *CreateRepository29Created) IsClientError() bool {
	return false
}

// IsServerError returns true when this create repository29 created response has a 5xx status code
func (o *CreateRepository29Created) IsServerError() bool {
	return false
}

// IsCode returns true when this create repository29 created response a status code equal to that given
func (o *CreateRepository29Created) IsCode(code int) bool {
	return code == 201
}

// Code gets the status code for the create repository29 created response
func (o *CreateRepository29Created) Code() int {
	return 201
}

func (o *CreateRepository29Created) Error() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Created ", 201)
}

func (o *CreateRepository29Created) String() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Created ", 201)
}

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

	return nil
}

// NewCreateRepository29Unauthorized creates a CreateRepository29Unauthorized with default headers values
func NewCreateRepository29Unauthorized() *CreateRepository29Unauthorized {
	return &CreateRepository29Unauthorized{}
}

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

Authentication required
*/
type CreateRepository29Unauthorized struct {
}

// IsSuccess returns true when this create repository29 unauthorized response has a 2xx status code
func (o *CreateRepository29Unauthorized) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this create repository29 unauthorized response has a 3xx status code
func (o *CreateRepository29Unauthorized) IsRedirect() bool {
	return false
}

// IsClientError returns true when this create repository29 unauthorized response has a 4xx status code
func (o *CreateRepository29Unauthorized) IsClientError() bool {
	return true
}

// IsServerError returns true when this create repository29 unauthorized response has a 5xx status code
func (o *CreateRepository29Unauthorized) IsServerError() bool {
	return false
}

// IsCode returns true when this create repository29 unauthorized response a status code equal to that given
func (o *CreateRepository29Unauthorized) IsCode(code int) bool {
	return code == 401
}

// Code gets the status code for the create repository29 unauthorized response
func (o *CreateRepository29Unauthorized) Code() int {
	return 401
}

func (o *CreateRepository29Unauthorized) Error() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Unauthorized ", 401)
}

func (o *CreateRepository29Unauthorized) String() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Unauthorized ", 401)
}

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

	return nil
}

// NewCreateRepository29Forbidden creates a CreateRepository29Forbidden with default headers values
func NewCreateRepository29Forbidden() *CreateRepository29Forbidden {
	return &CreateRepository29Forbidden{}
}

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

Insufficient permissions
*/
type CreateRepository29Forbidden struct {
}

// IsSuccess returns true when this create repository29 forbidden response has a 2xx status code
func (o *CreateRepository29Forbidden) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this create repository29 forbidden response has a 3xx status code
func (o *CreateRepository29Forbidden) IsRedirect() bool {
	return false
}

// IsClientError returns true when this create repository29 forbidden response has a 4xx status code
func (o *CreateRepository29Forbidden) IsClientError() bool {
	return true
}

// IsServerError returns true when this create repository29 forbidden response has a 5xx status code
func (o *CreateRepository29Forbidden) IsServerError() bool {
	return false
}

// IsCode returns true when this create repository29 forbidden response a status code equal to that given
func (o *CreateRepository29Forbidden) IsCode(code int) bool {
	return code == 403
}

// Code gets the status code for the create repository29 forbidden response
func (o *CreateRepository29Forbidden) Code() int {
	return 403
}

func (o *CreateRepository29Forbidden) Error() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Forbidden ", 403)
}

func (o *CreateRepository29Forbidden) String() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29Forbidden ", 403)
}

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

	return nil
}

// NewCreateRepository29MethodNotAllowed creates a CreateRepository29MethodNotAllowed with default headers values
func NewCreateRepository29MethodNotAllowed() *CreateRepository29MethodNotAllowed {
	return &CreateRepository29MethodNotAllowed{}
}

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

Feature is disabled in High Availability
*/
type CreateRepository29MethodNotAllowed struct {
}

// IsSuccess returns true when this create repository29 method not allowed response has a 2xx status code
func (o *CreateRepository29MethodNotAllowed) IsSuccess() bool {
	return false
}

// IsRedirect returns true when this create repository29 method not allowed response has a 3xx status code
func (o *CreateRepository29MethodNotAllowed) IsRedirect() bool {
	return false
}

// IsClientError returns true when this create repository29 method not allowed response has a 4xx status code
func (o *CreateRepository29MethodNotAllowed) IsClientError() bool {
	return true
}

// IsServerError returns true when this create repository29 method not allowed response has a 5xx status code
func (o *CreateRepository29MethodNotAllowed) IsServerError() bool {
	return false
}

// IsCode returns true when this create repository29 method not allowed response a status code equal to that given
func (o *CreateRepository29MethodNotAllowed) IsCode(code int) bool {
	return code == 405
}

// Code gets the status code for the create repository29 method not allowed response
func (o *CreateRepository29MethodNotAllowed) Code() int {
	return 405
}

func (o *CreateRepository29MethodNotAllowed) Error() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29MethodNotAllowed ", 405)
}

func (o *CreateRepository29MethodNotAllowed) String() string {
	return fmt.Sprintf("[POST /v1/repositories/conda/proxy][%d] createRepository29MethodNotAllowed ", 405)
}

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

	return nil
}
