user

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new user API client.

func (*Client) CreateUser

func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserOK, error)

CreateUser creates a user

func (*Client) CurrentUser

func (a *Client) CurrentUser(params *CurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*CurrentUserOK, error)

CurrentUser returns the current user

func (*Client) DeleteUser

func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error)

DeleteUser deletes a user

func (*Client) GetUser

func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)

GetUser gets a user

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)

GetUsers returns all users

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateCurrentUser

func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrentUserOK, error)

UpdateCurrentUser updates the password of the current user

func (*Client) UpdateUser

func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOK, error)

UpdateUser updates a user

type CreateUserBadRequest added in v1.2.0

type CreateUserBadRequest struct {
	Payload *models.Error
}

CreateUserBadRequest handles this case with default header values.

Bad Request

func NewCreateUserBadRequest added in v1.2.0

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Error added in v1.2.0

func (o *CreateUserBadRequest) Error() string

type CreateUserForbidden

type CreateUserForbidden struct {
	Payload *models.Error
}

CreateUserForbidden handles this case with default header values.

Forbidden

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates a CreateUserForbidden with default headers values

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

type CreateUserOK

type CreateUserOK struct {
	Payload *models.UserExternal
}

CreateUserOK handles this case with default header values.

Ok

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates a CreateUserOK with default headers values

func (*CreateUserOK) Error

func (o *CreateUserOK) Error() string

type CreateUserParams

type CreateUserParams struct {

	/*Body
	  the user to add

	*/
	Body *models.UserExternalWithPass

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateUserParams contains all the parameters to send to the API endpoint for the create user operation typically these are written to a http.Request

func NewCreateUserParams

func NewCreateUserParams() *CreateUserParams

NewCreateUserParams creates a new CreateUserParams object with the default values initialized.

func NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

NewCreateUserParamsWithContext creates a new CreateUserParams object with the default values initialized, and the ability to set a context for a request

func NewCreateUserParamsWithHTTPClient

func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams

NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateUserParamsWithTimeout

func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams

NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateUserParams) SetBody

func (o *CreateUserParams) SetBody(body *models.UserExternalWithPass)

SetBody adds the body to the create user params

func (*CreateUserParams) SetContext

func (o *CreateUserParams) SetContext(ctx context.Context)

SetContext adds the context to the create user params

func (*CreateUserParams) SetHTTPClient

func (o *CreateUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) SetTimeout

func (o *CreateUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create user params

func (*CreateUserParams) WithBody

WithBody adds the body to the create user params

func (*CreateUserParams) WithContext

func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams

WithContext adds the context to the create user params

func (*CreateUserParams) WithHTTPClient

func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams

WithHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) WithTimeout

func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams

WithTimeout adds the timeout to the create user params

func (*CreateUserParams) WriteToRequest

func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateUserReader

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

CreateUserReader is a Reader for the CreateUser structure.

func (*CreateUserReader) ReadResponse

func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateUserUnauthorized

type CreateUserUnauthorized struct {
	Payload *models.Error
}

CreateUserUnauthorized handles this case with default header values.

Unauthorized

func NewCreateUserUnauthorized

func NewCreateUserUnauthorized() *CreateUserUnauthorized

NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values

func (*CreateUserUnauthorized) Error

func (o *CreateUserUnauthorized) Error() string

type CurrentUserForbidden

type CurrentUserForbidden struct {
	Payload *models.Error
}

CurrentUserForbidden handles this case with default header values.

Forbidden

func NewCurrentUserForbidden

func NewCurrentUserForbidden() *CurrentUserForbidden

NewCurrentUserForbidden creates a CurrentUserForbidden with default headers values

func (*CurrentUserForbidden) Error

func (o *CurrentUserForbidden) Error() string

type CurrentUserOK

type CurrentUserOK struct {
	Payload *models.UserExternal
}

CurrentUserOK handles this case with default header values.

Ok

func NewCurrentUserOK

func NewCurrentUserOK() *CurrentUserOK

NewCurrentUserOK creates a CurrentUserOK with default headers values

