mto_service_item

package
v0.0.0-...-c407d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateMTOServiceItemStatus

func (a *Client) UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, error)
UpdateMTOServiceItemStatus updates m t o service item status

Updates the status of a service item for a move to APPROVED or REJECTED. <br />

<br /> This is a support endpoint and will not be available in production.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, 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 UpdateMTOServiceItemStatusBadRequest

type UpdateMTOServiceItemStatusBadRequest struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusBadRequest describes a response with status code 400, with default header values.

The request payload is invalid.

func NewUpdateMTOServiceItemStatusBadRequest

func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest

NewUpdateMTOServiceItemStatusBadRequest creates a UpdateMTOServiceItemStatusBadRequest with default headers values

func (*UpdateMTOServiceItemStatusBadRequest) Code

Code gets the status code for the update m t o service item status bad request response

func (*UpdateMTOServiceItemStatusBadRequest) Error

func (*UpdateMTOServiceItemStatusBadRequest) GetPayload

func (*UpdateMTOServiceItemStatusBadRequest) IsClientError

func (o *UpdateMTOServiceItemStatusBadRequest) IsClientError() bool

IsClientError returns true when this update m t o service item status bad request response has a 4xx status code

func (*UpdateMTOServiceItemStatusBadRequest) IsCode

IsCode returns true when this update m t o service item status bad request response a status code equal to that given

func (*UpdateMTOServiceItemStatusBadRequest) IsRedirect

IsRedirect returns true when this update m t o service item status bad request response has a 3xx status code

func (*UpdateMTOServiceItemStatusBadRequest) IsServerError

func (o *UpdateMTOServiceItemStatusBadRequest) IsServerError() bool

IsServerError returns true when this update m t o service item status bad request response has a 5xx status code

func (*UpdateMTOServiceItemStatusBadRequest) IsSuccess

IsSuccess returns true when this update m t o service item status bad request response has a 2xx status code

func (*UpdateMTOServiceItemStatusBadRequest) String

type UpdateMTOServiceItemStatusConflict

type UpdateMTOServiceItemStatusConflict struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusConflict describes a response with status code 409, with default header values.

There was a conflict with the request.

func NewUpdateMTOServiceItemStatusConflict

func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict

NewUpdateMTOServiceItemStatusConflict creates a UpdateMTOServiceItemStatusConflict with default headers values

func (*UpdateMTOServiceItemStatusConflict) Code

Code gets the status code for the update m t o service item status conflict response

func (*UpdateMTOServiceItemStatusConflict) Error

func (*UpdateMTOServiceItemStatusConflict) GetPayload

func (*UpdateMTOServiceItemStatusConflict) IsClientError

func (o *UpdateMTOServiceItemStatusConflict) IsClientError() bool

IsClientError returns true when this update m t o service item status conflict response has a 4xx status code

func (*UpdateMTOServiceItemStatusConflict) IsCode

IsCode returns true when this update m t o service item status conflict response a status code equal to that given

func (*UpdateMTOServiceItemStatusConflict) IsRedirect

func (o *UpdateMTOServiceItemStatusConflict) IsRedirect() bool

IsRedirect returns true when this update m t o service item status conflict response has a 3xx status code

func (*UpdateMTOServiceItemStatusConflict) IsServerError

func (o *UpdateMTOServiceItemStatusConflict) IsServerError() bool

IsServerError returns true when this update m t o service item status conflict response has a 5xx status code

func (*UpdateMTOServiceItemStatusConflict) IsSuccess

IsSuccess returns true when this update m t o service item status conflict response has a 2xx status code

func (*UpdateMTOServiceItemStatusConflict) String

type UpdateMTOServiceItemStatusForbidden

type UpdateMTOServiceItemStatusForbidden struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusForbidden describes a response with status code 403, with default header values.

The request was denied.

func NewUpdateMTOServiceItemStatusForbidden

func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden

NewUpdateMTOServiceItemStatusForbidden creates a UpdateMTOServiceItemStatusForbidden with default headers values

func (*UpdateMTOServiceItemStatusForbidden) Code

Code gets the status code for the update m t o service item status forbidden response

func (*UpdateMTOServiceItemStatusForbidden) Error

func (*UpdateMTOServiceItemStatusForbidden) GetPayload

func (*UpdateMTOServiceItemStatusForbidden) IsClientError

func (o *UpdateMTOServiceItemStatusForbidden) IsClientError() bool

IsClientError returns true when this update m t o service item status forbidden response has a 4xx status code

func (*UpdateMTOServiceItemStatusForbidden) IsCode

IsCode returns true when this update m t o service item status forbidden response a status code equal to that given

func (*UpdateMTOServiceItemStatusForbidden) IsRedirect

