// Code generated by go-swagger; DO NOT EDIT. package admin // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "fmt" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // RemoveOrganizationMemberReader is a Reader for the RemoveOrganizationMember structure. type RemoveOrganizationMemberReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *RemoveOrganizationMemberReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewRemoveOrganizationMemberOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 401: result := NewRemoveOrganizationMemberUnauthorized() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 404: result := NewRemoveOrganizationMemberNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewRemoveOrganizationMemberInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("[POST /organization/remove] removeOrganizationMember", response, response.Code()) } } // NewRemoveOrganizationMemberOK creates a RemoveOrganizationMemberOK with default headers values func NewRemoveOrganizationMemberOK() *RemoveOrganizationMemberOK { return &RemoveOrganizationMemberOK{} } /* RemoveOrganizationMemberOK describes a response with status code 200, with default header values. member removed */ type RemoveOrganizationMemberOK struct { } // IsSuccess returns true when this remove organization member o k response has a 2xx status code func (o *RemoveOrganizationMemberOK) IsSuccess() bool { return true } // IsRedirect returns true when this remove organization member o k response has a 3xx status code func (o *RemoveOrganizationMemberOK) IsRedirect() bool { return false } // IsClientError returns true when this remove organization member o k response has a 4xx status code func (o *RemoveOrganizationMemberOK) IsClientError() bool { return false } // IsServerError returns true when this remove organization member o k response has a 5xx status code func (o *RemoveOrganizationMemberOK) IsServerError() bool { return false } // IsCode returns true when this remove organization member o k response a status code equal to that given func (o *RemoveOrganizationMemberOK) IsCode(code int) bool { return code == 200 } // Code gets the status code for the remove organization member o k response func (o *RemoveOrganizationMemberOK) Code() int { return 200 } func (o *RemoveOrganizationMemberOK) Error() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberOK ", 200) } func (o *RemoveOrganizationMemberOK) String() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberOK ", 200) } func (o *RemoveOrganizationMemberOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewRemoveOrganizationMemberUnauthorized creates a RemoveOrganizationMemberUnauthorized with default headers values func NewRemoveOrganizationMemberUnauthorized() *RemoveOrganizationMemberUnauthorized { return &RemoveOrganizationMemberUnauthorized{} } /* RemoveOrganizationMemberUnauthorized describes a response with status code 401, with default header values. unauthorized */ type RemoveOrganizationMemberUnauthorized struct { } // IsSuccess returns true when this remove organization member unauthorized response has a 2xx status code func (o *RemoveOrganizationMemberUnauthorized) IsSuccess() bool { return false } // IsRedirect returns true when this remove organization member unauthorized response has a 3xx status code func (o *RemoveOrganizationMemberUnauthorized) IsRedirect() bool { return false } // IsClientError returns true when this remove organization member unauthorized response has a 4xx status code func (o *RemoveOrganizationMemberUnauthorized) IsClientError() bool { return true } // IsServerError returns true when this remove organization member unauthorized response has a 5xx status code func (o *RemoveOrganizationMemberUnauthorized) IsServerError() bool { return false } // IsCode returns true when this remove organization member unauthorized response a status code equal to that given func (o *RemoveOrganizationMemberUnauthorized) IsCode(code int) bool { return code == 401 } // Code gets the status code for the remove organization member unauthorized response func (o *RemoveOrganizationMemberUnauthorized) Code() int { return 401 } func (o *RemoveOrganizationMemberUnauthorized) Error() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberUnauthorized ", 401) } func (o *RemoveOrganizationMemberUnauthorized) String() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberUnauthorized ", 401) } func (o *RemoveOrganizationMemberUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewRemoveOrganizationMemberNotFound creates a RemoveOrganizationMemberNotFound with default headers values func NewRemoveOrganizationMemberNotFound() *RemoveOrganizationMemberNotFound { return &RemoveOrganizationMemberNotFound{} } /* RemoveOrganizationMemberNotFound describes a response with status code 404, with default header values. not found */ type RemoveOrganizationMemberNotFound struct { } // IsSuccess returns true when this remove organization member not found response has a 2xx status code func (o *RemoveOrganizationMemberNotFound) IsSuccess() bool { return false } // IsRedirect returns true when this remove organization member not found response has a 3xx status code func (o *RemoveOrganizationMemberNotFound) IsRedirect() bool { return false } // IsClientError returns true when this remove organization member not found response has a 4xx status code func (o *RemoveOrganizationMemberNotFound) IsClientError() bool { return true } // IsServerError returns true when this remove organization member not found response has a 5xx status code func (o *RemoveOrganizationMemberNotFound) IsServerError() bool { return false } // IsCode returns true when this remove organization member not found response a status code equal to that given func (o *RemoveOrganizationMemberNotFound) IsCode(code int) bool { return code == 404 } // Code gets the status code for the remove organization member not found response func (o *RemoveOrganizationMemberNotFound) Code() int { return 404 } func (o *RemoveOrganizationMemberNotFound) Error() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberNotFound ", 404) } func (o *RemoveOrganizationMemberNotFound) String() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberNotFound ", 404) } func (o *RemoveOrganizationMemberNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewRemoveOrganizationMemberInternalServerError creates a RemoveOrganizationMemberInternalServerError with default headers values func NewRemoveOrganizationMemberInternalServerError() *RemoveOrganizationMemberInternalServerError { return &RemoveOrganizationMemberInternalServerError{} } /* RemoveOrganizationMemberInternalServerError describes a response with status code 500, with default header values. internal server error */ type RemoveOrganizationMemberInternalServerError struct { } // IsSuccess returns true when this remove organization member internal server error response has a 2xx status code func (o *RemoveOrganizationMemberInternalServerError) IsSuccess() bool { return false } // IsRedirect returns true when this remove organization member internal server error response has a 3xx status code func (o *RemoveOrganizationMemberInternalServerError) IsRedirect() bool { return false } // IsClientError returns true when this remove organization member internal server error response has a 4xx status code func (o *RemoveOrganizationMemberInternalServerError) IsClientError() bool { return false } // IsServerError returns true when this remove organization member internal server error response has a 5xx status code func (o *RemoveOrganizationMemberInternalServerError) IsServerError() bool { return true } // IsCode returns true when this remove organization member internal server error response a status code equal to that given func (o *RemoveOrganizationMemberInternalServerError) IsCode(code int) bool { return code == 500 } // Code gets the status code for the remove organization member internal server error response func (o *RemoveOrganizationMemberInternalServerError) Code() int { return 500 } func (o *RemoveOrganizationMemberInternalServerError) Error() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberInternalServerError ", 500) } func (o *RemoveOrganizationMemberInternalServerError) String() string { return fmt.Sprintf("[POST /organization/remove][%d] removeOrganizationMemberInternalServerError ", 500) } func (o *RemoveOrganizationMemberInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } /* RemoveOrganizationMemberBody remove organization member body swagger:model RemoveOrganizationMemberBody */ type RemoveOrganizationMemberBody struct { // email Email string `json:"email,omitempty"` // token Token string `json:"token,omitempty"` } // Validate validates this remove organization member body func (o *RemoveOrganizationMemberBody) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this remove organization member body based on context it is used func (o *RemoveOrganizationMemberBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (o *RemoveOrganizationMemberBody) MarshalBinary() ([]byte, error) { if o == nil { return nil, nil } return swag.WriteJSON(o) } // UnmarshalBinary interface implementation func (o *RemoveOrganizationMemberBody) UnmarshalBinary(b []byte) error { var res RemoveOrganizationMemberBody if err := swag.ReadJSON(b, &res); err != nil { return err } *o = res return nil }