func (o *FindVmsByFiltersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {

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

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

	default:
		result := NewFindVmsByFiltersDefault(response.Code())
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	}
}
func (o *FindVmsByFiltersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {

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

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

	default:
		result := NewFindVmsByFiltersDefault(response.Code())
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	}
}
func ( o * FindVmsByFiltersReader ) ReadResponse ( response runtime . ClientResponse , consumer runtime . Consumer ) ( interface { } , error ) { switch response . Code ( ) { case 200 : result := NewFindVmsByFiltersOK ( ) if err := result . readResponse ( response , consumer , o . formats ) ; err != nil { return nil , err } return result , nil case 404 : result := NewFindVmsByFiltersNotFound ( ) if err := result . readResponse ( response , consumer , o . formats ) ; err != nil { return nil , err } return nil , result default : result := NewFindVmsByFiltersDefault ( response . Code ( ) ) if err := result . readResponse ( response , consumer , o . formats ) ; err != nil { return nil , err } return nil , result } }
// ReadResponse reads a server response into the received o.
ReadResponse reads a server response into the received o .