office_users

package
v0.0.0-...-bc01b9c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOfficeUserCreatedCode int = 201

CreateOfficeUserCreatedCode is the HTTP code returned for type CreateOfficeUserCreated

View Source
const CreateOfficeUserInternalServerErrorCode int = 500

CreateOfficeUserInternalServerErrorCode is the HTTP code returned for type CreateOfficeUserInternalServerError

View Source
const CreateOfficeUserUnprocessableEntityCode int = 422

CreateOfficeUserUnprocessableEntityCode is the HTTP code returned for type CreateOfficeUserUnprocessableEntity

View Source
const GetOfficeUserBadRequestCode int = 400

GetOfficeUserBadRequestCode is the HTTP code returned for type GetOfficeUserBadRequest

View Source
const GetOfficeUserInternalServerErrorCode int = 500

GetOfficeUserInternalServerErrorCode is the HTTP code returned for type GetOfficeUserInternalServerError

View Source
const GetOfficeUserNotFoundCode int = 404

GetOfficeUserNotFoundCode is the HTTP code returned for type GetOfficeUserNotFound

View Source
const GetOfficeUserOKCode int = 200

GetOfficeUserOKCode is the HTTP code returned for type GetOfficeUserOK

View Source
const GetOfficeUserUnauthorizedCode int = 401

GetOfficeUserUnauthorizedCode is the HTTP code returned for type GetOfficeUserUnauthorized

View Source
const IndexOfficeUsersBadRequestCode int = 400

IndexOfficeUsersBadRequestCode is the HTTP code returned for type IndexOfficeUsersBadRequest

View Source
const IndexOfficeUsersInternalServerErrorCode int = 500

IndexOfficeUsersInternalServerErrorCode is the HTTP code returned for type IndexOfficeUsersInternalServerError

View Source
const IndexOfficeUsersNotFoundCode int = 404

IndexOfficeUsersNotFoundCode is the HTTP code returned for type IndexOfficeUsersNotFound

View Source
const IndexOfficeUsersOKCode int = 200

IndexOfficeUsersOKCode is the HTTP code returned for type IndexOfficeUsersOK

View Source
const IndexOfficeUsersUnauthorizedCode int = 401

IndexOfficeUsersUnauthorizedCode is the HTTP code returned for type IndexOfficeUsersUnauthorized

View Source
const UpdateOfficeUserBadRequestCode int = 400

UpdateOfficeUserBadRequestCode is the HTTP code returned for type UpdateOfficeUserBadRequest

View Source
const UpdateOfficeUserForbiddenCode int = 403

UpdateOfficeUserForbiddenCode is the HTTP code returned for type UpdateOfficeUserForbidden

View Source
const UpdateOfficeUserInternalServerErrorCode int = 500

UpdateOfficeUserInternalServerErrorCode is the HTTP code returned for type UpdateOfficeUserInternalServerError

View Source
const UpdateOfficeUserOKCode int = 200

UpdateOfficeUserOKCode is the HTTP code returned for type UpdateOfficeUserOK

View Source
const UpdateOfficeUserUnauthorizedCode int = 401

UpdateOfficeUserUnauthorizedCode is the HTTP code returned for type UpdateOfficeUserUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOfficeUser

type CreateOfficeUser struct {
	Context *middleware.Context
	Handler CreateOfficeUserHandler
}
CreateOfficeUser swagger:route POST /office-users Office users createOfficeUser

Create an Office User

This endpoint creates an Office User record and returns the created record in the `201` response. If there are issues with the Office User information provided a `422` response will occur with information about invalid fields and additional details. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewCreateOfficeUser

func NewCreateOfficeUser(ctx *middleware.Context, handler CreateOfficeUserHandler) *CreateOfficeUser

NewCreateOfficeUser creates a new http.Handler for the create office user operation

func (*CreateOfficeUser) ServeHTTP

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

type CreateOfficeUserCreated

type CreateOfficeUserCreated struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.OfficeUser `json:"body,omitempty"`
}

CreateOfficeUserCreated Successfully created Office User

swagger:response createOfficeUserCreated

