// ReadResponse reads a server response into the recieved o. func (o *PutFilesFileidentifierReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPutFilesFileidentifierOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 201: result := NewPutFilesFileidentifierCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 500: result := NewPutFilesFileidentifierInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewPutFilesFileidentifierDefault(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 recieved o. func (o *GetVersionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetVersionsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 501: result := NewGetVersionsNotImplemented() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewGetVersionsDefault(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 recieved o. func (o *PostTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewPostTagsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 409: result := NewPostTagsConflict() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewPostTagsDefault(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 recieved o. func (o *GetServicePointInformationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetServicePointInformationOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 400: result := NewGetServicePointInformationBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewGetServicePointInformationInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) } }
// ReadResponse reads a server response into the recieved o. func (o *PostNodesIdentifierWorkflowsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewPostNodesIdentifierWorkflowsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 404: result := NewPostNodesIdentifierWorkflowsNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewPostNodesIdentifierWorkflowsDefault(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 recieved o. func (o *PostSkusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPostSkusOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 500: result := NewPostSkusInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewPostSkusDefault(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 recieved o. func (o *UpdateTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewUpdateTaskOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 422: result := NewUpdateTaskUnprocessableEntity() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewUpdateTaskDefault(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 recieved o. func (o *FindNearestByCoordinatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFindNearestByCoordinatesOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 400: result := NewFindNearestByCoordinatesBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewFindNearestByCoordinatesInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) } }
// ReadResponse reads a server response into the recieved o. func (o *DeleteFilesFileidentifierReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 204: result := NewDeleteFilesFileidentifierNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 404: result := NewDeleteFilesFileidentifierNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewDeleteFilesFileidentifierInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewDeleteFilesFileidentifierDefault(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 recieved o. func (o *DeleteNodesIdentifierWorkflowsActiveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewDeleteNodesIdentifierWorkflowsActiveOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 404: result := NewDeleteNodesIdentifierWorkflowsActiveNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewDeleteNodesIdentifierWorkflowsActiveDefault(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 recieved o. func (o *GetPollersIdentifierReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetPollersIdentifierOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 404: result := NewGetPollersIdentifierNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewGetPollersIdentifierDefault(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 recieved o. func (o *DeleteNodesMacaddressDhcpWhitelistReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 204: result := NewDeleteNodesMacaddressDhcpWhitelistNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 404: result := NewDeleteNodesMacaddressDhcpWhitelistNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewDeleteNodesMacaddressDhcpWhitelistDefault(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 recieved o. func (o *GetNodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetNodesOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 400: result := NewGetNodesBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewGetNodesDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result } }
func (o *PostRemoteAPIJGroupFetchBlockedAccountsWithEmailIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJGroupChangeMemberRolesIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *DeleteNodesIdentifierWorkflowsActiveOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJGroupFetchPermissionSetOrDefaultIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *GetWorkflowsLibraryInjectableNameOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJRewardCampaignUpdateIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *DeleteMetadataForSubscriptionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostNodesMacaddressDhcpWhitelistCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJComputeStackModifyIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PutFilesFileidentifierCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PutTemplatesLibraryIdentifierOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJMachineSetProvisionerIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJTagFetchLastInteractorsIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJTagFetchFollowingWithRelationshipIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJStackTemplateForceStacksToReinitIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *GetCatalogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }
func (o *PostRemoteAPIJAccountMarkUserAsExemptIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil }