user

package
v0.0.0-...-281c92d Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CreateUserCreatedCode int = 201

CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated

View Source
const DeleteUserOKCode int = 200

DeleteUserOKCode is the HTTP code returned for type DeleteUserOK

View Source
const GetUserOKCode int = 200

GetUserOKCode is the HTTP code returned for type GetUserOK

View Source
const GetUsersOKCode int = 200

GetUsersOKCode is the HTTP code returned for type GetUsersOK

View Source
const UpdateUserOKCode int = 200

UpdateUserOKCode is the HTTP code returned for type UpdateUserOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUser

type CreateUser struct {
	Context *middleware.Context
	Handler CreateUserHandler
}

CreateUser swagger:route POST /projects/{projectId}/users user createUser

Create a new user

func NewCreateUser

func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser

NewCreateUser creates a new http.Handler for the create user operation

func (*CreateUser) ServeHTTP

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

type CreateUserCreated

type CreateUserCreated struct {

	/*
	  In: Body
	*/
	Payload *models.UserResponse `json:"body,omitempty"`
}

CreateUserCreated Created

swagger:response createUserCreated

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates CreateUserCreated with default headers values

func (*CreateUserCreated) SetPayload

func (o *CreateUserCreated) SetPayload(payload *models.UserResponse)

SetPayload sets the payload to the create user created response

func (*CreateUserCreated) WithPayload

func (o *CreateUserCreated) WithPayload(payload *models.UserResponse) *CreateUserCreated

WithPayload adds the payload to the create user created response

func (*CreateUserCreated) WriteResponse

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

WriteResponse to the client

type CreateUserDefault

type CreateUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateUserDefault unexpected error

swagger:response createUserDefault

func NewCreateUserDefault

func NewCreateUserDefault(code int) *CreateUserDefault

NewCreateUserDefault creates CreateUserDefault with default headers values

func (*CreateUserDefault) SetPayload