func NewCreateOfficeUserCreated

func NewCreateOfficeUserCreated() *CreateOfficeUserCreated

NewCreateOfficeUserCreated creates CreateOfficeUserCreated with default headers values

func (*CreateOfficeUserCreated) SetPayload

func (o *CreateOfficeUserCreated) SetPayload(payload *adminmessages.OfficeUser)

SetPayload sets the payload to the create office user created response

func (*CreateOfficeUserCreated) WithPayload

WithPayload adds the payload to the create office user created response

func (*CreateOfficeUserCreated) WriteResponse

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

WriteResponse to the client

type CreateOfficeUserHandler

type CreateOfficeUserHandler interface {
	Handle(CreateOfficeUserParams) middleware.Responder
}

CreateOfficeUserHandler interface for that can handle valid create office user params

type CreateOfficeUserHandlerFunc

type CreateOfficeUserHandlerFunc func(CreateOfficeUserParams) middleware.Responder

CreateOfficeUserHandlerFunc turns a function with the right signature into a create office user handler

func (CreateOfficeUserHandlerFunc) Handle

Handle executing the request and returning a response

type CreateOfficeUserInternalServerError

type CreateOfficeUserInternalServerError struct {
}

CreateOfficeUserInternalServerError internal server error

swagger:response createOfficeUserInternalServerError

func NewCreateOfficeUserInternalServerError

func NewCreateOfficeUserInternalServerError() *CreateOfficeUserInternalServerError

NewCreateOfficeUserInternalServerError creates CreateOfficeUserInternalServerError with default headers values

func (*CreateOfficeUserInternalServerError) WriteResponse

WriteResponse to the client

type CreateOfficeUserParams

type CreateOfficeUserParams struct {

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

	/*Office User information
	  In: body
	*/
	OfficeUser *adminmessages.OfficeUserCreate
}

CreateOfficeUserParams contains all the bound params for the create office user operation typically these are obtained from a http.Request

swagger:parameters createOfficeUser

func NewCreateOfficeUserParams

func NewCreateOfficeUserParams() CreateOfficeUserParams

NewCreateOfficeUserParams creates a new CreateOfficeUserParams object

There are no default values defined in the spec.

func (*CreateOfficeUserParams) BindRequest

func (o *CreateOfficeUserParams) 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 NewCreateOfficeUserParams() beforehand.

type CreateOfficeUserURL

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

CreateOfficeUserURL generates an URL for the create office user operation

func (*CreateOfficeUserURL) Build

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

Build a url path and query string

func (*CreateOfficeUserURL) BuildFull

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

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

func (*CreateOfficeUserURL) Must

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

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

func (*CreateOfficeUserURL) SetBasePath

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

func (o *CreateOfficeUserURL) String() string

String returns the string representation of the path with query string

func (*CreateOfficeUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateOfficeUserURL) WithBasePath

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

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 CreateOfficeUserUnprocessableEntity