func (o *UpdateMTOServiceItemStatusForbidden) IsRedirect() bool

IsRedirect returns true when this update m t o service item status forbidden response has a 3xx status code

func (*UpdateMTOServiceItemStatusForbidden) IsServerError

func (o *UpdateMTOServiceItemStatusForbidden) IsServerError() bool

IsServerError returns true when this update m t o service item status forbidden response has a 5xx status code

func (*UpdateMTOServiceItemStatusForbidden) IsSuccess

IsSuccess returns true when this update m t o service item status forbidden response has a 2xx status code

func (*UpdateMTOServiceItemStatusForbidden) String

type UpdateMTOServiceItemStatusInternalServerError

type UpdateMTOServiceItemStatusInternalServerError struct {
	Payload *supportmessages.Error
}

UpdateMTOServiceItemStatusInternalServerError describes a response with status code 500, with default header values.

A server error occurred.

func NewUpdateMTOServiceItemStatusInternalServerError

func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError

NewUpdateMTOServiceItemStatusInternalServerError creates a UpdateMTOServiceItemStatusInternalServerError with default headers values

func (*UpdateMTOServiceItemStatusInternalServerError) Code

Code gets the status code for the update m t o service item status internal server error response

func (*UpdateMTOServiceItemStatusInternalServerError) Error

func (*UpdateMTOServiceItemStatusInternalServerError) GetPayload

func (*UpdateMTOServiceItemStatusInternalServerError) IsClientError

IsClientError returns true when this update m t o service item status internal server error response has a 4xx status code

func (*UpdateMTOServiceItemStatusInternalServerError) IsCode

IsCode returns true when this update m t o service item status internal server error response a status code equal to that given

func (*UpdateMTOServiceItemStatusInternalServerError) IsRedirect

IsRedirect returns true when this update m t o service item status internal server error response has a 3xx status code

func (*UpdateMTOServiceItemStatusInternalServerError) IsServerError

IsServerError returns true when this update m t o service item status internal server error response has a 5xx status code

func (*UpdateMTOServiceItemStatusInternalServerError) IsSuccess

IsSuccess returns true when this update m t o service item status internal server error response has a 2xx status code

func (*UpdateMTOServiceItemStatusInternalServerError) String

type UpdateMTOServiceItemStatusNotFound

type UpdateMTOServiceItemStatusNotFound struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusNotFound describes a response with status code 404, with default header values.

The requested resource wasn't found.

func NewUpdateMTOServiceItemStatusNotFound

func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound

NewUpdateMTOServiceItemStatusNotFound creates a UpdateMTOServiceItemStatusNotFound with default headers values

func (*UpdateMTOServiceItemStatusNotFound) Code

Code gets the status code for the update m t o service item status not found response

func (*UpdateMTOServiceItemStatusNotFound) Error

func (*UpdateMTOServiceItemStatusNotFound) GetPayload

func (*UpdateMTOServiceItemStatusNotFound) IsClientError

func (o *UpdateMTOServiceItemStatusNotFound) IsClientError() bool

IsClientError returns true when this update m t o service item status not found response has a 4xx status code

func (*UpdateMTOServiceItemStatusNotFound) IsCode

IsCode returns true when this update m t o service item status not found response a status code equal to that given

func (*UpdateMTOServiceItemStatusNotFound) IsRedirect

func (o *UpdateMTOServiceItemStatusNotFound) IsRedirect() bool

IsRedirect returns true when this update m t o service item status not found response has a 3xx status code

func (*UpdateMTOServiceItemStatusNotFound) IsServerError

func (o *UpdateMTOServiceItemStatusNotFound) IsServerError() bool

IsServerError returns true when this update m t o service item status not found response has a 5xx status code

func (*UpdateMTOServiceItemStatusNotFound) IsSuccess

IsSuccess returns true when this update m t o service item status not found response has a 2xx status code

func (*UpdateMTOServiceItemStatusNotFound) String

type UpdateMTOServiceItemStatusOK

type UpdateMTOServiceItemStatusOK struct {
	Payload supportmessages.MTOServiceItem
}

UpdateMTOServiceItemStatusOK describes a response with status code 200, with default header values.

Successfully updated service item status for a move task order.

func NewUpdateMTOServiceItemStatusOK

func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK

NewUpdateMTOServiceItemStatusOK creates a UpdateMTOServiceItemStatusOK with default headers values

func (*UpdateMTOServiceItemStatusOK) Code

Code gets the status code for the update m t o service item status o k response

func (*UpdateMTOServiceItemStatusOK) Error

func (*UpdateMTOServiceItemStatusOK) GetPayload

func (*UpdateMTOServiceItemStatusOK) IsClientError