func (*CurrentUserOK) Error

func (o *CurrentUserOK) Error() string

type CurrentUserParams

type CurrentUserParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CurrentUserParams contains all the parameters to send to the API endpoint for the current user operation typically these are written to a http.Request

func NewCurrentUserParams

func NewCurrentUserParams() *CurrentUserParams

NewCurrentUserParams creates a new CurrentUserParams object with the default values initialized.

func NewCurrentUserParamsWithContext

func NewCurrentUserParamsWithContext(ctx context.Context) *CurrentUserParams

NewCurrentUserParamsWithContext creates a new CurrentUserParams object with the default values initialized, and the ability to set a context for a request

func NewCurrentUserParamsWithHTTPClient

func NewCurrentUserParamsWithHTTPClient(client *http.Client) *CurrentUserParams

NewCurrentUserParamsWithHTTPClient creates a new CurrentUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCurrentUserParamsWithTimeout

func NewCurrentUserParamsWithTimeout(timeout time.Duration) *CurrentUserParams

NewCurrentUserParamsWithTimeout creates a new CurrentUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*CurrentUserParams) SetContext

func (o *CurrentUserParams) SetContext(ctx context.Context)

SetContext adds the context to the current user params

func (*CurrentUserParams) SetHTTPClient

func (o *CurrentUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the current user params

func (*CurrentUserParams) SetTimeout

func (o *CurrentUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the current user params

func (*CurrentUserParams) WithContext

func (o *CurrentUserParams) WithContext(ctx context.Context) *CurrentUserParams

WithContext adds the context to the current user params

func (*CurrentUserParams) WithHTTPClient

func (o *CurrentUserParams) WithHTTPClient(client *http.Client) *CurrentUserParams

WithHTTPClient adds the HTTPClient to the current user params

func (*CurrentUserParams) WithTimeout

func (o *CurrentUserParams) WithTimeout(timeout time.Duration) *CurrentUserParams

WithTimeout adds the timeout to the current user params

func (*CurrentUserParams) WriteToRequest

func (o *CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CurrentUserReader

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

CurrentUserReader is a Reader for the CurrentUser structure.

func (*CurrentUserReader) ReadResponse

func (o *CurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CurrentUserUnauthorized

type CurrentUserUnauthorized struct {
	Payload *models.Error
}

CurrentUserUnauthorized handles this case with default header values.

Unauthorized

func NewCurrentUserUnauthorized

func NewCurrentUserUnauthorized() *CurrentUserUnauthorized

NewCurrentUserUnauthorized creates a CurrentUserUnauthorized with default headers values

func (*CurrentUserUnauthorized) Error

func (o *CurrentUserUnauthorized) Error() string

type DeleteUserBadRequest added in v1.2.0

type DeleteUserBadRequest struct {
	Payload *models.Error
}

DeleteUserBadRequest handles this case with default header values.

Bad Request

func NewDeleteUserBadRequest added in v1.2.0

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) Error added in v1.2.0

func (o *DeleteUserBadRequest) Error() string

type DeleteUserForbidden

type DeleteUserForbidden struct {
	Payload *models.Error
}

DeleteUserForbidden handles this case with default header values.

Forbidden

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

type DeleteUserNotFound added in v1.2.0

type DeleteUserNotFound struct {
	Payload *models.Error
}

DeleteUserNotFound handles this case with default header values.

Not Found

func NewDeleteUserNotFound added in v1.2.0

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Error added in v1.2.0

func (o *DeleteUserNotFound) Error() string

type DeleteUserOK

type DeleteUserOK struct {
}

DeleteUserOK handles this case with default header values.

Ok

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

type DeleteUserParams

type DeleteUserParams struct {

	/*ID
	  the user id

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteUserParams contains all the parameters to send to the API endpoint for the delete user operation typically these are written to a http.Request

func NewDeleteUserParams

func NewDeleteUserParams() *DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object with the default values initialized.

func NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteUserParamsWithHTTPClient

func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams

NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteUserParamsWithTimeout

func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams

NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteUserParams) SetContext

func (o *DeleteUserParams) SetContext(ctx context.Context)

SetContext adds the context to the delete user params

func (*DeleteUserParams) SetHTTPClient

func (o *DeleteUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) SetID

func (o *DeleteUserParams) SetID(id int64)

SetID adds the id to the delete user params

func (*DeleteUserParams) SetTimeout

func (o *DeleteUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithContext

func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithHTTPClient

func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithID

func (o *DeleteUserParams) WithID(id int64) *DeleteUserParams

WithID adds the id to the delete user params

func (*DeleteUserParams) WithTimeout

func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WriteToRequest

func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteUserReader

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

DeleteUserReader is a Reader for the DeleteUser structure.

func (*DeleteUserReader) ReadResponse

func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteUserUnauthorized

type DeleteUserUnauthorized struct {
	Payload *models.Error
}

DeleteUserUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteUserUnauthorized

func NewDeleteUserUnauthorized() *DeleteUserUnauthorized

NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values

func (*DeleteUserUnauthorized) Error

func (o *DeleteUserUnauthorized) Error() string

type GetUserBadRequest added in v1.2.0

type GetUserBadRequest struct {
	Payload *models.Error
}

GetUserBadRequest handles this case with default header values.

Bad Request

func NewGetUserBadRequest added in v1.2.0

func NewGetUserBadRequest() *GetUserBadRequest

NewGetUserBadRequest creates a GetUserBadRequest with default headers values

func (*GetUserBadRequest) Error added in v1.2.0

func (o *GetUserBadRequest) Error() string

type GetUserForbidden

type GetUserForbidden struct {
	Payload *models.Error
}

GetUserForbidden handles this case with default header values.

Forbidden

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

type GetUserNotFound added in v1.2.0

type GetUserNotFound struct {
	Payload *models.Error
}

GetUserNotFound handles this case with default header values.

Not Found

func NewGetUserNotFound added in v1.2.0

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Error added in v1.2.0

func (o *GetUserNotFound) Error() string

type GetUserOK

type GetUserOK struct {
	Payload *models.UserExternal
}

GetUserOK handles this case with default header values.

Ok

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

type GetUserParams

type GetUserParams struct {

	/*ID
	  the user id

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUserParams contains all the parameters to send to the API endpoint for the get user operation typically these are written to a http.Request

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams object with the default values initialized.

func NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

NewGetUserParamsWithTimeout creates a new GetUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserParams) SetContext

func (o *GetUserParams) SetContext(ctx context.Context)

SetContext adds the context to the get user params

func (*GetUserParams) SetHTTPClient

func (o *GetUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetID

func (o *GetUserParams) SetID(id int64)

SetID adds the id to the get user params

func (*GetUserParams) SetTimeout

func (o *GetUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get user params

func (*GetUserParams) WithContext

func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams

WithContext adds the context to the get user params

func (*GetUserParams) WithHTTPClient

func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithID

func (o *GetUserParams) WithID(id int64) *GetUserParams

WithID adds the id to the get user params

func (*GetUserParams) WithTimeout

func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WriteToRequest

func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUserUnauthorized

type GetUserUnauthorized struct {
	Payload *models.Error
}

GetUserUnauthorized handles this case with default header values.

Unauthorized

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

type GetUsersForbidden

type GetUsersForbidden struct {
	Payload *models.Error
}

GetUsersForbidden handles this case with default header values.

Forbidden

func NewGetUsersForbidden

func NewGetUsersForbidden() *GetUsersForbidden

NewGetUsersForbidden creates a GetUsersForbidden with default headers values

func (*GetUsersForbidden) Error

func (o *GetUsersForbidden) Error() string

type GetUsersOK

type GetUsersOK struct {
	Payload []*models.UserExternal
}

GetUsersOK handles this case with default header values.

Ok

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

type GetUsersParams

type GetUsersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUsersParams contains all the parameters to send to the API endpoint for the get users operation typically these are written to a http.Request

func NewGetUsersParams

func NewGetUsersParams() *GetUsersParams

NewGetUsersParams creates a new GetUsersParams object with the default values initialized.

func NewGetUsersParamsWithContext

func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams

NewGetUsersParamsWithContext creates a new GetUsersParams object with the default values initialized, and the ability to set a context for a request

func NewGetUsersParamsWithHTTPClient

func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams

NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUsersParams) SetContext

func (o *GetUsersParams) SetContext(ctx context.Context)

SetContext adds the context to the get users params

func (*GetUsersParams) SetHTTPClient

func (o *GetUsersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetTimeout

func (o *GetUsersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get users params

func (*GetUsersParams) WithContext

func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams

WithContext adds the context to the get users params

func (*GetUsersParams) WithHTTPClient

func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithTimeout

func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams

WithTimeout adds the timeout to the get users params

func (*GetUsersParams) WriteToRequest

func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUsersReader

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

GetUsersReader is a Reader for the GetUsers structure.

func (*GetUsersReader) ReadResponse

func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUsersUnauthorized

type GetUsersUnauthorized struct {
	Payload *models.Error
}

GetUsersUnauthorized handles this case with default header values.

Unauthorized

func NewGetUsersUnauthorized

func NewGetUsersUnauthorized() *GetUsersUnauthorized

NewGetUsersUnauthorized creates a GetUsersUnauthorized with default headers values

func (*GetUsersUnauthorized) Error

func (o *GetUsersUnauthorized) Error() string

type UpdateCurrentUserBadRequest added in v1.2.0

type UpdateCurrentUserBadRequest struct {
	Payload *models.Error
}

UpdateCurrentUserBadRequest handles this case with default header values.

Bad Request

func NewUpdateCurrentUserBadRequest added in v1.2.0

func NewUpdateCurrentUserBadRequest() *UpdateCurrentUserBadRequest

NewUpdateCurrentUserBadRequest creates a UpdateCurrentUserBadRequest with default headers values

func (*UpdateCurrentUserBadRequest) Error added in v1.2.0

type UpdateCurrentUserForbidden

type UpdateCurrentUserForbidden struct {
	Payload *models.Error
}

UpdateCurrentUserForbidden handles this case with default header values.

Forbidden

func NewUpdateCurrentUserForbidden

func NewUpdateCurrentUserForbidden() *UpdateCurrentUserForbidden

NewUpdateCurrentUserForbidden creates a UpdateCurrentUserForbidden with default headers values

func (*UpdateCurrentUserForbidden) Error

type UpdateCurrentUserOK

type UpdateCurrentUserOK struct {
}

UpdateCurrentUserOK handles this case with default header values.

Ok

func NewUpdateCurrentUserOK

func NewUpdateCurrentUserOK() *UpdateCurrentUserOK

NewUpdateCurrentUserOK creates a UpdateCurrentUserOK with default headers values

func (*UpdateCurrentUserOK) Error

func (o *UpdateCurrentUserOK) Error() string

type UpdateCurrentUserParams

type UpdateCurrentUserParams struct {

	/*Body
	  the user

	*/
	Body *models.UserExternalPass

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateCurrentUserParams contains all the parameters to send to the API endpoint for the update current user operation typically these are written to a http.Request

func NewUpdateCurrentUserParams

func NewUpdateCurrentUserParams() *UpdateCurrentUserParams

NewUpdateCurrentUserParams creates a new UpdateCurrentUserParams object with the default values initialized.

func NewUpdateCurrentUserParamsWithContext

func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithContext creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateCurrentUserParamsWithHTTPClient

func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithHTTPClient creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateCurrentUserParamsWithTimeout

func NewUpdateCurrentUserParamsWithTimeout(timeout time.Duration) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithTimeout creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateCurrentUserParams) SetBody

SetBody adds the body to the update current user params

func (*UpdateCurrentUserParams) SetContext

func (o *UpdateCurrentUserParams) SetContext(ctx context.Context)

SetContext adds the context to the update current user params

func (*UpdateCurrentUserParams) SetHTTPClient

func (o *UpdateCurrentUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) SetTimeout

func (o *UpdateCurrentUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WithBody

WithBody adds the body to the update current user params

func (*UpdateCurrentUserParams) WithContext

WithContext adds the context to the update current user params

func (*UpdateCurrentUserParams) WithHTTPClient

func (o *UpdateCurrentUserParams) WithHTTPClient(client *http.Client) *UpdateCurrentUserParams

WithHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) WithTimeout

WithTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentUserReader

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

UpdateCurrentUserReader is a Reader for the UpdateCurrentUser structure.

func (*UpdateCurrentUserReader) ReadResponse

func (o *UpdateCurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCurrentUserUnauthorized

type UpdateCurrentUserUnauthorized struct {
	Payload *models.Error
}

UpdateCurrentUserUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateCurrentUserUnauthorized

func NewUpdateCurrentUserUnauthorized() *UpdateCurrentUserUnauthorized

NewUpdateCurrentUserUnauthorized creates a UpdateCurrentUserUnauthorized with default headers values

func (*UpdateCurrentUserUnauthorized) Error

type UpdateUserBadRequest added in v1.2.0

type UpdateUserBadRequest struct {
	Payload *models.Error
}

UpdateUserBadRequest handles this case with default header values.

Bad Request

func NewUpdateUserBadRequest added in v1.2.0

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) Error added in v1.2.0

func (o *UpdateUserBadRequest) Error() string

type UpdateUserForbidden

type UpdateUserForbidden struct {
	Payload *models.Error
}

UpdateUserForbidden handles this case with default header values.

Forbidden

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) Error

func (o *UpdateUserForbidden) Error() string

type UpdateUserNotFound added in v1.2.0

type UpdateUserNotFound struct {
	Payload *models.Error
}

UpdateUserNotFound handles this case with default header values.

Not Found

func NewUpdateUserNotFound added in v1.2.0

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) Error added in v1.2.0

func (o *UpdateUserNotFound) Error() string

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.UserExternal
}

