Documentation ¶
Index ¶
- type ChangePasswordBadRequest
- type ChangePasswordForbidden
- type ChangePasswordNoContent
- type ChangePasswordNotFound
- 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) SetContext(ctx context.Context)
- func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)
- func (o *ChangePasswordParams) SetJSONBody(jSONBody *models.ChangePasswordRequest)
- func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)
- func (o *ChangePasswordParams) SetUsername(username string)
- func (o *ChangePasswordParams) WithContext(ctx context.Context) *ChangePasswordParams
- func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams
- func (o *ChangePasswordParams) WithJSONBody(jSONBody *models.ChangePasswordRequest) *ChangePasswordParams
- func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams
- func (o *ChangePasswordParams) WithUsername(username string) *ChangePasswordParams
- func (o *ChangePasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangePasswordReader
- type ChangeUserBadRequest
- type ChangeUserOK
- type ChangeUserParams
- func (o *ChangeUserParams) SetContext(ctx context.Context)
- func (o *ChangeUserParams) SetHTTPClient(client *http.Client)
- func (o *ChangeUserParams) SetJSONBody(jSONBody *models.ChangeUserRequest)
- func (o *ChangeUserParams) SetTimeout(timeout time.Duration)
- func (o *ChangeUserParams) SetUsername(username string)
- func (o *ChangeUserParams) WithContext(ctx context.Context) *ChangeUserParams
- func (o *ChangeUserParams) WithHTTPClient(client *http.Client) *ChangeUserParams
- func (o *ChangeUserParams) WithJSONBody(jSONBody *models.ChangeUserRequest) *ChangeUserParams
- func (o *ChangeUserParams) WithTimeout(timeout time.Duration) *ChangeUserParams
- func (o *ChangeUserParams) WithUsername(username string) *ChangeUserParams
- func (o *ChangeUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangeUserReader
- type Client
- func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, *ChangePasswordNoContent, error)
- func (a *Client) ChangeUser(params *ChangeUserParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeUserOK, error)
- func (a *Client) EditPermissions(params *EditPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*EditPermissionsOK, error)
- func (a *Client) GenerateNewToken(params *GenerateNewTokenParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateNewTokenOK, error)
- func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter) (*ListTokensOK, error)
- func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter) (*ListUsersOK, error)
- func (a *Client) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error)
- func (a *Client) SavePreferences(params *SavePreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*SavePreferencesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateBadRequest
- type CreateOK
- type CreateParams
- func (o *CreateParams) SetContext(ctx context.Context)
- func (o *CreateParams) SetHTTPClient(client *http.Client)
- func (o *CreateParams) SetJSONBody(jSONBody *models.CreateUserRequest)
- func (o *CreateParams) SetTimeout(timeout time.Duration)
- func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
- func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
- func (o *CreateParams) WithJSONBody(jSONBody *models.CreateUserRequest) *CreateParams
- func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
- func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReader
- type DeletePermissionsInternalServerError
- type DeletePermissionsOK
- type DeletePermissionsParams
- func NewDeletePermissionsParams() *DeletePermissionsParams
- func NewDeletePermissionsParamsWithContext(ctx context.Context) *DeletePermissionsParams
- func NewDeletePermissionsParamsWithHTTPClient(client *http.Client) *DeletePermissionsParams
- func NewDeletePermissionsParamsWithTimeout(timeout time.Duration) *DeletePermissionsParams
- func (o *DeletePermissionsParams) SetContext(ctx context.Context)
- func (o *DeletePermissionsParams) SetHTTPClient(client *http.Client)
- func (o *DeletePermissionsParams) SetTimeout(timeout time.Duration)
- func (o *DeletePermissionsParams) SetUsername(username string)
- func (o *DeletePermissionsParams) WithContext(ctx context.Context) *DeletePermissionsParams
- func (o *DeletePermissionsParams) WithHTTPClient(client *http.Client) *DeletePermissionsParams
- func (o *DeletePermissionsParams) WithTimeout(timeout time.Duration) *DeletePermissionsParams
- func (o *DeletePermissionsParams) WithUsername(username string) *DeletePermissionsParams
- func (o *DeletePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePermissionsReader
- type DeleteUserBadRequest
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) SetUsername(username string)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WithUsername(username string) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type EditPermissionsBadRequest
- type EditPermissionsOK
- type EditPermissionsParams
- func NewEditPermissionsParams() *EditPermissionsParams
- func NewEditPermissionsParamsWithContext(ctx context.Context) *EditPermissionsParams
- func NewEditPermissionsParamsWithHTTPClient(client *http.Client) *EditPermissionsParams
- func NewEditPermissionsParamsWithTimeout(timeout time.Duration) *EditPermissionsParams
- func (o *EditPermissionsParams) SetContext(ctx context.Context)
- func (o *EditPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *EditPermissionsParams) SetJSONBody(jSONBody *models.PermissionEditRequest)
- func (o *EditPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *EditPermissionsParams) SetUsername(username string)
- func (o *EditPermissionsParams) WithContext(ctx context.Context) *EditPermissionsParams
- func (o *EditPermissionsParams) WithHTTPClient(client *http.Client) *EditPermissionsParams
- func (o *EditPermissionsParams) WithJSONBody(jSONBody *models.PermissionEditRequest) *EditPermissionsParams
- func (o *EditPermissionsParams) WithTimeout(timeout time.Duration) *EditPermissionsParams
- func (o *EditPermissionsParams) WithUsername(username string) *EditPermissionsParams
- func (o *EditPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditPermissionsReader
- type GenerateNewTokenOK
- type GenerateNewTokenParams
- func NewGenerateNewTokenParams() *GenerateNewTokenParams
- func NewGenerateNewTokenParamsWithContext(ctx context.Context) *GenerateNewTokenParams
- func NewGenerateNewTokenParamsWithHTTPClient(client *http.Client) *GenerateNewTokenParams
- func NewGenerateNewTokenParamsWithTimeout(timeout time.Duration) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) SetContext(ctx context.Context)
- func (o *GenerateNewTokenParams) SetHTTPClient(client *http.Client)
- func (o *GenerateNewTokenParams) SetJSONBody(jSONBody *string)
- func (o *GenerateNewTokenParams) SetName(name string)
- func (o *GenerateNewTokenParams) SetTimeout(timeout time.Duration)
- func (o *GenerateNewTokenParams) SetUsername(username string)
- func (o *GenerateNewTokenParams) WithContext(ctx context.Context) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WithHTTPClient(client *http.Client) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WithJSONBody(jSONBody *string) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WithName(name string) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WithTimeout(timeout time.Duration) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WithUsername(username string) *GenerateNewTokenParams
- func (o *GenerateNewTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GenerateNewTokenReader
- type GetNotFound
- type GetOK
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) SetUsername(username string)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WithUsername(username string) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
- type ListTokensOK
- type ListTokensParams
- func (o *ListTokensParams) SetContext(ctx context.Context)
- func (o *ListTokensParams) SetHTTPClient(client *http.Client)
- func (o *ListTokensParams) SetTimeout(timeout time.Duration)
- func (o *ListTokensParams) SetUsername(username string)
- func (o *ListTokensParams) WithContext(ctx context.Context) *ListTokensParams
- func (o *ListTokensParams) WithHTTPClient(client *http.Client) *ListTokensParams
- func (o *ListTokensParams) WithTimeout(timeout time.Duration) *ListTokensParams
- func (o *ListTokensParams) WithUsername(username string) *ListTokensParams
- func (o *ListTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTokensReader
- type ListUsersOK
- type ListUsersParams
- func (o *ListUsersParams) SetContext(ctx context.Context)
- func (o *ListUsersParams) SetHTTPClient(client *http.Client)
- func (o *ListUsersParams) SetTimeout(timeout time.Duration)
- func (o *ListUsersParams) WithContext(ctx context.Context) *ListUsersParams
- func (o *ListUsersParams) WithHTTPClient(client *http.Client) *ListUsersParams
- func (o *ListUsersParams) WithTimeout(timeout time.Duration) *ListUsersParams
- func (o *ListUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUsersReader
- type RevokeTokenOK
- type RevokeTokenParams
- func (o *RevokeTokenParams) SetContext(ctx context.Context)
- func (o *RevokeTokenParams) SetHTTPClient(client *http.Client)
- func (o *RevokeTokenParams) SetTimeout(timeout time.Duration)
- func (o *RevokeTokenParams) SetToken(token string)
- func (o *RevokeTokenParams) SetUsername(username string)
- func (o *RevokeTokenParams) WithContext(ctx context.Context) *RevokeTokenParams
- func (o *RevokeTokenParams) WithHTTPClient(client *http.Client) *RevokeTokenParams
- func (o *RevokeTokenParams) WithTimeout(timeout time.Duration) *RevokeTokenParams
- func (o *RevokeTokenParams) WithToken(token string) *RevokeTokenParams
- func (o *RevokeTokenParams) WithUsername(username string) *RevokeTokenParams
- func (o *RevokeTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeTokenReader
- type SavePreferencesBadRequest
- type SavePreferencesOK
- type SavePreferencesParams
- func NewSavePreferencesParams() *SavePreferencesParams
- func NewSavePreferencesParamsWithContext(ctx context.Context) *SavePreferencesParams
- func NewSavePreferencesParamsWithHTTPClient(client *http.Client) *SavePreferencesParams
- func NewSavePreferencesParamsWithTimeout(timeout time.Duration) *SavePreferencesParams
- func (o *SavePreferencesParams) SetContext(ctx context.Context)
- func (o *SavePreferencesParams) SetHTTPClient(client *http.Client)
- func (o *SavePreferencesParams) SetJSONBody(jSONBody *models.UpdateUserPreferences)
- func (o *SavePreferencesParams) SetTimeout(timeout time.Duration)
- func (o *SavePreferencesParams) SetUsername(username string)
- func (o *SavePreferencesParams) WithContext(ctx context.Context) *SavePreferencesParams
- func (o *SavePreferencesParams) WithHTTPClient(client *http.Client) *SavePreferencesParams
- func (o *SavePreferencesParams) WithJSONBody(jSONBody *models.UpdateUserPreferences) *SavePreferencesParams
- func (o *SavePreferencesParams) WithTimeout(timeout time.Duration) *SavePreferencesParams
- func (o *SavePreferencesParams) WithUsername(username string) *SavePreferencesParams
- func (o *SavePreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SavePreferencesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordBadRequest ¶
type ChangePasswordBadRequest struct { }
ChangePasswordBadRequest handles this case with default header values.
The new password is missing, or the old password is missing or incorrect.
func NewChangePasswordBadRequest ¶
func NewChangePasswordBadRequest() *ChangePasswordBadRequest
NewChangePasswordBadRequest creates a ChangePasswordBadRequest with default headers values
func (*ChangePasswordBadRequest) Error ¶
func (o *ChangePasswordBadRequest) Error() string
type ChangePasswordForbidden ¶
type ChangePasswordForbidden struct { }
ChangePasswordForbidden handles this case with default header values.
The requesting user has insufficient privileges to update the password for the given user.
func NewChangePasswordForbidden ¶
func NewChangePasswordForbidden() *ChangePasswordForbidden
NewChangePasswordForbidden creates a ChangePasswordForbidden with default headers values
func (*ChangePasswordForbidden) Error ¶
func (o *ChangePasswordForbidden) Error() string
type ChangePasswordNoContent ¶
type ChangePasswordNoContent struct { }
ChangePasswordNoContent handles this case with default header values.
The password was successfully updated. Subsequent requests must be made with the new password.
func NewChangePasswordNoContent ¶
func NewChangePasswordNoContent() *ChangePasswordNoContent
NewChangePasswordNoContent creates a ChangePasswordNoContent with default headers values
func (*ChangePasswordNoContent) Error ¶
func (o *ChangePasswordNoContent) Error() string
type ChangePasswordNotFound ¶
type ChangePasswordNotFound struct { }
ChangePasswordNotFound handles this case with default header values.
User does not exist.
func NewChangePasswordNotFound ¶
func NewChangePasswordNotFound() *ChangePasswordNotFound
NewChangePasswordNotFound creates a ChangePasswordNotFound with default headers values
func (*ChangePasswordNotFound) Error ¶
func (o *ChangePasswordNotFound) Error() string
type ChangePasswordOK ¶
type ChangePasswordOK struct { }
ChangePasswordOK handles this case with default header values.
No response was specified
func NewChangePasswordOK ¶
func NewChangePasswordOK() *ChangePasswordOK
NewChangePasswordOK creates a ChangePasswordOK with default headers values
func (*ChangePasswordOK) Error ¶
func (o *ChangePasswordOK) Error() string
type ChangePasswordParams ¶
type ChangePasswordParams struct { /*JSONBody The old and new passwords. */ JSONBody *models.ChangePasswordRequest /*Username The name of the user whose password to change. */ Username 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) 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) SetJSONBody ¶
func (o *ChangePasswordParams) SetJSONBody(jSONBody *models.ChangePasswordRequest)
SetJSONBody adds the jsonBody 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) SetUsername ¶
func (o *ChangePasswordParams) SetUsername(username string)
SetUsername adds the username 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) WithJSONBody ¶
func (o *ChangePasswordParams) WithJSONBody(jSONBody *models.ChangePasswordRequest) *ChangePasswordParams
WithJSONBody adds the jSONBody 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) WithUsername ¶
func (o *ChangePasswordParams) WithUsername(username string) *ChangePasswordParams
WithUsername adds the username 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 ChangeUserBadRequest ¶
type ChangeUserBadRequest struct { }
ChangeUserBadRequest handles this case with default header values.
Missing or invalid user details.
func NewChangeUserBadRequest ¶
func NewChangeUserBadRequest() *ChangeUserBadRequest
NewChangeUserBadRequest creates a ChangeUserBadRequest with default headers values
func (*ChangeUserBadRequest) Error ¶
func (o *ChangeUserBadRequest) Error() string
type ChangeUserOK ¶
type ChangeUserOK struct { }
ChangeUserOK handles this case with default header values.
No response was specified
func NewChangeUserOK ¶
func NewChangeUserOK() *ChangeUserOK
NewChangeUserOK creates a ChangeUserOK with default headers values
func (*ChangeUserOK) Error ¶
func (o *ChangeUserOK) Error() string
type ChangeUserParams ¶
type ChangeUserParams struct { /*JSONBody Updated user information. */ JSONBody *models.ChangeUserRequest /*Username The name of the user to modify. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ChangeUserParams contains all the parameters to send to the API endpoint for the change user operation typically these are written to a http.Request
func NewChangeUserParams ¶
func NewChangeUserParams() *ChangeUserParams
NewChangeUserParams creates a new ChangeUserParams object with the default values initialized.
func NewChangeUserParamsWithContext ¶
func NewChangeUserParamsWithContext(ctx context.Context) *ChangeUserParams
NewChangeUserParamsWithContext creates a new ChangeUserParams object with the default values initialized, and the ability to set a context for a request
func NewChangeUserParamsWithHTTPClient ¶
func NewChangeUserParamsWithHTTPClient(client *http.Client) *ChangeUserParams
NewChangeUserParamsWithHTTPClient creates a new ChangeUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewChangeUserParamsWithTimeout ¶
func NewChangeUserParamsWithTimeout(timeout time.Duration) *ChangeUserParams
NewChangeUserParamsWithTimeout creates a new ChangeUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*ChangeUserParams) SetContext ¶
func (o *ChangeUserParams) SetContext(ctx context.Context)
SetContext adds the context to the change user params
func (*ChangeUserParams) SetHTTPClient ¶
func (o *ChangeUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change user params
func (*ChangeUserParams) SetJSONBody ¶
func (o *ChangeUserParams) SetJSONBody(jSONBody *models.ChangeUserRequest)
SetJSONBody adds the jsonBody to the change user params
func (*ChangeUserParams) SetTimeout ¶
func (o *ChangeUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the change user params
func (*ChangeUserParams) SetUsername ¶
func (o *ChangeUserParams) SetUsername(username string)
SetUsername adds the username to the change user params
func (*ChangeUserParams) WithContext ¶
func (o *ChangeUserParams) WithContext(ctx context.Context) *ChangeUserParams
WithContext adds the context to the change user params
func (*ChangeUserParams) WithHTTPClient ¶
func (o *ChangeUserParams) WithHTTPClient(client *http.Client) *ChangeUserParams
WithHTTPClient adds the HTTPClient to the change user params
func (*ChangeUserParams) WithJSONBody ¶
func (o *ChangeUserParams) WithJSONBody(jSONBody *models.ChangeUserRequest) *ChangeUserParams
WithJSONBody adds the jSONBody to the change user params
func (*ChangeUserParams) WithTimeout ¶
func (o *ChangeUserParams) WithTimeout(timeout time.Duration) *ChangeUserParams
WithTimeout adds the timeout to the change user params
func (*ChangeUserParams) WithUsername ¶
func (o *ChangeUserParams) WithUsername(username string) *ChangeUserParams
WithUsername adds the username to the change user params
func (*ChangeUserParams) WriteToRequest ¶
func (o *ChangeUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ChangeUserReader ¶
type ChangeUserReader struct {
// contains filtered or unexported fields
}
ChangeUserReader is a Reader for the ChangeUser structure.
func (*ChangeUserReader) ReadResponse ¶
func (o *ChangeUserReader) 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 operations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new operations API client.
func (*Client) ChangePassword ¶
func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, *ChangePasswordNoContent, error)
ChangePassword updates the password for a user
func (*Client) ChangeUser ¶
func (a *Client) ChangeUser(params *ChangeUserParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeUserOK, error)
ChangeUser modifies user details
func (*Client) EditPermissions ¶
func (a *Client) EditPermissions(params *EditPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*EditPermissionsOK, error)
EditPermissions updates a user s permission set
func (*Client) GenerateNewToken ¶
func (a *Client) GenerateNewToken(params *GenerateNewTokenParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateNewTokenOK, error)
GenerateNewToken generates a new access token for a user
func (*Client) ListTokens ¶
func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter) (*ListTokensOK, error)
ListTokens retrieves the list of access tokens for a user
func (*Client) ListUsers ¶
func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter) (*ListUsersOK, error)
ListUsers lists all users
The permissions assigned to the users are always included.
func (*Client) RevokeToken ¶
func (a *Client) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error)
RevokeToken removes a token for a user
func (*Client) SavePreferences ¶
func (a *Client) SavePreferences(params *SavePreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*SavePreferencesOK, error)
SavePreferences updates a user s preferences set
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateBadRequest ¶
type CreateBadRequest struct { }
CreateBadRequest handles this case with default header values.
Missing or invalid user details.
func NewCreateBadRequest ¶
func NewCreateBadRequest() *CreateBadRequest
NewCreateBadRequest creates a CreateBadRequest with default headers values
func (*CreateBadRequest) Error ¶
func (o *CreateBadRequest) Error() string
type CreateOK ¶
type CreateOK struct { }
CreateOK handles this case with default header values.
No response was specified
func NewCreateOK ¶
func NewCreateOK() *CreateOK
NewCreateOK creates a CreateOK with default headers values
type CreateParams ¶
type CreateParams struct { /*JSONBody Must contain username, full_name, email, password and a list of permissions. */ JSONBody *models.CreateUserRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request
func NewCreateParams ¶
func NewCreateParams() *CreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
func NewCreateParamsWithContext ¶
func NewCreateParamsWithContext(ctx context.Context) *CreateParams
NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request
func NewCreateParamsWithHTTPClient ¶
func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams
NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateParamsWithTimeout ¶
func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams
NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateParams) SetContext ¶
func (o *CreateParams) SetContext(ctx context.Context)
SetContext adds the context to the create params
func (*CreateParams) SetHTTPClient ¶
func (o *CreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create params
func (*CreateParams) SetJSONBody ¶
func (o *CreateParams) SetJSONBody(jSONBody *models.CreateUserRequest)
SetJSONBody adds the jsonBody to the create params
func (*CreateParams) SetTimeout ¶
func (o *CreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create params
func (*CreateParams) WithContext ¶
func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
WithContext adds the context to the create params
func (*CreateParams) WithHTTPClient ¶
func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
WithHTTPClient adds the HTTPClient to the create params
func (*CreateParams) WithJSONBody ¶
func (o *CreateParams) WithJSONBody(jSONBody *models.CreateUserRequest) *CreateParams
WithJSONBody adds the jSONBody to the create params
func (*CreateParams) WithTimeout ¶
func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
WithTimeout adds the timeout to the create params
func (*CreateParams) WriteToRequest ¶
func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReader ¶
type CreateReader struct {
// contains filtered or unexported fields
}
CreateReader is a Reader for the Create structure.
func (*CreateReader) ReadResponse ¶
func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePermissionsInternalServerError ¶
type DeletePermissionsInternalServerError struct { }
DeletePermissionsInternalServerError handles this case with default header values.
When saving the user failed.
func NewDeletePermissionsInternalServerError ¶
func NewDeletePermissionsInternalServerError() *DeletePermissionsInternalServerError
NewDeletePermissionsInternalServerError creates a DeletePermissionsInternalServerError with default headers values
func (*DeletePermissionsInternalServerError) Error ¶
func (o *DeletePermissionsInternalServerError) Error() string
type DeletePermissionsOK ¶
type DeletePermissionsOK struct { }
DeletePermissionsOK handles this case with default header values.
No response was specified
func NewDeletePermissionsOK ¶
func NewDeletePermissionsOK() *DeletePermissionsOK
NewDeletePermissionsOK creates a DeletePermissionsOK with default headers values
func (*DeletePermissionsOK) Error ¶
func (o *DeletePermissionsOK) Error() string
type DeletePermissionsParams ¶
type DeletePermissionsParams struct { /*Username The name of the user to modify. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePermissionsParams contains all the parameters to send to the API endpoint for the delete permissions operation typically these are written to a http.Request
func NewDeletePermissionsParams ¶
func NewDeletePermissionsParams() *DeletePermissionsParams
NewDeletePermissionsParams creates a new DeletePermissionsParams object with the default values initialized.
func NewDeletePermissionsParamsWithContext ¶
func NewDeletePermissionsParamsWithContext(ctx context.Context) *DeletePermissionsParams
NewDeletePermissionsParamsWithContext creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePermissionsParamsWithHTTPClient ¶
func NewDeletePermissionsParamsWithHTTPClient(client *http.Client) *DeletePermissionsParams
NewDeletePermissionsParamsWithHTTPClient creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePermissionsParamsWithTimeout ¶
func NewDeletePermissionsParamsWithTimeout(timeout time.Duration) *DeletePermissionsParams
NewDeletePermissionsParamsWithTimeout creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePermissionsParams) SetContext ¶
func (o *DeletePermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete permissions params
func (*DeletePermissionsParams) SetHTTPClient ¶
func (o *DeletePermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete permissions params
func (*DeletePermissionsParams) SetTimeout ¶
func (o *DeletePermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete permissions params
func (*DeletePermissionsParams) SetUsername ¶
func (o *DeletePermissionsParams) SetUsername(username string)
SetUsername adds the username to the delete permissions params
func (*DeletePermissionsParams) WithContext ¶
func (o *DeletePermissionsParams) WithContext(ctx context.Context) *DeletePermissionsParams
WithContext adds the context to the delete permissions params
func (*DeletePermissionsParams) WithHTTPClient ¶
func (o *DeletePermissionsParams) WithHTTPClient(client *http.Client) *DeletePermissionsParams
WithHTTPClient adds the HTTPClient to the delete permissions params
func (*DeletePermissionsParams) WithTimeout ¶
func (o *DeletePermissionsParams) WithTimeout(timeout time.Duration) *DeletePermissionsParams
WithTimeout adds the timeout to the delete permissions params
func (*DeletePermissionsParams) WithUsername ¶
func (o *DeletePermissionsParams) WithUsername(username string) *DeletePermissionsParams
WithUsername adds the username to the delete permissions params
func (*DeletePermissionsParams) WriteToRequest ¶
func (o *DeletePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePermissionsReader ¶
type DeletePermissionsReader struct {
// contains filtered or unexported fields
}
DeletePermissionsReader is a Reader for the DeletePermissions structure.
func (*DeletePermissionsReader) ReadResponse ¶
func (o *DeletePermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUserBadRequest ¶
type DeleteUserBadRequest struct { }
DeleteUserBadRequest handles this case with default header values.
When attempting to remove a read only user (e.g. built-in or LDAP user).
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) Error ¶
func (o *DeleteUserBadRequest) Error() string
type DeleteUserOK ¶
type DeleteUserOK struct { }
DeleteUserOK handles this case with default header values.
No response was specified
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
type DeleteUserParams ¶
type DeleteUserParams struct { /*Username The name of the user to delete. */ Username 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) SetTimeout ¶
func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete user params
func (*DeleteUserParams) SetUsername ¶
func (o *DeleteUserParams) SetUsername(username string)
SetUsername adds the username 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) WithTimeout ¶
func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
WithTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WithUsername ¶
func (o *DeleteUserParams) WithUsername(username string) *DeleteUserParams
WithUsername adds the username 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 EditPermissionsBadRequest ¶
type EditPermissionsBadRequest struct { }
EditPermissionsBadRequest handles this case with default header values.
Missing or invalid permission data.
func NewEditPermissionsBadRequest ¶
func NewEditPermissionsBadRequest() *EditPermissionsBadRequest
NewEditPermissionsBadRequest creates a EditPermissionsBadRequest with default headers values
func (*EditPermissionsBadRequest) Error ¶
func (o *EditPermissionsBadRequest) Error() string
type EditPermissionsOK ¶
type EditPermissionsOK struct { }
EditPermissionsOK handles this case with default header values.
No response was specified
func NewEditPermissionsOK ¶
func NewEditPermissionsOK() *EditPermissionsOK
NewEditPermissionsOK creates a EditPermissionsOK with default headers values
func (*EditPermissionsOK) Error ¶
func (o *EditPermissionsOK) Error() string
type EditPermissionsParams ¶
type EditPermissionsParams struct { /*JSONBody The list of permissions to assign to the user. */ JSONBody *models.PermissionEditRequest /*Username The name of the user to modify. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EditPermissionsParams contains all the parameters to send to the API endpoint for the edit permissions operation typically these are written to a http.Request
func NewEditPermissionsParams ¶
func NewEditPermissionsParams() *EditPermissionsParams
NewEditPermissionsParams creates a new EditPermissionsParams object with the default values initialized.
func NewEditPermissionsParamsWithContext ¶
func NewEditPermissionsParamsWithContext(ctx context.Context) *EditPermissionsParams
NewEditPermissionsParamsWithContext creates a new EditPermissionsParams object with the default values initialized, and the ability to set a context for a request
func NewEditPermissionsParamsWithHTTPClient ¶
func NewEditPermissionsParamsWithHTTPClient(client *http.Client) *EditPermissionsParams
NewEditPermissionsParamsWithHTTPClient creates a new EditPermissionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewEditPermissionsParamsWithTimeout ¶
func NewEditPermissionsParamsWithTimeout(timeout time.Duration) *EditPermissionsParams
NewEditPermissionsParamsWithTimeout creates a new EditPermissionsParams object with the default values initialized, and the ability to set a timeout on a request
func (*EditPermissionsParams) SetContext ¶
func (o *EditPermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the edit permissions params
func (*EditPermissionsParams) SetHTTPClient ¶
func (o *EditPermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the edit permissions params
func (*EditPermissionsParams) SetJSONBody ¶
func (o *EditPermissionsParams) SetJSONBody(jSONBody *models.PermissionEditRequest)
SetJSONBody adds the jsonBody to the edit permissions params
func (*EditPermissionsParams) SetTimeout ¶
func (o *EditPermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the edit permissions params
func (*EditPermissionsParams) SetUsername ¶
func (o *EditPermissionsParams) SetUsername(username string)
SetUsername adds the username to the edit permissions params
func (*EditPermissionsParams) WithContext ¶
func (o *EditPermissionsParams) WithContext(ctx context.Context) *EditPermissionsParams
WithContext adds the context to the edit permissions params
func (*EditPermissionsParams) WithHTTPClient ¶
func (o *EditPermissionsParams) WithHTTPClient(client *http.Client) *EditPermissionsParams
WithHTTPClient adds the HTTPClient to the edit permissions params
func (*EditPermissionsParams) WithJSONBody ¶
func (o *EditPermissionsParams) WithJSONBody(jSONBody *models.PermissionEditRequest) *EditPermissionsParams
WithJSONBody adds the jSONBody to the edit permissions params
func (*EditPermissionsParams) WithTimeout ¶
func (o *EditPermissionsParams) WithTimeout(timeout time.Duration) *EditPermissionsParams
WithTimeout adds the timeout to the edit permissions params
func (*EditPermissionsParams) WithUsername ¶
func (o *EditPermissionsParams) WithUsername(username string) *EditPermissionsParams
WithUsername adds the username to the edit permissions params
func (*EditPermissionsParams) WriteToRequest ¶
func (o *EditPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EditPermissionsReader ¶
type EditPermissionsReader struct {
// contains filtered or unexported fields
}
EditPermissionsReader is a Reader for the EditPermissions structure.
func (*EditPermissionsReader) ReadResponse ¶
func (o *EditPermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GenerateNewTokenOK ¶
GenerateNewTokenOK handles this case with default header values.
No response was specified
func NewGenerateNewTokenOK ¶
func NewGenerateNewTokenOK() *GenerateNewTokenOK
NewGenerateNewTokenOK creates a GenerateNewTokenOK with default headers values
func (*GenerateNewTokenOK) Error ¶
func (o *GenerateNewTokenOK) Error() string
type GenerateNewTokenParams ¶
type GenerateNewTokenParams struct { /*JSONBody Placeholder because POST requests should have a body. Set to '{}', the content will be ignored. */ JSONBody *string /*Name Descriptive name for this token (e.g. 'cronjob') */ Name string /*Username*/ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GenerateNewTokenParams contains all the parameters to send to the API endpoint for the generate new token operation typically these are written to a http.Request
func NewGenerateNewTokenParams ¶
func NewGenerateNewTokenParams() *GenerateNewTokenParams
NewGenerateNewTokenParams creates a new GenerateNewTokenParams object with the default values initialized.
func NewGenerateNewTokenParamsWithContext ¶
func NewGenerateNewTokenParamsWithContext(ctx context.Context) *GenerateNewTokenParams
NewGenerateNewTokenParamsWithContext creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a context for a request
func NewGenerateNewTokenParamsWithHTTPClient ¶
func NewGenerateNewTokenParamsWithHTTPClient(client *http.Client) *GenerateNewTokenParams
NewGenerateNewTokenParamsWithHTTPClient creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGenerateNewTokenParamsWithTimeout ¶
func NewGenerateNewTokenParamsWithTimeout(timeout time.Duration) *GenerateNewTokenParams
NewGenerateNewTokenParamsWithTimeout creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a timeout on a request
func (*GenerateNewTokenParams) SetContext ¶
func (o *GenerateNewTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the generate new token params
func (*GenerateNewTokenParams) SetHTTPClient ¶
func (o *GenerateNewTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generate new token params
func (*GenerateNewTokenParams) SetJSONBody ¶
func (o *GenerateNewTokenParams) SetJSONBody(jSONBody *string)
SetJSONBody adds the jsonBody to the generate new token params
func (*GenerateNewTokenParams) SetName ¶
func (o *GenerateNewTokenParams) SetName(name string)
SetName adds the name to the generate new token params
func (*GenerateNewTokenParams) SetTimeout ¶
func (o *GenerateNewTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generate new token params
func (*GenerateNewTokenParams) SetUsername ¶
func (o *GenerateNewTokenParams) SetUsername(username string)
SetUsername adds the username to the generate new token params
func (*GenerateNewTokenParams) WithContext ¶
func (o *GenerateNewTokenParams) WithContext(ctx context.Context) *GenerateNewTokenParams
WithContext adds the context to the generate new token params
func (*GenerateNewTokenParams) WithHTTPClient ¶
func (o *GenerateNewTokenParams) WithHTTPClient(client *http.Client) *GenerateNewTokenParams
WithHTTPClient adds the HTTPClient to the generate new token params
func (*GenerateNewTokenParams) WithJSONBody ¶
func (o *GenerateNewTokenParams) WithJSONBody(jSONBody *string) *GenerateNewTokenParams
WithJSONBody adds the jSONBody to the generate new token params
func (*GenerateNewTokenParams) WithName ¶
func (o *GenerateNewTokenParams) WithName(name string) *GenerateNewTokenParams
WithName adds the name to the generate new token params
func (*GenerateNewTokenParams) WithTimeout ¶
func (o *GenerateNewTokenParams) WithTimeout(timeout time.Duration) *GenerateNewTokenParams
WithTimeout adds the timeout to the generate new token params
func (*GenerateNewTokenParams) WithUsername ¶
func (o *GenerateNewTokenParams) WithUsername(username string) *GenerateNewTokenParams
WithUsername adds the username to the generate new token params
func (*GenerateNewTokenParams) WriteToRequest ¶
func (o *GenerateNewTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GenerateNewTokenReader ¶
type GenerateNewTokenReader struct {
// contains filtered or unexported fields
}
GenerateNewTokenReader is a Reader for the GenerateNewToken structure.
func (*GenerateNewTokenReader) ReadResponse ¶
func (o *GenerateNewTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNotFound ¶
type GetNotFound struct { }
GetNotFound handles this case with default header values.
The user could not be found.
func NewGetNotFound ¶
func NewGetNotFound() *GetNotFound
NewGetNotFound creates a GetNotFound with default headers values
func (*GetNotFound) Error ¶
func (o *GetNotFound) Error() string
type GetOK ¶
type GetOK struct {
Payload *models.UserSummary
}
GetOK handles this case with default header values.
No response was specified
type GetParams ¶
type GetParams struct { /*Username The username to return information for. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams object with the default values initialized.
func NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) SetUsername ¶
SetUsername adds the username to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WithUsername ¶
WithUsername adds the username to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTokensOK ¶
ListTokensOK handles this case with default header values.
No response was specified
func NewListTokensOK ¶
func NewListTokensOK() *ListTokensOK
NewListTokensOK creates a ListTokensOK with default headers values
func (*ListTokensOK) Error ¶
func (o *ListTokensOK) Error() string
type ListTokensParams ¶
type ListTokensParams struct { /*Username*/ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTokensParams contains all the parameters to send to the API endpoint for the list tokens operation typically these are written to a http.Request
func NewListTokensParams ¶
func NewListTokensParams() *ListTokensParams
NewListTokensParams creates a new ListTokensParams object with the default values initialized.
func NewListTokensParamsWithContext ¶
func NewListTokensParamsWithContext(ctx context.Context) *ListTokensParams
NewListTokensParamsWithContext creates a new ListTokensParams object with the default values initialized, and the ability to set a context for a request
func NewListTokensParamsWithHTTPClient ¶
func NewListTokensParamsWithHTTPClient(client *http.Client) *ListTokensParams
NewListTokensParamsWithHTTPClient creates a new ListTokensParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListTokensParamsWithTimeout ¶
func NewListTokensParamsWithTimeout(timeout time.Duration) *ListTokensParams
NewListTokensParamsWithTimeout creates a new ListTokensParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListTokensParams) SetContext ¶
func (o *ListTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the list tokens params
func (*ListTokensParams) SetHTTPClient ¶
func (o *ListTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list tokens params
func (*ListTokensParams) SetTimeout ¶
func (o *ListTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list tokens params
func (*ListTokensParams) SetUsername ¶
func (o *ListTokensParams) SetUsername(username string)
SetUsername adds the username to the list tokens params
func (*ListTokensParams) WithContext ¶
func (o *ListTokensParams) WithContext(ctx context.Context) *ListTokensParams
WithContext adds the context to the list tokens params
func (*ListTokensParams) WithHTTPClient ¶
func (o *ListTokensParams) WithHTTPClient(client *http.Client) *ListTokensParams
WithHTTPClient adds the HTTPClient to the list tokens params
func (*ListTokensParams) WithTimeout ¶
func (o *ListTokensParams) WithTimeout(timeout time.Duration) *ListTokensParams
WithTimeout adds the timeout to the list tokens params
func (*ListTokensParams) WithUsername ¶
func (o *ListTokensParams) WithUsername(username string) *ListTokensParams
WithUsername adds the username to the list tokens params
func (*ListTokensParams) WriteToRequest ¶
func (o *ListTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTokensReader ¶
type ListTokensReader struct {
// contains filtered or unexported fields
}
ListTokensReader is a Reader for the ListTokens structure.
func (*ListTokensReader) ReadResponse ¶
func (o *ListTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUsersOK ¶
ListUsersOK handles this case with default header values.
No response was specified
func NewListUsersOK ¶
func NewListUsersOK() *ListUsersOK
NewListUsersOK creates a ListUsersOK with default headers values
func (*ListUsersOK) Error ¶
func (o *ListUsersOK) Error() string
type ListUsersParams ¶
type ListUsersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUsersParams contains all the parameters to send to the API endpoint for the list users operation typically these are written to a http.Request
func NewListUsersParams ¶
func NewListUsersParams() *ListUsersParams
NewListUsersParams creates a new ListUsersParams object with the default values initialized.
func NewListUsersParamsWithContext ¶
func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams
NewListUsersParamsWithContext creates a new ListUsersParams object with the default values initialized, and the ability to set a context for a request
func NewListUsersParamsWithHTTPClient ¶
func NewListUsersParamsWithHTTPClient(client *http.Client) *ListUsersParams
NewListUsersParamsWithHTTPClient creates a new ListUsersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListUsersParamsWithTimeout ¶
func NewListUsersParamsWithTimeout(timeout time.Duration) *ListUsersParams
NewListUsersParamsWithTimeout creates a new ListUsersParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListUsersParams) SetContext ¶
func (o *ListUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the list users params
func (*ListUsersParams) SetHTTPClient ¶
func (o *ListUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list users params
func (*ListUsersParams) SetTimeout ¶
func (o *ListUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list users params
func (*ListUsersParams) WithContext ¶
func (o *ListUsersParams) WithContext(ctx context.Context) *ListUsersParams
WithContext adds the context to the list users params
func (*ListUsersParams) WithHTTPClient ¶
func (o *ListUsersParams) WithHTTPClient(client *http.Client) *ListUsersParams
WithHTTPClient adds the HTTPClient to the list users params
func (*ListUsersParams) WithTimeout ¶
func (o *ListUsersParams) WithTimeout(timeout time.Duration) *ListUsersParams
WithTimeout adds the timeout to the list users params
func (*ListUsersParams) WriteToRequest ¶
func (o *ListUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUsersReader ¶
type ListUsersReader struct {
// contains filtered or unexported fields
}
ListUsersReader is a Reader for the ListUsers structure.
func (*ListUsersReader) ReadResponse ¶
func (o *ListUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeTokenOK ¶
type RevokeTokenOK struct { }
RevokeTokenOK handles this case with default header values.
No response was specified
func NewRevokeTokenOK ¶
func NewRevokeTokenOK() *RevokeTokenOK
NewRevokeTokenOK creates a RevokeTokenOK with default headers values
func (*RevokeTokenOK) Error ¶
func (o *RevokeTokenOK) Error() string
type RevokeTokenParams ¶
type RevokeTokenParams struct { /*Token*/ Token string /*Username*/ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeTokenParams contains all the parameters to send to the API endpoint for the revoke token operation typically these are written to a http.Request
func NewRevokeTokenParams ¶
func NewRevokeTokenParams() *RevokeTokenParams
NewRevokeTokenParams creates a new RevokeTokenParams object with the default values initialized.
func NewRevokeTokenParamsWithContext ¶
func NewRevokeTokenParamsWithContext(ctx context.Context) *RevokeTokenParams
NewRevokeTokenParamsWithContext creates a new RevokeTokenParams object with the default values initialized, and the ability to set a context for a request
func NewRevokeTokenParamsWithHTTPClient ¶
func NewRevokeTokenParamsWithHTTPClient(client *http.Client) *RevokeTokenParams
NewRevokeTokenParamsWithHTTPClient creates a new RevokeTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRevokeTokenParamsWithTimeout ¶
func NewRevokeTokenParamsWithTimeout(timeout time.Duration) *RevokeTokenParams
NewRevokeTokenParamsWithTimeout creates a new RevokeTokenParams object with the default values initialized, and the ability to set a timeout on a request
func (*RevokeTokenParams) SetContext ¶
func (o *RevokeTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke token params
func (*RevokeTokenParams) SetHTTPClient ¶
func (o *RevokeTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke token params
func (*RevokeTokenParams) SetTimeout ¶
func (o *RevokeTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke token params
func (*RevokeTokenParams) SetToken ¶
func (o *RevokeTokenParams) SetToken(token string)
SetToken adds the token to the revoke token params
func (*RevokeTokenParams) SetUsername ¶
func (o *RevokeTokenParams) SetUsername(username string)
SetUsername adds the username to the revoke token params
func (*RevokeTokenParams) WithContext ¶
func (o *RevokeTokenParams) WithContext(ctx context.Context) *RevokeTokenParams
WithContext adds the context to the revoke token params
func (*RevokeTokenParams) WithHTTPClient ¶
func (o *RevokeTokenParams) WithHTTPClient(client *http.Client) *RevokeTokenParams
WithHTTPClient adds the HTTPClient to the revoke token params
func (*RevokeTokenParams) WithTimeout ¶
func (o *RevokeTokenParams) WithTimeout(timeout time.Duration) *RevokeTokenParams
WithTimeout adds the timeout to the revoke token params
func (*RevokeTokenParams) WithToken ¶
func (o *RevokeTokenParams) WithToken(token string) *RevokeTokenParams
WithToken adds the token to the revoke token params
func (*RevokeTokenParams) WithUsername ¶
func (o *RevokeTokenParams) WithUsername(username string) *RevokeTokenParams
WithUsername adds the username to the revoke token params
func (*RevokeTokenParams) WriteToRequest ¶
func (o *RevokeTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeTokenReader ¶
type RevokeTokenReader struct {
// contains filtered or unexported fields
}
RevokeTokenReader is a Reader for the RevokeToken structure.
func (*RevokeTokenReader) ReadResponse ¶
func (o *RevokeTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SavePreferencesBadRequest ¶
type SavePreferencesBadRequest struct { }
SavePreferencesBadRequest handles this case with default header values.
Missing or invalid permission data.
func NewSavePreferencesBadRequest ¶
func NewSavePreferencesBadRequest() *SavePreferencesBadRequest
NewSavePreferencesBadRequest creates a SavePreferencesBadRequest with default headers values
func (*SavePreferencesBadRequest) Error ¶
func (o *SavePreferencesBadRequest) Error() string
type SavePreferencesOK ¶
type SavePreferencesOK struct { }
SavePreferencesOK handles this case with default header values.
No response was specified
func NewSavePreferencesOK ¶
func NewSavePreferencesOK() *SavePreferencesOK
NewSavePreferencesOK creates a SavePreferencesOK with default headers values
func (*SavePreferencesOK) Error ¶
func (o *SavePreferencesOK) Error() string
type SavePreferencesParams ¶
type SavePreferencesParams struct { /*JSONBody The map of preferences to assign to the user. */ JSONBody *models.UpdateUserPreferences /*Username The name of the user to modify. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SavePreferencesParams contains all the parameters to send to the API endpoint for the save preferences operation typically these are written to a http.Request
func NewSavePreferencesParams ¶
func NewSavePreferencesParams() *SavePreferencesParams
NewSavePreferencesParams creates a new SavePreferencesParams object with the default values initialized.
func NewSavePreferencesParamsWithContext ¶
func NewSavePreferencesParamsWithContext(ctx context.Context) *SavePreferencesParams
NewSavePreferencesParamsWithContext creates a new SavePreferencesParams object with the default values initialized, and the ability to set a context for a request
func NewSavePreferencesParamsWithHTTPClient ¶
func NewSavePreferencesParamsWithHTTPClient(client *http.Client) *SavePreferencesParams
NewSavePreferencesParamsWithHTTPClient creates a new SavePreferencesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSavePreferencesParamsWithTimeout ¶
func NewSavePreferencesParamsWithTimeout(timeout time.Duration) *SavePreferencesParams
NewSavePreferencesParamsWithTimeout creates a new SavePreferencesParams object with the default values initialized, and the ability to set a timeout on a request
func (*SavePreferencesParams) SetContext ¶
func (o *SavePreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the save preferences params
func (*SavePreferencesParams) SetHTTPClient ¶
func (o *SavePreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the save preferences params
func (*SavePreferencesParams) SetJSONBody ¶
func (o *SavePreferencesParams) SetJSONBody(jSONBody *models.UpdateUserPreferences)
SetJSONBody adds the jsonBody to the save preferences params
func (*SavePreferencesParams) SetTimeout ¶
func (o *SavePreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the save preferences params
func (*SavePreferencesParams) SetUsername ¶
func (o *SavePreferencesParams) SetUsername(username string)
SetUsername adds the username to the save preferences params
func (*SavePreferencesParams) WithContext ¶
func (o *SavePreferencesParams) WithContext(ctx context.Context) *SavePreferencesParams
WithContext adds the context to the save preferences params
func (*SavePreferencesParams) WithHTTPClient ¶
func (o *SavePreferencesParams) WithHTTPClient(client *http.Client) *SavePreferencesParams
WithHTTPClient adds the HTTPClient to the save preferences params
func (*SavePreferencesParams) WithJSONBody ¶
func (o *SavePreferencesParams) WithJSONBody(jSONBody *models.UpdateUserPreferences) *SavePreferencesParams
WithJSONBody adds the jSONBody to the save preferences params
func (*SavePreferencesParams) WithTimeout ¶
func (o *SavePreferencesParams) WithTimeout(timeout time.Duration) *SavePreferencesParams
WithTimeout adds the timeout to the save preferences params
func (*SavePreferencesParams) WithUsername ¶
func (o *SavePreferencesParams) WithUsername(username string) *SavePreferencesParams
WithUsername adds the username to the save preferences params
func (*SavePreferencesParams) WriteToRequest ¶
func (o *SavePreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SavePreferencesReader ¶
type SavePreferencesReader struct {
// contains filtered or unexported fields
}
SavePreferencesReader is a Reader for the SavePreferences structure.
func (*SavePreferencesReader) ReadResponse ¶
func (o *SavePreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- change_password_parameters.go
- change_password_responses.go
- change_user_parameters.go
- change_user_responses.go
- create_parameters.go
- create_responses.go
- delete_permissions_parameters.go
- delete_permissions_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- edit_permissions_parameters.go
- edit_permissions_responses.go
- generate_new_token_parameters.go
- generate_new_token_responses.go
- get_parameters.go
- get_responses.go
- list_tokens_parameters.go
- list_tokens_responses.go
- list_users_parameters.go
- list_users_responses.go
- operations_client.go
- revoke_token_parameters.go
- revoke_token_responses.go
- save_preferences_parameters.go
- save_preferences_responses.go