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

// OrgDeleteMemberReader is a Reader for the OrgDeleteMember structure.
type OrgDeleteMemberReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *OrgDeleteMemberReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewOrgDeleteMemberNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 404:
		result := NewOrgDeleteMemberNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("[DELETE /orgs/{org}/members/{username}] orgDeleteMember", response, response.Code())
	}
}

// NewOrgDeleteMemberNoContent creates a OrgDeleteMemberNoContent with default headers values
func NewOrgDeleteMemberNoContent() *OrgDeleteMemberNoContent {
	return &OrgDeleteMemberNoContent{}
}

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

member removed
*/
type OrgDeleteMemberNoContent struct {
}

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

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

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

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

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

// Code gets the status code for the org delete member no content response
func (o *OrgDeleteMemberNoContent) Code() int {
	return 204
}

func (o *OrgDeleteMemberNoContent) Error() string {
	return fmt.Sprintf("[DELETE /orgs/{org}/members/{username}][%d] orgDeleteMemberNoContent", 204)
}

func (o *OrgDeleteMemberNoContent) String() string {
	return fmt.Sprintf("[DELETE /orgs/{org}/members/{username}][%d] orgDeleteMemberNoContent", 204)
}

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

	return nil
}

// NewOrgDeleteMemberNotFound creates a OrgDeleteMemberNotFound with default headers values
func NewOrgDeleteMemberNotFound() *OrgDeleteMemberNotFound {
	return &OrgDeleteMemberNotFound{}
}

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

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

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

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

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

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

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

// Code gets the status code for the org delete member not found response
func (o *OrgDeleteMemberNotFound) Code() int {
	return 404
}

func (o *OrgDeleteMemberNotFound) Error() string {
	return fmt.Sprintf("[DELETE /orgs/{org}/members/{username}][%d] orgDeleteMemberNotFound", 404)
}

func (o *OrgDeleteMemberNotFound) String() string {
	return fmt.Sprintf("[DELETE /orgs/{org}/members/{username}][%d] orgDeleteMemberNotFound", 404)
}

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

	return nil
}