UpdateUserOK handles this case with default header values.

Ok

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

type UpdateUserParams

type UpdateUserParams struct {

	/*Body
	  the updated user

	*/
	Body *models.UserExternalWithPass
	/*ID
	  the user id

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateUserParams contains all the parameters to send to the API endpoint for the update user operation typically these are written to a http.Request

func NewUpdateUserParams

func NewUpdateUserParams() *UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object with the default values initialized.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateUserParamsWithHTTPClient

func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams

NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateUserParamsWithTimeout

func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams

NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateUserParams) SetBody

func (o *UpdateUserParams) SetBody(body *models.UserExternalWithPass)

SetBody adds the body to the update user params

func (*UpdateUserParams) SetContext

func (o *UpdateUserParams) SetContext(ctx context.Context)

SetContext adds the context to the update user params

func (*UpdateUserParams) SetHTTPClient

func (o *UpdateUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) SetID

func (o *UpdateUserParams) SetID(id int64)

SetID adds the id to the update user params

func (*UpdateUserParams) SetTimeout

func (o *UpdateUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update user params

func (*UpdateUserParams) WithBody

WithBody adds the body to the update user params

func (*UpdateUserParams) WithContext

func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams

WithContext adds the context to the update user params

func (*UpdateUserParams) WithHTTPClient

func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams

WithHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) WithID

func (o *UpdateUserParams) WithID(id int64) *UpdateUserParams

WithID adds the id to the update user params

func (*UpdateUserParams) WithTimeout

func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams

WithTimeout adds the timeout to the update user params

func (*UpdateUserParams) WriteToRequest

func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateUserReader

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

UpdateUserReader is a Reader for the UpdateUser structure.

func (*UpdateUserReader) ReadResponse

func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateUserUnauthorized

type UpdateUserUnauthorized struct {
	Payload *models.Error
}

UpdateUserUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateUserUnauthorized

func NewUpdateUserUnauthorized() *UpdateUserUnauthorized

NewUpdateUserUnauthorized creates a UpdateUserUnauthorized with default headers values

func (*UpdateUserUnauthorized) Error

func (o *UpdateUserUnauthorized) Error() string

Jump to

Keyboard shortcuts

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