moves

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetAllMovesForbiddenCode int = 403

GetAllMovesForbiddenCode is the HTTP code returned for type GetAllMovesForbidden

View Source
const GetAllMovesInternalServerErrorCode int = 500

GetAllMovesInternalServerErrorCode is the HTTP code returned for type GetAllMovesInternalServerError

View Source
const GetAllMovesOKCode int = 200

GetAllMovesOKCode is the HTTP code returned for type GetAllMovesOK

View Source
const GetAllMovesUnauthorizedCode int = 401

GetAllMovesUnauthorizedCode is the HTTP code returned for type GetAllMovesUnauthorized

View Source
const PatchMoveBadRequestCode int = 400

PatchMoveBadRequestCode is the HTTP code returned for type PatchMoveBadRequest

View Source
const PatchMoveForbiddenCode int = 403

PatchMoveForbiddenCode is the HTTP code returned for type PatchMoveForbidden

View Source
const PatchMoveInternalServerErrorCode int = 500

PatchMoveInternalServerErrorCode is the HTTP code returned for type PatchMoveInternalServerError

View Source
const PatchMoveNotFoundCode int = 404

PatchMoveNotFoundCode is the HTTP code returned for type PatchMoveNotFound

View Source
const PatchMoveOKCode int = 200

PatchMoveOKCode is the HTTP code returned for type PatchMoveOK

View Source
const PatchMovePreconditionFailedCode int = 412

PatchMovePreconditionFailedCode is the HTTP code returned for type PatchMovePreconditionFailed

View Source
const PatchMoveUnauthorizedCode int = 401

PatchMoveUnauthorizedCode is the HTTP code returned for type PatchMoveUnauthorized

View Source
const PatchMoveUnprocessableEntityCode int = 422

PatchMoveUnprocessableEntityCode is the HTTP code returned for type PatchMoveUnprocessableEntity

View Source
const ShowMoveBadRequestCode int = 400

ShowMoveBadRequestCode is the HTTP code returned for type ShowMoveBadRequest

View Source
const ShowMoveForbiddenCode int = 403

ShowMoveForbiddenCode is the HTTP code returned for type ShowMoveForbidden

View Source
const ShowMoveInternalServerErrorCode int = 500

ShowMoveInternalServerErrorCode is the HTTP code returned for type ShowMoveInternalServerError

View Source
const ShowMoveNotFoundCode int = 404

ShowMoveNotFoundCode is the HTTP code returned for type ShowMoveNotFound

View Source
const ShowMoveOKCode int = 200

ShowMoveOKCode is the HTTP code returned for type ShowMoveOK

View Source
const ShowMoveUnauthorizedCode int = 401

ShowMoveUnauthorizedCode is the HTTP code returned for type ShowMoveUnauthorized

View Source
const SubmitAmendedOrdersBadRequestCode int = 400

SubmitAmendedOrdersBadRequestCode is the HTTP code returned for type SubmitAmendedOrdersBadRequest

View Source
const SubmitAmendedOrdersConflictCode int = 409

SubmitAmendedOrdersConflictCode is the HTTP code returned for type SubmitAmendedOrdersConflict

View Source
const SubmitAmendedOrdersForbiddenCode int = 403

SubmitAmendedOrdersForbiddenCode is the HTTP code returned for type SubmitAmendedOrdersForbidden

View Source
const SubmitAmendedOrdersInternalServerErrorCode int = 500

SubmitAmendedOrdersInternalServerErrorCode is the HTTP code returned for type SubmitAmendedOrdersInternalServerError

View Source
const SubmitAmendedOrdersOKCode int = 200

SubmitAmendedOrdersOKCode is the HTTP code returned for type SubmitAmendedOrdersOK

View Source
const SubmitAmendedOrdersUnauthorizedCode int = 401

SubmitAmendedOrdersUnauthorizedCode is the HTTP code returned for type SubmitAmendedOrdersUnauthorized

View Source
const SubmitMoveForApprovalBadRequestCode int = 400

SubmitMoveForApprovalBadRequestCode is the HTTP code returned for type SubmitMoveForApprovalBadRequest

View Source
const SubmitMoveForApprovalConflictCode int = 409

SubmitMoveForApprovalConflictCode is the HTTP code returned for type SubmitMoveForApprovalConflict

View Source
const SubmitMoveForApprovalForbiddenCode int = 403