func (o *UpdateMTOServiceItemStatusOK) IsClientError() bool

IsClientError returns true when this update m t o service item status o k response has a 4xx status code

func (*UpdateMTOServiceItemStatusOK) IsCode

func (o *UpdateMTOServiceItemStatusOK) IsCode(code int) bool

IsCode returns true when this update m t o service item status o k response a status code equal to that given

func (*UpdateMTOServiceItemStatusOK) IsRedirect

func (o *UpdateMTOServiceItemStatusOK) IsRedirect() bool

IsRedirect returns true when this update m t o service item status o k response has a 3xx status code

func (*UpdateMTOServiceItemStatusOK) IsServerError

func (o *UpdateMTOServiceItemStatusOK) IsServerError() bool

IsServerError returns true when this update m t o service item status o k response has a 5xx status code

func (*UpdateMTOServiceItemStatusOK) IsSuccess

func (o *UpdateMTOServiceItemStatusOK) IsSuccess() bool

IsSuccess returns true when this update m t o service item status o k response has a 2xx status code

func (*UpdateMTOServiceItemStatusOK) String

type UpdateMTOServiceItemStatusParams

type UpdateMTOServiceItemStatusParams 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 *supportmessages.UpdateMTOServiceItemStatus

	/* MtoServiceItemID.

	   UUID of mto service item to use.
	*/
	MtoServiceItemID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateMTOServiceItemStatusParams contains all the parameters to send to the API endpoint

for the update m t o service item status operation.

Typically these are written to a http.Request.

func NewUpdateMTOServiceItemStatusParams

func NewUpdateMTOServiceItemStatusParams() *UpdateMTOServiceItemStatusParams

NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams 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 NewUpdateMTOServiceItemStatusParamsWithContext

func NewUpdateMTOServiceItemStatusParamsWithContext(ctx context.Context) *UpdateMTOServiceItemStatusParams

NewUpdateMTOServiceItemStatusParamsWithContext creates a new UpdateMTOServiceItemStatusParams object with the ability to set a context for a request.

func NewUpdateMTOServiceItemStatusParamsWithHTTPClient

func NewUpdateMTOServiceItemStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemStatusParams

NewUpdateMTOServiceItemStatusParamsWithHTTPClient creates a new UpdateMTOServiceItemStatusParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMTOServiceItemStatusParamsWithTimeout

func NewUpdateMTOServiceItemStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemStatusParams

NewUpdateMTOServiceItemStatusParamsWithTimeout creates a new UpdateMTOServiceItemStatusParams object with the ability to set a timeout on a request.

func (*UpdateMTOServiceItemStatusParams) SetBody

SetBody adds the body to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) SetContext

SetContext adds the context to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) SetDefaults

func (o *UpdateMTOServiceItemStatusParams) SetDefaults()

SetDefaults hydrates default values in the update m t o service item status params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMTOServiceItemStatusParams) SetHTTPClient

func (o *UpdateMTOServiceItemStatusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) SetIfMatch

func (o *UpdateMTOServiceItemStatusParams) SetIfMatch(ifMatch string)

SetIfMatch adds the ifMatch to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) SetMtoServiceItemID

func (o *UpdateMTOServiceItemStatusParams) SetMtoServiceItemID(mtoServiceItemID string)

SetMtoServiceItemID adds the mtoServiceItemId to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) SetTimeout

func (o *UpdateMTOServiceItemStatusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithBody

WithBody adds the body to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithContext

WithContext adds the context to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithDefaults

WithDefaults hydrates default values in the update m t o service item status params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMTOServiceItemStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithIfMatch

WithIfMatch adds the ifMatch to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithMtoServiceItemID

func (o *UpdateMTOServiceItemStatusParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemStatusParams

WithMtoServiceItemID adds the mtoServiceItemID to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WithTimeout

WithTimeout adds the timeout to the update m t o service item status params

func (*UpdateMTOServiceItemStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateMTOServiceItemStatusPreconditionFailed

type UpdateMTOServiceItemStatusPreconditionFailed struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusPreconditionFailed 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 NewUpdateMTOServiceItemStatusPreconditionFailed

func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed

NewUpdateMTOServiceItemStatusPreconditionFailed creates a UpdateMTOServiceItemStatusPreconditionFailed with default headers values

func (*UpdateMTOServiceItemStatusPreconditionFailed) Code

Code gets the status code for the update m t o service item status precondition failed response

func (*UpdateMTOServiceItemStatusPreconditionFailed) Error

func (*UpdateMTOServiceItemStatusPreconditionFailed) GetPayload

func (*UpdateMTOServiceItemStatusPreconditionFailed) IsClientError

IsClientError returns true when this update m t o service item status precondition failed response has a 4xx status code

func (*UpdateMTOServiceItemStatusPreconditionFailed) IsCode

IsCode returns true when this update m t o service item status precondition failed response a status code equal to that given

func (*UpdateMTOServiceItemStatusPreconditionFailed) IsRedirect

IsRedirect returns true when this update m t o service item status precondition failed response has a 3xx status code

func (*UpdateMTOServiceItemStatusPreconditionFailed) IsServerError

IsServerError returns true when this update m t o service item status precondition failed response has a 5xx status code

func (*UpdateMTOServiceItemStatusPreconditionFailed) IsSuccess

IsSuccess returns true when this update m t o service item status precondition failed response has a 2xx status code

func (*UpdateMTOServiceItemStatusPreconditionFailed) String

type UpdateMTOServiceItemStatusReader

type UpdateMTOServiceItemStatusReader struct {
	// contains filtered or unexported fields
}

UpdateMTOServiceItemStatusReader is a Reader for the UpdateMTOServiceItemStatus structure.

func (*UpdateMTOServiceItemStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateMTOServiceItemStatusUnauthorized

type UpdateMTOServiceItemStatusUnauthorized struct {
	Payload *supportmessages.ClientError
}

UpdateMTOServiceItemStatusUnauthorized describes a response with status code 401, with default header values.

The request was denied.

func NewUpdateMTOServiceItemStatusUnauthorized

func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized

NewUpdateMTOServiceItemStatusUnauthorized creates a UpdateMTOServiceItemStatusUnauthorized with default headers values

func (*UpdateMTOServiceItemStatusUnauthorized) Code

Code gets the status code for the update m t o service item status unauthorized response

func (*UpdateMTOServiceItemStatusUnauthorized) Error

func (*UpdateMTOServiceItemStatusUnauthorized) GetPayload

func (*UpdateMTOServiceItemStatusUnauthorized) IsClientError

func (o *UpdateMTOServiceItemStatusUnauthorized) IsClientError() bool

IsClientError returns true when this update m t o service item status unauthorized response has a 4xx status code

func (*UpdateMTOServiceItemStatusUnauthorized) IsCode

IsCode returns true when this update m t o service item status unauthorized response a status code equal to that given

func (*UpdateMTOServiceItemStatusUnauthorized) IsRedirect

IsRedirect returns true when this update m t o service item status unauthorized response has a 3xx status code

func (*UpdateMTOServiceItemStatusUnauthorized) IsServerError

func (o *UpdateMTOServiceItemStatusUnauthorized) IsServerError() bool

IsServerError returns true when this update m t o service item status unauthorized response has a 5xx status code

func (*UpdateMTOServiceItemStatusUnauthorized) IsSuccess

IsSuccess returns true when this update m t o service item status unauthorized response has a 2xx status code

func (*UpdateMTOServiceItemStatusUnauthorized) String

type UpdateMTOServiceItemStatusUnprocessableEntity

type UpdateMTOServiceItemStatusUnprocessableEntity struct {
	Payload *supportmessages.ValidationError
}

UpdateMTOServiceItemStatusUnprocessableEntity describes a response with status code 422, with default header values.

The payload was unprocessable.

func NewUpdateMTOServiceItemStatusUnprocessableEntity

func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity

NewUpdateMTOServiceItemStatusUnprocessableEntity creates a UpdateMTOServiceItemStatusUnprocessableEntity with default headers values

func (*UpdateMTOServiceItemStatusUnprocessableEntity) Code

Code gets the status code for the update m t o service item status unprocessable entity response

func (*UpdateMTOServiceItemStatusUnprocessableEntity) Error

func (*UpdateMTOServiceItemStatusUnprocessableEntity) GetPayload

func (*UpdateMTOServiceItemStatusUnprocessableEntity) IsClientError

IsClientError returns true when this update m t o service item status unprocessable entity response has a 4xx status code

func (*UpdateMTOServiceItemStatusUnprocessableEntity) IsCode

IsCode returns true when this update m t o service item status unprocessable entity response a status code equal to that given

func (*UpdateMTOServiceItemStatusUnprocessableEntity) IsRedirect

IsRedirect returns true when this update m t o service item status unprocessable entity response has a 3xx status code

func (*UpdateMTOServiceItemStatusUnprocessableEntity) IsServerError

IsServerError returns true when this update m t o service item status unprocessable entity response has a 5xx status code

func (*UpdateMTOServiceItemStatusUnprocessableEntity) IsSuccess

IsSuccess returns true when this update m t o service item status unprocessable entity response has a 2xx status code

func (*UpdateMTOServiceItemStatusUnprocessableEntity) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL