src/bosh-softlayer-cpi/softlayer/vps_service/client/vm/order_vm_by_filter_responses.go
func (o *OrderVMByFilterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {

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

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

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

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

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

	default:
		result := NewOrderVMByFilterDefault(response.Code())
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	}
}
func ( o * OrderVMByFilterReader ) ReadResponse ( response runtime . ClientResponse , consumer runtime . Consumer ) ( interface { } , error ) { switch response . Code ( ) { case 200 : result := NewOrderVMByFilterOK ( ) if err := result . readResponse ( response , consumer , o . formats ) ; err != nil { return nil , err } return result , nil case 404 : result := NewOrderVMByFilterNotFound ( ) if err := result . readResponse ( response , consumer , o . formats ) ; err != nil { return nil , err } return nil , result default : result := NewOrderVMByFilterDefault ( 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 .