Documentation
¶
Index ¶
- type Client
- func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserByIDOK, error)
- func (a *Client) GetUserByLoginOrEmail(params *GetUserByLoginOrEmailParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserByLoginOrEmailOK, error)
- func (a *Client) GetUserOrgList(params *GetUserOrgListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserOrgListOK, error)
- func (a *Client) GetUserTeams(params *GetUserTeamsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserTeamsOK, error)
- func (a *Client) SearchUsers(params *SearchUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchUsersOK, error)
- func (a *Client) SearchUsersWithPaging(params *SearchUsersWithPagingParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchUsersWithPagingOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateUserOK, error)
- type ClientOption
- type ClientService
- type GetUserByIDForbidden
- type GetUserByIDInternalServerError
- type GetUserByIDNotFound
- type GetUserByIDOK
- type GetUserByIDParams
- func (o *GetUserByIDParams) SetContext(ctx context.Context)
- func (o *GetUserByIDParams) SetDefaults()
- func (o *GetUserByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetUserByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetUserByIDParams) SetUserID(userID int64)
- func (o *GetUserByIDParams) WithContext(ctx context.Context) *GetUserByIDParams
- func (o *GetUserByIDParams) WithDefaults() *GetUserByIDParams
- func (o *GetUserByIDParams) WithHTTPClient(client *http.Client) *GetUserByIDParams
- func (o *GetUserByIDParams) WithTimeout(timeout time.Duration) *GetUserByIDParams
- func (o *GetUserByIDParams) WithUserID(userID int64) *GetUserByIDParams
- func (o *GetUserByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserByIDReader
- type GetUserByIDUnauthorized
- type GetUserByLoginOrEmailForbidden
- type GetUserByLoginOrEmailInternalServerError
- type GetUserByLoginOrEmailNotFound
- type GetUserByLoginOrEmailOK
- type GetUserByLoginOrEmailParams
- func NewGetUserByLoginOrEmailParams() *GetUserByLoginOrEmailParams
- func NewGetUserByLoginOrEmailParamsWithContext(ctx context.Context) *GetUserByLoginOrEmailParams
- func NewGetUserByLoginOrEmailParamsWithHTTPClient(client *http.Client) *GetUserByLoginOrEmailParams
- func NewGetUserByLoginOrEmailParamsWithTimeout(timeout time.Duration) *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) SetContext(ctx context.Context)
- func (o *GetUserByLoginOrEmailParams) SetDefaults()
- func (o *GetUserByLoginOrEmailParams) SetHTTPClient(client *http.Client)
- func (o *GetUserByLoginOrEmailParams) SetLoginOrEmail(loginOrEmail string)
- func (o *GetUserByLoginOrEmailParams) SetTimeout(timeout time.Duration)
- func (o *GetUserByLoginOrEmailParams) WithContext(ctx context.Context) *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) WithDefaults() *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) WithHTTPClient(client *http.Client) *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) WithLoginOrEmail(loginOrEmail string) *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) WithTimeout(timeout time.Duration) *GetUserByLoginOrEmailParams
- func (o *GetUserByLoginOrEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserByLoginOrEmailReader
- type GetUserByLoginOrEmailUnauthorized
- type GetUserOrgListForbidden
- type GetUserOrgListInternalServerError
- type GetUserOrgListNotFound
- type GetUserOrgListOK
- type GetUserOrgListParams
- func NewGetUserOrgListParams() *GetUserOrgListParams
- func NewGetUserOrgListParamsWithContext(ctx context.Context) *GetUserOrgListParams
- func NewGetUserOrgListParamsWithHTTPClient(client *http.Client) *GetUserOrgListParams
- func NewGetUserOrgListParamsWithTimeout(timeout time.Duration) *GetUserOrgListParams
- func (o *GetUserOrgListParams) SetContext(ctx context.Context)
- func (o *GetUserOrgListParams) SetDefaults()
- func (o *GetUserOrgListParams) SetHTTPClient(client *http.Client)
- func (o *GetUserOrgListParams) SetTimeout(timeout time.Duration)
- func (o *GetUserOrgListParams) SetUserID(userID int64)
- func (o *GetUserOrgListParams) WithContext(ctx context.Context) *GetUserOrgListParams
- func (o *GetUserOrgListParams) WithDefaults() *GetUserOrgListParams
- func (o *GetUserOrgListParams) WithHTTPClient(client *http.Client) *GetUserOrgListParams
- func (o *GetUserOrgListParams) WithTimeout(timeout time.Duration) *GetUserOrgListParams
- func (o *GetUserOrgListParams) WithUserID(userID int64) *GetUserOrgListParams
- func (o *GetUserOrgListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserOrgListReader
- type GetUserOrgListUnauthorized
- type GetUserTeamsForbidden
- type GetUserTeamsInternalServerError
- type GetUserTeamsNotFound
- type GetUserTeamsOK
- type GetUserTeamsParams
- func (o *GetUserTeamsParams) SetContext(ctx context.Context)
- func (o *GetUserTeamsParams) SetDefaults()
- func (o *GetUserTeamsParams) SetHTTPClient(client *http.Client)
- func (o *GetUserTeamsParams) SetTimeout(timeout time.Duration)
- func (o *GetUserTeamsParams) SetUserID(userID int64)
- func (o *GetUserTeamsParams) WithContext(ctx context.Context) *GetUserTeamsParams
- func (o *GetUserTeamsParams) WithDefaults() *GetUserTeamsParams
- func (o *GetUserTeamsParams) WithHTTPClient(client *http.Client) *GetUserTeamsParams
- func (o *GetUserTeamsParams) WithTimeout(timeout time.Duration) *GetUserTeamsParams
- func (o *GetUserTeamsParams) WithUserID(userID int64) *GetUserTeamsParams
- func (o *GetUserTeamsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserTeamsReader
- type GetUserTeamsUnauthorized
- type SearchUsersForbidden
- type SearchUsersInternalServerError
- type SearchUsersOK
- type SearchUsersParams
- func (o *SearchUsersParams) SetContext(ctx context.Context)
- func (o *SearchUsersParams) SetDefaults()
- func (o *SearchUsersParams) SetHTTPClient(client *http.Client)
- func (o *SearchUsersParams) SetPage(page *int64)
- func (o *SearchUsersParams) SetPerpage(perpage *int64)
- func (o *SearchUsersParams) SetTimeout(timeout time.Duration)
- func (o *SearchUsersParams) WithContext(ctx context.Context) *SearchUsersParams
- func (o *SearchUsersParams) WithDefaults() *SearchUsersParams
- func (o *SearchUsersParams) WithHTTPClient(client *http.Client) *SearchUsersParams
- func (o *SearchUsersParams) WithPage(page *int64) *SearchUsersParams
- func (o *SearchUsersParams) WithPerpage(perpage *int64) *SearchUsersParams
- func (o *SearchUsersParams) WithTimeout(timeout time.Duration) *SearchUsersParams
- func (o *SearchUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchUsersReader
- type SearchUsersUnauthorized
- type SearchUsersWithPagingForbidden
- type SearchUsersWithPagingInternalServerError
- type SearchUsersWithPagingNotFound
- type SearchUsersWithPagingOK
- type SearchUsersWithPagingParams
- func NewSearchUsersWithPagingParams() *SearchUsersWithPagingParams
- func NewSearchUsersWithPagingParamsWithContext(ctx context.Context) *SearchUsersWithPagingParams
- func NewSearchUsersWithPagingParamsWithHTTPClient(client *http.Client) *SearchUsersWithPagingParams
- func NewSearchUsersWithPagingParamsWithTimeout(timeout time.Duration) *SearchUsersWithPagingParams
- func (o *SearchUsersWithPagingParams) SetContext(ctx context.Context)
- func (o *SearchUsersWithPagingParams) SetDefaults()
- func (o *SearchUsersWithPagingParams) SetHTTPClient(client *http.Client)
- func (o *SearchUsersWithPagingParams) SetTimeout(timeout time.Duration)
- func (o *SearchUsersWithPagingParams) WithContext(ctx context.Context) *SearchUsersWithPagingParams
- func (o *SearchUsersWithPagingParams) WithDefaults() *SearchUsersWithPagingParams
- func (o *SearchUsersWithPagingParams) WithHTTPClient(client *http.Client) *SearchUsersWithPagingParams
- func (o *SearchUsersWithPagingParams) WithTimeout(timeout time.Duration) *SearchUsersWithPagingParams
- func (o *SearchUsersWithPagingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchUsersWithPagingReader
- type SearchUsersWithPagingUnauthorized
- type UpdateUserForbidden
- type UpdateUserInternalServerError
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- func (o *UpdateUserParams) SetBody(body *models.UpdateUserCommand)
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetDefaults()
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) SetUserID(userID int64)
- func (o *UpdateUserParams) WithBody(body *models.UpdateUserCommand) *UpdateUserParams
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
- func (o *UpdateUserParams) WithUserID(userID int64) *UpdateUserParams
- func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserReader
- type UpdateUserUnauthorized
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 ¶
func (o *GetUserByIDForbidden) GetPayload() *models.ErrorResponseBody
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 (o *GetUserByIDInternalServerError) Error() string
func (*GetUserByIDInternalServerError) GetPayload ¶
func (o *GetUserByIDInternalServerError) GetPayload() *models.ErrorResponseBody
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 {
}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 ¶
func (o *GetUserByIDUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *GetUserByLoginOrEmailForbidden) Error() string
func (*GetUserByLoginOrEmailForbidden) GetPayload ¶
func (o *GetUserByLoginOrEmailForbidden) GetPayload() *models.ErrorResponseBody
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 (o *GetUserByLoginOrEmailInternalServerError) Error() string
func (*GetUserByLoginOrEmailInternalServerError) GetPayload ¶
func (o *GetUserByLoginOrEmailInternalServerError) GetPayload() *models.ErrorResponseBody
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 (o *GetUserByLoginOrEmailNotFound) Error() string
func (*GetUserByLoginOrEmailNotFound) GetPayload ¶
func (o *GetUserByLoginOrEmailNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserByLoginOrEmailOK) GetPayload() *models.UserProfileDTO
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 ¶
func (o *GetUserByLoginOrEmailParams) WithContext(ctx context.Context) *GetUserByLoginOrEmailParams
WithContext adds the context to the get user by login or email params
func (*GetUserByLoginOrEmailParams) WithDefaults ¶
func (o *GetUserByLoginOrEmailParams) WithDefaults() *GetUserByLoginOrEmailParams
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 ¶
func (o *GetUserByLoginOrEmailParams) WithHTTPClient(client *http.Client) *GetUserByLoginOrEmailParams
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 ¶
func (o *GetUserByLoginOrEmailParams) WithTimeout(timeout time.Duration) *GetUserByLoginOrEmailParams
WithTimeout adds the timeout to the get user by login or email params
func (*GetUserByLoginOrEmailParams) WriteToRequest ¶
func (o *GetUserByLoginOrEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetUserByLoginOrEmailUnauthorized) Error() string
func (*GetUserByLoginOrEmailUnauthorized) GetPayload ¶
func (o *GetUserByLoginOrEmailUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserOrgListForbidden) GetPayload() *models.ErrorResponseBody
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 (o *GetUserOrgListInternalServerError) Error() string
func (*GetUserOrgListInternalServerError) GetPayload ¶
func (o *GetUserOrgListInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserOrgListNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserOrgListParams) WithContext(ctx context.Context) *GetUserOrgListParams
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 {
}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 (o *GetUserOrgListUnauthorized) Error() string
func (*GetUserOrgListUnauthorized) GetPayload ¶
func (o *GetUserOrgListUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserTeamsForbidden) GetPayload() *models.ErrorResponseBody
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 (o *GetUserTeamsInternalServerError) Error() string
func (*GetUserTeamsInternalServerError) GetPayload ¶
func (o *GetUserTeamsInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *GetUserTeamsNotFound) GetPayload() *models.ErrorResponseBody
type GetUserTeamsOK ¶
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 ¶
func (o *GetUserTeamsParams) WithContext(ctx context.Context) *GetUserTeamsParams
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 {
}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 ¶
func (o *GetUserTeamsUnauthorized) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *SearchUsersForbidden) GetPayload() *models.ErrorResponseBody
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 (o *SearchUsersInternalServerError) Error() string
func (*SearchUsersInternalServerError) GetPayload ¶
func (o *SearchUsersInternalServerError) GetPayload() *models.ErrorResponseBody
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 {
}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 ¶
func (o *SearchUsersUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *SearchUsersWithPagingForbidden) Error() string
func (*SearchUsersWithPagingForbidden) GetPayload ¶
func (o *SearchUsersWithPagingForbidden) GetPayload() *models.ErrorResponseBody
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 (o *SearchUsersWithPagingInternalServerError) Error() string
func (*SearchUsersWithPagingInternalServerError) GetPayload ¶
func (o *SearchUsersWithPagingInternalServerError) GetPayload() *models.ErrorResponseBody
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 (o *SearchUsersWithPagingNotFound) Error() string
func (*SearchUsersWithPagingNotFound) GetPayload ¶
func (o *SearchUsersWithPagingNotFound) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *SearchUsersWithPagingOK) GetPayload() *models.SearchUserQueryResult
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 ¶
func (o *SearchUsersWithPagingParams) WithContext(ctx context.Context) *SearchUsersWithPagingParams
WithContext adds the context to the search users with paging params
func (*SearchUsersWithPagingParams) WithDefaults ¶
func (o *SearchUsersWithPagingParams) WithDefaults() *SearchUsersWithPagingParams
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 ¶
func (o *SearchUsersWithPagingParams) WithHTTPClient(client *http.Client) *SearchUsersWithPagingParams
WithHTTPClient adds the HTTPClient to the search users with paging params
func (*SearchUsersWithPagingParams) WithTimeout ¶
func (o *SearchUsersWithPagingParams) WithTimeout(timeout time.Duration) *SearchUsersWithPagingParams
WithTimeout adds the timeout to the search users with paging params
func (*SearchUsersWithPagingParams) WriteToRequest ¶
func (o *SearchUsersWithPagingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *SearchUsersWithPagingUnauthorized) Error() string
func (*SearchUsersWithPagingUnauthorized) GetPayload ¶
func (o *SearchUsersWithPagingUnauthorized) GetPayload() *models.ErrorResponseBody
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 (o *UpdateUserInternalServerError) Error() string
func (*UpdateUserInternalServerError) GetPayload ¶
func (o *UpdateUserInternalServerError) GetPayload() *models.ErrorResponseBody
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 ¶
func (o *UpdateUserParams) WithBody(body *models.UpdateUserCommand) *UpdateUserParams
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 {
}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 ¶
func (o *UpdateUserUnauthorized) GetPayload() *models.ErrorResponseBody
Source Files
¶
- get_user_by_id_parameters.go
- get_user_by_id_responses.go
- get_user_by_login_or_email_parameters.go
- get_user_by_login_or_email_responses.go
- get_user_org_list_parameters.go
- get_user_org_list_responses.go
- get_user_teams_parameters.go
- get_user_teams_responses.go
- search_users_parameters.go
- search_users_responses.go
- search_users_with_paging_parameters.go
- search_users_with_paging_responses.go
- update_user_parameters.go
- update_user_responses.go
- users_client.go