Documentation
¶
Index ¶
- type AddUserOK
- type AddUserParams
- func (o *AddUserParams) SetContext(ctx context.Context)
- func (o *AddUserParams) SetDefaults()
- func (o *AddUserParams) SetHTTPClient(client *http.Client)
- func (o *AddUserParams) SetTimeout(timeout time.Duration)
- func (o *AddUserParams) SetUser(user *models.User)
- func (o *AddUserParams) WithContext(ctx context.Context) *AddUserParams
- func (o *AddUserParams) WithDefaults() *AddUserParams
- func (o *AddUserParams) WithHTTPClient(client *http.Client) *AddUserParams
- func (o *AddUserParams) WithTimeout(timeout time.Duration) *AddUserParams
- func (o *AddUserParams) WithUser(user *models.User) *AddUserParams
- func (o *AddUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddUserReader
- type ChangePasswordOK
- type ChangePasswordParams
- func NewChangePasswordParams() *ChangePasswordParams
- func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams
- func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams
- func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams
- func (o *ChangePasswordParams) SetChangePassword(changePassword *models.UserChangePassword)
- func (o *ChangePasswordParams) SetContext(ctx context.Context)
- func (o *ChangePasswordParams) SetDefaults()
- func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)
- func (o *ChangePasswordParams) SetID(id string)
- func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)
- func (o *ChangePasswordParams) WithChangePassword(changePassword *models.UserChangePassword) *ChangePasswordParams
- func (o *ChangePasswordParams) WithContext(ctx context.Context) *ChangePasswordParams
- func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams
- func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams
- func (o *ChangePasswordParams) WithID(id string) *ChangePasswordParams
- func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams
- func (o *ChangePasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangePasswordReader
- type Client
- func (a *Client) AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddUserOK, error)
- func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ChangePasswordOK, error)
- func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteUserOK, error)
- func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserByIDOK, error)
- func (a *Client) GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserByUserNameOK, error)
- func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUsersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateUserOK, error)
- type ClientOption
- type ClientService
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetDefaults()
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetID(id string)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithID(id string) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- 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) SetID(id string)
- func (o *GetUserByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetUserByIDParams) WithContext(ctx context.Context) *GetUserByIDParams
- func (o *GetUserByIDParams) WithDefaults() *GetUserByIDParams
- func (o *GetUserByIDParams) WithHTTPClient(client *http.Client) *GetUserByIDParams
- func (o *GetUserByIDParams) WithID(id string) *GetUserByIDParams
- func (o *GetUserByIDParams) WithTimeout(timeout time.Duration) *GetUserByIDParams
- func (o *GetUserByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserByIDReader
- type GetUserByUserNameOK
- type GetUserByUserNameParams
- func NewGetUserByUserNameParams() *GetUserByUserNameParams
- func NewGetUserByUserNameParamsWithContext(ctx context.Context) *GetUserByUserNameParams
- func NewGetUserByUserNameParamsWithHTTPClient(client *http.Client) *GetUserByUserNameParams
- func NewGetUserByUserNameParamsWithTimeout(timeout time.Duration) *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) SetContext(ctx context.Context)
- func (o *GetUserByUserNameParams) SetDefaults()
- func (o *GetUserByUserNameParams) SetHTTPClient(client *http.Client)
- func (o *GetUserByUserNameParams) SetTimeout(timeout time.Duration)
- func (o *GetUserByUserNameParams) SetUserName(userName *string)
- func (o *GetUserByUserNameParams) WithContext(ctx context.Context) *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) WithDefaults() *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) WithHTTPClient(client *http.Client) *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) WithTimeout(timeout time.Duration) *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) WithUserName(userName *string) *GetUserByUserNameParams
- func (o *GetUserByUserNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserByUserNameReader
- type GetUsersOK
- type GetUsersParams
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetDefaults()
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetOrganizationID(organizationID *int32)
- func (o *GetUsersParams) SetPage(page *int32)
- func (o *GetUsersParams) SetPageSize(pageSize *int32)
- func (o *GetUsersParams) SetRole(role *string)
- func (o *GetUsersParams) SetSearch(search *string)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithDefaults() *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithOrganizationID(organizationID *int32) *GetUsersParams
- func (o *GetUsersParams) WithPage(page *int32) *GetUsersParams
- func (o *GetUsersParams) WithPageSize(pageSize *int32) *GetUsersParams
- func (o *GetUsersParams) WithRole(role *string) *GetUsersParams
- func (o *GetUsersParams) WithSearch(search *string) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type UpdateUserOK
- type UpdateUserParams
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetDefaults()
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetID(id string)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) SetUser(user *models.User)
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithID(id string) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
- func (o *UpdateUserParams) WithUser(user *models.User) *UpdateUserParams
- func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserOK ¶
AddUserOK describes a response with status code 200, with default header values.
Success
func NewAddUserOK ¶
func NewAddUserOK() *AddUserOK
NewAddUserOK creates a AddUserOK with default headers values
func (*AddUserOK) GetPayload ¶
type AddUserParams ¶
type AddUserParams struct {
// User.
User *models.User
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AddUserParams contains all the parameters to send to the API endpoint
for the add user operation. Typically these are written to a http.Request.
func NewAddUserParams ¶
func NewAddUserParams() *AddUserParams
NewAddUserParams creates a new AddUserParams 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 NewAddUserParamsWithContext ¶
func NewAddUserParamsWithContext(ctx context.Context) *AddUserParams
NewAddUserParamsWithContext creates a new AddUserParams object with the ability to set a context for a request.
func NewAddUserParamsWithHTTPClient ¶
func NewAddUserParamsWithHTTPClient(client *http.Client) *AddUserParams
NewAddUserParamsWithHTTPClient creates a new AddUserParams object with the ability to set a custom HTTPClient for a request.
func NewAddUserParamsWithTimeout ¶
func NewAddUserParamsWithTimeout(timeout time.Duration) *AddUserParams
NewAddUserParamsWithTimeout creates a new AddUserParams object with the ability to set a timeout on a request.
func (*AddUserParams) SetContext ¶
func (o *AddUserParams) SetContext(ctx context.Context)
SetContext adds the context to the add user params
func (*AddUserParams) SetDefaults ¶
func (o *AddUserParams) SetDefaults()
SetDefaults hydrates default values in the add user params (not the query body).
All values with no default are reset to their zero value.
func (*AddUserParams) SetHTTPClient ¶
func (o *AddUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add user params
func (*AddUserParams) SetTimeout ¶
func (o *AddUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add user params
func (*AddUserParams) SetUser ¶
func (o *AddUserParams) SetUser(user *models.User)
SetUser adds the user to the add user params
func (*AddUserParams) WithContext ¶
func (o *AddUserParams) WithContext(ctx context.Context) *AddUserParams
WithContext adds the context to the add user params
func (*AddUserParams) WithDefaults ¶
func (o *AddUserParams) WithDefaults() *AddUserParams
WithDefaults hydrates default values in the add user params (not the query body).
All values with no default are reset to their zero value.
func (*AddUserParams) WithHTTPClient ¶
func (o *AddUserParams) WithHTTPClient(client *http.Client) *AddUserParams
WithHTTPClient adds the HTTPClient to the add user params
func (*AddUserParams) WithTimeout ¶
func (o *AddUserParams) WithTimeout(timeout time.Duration) *AddUserParams
WithTimeout adds the timeout to the add user params
func (*AddUserParams) WithUser ¶
func (o *AddUserParams) WithUser(user *models.User) *AddUserParams
WithUser adds the user to the add user params
func (*AddUserParams) WriteToRequest ¶
func (o *AddUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddUserReader ¶
type AddUserReader struct {
// contains filtered or unexported fields
}
AddUserReader is a Reader for the AddUser structure.
func (*AddUserReader) ReadResponse ¶
func (o *AddUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ChangePasswordOK ¶
type ChangePasswordOK struct {
Payload bool
}
ChangePasswordOK describes a response with status code 200, with default header values.
Success
func NewChangePasswordOK ¶
func NewChangePasswordOK() *ChangePasswordOK
NewChangePasswordOK creates a ChangePasswordOK with default headers values
func (*ChangePasswordOK) Error ¶
func (o *ChangePasswordOK) Error() string
func (*ChangePasswordOK) GetPayload ¶
func (o *ChangePasswordOK) GetPayload() bool
type ChangePasswordParams ¶
type ChangePasswordParams struct {
// ChangePassword.
ChangePassword *models.UserChangePassword
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ChangePasswordParams contains all the parameters to send to the API endpoint
for the change password operation. Typically these are written to a http.Request.
func NewChangePasswordParams ¶
func NewChangePasswordParams() *ChangePasswordParams
NewChangePasswordParams creates a new ChangePasswordParams 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 NewChangePasswordParamsWithContext ¶
func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams
NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the ability to set a context for a request.
func NewChangePasswordParamsWithHTTPClient ¶
func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams
NewChangePasswordParamsWithHTTPClient creates a new ChangePasswordParams object with the ability to set a custom HTTPClient for a request.
func NewChangePasswordParamsWithTimeout ¶
func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams
NewChangePasswordParamsWithTimeout creates a new ChangePasswordParams object with the ability to set a timeout on a request.
func (*ChangePasswordParams) SetChangePassword ¶
func (o *ChangePasswordParams) SetChangePassword(changePassword *models.UserChangePassword)
SetChangePassword adds the changePassword to the change password params
func (*ChangePasswordParams) SetContext ¶
func (o *ChangePasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the change password params
func (*ChangePasswordParams) SetDefaults ¶
func (o *ChangePasswordParams) SetDefaults()
SetDefaults hydrates default values in the change password params (not the query body).
All values with no default are reset to their zero value.
func (*ChangePasswordParams) SetHTTPClient ¶
func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change password params
func (*ChangePasswordParams) SetID ¶
func (o *ChangePasswordParams) SetID(id string)
SetID adds the id to the change password params
func (*ChangePasswordParams) SetTimeout ¶
func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the change password params
func (*ChangePasswordParams) WithChangePassword ¶
func (o *ChangePasswordParams) WithChangePassword(changePassword *models.UserChangePassword) *ChangePasswordParams
WithChangePassword adds the changePassword to the change password params
func (*ChangePasswordParams) WithContext ¶
func (o *ChangePasswordParams) WithContext(ctx context.Context) *ChangePasswordParams
WithContext adds the context to the change password params
func (*ChangePasswordParams) WithDefaults ¶
func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams
WithDefaults hydrates default values in the change password params (not the query body).
All values with no default are reset to their zero value.
func (*ChangePasswordParams) WithHTTPClient ¶
func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams
WithHTTPClient adds the HTTPClient to the change password params
func (*ChangePasswordParams) WithID ¶
func (o *ChangePasswordParams) WithID(id string) *ChangePasswordParams
WithID adds the id to the change password params
func (*ChangePasswordParams) WithTimeout ¶
func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams
WithTimeout adds the timeout to the change password params
func (*ChangePasswordParams) WriteToRequest ¶
func (o *ChangePasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ChangePasswordReader ¶
type ChangePasswordReader struct {
// contains filtered or unexported fields
}
ChangePasswordReader is a Reader for the ChangePassword structure.
func (*ChangePasswordReader) ReadResponse ¶
func (o *ChangePasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for users API
func (*Client) AddUser ¶
func (a *Client) AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserOK, error)
AddUser add user API
func (*Client) ChangePassword ¶
func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error)
ChangePassword change password API
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserOK, error)
DeleteUser delete user API
func (*Client) GetUserByID ¶
func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByIDOK, error)
GetUserByID get user by Id API
func (*Client) GetUserByUserName ¶
func (a *Client) GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByUserNameOK, error)
GetUserByUserName get user by user name API
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error)
GetUsers get users API
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 update user API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserOK, error)
ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error)
DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserOK, error)
GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByIDOK, error)
GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByUserNameOK, error)
GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, 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 DeleteUserOK ¶
type DeleteUserOK struct {
Payload bool
}
DeleteUserOK describes a response with status code 200, with default header values.
Success
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
func (*DeleteUserOK) GetPayload ¶
func (o *DeleteUserOK) GetPayload() bool
type DeleteUserParams ¶
type DeleteUserParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteUserParams contains all the parameters to send to the API endpoint
for the delete user operation. Typically these are written to a http.Request.
func NewDeleteUserParams ¶
func NewDeleteUserParams() *DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object, with the default 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 NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the ability to set a context for a request.
func NewDeleteUserParamsWithHTTPClient ¶
func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams
NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteUserParamsWithTimeout ¶
func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams
NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the ability to set a timeout on a request.
func (*DeleteUserParams) SetContext ¶
func (o *DeleteUserParams) SetContext(ctx context.Context)
SetContext adds the context to the delete user params
func (*DeleteUserParams) SetDefaults ¶
func (o *DeleteUserParams) SetDefaults()
SetDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) SetID ¶
func (o *DeleteUserParams) SetID(id string)
SetID adds the id to the delete user params
func (*DeleteUserParams) SetTimeout ¶
func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WithContext ¶
func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
WithContext adds the context to the delete user params
func (*DeleteUserParams) WithDefaults ¶
func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
WithDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) WithID ¶
func (o *DeleteUserParams) WithID(id string) *DeleteUserParams
WithID adds the id to the delete user params
func (*DeleteUserParams) WithTimeout ¶
func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
WithTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WriteToRequest ¶
func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUserReader ¶
type DeleteUserReader struct {
// contains filtered or unexported fields
}
DeleteUserReader is a Reader for the DeleteUser structure.
func (*DeleteUserReader) ReadResponse ¶
func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserByIDOK ¶
GetUserByIDOK describes a response with status code 200, with default header values.
Success
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.User
type GetUserByIDParams ¶
type GetUserByIDParams struct {
// ID.
ID string
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) SetID ¶
func (o *GetUserByIDParams) SetID(id string)
SetID adds the id 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) 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) WithID ¶
func (o *GetUserByIDParams) WithID(id string) *GetUserByIDParams
WithID adds the id 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) 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 GetUserByUserNameOK ¶
GetUserByUserNameOK describes a response with status code 200, with default header values.
Success
func NewGetUserByUserNameOK ¶
func NewGetUserByUserNameOK() *GetUserByUserNameOK
NewGetUserByUserNameOK creates a GetUserByUserNameOK with default headers values
func (*GetUserByUserNameOK) Error ¶
func (o *GetUserByUserNameOK) Error() string
func (*GetUserByUserNameOK) GetPayload ¶
func (o *GetUserByUserNameOK) GetPayload() *models.User
type GetUserByUserNameParams ¶
type GetUserByUserNameParams struct {
// UserName.
UserName *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetUserByUserNameParams contains all the parameters to send to the API endpoint
for the get user by user name operation. Typically these are written to a http.Request.
func NewGetUserByUserNameParams ¶
func NewGetUserByUserNameParams() *GetUserByUserNameParams
NewGetUserByUserNameParams creates a new GetUserByUserNameParams 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 NewGetUserByUserNameParamsWithContext ¶
func NewGetUserByUserNameParamsWithContext(ctx context.Context) *GetUserByUserNameParams
NewGetUserByUserNameParamsWithContext creates a new GetUserByUserNameParams object with the ability to set a context for a request.
func NewGetUserByUserNameParamsWithHTTPClient ¶
func NewGetUserByUserNameParamsWithHTTPClient(client *http.Client) *GetUserByUserNameParams
NewGetUserByUserNameParamsWithHTTPClient creates a new GetUserByUserNameParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserByUserNameParamsWithTimeout ¶
func NewGetUserByUserNameParamsWithTimeout(timeout time.Duration) *GetUserByUserNameParams
NewGetUserByUserNameParamsWithTimeout creates a new GetUserByUserNameParams object with the ability to set a timeout on a request.
func (*GetUserByUserNameParams) SetContext ¶
func (o *GetUserByUserNameParams) SetContext(ctx context.Context)
SetContext adds the context to the get user by user name params
func (*GetUserByUserNameParams) SetDefaults ¶
func (o *GetUserByUserNameParams) SetDefaults()
SetDefaults hydrates default values in the get user by user name params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserByUserNameParams) SetHTTPClient ¶
func (o *GetUserByUserNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user by user name params
func (*GetUserByUserNameParams) SetTimeout ¶
func (o *GetUserByUserNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user by user name params
func (*GetUserByUserNameParams) SetUserName ¶
func (o *GetUserByUserNameParams) SetUserName(userName *string)
SetUserName adds the userName to the get user by user name params
func (*GetUserByUserNameParams) WithContext ¶
func (o *GetUserByUserNameParams) WithContext(ctx context.Context) *GetUserByUserNameParams
WithContext adds the context to the get user by user name params
func (*GetUserByUserNameParams) WithDefaults ¶
func (o *GetUserByUserNameParams) WithDefaults() *GetUserByUserNameParams
WithDefaults hydrates default values in the get user by user name params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserByUserNameParams) WithHTTPClient ¶
func (o *GetUserByUserNameParams) WithHTTPClient(client *http.Client) *GetUserByUserNameParams
WithHTTPClient adds the HTTPClient to the get user by user name params
func (*GetUserByUserNameParams) WithTimeout ¶
func (o *GetUserByUserNameParams) WithTimeout(timeout time.Duration) *GetUserByUserNameParams
WithTimeout adds the timeout to the get user by user name params
func (*GetUserByUserNameParams) WithUserName ¶
func (o *GetUserByUserNameParams) WithUserName(userName *string) *GetUserByUserNameParams
WithUserName adds the userName to the get user by user name params
func (*GetUserByUserNameParams) WriteToRequest ¶
func (o *GetUserByUserNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserByUserNameReader ¶
type GetUserByUserNameReader struct {
// contains filtered or unexported fields
}
GetUserByUserNameReader is a Reader for the GetUserByUserName structure.
func (*GetUserByUserNameReader) ReadResponse ¶
func (o *GetUserByUserNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersOK ¶
type GetUsersOK struct {
Payload *models.APICollectionOfUser
}
GetUsersOK describes a response with status code 200, with default header values.
Success
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶
func (o *GetUsersOK) GetPayload() *models.APICollectionOfUser
type GetUsersParams ¶
type GetUsersParams struct {
// OrganizationID.
//
// Format: int32
OrganizationID *int32
// Page.
//
// Format: int32
Page *int32
// PageSize.
//
// Format: int32
PageSize *int32
// Role.
Role *string
// Search.
Search *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetUsersParams contains all the parameters to send to the API endpoint
for the get users operation. Typically these are written to a http.Request.
func NewGetUsersParams ¶
func NewGetUsersParams() *GetUsersParams
NewGetUsersParams creates a new GetUsersParams object, with the default 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 NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.
func NewGetUsersParamsWithHTTPClient ¶
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams
NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersParamsWithTimeout ¶
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams
NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.
func (*GetUsersParams) SetContext ¶
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) SetDefaults ¶
func (o *GetUsersParams) SetDefaults()
SetDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) SetHTTPClient ¶
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) SetOrganizationID ¶
func (o *GetUsersParams) SetOrganizationID(organizationID *int32)
SetOrganizationID adds the organizationId to the get users params
func (*GetUsersParams) SetPage ¶
func (o *GetUsersParams) SetPage(page *int32)
SetPage adds the page to the get users params
func (*GetUsersParams) SetPageSize ¶
func (o *GetUsersParams) SetPageSize(pageSize *int32)
SetPageSize adds the pageSize to the get users params
func (*GetUsersParams) SetRole ¶
func (o *GetUsersParams) SetRole(role *string)
SetRole adds the role to the get users params
func (*GetUsersParams) SetSearch ¶
func (o *GetUsersParams) SetSearch(search *string)
SetSearch adds the search to the get users params
func (*GetUsersParams) SetTimeout ¶
func (o *GetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users params
func (*GetUsersParams) WithContext ¶
func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
WithContext adds the context to the get users params
func (*GetUsersParams) WithDefaults ¶
func (o *GetUsersParams) WithDefaults() *GetUsersParams
WithDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) WithHTTPClient ¶
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) WithOrganizationID ¶
func (o *GetUsersParams) WithOrganizationID(organizationID *int32) *GetUsersParams
WithOrganizationID adds the organizationID to the get users params
func (*GetUsersParams) WithPage ¶
func (o *GetUsersParams) WithPage(page *int32) *GetUsersParams
WithPage adds the page to the get users params
func (*GetUsersParams) WithPageSize ¶
func (o *GetUsersParams) WithPageSize(pageSize *int32) *GetUsersParams
WithPageSize adds the pageSize to the get users params
func (*GetUsersParams) WithRole ¶
func (o *GetUsersParams) WithRole(role *string) *GetUsersParams
WithRole adds the role to the get users params
func (*GetUsersParams) WithSearch ¶
func (o *GetUsersParams) WithSearch(search *string) *GetUsersParams
WithSearch adds the search to the get users params
func (*GetUsersParams) WithTimeout ¶
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
WithTimeout adds the timeout to the get users params
func (*GetUsersParams) WriteToRequest ¶
func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersReader ¶
type GetUsersReader struct {
// contains filtered or unexported fields
}
GetUsersReader is a Reader for the GetUsers structure.
func (*GetUsersReader) ReadResponse ¶
func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserOK ¶
UpdateUserOK describes a response with status code 200, with default header values.
Success
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.User
type UpdateUserParams ¶
type UpdateUserParams struct {
// ID.
ID string
// User.
User *models.User
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) 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) SetID ¶
func (o *UpdateUserParams) SetID(id string)
SetID adds the id to the update user params
func (*UpdateUserParams) SetTimeout ¶
func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update user params
func (*UpdateUserParams) SetUser ¶
func (o *UpdateUserParams) SetUser(user *models.User)
SetUser adds the user 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) WithID ¶
func (o *UpdateUserParams) WithID(id string) *UpdateUserParams
WithID adds the id to the update user params
func (*UpdateUserParams) WithTimeout ¶
func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
WithTimeout adds the timeout to the update user params
func (*UpdateUserParams) WithUser ¶
func (o *UpdateUserParams) WithUser(user *models.User) *UpdateUserParams
WithUser adds the user 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.
Source Files
¶
- add_user_parameters.go
- add_user_responses.go
- change_password_parameters.go
- change_password_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_user_by_id_parameters.go
- get_user_by_id_responses.go
- get_user_by_user_name_parameters.go
- get_user_by_user_name_responses.go
- get_users_parameters.go
- get_users_responses.go
- update_user_parameters.go
- update_user_responses.go
- users_client.go