type CreateOfficeUserUnprocessableEntity struct {

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

CreateOfficeUserUnprocessableEntity validation error

swagger:response createOfficeUserUnprocessableEntity

func NewCreateOfficeUserUnprocessableEntity

func NewCreateOfficeUserUnprocessableEntity() *CreateOfficeUserUnprocessableEntity

NewCreateOfficeUserUnprocessableEntity creates CreateOfficeUserUnprocessableEntity with default headers values

func (*CreateOfficeUserUnprocessableEntity) SetPayload

SetPayload sets the payload to the create office user unprocessable entity response

func (*CreateOfficeUserUnprocessableEntity) WithPayload

WithPayload adds the payload to the create office user unprocessable entity response

func (*CreateOfficeUserUnprocessableEntity) WriteResponse

WriteResponse to the client

type GetOfficeUser

type GetOfficeUser struct {
	Context *middleware.Context
	Handler GetOfficeUserHandler
}
GetOfficeUser swagger:route GET /office-users/{officeUserId} Office users getOfficeUser

Get an Office User

This endpoint returns a single Office User by ID. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewGetOfficeUser

func NewGetOfficeUser(ctx *middleware.Context, handler GetOfficeUserHandler) *GetOfficeUser

NewGetOfficeUser creates a new http.Handler for the get office user operation

func (*GetOfficeUser) ServeHTTP

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

type GetOfficeUserBadRequest

type GetOfficeUserBadRequest struct {
}

GetOfficeUserBadRequest invalid request

swagger:response getOfficeUserBadRequest

func NewGetOfficeUserBadRequest

func NewGetOfficeUserBadRequest() *GetOfficeUserBadRequest

NewGetOfficeUserBadRequest creates GetOfficeUserBadRequest with default headers values

func (*GetOfficeUserBadRequest) WriteResponse

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

WriteResponse to the client

type GetOfficeUserHandler

type GetOfficeUserHandler interface {
	Handle(GetOfficeUserParams) middleware.Responder
}

GetOfficeUserHandler interface for that can handle valid get office user params

type GetOfficeUserHandlerFunc

type GetOfficeUserHandlerFunc func(GetOfficeUserParams) middleware.Responder

GetOfficeUserHandlerFunc turns a function with the right signature into a get office user handler

func (GetOfficeUserHandlerFunc) Handle

Handle executing the request and returning a response

type GetOfficeUserInternalServerError

type GetOfficeUserInternalServerError struct {
}

GetOfficeUserInternalServerError server error

swagger:response getOfficeUserInternalServerError

func NewGetOfficeUserInternalServerError

func NewGetOfficeUserInternalServerError() *GetOfficeUserInternalServerError

NewGetOfficeUserInternalServerError creates GetOfficeUserInternalServerError with default headers values

func (*GetOfficeUserInternalServerError) WriteResponse

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

WriteResponse to the client

type GetOfficeUserNotFound

type GetOfficeUserNotFound struct {
}

GetOfficeUserNotFound Office User not found

swagger:response getOfficeUserNotFound

func NewGetOfficeUserNotFound

func NewGetOfficeUserNotFound() *GetOfficeUserNotFound

NewGetOfficeUserNotFound creates GetOfficeUserNotFound with default headers values

func (*GetOfficeUserNotFound) WriteResponse

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

WriteResponse to the client

type GetOfficeUserOK

type GetOfficeUserOK struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.OfficeUser `json:"body,omitempty"`
}

GetOfficeUserOK success

swagger:response getOfficeUserOK

func NewGetOfficeUserOK

func NewGetOfficeUserOK() *GetOfficeUserOK

NewGetOfficeUserOK creates GetOfficeUserOK with default headers values

func (*GetOfficeUserOK) SetPayload

func (o *GetOfficeUserOK) SetPayload(payload *adminmessages.OfficeUser)

SetPayload sets the payload to the get office user o k response

func (*GetOfficeUserOK) WithPayload

func (o *GetOfficeUserOK) WithPayload(payload *adminmessages.OfficeUser) *GetOfficeUserOK

WithPayload adds the payload to the get office user o k response

func (*GetOfficeUserOK) WriteResponse

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

WriteResponse to the client

type GetOfficeUserParams

type GetOfficeUserParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	OfficeUserID strfmt.UUID
}

GetOfficeUserParams contains all the bound params for the get office user operation typically these are obtained from a http.Request

swagger:parameters getOfficeUser

func NewGetOfficeUserParams

func NewGetOfficeUserParams() GetOfficeUserParams

NewGetOfficeUserParams creates a new GetOfficeUserParams object

There are no default values defined in the spec.

func (*GetOfficeUserParams) BindRequest

func (o *GetOfficeUserParams) 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 NewGetOfficeUserParams() beforehand.

type GetOfficeUserURL

type GetOfficeUserURL struct {
	OfficeUserID strfmt.UUID
	// contains filtered or unexported fields
}

GetOfficeUserURL generates an URL for the get office user operation

func (*GetOfficeUserURL) Build

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

Build a url path and query string

func (*GetOfficeUserURL) BuildFull

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

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

func (*GetOfficeUserURL) Must

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

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

func (*GetOfficeUserURL) SetBasePath

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

func (o *GetOfficeUserURL) String() string