SubmitMoveForApprovalForbiddenCode is the HTTP code returned for type SubmitMoveForApprovalForbidden

View Source
const SubmitMoveForApprovalInternalServerErrorCode int = 500

SubmitMoveForApprovalInternalServerErrorCode is the HTTP code returned for type SubmitMoveForApprovalInternalServerError

View Source
const SubmitMoveForApprovalOKCode int = 200

SubmitMoveForApprovalOKCode is the HTTP code returned for type SubmitMoveForApprovalOK

View Source
const SubmitMoveForApprovalUnauthorizedCode int = 401

SubmitMoveForApprovalUnauthorizedCode is the HTTP code returned for type SubmitMoveForApprovalUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAllMoves

type GetAllMoves struct {
	Context *middleware.Context
	Handler GetAllMovesHandler
}
GetAllMoves swagger:route GET /allmoves/{serviceMemberId} moves getAllMoves

Return the current and previous moves of a service member

This endpoint gets all moves that belongs to the serviceMember by using the service members id. In a previous moves array and the current move in the current move array. The current move is the move with the latest CreatedAt date. All other moves will go into the previous move array.

func NewGetAllMoves

func NewGetAllMoves(ctx *middleware.Context, handler GetAllMovesHandler) *GetAllMoves

NewGetAllMoves creates a new http.Handler for the get all moves operation

func (*GetAllMoves) ServeHTTP

func (o *GetAllMoves) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAllMovesForbidden

type GetAllMovesForbidden struct {

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

GetAllMovesForbidden The request was denied.

swagger:response getAllMovesForbidden

func NewGetAllMovesForbidden

func NewGetAllMovesForbidden() *GetAllMovesForbidden

NewGetAllMovesForbidden creates GetAllMovesForbidden with default headers values

func (*GetAllMovesForbidden) SetPayload

func (o *GetAllMovesForbidden) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the get all moves forbidden response

func (*GetAllMovesForbidden) WithPayload

WithPayload adds the payload to the get all moves forbidden response

func (*GetAllMovesForbidden) WriteResponse

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

WriteResponse to the client

type GetAllMovesHandler

type GetAllMovesHandler interface {
	Handle(GetAllMovesParams) middleware.Responder
}

GetAllMovesHandler interface for that can handle valid get all moves params

type GetAllMovesHandlerFunc

type GetAllMovesHandlerFunc func(GetAllMovesParams) middleware.Responder

GetAllMovesHandlerFunc turns a function with the right signature into a get all moves handler

func (GetAllMovesHandlerFunc) Handle

Handle executing the request and returning a response

type GetAllMovesInternalServerError

type GetAllMovesInternalServerError struct {

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

GetAllMovesInternalServerError A server error occurred.

swagger:response getAllMovesInternalServerError

func NewGetAllMovesInternalServerError

func NewGetAllMovesInternalServerError() *GetAllMovesInternalServerError

NewGetAllMovesInternalServerError creates GetAllMovesInternalServerError with default headers values

func (*GetAllMovesInternalServerError) SetPayload

func (o *GetAllMovesInternalServerError) SetPayload(payload *internalmessages.Error)

SetPayload sets the payload to the get all moves internal server error response

func (*GetAllMovesInternalServerError) WithPayload

WithPayload adds the payload to the get all moves internal server error response

func (*GetAllMovesInternalServerError) WriteResponse

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

WriteResponse to the client

type GetAllMovesOK

type GetAllMovesOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovesList `json:"body,omitempty"`
}

GetAllMovesOK Successfully retrieved moves. A successful fetch might still return zero moves.

swagger:response getAllMovesOK

func NewGetAllMovesOK

func NewGetAllMovesOK() *GetAllMovesOK

NewGetAllMovesOK creates GetAllMovesOK with default headers values

func (*GetAllMovesOK) SetPayload

func (o *GetAllMovesOK) SetPayload(payload *internalmessages.MovesList)

SetPayload sets the payload to the get all moves o k response

func (*GetAllMovesOK) WithPayload

func (o *GetAllMovesOK) WithPayload(payload *internalmessages.MovesList) *GetAllMovesOK

WithPayload adds the payload to the get all moves o k response

func (*GetAllMovesOK) WriteResponse

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

WriteResponse to the client

type GetAllMovesParams

type GetAllMovesParams struct {

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

	/*UUID of the service member
	  Required: true
	  In: path
	*/
	ServiceMemberID strfmt.UUID
}

GetAllMovesParams contains all the bound params for the get all moves operation typically these are obtained from a http.Request

swagger:parameters getAllMoves

func NewGetAllMovesParams

func NewGetAllMovesParams() GetAllMovesParams

NewGetAllMovesParams creates a new GetAllMovesParams object

There are no default values defined in the spec.

func (*GetAllMovesParams) BindRequest

func (o *GetAllMovesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetAllMovesParams() beforehand.

type GetAllMovesURL

type GetAllMovesURL struct {
	ServiceMemberID strfmt.UUID
	// contains filtered or unexported fields
}

GetAllMovesURL generates an URL for the get all moves operation

func (*GetAllMovesURL) Build

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

Build a url path and query string

func (*GetAllMovesURL) BuildFull

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

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

func (*GetAllMovesURL) Must

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

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

func (*GetAllMovesURL) SetBasePath

func (o *GetAllMovesURL) 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 (*GetAllMovesURL) String

func (o *GetAllMovesURL) String() string

String returns the string representation of the path with query string

func (*GetAllMovesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAllMovesURL) WithBasePath

func (o *GetAllMovesURL) WithBasePath(bp string) *GetAllMovesURL

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 GetAllMovesUnauthorized

type GetAllMovesUnauthorized struct {

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

GetAllMovesUnauthorized The request was denied.

swagger:response getAllMovesUnauthorized

func NewGetAllMovesUnauthorized

func NewGetAllMovesUnauthorized() *GetAllMovesUnauthorized

NewGetAllMovesUnauthorized creates GetAllMovesUnauthorized with default headers values

func (*GetAllMovesUnauthorized) SetPayload

func (o *GetAllMovesUnauthorized) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the get all moves unauthorized response

func (*GetAllMovesUnauthorized) WithPayload

WithPayload adds the payload to the get all moves unauthorized response

func (*GetAllMovesUnauthorized) WriteResponse

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

WriteResponse to the client

type PatchMove

type PatchMove struct {
	Context *middleware.Context
	Handler PatchMoveHandler
}
PatchMove swagger:route PATCH /moves/{moveId} moves patchMove

Patches the move

Any fields sent in this request will be set on the move referenced

func NewPatchMove

func NewPatchMove(ctx *middleware.Context, handler PatchMoveHandler) *PatchMove

NewPatchMove creates a new http.Handler for the patch move operation

func (*PatchMove) ServeHTTP

func (o *PatchMove) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PatchMoveBadRequest

type PatchMoveBadRequest struct {
}

PatchMoveBadRequest invalid request

swagger:response patchMoveBadRequest

func NewPatchMoveBadRequest

func NewPatchMoveBadRequest() *PatchMoveBadRequest

NewPatchMoveBadRequest creates PatchMoveBadRequest with default headers values

func (*PatchMoveBadRequest) WriteResponse

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

WriteResponse to the client

type PatchMoveForbidden

type PatchMoveForbidden struct {
}

PatchMoveForbidden user is not authorized

swagger:response patchMoveForbidden

func NewPatchMoveForbidden

func NewPatchMoveForbidden() *PatchMoveForbidden

NewPatchMoveForbidden creates PatchMoveForbidden with default headers values

func (*PatchMoveForbidden) WriteResponse

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

WriteResponse to the client

type PatchMoveHandler

type PatchMoveHandler interface {
	Handle(PatchMoveParams) middleware.Responder
}

PatchMoveHandler interface for that can handle valid patch move params

type PatchMoveHandlerFunc

type PatchMoveHandlerFunc func(PatchMoveParams) middleware.Responder

PatchMoveHandlerFunc turns a function with the right signature into a patch move handler

func (PatchMoveHandlerFunc) Handle

Handle executing the request and returning a response

type PatchMoveInternalServerError

type PatchMoveInternalServerError struct {
}

PatchMoveInternalServerError internal server error

swagger:response patchMoveInternalServerError

func NewPatchMoveInternalServerError

func NewPatchMoveInternalServerError() *PatchMoveInternalServerError

NewPatchMoveInternalServerError creates PatchMoveInternalServerError with default headers values

func (*PatchMoveInternalServerError) WriteResponse

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

WriteResponse to the client

type PatchMoveNotFound

type PatchMoveNotFound struct {
}

PatchMoveNotFound move or closeout office is not found

swagger:response patchMoveNotFound

func NewPatchMoveNotFound

func NewPatchMoveNotFound() *PatchMoveNotFound

NewPatchMoveNotFound creates PatchMoveNotFound with default headers values

func (*PatchMoveNotFound) WriteResponse

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

WriteResponse to the client

type PatchMoveOK

type PatchMoveOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

PatchMoveOK updated instance of move

swagger:response patchMoveOK

func NewPatchMoveOK

func NewPatchMoveOK() *PatchMoveOK

NewPatchMoveOK creates PatchMoveOK with default headers values

func (*PatchMoveOK) SetPayload

func (o *PatchMoveOK) SetPayload(payload *internalmessages.MovePayload)

SetPayload sets the payload to the patch move o k response

func (*PatchMoveOK) WithPayload

func (o *PatchMoveOK) WithPayload(payload *internalmessages.MovePayload) *PatchMoveOK

WithPayload adds the payload to the patch move o k response

func (*PatchMoveOK) WriteResponse

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

WriteResponse to the client

type PatchMoveParams

type PatchMoveParams 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
	/*UUID of the move
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
	/*
	  Required: true
	  In: body
	*/
	PatchMovePayload *internalmessages.PatchMovePayload
}

PatchMoveParams contains all the bound params for the patch move operation typically these are obtained from a http.Request

swagger:parameters patchMove

func NewPatchMoveParams

func NewPatchMoveParams() PatchMoveParams

NewPatchMoveParams creates a new PatchMoveParams object

There are no default values defined in the spec.

func (*PatchMoveParams) BindRequest

func (o *PatchMoveParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewPatchMoveParams() beforehand.

type PatchMovePreconditionFailed

type PatchMovePreconditionFailed struct {
}

PatchMovePreconditionFailed precondition failed

swagger:response patchMovePreconditionFailed

func NewPatchMovePreconditionFailed

func NewPatchMovePreconditionFailed() *PatchMovePreconditionFailed

NewPatchMovePreconditionFailed creates PatchMovePreconditionFailed with default headers values

func (*PatchMovePreconditionFailed) WriteResponse

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

WriteResponse to the client

type PatchMoveURL

type PatchMoveURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

PatchMoveURL generates an URL for the patch move operation

func (*PatchMoveURL) Build

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

Build a url path and query string

func (*PatchMoveURL) BuildFull

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

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

func (*PatchMoveURL) Must

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

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

func (*PatchMoveURL) SetBasePath

func (o *PatchMoveURL) 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 (*PatchMoveURL) String

func (o *PatchMoveURL) String() string

String returns the string representation of the path with query string

func (*PatchMoveURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchMoveURL) WithBasePath

func (o *PatchMoveURL) WithBasePath(bp string) *PatchMoveURL

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 PatchMoveUnauthorized

type PatchMoveUnauthorized struct {
}

PatchMoveUnauthorized request requires user authentication

swagger:response patchMoveUnauthorized

func NewPatchMoveUnauthorized

func NewPatchMoveUnauthorized() *PatchMoveUnauthorized

NewPatchMoveUnauthorized creates PatchMoveUnauthorized with default headers values

func (*PatchMoveUnauthorized) WriteResponse

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

WriteResponse to the client

type PatchMoveUnprocessableEntity

type PatchMoveUnprocessableEntity struct {
}

PatchMoveUnprocessableEntity unprocessable entity

swagger:response patchMoveUnprocessableEntity

func NewPatchMoveUnprocessableEntity

func NewPatchMoveUnprocessableEntity() *PatchMoveUnprocessableEntity

NewPatchMoveUnprocessableEntity creates PatchMoveUnprocessableEntity with default headers values

func (*PatchMoveUnprocessableEntity) WriteResponse

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

WriteResponse to the client

type ShowMove

type ShowMove struct {
	Context *middleware.Context
	Handler ShowMoveHandler
}
ShowMove swagger:route GET /moves/{moveId} moves showMove

Returns the given move

Returns the given move

func NewShowMove

func NewShowMove(ctx *middleware.Context, handler ShowMoveHandler) *ShowMove

NewShowMove creates a new http.Handler for the show move operation

func (*ShowMove) ServeHTTP

func (o *ShowMove) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ShowMoveBadRequest

type ShowMoveBadRequest struct {
}

ShowMoveBadRequest invalid request

swagger:response showMoveBadRequest

func NewShowMoveBadRequest

func NewShowMoveBadRequest() *ShowMoveBadRequest

NewShowMoveBadRequest creates ShowMoveBadRequest with default headers values

func (*ShowMoveBadRequest) WriteResponse

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

WriteResponse to the client

type ShowMoveForbidden

type ShowMoveForbidden struct {
}

ShowMoveForbidden user is not authorized

swagger:response showMoveForbidden

func NewShowMoveForbidden

func NewShowMoveForbidden() *ShowMoveForbidden

NewShowMoveForbidden creates ShowMoveForbidden with default headers values

func (*ShowMoveForbidden) WriteResponse

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

WriteResponse to the client

type ShowMoveHandler

type ShowMoveHandler interface {
	Handle(ShowMoveParams) middleware.Responder
}

ShowMoveHandler interface for that can handle valid show move params

type ShowMoveHandlerFunc

type ShowMoveHandlerFunc func(ShowMoveParams) middleware.Responder

ShowMoveHandlerFunc turns a function with the right signature into a show move handler

func (ShowMoveHandlerFunc) Handle

Handle executing the request and returning a response

type ShowMoveInternalServerError

type ShowMoveInternalServerError struct {
}

ShowMoveInternalServerError internal server error

swagger:response showMoveInternalServerError

func NewShowMoveInternalServerError

func NewShowMoveInternalServerError() *ShowMoveInternalServerError

NewShowMoveInternalServerError creates ShowMoveInternalServerError with default headers values

func (*ShowMoveInternalServerError) WriteResponse

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

WriteResponse to the client

type ShowMoveNotFound

type ShowMoveNotFound struct {
}

ShowMoveNotFound move is not found

swagger:response showMoveNotFound

func NewShowMoveNotFound

func NewShowMoveNotFound() *ShowMoveNotFound

NewShowMoveNotFound creates ShowMoveNotFound with default headers values

func (*ShowMoveNotFound) WriteResponse

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

WriteResponse to the client

type ShowMoveOK

type ShowMoveOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

ShowMoveOK the instance of the move

swagger:response showMoveOK

func NewShowMoveOK

func NewShowMoveOK() *ShowMoveOK

NewShowMoveOK creates ShowMoveOK with default headers values

func (*ShowMoveOK) SetPayload

func (o *ShowMoveOK) SetPayload(payload *internalmessages.MovePayload)

SetPayload sets the payload to the show move o k response

func (*ShowMoveOK) WithPayload

func (o *ShowMoveOK) WithPayload(payload *internalmessages.MovePayload) *ShowMoveOK

WithPayload adds the payload to the show move o k response

func (*ShowMoveOK) WriteResponse

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

WriteResponse to the client

type ShowMoveParams

type ShowMoveParams struct {

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

	/*UUID of the move
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
}

ShowMoveParams contains all the bound params for the show move operation typically these are obtained from a http.Request

swagger:parameters showMove

func NewShowMoveParams

func NewShowMoveParams() ShowMoveParams

NewShowMoveParams creates a new ShowMoveParams object

There are no default values defined in the spec.

func (*ShowMoveParams) BindRequest

func (o *ShowMoveParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewShowMoveParams() beforehand.

type ShowMoveURL

type ShowMoveURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

ShowMoveURL generates an URL for the show move operation

func (*ShowMoveURL) Build

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

Build a url path and query string

func (*ShowMoveURL) BuildFull

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

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

func (*ShowMoveURL) Must

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

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

func (*ShowMoveURL) SetBasePath

func (o *ShowMoveURL) 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 (*ShowMoveURL) String

func (o *ShowMoveURL) String() string

String returns the string representation of the path with query string

func (*ShowMoveURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShowMoveURL) WithBasePath

func (o *ShowMoveURL) WithBasePath(bp string) *ShowMoveURL

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 ShowMoveUnauthorized

type ShowMoveUnauthorized struct {
}

ShowMoveUnauthorized request requires user authentication

swagger:response showMoveUnauthorized

func NewShowMoveUnauthorized

func NewShowMoveUnauthorized() *ShowMoveUnauthorized

NewShowMoveUnauthorized creates ShowMoveUnauthorized with default headers values

func (*ShowMoveUnauthorized) WriteResponse

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

WriteResponse to the client

type SubmitAmendedOrders

type SubmitAmendedOrders struct {
	Context *middleware.Context
	Handler SubmitAmendedOrdersHandler
}
SubmitAmendedOrders swagger:route POST /moves/{moveId}/submit_amended_orders moves submitAmendedOrders

Submits amended orders for review

Submits amended orders for review by the office. The status of the move will be updated to an appropriate status depending on whether it needs services counseling or not.

func NewSubmitAmendedOrders

func NewSubmitAmendedOrders(ctx *middleware.Context, handler SubmitAmendedOrdersHandler) *SubmitAmendedOrders

NewSubmitAmendedOrders creates a new http.Handler for the submit amended orders operation

func (*SubmitAmendedOrders) ServeHTTP

func (o *SubmitAmendedOrders) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type SubmitAmendedOrdersBadRequest

type SubmitAmendedOrdersBadRequest struct {
}

SubmitAmendedOrdersBadRequest invalid request

swagger:response submitAmendedOrdersBadRequest

func NewSubmitAmendedOrdersBadRequest

func NewSubmitAmendedOrdersBadRequest() *SubmitAmendedOrdersBadRequest

NewSubmitAmendedOrdersBadRequest creates SubmitAmendedOrdersBadRequest with default headers values

func (*SubmitAmendedOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type SubmitAmendedOrdersConflict

type SubmitAmendedOrdersConflict struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

SubmitAmendedOrdersConflict the move is not in a state to be approved

swagger:response submitAmendedOrdersConflict

func NewSubmitAmendedOrdersConflict

func NewSubmitAmendedOrdersConflict() *SubmitAmendedOrdersConflict

NewSubmitAmendedOrdersConflict creates SubmitAmendedOrdersConflict with default headers values

func (*SubmitAmendedOrdersConflict) SetPayload

SetPayload sets the payload to the submit amended orders conflict response

func (*SubmitAmendedOrdersConflict) WithPayload

WithPayload adds the payload to the submit amended orders conflict response

func (*SubmitAmendedOrdersConflict) WriteResponse

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

WriteResponse to the client

type SubmitAmendedOrdersForbidden

type SubmitAmendedOrdersForbidden struct {
}

SubmitAmendedOrdersForbidden not authorized to approve this move

swagger:response submitAmendedOrdersForbidden

func NewSubmitAmendedOrdersForbidden

func NewSubmitAmendedOrdersForbidden() *SubmitAmendedOrdersForbidden

NewSubmitAmendedOrdersForbidden creates SubmitAmendedOrdersForbidden with default headers values

func (*SubmitAmendedOrdersForbidden) WriteResponse

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

WriteResponse to the client

type SubmitAmendedOrdersHandler

type SubmitAmendedOrdersHandler interface {
	Handle(SubmitAmendedOrdersParams) middleware.Responder
}

SubmitAmendedOrdersHandler interface for that can handle valid submit amended orders params

type SubmitAmendedOrdersHandlerFunc

type SubmitAmendedOrdersHandlerFunc func(SubmitAmendedOrdersParams) middleware.Responder

SubmitAmendedOrdersHandlerFunc turns a function with the right signature into a submit amended orders handler

func (SubmitAmendedOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type SubmitAmendedOrdersInternalServerError

type SubmitAmendedOrdersInternalServerError struct {
}

SubmitAmendedOrdersInternalServerError server error

swagger:response submitAmendedOrdersInternalServerError

func NewSubmitAmendedOrdersInternalServerError

func NewSubmitAmendedOrdersInternalServerError() *SubmitAmendedOrdersInternalServerError

NewSubmitAmendedOrdersInternalServerError creates SubmitAmendedOrdersInternalServerError with default headers values

func (*SubmitAmendedOrdersInternalServerError) WriteResponse

WriteResponse to the client

type SubmitAmendedOrdersOK

type SubmitAmendedOrdersOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

SubmitAmendedOrdersOK returns updated (submitted) move object

swagger:response submitAmendedOrdersOK

func NewSubmitAmendedOrdersOK

func NewSubmitAmendedOrdersOK() *SubmitAmendedOrdersOK

NewSubmitAmendedOrdersOK creates SubmitAmendedOrdersOK with default headers values

func (*SubmitAmendedOrdersOK) SetPayload

func (o *SubmitAmendedOrdersOK) SetPayload(payload *internalmessages.MovePayload)

SetPayload sets the payload to the submit amended orders o k response

func (*SubmitAmendedOrdersOK) WithPayload

WithPayload adds the payload to the submit amended orders o k response

func (*SubmitAmendedOrdersOK) WriteResponse

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

WriteResponse to the client

type SubmitAmendedOrdersParams

type SubmitAmendedOrdersParams struct {

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

	/*UUID of the move
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
}

SubmitAmendedOrdersParams contains all the bound params for the submit amended orders operation typically these are obtained from a http.Request

swagger:parameters submitAmendedOrders

func NewSubmitAmendedOrdersParams

func NewSubmitAmendedOrdersParams() SubmitAmendedOrdersParams

NewSubmitAmendedOrdersParams creates a new SubmitAmendedOrdersParams object

There are no default values defined in the spec.

func (*SubmitAmendedOrdersParams) 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 NewSubmitAmendedOrdersParams() beforehand.

type SubmitAmendedOrdersURL

type SubmitAmendedOrdersURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

SubmitAmendedOrdersURL generates an URL for the submit amended orders operation

func (*SubmitAmendedOrdersURL) Build

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

Build a url path and query string

func (*SubmitAmendedOrdersURL) BuildFull

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

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

func (*SubmitAmendedOrdersURL) Must

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

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

func (*SubmitAmendedOrdersURL) SetBasePath

func (o *SubmitAmendedOrdersURL) 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 (*SubmitAmendedOrdersURL) String

func (o *SubmitAmendedOrdersURL) String() string

String returns the string representation of the path with query string

func (*SubmitAmendedOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SubmitAmendedOrdersURL) 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 SubmitAmendedOrdersUnauthorized

type SubmitAmendedOrdersUnauthorized struct {
}

SubmitAmendedOrdersUnauthorized must be authenticated to use this endpoint

swagger:response submitAmendedOrdersUnauthorized

func NewSubmitAmendedOrdersUnauthorized

func NewSubmitAmendedOrdersUnauthorized() *SubmitAmendedOrdersUnauthorized

NewSubmitAmendedOrdersUnauthorized creates SubmitAmendedOrdersUnauthorized with default headers values

func (*SubmitAmendedOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type SubmitMoveForApproval

type SubmitMoveForApproval struct {
	Context *middleware.Context
	Handler SubmitMoveForApprovalHandler
}
SubmitMoveForApproval swagger:route POST /moves/{moveId}/submit moves submitMoveForApproval

Submits a move for approval

Submits a move for approval by the office. The status of the move will be updated to SUBMITTED

func NewSubmitMoveForApproval

func NewSubmitMoveForApproval(ctx *middleware.Context, handler SubmitMoveForApprovalHandler) *SubmitMoveForApproval

NewSubmitMoveForApproval creates a new http.Handler for the submit move for approval operation

func (*SubmitMoveForApproval) ServeHTTP

func (o *SubmitMoveForApproval) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type SubmitMoveForApprovalBadRequest

type SubmitMoveForApprovalBadRequest struct {
}

SubmitMoveForApprovalBadRequest invalid request

swagger:response submitMoveForApprovalBadRequest

func NewSubmitMoveForApprovalBadRequest

func NewSubmitMoveForApprovalBadRequest() *SubmitMoveForApprovalBadRequest

NewSubmitMoveForApprovalBadRequest creates SubmitMoveForApprovalBadRequest with default headers values

func (*SubmitMoveForApprovalBadRequest) WriteResponse

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

WriteResponse to the client

type SubmitMoveForApprovalConflict

type SubmitMoveForApprovalConflict struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

SubmitMoveForApprovalConflict the move is not in a state to be approved

swagger:response submitMoveForApprovalConflict

func NewSubmitMoveForApprovalConflict

func NewSubmitMoveForApprovalConflict() *SubmitMoveForApprovalConflict

NewSubmitMoveForApprovalConflict creates SubmitMoveForApprovalConflict with default headers values

func (*SubmitMoveForApprovalConflict) SetPayload

SetPayload sets the payload to the submit move for approval conflict response

func (*SubmitMoveForApprovalConflict) WithPayload

WithPayload adds the payload to the submit move for approval conflict response

func (*SubmitMoveForApprovalConflict) WriteResponse

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

WriteResponse to the client

type SubmitMoveForApprovalForbidden

type SubmitMoveForApprovalForbidden struct {
}

SubmitMoveForApprovalForbidden not authorized to approve this move

swagger:response submitMoveForApprovalForbidden

func NewSubmitMoveForApprovalForbidden

func NewSubmitMoveForApprovalForbidden() *SubmitMoveForApprovalForbidden

NewSubmitMoveForApprovalForbidden creates SubmitMoveForApprovalForbidden with default headers values

func (*SubmitMoveForApprovalForbidden) WriteResponse

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

WriteResponse to the client

type SubmitMoveForApprovalHandler

type SubmitMoveForApprovalHandler interface {
	Handle(SubmitMoveForApprovalParams) middleware.Responder
}

SubmitMoveForApprovalHandler interface for that can handle valid submit move for approval params

type SubmitMoveForApprovalHandlerFunc

type SubmitMoveForApprovalHandlerFunc func(SubmitMoveForApprovalParams) middleware.Responder

SubmitMoveForApprovalHandlerFunc turns a function with the right signature into a submit move for approval handler

func (SubmitMoveForApprovalHandlerFunc) Handle

Handle executing the request and returning a response

type SubmitMoveForApprovalInternalServerError

type SubmitMoveForApprovalInternalServerError struct {
}

SubmitMoveForApprovalInternalServerError server error

swagger:response submitMoveForApprovalInternalServerError

func NewSubmitMoveForApprovalInternalServerError

func NewSubmitMoveForApprovalInternalServerError() *SubmitMoveForApprovalInternalServerError

NewSubmitMoveForApprovalInternalServerError creates SubmitMoveForApprovalInternalServerError with default headers values

func (*SubmitMoveForApprovalInternalServerError) WriteResponse

WriteResponse to the client

type SubmitMoveForApprovalOK

type SubmitMoveForApprovalOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MovePayload `json:"body,omitempty"`
}

SubmitMoveForApprovalOK returns updated (submitted) move object

swagger:response submitMoveForApprovalOK

func NewSubmitMoveForApprovalOK

func NewSubmitMoveForApprovalOK() *SubmitMoveForApprovalOK

NewSubmitMoveForApprovalOK creates SubmitMoveForApprovalOK with default headers values

func (*SubmitMoveForApprovalOK) SetPayload

func (o *SubmitMoveForApprovalOK) SetPayload(payload *internalmessages.MovePayload)

SetPayload sets the payload to the submit move for approval o k response

func (*SubmitMoveForApprovalOK) WithPayload

WithPayload adds the payload to the submit move for approval o k response

func (*SubmitMoveForApprovalOK) WriteResponse

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

WriteResponse to the client

type SubmitMoveForApprovalParams

type SubmitMoveForApprovalParams struct {

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

	/*UUID of the move
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
	/*
	  Required: true
	  In: body
	*/
	SubmitMoveForApprovalPayload *internalmessages.SubmitMoveForApprovalPayload
}

SubmitMoveForApprovalParams contains all the bound params for the submit move for approval operation typically these are obtained from a http.Request

swagger:parameters submitMoveForApproval

func NewSubmitMoveForApprovalParams

func NewSubmitMoveForApprovalParams() SubmitMoveForApprovalParams

NewSubmitMoveForApprovalParams creates a new SubmitMoveForApprovalParams object

There are no default values defined in the spec.

func (*SubmitMoveForApprovalParams) 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 NewSubmitMoveForApprovalParams() beforehand.

type SubmitMoveForApprovalURL

type SubmitMoveForApprovalURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

SubmitMoveForApprovalURL generates an URL for the submit move for approval operation

func (*SubmitMoveForApprovalURL) Build

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

Build a url path and query string

func (*SubmitMoveForApprovalURL) BuildFull

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

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

func (*SubmitMoveForApprovalURL) Must

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

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

func (*SubmitMoveForApprovalURL) SetBasePath

func (o *SubmitMoveForApprovalURL) 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 (*SubmitMoveForApprovalURL) String

func (o *SubmitMoveForApprovalURL) String() string

String returns the string representation of the path with query string

func (*SubmitMoveForApprovalURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SubmitMoveForApprovalURL) 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 SubmitMoveForApprovalUnauthorized

type SubmitMoveForApprovalUnauthorized struct {
}

SubmitMoveForApprovalUnauthorized must be authenticated to use this endpoint

swagger:response submitMoveForApprovalUnauthorized

func NewSubmitMoveForApprovalUnauthorized

func NewSubmitMoveForApprovalUnauthorized() *SubmitMoveForApprovalUnauthorized

NewSubmitMoveForApprovalUnauthorized creates SubmitMoveForApprovalUnauthorized with default headers values

func (*SubmitMoveForApprovalUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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