transportation_offices

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

Documentation

Index

Constants

View Source
const GetTransportationOfficesBadRequestCode int = 400

GetTransportationOfficesBadRequestCode is the HTTP code returned for type GetTransportationOfficesBadRequest

View Source
const GetTransportationOfficesForbiddenCode int = 403

GetTransportationOfficesForbiddenCode is the HTTP code returned for type GetTransportationOfficesForbidden

View Source
const GetTransportationOfficesInternalServerErrorCode int = 500

GetTransportationOfficesInternalServerErrorCode is the HTTP code returned for type GetTransportationOfficesInternalServerError

View Source
const GetTransportationOfficesNotFoundCode int = 404

GetTransportationOfficesNotFoundCode is the HTTP code returned for type GetTransportationOfficesNotFound

View Source
const GetTransportationOfficesOKCode int = 200

GetTransportationOfficesOKCode is the HTTP code returned for type GetTransportationOfficesOK

View Source
const GetTransportationOfficesUnauthorizedCode int = 401

GetTransportationOfficesUnauthorizedCode is the HTTP code returned for type GetTransportationOfficesUnauthorized

View Source
const ShowDutyLocationTransportationOfficeBadRequestCode int = 400

ShowDutyLocationTransportationOfficeBadRequestCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeBadRequest

View Source
const ShowDutyLocationTransportationOfficeForbiddenCode int = 403

ShowDutyLocationTransportationOfficeForbiddenCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeForbidden

View Source
const ShowDutyLocationTransportationOfficeInternalServerErrorCode int = 500

ShowDutyLocationTransportationOfficeInternalServerErrorCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeInternalServerError

View Source
const ShowDutyLocationTransportationOfficeNotFoundCode int = 404

ShowDutyLocationTransportationOfficeNotFoundCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeNotFound

View Source
const ShowDutyLocationTransportationOfficeOKCode int = 200

ShowDutyLocationTransportationOfficeOKCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeOK

View Source
const ShowDutyLocationTransportationOfficeUnauthorizedCode int = 401

ShowDutyLocationTransportationOfficeUnauthorizedCode is the HTTP code returned for type ShowDutyLocationTransportationOfficeUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTransportationOffices

type GetTransportationOffices struct {
	Context *middleware.Context
	Handler GetTransportationOfficesHandler
}
GetTransportationOffices swagger:route GET /transportation-offices transportation_offices getTransportationOffices

Returns the transportation offices matching the search query

Returns the transportation offices matching the search query

func NewGetTransportationOffices

func NewGetTransportationOffices(ctx *middleware.Context, handler GetTransportationOfficesHandler) *GetTransportationOffices

NewGetTransportationOffices creates a new http.Handler for the get transportation offices operation

func (*GetTransportationOffices) ServeHTTP

type GetTransportationOfficesBadRequest

type GetTransportationOfficesBadRequest struct {

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

GetTransportationOfficesBadRequest The request payload is invalid.

swagger:response getTransportationOfficesBadRequest

func NewGetTransportationOfficesBadRequest

func NewGetTransportationOfficesBadRequest() *GetTransportationOfficesBadRequest

NewGetTransportationOfficesBadRequest creates GetTransportationOfficesBadRequest with default headers values

func (*GetTransportationOfficesBadRequest) SetPayload

SetPayload sets the payload to the get transportation offices bad request response

func (*GetTransportationOfficesBadRequest) WithPayload

WithPayload adds the payload to the get transportation offices bad request response

func (*GetTransportationOfficesBadRequest) WriteResponse

WriteResponse to the client

type GetTransportationOfficesForbidden

type GetTransportationOfficesForbidden struct {

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

GetTransportationOfficesForbidden The request was denied.

swagger:response getTransportationOfficesForbidden

func NewGetTransportationOfficesForbidden

func NewGetTransportationOfficesForbidden() *GetTransportationOfficesForbidden

NewGetTransportationOfficesForbidden creates GetTransportationOfficesForbidden with default headers values

func (*GetTransportationOfficesForbidden) SetPayload

SetPayload sets the payload to the get transportation offices forbidden response

func (*GetTransportationOfficesForbidden) WithPayload

WithPayload adds the payload to the get transportation offices forbidden response

func (*GetTransportationOfficesForbidden) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesHandler

type GetTransportationOfficesHandler interface {
	Handle(GetTransportationOfficesParams) middleware.Responder
}

GetTransportationOfficesHandler interface for that can handle valid get transportation offices params

type GetTransportationOfficesHandlerFunc

type GetTransportationOfficesHandlerFunc func(GetTransportationOfficesParams) middleware.Responder

GetTransportationOfficesHandlerFunc turns a function with the right signature into a get transportation offices handler

func (GetTransportationOfficesHandlerFunc) Handle

Handle executing the request and returning a response

type GetTransportationOfficesInternalServerError

type GetTransportationOfficesInternalServerError struct {

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

GetTransportationOfficesInternalServerError A server error occurred.

swagger:response getTransportationOfficesInternalServerError

func NewGetTransportationOfficesInternalServerError

func NewGetTransportationOfficesInternalServerError() *GetTransportationOfficesInternalServerError

NewGetTransportationOfficesInternalServerError creates GetTransportationOfficesInternalServerError with default headers values

func (*GetTransportationOfficesInternalServerError) SetPayload

SetPayload sets the payload to the get transportation offices internal server error response

func (*GetTransportationOfficesInternalServerError) WithPayload

WithPayload adds the payload to the get transportation offices internal server error response

func (*GetTransportationOfficesInternalServerError) WriteResponse

WriteResponse to the client

type GetTransportationOfficesNotFound

type GetTransportationOfficesNotFound struct {

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

GetTransportationOfficesNotFound The requested resource wasn't found.

swagger:response getTransportationOfficesNotFound

func NewGetTransportationOfficesNotFound

func NewGetTransportationOfficesNotFound() *GetTransportationOfficesNotFound

NewGetTransportationOfficesNotFound creates GetTransportationOfficesNotFound with default headers values

func (*GetTransportationOfficesNotFound) SetPayload

SetPayload sets the payload to the get transportation offices not found response

func (*GetTransportationOfficesNotFound) WithPayload

WithPayload adds the payload to the get transportation offices not found response

func (*GetTransportationOfficesNotFound) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesOK

type GetTransportationOfficesOK struct {

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

GetTransportationOfficesOK Successfully retrieved transportation offices

swagger:response getTransportationOfficesOK

func NewGetTransportationOfficesOK

func NewGetTransportationOfficesOK() *GetTransportationOfficesOK

NewGetTransportationOfficesOK creates GetTransportationOfficesOK with default headers values

func (*GetTransportationOfficesOK) SetPayload

SetPayload sets the payload to the get transportation offices o k response

func (*GetTransportationOfficesOK) WithPayload

WithPayload adds the payload to the get transportation offices o k response

func (*GetTransportationOfficesOK) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesParams

type GetTransportationOfficesParams struct {

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

	/*Search string for transportation offices
	  Required: true
	  Min Length: 2
	  In: query
	*/
	Search string
}

GetTransportationOfficesParams contains all the bound params for the get transportation offices operation typically these are obtained from a http.Request

swagger:parameters getTransportationOffices

func NewGetTransportationOfficesParams

func NewGetTransportationOfficesParams() GetTransportationOfficesParams

NewGetTransportationOfficesParams creates a new GetTransportationOfficesParams object

There are no default values defined in the spec.

func (*GetTransportationOfficesParams) 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 NewGetTransportationOfficesParams() beforehand.

type GetTransportationOfficesURL

type GetTransportationOfficesURL struct {
	Search string
	// contains filtered or unexported fields
}

GetTransportationOfficesURL generates an URL for the get transportation offices operation

func (*GetTransportationOfficesURL) Build

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

Build a url path and query string

func (*GetTransportationOfficesURL) BuildFull

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

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

func (*GetTransportationOfficesURL) Must

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

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

func (*GetTransportationOfficesURL) SetBasePath

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

func (o *GetTransportationOfficesURL) String() string

String returns the string representation of the path with query string

func (*GetTransportationOfficesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTransportationOfficesURL) 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 GetTransportationOfficesUnauthorized

type GetTransportationOfficesUnauthorized struct {

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

GetTransportationOfficesUnauthorized The request was denied.

swagger:response getTransportationOfficesUnauthorized

func NewGetTransportationOfficesUnauthorized

func NewGetTransportationOfficesUnauthorized() *GetTransportationOfficesUnauthorized

NewGetTransportationOfficesUnauthorized creates GetTransportationOfficesUnauthorized with default headers values

func (*GetTransportationOfficesUnauthorized) SetPayload

SetPayload sets the payload to the get transportation offices unauthorized response

func (*GetTransportationOfficesUnauthorized) WithPayload

WithPayload adds the payload to the get transportation offices unauthorized response

func (*GetTransportationOfficesUnauthorized) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOffice

type ShowDutyLocationTransportationOffice struct {
	Context *middleware.Context
	Handler ShowDutyLocationTransportationOfficeHandler
}
ShowDutyLocationTransportationOffice swagger:route GET /duty_locations/{dutyLocationId}/transportation_office transportation_offices showDutyLocationTransportationOffice

Returns the transportation office for a given duty location

Returns the given duty location's transportation office

func NewShowDutyLocationTransportationOffice

func NewShowDutyLocationTransportationOffice(ctx *middleware.Context, handler ShowDutyLocationTransportationOfficeHandler) *ShowDutyLocationTransportationOffice

NewShowDutyLocationTransportationOffice creates a new http.Handler for the show duty location transportation office operation

func (*ShowDutyLocationTransportationOffice) ServeHTTP

type ShowDutyLocationTransportationOfficeBadRequest

type ShowDutyLocationTransportationOfficeBadRequest struct {
}

ShowDutyLocationTransportationOfficeBadRequest invalid request

swagger:response showDutyLocationTransportationOfficeBadRequest

func NewShowDutyLocationTransportationOfficeBadRequest

func NewShowDutyLocationTransportationOfficeBadRequest() *ShowDutyLocationTransportationOfficeBadRequest

NewShowDutyLocationTransportationOfficeBadRequest creates ShowDutyLocationTransportationOfficeBadRequest with default headers values

func (*ShowDutyLocationTransportationOfficeBadRequest) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOfficeForbidden

type ShowDutyLocationTransportationOfficeForbidden struct {
}

ShowDutyLocationTransportationOfficeForbidden user is not authorized

swagger:response showDutyLocationTransportationOfficeForbidden

func NewShowDutyLocationTransportationOfficeForbidden

func NewShowDutyLocationTransportationOfficeForbidden() *ShowDutyLocationTransportationOfficeForbidden

NewShowDutyLocationTransportationOfficeForbidden creates ShowDutyLocationTransportationOfficeForbidden with default headers values

func (*ShowDutyLocationTransportationOfficeForbidden) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOfficeHandler

type ShowDutyLocationTransportationOfficeHandler interface {
	Handle(ShowDutyLocationTransportationOfficeParams) middleware.Responder
}

ShowDutyLocationTransportationOfficeHandler interface for that can handle valid show duty location transportation office params

type ShowDutyLocationTransportationOfficeHandlerFunc

type ShowDutyLocationTransportationOfficeHandlerFunc func(ShowDutyLocationTransportationOfficeParams) middleware.Responder

ShowDutyLocationTransportationOfficeHandlerFunc turns a function with the right signature into a show duty location transportation office handler

func (ShowDutyLocationTransportationOfficeHandlerFunc) Handle

Handle executing the request and returning a response

type ShowDutyLocationTransportationOfficeInternalServerError

type ShowDutyLocationTransportationOfficeInternalServerError struct {
}

ShowDutyLocationTransportationOfficeInternalServerError internal server error

swagger:response showDutyLocationTransportationOfficeInternalServerError

func NewShowDutyLocationTransportationOfficeInternalServerError

func NewShowDutyLocationTransportationOfficeInternalServerError() *ShowDutyLocationTransportationOfficeInternalServerError

NewShowDutyLocationTransportationOfficeInternalServerError creates ShowDutyLocationTransportationOfficeInternalServerError with default headers values

func (*ShowDutyLocationTransportationOfficeInternalServerError) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOfficeNotFound

type ShowDutyLocationTransportationOfficeNotFound struct {
}

ShowDutyLocationTransportationOfficeNotFound transportation office not found

swagger:response showDutyLocationTransportationOfficeNotFound

func NewShowDutyLocationTransportationOfficeNotFound

func NewShowDutyLocationTransportationOfficeNotFound() *ShowDutyLocationTransportationOfficeNotFound

NewShowDutyLocationTransportationOfficeNotFound creates ShowDutyLocationTransportationOfficeNotFound with default headers values

func (*ShowDutyLocationTransportationOfficeNotFound) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOfficeOK

type ShowDutyLocationTransportationOfficeOK struct {

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

ShowDutyLocationTransportationOfficeOK the instance of the transportation office for a duty location

swagger:response showDutyLocationTransportationOfficeOK

func NewShowDutyLocationTransportationOfficeOK

func NewShowDutyLocationTransportationOfficeOK() *ShowDutyLocationTransportationOfficeOK

NewShowDutyLocationTransportationOfficeOK creates ShowDutyLocationTransportationOfficeOK with default headers values

func (*ShowDutyLocationTransportationOfficeOK) SetPayload

SetPayload sets the payload to the show duty location transportation office o k response

func (*ShowDutyLocationTransportationOfficeOK) WithPayload

WithPayload adds the payload to the show duty location transportation office o k response

func (*ShowDutyLocationTransportationOfficeOK) WriteResponse

WriteResponse to the client

type ShowDutyLocationTransportationOfficeParams

type ShowDutyLocationTransportationOfficeParams struct {

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

	/*UUID of the duty location
	  Required: true
	  In: path
	*/
	DutyLocationID strfmt.UUID
}

ShowDutyLocationTransportationOfficeParams contains all the bound params for the show duty location transportation office operation typically these are obtained from a http.Request

swagger:parameters showDutyLocationTransportationOffice

func NewShowDutyLocationTransportationOfficeParams

func NewShowDutyLocationTransportationOfficeParams() ShowDutyLocationTransportationOfficeParams

NewShowDutyLocationTransportationOfficeParams creates a new ShowDutyLocationTransportationOfficeParams object

There are no default values defined in the spec.

func (*ShowDutyLocationTransportationOfficeParams) 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 NewShowDutyLocationTransportationOfficeParams() beforehand.

type ShowDutyLocationTransportationOfficeURL

type ShowDutyLocationTransportationOfficeURL struct {
	DutyLocationID strfmt.UUID
	// contains filtered or unexported fields
}

ShowDutyLocationTransportationOfficeURL generates an URL for the show duty location transportation office operation

func (*ShowDutyLocationTransportationOfficeURL) Build

Build a url path and query string

func (*ShowDutyLocationTransportationOfficeURL) BuildFull

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

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

func (*ShowDutyLocationTransportationOfficeURL) Must

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

func (*ShowDutyLocationTransportationOfficeURL) SetBasePath

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 (*ShowDutyLocationTransportationOfficeURL) String

String returns the string representation of the path with query string

func (*ShowDutyLocationTransportationOfficeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShowDutyLocationTransportationOfficeURL) 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 ShowDutyLocationTransportationOfficeUnauthorized

type ShowDutyLocationTransportationOfficeUnauthorized struct {
}

ShowDutyLocationTransportationOfficeUnauthorized request requires user authentication

swagger:response showDutyLocationTransportationOfficeUnauthorized

func NewShowDutyLocationTransportationOfficeUnauthorized

func NewShowDutyLocationTransportationOfficeUnauthorized() *ShowDutyLocationTransportationOfficeUnauthorized

NewShowDutyLocationTransportationOfficeUnauthorized creates ShowDutyLocationTransportationOfficeUnauthorized with default headers values

func (*ShowDutyLocationTransportationOfficeUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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