String returns the string representation of the path with query string

func (*GetOfficeUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetOfficeUserURL) WithBasePath

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

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 GetOfficeUserUnauthorized

type GetOfficeUserUnauthorized struct {
}

GetOfficeUserUnauthorized request requires user authentication

swagger:response getOfficeUserUnauthorized

func NewGetOfficeUserUnauthorized

func NewGetOfficeUserUnauthorized() *GetOfficeUserUnauthorized

NewGetOfficeUserUnauthorized creates GetOfficeUserUnauthorized with default headers values

func (*GetOfficeUserUnauthorized) WriteResponse

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

WriteResponse to the client

type IndexOfficeUsers

type IndexOfficeUsers struct {
	Context *middleware.Context
	Handler IndexOfficeUsersHandler
}
IndexOfficeUsers swagger:route GET /office-users Office users indexOfficeUsers

List of Office Users

This endpoint returns a list of Office Users. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewIndexOfficeUsers

func NewIndexOfficeUsers(ctx *middleware.Context, handler IndexOfficeUsersHandler) *IndexOfficeUsers

NewIndexOfficeUsers creates a new http.Handler for the index office users operation

func (*IndexOfficeUsers) ServeHTTP

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

type IndexOfficeUsersBadRequest

type IndexOfficeUsersBadRequest struct {
}

IndexOfficeUsersBadRequest invalid request

swagger:response indexOfficeUsersBadRequest

func NewIndexOfficeUsersBadRequest

func NewIndexOfficeUsersBadRequest() *IndexOfficeUsersBadRequest

NewIndexOfficeUsersBadRequest creates IndexOfficeUsersBadRequest with default headers values

func (*IndexOfficeUsersBadRequest) WriteResponse

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

WriteResponse to the client

type IndexOfficeUsersHandler

type IndexOfficeUsersHandler interface {
	Handle(IndexOfficeUsersParams) middleware.Responder
}

IndexOfficeUsersHandler interface for that can handle valid index office users params

type IndexOfficeUsersHandlerFunc

type IndexOfficeUsersHandlerFunc func(IndexOfficeUsersParams) middleware.Responder

IndexOfficeUsersHandlerFunc turns a function with the right signature into a index office users handler

func (IndexOfficeUsersHandlerFunc) Handle

Handle executing the request and returning a response

type IndexOfficeUsersInternalServerError

type IndexOfficeUsersInternalServerError struct {
}

IndexOfficeUsersInternalServerError server error

swagger:response indexOfficeUsersInternalServerError

func NewIndexOfficeUsersInternalServerError

func NewIndexOfficeUsersInternalServerError() *IndexOfficeUsersInternalServerError

NewIndexOfficeUsersInternalServerError creates IndexOfficeUsersInternalServerError with default headers values

func (*IndexOfficeUsersInternalServerError) WriteResponse

WriteResponse to the client

type IndexOfficeUsersNotFound

type IndexOfficeUsersNotFound struct {
}

IndexOfficeUsersNotFound Office User not found

swagger:response indexOfficeUsersNotFound

func NewIndexOfficeUsersNotFound

func NewIndexOfficeUsersNotFound() *IndexOfficeUsersNotFound

NewIndexOfficeUsersNotFound creates IndexOfficeUsersNotFound with default headers values

func (*IndexOfficeUsersNotFound) WriteResponse

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

WriteResponse to the client

type IndexOfficeUsersOK

type IndexOfficeUsersOK struct {
	/*Used for pagination

	 */
	ContentRange string `json:"Content-Range"`

	/*
	  In: Body
	*/
	Payload adminmessages.OfficeUsers `json:"body,omitempty"`
}

IndexOfficeUsersOK success

swagger:response indexOfficeUsersOK

func NewIndexOfficeUsersOK

func NewIndexOfficeUsersOK() *IndexOfficeUsersOK

NewIndexOfficeUsersOK creates IndexOfficeUsersOK with default headers values

func (*IndexOfficeUsersOK) SetContentRange

func (o *IndexOfficeUsersOK) SetContentRange(contentRange string)

