users

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

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 users API

func (*Client) GetUserByID

func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByIDOK, error)

GetUserByID gets user by id

func (*Client) GetUserByLoginOrEmail

func (a *Client) GetUserByLoginOrEmail(params *GetUserByLoginOrEmailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByLoginOrEmailOK, error)

GetUserByLoginOrEmail gets user by login or email

func (*Client) GetUserOrgList

func (a *Client) GetUserOrgList(params *GetUserOrgListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOrgListOK, error)

GetUserOrgList gets organizations for user

Get organizations for user identified by id.

func (*Client) GetUserTeams

func (a *Client) GetUserTeams(params *GetUserTeamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserTeamsOK, error)

GetUserTeams gets teams for user

Get teams for user identified by id.

func (*Client) SearchUsers

func (a *Client) SearchUsers(params *SearchUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchUsersOK, error)

SearchUsers gets users

Returns all users that the authenticated user has permission to view, admin permission required.

func (*Client) SearchUsersWithPaging

func (a *Client) SearchUsersWithPaging(params *SearchUsersWithPagingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchUsersWithPagingOK, error)

SearchUsersWithPaging gets users with paging

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUser

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

UpdateUser updates user

Update the user identified by id.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByIDOK, error)

	GetUserByLoginOrEmail(params *GetUserByLoginOrEmailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByLoginOrEmailOK, error)

	GetUserOrgList(params *GetUserOrgListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOrgListOK, error)

	GetUserTeams(params *GetUserTeamsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserTeamsOK, error)

	SearchUsers(params *SearchUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchUsersOK, error)

	SearchUsersWithPaging(params *SearchUsersWithPagingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchUsersWithPagingOK, error)

	UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new users API client.

type GetUserByIDForbidden

type GetUserByIDForbidden struct {
	Payload *models.ErrorResponseBody
}

GetUserByIDForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetUserByIDForbidden

func NewGetUserByIDForbidden() *GetUserByIDForbidden

NewGetUserByIDForbidden creates a GetUserByIDForbidden with default headers values

func (*GetUserByIDForbidden) Error

func (o *GetUserByIDForbidden) Error() string

func (*GetUserByIDForbidden) GetPayload

type GetUserByIDInternalServerError

type GetUserByIDInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetUserByIDInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserByIDInternalServerError

func NewGetUserByIDInternalServerError() *GetUserByIDInternalServerError

NewGetUserByIDInternalServerError creates a GetUserByIDInternalServerError with default headers values

func (*GetUserByIDInternalServerError) Error

func (*GetUserByIDInternalServerError) GetPayload

type GetUserByIDNotFound

type GetUserByIDNotFound struct {
	Payload *models.ErrorResponseBody
}

GetUserByIDNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetUserByIDNotFound

func NewGetUserByIDNotFound() *GetUserByIDNotFound

NewGetUserByIDNotFound creates a GetUserByIDNotFound with default headers values

func (*GetUserByIDNotFound) Error

func (o *GetUserByIDNotFound) Error() string

func (*GetUserByIDNotFound) GetPayload

func (o *GetUserByIDNotFound) GetPayload() *models.ErrorResponseBody

type GetUserByIDOK

type GetUserByIDOK struct {
	Payload *models.UserProfileDTO
}

GetUserByIDOK describes a response with status code 200, with default header values.

(empty)

func NewGetUserByIDOK

func NewGetUserByIDOK() *GetUserByIDOK

NewGetUserByIDOK creates a GetUserByIDOK with default headers values

func (*GetUserByIDOK) Error

func (o *GetUserByIDOK) Error() string

func (*GetUserByIDOK) GetPayload

func (o *GetUserByIDOK) GetPayload() *models.UserProfileDTO

type GetUserByIDParams

type GetUserByIDParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

GetUserByIDParams contains all the parameters to send to the API endpoint

for the get user by ID operation.

Typically these are written to a http.Request.

func NewGetUserByIDParams

func NewGetUserByIDParams() *GetUserByIDParams

NewGetUserByIDParams creates a new GetUserByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUserByIDParamsWithContext

func NewGetUserByIDParamsWithContext(ctx context.Context) *GetUserByIDParams

NewGetUserByIDParamsWithContext creates a new GetUserByIDParams object with the ability to set a context for a request.

func NewGetUserByIDParamsWithHTTPClient