func (o *CreateUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user default response

func (*CreateUserDefault) SetStatusCode

func (o *CreateUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create user default response

func (*CreateUserDefault) WithPayload

func (o *CreateUserDefault) WithPayload(payload *models.Error) *CreateUserDefault

WithPayload adds the payload to the create user default response

func (*CreateUserDefault) WithStatusCode

func (o *CreateUserDefault) WithStatusCode(code int) *CreateUserDefault

WithStatusCode adds the status to the create user default response

func (*CreateUserDefault) WriteResponse

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

WriteResponse to the client

type CreateUserHandler

type CreateUserHandler interface {
	Handle(CreateUserParams) middleware.Responder
}

CreateUserHandler interface for that can handle valid create user params

type CreateUserHandlerFunc

type CreateUserHandlerFunc func(CreateUserParams) middleware.Responder

CreateUserHandlerFunc turns a function with the right signature into a create user handler

func (CreateUserHandlerFunc) Handle

Handle executing the request and returning a response

type CreateUserParams

type CreateUserParams struct {

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

	/*The user details
	  Required: true
	  In: body
	*/
	Body *models.UserRequest
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters createUser

func NewCreateUserParams

func NewCreateUserParams() CreateUserParams

NewCreateUserParams creates a new CreateUserParams object no default values defined in spec.

func (*CreateUserParams) BindRequest

func (o *CreateUserParams) 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 NewCreateUserParams() beforehand.

type CreateUserURL

type CreateUserURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

CreateUserURL generates an URL for the create user operation

func (*CreateUserURL) Build

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

Build a url path and query string

func (*CreateUserURL) BuildFull

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

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

func (*CreateUserURL) Must

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

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

func (*CreateUserURL) SetBasePath

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

func (o *CreateUserURL) String() string

String returns the string representation of the path with query string

func (*CreateUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateUserURL) WithBasePath

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

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 DeleteUser

type DeleteUser struct {
	Context *middleware.Context
	Handler DeleteUserHandler
}

DeleteUser swagger:route DELETE /projects/{projectId}/users/{id} user deleteUser

Delete a user

func NewDeleteUser

func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser

NewDeleteUser creates a new http.Handler for the delete user operation

func (*DeleteUser) ServeHTTP

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

type DeleteUserDefault

type DeleteUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserDefault unexpected error

swagger:response deleteUserDefault

func NewDeleteUserDefault

func NewDeleteUserDefault(code int) *DeleteUserDefault

NewDeleteUserDefault creates DeleteUserDefault with default headers values

func (*DeleteUserDefault) SetPayload

func (o *DeleteUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user default response

func (*DeleteUserDefault) SetStatusCode

func (o *DeleteUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete user default response

func (*DeleteUserDefault) WithPayload

func (o *DeleteUserDefault) WithPayload(payload *models.Error) *DeleteUserDefault

WithPayload adds the payload to the delete user default response

func (*DeleteUserDefault) WithStatusCode

func (o *DeleteUserDefault) WithStatusCode(code int) *DeleteUserDefault

WithStatusCode adds the status to the delete user default response

func (*DeleteUserDefault) WriteResponse

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

WriteResponse to the client

type DeleteUserHandler

type DeleteUserHandler interface {
	Handle(DeleteUserParams) middleware.Responder
}

DeleteUserHandler interface for that can handle valid delete user params

type DeleteUserHandlerFunc

type DeleteUserHandlerFunc func(DeleteUserParams) middleware.Responder

DeleteUserHandlerFunc turns a function with the right signature into a delete user handler

func (DeleteUserHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUserOK

type DeleteUserOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserResponse `json:"body,omitempty"`
}

DeleteUserOK The user details

swagger:response deleteUserOK

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates DeleteUserOK with default headers values

func (*DeleteUserOK) SetPayload

func (o *DeleteUserOK) SetPayload(payload *models.UserResponse)

SetPayload sets the payload to the delete user o k response

func (*DeleteUserOK) WithPayload

func (o *DeleteUserOK) WithPayload(payload *models.UserResponse) *DeleteUserOK

WithPayload adds the payload to the delete user o k response

func (*DeleteUserOK) WriteResponse

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

WriteResponse to the client

type DeleteUserParams

type DeleteUserParams struct {

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

	/*The user id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

DeleteUserParams contains all the bound params for the delete user operation typically these are obtained from a http.Request

swagger:parameters deleteUser

func NewDeleteUserParams

func NewDeleteUserParams() DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object no default values defined in spec.

func (*DeleteUserParams) BindRequest

func (o *DeleteUserParams) 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 NewDeleteUserParams() beforehand.

type DeleteUserURL

type DeleteUserURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

DeleteUserURL generates an URL for the delete user operation

func (*DeleteUserURL) Build

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

Build a url path and query string

func (*DeleteUserURL) BuildFull

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

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

func (*DeleteUserURL) Must

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

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

func (*DeleteUserURL) SetBasePath

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

func (o *DeleteUserURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteUserURL) WithBasePath

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

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 GetUser

type GetUser struct {
	Context *middleware.Context
	Handler GetUserHandler
}

GetUser swagger:route GET /projects/{projectId}/users/{id} user getUser

Get a user

func NewGetUser

func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser

NewGetUser creates a new http.Handler for the get user operation

func (*GetUser) ServeHTTP

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

type GetUserDefault

type GetUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetUserDefault unexpected error

swagger:response getUserDefault

func NewGetUserDefault

func NewGetUserDefault(code int) *GetUserDefault

NewGetUserDefault creates GetUserDefault with default headers values

func (*GetUserDefault) SetPayload

func (o *GetUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get user default response

func (*GetUserDefault) SetStatusCode

func (o *GetUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user default response

func (*GetUserDefault) WithPayload

func (o *GetUserDefault) WithPayload(payload *models.Error) *GetUserDefault

WithPayload adds the payload to the get user default response

func (*GetUserDefault) WithStatusCode

func (o *GetUserDefault) WithStatusCode(code int) *GetUserDefault

WithStatusCode adds the status to the get user default response

func (*GetUserDefault) WriteResponse

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

WriteResponse to the client

type GetUserHandler

type GetUserHandler interface {
	Handle(GetUserParams) middleware.Responder
}

GetUserHandler interface for that can handle valid get user params

type GetUserHandlerFunc

type GetUserHandlerFunc func(GetUserParams) middleware.Responder

GetUserHandlerFunc turns a function with the right signature into a get user handler

func (GetUserHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserOK

type GetUserOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserResponse `json:"body,omitempty"`
}

GetUserOK The user details

swagger:response getUserOK

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates GetUserOK with default headers values

func (*GetUserOK) SetPayload

func (o *GetUserOK) SetPayload(payload *models.UserResponse)

SetPayload sets the payload to the get user o k response

func (*GetUserOK) WithPayload

func (o *GetUserOK) WithPayload(payload *models.UserResponse) *GetUserOK

WithPayload adds the payload to the get user o k response

func (*GetUserOK) WriteResponse

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

WriteResponse to the client

type GetUserParams

type GetUserParams struct {

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

	/*The user id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters getUser

func NewGetUserParams

func NewGetUserParams() GetUserParams

NewGetUserParams creates a new GetUserParams object no default values defined in spec.

func (*GetUserParams) BindRequest

func (o *GetUserParams) 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 NewGetUserParams() beforehand.

type GetUserURL

type GetUserURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

GetUserURL generates an URL for the get user operation

func (*GetUserURL) Build

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

Build a url path and query string

func (*GetUserURL) BuildFull

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

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

func (*GetUserURL) Must

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

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

func (*GetUserURL) SetBasePath

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

func (o *GetUserURL) String() string

String returns the string representation of the path with query string

func (*GetUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserURL) WithBasePath

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

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 GetUsers

type GetUsers struct {
	Context *middleware.Context
	Handler GetUsersHandler
}

GetUsers swagger:route GET /projects/{projectId}/users user getUsers

Get the users of the model

func NewGetUsers

func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers

NewGetUsers creates a new http.Handler for the get users operation

func (*GetUsers) ServeHTTP

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

type GetUsersDefault

type GetUsersDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetUsersDefault unexpected error

swagger:response getUsersDefault

func NewGetUsersDefault

func NewGetUsersDefault(code int) *GetUsersDefault

NewGetUsersDefault creates GetUsersDefault with default headers values

func (*GetUsersDefault) SetPayload

func (o *GetUsersDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get users default response

func (*GetUsersDefault) SetStatusCode

func (o *GetUsersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get users default response

func (*GetUsersDefault) WithPayload

func (o *GetUsersDefault) WithPayload(payload *models.Error) *GetUsersDefault

WithPayload adds the payload to the get users default response

func (*GetUsersDefault) WithStatusCode

func (o *GetUsersDefault) WithStatusCode(code int) *GetUsersDefault

WithStatusCode adds the status to the get users default response

func (*GetUsersDefault) WriteResponse

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

WriteResponse to the client

type GetUsersHandler

type GetUsersHandler interface {
	Handle(GetUsersParams) middleware.Responder
}

GetUsersHandler interface for that can handle valid get users params

type GetUsersHandlerFunc

type GetUsersHandlerFunc func(GetUsersParams) middleware.Responder

GetUsersHandlerFunc turns a function with the right signature into a get users handler

func (GetUsersHandlerFunc) Handle

Handle executing the request and returning a response

type GetUsersOK

type GetUsersOK struct {

	/*
	  In: Body
	*/
	Payload *models.UsersResponse `json:"body,omitempty"`
}

GetUsersOK Created

swagger:response getUsersOK

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates GetUsersOK with default headers values

func (*GetUsersOK) SetPayload

func (o *GetUsersOK) SetPayload(payload *models.UsersResponse)

SetPayload sets the payload to the get users o k response

func (*GetUsersOK) WithPayload

func (o *GetUsersOK) WithPayload(payload *models.UsersResponse) *GetUsersOK

WithPayload adds the payload to the get users o k response

func (*GetUsersOK) WriteResponse

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

WriteResponse to the client

type GetUsersParams

type GetUsersParams struct {

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

	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters getUsers

func NewGetUsersParams

func NewGetUsersParams() GetUsersParams

NewGetUsersParams creates a new GetUsersParams object no default values defined in spec.

func (*GetUsersParams) BindRequest

func (o *GetUsersParams) 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 NewGetUsersParams() beforehand.

type GetUsersURL

type GetUsersURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

GetUsersURL generates an URL for the get users operation

func (*GetUsersURL) Build

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

Build a url path and query string

func (*GetUsersURL) BuildFull

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

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

func (*GetUsersURL) Must

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

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

func (*GetUsersURL) SetBasePath

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

func (o *GetUsersURL) String() string

String returns the string representation of the path with query string

func (*GetUsersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUsersURL) WithBasePath

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

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 UpdateUser

type UpdateUser struct {
	Context *middleware.Context
	Handler UpdateUserHandler
}

UpdateUser swagger:route PUT /projects/{projectId}/users/{id} user updateUser

Update a user

func NewUpdateUser

func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser

NewUpdateUser creates a new http.Handler for the update user operation

func (*UpdateUser) ServeHTTP

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

type UpdateUserDefault

type UpdateUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserDefault unexpected error

swagger:response updateUserDefault

func NewUpdateUserDefault

func NewUpdateUserDefault(code int) *UpdateUserDefault

NewUpdateUserDefault creates UpdateUserDefault with default headers values

func (*UpdateUserDefault) SetPayload

func (o *UpdateUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user default response

func (*UpdateUserDefault) SetStatusCode

func (o *UpdateUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update user default response

func (*UpdateUserDefault) WithPayload

func (o *UpdateUserDefault) WithPayload(payload *models.Error) *UpdateUserDefault

WithPayload adds the payload to the update user default response

func (*UpdateUserDefault) WithStatusCode

func (o *UpdateUserDefault) WithStatusCode(code int) *UpdateUserDefault

WithStatusCode adds the status to the update user default response

func (*UpdateUserDefault) WriteResponse

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

WriteResponse to the client

type UpdateUserHandler

type UpdateUserHandler interface {
	Handle(UpdateUserParams) middleware.Responder
}

UpdateUserHandler interface for that can handle valid update user params

type UpdateUserHandlerFunc

type UpdateUserHandlerFunc func(UpdateUserParams) middleware.Responder

UpdateUserHandlerFunc turns a function with the right signature into a update user handler

func (UpdateUserHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserOK

type UpdateUserOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserResponse `json:"body,omitempty"`
}

UpdateUserOK The user details

swagger:response updateUserOK

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates UpdateUserOK with default headers values

func (*UpdateUserOK) SetPayload

func (o *UpdateUserOK) SetPayload(payload *models.UserResponse)

SetPayload sets the payload to the update user o k response

func (*UpdateUserOK) WithPayload

func (o *UpdateUserOK) WithPayload(payload *models.UserResponse) *UpdateUserOK

WithPayload adds the payload to the update user o k response

func (*UpdateUserOK) WriteResponse

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

WriteResponse to the client

type UpdateUserParams

type UpdateUserParams struct {

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

	/*The user details
	  In: body
	*/
	Body *models.UserRequest
	/*The user id
	  Required: true
	  In: path
	*/
	ID string
	/*The project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

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

swagger:parameters updateUser

func NewUpdateUserParams

func NewUpdateUserParams() UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object no default values defined in spec.

func (*UpdateUserParams) BindRequest

func (o *UpdateUserParams) 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 NewUpdateUserParams() beforehand.

type UpdateUserURL

type UpdateUserURL struct {
	ID        string
	ProjectID string
	// contains filtered or unexported fields
}

UpdateUserURL generates an URL for the update user operation

func (*UpdateUserURL) Build

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

Build a url path and query string

func (*UpdateUserURL) BuildFull

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

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

func (*UpdateUserURL) Must

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

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

func (*UpdateUserURL) SetBasePath

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

func (o *UpdateUserURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUserURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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