Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateMTOServiceItem(params *CreateMTOServiceItemParams, opts ...ClientOption) (*CreateMTOServiceItemOK, error)
- func (a *Client) CreateServiceRequestDocumentUpload(params *CreateServiceRequestDocumentUploadParams, opts ...ClientOption) (*CreateServiceRequestDocumentUploadCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateMTOServiceItem(params *UpdateMTOServiceItemParams, opts ...ClientOption) (*UpdateMTOServiceItemOK, error)
- type ClientOption
- type ClientService
- type CreateMTOServiceItemBadRequest
- func (o *CreateMTOServiceItemBadRequest) Code() int
- func (o *CreateMTOServiceItemBadRequest) Error() string
- func (o *CreateMTOServiceItemBadRequest) GetPayload() *primemessages.ClientError
- func (o *CreateMTOServiceItemBadRequest) IsClientError() bool
- func (o *CreateMTOServiceItemBadRequest) IsCode(code int) bool
- func (o *CreateMTOServiceItemBadRequest) IsRedirect() bool
- func (o *CreateMTOServiceItemBadRequest) IsServerError() bool
- func (o *CreateMTOServiceItemBadRequest) IsSuccess() bool
- func (o *CreateMTOServiceItemBadRequest) String() string
- type CreateMTOServiceItemConflict
- func (o *CreateMTOServiceItemConflict) Code() int
- func (o *CreateMTOServiceItemConflict) Error() string
- func (o *CreateMTOServiceItemConflict) GetPayload() *primemessages.ClientError
- func (o *CreateMTOServiceItemConflict) IsClientError() bool
- func (o *CreateMTOServiceItemConflict) IsCode(code int) bool
- func (o *CreateMTOServiceItemConflict) IsRedirect() bool
- func (o *CreateMTOServiceItemConflict) IsServerError() bool
- func (o *CreateMTOServiceItemConflict) IsSuccess() bool
- func (o *CreateMTOServiceItemConflict) String() string
- type CreateMTOServiceItemForbidden
- func (o *CreateMTOServiceItemForbidden) Code() int
- func (o *CreateMTOServiceItemForbidden) Error() string
- func (o *CreateMTOServiceItemForbidden) GetPayload() *primemessages.ClientError
- func (o *CreateMTOServiceItemForbidden) IsClientError() bool
- func (o *CreateMTOServiceItemForbidden) IsCode(code int) bool
- func (o *CreateMTOServiceItemForbidden) IsRedirect() bool
- func (o *CreateMTOServiceItemForbidden) IsServerError() bool
- func (o *CreateMTOServiceItemForbidden) IsSuccess() bool
- func (o *CreateMTOServiceItemForbidden) String() string
- type CreateMTOServiceItemInternalServerError
- func (o *CreateMTOServiceItemInternalServerError) Code() int
- func (o *CreateMTOServiceItemInternalServerError) Error() string
- func (o *CreateMTOServiceItemInternalServerError) GetPayload() *primemessages.Error
- func (o *CreateMTOServiceItemInternalServerError) IsClientError() bool
- func (o *CreateMTOServiceItemInternalServerError) IsCode(code int) bool
- func (o *CreateMTOServiceItemInternalServerError) IsRedirect() bool
- func (o *CreateMTOServiceItemInternalServerError) IsServerError() bool
- func (o *CreateMTOServiceItemInternalServerError) IsSuccess() bool
- func (o *CreateMTOServiceItemInternalServerError) String() string
- type CreateMTOServiceItemNotFound
- func (o *CreateMTOServiceItemNotFound) Code() int
- func (o *CreateMTOServiceItemNotFound) Error() string
- func (o *CreateMTOServiceItemNotFound) GetPayload() *primemessages.ClientError
- func (o *CreateMTOServiceItemNotFound) IsClientError() bool
- func (o *CreateMTOServiceItemNotFound) IsCode(code int) bool
- func (o *CreateMTOServiceItemNotFound) IsRedirect() bool
- func (o *CreateMTOServiceItemNotFound) IsServerError() bool
- func (o *CreateMTOServiceItemNotFound) IsSuccess() bool
- func (o *CreateMTOServiceItemNotFound) String() string
- type CreateMTOServiceItemOK
- func (o *CreateMTOServiceItemOK) Code() int
- func (o *CreateMTOServiceItemOK) Error() string
- func (o *CreateMTOServiceItemOK) GetPayload() []primemessages.MTOServiceItem
- func (o *CreateMTOServiceItemOK) IsClientError() bool
- func (o *CreateMTOServiceItemOK) IsCode(code int) bool
- func (o *CreateMTOServiceItemOK) IsRedirect() bool
- func (o *CreateMTOServiceItemOK) IsServerError() bool
- func (o *CreateMTOServiceItemOK) IsSuccess() bool
- func (o *CreateMTOServiceItemOK) String() string
- type CreateMTOServiceItemParams
- func NewCreateMTOServiceItemParams() *CreateMTOServiceItemParams
- func NewCreateMTOServiceItemParamsWithContext(ctx context.Context) *CreateMTOServiceItemParams
- func NewCreateMTOServiceItemParamsWithHTTPClient(client *http.Client) *CreateMTOServiceItemParams
- func NewCreateMTOServiceItemParamsWithTimeout(timeout time.Duration) *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) SetBody(body primemessages.MTOServiceItem)
- func (o *CreateMTOServiceItemParams) SetContext(ctx context.Context)
- func (o *CreateMTOServiceItemParams) SetDefaults()
- func (o *CreateMTOServiceItemParams) SetHTTPClient(client *http.Client)
- func (o *CreateMTOServiceItemParams) SetTimeout(timeout time.Duration)
- func (o *CreateMTOServiceItemParams) WithBody(body primemessages.MTOServiceItem) *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) WithContext(ctx context.Context) *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) WithDefaults() *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) WithHTTPClient(client *http.Client) *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) WithTimeout(timeout time.Duration) *CreateMTOServiceItemParams
- func (o *CreateMTOServiceItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMTOServiceItemReader
- type CreateMTOServiceItemUnauthorized
- func (o *CreateMTOServiceItemUnauthorized) Code() int
- func (o *CreateMTOServiceItemUnauthorized) Error() string
- func (o *CreateMTOServiceItemUnauthorized) GetPayload() *primemessages.ClientError
- func (o *CreateMTOServiceItemUnauthorized) IsClientError() bool
- func (o *CreateMTOServiceItemUnauthorized) IsCode(code int) bool
- func (o *CreateMTOServiceItemUnauthorized) IsRedirect() bool
- func (o *CreateMTOServiceItemUnauthorized) IsServerError() bool
- func (o *CreateMTOServiceItemUnauthorized) IsSuccess() bool
- func (o *CreateMTOServiceItemUnauthorized) String() string
- type CreateMTOServiceItemUnprocessableEntity
- func (o *CreateMTOServiceItemUnprocessableEntity) Code() int
- func (o *CreateMTOServiceItemUnprocessableEntity) Error() string
- func (o *CreateMTOServiceItemUnprocessableEntity) GetPayload() *primemessages.ValidationError
- func (o *CreateMTOServiceItemUnprocessableEntity) IsClientError() bool
- func (o *CreateMTOServiceItemUnprocessableEntity) IsCode(code int) bool
- func (o *CreateMTOServiceItemUnprocessableEntity) IsRedirect() bool
- func (o *CreateMTOServiceItemUnprocessableEntity) IsServerError() bool
- func (o *CreateMTOServiceItemUnprocessableEntity) IsSuccess() bool
- func (o *CreateMTOServiceItemUnprocessableEntity) String() string
- type CreateServiceRequestDocumentUploadBadRequest
- func (o *CreateServiceRequestDocumentUploadBadRequest) Code() int
- func (o *CreateServiceRequestDocumentUploadBadRequest) Error() string
- func (o *CreateServiceRequestDocumentUploadBadRequest) GetPayload() *primemessages.ClientError
- func (o *CreateServiceRequestDocumentUploadBadRequest) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadBadRequest) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadBadRequest) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadBadRequest) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadBadRequest) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadBadRequest) String() string
- type CreateServiceRequestDocumentUploadCreated
- func (o *CreateServiceRequestDocumentUploadCreated) Code() int
- func (o *CreateServiceRequestDocumentUploadCreated) Error() string
- func (o *CreateServiceRequestDocumentUploadCreated) GetPayload() *primemessages.UploadWithOmissions
- func (o *CreateServiceRequestDocumentUploadCreated) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadCreated) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadCreated) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadCreated) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadCreated) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadCreated) String() string
- type CreateServiceRequestDocumentUploadForbidden
- func (o *CreateServiceRequestDocumentUploadForbidden) Code() int
- func (o *CreateServiceRequestDocumentUploadForbidden) Error() string
- func (o *CreateServiceRequestDocumentUploadForbidden) GetPayload() *primemessages.ClientError
- func (o *CreateServiceRequestDocumentUploadForbidden) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadForbidden) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadForbidden) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadForbidden) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadForbidden) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadForbidden) String() string
- type CreateServiceRequestDocumentUploadInternalServerError
- func (o *CreateServiceRequestDocumentUploadInternalServerError) Code() int
- func (o *CreateServiceRequestDocumentUploadInternalServerError) Error() string
- func (o *CreateServiceRequestDocumentUploadInternalServerError) GetPayload() *primemessages.Error
- func (o *CreateServiceRequestDocumentUploadInternalServerError) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadInternalServerError) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadInternalServerError) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadInternalServerError) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadInternalServerError) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadInternalServerError) String() string
- type CreateServiceRequestDocumentUploadNotFound
- func (o *CreateServiceRequestDocumentUploadNotFound) Code() int
- func (o *CreateServiceRequestDocumentUploadNotFound) Error() string
- func (o *CreateServiceRequestDocumentUploadNotFound) GetPayload() *primemessages.ClientError
- func (o *CreateServiceRequestDocumentUploadNotFound) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadNotFound) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadNotFound) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadNotFound) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadNotFound) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadNotFound) String() string
- type CreateServiceRequestDocumentUploadParams
- func NewCreateServiceRequestDocumentUploadParams() *CreateServiceRequestDocumentUploadParams
- func NewCreateServiceRequestDocumentUploadParamsWithContext(ctx context.Context) *CreateServiceRequestDocumentUploadParams
- func NewCreateServiceRequestDocumentUploadParamsWithHTTPClient(client *http.Client) *CreateServiceRequestDocumentUploadParams
- func NewCreateServiceRequestDocumentUploadParamsWithTimeout(timeout time.Duration) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) SetContext(ctx context.Context)
- func (o *CreateServiceRequestDocumentUploadParams) SetDefaults()
- func (o *CreateServiceRequestDocumentUploadParams) SetFile(file runtime.NamedReadCloser)
- func (o *CreateServiceRequestDocumentUploadParams) SetHTTPClient(client *http.Client)
- func (o *CreateServiceRequestDocumentUploadParams) SetMtoServiceItemID(mtoServiceItemID string)
- func (o *CreateServiceRequestDocumentUploadParams) SetTimeout(timeout time.Duration)
- func (o *CreateServiceRequestDocumentUploadParams) WithContext(ctx context.Context) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WithDefaults() *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WithFile(file runtime.NamedReadCloser) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WithHTTPClient(client *http.Client) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WithMtoServiceItemID(mtoServiceItemID string) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WithTimeout(timeout time.Duration) *CreateServiceRequestDocumentUploadParams
- func (o *CreateServiceRequestDocumentUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServiceRequestDocumentUploadReader
- type CreateServiceRequestDocumentUploadUnauthorized
- func (o *CreateServiceRequestDocumentUploadUnauthorized) Code() int
- func (o *CreateServiceRequestDocumentUploadUnauthorized) Error() string
- func (o *CreateServiceRequestDocumentUploadUnauthorized) GetPayload() *primemessages.ClientError
- func (o *CreateServiceRequestDocumentUploadUnauthorized) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadUnauthorized) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadUnauthorized) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadUnauthorized) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadUnauthorized) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadUnauthorized) String() string
- type CreateServiceRequestDocumentUploadUnprocessableEntity
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) Code() int
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) Error() string
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) GetPayload() *primemessages.ValidationError
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsClientError() bool
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsCode(code int) bool
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsRedirect() bool
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsServerError() bool
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsSuccess() bool
- func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) String() string
- type UpdateMTOServiceItemBadRequest
- func (o *UpdateMTOServiceItemBadRequest) Code() int
- func (o *UpdateMTOServiceItemBadRequest) Error() string
- func (o *UpdateMTOServiceItemBadRequest) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemBadRequest) IsClientError() bool
- func (o *UpdateMTOServiceItemBadRequest) IsCode(code int) bool
- func (o *UpdateMTOServiceItemBadRequest) IsRedirect() bool
- func (o *UpdateMTOServiceItemBadRequest) IsServerError() bool
- func (o *UpdateMTOServiceItemBadRequest) IsSuccess() bool
- func (o *UpdateMTOServiceItemBadRequest) String() string
- type UpdateMTOServiceItemConflict
- func (o *UpdateMTOServiceItemConflict) Code() int
- func (o *UpdateMTOServiceItemConflict) Error() string
- func (o *UpdateMTOServiceItemConflict) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemConflict) IsClientError() bool
- func (o *UpdateMTOServiceItemConflict) IsCode(code int) bool
- func (o *UpdateMTOServiceItemConflict) IsRedirect() bool
- func (o *UpdateMTOServiceItemConflict) IsServerError() bool
- func (o *UpdateMTOServiceItemConflict) IsSuccess() bool
- func (o *UpdateMTOServiceItemConflict) String() string
- type UpdateMTOServiceItemForbidden
- func (o *UpdateMTOServiceItemForbidden) Code() int
- func (o *UpdateMTOServiceItemForbidden) Error() string
- func (o *UpdateMTOServiceItemForbidden) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemForbidden) IsClientError() bool
- func (o *UpdateMTOServiceItemForbidden) IsCode(code int) bool
- func (o *UpdateMTOServiceItemForbidden) IsRedirect() bool
- func (o *UpdateMTOServiceItemForbidden) IsServerError() bool
- func (o *UpdateMTOServiceItemForbidden) IsSuccess() bool
- func (o *UpdateMTOServiceItemForbidden) String() string
- type UpdateMTOServiceItemInternalServerError
- func (o *UpdateMTOServiceItemInternalServerError) Code() int
- func (o *UpdateMTOServiceItemInternalServerError) Error() string
- func (o *UpdateMTOServiceItemInternalServerError) GetPayload() *primemessages.Error
- func (o *UpdateMTOServiceItemInternalServerError) IsClientError() bool
- func (o *UpdateMTOServiceItemInternalServerError) IsCode(code int) bool
- func (o *UpdateMTOServiceItemInternalServerError) IsRedirect() bool
- func (o *UpdateMTOServiceItemInternalServerError) IsServerError() bool
- func (o *UpdateMTOServiceItemInternalServerError) IsSuccess() bool
- func (o *UpdateMTOServiceItemInternalServerError) String() string
- type UpdateMTOServiceItemNotFound
- func (o *UpdateMTOServiceItemNotFound) Code() int
- func (o *UpdateMTOServiceItemNotFound) Error() string
- func (o *UpdateMTOServiceItemNotFound) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemNotFound) IsClientError() bool
- func (o *UpdateMTOServiceItemNotFound) IsCode(code int) bool
- func (o *UpdateMTOServiceItemNotFound) IsRedirect() bool
- func (o *UpdateMTOServiceItemNotFound) IsServerError() bool
- func (o *UpdateMTOServiceItemNotFound) IsSuccess() bool
- func (o *UpdateMTOServiceItemNotFound) String() string
- type UpdateMTOServiceItemOK
- func (o *UpdateMTOServiceItemOK) Code() int
- func (o *UpdateMTOServiceItemOK) Error() string
- func (o *UpdateMTOServiceItemOK) GetPayload() primemessages.MTOServiceItem
- func (o *UpdateMTOServiceItemOK) IsClientError() bool
- func (o *UpdateMTOServiceItemOK) IsCode(code int) bool
- func (o *UpdateMTOServiceItemOK) IsRedirect() bool
- func (o *UpdateMTOServiceItemOK) IsServerError() bool
- func (o *UpdateMTOServiceItemOK) IsSuccess() bool
- func (o *UpdateMTOServiceItemOK) String() string
- type UpdateMTOServiceItemParams
- func NewUpdateMTOServiceItemParams() *UpdateMTOServiceItemParams
- func NewUpdateMTOServiceItemParamsWithContext(ctx context.Context) *UpdateMTOServiceItemParams
- func NewUpdateMTOServiceItemParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemParams
- func NewUpdateMTOServiceItemParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) SetBody(body primemessages.UpdateMTOServiceItem)
- func (o *UpdateMTOServiceItemParams) SetContext(ctx context.Context)
- func (o *UpdateMTOServiceItemParams) SetDefaults()
- func (o *UpdateMTOServiceItemParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMTOServiceItemParams) SetIfMatch(ifMatch string)
- func (o *UpdateMTOServiceItemParams) SetMtoServiceItemID(mtoServiceItemID string)
- func (o *UpdateMTOServiceItemParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMTOServiceItemParams) WithBody(body primemessages.UpdateMTOServiceItem) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithContext(ctx context.Context) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithDefaults() *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithHTTPClient(client *http.Client) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithIfMatch(ifMatch string) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WithTimeout(timeout time.Duration) *UpdateMTOServiceItemParams
- func (o *UpdateMTOServiceItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMTOServiceItemPreconditionFailed
- func (o *UpdateMTOServiceItemPreconditionFailed) Code() int
- func (o *UpdateMTOServiceItemPreconditionFailed) Error() string
- func (o *UpdateMTOServiceItemPreconditionFailed) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemPreconditionFailed) IsClientError() bool
- func (o *UpdateMTOServiceItemPreconditionFailed) IsCode(code int) bool
- func (o *UpdateMTOServiceItemPreconditionFailed) IsRedirect() bool
- func (o *UpdateMTOServiceItemPreconditionFailed) IsServerError() bool
- func (o *UpdateMTOServiceItemPreconditionFailed) IsSuccess() bool
- func (o *UpdateMTOServiceItemPreconditionFailed) String() string
- type UpdateMTOServiceItemReader
- type UpdateMTOServiceItemUnauthorized
- func (o *UpdateMTOServiceItemUnauthorized) Code() int
- func (o *UpdateMTOServiceItemUnauthorized) Error() string
- func (o *UpdateMTOServiceItemUnauthorized) GetPayload() *primemessages.ClientError
- func (o *UpdateMTOServiceItemUnauthorized) IsClientError() bool
- func (o *UpdateMTOServiceItemUnauthorized) IsCode(code int) bool
- func (o *UpdateMTOServiceItemUnauthorized) IsRedirect() bool
- func (o *UpdateMTOServiceItemUnauthorized) IsServerError() bool
- func (o *UpdateMTOServiceItemUnauthorized) IsSuccess() bool
- func (o *UpdateMTOServiceItemUnauthorized) String() string
- type UpdateMTOServiceItemUnprocessableEntity
- func (o *UpdateMTOServiceItemUnprocessableEntity) Code() int
- func (o *UpdateMTOServiceItemUnprocessableEntity) Error() string
- func (o *UpdateMTOServiceItemUnprocessableEntity) GetPayload() *primemessages.ValidationError
- func (o *UpdateMTOServiceItemUnprocessableEntity) IsClientError() bool
- func (o *UpdateMTOServiceItemUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateMTOServiceItemUnprocessableEntity) IsRedirect() bool
- func (o *UpdateMTOServiceItemUnprocessableEntity) IsServerError() bool
- func (o *UpdateMTOServiceItemUnprocessableEntity) IsSuccess() bool
- func (o *UpdateMTOServiceItemUnprocessableEntity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for mto service item API
func (*Client) CreateMTOServiceItem ¶
func (a *Client) CreateMTOServiceItem(params *CreateMTOServiceItemParams, opts ...ClientOption) (*CreateMTOServiceItemOK, error)
CreateMTOServiceItem creates m t o service item Creates one or more MTOServiceItems. Not all service items may be created, please see details below.
This endpoint supports different body definitions. In the modelType field below, select the modelType corresponding
to the service item you wish to create and the documentation will update with the new definition.
Upon creation these items are associated with a Move Task Order and an MTO Shipment. The request must include UUIDs for the MTO and MTO Shipment connected to this service item. Some service item types require additional service items to be autogenerated when added - all created service items, autogenerated included, will be returned in the response.
To update a service item, please use [updateMTOServiceItem](#operation/updateMTOServiceItem) endpoint.
---
**`MTOServiceItemOriginSIT`**
MTOServiceItemOriginSIT is a subtype of MTOServiceItem.
This model type describes a domestic origin SIT service item. Items can be created using this model type with the following codes:
**DOFSIT**
**1st day origin SIT service item**. When a DOFSIT is requested, the API will auto-create the following group of service items:
- DOFSIT - Domestic origin 1st day SIT
- DOASIT - Domestic origin Additional day SIT
- DOPSIT - Domestic origin SIT pickup
- DOSFSC - Domestic origin SIT fuel surcharge
**DOASIT**
**Addt'l days origin SIT service item**. This represents an additional day of storage for the same item. Additional DOASIT service items can be created and added to an existing shipment that **includes a DOFSIT service item**.
---
**`MTOServiceItemDestSIT`**
MTOServiceItemDestSIT is a subtype of MTOServiceItem.
This model type describes a domestic destination SIT service item. Items can be created using this model type with the following codes:
**DDFSIT**
**1st day destination SIT service item**.
These additional fields are optional for creating a DDFSIT:
- `firstAvailableDeliveryDate1`
- string <date>
- First available date that Prime can deliver SIT service item.
- firstAvailableDeliveryDate1, dateOfContact1, and timeMilitary1 are required together
- `dateOfContact1`
- string <date>
- Date of attempted contact by the prime corresponding to `timeMilitary1`
- dateOfContact1, timeMilitary1, and firstAvailableDeliveryDate1 are required together
- `timeMilitary1`
- string\d{4}Z
- Time of attempted contact corresponding to `dateOfContact1`, in military format.
- timeMilitary1, dateOfContact1, and firstAvailableDeliveryDate1 are required together
- `firstAvailableDeliveryDate2`
- string <date>
- Second available date that Prime can deliver SIT service item.
- firstAvailableDeliveryDate2, dateOfContact2, and timeMilitary2 are required together
- `dateOfContact2`
- string <date>
- Date of attempted contact delivery by the prime corresponding to `timeMilitary2`
- dateOfContact2, timeMilitary2, and firstAvailableDeliveryDate2 are required together
- `timeMilitary2`
- string\d{4}Z
- Time of attempted contact corresponding to `dateOfContact2`, in military format.
- timeMilitary2, dateOfContact2, and firstAvailableDeliveryDate2 are required together
When a DDFSIT is requested, the API will auto-create the following group of service items:
- DDFSIT - Domestic destination 1st day SIT
- DDASIT - Domestic destination Additional day SIT
- DDDSIT - Domestic destination SIT delivery
- DDSFSC - Domestic destination SIT fuel surcharge
**NOTE** When providing the `sitEntryDate` value in the payload, please ensure that the date is not BEFORE `firstAvailableDeliveryDate1` or `firstAvailableDeliveryDate2`. If it is, you will receive an error response.
**DDASIT**
**Addt'l days destination SIT service item**. This represents an additional day of storage for the same item. Additional DDASIT service items can be created and added to an existing shipment that **includes a DDFSIT service item**.
func (*Client) CreateServiceRequestDocumentUpload ¶
func (a *Client) CreateServiceRequestDocumentUpload(params *CreateServiceRequestDocumentUploadParams, opts ...ClientOption) (*CreateServiceRequestDocumentUploadCreated, error)
CreateServiceRequestDocumentUpload creates service request document upload ### Functionality
This endpoint **uploads** a Service Request document for a ServiceItem.
The ServiceItem should already exist.
ServiceItems are created with the [createMTOServiceItem](#operation/createMTOServiceItem) endpoint.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateMTOServiceItem ¶
func (a *Client) UpdateMTOServiceItem(params *UpdateMTOServiceItemParams, opts ...ClientOption) (*UpdateMTOServiceItemOK, error)
UpdateMTOServiceItem updates m t o service item Updates MTOServiceItems after creation. Not all service items or fields may be updated, please see details below.
This endpoint supports different body definitions. In the modelType field below, select the modelType corresponding
to the service item you wish to update and the documentation will update with the new definition.
* Addresses: To update a destination service item's SIT destination final address, update the shipment destination address. For approved shipments, please use [updateShipmentDestinationAddress](#mtoShipment/updateShipmentDestinationAddress). For shipments not yet approved, please use [updateMTOShipmentAddress](#mtoShipment/updateMTOShipmentAddress).
* SIT Service Items: Take note that when updating `sitCustomerContacted`, `sitDepartureDate`, or `sitRequestedDelivery`, we want those to be updated on `DOASIT` (for origin SIT) and `DDASIT` (for destination SIT). If updating those values in other service items, the office users will not have as much attention to those values.
To create a service item, please use [createMTOServiceItem](#mtoServiceItem/createMTOServiceItem)) endpoint.
* Resubmitting rejected SIT service items: This endpoint will handle the logic of changing the status of rejected SIT service items from REJECTED to SUBMITTED. Please provide the `requestedApprovalsRequestedStatus: true` when resubmitting as this will give attention to the TOO to review the resubmitted SIT service item. Another note, `updateReason` must have a different value than the current `reason` value on the service item. If this value is not updated, then an error will be sent back.
The following SIT service items can be resubmitted following a rejection: - DDASIT - DDDSIT - DDFSIT - DOASIT - DOPSIT - DOFSIT - DDSFSC - DOSFSC
At a MINIMUM, the payload for resubmitting a rejected SIT service item must look like this: ```json
{ "reServiceCode": "DDFSIT", "updateReason": "A reason that differs from the previous reason", "modelType": "UpdateMTOServiceItemSIT", "requestApprovalsRequestedStatus": true }
```
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateMTOServiceItem(params *CreateMTOServiceItemParams, opts ...ClientOption) (*CreateMTOServiceItemOK, error) CreateServiceRequestDocumentUpload(params *CreateServiceRequestDocumentUploadParams, opts ...ClientOption) (*CreateServiceRequestDocumentUploadCreated, error) UpdateMTOServiceItem(params *UpdateMTOServiceItemParams, opts ...ClientOption) (*UpdateMTOServiceItemOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new mto service item API client.
type CreateMTOServiceItemBadRequest ¶
type CreateMTOServiceItemBadRequest struct {
Payload *primemessages.ClientError
}
CreateMTOServiceItemBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewCreateMTOServiceItemBadRequest ¶
func NewCreateMTOServiceItemBadRequest() *CreateMTOServiceItemBadRequest
NewCreateMTOServiceItemBadRequest creates a CreateMTOServiceItemBadRequest with default headers values
func (*CreateMTOServiceItemBadRequest) Code ¶
func (o *CreateMTOServiceItemBadRequest) Code() int
Code gets the status code for the create m t o service item bad request response
func (*CreateMTOServiceItemBadRequest) Error ¶
func (o *CreateMTOServiceItemBadRequest) Error() string
func (*CreateMTOServiceItemBadRequest) GetPayload ¶
func (o *CreateMTOServiceItemBadRequest) GetPayload() *primemessages.ClientError
func (*CreateMTOServiceItemBadRequest) IsClientError ¶
func (o *CreateMTOServiceItemBadRequest) IsClientError() bool
IsClientError returns true when this create m t o service item bad request response has a 4xx status code
func (*CreateMTOServiceItemBadRequest) IsCode ¶
func (o *CreateMTOServiceItemBadRequest) IsCode(code int) bool
IsCode returns true when this create m t o service item bad request response a status code equal to that given
func (*CreateMTOServiceItemBadRequest) IsRedirect ¶
func (o *CreateMTOServiceItemBadRequest) IsRedirect() bool
IsRedirect returns true when this create m t o service item bad request response has a 3xx status code
func (*CreateMTOServiceItemBadRequest) IsServerError ¶
func (o *CreateMTOServiceItemBadRequest) IsServerError() bool
IsServerError returns true when this create m t o service item bad request response has a 5xx status code
func (*CreateMTOServiceItemBadRequest) IsSuccess ¶
func (o *CreateMTOServiceItemBadRequest) IsSuccess() bool
IsSuccess returns true when this create m t o service item bad request response has a 2xx status code
func (*CreateMTOServiceItemBadRequest) String ¶
func (o *CreateMTOServiceItemBadRequest) String() string
type CreateMTOServiceItemConflict ¶
type CreateMTOServiceItemConflict struct {
Payload *primemessages.ClientError
}
CreateMTOServiceItemConflict describes a response with status code 409, with default header values.
The request could not be processed because of conflict in the current state of the resource.
func NewCreateMTOServiceItemConflict ¶
func NewCreateMTOServiceItemConflict() *CreateMTOServiceItemConflict
NewCreateMTOServiceItemConflict creates a CreateMTOServiceItemConflict with default headers values
func (*CreateMTOServiceItemConflict) Code ¶
func (o *CreateMTOServiceItemConflict) Code() int
Code gets the status code for the create m t o service item conflict response
func (*CreateMTOServiceItemConflict) Error ¶
func (o *CreateMTOServiceItemConflict) Error() string
func (*CreateMTOServiceItemConflict) GetPayload ¶
func (o *CreateMTOServiceItemConflict) GetPayload() *primemessages.ClientError
func (*CreateMTOServiceItemConflict) IsClientError ¶
func (o *CreateMTOServiceItemConflict) IsClientError() bool
IsClientError returns true when this create m t o service item conflict response has a 4xx status code
func (*CreateMTOServiceItemConflict) IsCode ¶
func (o *CreateMTOServiceItemConflict) IsCode(code int) bool
IsCode returns true when this create m t o service item conflict response a status code equal to that given
func (*CreateMTOServiceItemConflict) IsRedirect ¶
func (o *CreateMTOServiceItemConflict) IsRedirect() bool
IsRedirect returns true when this create m t o service item conflict response has a 3xx status code
func (*CreateMTOServiceItemConflict) IsServerError ¶
func (o *CreateMTOServiceItemConflict) IsServerError() bool
IsServerError returns true when this create m t o service item conflict response has a 5xx status code
func (*CreateMTOServiceItemConflict) IsSuccess ¶
func (o *CreateMTOServiceItemConflict) IsSuccess() bool
IsSuccess returns true when this create m t o service item conflict response has a 2xx status code
func (*CreateMTOServiceItemConflict) String ¶
func (o *CreateMTOServiceItemConflict) String() string
type CreateMTOServiceItemForbidden ¶
type CreateMTOServiceItemForbidden struct {
Payload *primemessages.ClientError
}
CreateMTOServiceItemForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewCreateMTOServiceItemForbidden ¶
func NewCreateMTOServiceItemForbidden() *CreateMTOServiceItemForbidden
NewCreateMTOServiceItemForbidden creates a CreateMTOServiceItemForbidden with default headers values
func (*CreateMTOServiceItemForbidden) Code ¶
func (o *CreateMTOServiceItemForbidden) Code() int
Code gets the status code for the create m t o service item forbidden response
func (*CreateMTOServiceItemForbidden) Error ¶
func (o *CreateMTOServiceItemForbidden) Error() string
func (*CreateMTOServiceItemForbidden) GetPayload ¶
func (o *CreateMTOServiceItemForbidden) GetPayload() *primemessages.ClientError
func (*CreateMTOServiceItemForbidden) IsClientError ¶
func (o *CreateMTOServiceItemForbidden) IsClientError() bool
IsClientError returns true when this create m t o service item forbidden response has a 4xx status code
func (*CreateMTOServiceItemForbidden) IsCode ¶
func (o *CreateMTOServiceItemForbidden) IsCode(code int) bool
IsCode returns true when this create m t o service item forbidden response a status code equal to that given
func (*CreateMTOServiceItemForbidden) IsRedirect ¶
func (o *CreateMTOServiceItemForbidden) IsRedirect() bool
IsRedirect returns true when this create m t o service item forbidden response has a 3xx status code
func (*CreateMTOServiceItemForbidden) IsServerError ¶
func (o *CreateMTOServiceItemForbidden) IsServerError() bool
IsServerError returns true when this create m t o service item forbidden response has a 5xx status code
func (*CreateMTOServiceItemForbidden) IsSuccess ¶
func (o *CreateMTOServiceItemForbidden) IsSuccess() bool
IsSuccess returns true when this create m t o service item forbidden response has a 2xx status code
func (*CreateMTOServiceItemForbidden) String ¶
func (o *CreateMTOServiceItemForbidden) String() string
type CreateMTOServiceItemInternalServerError ¶
type CreateMTOServiceItemInternalServerError struct {
Payload *primemessages.Error
}
CreateMTOServiceItemInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewCreateMTOServiceItemInternalServerError ¶
func NewCreateMTOServiceItemInternalServerError() *CreateMTOServiceItemInternalServerError
NewCreateMTOServiceItemInternalServerError creates a CreateMTOServiceItemInternalServerError with default headers values
func (*CreateMTOServiceItemInternalServerError) Code ¶
func (o *CreateMTOServiceItemInternalServerError) Code() int
Code gets the status code for the create m t o service item internal server error response
func (*CreateMTOServiceItemInternalServerError) Error ¶
func (o *CreateMTOServiceItemInternalServerError) Error() string
func (*CreateMTOServiceItemInternalServerError) GetPayload ¶
func (o *CreateMTOServiceItemInternalServerError) GetPayload() *primemessages.Error
func (*CreateMTOServiceItemInternalServerError) IsClientError ¶
func (o *CreateMTOServiceItemInternalServerError) IsClientError() bool
IsClientError returns true when this create m t o service item internal server error response has a 4xx status code
func (*CreateMTOServiceItemInternalServerError) IsCode ¶
func (o *CreateMTOServiceItemInternalServerError) IsCode(code int) bool
IsCode returns true when this create m t o service item internal server error response a status code equal to that given
func (*CreateMTOServiceItemInternalServerError) IsRedirect ¶
func (o *CreateMTOServiceItemInternalServerError) IsRedirect() bool
IsRedirect returns true when this create m t o service item internal server error response has a 3xx status code
func (*CreateMTOServiceItemInternalServerError) IsServerError ¶
func (o *CreateMTOServiceItemInternalServerError) IsServerError() bool
IsServerError returns true when this create m t o service item internal server error response has a 5xx status code
func (*CreateMTOServiceItemInternalServerError) IsSuccess ¶
func (o *CreateMTOServiceItemInternalServerError) IsSuccess() bool
IsSuccess returns true when this create m t o service item internal server error response has a 2xx status code
func (*CreateMTOServiceItemInternalServerError) String ¶
func (o *CreateMTOServiceItemInternalServerError) String() string
type CreateMTOServiceItemNotFound ¶
type CreateMTOServiceItemNotFound struct {
Payload *primemessages.ClientError
}
CreateMTOServiceItemNotFound describes a response with status code 404, with default header values.
The requested resource wasn't found.
func NewCreateMTOServiceItemNotFound ¶
func NewCreateMTOServiceItemNotFound() *CreateMTOServiceItemNotFound
NewCreateMTOServiceItemNotFound creates a CreateMTOServiceItemNotFound with default headers values
func (*CreateMTOServiceItemNotFound) Code ¶
func (o *CreateMTOServiceItemNotFound) Code() int
Code gets the status code for the create m t o service item not found response
func (*CreateMTOServiceItemNotFound) Error ¶
func (o *CreateMTOServiceItemNotFound) Error() string
func (*CreateMTOServiceItemNotFound) GetPayload ¶
func (o *CreateMTOServiceItemNotFound) GetPayload() *primemessages.ClientError
func (*CreateMTOServiceItemNotFound) IsClientError ¶
func (o *CreateMTOServiceItemNotFound) IsClientError() bool
IsClientError returns true when this create m t o service item not found response has a 4xx status code
func (*CreateMTOServiceItemNotFound) IsCode ¶
func (o *CreateMTOServiceItemNotFound) IsCode(code int) bool
IsCode returns true when this create m t o service item not found response a status code equal to that given
func (*CreateMTOServiceItemNotFound) IsRedirect ¶
func (o *CreateMTOServiceItemNotFound) IsRedirect() bool
IsRedirect returns true when this create m t o service item not found response has a 3xx status code
func (*CreateMTOServiceItemNotFound) IsServerError ¶
func (o *CreateMTOServiceItemNotFound) IsServerError() bool
IsServerError returns true when this create m t o service item not found response has a 5xx status code
func (*CreateMTOServiceItemNotFound) IsSuccess ¶
func (o *CreateMTOServiceItemNotFound) IsSuccess() bool
IsSuccess returns true when this create m t o service item not found response has a 2xx status code
func (*CreateMTOServiceItemNotFound) String ¶
func (o *CreateMTOServiceItemNotFound) String() string
type CreateMTOServiceItemOK ¶
type CreateMTOServiceItemOK struct {
Payload []primemessages.MTOServiceItem
}
CreateMTOServiceItemOK describes a response with status code 200, with default header values.
Successfully created an MTO service item.
func NewCreateMTOServiceItemOK ¶
func NewCreateMTOServiceItemOK() *CreateMTOServiceItemOK
NewCreateMTOServiceItemOK creates a CreateMTOServiceItemOK with default headers values
func (*CreateMTOServiceItemOK) Code ¶
func (o *CreateMTOServiceItemOK) Code() int
Code gets the status code for the create m t o service item o k response
func (*CreateMTOServiceItemOK) Error ¶
func (o *CreateMTOServiceItemOK) Error() string
func (*CreateMTOServiceItemOK) GetPayload ¶
func (o *CreateMTOServiceItemOK) GetPayload() []primemessages.MTOServiceItem
func (*CreateMTOServiceItemOK) IsClientError ¶
func (o *CreateMTOServiceItemOK) IsClientError() bool
IsClientError returns true when this create m t o service item o k response has a 4xx status code
func (*CreateMTOServiceItemOK) IsCode ¶
func (o *CreateMTOServiceItemOK) IsCode(code int) bool
IsCode returns true when this create m t o service item o k response a status code equal to that given
func (*CreateMTOServiceItemOK) IsRedirect ¶
func (o *CreateMTOServiceItemOK) IsRedirect() bool
IsRedirect returns true when this create m t o service item o k response has a 3xx status code
func (*CreateMTOServiceItemOK) IsServerError ¶
func (o *CreateMTOServiceItemOK) IsServerError() bool
IsServerError returns true when this create m t o service item o k response has a 5xx status code
func (*CreateMTOServiceItemOK) IsSuccess ¶
func (o *CreateMTOServiceItemOK) IsSuccess() bool
IsSuccess returns true when this create m t o service item o k response has a 2xx status code
func (*CreateMTOServiceItemOK) String ¶
func (o *CreateMTOServiceItemOK) String() string
type CreateMTOServiceItemParams ¶
type CreateMTOServiceItemParams struct { // Body. Body primemessages.MTOServiceItem Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateMTOServiceItemParams contains all the parameters to send to the API endpoint
for the create m t o service item operation. Typically these are written to a http.Request.
func NewCreateMTOServiceItemParams ¶
func NewCreateMTOServiceItemParams() *CreateMTOServiceItemParams
NewCreateMTOServiceItemParams creates a new CreateMTOServiceItemParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateMTOServiceItemParamsWithContext ¶
func NewCreateMTOServiceItemParamsWithContext(ctx context.Context) *CreateMTOServiceItemParams
NewCreateMTOServiceItemParamsWithContext creates a new CreateMTOServiceItemParams object with the ability to set a context for a request.
func NewCreateMTOServiceItemParamsWithHTTPClient ¶
func NewCreateMTOServiceItemParamsWithHTTPClient(client *http.Client) *CreateMTOServiceItemParams
NewCreateMTOServiceItemParamsWithHTTPClient creates a new CreateMTOServiceItemParams object with the ability to set a custom HTTPClient for a request.
func NewCreateMTOServiceItemParamsWithTimeout ¶
func NewCreateMTOServiceItemParamsWithTimeout(timeout time.Duration) *CreateMTOServiceItemParams
NewCreateMTOServiceItemParamsWithTimeout creates a new CreateMTOServiceItemParams object with the ability to set a timeout on a request.
func (*CreateMTOServiceItemParams) SetBody ¶
func (o *CreateMTOServiceItemParams) SetBody(body primemessages.MTOServiceItem)
SetBody adds the body to the create m t o service item params
func (*CreateMTOServiceItemParams) SetContext ¶
func (o *CreateMTOServiceItemParams) SetContext(ctx context.Context)
SetContext adds the context to the create m t o service item params
func (*CreateMTOServiceItemParams) SetDefaults ¶
func (o *CreateMTOServiceItemParams) SetDefaults()
SetDefaults hydrates default values in the create m t o service item params (not the query body).
All values with no default are reset to their zero value.
func (*CreateMTOServiceItemParams) SetHTTPClient ¶
func (o *CreateMTOServiceItemParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create m t o service item params
func (*CreateMTOServiceItemParams) SetTimeout ¶
func (o *CreateMTOServiceItemParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create m t o service item params
func (*CreateMTOServiceItemParams) WithBody ¶
func (o *CreateMTOServiceItemParams) WithBody(body primemessages.MTOServiceItem) *CreateMTOServiceItemParams
WithBody adds the body to the create m t o service item params
func (*CreateMTOServiceItemParams) WithContext ¶
func (o *CreateMTOServiceItemParams) WithContext(ctx context.Context) *CreateMTOServiceItemParams
WithContext adds the context to the create m t o service item params
func (*CreateMTOServiceItemParams) WithDefaults ¶
func (o *CreateMTOServiceItemParams) WithDefaults() *CreateMTOServiceItemParams
WithDefaults hydrates default values in the create m t o service item params (not the query body).
All values with no default are reset to their zero value.
func (*CreateMTOServiceItemParams) WithHTTPClient ¶
func (o *CreateMTOServiceItemParams) WithHTTPClient(client *http.Client) *CreateMTOServiceItemParams
WithHTTPClient adds the HTTPClient to the create m t o service item params
func (*CreateMTOServiceItemParams) WithTimeout ¶
func (o *CreateMTOServiceItemParams) WithTimeout(timeout time.Duration) *CreateMTOServiceItemParams
WithTimeout adds the timeout to the create m t o service item params
func (*CreateMTOServiceItemParams) WriteToRequest ¶
func (o *CreateMTOServiceItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateMTOServiceItemReader ¶
type CreateMTOServiceItemReader struct {
// contains filtered or unexported fields
}
CreateMTOServiceItemReader is a Reader for the CreateMTOServiceItem structure.
func (*CreateMTOServiceItemReader) ReadResponse ¶
func (o *CreateMTOServiceItemReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateMTOServiceItemUnauthorized ¶
type CreateMTOServiceItemUnauthorized struct {
}CreateMTOServiceItemUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewCreateMTOServiceItemUnauthorized ¶
func NewCreateMTOServiceItemUnauthorized() *CreateMTOServiceItemUnauthorized
NewCreateMTOServiceItemUnauthorized creates a CreateMTOServiceItemUnauthorized with default headers values
func (*CreateMTOServiceItemUnauthorized) Code ¶
func (o *CreateMTOServiceItemUnauthorized) Code() int
Code gets the status code for the create m t o service item unauthorized response
func (*CreateMTOServiceItemUnauthorized) Error ¶
func (o *CreateMTOServiceItemUnauthorized) Error() string
func (*CreateMTOServiceItemUnauthorized) GetPayload ¶
func (o *CreateMTOServiceItemUnauthorized) GetPayload() *primemessages.ClientError
func (*CreateMTOServiceItemUnauthorized) IsClientError ¶
func (o *CreateMTOServiceItemUnauthorized) IsClientError() bool
IsClientError returns true when this create m t o service item unauthorized response has a 4xx status code
func (*CreateMTOServiceItemUnauthorized) IsCode ¶
func (o *CreateMTOServiceItemUnauthorized) IsCode(code int) bool
IsCode returns true when this create m t o service item unauthorized response a status code equal to that given
func (*CreateMTOServiceItemUnauthorized) IsRedirect ¶
func (o *CreateMTOServiceItemUnauthorized) IsRedirect() bool
IsRedirect returns true when this create m t o service item unauthorized response has a 3xx status code
func (*CreateMTOServiceItemUnauthorized) IsServerError ¶
func (o *CreateMTOServiceItemUnauthorized) IsServerError() bool
IsServerError returns true when this create m t o service item unauthorized response has a 5xx status code
func (*CreateMTOServiceItemUnauthorized) IsSuccess ¶
func (o *CreateMTOServiceItemUnauthorized) IsSuccess() bool
IsSuccess returns true when this create m t o service item unauthorized response has a 2xx status code
func (*CreateMTOServiceItemUnauthorized) String ¶
func (o *CreateMTOServiceItemUnauthorized) String() string
type CreateMTOServiceItemUnprocessableEntity ¶
type CreateMTOServiceItemUnprocessableEntity struct {
Payload *primemessages.ValidationError
}
CreateMTOServiceItemUnprocessableEntity describes a response with status code 422, with default header values.
The request was unprocessable, likely due to bad input from the requester.
func NewCreateMTOServiceItemUnprocessableEntity ¶
func NewCreateMTOServiceItemUnprocessableEntity() *CreateMTOServiceItemUnprocessableEntity
NewCreateMTOServiceItemUnprocessableEntity creates a CreateMTOServiceItemUnprocessableEntity with default headers values
func (*CreateMTOServiceItemUnprocessableEntity) Code ¶
func (o *CreateMTOServiceItemUnprocessableEntity) Code() int
Code gets the status code for the create m t o service item unprocessable entity response
func (*CreateMTOServiceItemUnprocessableEntity) Error ¶
func (o *CreateMTOServiceItemUnprocessableEntity) Error() string
func (*CreateMTOServiceItemUnprocessableEntity) GetPayload ¶
func (o *CreateMTOServiceItemUnprocessableEntity) GetPayload() *primemessages.ValidationError
func (*CreateMTOServiceItemUnprocessableEntity) IsClientError ¶
func (o *CreateMTOServiceItemUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create m t o service item unprocessable entity response has a 4xx status code
func (*CreateMTOServiceItemUnprocessableEntity) IsCode ¶
func (o *CreateMTOServiceItemUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create m t o service item unprocessable entity response a status code equal to that given
func (*CreateMTOServiceItemUnprocessableEntity) IsRedirect ¶
func (o *CreateMTOServiceItemUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create m t o service item unprocessable entity response has a 3xx status code
func (*CreateMTOServiceItemUnprocessableEntity) IsServerError ¶
func (o *CreateMTOServiceItemUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create m t o service item unprocessable entity response has a 5xx status code
func (*CreateMTOServiceItemUnprocessableEntity) IsSuccess ¶
func (o *CreateMTOServiceItemUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create m t o service item unprocessable entity response has a 2xx status code
func (*CreateMTOServiceItemUnprocessableEntity) String ¶
func (o *CreateMTOServiceItemUnprocessableEntity) String() string
type CreateServiceRequestDocumentUploadBadRequest ¶
type CreateServiceRequestDocumentUploadBadRequest struct {
Payload *primemessages.ClientError
}
CreateServiceRequestDocumentUploadBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewCreateServiceRequestDocumentUploadBadRequest ¶
func NewCreateServiceRequestDocumentUploadBadRequest() *CreateServiceRequestDocumentUploadBadRequest
NewCreateServiceRequestDocumentUploadBadRequest creates a CreateServiceRequestDocumentUploadBadRequest with default headers values
func (*CreateServiceRequestDocumentUploadBadRequest) Code ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) Code() int
Code gets the status code for the create service request document upload bad request response
func (*CreateServiceRequestDocumentUploadBadRequest) Error ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) Error() string
func (*CreateServiceRequestDocumentUploadBadRequest) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) GetPayload() *primemessages.ClientError
func (*CreateServiceRequestDocumentUploadBadRequest) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) IsClientError() bool
IsClientError returns true when this create service request document upload bad request response has a 4xx status code
func (*CreateServiceRequestDocumentUploadBadRequest) IsCode ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) IsCode(code int) bool
IsCode returns true when this create service request document upload bad request response a status code equal to that given
func (*CreateServiceRequestDocumentUploadBadRequest) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) IsRedirect() bool
IsRedirect returns true when this create service request document upload bad request response has a 3xx status code
func (*CreateServiceRequestDocumentUploadBadRequest) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) IsServerError() bool
IsServerError returns true when this create service request document upload bad request response has a 5xx status code
func (*CreateServiceRequestDocumentUploadBadRequest) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) IsSuccess() bool
IsSuccess returns true when this create service request document upload bad request response has a 2xx status code
func (*CreateServiceRequestDocumentUploadBadRequest) String ¶
func (o *CreateServiceRequestDocumentUploadBadRequest) String() string
type CreateServiceRequestDocumentUploadCreated ¶
type CreateServiceRequestDocumentUploadCreated struct {
Payload *primemessages.UploadWithOmissions
}
CreateServiceRequestDocumentUploadCreated describes a response with status code 201, with default header values.
Successfully created upload of digital file.
func NewCreateServiceRequestDocumentUploadCreated ¶
func NewCreateServiceRequestDocumentUploadCreated() *CreateServiceRequestDocumentUploadCreated
NewCreateServiceRequestDocumentUploadCreated creates a CreateServiceRequestDocumentUploadCreated with default headers values
func (*CreateServiceRequestDocumentUploadCreated) Code ¶
func (o *CreateServiceRequestDocumentUploadCreated) Code() int
Code gets the status code for the create service request document upload created response
func (*CreateServiceRequestDocumentUploadCreated) Error ¶
func (o *CreateServiceRequestDocumentUploadCreated) Error() string
func (*CreateServiceRequestDocumentUploadCreated) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadCreated) GetPayload() *primemessages.UploadWithOmissions
func (*CreateServiceRequestDocumentUploadCreated) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadCreated) IsClientError() bool
IsClientError returns true when this create service request document upload created response has a 4xx status code
func (*CreateServiceRequestDocumentUploadCreated) IsCode ¶
func (o *CreateServiceRequestDocumentUploadCreated) IsCode(code int) bool
IsCode returns true when this create service request document upload created response a status code equal to that given
func (*CreateServiceRequestDocumentUploadCreated) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadCreated) IsRedirect() bool
IsRedirect returns true when this create service request document upload created response has a 3xx status code
func (*CreateServiceRequestDocumentUploadCreated) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadCreated) IsServerError() bool
IsServerError returns true when this create service request document upload created response has a 5xx status code
func (*CreateServiceRequestDocumentUploadCreated) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadCreated) IsSuccess() bool
IsSuccess returns true when this create service request document upload created response has a 2xx status code
func (*CreateServiceRequestDocumentUploadCreated) String ¶
func (o *CreateServiceRequestDocumentUploadCreated) String() string
type CreateServiceRequestDocumentUploadForbidden ¶
type CreateServiceRequestDocumentUploadForbidden struct {
Payload *primemessages.ClientError
}
CreateServiceRequestDocumentUploadForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewCreateServiceRequestDocumentUploadForbidden ¶
func NewCreateServiceRequestDocumentUploadForbidden() *CreateServiceRequestDocumentUploadForbidden
NewCreateServiceRequestDocumentUploadForbidden creates a CreateServiceRequestDocumentUploadForbidden with default headers values
func (*CreateServiceRequestDocumentUploadForbidden) Code ¶
func (o *CreateServiceRequestDocumentUploadForbidden) Code() int
Code gets the status code for the create service request document upload forbidden response
func (*CreateServiceRequestDocumentUploadForbidden) Error ¶
func (o *CreateServiceRequestDocumentUploadForbidden) Error() string
func (*CreateServiceRequestDocumentUploadForbidden) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadForbidden) GetPayload() *primemessages.ClientError
func (*CreateServiceRequestDocumentUploadForbidden) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadForbidden) IsClientError() bool
IsClientError returns true when this create service request document upload forbidden response has a 4xx status code
func (*CreateServiceRequestDocumentUploadForbidden) IsCode ¶
func (o *CreateServiceRequestDocumentUploadForbidden) IsCode(code int) bool
IsCode returns true when this create service request document upload forbidden response a status code equal to that given
func (*CreateServiceRequestDocumentUploadForbidden) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadForbidden) IsRedirect() bool
IsRedirect returns true when this create service request document upload forbidden response has a 3xx status code
func (*CreateServiceRequestDocumentUploadForbidden) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadForbidden) IsServerError() bool
IsServerError returns true when this create service request document upload forbidden response has a 5xx status code
func (*CreateServiceRequestDocumentUploadForbidden) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadForbidden) IsSuccess() bool
IsSuccess returns true when this create service request document upload forbidden response has a 2xx status code
func (*CreateServiceRequestDocumentUploadForbidden) String ¶
func (o *CreateServiceRequestDocumentUploadForbidden) String() string
type CreateServiceRequestDocumentUploadInternalServerError ¶
type CreateServiceRequestDocumentUploadInternalServerError struct {
Payload *primemessages.Error
}
CreateServiceRequestDocumentUploadInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewCreateServiceRequestDocumentUploadInternalServerError ¶
func NewCreateServiceRequestDocumentUploadInternalServerError() *CreateServiceRequestDocumentUploadInternalServerError
NewCreateServiceRequestDocumentUploadInternalServerError creates a CreateServiceRequestDocumentUploadInternalServerError with default headers values
func (*CreateServiceRequestDocumentUploadInternalServerError) Code ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) Code() int
Code gets the status code for the create service request document upload internal server error response
func (*CreateServiceRequestDocumentUploadInternalServerError) Error ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) Error() string
func (*CreateServiceRequestDocumentUploadInternalServerError) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) GetPayload() *primemessages.Error
func (*CreateServiceRequestDocumentUploadInternalServerError) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) IsClientError() bool
IsClientError returns true when this create service request document upload internal server error response has a 4xx status code
func (*CreateServiceRequestDocumentUploadInternalServerError) IsCode ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) IsCode(code int) bool
IsCode returns true when this create service request document upload internal server error response a status code equal to that given
func (*CreateServiceRequestDocumentUploadInternalServerError) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) IsRedirect() bool
IsRedirect returns true when this create service request document upload internal server error response has a 3xx status code
func (*CreateServiceRequestDocumentUploadInternalServerError) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) IsServerError() bool
IsServerError returns true when this create service request document upload internal server error response has a 5xx status code
func (*CreateServiceRequestDocumentUploadInternalServerError) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) IsSuccess() bool
IsSuccess returns true when this create service request document upload internal server error response has a 2xx status code
func (*CreateServiceRequestDocumentUploadInternalServerError) String ¶
func (o *CreateServiceRequestDocumentUploadInternalServerError) String() string
type CreateServiceRequestDocumentUploadNotFound ¶
type CreateServiceRequestDocumentUploadNotFound struct {
Payload *primemessages.ClientError
}
CreateServiceRequestDocumentUploadNotFound describes a response with status code 404, with default header values.
The requested resource wasn't found.
func NewCreateServiceRequestDocumentUploadNotFound ¶
func NewCreateServiceRequestDocumentUploadNotFound() *CreateServiceRequestDocumentUploadNotFound
NewCreateServiceRequestDocumentUploadNotFound creates a CreateServiceRequestDocumentUploadNotFound with default headers values
func (*CreateServiceRequestDocumentUploadNotFound) Code ¶
func (o *CreateServiceRequestDocumentUploadNotFound) Code() int
Code gets the status code for the create service request document upload not found response
func (*CreateServiceRequestDocumentUploadNotFound) Error ¶
func (o *CreateServiceRequestDocumentUploadNotFound) Error() string
func (*CreateServiceRequestDocumentUploadNotFound) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadNotFound) GetPayload() *primemessages.ClientError
func (*CreateServiceRequestDocumentUploadNotFound) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadNotFound) IsClientError() bool
IsClientError returns true when this create service request document upload not found response has a 4xx status code
func (*CreateServiceRequestDocumentUploadNotFound) IsCode ¶
func (o *CreateServiceRequestDocumentUploadNotFound) IsCode(code int) bool
IsCode returns true when this create service request document upload not found response a status code equal to that given
func (*CreateServiceRequestDocumentUploadNotFound) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadNotFound) IsRedirect() bool
IsRedirect returns true when this create service request document upload not found response has a 3xx status code
func (*CreateServiceRequestDocumentUploadNotFound) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadNotFound) IsServerError() bool
IsServerError returns true when this create service request document upload not found response has a 5xx status code
func (*CreateServiceRequestDocumentUploadNotFound) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadNotFound) IsSuccess() bool
IsSuccess returns true when this create service request document upload not found response has a 2xx status code
func (*CreateServiceRequestDocumentUploadNotFound) String ¶
func (o *CreateServiceRequestDocumentUploadNotFound) String() string
type CreateServiceRequestDocumentUploadParams ¶
type CreateServiceRequestDocumentUploadParams struct { /* File. The file to upload. */ File runtime.NamedReadCloser /* MtoServiceItemID. UUID of the service item to use. */ MtoServiceItemID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateServiceRequestDocumentUploadParams contains all the parameters to send to the API endpoint
for the create service request document upload operation. Typically these are written to a http.Request.
func NewCreateServiceRequestDocumentUploadParams ¶
func NewCreateServiceRequestDocumentUploadParams() *CreateServiceRequestDocumentUploadParams
NewCreateServiceRequestDocumentUploadParams creates a new CreateServiceRequestDocumentUploadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateServiceRequestDocumentUploadParamsWithContext ¶
func NewCreateServiceRequestDocumentUploadParamsWithContext(ctx context.Context) *CreateServiceRequestDocumentUploadParams
NewCreateServiceRequestDocumentUploadParamsWithContext creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a context for a request.
func NewCreateServiceRequestDocumentUploadParamsWithHTTPClient ¶
func NewCreateServiceRequestDocumentUploadParamsWithHTTPClient(client *http.Client) *CreateServiceRequestDocumentUploadParams
NewCreateServiceRequestDocumentUploadParamsWithHTTPClient creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a custom HTTPClient for a request.
func NewCreateServiceRequestDocumentUploadParamsWithTimeout ¶
func NewCreateServiceRequestDocumentUploadParamsWithTimeout(timeout time.Duration) *CreateServiceRequestDocumentUploadParams
NewCreateServiceRequestDocumentUploadParamsWithTimeout creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a timeout on a request.
func (*CreateServiceRequestDocumentUploadParams) SetContext ¶
func (o *CreateServiceRequestDocumentUploadParams) SetContext(ctx context.Context)
SetContext adds the context to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) SetDefaults ¶
func (o *CreateServiceRequestDocumentUploadParams) SetDefaults()
SetDefaults hydrates default values in the create service request document upload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServiceRequestDocumentUploadParams) SetFile ¶
func (o *CreateServiceRequestDocumentUploadParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) SetHTTPClient ¶
func (o *CreateServiceRequestDocumentUploadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) SetMtoServiceItemID ¶
func (o *CreateServiceRequestDocumentUploadParams) SetMtoServiceItemID(mtoServiceItemID string)
SetMtoServiceItemID adds the mtoServiceItemId to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) SetTimeout ¶
func (o *CreateServiceRequestDocumentUploadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WithContext ¶
func (o *CreateServiceRequestDocumentUploadParams) WithContext(ctx context.Context) *CreateServiceRequestDocumentUploadParams
WithContext adds the context to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WithDefaults ¶
func (o *CreateServiceRequestDocumentUploadParams) WithDefaults() *CreateServiceRequestDocumentUploadParams
WithDefaults hydrates default values in the create service request document upload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateServiceRequestDocumentUploadParams) WithFile ¶
func (o *CreateServiceRequestDocumentUploadParams) WithFile(file runtime.NamedReadCloser) *CreateServiceRequestDocumentUploadParams
WithFile adds the file to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WithHTTPClient ¶
func (o *CreateServiceRequestDocumentUploadParams) WithHTTPClient(client *http.Client) *CreateServiceRequestDocumentUploadParams
WithHTTPClient adds the HTTPClient to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WithMtoServiceItemID ¶
func (o *CreateServiceRequestDocumentUploadParams) WithMtoServiceItemID(mtoServiceItemID string) *CreateServiceRequestDocumentUploadParams
WithMtoServiceItemID adds the mtoServiceItemID to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WithTimeout ¶
func (o *CreateServiceRequestDocumentUploadParams) WithTimeout(timeout time.Duration) *CreateServiceRequestDocumentUploadParams
WithTimeout adds the timeout to the create service request document upload params
func (*CreateServiceRequestDocumentUploadParams) WriteToRequest ¶
func (o *CreateServiceRequestDocumentUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateServiceRequestDocumentUploadReader ¶
type CreateServiceRequestDocumentUploadReader struct {
// contains filtered or unexported fields
}
CreateServiceRequestDocumentUploadReader is a Reader for the CreateServiceRequestDocumentUpload structure.
func (*CreateServiceRequestDocumentUploadReader) ReadResponse ¶
func (o *CreateServiceRequestDocumentUploadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateServiceRequestDocumentUploadUnauthorized ¶
type CreateServiceRequestDocumentUploadUnauthorized struct {
}CreateServiceRequestDocumentUploadUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewCreateServiceRequestDocumentUploadUnauthorized ¶
func NewCreateServiceRequestDocumentUploadUnauthorized() *CreateServiceRequestDocumentUploadUnauthorized
NewCreateServiceRequestDocumentUploadUnauthorized creates a CreateServiceRequestDocumentUploadUnauthorized with default headers values
func (*CreateServiceRequestDocumentUploadUnauthorized) Code ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) Code() int
Code gets the status code for the create service request document upload unauthorized response
func (*CreateServiceRequestDocumentUploadUnauthorized) Error ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) Error() string
func (*CreateServiceRequestDocumentUploadUnauthorized) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) GetPayload() *primemessages.ClientError
func (*CreateServiceRequestDocumentUploadUnauthorized) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) IsClientError() bool
IsClientError returns true when this create service request document upload unauthorized response has a 4xx status code
func (*CreateServiceRequestDocumentUploadUnauthorized) IsCode ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) IsCode(code int) bool
IsCode returns true when this create service request document upload unauthorized response a status code equal to that given
func (*CreateServiceRequestDocumentUploadUnauthorized) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) IsRedirect() bool
IsRedirect returns true when this create service request document upload unauthorized response has a 3xx status code
func (*CreateServiceRequestDocumentUploadUnauthorized) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) IsServerError() bool
IsServerError returns true when this create service request document upload unauthorized response has a 5xx status code
func (*CreateServiceRequestDocumentUploadUnauthorized) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) IsSuccess() bool
IsSuccess returns true when this create service request document upload unauthorized response has a 2xx status code
func (*CreateServiceRequestDocumentUploadUnauthorized) String ¶
func (o *CreateServiceRequestDocumentUploadUnauthorized) String() string
type CreateServiceRequestDocumentUploadUnprocessableEntity ¶
type CreateServiceRequestDocumentUploadUnprocessableEntity struct {
Payload *primemessages.ValidationError
}
CreateServiceRequestDocumentUploadUnprocessableEntity describes a response with status code 422, with default header values.
The request was unprocessable, likely due to bad input from the requester.
func NewCreateServiceRequestDocumentUploadUnprocessableEntity ¶
func NewCreateServiceRequestDocumentUploadUnprocessableEntity() *CreateServiceRequestDocumentUploadUnprocessableEntity
NewCreateServiceRequestDocumentUploadUnprocessableEntity creates a CreateServiceRequestDocumentUploadUnprocessableEntity with default headers values
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) Code ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) Code() int
Code gets the status code for the create service request document upload unprocessable entity response
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) Error ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) Error() string
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) GetPayload ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) GetPayload() *primemessages.ValidationError
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsClientError ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create service request document upload unprocessable entity response has a 4xx status code
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsCode ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create service request document upload unprocessable entity response a status code equal to that given
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsRedirect ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create service request document upload unprocessable entity response has a 3xx status code
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsServerError ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create service request document upload unprocessable entity response has a 5xx status code
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsSuccess ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create service request document upload unprocessable entity response has a 2xx status code
func (*CreateServiceRequestDocumentUploadUnprocessableEntity) String ¶
func (o *CreateServiceRequestDocumentUploadUnprocessableEntity) String() string
type UpdateMTOServiceItemBadRequest ¶
type UpdateMTOServiceItemBadRequest struct {
Payload *primemessages.ClientError
}
UpdateMTOServiceItemBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewUpdateMTOServiceItemBadRequest ¶
func NewUpdateMTOServiceItemBadRequest() *UpdateMTOServiceItemBadRequest
NewUpdateMTOServiceItemBadRequest creates a UpdateMTOServiceItemBadRequest with default headers values
func (*UpdateMTOServiceItemBadRequest) Code ¶
func (o *UpdateMTOServiceItemBadRequest) Code() int
Code gets the status code for the update m t o service item bad request response
func (*UpdateMTOServiceItemBadRequest) Error ¶
func (o *UpdateMTOServiceItemBadRequest) Error() string
func (*UpdateMTOServiceItemBadRequest) GetPayload ¶
func (o *UpdateMTOServiceItemBadRequest) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemBadRequest) IsClientError ¶
func (o *UpdateMTOServiceItemBadRequest) IsClientError() bool
IsClientError returns true when this update m t o service item bad request response has a 4xx status code
func (*UpdateMTOServiceItemBadRequest) IsCode ¶
func (o *UpdateMTOServiceItemBadRequest) IsCode(code int) bool
IsCode returns true when this update m t o service item bad request response a status code equal to that given
func (*UpdateMTOServiceItemBadRequest) IsRedirect ¶
func (o *UpdateMTOServiceItemBadRequest) IsRedirect() bool
IsRedirect returns true when this update m t o service item bad request response has a 3xx status code
func (*UpdateMTOServiceItemBadRequest) IsServerError ¶
func (o *UpdateMTOServiceItemBadRequest) IsServerError() bool
IsServerError returns true when this update m t o service item bad request response has a 5xx status code
func (*UpdateMTOServiceItemBadRequest) IsSuccess ¶
func (o *UpdateMTOServiceItemBadRequest) IsSuccess() bool
IsSuccess returns true when this update m t o service item bad request response has a 2xx status code
func (*UpdateMTOServiceItemBadRequest) String ¶
func (o *UpdateMTOServiceItemBadRequest) String() string
type UpdateMTOServiceItemConflict ¶
type UpdateMTOServiceItemConflict struct {
Payload *primemessages.ClientError
}
UpdateMTOServiceItemConflict describes a response with status code 409, with default header values.
The request could not be processed because of conflict in the current state of the resource.
func NewUpdateMTOServiceItemConflict ¶
func NewUpdateMTOServiceItemConflict() *UpdateMTOServiceItemConflict
NewUpdateMTOServiceItemConflict creates a UpdateMTOServiceItemConflict with default headers values
func (*UpdateMTOServiceItemConflict) Code ¶
func (o *UpdateMTOServiceItemConflict) Code() int
Code gets the status code for the update m t o service item conflict response
func (*UpdateMTOServiceItemConflict) Error ¶
func (o *UpdateMTOServiceItemConflict) Error() string
func (*UpdateMTOServiceItemConflict) GetPayload ¶
func (o *UpdateMTOServiceItemConflict) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemConflict) IsClientError ¶
func (o *UpdateMTOServiceItemConflict) IsClientError() bool
IsClientError returns true when this update m t o service item conflict response has a 4xx status code
func (*UpdateMTOServiceItemConflict) IsCode ¶
func (o *UpdateMTOServiceItemConflict) IsCode(code int) bool
IsCode returns true when this update m t o service item conflict response a status code equal to that given
func (*UpdateMTOServiceItemConflict) IsRedirect ¶
func (o *UpdateMTOServiceItemConflict) IsRedirect() bool
IsRedirect returns true when this update m t o service item conflict response has a 3xx status code
func (*UpdateMTOServiceItemConflict) IsServerError ¶
func (o *UpdateMTOServiceItemConflict) IsServerError() bool
IsServerError returns true when this update m t o service item conflict response has a 5xx status code
func (*UpdateMTOServiceItemConflict) IsSuccess ¶
func (o *UpdateMTOServiceItemConflict) IsSuccess() bool
IsSuccess returns true when this update m t o service item conflict response has a 2xx status code
func (*UpdateMTOServiceItemConflict) String ¶
func (o *UpdateMTOServiceItemConflict) String() string
type UpdateMTOServiceItemForbidden ¶
type UpdateMTOServiceItemForbidden struct {
Payload *primemessages.ClientError
}
UpdateMTOServiceItemForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewUpdateMTOServiceItemForbidden ¶
func NewUpdateMTOServiceItemForbidden() *UpdateMTOServiceItemForbidden
NewUpdateMTOServiceItemForbidden creates a UpdateMTOServiceItemForbidden with default headers values
func (*UpdateMTOServiceItemForbidden) Code ¶
func (o *UpdateMTOServiceItemForbidden) Code() int
Code gets the status code for the update m t o service item forbidden response
func (*UpdateMTOServiceItemForbidden) Error ¶
func (o *UpdateMTOServiceItemForbidden) Error() string
func (*UpdateMTOServiceItemForbidden) GetPayload ¶
func (o *UpdateMTOServiceItemForbidden) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemForbidden) IsClientError ¶
func (o *UpdateMTOServiceItemForbidden) IsClientError() bool
IsClientError returns true when this update m t o service item forbidden response has a 4xx status code
func (*UpdateMTOServiceItemForbidden) IsCode ¶
func (o *UpdateMTOServiceItemForbidden) IsCode(code int) bool
IsCode returns true when this update m t o service item forbidden response a status code equal to that given
func (*UpdateMTOServiceItemForbidden) IsRedirect ¶
func (o *UpdateMTOServiceItemForbidden) IsRedirect() bool
IsRedirect returns true when this update m t o service item forbidden response has a 3xx status code
func (*UpdateMTOServiceItemForbidden) IsServerError ¶
func (o *UpdateMTOServiceItemForbidden) IsServerError() bool
IsServerError returns true when this update m t o service item forbidden response has a 5xx status code
func (*UpdateMTOServiceItemForbidden) IsSuccess ¶
func (o *UpdateMTOServiceItemForbidden) IsSuccess() bool
IsSuccess returns true when this update m t o service item forbidden response has a 2xx status code
func (*UpdateMTOServiceItemForbidden) String ¶
func (o *UpdateMTOServiceItemForbidden) String() string
type UpdateMTOServiceItemInternalServerError ¶
type UpdateMTOServiceItemInternalServerError struct {
Payload *primemessages.Error
}
UpdateMTOServiceItemInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewUpdateMTOServiceItemInternalServerError ¶
func NewUpdateMTOServiceItemInternalServerError() *UpdateMTOServiceItemInternalServerError
NewUpdateMTOServiceItemInternalServerError creates a UpdateMTOServiceItemInternalServerError with default headers values
func (*UpdateMTOServiceItemInternalServerError) Code ¶
func (o *UpdateMTOServiceItemInternalServerError) Code() int
Code gets the status code for the update m t o service item internal server error response
func (*UpdateMTOServiceItemInternalServerError) Error ¶
func (o *UpdateMTOServiceItemInternalServerError) Error() string
func (*UpdateMTOServiceItemInternalServerError) GetPayload ¶
func (o *UpdateMTOServiceItemInternalServerError) GetPayload() *primemessages.Error
func (*UpdateMTOServiceItemInternalServerError) IsClientError ¶
func (o *UpdateMTOServiceItemInternalServerError) IsClientError() bool
IsClientError returns true when this update m t o service item internal server error response has a 4xx status code
func (*UpdateMTOServiceItemInternalServerError) IsCode ¶
func (o *UpdateMTOServiceItemInternalServerError) IsCode(code int) bool
IsCode returns true when this update m t o service item internal server error response a status code equal to that given
func (*UpdateMTOServiceItemInternalServerError) IsRedirect ¶
func (o *UpdateMTOServiceItemInternalServerError) IsRedirect() bool
IsRedirect returns true when this update m t o service item internal server error response has a 3xx status code
func (*UpdateMTOServiceItemInternalServerError) IsServerError ¶
func (o *UpdateMTOServiceItemInternalServerError) IsServerError() bool
IsServerError returns true when this update m t o service item internal server error response has a 5xx status code
func (*UpdateMTOServiceItemInternalServerError) IsSuccess ¶
func (o *UpdateMTOServiceItemInternalServerError) IsSuccess() bool
IsSuccess returns true when this update m t o service item internal server error response has a 2xx status code
func (*UpdateMTOServiceItemInternalServerError) String ¶
func (o *UpdateMTOServiceItemInternalServerError) String() string
type UpdateMTOServiceItemNotFound ¶
type UpdateMTOServiceItemNotFound struct {
Payload *primemessages.ClientError
}
UpdateMTOServiceItemNotFound describes a response with status code 404, with default header values.
The requested resource wasn't found.
func NewUpdateMTOServiceItemNotFound ¶
func NewUpdateMTOServiceItemNotFound() *UpdateMTOServiceItemNotFound
NewUpdateMTOServiceItemNotFound creates a UpdateMTOServiceItemNotFound with default headers values
func (*UpdateMTOServiceItemNotFound) Code ¶
func (o *UpdateMTOServiceItemNotFound) Code() int
Code gets the status code for the update m t o service item not found response
func (*UpdateMTOServiceItemNotFound) Error ¶
func (o *UpdateMTOServiceItemNotFound) Error() string
func (*UpdateMTOServiceItemNotFound) GetPayload ¶
func (o *UpdateMTOServiceItemNotFound) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemNotFound) IsClientError ¶
func (o *UpdateMTOServiceItemNotFound) IsClientError() bool
IsClientError returns true when this update m t o service item not found response has a 4xx status code
func (*UpdateMTOServiceItemNotFound) IsCode ¶
func (o *UpdateMTOServiceItemNotFound) IsCode(code int) bool
IsCode returns true when this update m t o service item not found response a status code equal to that given
func (*UpdateMTOServiceItemNotFound) IsRedirect ¶
func (o *UpdateMTOServiceItemNotFound) IsRedirect() bool
IsRedirect returns true when this update m t o service item not found response has a 3xx status code
func (*UpdateMTOServiceItemNotFound) IsServerError ¶
func (o *UpdateMTOServiceItemNotFound) IsServerError() bool
IsServerError returns true when this update m t o service item not found response has a 5xx status code
func (*UpdateMTOServiceItemNotFound) IsSuccess ¶
func (o *UpdateMTOServiceItemNotFound) IsSuccess() bool
IsSuccess returns true when this update m t o service item not found response has a 2xx status code
func (*UpdateMTOServiceItemNotFound) String ¶
func (o *UpdateMTOServiceItemNotFound) String() string
type UpdateMTOServiceItemOK ¶
type UpdateMTOServiceItemOK struct {
Payload primemessages.MTOServiceItem
}
UpdateMTOServiceItemOK describes a response with status code 200, with default header values.
Successfully updated the MTO service item.
func NewUpdateMTOServiceItemOK ¶
func NewUpdateMTOServiceItemOK() *UpdateMTOServiceItemOK
NewUpdateMTOServiceItemOK creates a UpdateMTOServiceItemOK with default headers values
func (*UpdateMTOServiceItemOK) Code ¶
func (o *UpdateMTOServiceItemOK) Code() int
Code gets the status code for the update m t o service item o k response
func (*UpdateMTOServiceItemOK) Error ¶
func (o *UpdateMTOServiceItemOK) Error() string
func (*UpdateMTOServiceItemOK) GetPayload ¶
func (o *UpdateMTOServiceItemOK) GetPayload() primemessages.MTOServiceItem
func (*UpdateMTOServiceItemOK) IsClientError ¶
func (o *UpdateMTOServiceItemOK) IsClientError() bool
IsClientError returns true when this update m t o service item o k response has a 4xx status code
func (*UpdateMTOServiceItemOK) IsCode ¶
func (o *UpdateMTOServiceItemOK) IsCode(code int) bool
IsCode returns true when this update m t o service item o k response a status code equal to that given
func (*UpdateMTOServiceItemOK) IsRedirect ¶
func (o *UpdateMTOServiceItemOK) IsRedirect() bool
IsRedirect returns true when this update m t o service item o k response has a 3xx status code
func (*UpdateMTOServiceItemOK) IsServerError ¶
func (o *UpdateMTOServiceItemOK) IsServerError() bool
IsServerError returns true when this update m t o service item o k response has a 5xx status code
func (*UpdateMTOServiceItemOK) IsSuccess ¶
func (o *UpdateMTOServiceItemOK) IsSuccess() bool
IsSuccess returns true when this update m t o service item o k response has a 2xx status code
func (*UpdateMTOServiceItemOK) String ¶
func (o *UpdateMTOServiceItemOK) String() string
type UpdateMTOServiceItemParams ¶
type UpdateMTOServiceItemParams struct { /* IfMatch. Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error. */ IfMatch string // Body. Body primemessages.UpdateMTOServiceItem /* MtoServiceItemID. UUID of service item to update. */ MtoServiceItemID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateMTOServiceItemParams contains all the parameters to send to the API endpoint
for the update m t o service item operation. Typically these are written to a http.Request.
func NewUpdateMTOServiceItemParams ¶
func NewUpdateMTOServiceItemParams() *UpdateMTOServiceItemParams
NewUpdateMTOServiceItemParams creates a new UpdateMTOServiceItemParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateMTOServiceItemParamsWithContext ¶
func NewUpdateMTOServiceItemParamsWithContext(ctx context.Context) *UpdateMTOServiceItemParams
NewUpdateMTOServiceItemParamsWithContext creates a new UpdateMTOServiceItemParams object with the ability to set a context for a request.
func NewUpdateMTOServiceItemParamsWithHTTPClient ¶
func NewUpdateMTOServiceItemParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemParams
NewUpdateMTOServiceItemParamsWithHTTPClient creates a new UpdateMTOServiceItemParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateMTOServiceItemParamsWithTimeout ¶
func NewUpdateMTOServiceItemParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemParams
NewUpdateMTOServiceItemParamsWithTimeout creates a new UpdateMTOServiceItemParams object with the ability to set a timeout on a request.
func (*UpdateMTOServiceItemParams) SetBody ¶
func (o *UpdateMTOServiceItemParams) SetBody(body primemessages.UpdateMTOServiceItem)
SetBody adds the body to the update m t o service item params
func (*UpdateMTOServiceItemParams) SetContext ¶
func (o *UpdateMTOServiceItemParams) SetContext(ctx context.Context)
SetContext adds the context to the update m t o service item params
func (*UpdateMTOServiceItemParams) SetDefaults ¶
func (o *UpdateMTOServiceItemParams) SetDefaults()
SetDefaults hydrates default values in the update m t o service item params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateMTOServiceItemParams) SetHTTPClient ¶
func (o *UpdateMTOServiceItemParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update m t o service item params
func (*UpdateMTOServiceItemParams) SetIfMatch ¶
func (o *UpdateMTOServiceItemParams) SetIfMatch(ifMatch string)
SetIfMatch adds the ifMatch to the update m t o service item params
func (*UpdateMTOServiceItemParams) SetMtoServiceItemID ¶
func (o *UpdateMTOServiceItemParams) SetMtoServiceItemID(mtoServiceItemID string)
SetMtoServiceItemID adds the mtoServiceItemId to the update m t o service item params
func (*UpdateMTOServiceItemParams) SetTimeout ¶
func (o *UpdateMTOServiceItemParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithBody ¶
func (o *UpdateMTOServiceItemParams) WithBody(body primemessages.UpdateMTOServiceItem) *UpdateMTOServiceItemParams
WithBody adds the body to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithContext ¶
func (o *UpdateMTOServiceItemParams) WithContext(ctx context.Context) *UpdateMTOServiceItemParams
WithContext adds the context to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithDefaults ¶
func (o *UpdateMTOServiceItemParams) WithDefaults() *UpdateMTOServiceItemParams
WithDefaults hydrates default values in the update m t o service item params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateMTOServiceItemParams) WithHTTPClient ¶
func (o *UpdateMTOServiceItemParams) WithHTTPClient(client *http.Client) *UpdateMTOServiceItemParams
WithHTTPClient adds the HTTPClient to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithIfMatch ¶
func (o *UpdateMTOServiceItemParams) WithIfMatch(ifMatch string) *UpdateMTOServiceItemParams
WithIfMatch adds the ifMatch to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithMtoServiceItemID ¶
func (o *UpdateMTOServiceItemParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemParams
WithMtoServiceItemID adds the mtoServiceItemID to the update m t o service item params
func (*UpdateMTOServiceItemParams) WithTimeout ¶
func (o *UpdateMTOServiceItemParams) WithTimeout(timeout time.Duration) *UpdateMTOServiceItemParams
WithTimeout adds the timeout to the update m t o service item params
func (*UpdateMTOServiceItemParams) WriteToRequest ¶
func (o *UpdateMTOServiceItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateMTOServiceItemPreconditionFailed ¶
type UpdateMTOServiceItemPreconditionFailed struct {
Payload *primemessages.ClientError
}
UpdateMTOServiceItemPreconditionFailed describes a response with status code 412, with default header values.
Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
func NewUpdateMTOServiceItemPreconditionFailed ¶
func NewUpdateMTOServiceItemPreconditionFailed() *UpdateMTOServiceItemPreconditionFailed
NewUpdateMTOServiceItemPreconditionFailed creates a UpdateMTOServiceItemPreconditionFailed with default headers values
func (*UpdateMTOServiceItemPreconditionFailed) Code ¶
func (o *UpdateMTOServiceItemPreconditionFailed) Code() int
Code gets the status code for the update m t o service item precondition failed response
func (*UpdateMTOServiceItemPreconditionFailed) Error ¶
func (o *UpdateMTOServiceItemPreconditionFailed) Error() string
func (*UpdateMTOServiceItemPreconditionFailed) GetPayload ¶
func (o *UpdateMTOServiceItemPreconditionFailed) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemPreconditionFailed) IsClientError ¶
func (o *UpdateMTOServiceItemPreconditionFailed) IsClientError() bool
IsClientError returns true when this update m t o service item precondition failed response has a 4xx status code
func (*UpdateMTOServiceItemPreconditionFailed) IsCode ¶
func (o *UpdateMTOServiceItemPreconditionFailed) IsCode(code int) bool
IsCode returns true when this update m t o service item precondition failed response a status code equal to that given
func (*UpdateMTOServiceItemPreconditionFailed) IsRedirect ¶
func (o *UpdateMTOServiceItemPreconditionFailed) IsRedirect() bool
IsRedirect returns true when this update m t o service item precondition failed response has a 3xx status code
func (*UpdateMTOServiceItemPreconditionFailed) IsServerError ¶
func (o *UpdateMTOServiceItemPreconditionFailed) IsServerError() bool
IsServerError returns true when this update m t o service item precondition failed response has a 5xx status code
func (*UpdateMTOServiceItemPreconditionFailed) IsSuccess ¶
func (o *UpdateMTOServiceItemPreconditionFailed) IsSuccess() bool
IsSuccess returns true when this update m t o service item precondition failed response has a 2xx status code
func (*UpdateMTOServiceItemPreconditionFailed) String ¶
func (o *UpdateMTOServiceItemPreconditionFailed) String() string
type UpdateMTOServiceItemReader ¶
type UpdateMTOServiceItemReader struct {
// contains filtered or unexported fields
}
UpdateMTOServiceItemReader is a Reader for the UpdateMTOServiceItem structure.
func (*UpdateMTOServiceItemReader) ReadResponse ¶
func (o *UpdateMTOServiceItemReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateMTOServiceItemUnauthorized ¶
type UpdateMTOServiceItemUnauthorized struct {
}UpdateMTOServiceItemUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewUpdateMTOServiceItemUnauthorized ¶
func NewUpdateMTOServiceItemUnauthorized() *UpdateMTOServiceItemUnauthorized
NewUpdateMTOServiceItemUnauthorized creates a UpdateMTOServiceItemUnauthorized with default headers values
func (*UpdateMTOServiceItemUnauthorized) Code ¶
func (o *UpdateMTOServiceItemUnauthorized) Code() int
Code gets the status code for the update m t o service item unauthorized response
func (*UpdateMTOServiceItemUnauthorized) Error ¶
func (o *UpdateMTOServiceItemUnauthorized) Error() string
func (*UpdateMTOServiceItemUnauthorized) GetPayload ¶
func (o *UpdateMTOServiceItemUnauthorized) GetPayload() *primemessages.ClientError
func (*UpdateMTOServiceItemUnauthorized) IsClientError ¶
func (o *UpdateMTOServiceItemUnauthorized) IsClientError() bool
IsClientError returns true when this update m t o service item unauthorized response has a 4xx status code
func (*UpdateMTOServiceItemUnauthorized) IsCode ¶
func (o *UpdateMTOServiceItemUnauthorized) IsCode(code int) bool
IsCode returns true when this update m t o service item unauthorized response a status code equal to that given
func (*UpdateMTOServiceItemUnauthorized) IsRedirect ¶
func (o *UpdateMTOServiceItemUnauthorized) IsRedirect() bool
IsRedirect returns true when this update m t o service item unauthorized response has a 3xx status code
func (*UpdateMTOServiceItemUnauthorized) IsServerError ¶
func (o *UpdateMTOServiceItemUnauthorized) IsServerError() bool
IsServerError returns true when this update m t o service item unauthorized response has a 5xx status code
func (*UpdateMTOServiceItemUnauthorized) IsSuccess ¶
func (o *UpdateMTOServiceItemUnauthorized) IsSuccess() bool
IsSuccess returns true when this update m t o service item unauthorized response has a 2xx status code
func (*UpdateMTOServiceItemUnauthorized) String ¶
func (o *UpdateMTOServiceItemUnauthorized) String() string
type UpdateMTOServiceItemUnprocessableEntity ¶
type UpdateMTOServiceItemUnprocessableEntity struct {
Payload *primemessages.ValidationError
}
UpdateMTOServiceItemUnprocessableEntity describes a response with status code 422, with default header values.
The request was unprocessable, likely due to bad input from the requester.
func NewUpdateMTOServiceItemUnprocessableEntity ¶
func NewUpdateMTOServiceItemUnprocessableEntity() *UpdateMTOServiceItemUnprocessableEntity
NewUpdateMTOServiceItemUnprocessableEntity creates a UpdateMTOServiceItemUnprocessableEntity with default headers values
func (*UpdateMTOServiceItemUnprocessableEntity) Code ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) Code() int
Code gets the status code for the update m t o service item unprocessable entity response
func (*UpdateMTOServiceItemUnprocessableEntity) Error ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) Error() string
func (*UpdateMTOServiceItemUnprocessableEntity) GetPayload ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) GetPayload() *primemessages.ValidationError
func (*UpdateMTOServiceItemUnprocessableEntity) IsClientError ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update m t o service item unprocessable entity response has a 4xx status code
func (*UpdateMTOServiceItemUnprocessableEntity) IsCode ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update m t o service item unprocessable entity response a status code equal to that given
func (*UpdateMTOServiceItemUnprocessableEntity) IsRedirect ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update m t o service item unprocessable entity response has a 3xx status code
func (*UpdateMTOServiceItemUnprocessableEntity) IsServerError ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update m t o service item unprocessable entity response has a 5xx status code
func (*UpdateMTOServiceItemUnprocessableEntity) IsSuccess ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update m t o service item unprocessable entity response has a 2xx status code
func (*UpdateMTOServiceItemUnprocessableEntity) String ¶
func (o *UpdateMTOServiceItemUnprocessableEntity) String() string