func NewGetUserByIDParamsWithHTTPClient(client *http.Client) *GetUserByIDParams

NewGetUserByIDParamsWithHTTPClient creates a new GetUserByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserByIDParamsWithTimeout

func NewGetUserByIDParamsWithTimeout(timeout time.Duration) *GetUserByIDParams

NewGetUserByIDParamsWithTimeout creates a new GetUserByIDParams object with the ability to set a timeout on a request.

func (*GetUserByIDParams) SetContext

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

SetContext adds the context to the get user by ID params

func (*GetUserByIDParams) SetDefaults

func (o *GetUserByIDParams) SetDefaults()

SetDefaults hydrates default values in the get user by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user by ID params

func (*GetUserByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get user by ID params

func (*GetUserByIDParams) SetUserID

func (o *GetUserByIDParams) SetUserID(userID int64)

SetUserID adds the userId to the get user by ID params

func (*GetUserByIDParams) WithContext

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

WithContext adds the context to the get user by ID params

func (*GetUserByIDParams) WithDefaults

func (o *GetUserByIDParams) WithDefaults() *GetUserByIDParams

WithDefaults hydrates default values in the get user by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user by ID params

func (*GetUserByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get user by ID params

func (*GetUserByIDParams) WithUserID

func (o *GetUserByIDParams) WithUserID(userID int64) *GetUserByIDParams

WithUserID adds the userID to the get user by ID params

func (*GetUserByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserByIDReader

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

GetUserByIDReader is a Reader for the GetUserByID structure.

func (*GetUserByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserByIDUnauthorized

type GetUserByIDUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserByIDUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserByIDUnauthorized

func NewGetUserByIDUnauthorized() *GetUserByIDUnauthorized

NewGetUserByIDUnauthorized creates a GetUserByIDUnauthorized with default headers values

func (*GetUserByIDUnauthorized) Error

func (o *GetUserByIDUnauthorized) Error() string

func (*GetUserByIDUnauthorized) GetPayload

type GetUserByLoginOrEmailForbidden

type GetUserByLoginOrEmailForbidden struct {
	Payload *models.ErrorResponseBody
}

GetUserByLoginOrEmailForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetUserByLoginOrEmailForbidden

func NewGetUserByLoginOrEmailForbidden() *GetUserByLoginOrEmailForbidden

NewGetUserByLoginOrEmailForbidden creates a GetUserByLoginOrEmailForbidden with default headers values

func (*GetUserByLoginOrEmailForbidden) Error

func (*GetUserByLoginOrEmailForbidden) GetPayload

type GetUserByLoginOrEmailInternalServerError

type GetUserByLoginOrEmailInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetUserByLoginOrEmailInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserByLoginOrEmailInternalServerError

func NewGetUserByLoginOrEmailInternalServerError() *GetUserByLoginOrEmailInternalServerError

NewGetUserByLoginOrEmailInternalServerError creates a GetUserByLoginOrEmailInternalServerError with default headers values

func (*GetUserByLoginOrEmailInternalServerError) Error

func (*GetUserByLoginOrEmailInternalServerError) GetPayload

type GetUserByLoginOrEmailNotFound

type GetUserByLoginOrEmailNotFound struct {
	Payload *models.ErrorResponseBody
}

GetUserByLoginOrEmailNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetUserByLoginOrEmailNotFound

func NewGetUserByLoginOrEmailNotFound() *GetUserByLoginOrEmailNotFound

NewGetUserByLoginOrEmailNotFound creates a GetUserByLoginOrEmailNotFound with default headers values

func (*GetUserByLoginOrEmailNotFound) Error

func (*GetUserByLoginOrEmailNotFound) GetPayload

type GetUserByLoginOrEmailOK

type GetUserByLoginOrEmailOK struct {
	Payload *models.UserProfileDTO
}

GetUserByLoginOrEmailOK describes a response with status code 200, with default header values.

(empty)

func NewGetUserByLoginOrEmailOK

func NewGetUserByLoginOrEmailOK() *GetUserByLoginOrEmailOK

NewGetUserByLoginOrEmailOK creates a GetUserByLoginOrEmailOK with default headers values

func (*GetUserByLoginOrEmailOK) Error

func (o *GetUserByLoginOrEmailOK) Error() string

func (*GetUserByLoginOrEmailOK) GetPayload

type GetUserByLoginOrEmailParams

type GetUserByLoginOrEmailParams struct {

	/* LoginOrEmail.

	   loginOrEmail of the user
	*/
	LoginOrEmail string

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

GetUserByLoginOrEmailParams contains all the parameters to send to the API endpoint

for the get user by login or email operation.

Typically these are written to a http.Request.

func NewGetUserByLoginOrEmailParams

func NewGetUserByLoginOrEmailParams() *GetUserByLoginOrEmailParams

NewGetUserByLoginOrEmailParams creates a new GetUserByLoginOrEmailParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUserByLoginOrEmailParamsWithContext

func NewGetUserByLoginOrEmailParamsWithContext(ctx context.Context) *GetUserByLoginOrEmailParams

NewGetUserByLoginOrEmailParamsWithContext creates a new GetUserByLoginOrEmailParams object with the ability to set a context for a request.

func NewGetUserByLoginOrEmailParamsWithHTTPClient

func NewGetUserByLoginOrEmailParamsWithHTTPClient(client *http.Client) *GetUserByLoginOrEmailParams

NewGetUserByLoginOrEmailParamsWithHTTPClient creates a new GetUserByLoginOrEmailParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserByLoginOrEmailParamsWithTimeout

func NewGetUserByLoginOrEmailParamsWithTimeout(timeout time.Duration) *GetUserByLoginOrEmailParams

NewGetUserByLoginOrEmailParamsWithTimeout creates a new GetUserByLoginOrEmailParams object with the ability to set a timeout on a request.

func (*GetUserByLoginOrEmailParams) SetContext

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

SetContext adds the context to the get user by login or email params

func (*GetUserByLoginOrEmailParams) SetDefaults

func (o *GetUserByLoginOrEmailParams) SetDefaults()

SetDefaults hydrates default values in the get user by login or email params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserByLoginOrEmailParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user by login or email params

func (*GetUserByLoginOrEmailParams) SetLoginOrEmail

func (o *GetUserByLoginOrEmailParams) SetLoginOrEmail(loginOrEmail string)

SetLoginOrEmail adds the loginOrEmail to the get user by login or email params

func (*GetUserByLoginOrEmailParams) SetTimeout

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

SetTimeout adds the timeout to the get user by login or email params

func (*GetUserByLoginOrEmailParams) WithContext

WithContext adds the context to the get user by login or email params

func (*GetUserByLoginOrEmailParams) WithDefaults

WithDefaults hydrates default values in the get user by login or email params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserByLoginOrEmailParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user by login or email params

func (*GetUserByLoginOrEmailParams) WithLoginOrEmail

func (o *GetUserByLoginOrEmailParams) WithLoginOrEmail(loginOrEmail string) *GetUserByLoginOrEmailParams

WithLoginOrEmail adds the loginOrEmail to the get user by login or email params

func (*GetUserByLoginOrEmailParams) WithTimeout

WithTimeout adds the timeout to the get user by login or email params

func (*GetUserByLoginOrEmailParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserByLoginOrEmailReader

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

GetUserByLoginOrEmailReader is a Reader for the GetUserByLoginOrEmail structure.

func (*GetUserByLoginOrEmailReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserByLoginOrEmailUnauthorized

type GetUserByLoginOrEmailUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserByLoginOrEmailUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserByLoginOrEmailUnauthorized

func NewGetUserByLoginOrEmailUnauthorized() *GetUserByLoginOrEmailUnauthorized

NewGetUserByLoginOrEmailUnauthorized creates a GetUserByLoginOrEmailUnauthorized with default headers values

func (*GetUserByLoginOrEmailUnauthorized) Error

func (*GetUserByLoginOrEmailUnauthorized) GetPayload

type GetUserOrgListForbidden

type GetUserOrgListForbidden struct {
	Payload *models.ErrorResponseBody
}

GetUserOrgListForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetUserOrgListForbidden

func NewGetUserOrgListForbidden() *GetUserOrgListForbidden

NewGetUserOrgListForbidden creates a GetUserOrgListForbidden with default headers values

func (*GetUserOrgListForbidden) Error

func (o *GetUserOrgListForbidden) Error() string

func (*GetUserOrgListForbidden) GetPayload

type GetUserOrgListInternalServerError

type GetUserOrgListInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetUserOrgListInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserOrgListInternalServerError

func NewGetUserOrgListInternalServerError() *GetUserOrgListInternalServerError

NewGetUserOrgListInternalServerError creates a GetUserOrgListInternalServerError with default headers values

func (*GetUserOrgListInternalServerError) Error

func (*GetUserOrgListInternalServerError) GetPayload

type GetUserOrgListNotFound

type GetUserOrgListNotFound struct {
	Payload *models.ErrorResponseBody
}

GetUserOrgListNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetUserOrgListNotFound

func NewGetUserOrgListNotFound() *GetUserOrgListNotFound

NewGetUserOrgListNotFound creates a GetUserOrgListNotFound with default headers values

func (*GetUserOrgListNotFound) Error

func (o *GetUserOrgListNotFound) Error() string

func (*GetUserOrgListNotFound) GetPayload

type GetUserOrgListOK

type GetUserOrgListOK struct {
	Payload []*models.UserOrgDTO
}

GetUserOrgListOK describes a response with status code 200, with default header values.

(empty)

func NewGetUserOrgListOK

func NewGetUserOrgListOK() *GetUserOrgListOK

NewGetUserOrgListOK creates a GetUserOrgListOK with default headers values

func (*GetUserOrgListOK) Error

func (o *GetUserOrgListOK) Error() string

func (*GetUserOrgListOK) GetPayload

func (o *GetUserOrgListOK) GetPayload() []*models.UserOrgDTO

type GetUserOrgListParams

type GetUserOrgListParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

GetUserOrgListParams contains all the parameters to send to the API endpoint

for the get user org list operation.

Typically these are written to a http.Request.

func NewGetUserOrgListParams

func NewGetUserOrgListParams() *GetUserOrgListParams

NewGetUserOrgListParams creates a new GetUserOrgListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUserOrgListParamsWithContext

func NewGetUserOrgListParamsWithContext(ctx context.Context) *GetUserOrgListParams

NewGetUserOrgListParamsWithContext creates a new GetUserOrgListParams object with the ability to set a context for a request.

func NewGetUserOrgListParamsWithHTTPClient

func NewGetUserOrgListParamsWithHTTPClient(client *http.Client) *GetUserOrgListParams

NewGetUserOrgListParamsWithHTTPClient creates a new GetUserOrgListParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserOrgListParamsWithTimeout

func NewGetUserOrgListParamsWithTimeout(timeout time.Duration) *GetUserOrgListParams

NewGetUserOrgListParamsWithTimeout creates a new GetUserOrgListParams object with the ability to set a timeout on a request.

func (*GetUserOrgListParams) SetContext

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

SetContext adds the context to the get user org list params

func (*GetUserOrgListParams) SetDefaults

func (o *GetUserOrgListParams) SetDefaults()

SetDefaults hydrates default values in the get user org list params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserOrgListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user org list params

func (*GetUserOrgListParams) SetTimeout

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

SetTimeout adds the timeout to the get user org list params

func (*GetUserOrgListParams) SetUserID

func (o *GetUserOrgListParams) SetUserID(userID int64)

SetUserID adds the userId to the get user org list params

func (*GetUserOrgListParams) WithContext

WithContext adds the context to the get user org list params

func (*GetUserOrgListParams) WithDefaults

func (o *GetUserOrgListParams) WithDefaults() *GetUserOrgListParams

WithDefaults hydrates default values in the get user org list params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserOrgListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user org list params

func (*GetUserOrgListParams) WithTimeout

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

WithTimeout adds the timeout to the get user org list params

func (*GetUserOrgListParams) WithUserID

func (o *GetUserOrgListParams) WithUserID(userID int64) *GetUserOrgListParams

WithUserID adds the userID to the get user org list params

func (*GetUserOrgListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserOrgListReader

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

GetUserOrgListReader is a Reader for the GetUserOrgList structure.

func (*GetUserOrgListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserOrgListUnauthorized

type GetUserOrgListUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserOrgListUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserOrgListUnauthorized

func NewGetUserOrgListUnauthorized() *GetUserOrgListUnauthorized

NewGetUserOrgListUnauthorized creates a GetUserOrgListUnauthorized with default headers values

func (*GetUserOrgListUnauthorized) Error

func (*GetUserOrgListUnauthorized) GetPayload

type GetUserTeamsForbidden

type GetUserTeamsForbidden struct {
	Payload *models.ErrorResponseBody
}

GetUserTeamsForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetUserTeamsForbidden

func NewGetUserTeamsForbidden() *GetUserTeamsForbidden

NewGetUserTeamsForbidden creates a GetUserTeamsForbidden with default headers values

func (*GetUserTeamsForbidden) Error

func (o *GetUserTeamsForbidden) Error() string

func (*GetUserTeamsForbidden) GetPayload

type GetUserTeamsInternalServerError

type GetUserTeamsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetUserTeamsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserTeamsInternalServerError

func NewGetUserTeamsInternalServerError() *GetUserTeamsInternalServerError

NewGetUserTeamsInternalServerError creates a GetUserTeamsInternalServerError with default headers values

func (*GetUserTeamsInternalServerError) Error

func (*GetUserTeamsInternalServerError) GetPayload

type GetUserTeamsNotFound

type GetUserTeamsNotFound struct {
	Payload *models.ErrorResponseBody
}

GetUserTeamsNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetUserTeamsNotFound

func NewGetUserTeamsNotFound() *GetUserTeamsNotFound

NewGetUserTeamsNotFound creates a GetUserTeamsNotFound with default headers values

func (*GetUserTeamsNotFound) Error

func (o *GetUserTeamsNotFound) Error() string

func (*GetUserTeamsNotFound) GetPayload

type GetUserTeamsOK

type GetUserTeamsOK struct {
	Payload []*models.TeamDTO
}

GetUserTeamsOK describes a response with status code 200, with default header values.

(empty)

func NewGetUserTeamsOK

func NewGetUserTeamsOK() *GetUserTeamsOK

NewGetUserTeamsOK creates a GetUserTeamsOK with default headers values

func (*GetUserTeamsOK) Error

func (o *GetUserTeamsOK) Error() string

func (*GetUserTeamsOK) GetPayload

func (o *GetUserTeamsOK) GetPayload() []*models.TeamDTO

type GetUserTeamsParams

type GetUserTeamsParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

GetUserTeamsParams contains all the parameters to send to the API endpoint

for the get user teams operation.

Typically these are written to a http.Request.

func NewGetUserTeamsParams

func NewGetUserTeamsParams() *GetUserTeamsParams

NewGetUserTeamsParams creates a new GetUserTeamsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUserTeamsParamsWithContext

func NewGetUserTeamsParamsWithContext(ctx context.Context) *GetUserTeamsParams

NewGetUserTeamsParamsWithContext creates a new GetUserTeamsParams object with the ability to set a context for a request.

func NewGetUserTeamsParamsWithHTTPClient

func NewGetUserTeamsParamsWithHTTPClient(client *http.Client) *GetUserTeamsParams

NewGetUserTeamsParamsWithHTTPClient creates a new GetUserTeamsParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserTeamsParamsWithTimeout

func NewGetUserTeamsParamsWithTimeout(timeout time.Duration) *GetUserTeamsParams

NewGetUserTeamsParamsWithTimeout creates a new GetUserTeamsParams object with the ability to set a timeout on a request.

func (*GetUserTeamsParams) SetContext

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

SetContext adds the context to the get user teams params

func (*GetUserTeamsParams) SetDefaults

func (o *GetUserTeamsParams) SetDefaults()

SetDefaults hydrates default values in the get user teams params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserTeamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user teams params

func (*GetUserTeamsParams) SetTimeout

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

SetTimeout adds the timeout to the get user teams params

func (*GetUserTeamsParams) SetUserID

func (o *GetUserTeamsParams) SetUserID(userID int64)

SetUserID adds the userId to the get user teams params

func (*GetUserTeamsParams) WithContext

WithContext adds the context to the get user teams params

func (*GetUserTeamsParams) WithDefaults

func (o *GetUserTeamsParams) WithDefaults() *GetUserTeamsParams

WithDefaults hydrates default values in the get user teams params (not the query body).

All values with no default are reset to their zero value.

func (*GetUserTeamsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user teams params

func (*GetUserTeamsParams) WithTimeout

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

WithTimeout adds the timeout to the get user teams params

func (*GetUserTeamsParams) WithUserID

func (o *GetUserTeamsParams) WithUserID(userID int64) *GetUserTeamsParams

WithUserID adds the userID to the get user teams params

func (*GetUserTeamsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserTeamsReader

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

GetUserTeamsReader is a Reader for the GetUserTeams structure.

func (*GetUserTeamsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserTeamsUnauthorized

type GetUserTeamsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserTeamsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserTeamsUnauthorized

func NewGetUserTeamsUnauthorized() *GetUserTeamsUnauthorized

NewGetUserTeamsUnauthorized creates a GetUserTeamsUnauthorized with default headers values

func (*GetUserTeamsUnauthorized) Error

func (o *GetUserTeamsUnauthorized) Error() string

func (*GetUserTeamsUnauthorized) GetPayload

type SearchUsersForbidden

type SearchUsersForbidden struct {
	Payload *models.ErrorResponseBody
}

SearchUsersForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewSearchUsersForbidden

func NewSearchUsersForbidden() *SearchUsersForbidden

NewSearchUsersForbidden creates a SearchUsersForbidden with default headers values

func (*SearchUsersForbidden) Error

func (o *SearchUsersForbidden) Error() string

func (*SearchUsersForbidden) GetPayload

type SearchUsersInternalServerError

type SearchUsersInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SearchUsersInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSearchUsersInternalServerError

func NewSearchUsersInternalServerError() *SearchUsersInternalServerError

NewSearchUsersInternalServerError creates a SearchUsersInternalServerError with default headers values

func (*SearchUsersInternalServerError) Error

func (*SearchUsersInternalServerError) GetPayload

type SearchUsersOK

type SearchUsersOK struct {
	Payload []*models.UserSearchHitDTO
}

SearchUsersOK describes a response with status code 200, with default header values.

(empty)

func NewSearchUsersOK

func NewSearchUsersOK() *SearchUsersOK

NewSearchUsersOK creates a SearchUsersOK with default headers values

func (*SearchUsersOK) Error

func (o *SearchUsersOK) Error() string

func (*SearchUsersOK) GetPayload

func (o *SearchUsersOK) GetPayload() []*models.UserSearchHitDTO

type SearchUsersParams

type SearchUsersParams struct {

	/* Page.

	   Page index for starting fetching users

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* Perpage.

	   Limit the maximum number of users to return per page

	   Format: int64
	   Default: 1000
	*/
	Perpage *int64

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

SearchUsersParams contains all the parameters to send to the API endpoint

for the search users operation.

Typically these are written to a http.Request.

func NewSearchUsersParams

func NewSearchUsersParams() *SearchUsersParams

NewSearchUsersParams creates a new SearchUsersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchUsersParamsWithContext

func NewSearchUsersParamsWithContext(ctx context.Context) *SearchUsersParams

NewSearchUsersParamsWithContext creates a new SearchUsersParams object with the ability to set a context for a request.

func NewSearchUsersParamsWithHTTPClient

func NewSearchUsersParamsWithHTTPClient(client *http.Client) *SearchUsersParams

NewSearchUsersParamsWithHTTPClient creates a new SearchUsersParams object with the ability to set a custom HTTPClient for a request.

func NewSearchUsersParamsWithTimeout

func NewSearchUsersParamsWithTimeout(timeout time.Duration) *SearchUsersParams

NewSearchUsersParamsWithTimeout creates a new SearchUsersParams object with the ability to set a timeout on a request.

func (*SearchUsersParams) SetContext

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

SetContext adds the context to the search users params

func (*SearchUsersParams) SetDefaults

func (o *SearchUsersParams) SetDefaults()

SetDefaults hydrates default values in the search users params (not the query body).

All values with no default are reset to their zero value.

func (*SearchUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) SetPage

func (o *SearchUsersParams) SetPage(page *int64)

SetPage adds the page to the search users params

func (*SearchUsersParams) SetPerpage

func (o *SearchUsersParams) SetPerpage(perpage *int64)

SetPerpage adds the perpage to the search users params

func (*SearchUsersParams) SetTimeout

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

SetTimeout adds the timeout to the search users params

func (*SearchUsersParams) WithContext

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

WithContext adds the context to the search users params

func (*SearchUsersParams) WithDefaults

func (o *SearchUsersParams) WithDefaults() *SearchUsersParams

WithDefaults hydrates default values in the search users params (not the query body).

All values with no default are reset to their zero value.

func (*SearchUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) WithPage

func (o *SearchUsersParams) WithPage(page *int64) *SearchUsersParams

WithPage adds the page to the search users params

func (*SearchUsersParams) WithPerpage

func (o *SearchUsersParams) WithPerpage(perpage *int64) *SearchUsersParams

WithPerpage adds the perpage to the search users params

func (*SearchUsersParams) WithTimeout

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

WithTimeout adds the timeout to the search users params

func (*SearchUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchUsersReader

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

SearchUsersReader is a Reader for the SearchUsers structure.

func (*SearchUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchUsersUnauthorized

type SearchUsersUnauthorized struct {
	Payload *models.ErrorResponseBody
}

SearchUsersUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewSearchUsersUnauthorized

func NewSearchUsersUnauthorized() *SearchUsersUnauthorized

NewSearchUsersUnauthorized creates a SearchUsersUnauthorized with default headers values

func (*SearchUsersUnauthorized) Error

func (o *SearchUsersUnauthorized) Error() string

func (*SearchUsersUnauthorized) GetPayload

type SearchUsersWithPagingForbidden

type SearchUsersWithPagingForbidden struct {
	Payload *models.ErrorResponseBody
}

SearchUsersWithPagingForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewSearchUsersWithPagingForbidden

func NewSearchUsersWithPagingForbidden() *SearchUsersWithPagingForbidden

NewSearchUsersWithPagingForbidden creates a SearchUsersWithPagingForbidden with default headers values

func (*SearchUsersWithPagingForbidden) Error

func (*SearchUsersWithPagingForbidden) GetPayload

type SearchUsersWithPagingInternalServerError

type SearchUsersWithPagingInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SearchUsersWithPagingInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSearchUsersWithPagingInternalServerError

func NewSearchUsersWithPagingInternalServerError() *SearchUsersWithPagingInternalServerError

NewSearchUsersWithPagingInternalServerError creates a SearchUsersWithPagingInternalServerError with default headers values

func (*SearchUsersWithPagingInternalServerError) Error

func (*SearchUsersWithPagingInternalServerError) GetPayload

type SearchUsersWithPagingNotFound

type SearchUsersWithPagingNotFound struct {
	Payload *models.ErrorResponseBody
}

SearchUsersWithPagingNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewSearchUsersWithPagingNotFound

func NewSearchUsersWithPagingNotFound() *SearchUsersWithPagingNotFound

NewSearchUsersWithPagingNotFound creates a SearchUsersWithPagingNotFound with default headers values

func (*SearchUsersWithPagingNotFound) Error

func (*SearchUsersWithPagingNotFound) GetPayload

type SearchUsersWithPagingOK

type SearchUsersWithPagingOK struct {
	Payload *models.SearchUserQueryResult
}

SearchUsersWithPagingOK describes a response with status code 200, with default header values.

(empty)

func NewSearchUsersWithPagingOK

func NewSearchUsersWithPagingOK() *SearchUsersWithPagingOK

NewSearchUsersWithPagingOK creates a SearchUsersWithPagingOK with default headers values

func (*SearchUsersWithPagingOK) Error

func (o *SearchUsersWithPagingOK) Error() string

func (*SearchUsersWithPagingOK) GetPayload

type SearchUsersWithPagingParams

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

SearchUsersWithPagingParams contains all the parameters to send to the API endpoint

for the search users with paging operation.

Typically these are written to a http.Request.

func NewSearchUsersWithPagingParams

func NewSearchUsersWithPagingParams() *SearchUsersWithPagingParams

NewSearchUsersWithPagingParams creates a new SearchUsersWithPagingParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchUsersWithPagingParamsWithContext

func NewSearchUsersWithPagingParamsWithContext(ctx context.Context) *SearchUsersWithPagingParams

NewSearchUsersWithPagingParamsWithContext creates a new SearchUsersWithPagingParams object with the ability to set a context for a request.

func NewSearchUsersWithPagingParamsWithHTTPClient

func NewSearchUsersWithPagingParamsWithHTTPClient(client *http.Client) *SearchUsersWithPagingParams

NewSearchUsersWithPagingParamsWithHTTPClient creates a new SearchUsersWithPagingParams object with the ability to set a custom HTTPClient for a request.

func NewSearchUsersWithPagingParamsWithTimeout

func NewSearchUsersWithPagingParamsWithTimeout(timeout time.Duration) *SearchUsersWithPagingParams

NewSearchUsersWithPagingParamsWithTimeout creates a new SearchUsersWithPagingParams object with the ability to set a timeout on a request.

func (*SearchUsersWithPagingParams) SetContext

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

SetContext adds the context to the search users with paging params

func (*SearchUsersWithPagingParams) SetDefaults

func (o *SearchUsersWithPagingParams) SetDefaults()

SetDefaults hydrates default values in the search users with paging params (not the query body).

All values with no default are reset to their zero value.

func (*SearchUsersWithPagingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search users with paging params

func (*SearchUsersWithPagingParams) SetTimeout

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

SetTimeout adds the timeout to the search users with paging params

func (*SearchUsersWithPagingParams) WithContext

WithContext adds the context to the search users with paging params

func (*SearchUsersWithPagingParams) WithDefaults

WithDefaults hydrates default values in the search users with paging params (not the query body).

All values with no default are reset to their zero value.

func (*SearchUsersWithPagingParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search users with paging params

func (*SearchUsersWithPagingParams) WithTimeout

WithTimeout adds the timeout to the search users with paging params

func (*SearchUsersWithPagingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchUsersWithPagingReader

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

SearchUsersWithPagingReader is a Reader for the SearchUsersWithPaging structure.

func (*SearchUsersWithPagingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchUsersWithPagingUnauthorized

type SearchUsersWithPagingUnauthorized struct {
	Payload *models.ErrorResponseBody
}

SearchUsersWithPagingUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewSearchUsersWithPagingUnauthorized

func NewSearchUsersWithPagingUnauthorized() *SearchUsersWithPagingUnauthorized

NewSearchUsersWithPagingUnauthorized creates a SearchUsersWithPagingUnauthorized with default headers values

func (*SearchUsersWithPagingUnauthorized) Error

func (*SearchUsersWithPagingUnauthorized) GetPayload

type UpdateUserForbidden

type UpdateUserForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) Error

func (o *UpdateUserForbidden) Error() string

func (*UpdateUserForbidden) GetPayload

func (o *UpdateUserForbidden) GetPayload() *models.ErrorResponseBody

type UpdateUserInternalServerError

type UpdateUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

UpdateUserInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateUserInternalServerError

func NewUpdateUserInternalServerError() *UpdateUserInternalServerError

NewUpdateUserInternalServerError creates a UpdateUserInternalServerError with default headers values

func (*UpdateUserInternalServerError) Error

func (*UpdateUserInternalServerError) GetPayload

type UpdateUserNotFound

type UpdateUserNotFound struct {
	Payload *models.ErrorResponseBody
}

UpdateUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewUpdateUserNotFound

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) Error

func (o *UpdateUserNotFound) Error() string

func (*UpdateUserNotFound) GetPayload

func (o *UpdateUserNotFound) GetPayload() *models.ErrorResponseBody

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.SuccessResponseBody
}

UpdateUserOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

func (*UpdateUserOK) GetPayload

func (o *UpdateUserOK) GetPayload() *models.SuccessResponseBody

type UpdateUserParams

type UpdateUserParams struct {

	/* Body.

	   To change the email, name, login, theme, provide another one.
	*/
	Body *models.UpdateUserCommand

	// UserID.
	//
	// Format: int64
	UserID 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with 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 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 ability to set a timeout on a request.

func (*UpdateUserParams) SetBody

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

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) SetDefaults

func (o *UpdateUserParams) SetDefaults()

SetDefaults hydrates default values in the update user params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) SetUserID

func (o *UpdateUserParams) SetUserID(userID int64)

SetUserID adds the userId 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) WithDefaults

func (o *UpdateUserParams) WithDefaults() *UpdateUserParams

WithDefaults hydrates default values in the update user params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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) WithUserID

func (o *UpdateUserParams) WithUserID(userID int64) *UpdateUserParams

WithUserID adds the userID 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.ErrorResponseBody
}

UpdateUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateUserUnauthorized

func NewUpdateUserUnauthorized() *UpdateUserUnauthorized

NewUpdateUserUnauthorized creates a UpdateUserUnauthorized with default headers values

func (*UpdateUserUnauthorized) Error

func (o *UpdateUserUnauthorized) Error() string

func (*UpdateUserUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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