SetContentRange sets the contentRange to the index office users o k response

func (*IndexOfficeUsersOK) SetPayload

func (o *IndexOfficeUsersOK) SetPayload(payload adminmessages.OfficeUsers)

SetPayload sets the payload to the index office users o k response

func (*IndexOfficeUsersOK) WithContentRange

func (o *IndexOfficeUsersOK) WithContentRange(contentRange string) *IndexOfficeUsersOK

WithContentRange adds the contentRange to the index office users o k response

func (*IndexOfficeUsersOK) WithPayload

WithPayload adds the payload to the index office users o k response

func (*IndexOfficeUsersOK) WriteResponse

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

WriteResponse to the client

type IndexOfficeUsersParams

type IndexOfficeUsersParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Order *bool
	/*
	  In: query
	*/
	Page *int64
	/*
	  In: query
	*/
	PerPage *int64
	/*
	  In: query
	*/
	Sort *string
}

IndexOfficeUsersParams contains all the bound params for the index office users operation typically these are obtained from a http.Request

swagger:parameters indexOfficeUsers

func NewIndexOfficeUsersParams

func NewIndexOfficeUsersParams() IndexOfficeUsersParams

NewIndexOfficeUsersParams creates a new IndexOfficeUsersParams object

There are no default values defined in the spec.

func (*IndexOfficeUsersParams) BindRequest

func (o *IndexOfficeUsersParams) 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 NewIndexOfficeUsersParams() beforehand.

type IndexOfficeUsersURL

type IndexOfficeUsersURL struct {
	Filter  *string
	Order   *bool
	Page    *int64
	PerPage *int64
	Sort    *string
	// contains filtered or unexported fields
}

IndexOfficeUsersURL generates an URL for the index office users operation

func (*IndexOfficeUsersURL) Build

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

Build a url path and query string

func (*IndexOfficeUsersURL) BuildFull

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

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

func (*IndexOfficeUsersURL) Must

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

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

func (*IndexOfficeUsersURL) SetBasePath

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

func (o *IndexOfficeUsersURL) String() string

String returns the string representation of the path with query string

func (*IndexOfficeUsersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IndexOfficeUsersURL) WithBasePath

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

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 IndexOfficeUsersUnauthorized

type IndexOfficeUsersUnauthorized struct {
}

IndexOfficeUsersUnauthorized request requires user authentication

swagger:response indexOfficeUsersUnauthorized

func NewIndexOfficeUsersUnauthorized

func NewIndexOfficeUsersUnauthorized() *IndexOfficeUsersUnauthorized

NewIndexOfficeUsersUnauthorized creates IndexOfficeUsersUnauthorized with default headers values

