mto_service_item

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UpdateMTOServiceItemStatusBadRequestCode int = 400

UpdateMTOServiceItemStatusBadRequestCode is the HTTP code returned for type UpdateMTOServiceItemStatusBadRequest

View Source
const UpdateMTOServiceItemStatusConflictCode int = 409

UpdateMTOServiceItemStatusConflictCode is the HTTP code returned for type UpdateMTOServiceItemStatusConflict

View Source
const UpdateMTOServiceItemStatusForbiddenCode int = 403

UpdateMTOServiceItemStatusForbiddenCode is the HTTP code returned for type UpdateMTOServiceItemStatusForbidden

View Source
const UpdateMTOServiceItemStatusInternalServerErrorCode int = 500

UpdateMTOServiceItemStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOServiceItemStatusInternalServerError

View Source
const UpdateMTOServiceItemStatusNotFoundCode int = 404

UpdateMTOServiceItemStatusNotFoundCode is the HTTP code returned for type UpdateMTOServiceItemStatusNotFound

View Source
const UpdateMTOServiceItemStatusOKCode int = 200

UpdateMTOServiceItemStatusOKCode is the HTTP code returned for type UpdateMTOServiceItemStatusOK

View Source
const UpdateMTOServiceItemStatusPreconditionFailedCode int = 412

UpdateMTOServiceItemStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOServiceItemStatusPreconditionFailed

View Source
const UpdateMTOServiceItemStatusUnauthorizedCode int = 401

UpdateMTOServiceItemStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnauthorized

View Source
const UpdateMTOServiceItemStatusUnprocessableEntityCode int = 422

UpdateMTOServiceItemStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateMTOServiceItemStatus

type UpdateMTOServiceItemStatus struct {
	Context *middleware.Context
	Handler UpdateMTOServiceItemStatusHandler
}
UpdateMTOServiceItemStatus swagger:route PATCH /mto-service-items/{mtoServiceItemID}/status mtoServiceItem updateMTOServiceItemStatus

updateMTOServiceItemStatus

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.

func NewUpdateMTOServiceItemStatus

func NewUpdateMTOServiceItemStatus(ctx *middleware.Context, handler UpdateMTOServiceItemStatusHandler) *UpdateMTOServiceItemStatus

NewUpdateMTOServiceItemStatus creates a new http.Handler for the update m t o service item status operation

func (*UpdateMTOServiceItemStatus) ServeHTTP

type UpdateMTOServiceItemStatusBadRequest

type UpdateMTOServiceItemStatusBadRequest struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusBadRequest The request payload is invalid.

swagger:response updateMTOServiceItemStatusBadRequest

func NewUpdateMTOServiceItemStatusBadRequest

func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest

NewUpdateMTOServiceItemStatusBadRequest creates UpdateMTOServiceItemStatusBadRequest with default headers values

func (*UpdateMTOServiceItemStatusBadRequest) SetPayload

SetPayload sets the payload to the update m t o service item status bad request response

func (*UpdateMTOServiceItemStatusBadRequest) WithPayload

WithPayload adds the payload to the update m t o service item status bad request response

func (*UpdateMTOServiceItemStatusBadRequest) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusConflict

type UpdateMTOServiceItemStatusConflict struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusConflict There was a conflict with the request.

swagger:response updateMTOServiceItemStatusConflict

func NewUpdateMTOServiceItemStatusConflict

func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict

NewUpdateMTOServiceItemStatusConflict creates UpdateMTOServiceItemStatusConflict with default headers values

func (*UpdateMTOServiceItemStatusConflict) SetPayload

SetPayload sets the payload to the update m t o service item status conflict response

func (*UpdateMTOServiceItemStatusConflict) WithPayload

WithPayload adds the payload to the update m t o service item status conflict response

func (*UpdateMTOServiceItemStatusConflict) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusForbidden

type UpdateMTOServiceItemStatusForbidden struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusForbidden The request was denied.

swagger:response updateMTOServiceItemStatusForbidden

func NewUpdateMTOServiceItemStatusForbidden

func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden

NewUpdateMTOServiceItemStatusForbidden creates UpdateMTOServiceItemStatusForbidden with default headers values

func (*UpdateMTOServiceItemStatusForbidden) SetPayload

SetPayload sets the payload to the update m t o service item status forbidden response

func (*UpdateMTOServiceItemStatusForbidden) WithPayload

WithPayload adds the payload to the update m t o service item status forbidden response

func (*UpdateMTOServiceItemStatusForbidden) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusHandler

type UpdateMTOServiceItemStatusHandler interface {
	Handle(UpdateMTOServiceItemStatusParams) middleware.Responder
}

UpdateMTOServiceItemStatusHandler interface for that can handle valid update m t o service item status params

type UpdateMTOServiceItemStatusHandlerFunc

type UpdateMTOServiceItemStatusHandlerFunc func(UpdateMTOServiceItemStatusParams) middleware.Responder

UpdateMTOServiceItemStatusHandlerFunc turns a function with the right signature into a update m t o service item status handler

func (UpdateMTOServiceItemStatusHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateMTOServiceItemStatusInternalServerError

type UpdateMTOServiceItemStatusInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.Error `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusInternalServerError A server error occurred.

swagger:response updateMTOServiceItemStatusInternalServerError

func NewUpdateMTOServiceItemStatusInternalServerError

func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError

NewUpdateMTOServiceItemStatusInternalServerError creates UpdateMTOServiceItemStatusInternalServerError with default headers values

func (*UpdateMTOServiceItemStatusInternalServerError) SetPayload

SetPayload sets the payload to the update m t o service item status internal server error response

func (*UpdateMTOServiceItemStatusInternalServerError) WithPayload

WithPayload adds the payload to the update m t o service item status internal server error response

func (*UpdateMTOServiceItemStatusInternalServerError) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusNotFound

type UpdateMTOServiceItemStatusNotFound struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusNotFound The requested resource wasn't found.

swagger:response updateMTOServiceItemStatusNotFound

func NewUpdateMTOServiceItemStatusNotFound

func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound

NewUpdateMTOServiceItemStatusNotFound creates UpdateMTOServiceItemStatusNotFound with default headers values

func (*UpdateMTOServiceItemStatusNotFound) SetPayload

SetPayload sets the payload to the update m t o service item status not found response

func (*UpdateMTOServiceItemStatusNotFound) WithPayload

WithPayload adds the payload to the update m t o service item status not found response

func (*UpdateMTOServiceItemStatusNotFound) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusOK

type UpdateMTOServiceItemStatusOK struct {

	/*
	  In: Body
	*/
	Payload supportmessages.MTOServiceItem `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusOK Successfully updated service item status for a move task order.

swagger:response updateMTOServiceItemStatusOK

func NewUpdateMTOServiceItemStatusOK

func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK

NewUpdateMTOServiceItemStatusOK creates UpdateMTOServiceItemStatusOK with default headers values

func (*UpdateMTOServiceItemStatusOK) SetPayload

SetPayload sets the payload to the update m t o service item status o k response

func (*UpdateMTOServiceItemStatusOK) WithPayload

WithPayload adds the payload to the update m t o service item status o k response

func (*UpdateMTOServiceItemStatusOK) WriteResponse

func (o *UpdateMTOServiceItemStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOServiceItemStatusParams

type UpdateMTOServiceItemStatusParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*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.

	  Required: true
	  In: header
	*/
	IfMatch string
	/*
	  Required: true
	  In: body
	*/
	Body *supportmessages.UpdateMTOServiceItemStatus
	/*UUID of mto service item to use.
	  Required: true
	  In: path
	*/
	MtoServiceItemID string
}

UpdateMTOServiceItemStatusParams contains all the bound params for the update m t o service item status operation typically these are obtained from a http.Request

swagger:parameters updateMTOServiceItemStatus

func NewUpdateMTOServiceItemStatusParams

func NewUpdateMTOServiceItemStatusParams() UpdateMTOServiceItemStatusParams

NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams object

There are no default values defined in the spec.

func (*UpdateMTOServiceItemStatusParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateMTOServiceItemStatusParams() beforehand.

type UpdateMTOServiceItemStatusPreconditionFailed

type UpdateMTOServiceItemStatusPreconditionFailed struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.

swagger:response updateMTOServiceItemStatusPreconditionFailed

func NewUpdateMTOServiceItemStatusPreconditionFailed

func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed

NewUpdateMTOServiceItemStatusPreconditionFailed creates UpdateMTOServiceItemStatusPreconditionFailed with default headers values

func (*UpdateMTOServiceItemStatusPreconditionFailed) SetPayload

SetPayload sets the payload to the update m t o service item status precondition failed response

func (*UpdateMTOServiceItemStatusPreconditionFailed) WithPayload

WithPayload adds the payload to the update m t o service item status precondition failed response

func (*UpdateMTOServiceItemStatusPreconditionFailed) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusURL

type UpdateMTOServiceItemStatusURL struct {
	MtoServiceItemID string
	// contains filtered or unexported fields
}

UpdateMTOServiceItemStatusURL generates an URL for the update m t o service item status operation

func (*UpdateMTOServiceItemStatusURL) Build

func (o *UpdateMTOServiceItemStatusURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateMTOServiceItemStatusURL) BuildFull

func (o *UpdateMTOServiceItemStatusURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateMTOServiceItemStatusURL) Must

func (o *UpdateMTOServiceItemStatusURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateMTOServiceItemStatusURL) SetBasePath

func (o *UpdateMTOServiceItemStatusURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateMTOServiceItemStatusURL) String

String returns the string representation of the path with query string

func (*UpdateMTOServiceItemStatusURL) StringFull

func (o *UpdateMTOServiceItemStatusURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateMTOServiceItemStatusURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateMTOServiceItemStatusUnauthorized

type UpdateMTOServiceItemStatusUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusUnauthorized The request was denied.

swagger:response updateMTOServiceItemStatusUnauthorized

func NewUpdateMTOServiceItemStatusUnauthorized

func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized

NewUpdateMTOServiceItemStatusUnauthorized creates UpdateMTOServiceItemStatusUnauthorized with default headers values

func (*UpdateMTOServiceItemStatusUnauthorized) SetPayload

SetPayload sets the payload to the update m t o service item status unauthorized response

func (*UpdateMTOServiceItemStatusUnauthorized) WithPayload

WithPayload adds the payload to the update m t o service item status unauthorized response

func (*UpdateMTOServiceItemStatusUnauthorized) WriteResponse

WriteResponse to the client

type UpdateMTOServiceItemStatusUnprocessableEntity

type UpdateMTOServiceItemStatusUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *supportmessages.ValidationError `json:"body,omitempty"`
}

UpdateMTOServiceItemStatusUnprocessableEntity The payload was unprocessable.

swagger:response updateMTOServiceItemStatusUnprocessableEntity

func NewUpdateMTOServiceItemStatusUnprocessableEntity

func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity

NewUpdateMTOServiceItemStatusUnprocessableEntity creates UpdateMTOServiceItemStatusUnprocessableEntity with default headers values

func (*UpdateMTOServiceItemStatusUnprocessableEntity) SetPayload

SetPayload sets the payload to the update m t o service item status unprocessable entity response

func (*UpdateMTOServiceItemStatusUnprocessableEntity) WithPayload

WithPayload adds the payload to the update m t o service item status unprocessable entity response

func (*UpdateMTOServiceItemStatusUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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