Documentation ¶
Index ¶
- type AddUserOK
- type AddUserParams
- func (o *AddUserParams) SetContext(ctx context.Context)
- 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) 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) 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) 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 ClientService
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- 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) 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) 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) 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) 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) 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) 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) 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) 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) 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 handles this case 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 values initialized.
func NewAddUserParamsWithContext ¶
func NewAddUserParamsWithContext(ctx context.Context) *AddUserParams
NewAddUserParamsWithContext creates a new AddUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 values initialized.
func NewChangePasswordParamsWithContext ¶
func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams
NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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) (*AddUserOK, error)
AddUser add user API
func (*Client) ChangePassword ¶
func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, error)
ChangePassword change password API
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error)
DeleteUser delete user API
func (*Client) GetUserByID ¶
func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByIDOK, error)
GetUserByID get user by Id API
func (*Client) GetUserByUserName ¶
func (a *Client) GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByUserNameOK, error)
GetUserByUserName get user by user name API
func (*Client) GetUsers ¶ added in v1.1.0
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*UpdateUserOK, error)
UpdateUser update user API
type ClientService ¶
type ClientService interface { AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter) (*AddUserOK, error) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, error) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByIDOK, error) GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByUserNameOK, error) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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 values initialized.
func NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteUserParamsWithHTTPClient ¶
func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams
NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteUserParamsWithTimeout ¶
func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams
NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteUserParams) SetContext ¶
func (o *DeleteUserParams) SetContext(ctx context.Context)
SetContext adds the context to the delete user params
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) SetID ¶
func (o *DeleteUserParams) SetID(id 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) 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 handles this case 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 values initialized.
func NewGetUserByIDParamsWithContext ¶
func NewGetUserByIDParamsWithContext(ctx context.Context) *GetUserByIDParams
NewGetUserByIDParamsWithContext creates a new GetUserByIDParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 values initialized.
func NewGetUserByUserNameParamsWithContext ¶
func NewGetUserByUserNameParamsWithContext(ctx context.Context) *GetUserByUserNameParams
NewGetUserByUserNameParamsWithContext creates a new GetUserByUserNameParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ¶ added in v1.1.0
type GetUsersOK struct {
Payload *models.APICollectionOfUser
}
GetUsersOK handles this case with default header values.
Success
func NewGetUsersOK ¶ added in v1.1.0
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Error ¶ added in v1.1.0
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶ added in v1.1.0
func (o *GetUsersOK) GetPayload() *models.APICollectionOfUser
type GetUsersParams ¶ added in v1.1.0
type GetUsersParams struct { /*OrganizationID*/ OrganizationID *int32 /*Page*/ Page *int32 /*PageSize*/ 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 ¶ added in v1.1.0
func NewGetUsersParams() *GetUsersParams
NewGetUsersParams creates a new GetUsersParams object with the default values initialized.
func NewGetUsersParamsWithContext ¶ added in v1.1.0
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the default values initialized, and the ability to set a context for a request
func NewGetUsersParamsWithHTTPClient ¶ added in v1.1.0
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams
NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUsersParamsWithTimeout ¶ added in v1.1.0
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams
NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUsersParams) SetContext ¶ added in v1.1.0
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) SetHTTPClient ¶ added in v1.1.0
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) SetOrganizationID ¶ added in v1.1.0
func (o *GetUsersParams) SetOrganizationID(organizationID *int32)
SetOrganizationID adds the organizationId to the get users params
func (*GetUsersParams) SetPage ¶ added in v1.1.0
func (o *GetUsersParams) SetPage(page *int32)
SetPage adds the page to the get users params
func (*GetUsersParams) SetPageSize ¶ added in v1.1.0
func (o *GetUsersParams) SetPageSize(pageSize *int32)
SetPageSize adds the pageSize to the get users params
func (*GetUsersParams) SetRole ¶ added in v1.1.0
func (o *GetUsersParams) SetRole(role *string)
SetRole adds the role to the get users params
func (*GetUsersParams) SetSearch ¶ added in v1.1.0
func (o *GetUsersParams) SetSearch(search *string)
SetSearch adds the search to the get users params
func (*GetUsersParams) SetTimeout ¶ added in v1.1.0
func (o *GetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users params
func (*GetUsersParams) WithContext ¶ added in v1.1.0
func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
WithContext adds the context to the get users params
func (*GetUsersParams) WithHTTPClient ¶ added in v1.1.0
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) WithOrganizationID ¶ added in v1.1.0
func (o *GetUsersParams) WithOrganizationID(organizationID *int32) *GetUsersParams
WithOrganizationID adds the organizationID to the get users params
func (*GetUsersParams) WithPage ¶ added in v1.1.0
func (o *GetUsersParams) WithPage(page *int32) *GetUsersParams
WithPage adds the page to the get users params
func (*GetUsersParams) WithPageSize ¶ added in v1.1.0
func (o *GetUsersParams) WithPageSize(pageSize *int32) *GetUsersParams
WithPageSize adds the pageSize to the get users params
func (*GetUsersParams) WithRole ¶ added in v1.1.0
func (o *GetUsersParams) WithRole(role *string) *GetUsersParams
WithRole adds the role to the get users params
func (*GetUsersParams) WithSearch ¶ added in v1.1.0
func (o *GetUsersParams) WithSearch(search *string) *GetUsersParams
WithSearch adds the search to the get users params
func (*GetUsersParams) WithTimeout ¶ added in v1.1.0
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
WithTimeout adds the timeout to the get users params
func (*GetUsersParams) WriteToRequest ¶ added in v1.1.0
func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersReader ¶ added in v1.1.0
type GetUsersReader struct {
// contains filtered or unexported fields
}
GetUsersReader is a Reader for the GetUsers structure.
func (*GetUsersReader) ReadResponse ¶ added in v1.1.0
func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserOK ¶
UpdateUserOK handles this case 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 values initialized.
func NewUpdateUserParamsWithContext ¶
func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams
NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateUserParamsWithHTTPClient ¶
func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams
NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateUserParamsWithTimeout ¶
func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams
NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateUserParams) SetContext ¶
func (o *UpdateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update user params
func (*UpdateUserParams) SetHTTPClient ¶
func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) SetID ¶
func (o *UpdateUserParams) SetID(id 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) 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