func (*IndexOfficeUsersUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateOfficeUser

type UpdateOfficeUser struct {
	Context *middleware.Context
	Handler UpdateOfficeUserHandler
}
UpdateOfficeUser swagger:route PATCH /office-users/{officeUserId} Office users updateOfficeUser

Updates an Office User

This endpoint updates a single Office User by ID. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewUpdateOfficeUser

func NewUpdateOfficeUser(ctx *middleware.Context, handler UpdateOfficeUserHandler) *UpdateOfficeUser

NewUpdateOfficeUser creates a new http.Handler for the update office user operation

func (*UpdateOfficeUser) ServeHTTP

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

type UpdateOfficeUserBadRequest

type UpdateOfficeUserBadRequest struct {
}

UpdateOfficeUserBadRequest Invalid Request

swagger:response updateOfficeUserBadRequest

func NewUpdateOfficeUserBadRequest

func NewUpdateOfficeUserBadRequest() *UpdateOfficeUserBadRequest

NewUpdateOfficeUserBadRequest creates UpdateOfficeUserBadRequest with default headers values

func (*UpdateOfficeUserBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateOfficeUserForbidden

type UpdateOfficeUserForbidden struct {
}

UpdateOfficeUserForbidden Not authorized to update an Office User

swagger:response updateOfficeUserForbidden

func NewUpdateOfficeUserForbidden

func NewUpdateOfficeUserForbidden() *UpdateOfficeUserForbidden

NewUpdateOfficeUserForbidden creates UpdateOfficeUserForbidden with default headers values

func (*UpdateOfficeUserForbidden) WriteResponse

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

WriteResponse to the client

type UpdateOfficeUserHandler

type UpdateOfficeUserHandler interface {
	Handle(UpdateOfficeUserParams) middleware.Responder
}

UpdateOfficeUserHandler interface for that can handle valid update office user params

type UpdateOfficeUserHandlerFunc

type UpdateOfficeUserHandlerFunc func(UpdateOfficeUserParams) middleware.Responder

UpdateOfficeUserHandlerFunc turns a function with the right signature into a update office user handler

func (UpdateOfficeUserHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateOfficeUserInternalServerError

type UpdateOfficeUserInternalServerError struct {
}

UpdateOfficeUserInternalServerError Server error

swagger:response updateOfficeUserInternalServerError

func NewUpdateOfficeUserInternalServerError

func NewUpdateOfficeUserInternalServerError() *UpdateOfficeUserInternalServerError

NewUpdateOfficeUserInternalServerError creates UpdateOfficeUserInternalServerError with default headers values

func (*UpdateOfficeUserInternalServerError) WriteResponse

WriteResponse to the client

type UpdateOfficeUserOK

type UpdateOfficeUserOK struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.OfficeUser `json:"body,omitempty"`
}

UpdateOfficeUserOK Successfully updated Office User

swagger:response updateOfficeUserOK

func NewUpdateOfficeUserOK

func NewUpdateOfficeUserOK() *UpdateOfficeUserOK

NewUpdateOfficeUserOK creates UpdateOfficeUserOK with default headers values

func (*UpdateOfficeUserOK) SetPayload

func (o *UpdateOfficeUserOK) SetPayload(payload *adminmessages.OfficeUser)

SetPayload sets the payload to the update office user o k response

func (*UpdateOfficeUserOK) WithPayload

WithPayload adds the payload to the update office user o k response

func (*UpdateOfficeUserOK) WriteResponse

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

WriteResponse to the client

type UpdateOfficeUserParams

type UpdateOfficeUserParams struct {

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

	/*Office User information
	  Required: true
	  In: body
	*/
	OfficeUser *adminmessages.OfficeUserUpdate
	/*
	  Required: true
	  In: path
	*/
	OfficeUserID strfmt.UUID
}

UpdateOfficeUserParams contains all the bound params for the update office user operation typically these are obtained from a http.Request

swagger:parameters updateOfficeUser

func NewUpdateOfficeUserParams

func NewUpdateOfficeUserParams() UpdateOfficeUserParams

NewUpdateOfficeUserParams creates a new UpdateOfficeUserParams object

There are no default values defined in the spec.

func (*UpdateOfficeUserParams) BindRequest

func (o *UpdateOfficeUserParams) 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 NewUpdateOfficeUserParams() beforehand.

type UpdateOfficeUserURL

type UpdateOfficeUserURL struct {
	OfficeUserID strfmt.UUID
	// contains filtered or unexported fields
}

UpdateOfficeUserURL generates an URL for the update office user operation

func (*UpdateOfficeUserURL) Build

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

Build a url path and query string

func (*UpdateOfficeUserURL) BuildFull

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

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

func (*UpdateOfficeUserURL) Must

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

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

func (*UpdateOfficeUserURL) SetBasePath

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

func (o *UpdateOfficeUserURL) String() string

String returns the string representation of the path with query string

func (*UpdateOfficeUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateOfficeUserURL) WithBasePath

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

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 UpdateOfficeUserUnauthorized

type UpdateOfficeUserUnauthorized struct {
}

UpdateOfficeUserUnauthorized Must be authenticated to use this end point

swagger:response updateOfficeUserUnauthorized

func NewUpdateOfficeUserUnauthorized

func NewUpdateOfficeUserUnauthorized() *UpdateOfficeUserUnauthorized

NewUpdateOfficeUserUnauthorized creates UpdateOfficeUserUnauthorized with default headers values

func (*UpdateOfficeUserUnauthorized) WriteResponse

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