Documentation
¶
Index ¶
- type ChangePasswordDefault
- func (o *ChangePasswordDefault) Code() int
- func (o *ChangePasswordDefault) Error() string
- func (o *ChangePasswordDefault) GetPayload() *models.Error
- func (o *ChangePasswordDefault) IsClientError() bool
- func (o *ChangePasswordDefault) IsCode(code int) bool
- func (o *ChangePasswordDefault) IsRedirect() bool
- func (o *ChangePasswordDefault) IsServerError() bool
- func (o *ChangePasswordDefault) IsSuccess() bool
- func (o *ChangePasswordDefault) String() string
- type ChangePasswordOK
- func (o *ChangePasswordOK) Code() int
- func (o *ChangePasswordOK) Error() string
- func (o *ChangePasswordOK) IsClientError() bool
- func (o *ChangePasswordOK) IsCode(code int) bool
- func (o *ChangePasswordOK) IsRedirect() bool
- func (o *ChangePasswordOK) IsServerError() bool
- func (o *ChangePasswordOK) IsSuccess() bool
- func (o *ChangePasswordOK) String() string
- 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) SetDefaults()
- func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)
- func (o *ChangePasswordParams) SetPassword(password *models.Password)
- func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)
- func (o *ChangePasswordParams) SetUser(user string)
- func (o *ChangePasswordParams) WithContext(ctx context.Context) *ChangePasswordParams
- func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams
- func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams
- func (o *ChangePasswordParams) WithPassword(password *models.Password) *ChangePasswordParams
- func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams
- func (o *ChangePasswordParams) WithUser(user string) *ChangePasswordParams
- func (o *ChangePasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangePasswordReader
- type Client
- func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ChangePasswordOK, error)
- func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateUserCreated, error)
- func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserOK, error)
- func (a *Client) IsEnabled(params *IsEnabledParams, authInfo runtime.ClientAuthInfoWriter, ...) (*IsEnabledOK, error)
- func (a *Client) IsSuperuser(params *IsSuperuserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*IsSuperuserOK, error)
- func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUsersOK, error)
- func (a *Client) RemoveUser(params *RemoveUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveUserNoContent, error)
- func (a *Client) SetEnabled(params *SetEnabledParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetEnabledOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) ValidateUser(params *ValidateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ValidateUserOK, error)
- type ClientOption
- type ClientService
- type CreateUserCreated
- func (o *CreateUserCreated) Code() int
- func (o *CreateUserCreated) Error() string
- func (o *CreateUserCreated) IsClientError() bool
- func (o *CreateUserCreated) IsCode(code int) bool
- func (o *CreateUserCreated) IsRedirect() bool
- func (o *CreateUserCreated) IsServerError() bool
- func (o *CreateUserCreated) IsSuccess() bool
- func (o *CreateUserCreated) String() string
- type CreateUserDefault
- func (o *CreateUserDefault) Code() int
- func (o *CreateUserDefault) Error() string
- func (o *CreateUserDefault) GetPayload() *models.Error
- func (o *CreateUserDefault) IsClientError() bool
- func (o *CreateUserDefault) IsCode(code int) bool
- func (o *CreateUserDefault) IsRedirect() bool
- func (o *CreateUserDefault) IsServerError() bool
- func (o *CreateUserDefault) IsSuccess() bool
- func (o *CreateUserDefault) String() string
- type CreateUserParams
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetDefaults()
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) SetUser(user *models.User)
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithDefaults() *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WithUser(user *models.User) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type GetUserDefault
- func (o *GetUserDefault) Code() int
- func (o *GetUserDefault) Error() string
- func (o *GetUserDefault) GetPayload() *models.Error
- func (o *GetUserDefault) IsClientError() bool
- func (o *GetUserDefault) IsCode(code int) bool
- func (o *GetUserDefault) IsRedirect() bool
- func (o *GetUserDefault) IsServerError() bool
- func (o *GetUserDefault) IsSuccess() bool
- func (o *GetUserDefault) String() string
- type GetUserNotFound
- func (o *GetUserNotFound) Code() int
- func (o *GetUserNotFound) Error() string
- func (o *GetUserNotFound) GetPayload() *models.NotExists
- func (o *GetUserNotFound) IsClientError() bool
- func (o *GetUserNotFound) IsCode(code int) bool
- func (o *GetUserNotFound) IsRedirect() bool
- func (o *GetUserNotFound) IsServerError() bool
- func (o *GetUserNotFound) IsSuccess() bool
- func (o *GetUserNotFound) String() string
- type GetUserOK
- func (o *GetUserOK) Code() int
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.Users
- func (o *GetUserOK) IsClientError() bool
- func (o *GetUserOK) IsCode(code int) bool
- func (o *GetUserOK) IsRedirect() bool
- func (o *GetUserOK) IsServerError() bool
- func (o *GetUserOK) IsSuccess() bool
- func (o *GetUserOK) String() string
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetDefaults()
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) SetUser(user string)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithDefaults() *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WithUser(user string) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type IsEnabledDefault
- func (o *IsEnabledDefault) Code() int
- func (o *IsEnabledDefault) Error() string
- func (o *IsEnabledDefault) GetPayload() *models.Error
- func (o *IsEnabledDefault) IsClientError() bool
- func (o *IsEnabledDefault) IsCode(code int) bool
- func (o *IsEnabledDefault) IsRedirect() bool
- func (o *IsEnabledDefault) IsServerError() bool
- func (o *IsEnabledDefault) IsSuccess() bool
- func (o *IsEnabledDefault) String() string
- type IsEnabledOK
- func (o *IsEnabledOK) Code() int
- func (o *IsEnabledOK) Error() string
- func (o *IsEnabledOK) GetPayload() *models.Enabled
- func (o *IsEnabledOK) IsClientError() bool
- func (o *IsEnabledOK) IsCode(code int) bool
- func (o *IsEnabledOK) IsRedirect() bool
- func (o *IsEnabledOK) IsServerError() bool
- func (o *IsEnabledOK) IsSuccess() bool
- func (o *IsEnabledOK) String() string
- type IsEnabledParams
- func (o *IsEnabledParams) SetContext(ctx context.Context)
- func (o *IsEnabledParams) SetDefaults()
- func (o *IsEnabledParams) SetHTTPClient(client *http.Client)
- func (o *IsEnabledParams) SetTimeout(timeout time.Duration)
- func (o *IsEnabledParams) SetUser(user string)
- func (o *IsEnabledParams) WithContext(ctx context.Context) *IsEnabledParams
- func (o *IsEnabledParams) WithDefaults() *IsEnabledParams
- func (o *IsEnabledParams) WithHTTPClient(client *http.Client) *IsEnabledParams
- func (o *IsEnabledParams) WithTimeout(timeout time.Duration) *IsEnabledParams
- func (o *IsEnabledParams) WithUser(user string) *IsEnabledParams
- func (o *IsEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IsEnabledReader
- type IsSuperuserDefault
- func (o *IsSuperuserDefault) Code() int
- func (o *IsSuperuserDefault) Error() string
- func (o *IsSuperuserDefault) GetPayload() *models.Error
- func (o *IsSuperuserDefault) IsClientError() bool
- func (o *IsSuperuserDefault) IsCode(code int) bool
- func (o *IsSuperuserDefault) IsRedirect() bool
- func (o *IsSuperuserDefault) IsServerError() bool
- func (o *IsSuperuserDefault) IsSuccess() bool
- func (o *IsSuperuserDefault) String() string
- type IsSuperuserOK
- func (o *IsSuperuserOK) Code() int
- func (o *IsSuperuserOK) Error() string
- func (o *IsSuperuserOK) GetPayload() *models.Superuser
- func (o *IsSuperuserOK) IsClientError() bool
- func (o *IsSuperuserOK) IsCode(code int) bool
- func (o *IsSuperuserOK) IsRedirect() bool
- func (o *IsSuperuserOK) IsServerError() bool
- func (o *IsSuperuserOK) IsSuccess() bool
- func (o *IsSuperuserOK) String() string
- type IsSuperuserParams
- func (o *IsSuperuserParams) SetContext(ctx context.Context)
- func (o *IsSuperuserParams) SetDefaults()
- func (o *IsSuperuserParams) SetHTTPClient(client *http.Client)
- func (o *IsSuperuserParams) SetTimeout(timeout time.Duration)
- func (o *IsSuperuserParams) SetUser(user string)
- func (o *IsSuperuserParams) WithContext(ctx context.Context) *IsSuperuserParams
- func (o *IsSuperuserParams) WithDefaults() *IsSuperuserParams
- func (o *IsSuperuserParams) WithHTTPClient(client *http.Client) *IsSuperuserParams
- func (o *IsSuperuserParams) WithTimeout(timeout time.Duration) *IsSuperuserParams
- func (o *IsSuperuserParams) WithUser(user string) *IsSuperuserParams
- func (o *IsSuperuserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IsSuperuserReader
- type ListUsersDefault
- func (o *ListUsersDefault) Code() int
- func (o *ListUsersDefault) Error() string
- func (o *ListUsersDefault) GetPayload() *models.Error
- func (o *ListUsersDefault) IsClientError() bool
- func (o *ListUsersDefault) IsCode(code int) bool
- func (o *ListUsersDefault) IsRedirect() bool
- func (o *ListUsersDefault) IsServerError() bool
- func (o *ListUsersDefault) IsSuccess() bool
- func (o *ListUsersDefault) String() string
- type ListUsersOK
- func (o *ListUsersOK) Code() int
- func (o *ListUsersOK) Error() string
- func (o *ListUsersOK) GetPayload() *models.Users
- func (o *ListUsersOK) IsClientError() bool
- func (o *ListUsersOK) IsCode(code int) bool
- func (o *ListUsersOK) IsRedirect() bool
- func (o *ListUsersOK) IsServerError() bool
- func (o *ListUsersOK) IsSuccess() bool
- func (o *ListUsersOK) String() string
- type ListUsersParams
- func (o *ListUsersParams) SetContext(ctx context.Context)
- func (o *ListUsersParams) SetDefaults()
- 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) WithDefaults() *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 RemoveUserDefault
- func (o *RemoveUserDefault) Code() int
- func (o *RemoveUserDefault) Error() string
- func (o *RemoveUserDefault) GetPayload() *models.Error
- func (o *RemoveUserDefault) IsClientError() bool
- func (o *RemoveUserDefault) IsCode(code int) bool
- func (o *RemoveUserDefault) IsRedirect() bool
- func (o *RemoveUserDefault) IsServerError() bool
- func (o *RemoveUserDefault) IsSuccess() bool
- func (o *RemoveUserDefault) String() string
- type RemoveUserNoContent
- func (o *RemoveUserNoContent) Code() int
- func (o *RemoveUserNoContent) Error() string
- func (o *RemoveUserNoContent) IsClientError() bool
- func (o *RemoveUserNoContent) IsCode(code int) bool
- func (o *RemoveUserNoContent) IsRedirect() bool
- func (o *RemoveUserNoContent) IsServerError() bool
- func (o *RemoveUserNoContent) IsSuccess() bool
- func (o *RemoveUserNoContent) String() string
- type RemoveUserNotFound
- func (o *RemoveUserNotFound) Code() int
- func (o *RemoveUserNotFound) Error() string
- func (o *RemoveUserNotFound) GetPayload() *models.NotExists
- func (o *RemoveUserNotFound) IsClientError() bool
- func (o *RemoveUserNotFound) IsCode(code int) bool
- func (o *RemoveUserNotFound) IsRedirect() bool
- func (o *RemoveUserNotFound) IsServerError() bool
- func (o *RemoveUserNotFound) IsSuccess() bool
- func (o *RemoveUserNotFound) String() string
- type RemoveUserParams
- func (o *RemoveUserParams) SetContext(ctx context.Context)
- func (o *RemoveUserParams) SetDefaults()
- func (o *RemoveUserParams) SetHTTPClient(client *http.Client)
- func (o *RemoveUserParams) SetTimeout(timeout time.Duration)
- func (o *RemoveUserParams) SetUser(user string)
- func (o *RemoveUserParams) WithContext(ctx context.Context) *RemoveUserParams
- func (o *RemoveUserParams) WithDefaults() *RemoveUserParams
- func (o *RemoveUserParams) WithHTTPClient(client *http.Client) *RemoveUserParams
- func (o *RemoveUserParams) WithTimeout(timeout time.Duration) *RemoveUserParams
- func (o *RemoveUserParams) WithUser(user string) *RemoveUserParams
- func (o *RemoveUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveUserReader
- type SetEnabledDefault
- func (o *SetEnabledDefault) Code() int
- func (o *SetEnabledDefault) Error() string
- func (o *SetEnabledDefault) GetPayload() *models.Error
- func (o *SetEnabledDefault) IsClientError() bool
- func (o *SetEnabledDefault) IsCode(code int) bool
- func (o *SetEnabledDefault) IsRedirect() bool
- func (o *SetEnabledDefault) IsServerError() bool
- func (o *SetEnabledDefault) IsSuccess() bool
- func (o *SetEnabledDefault) String() string
- type SetEnabledOK
- func (o *SetEnabledOK) Code() int
- func (o *SetEnabledOK) Error() string
- func (o *SetEnabledOK) IsClientError() bool
- func (o *SetEnabledOK) IsCode(code int) bool
- func (o *SetEnabledOK) IsRedirect() bool
- func (o *SetEnabledOK) IsServerError() bool
- func (o *SetEnabledOK) IsSuccess() bool
- func (o *SetEnabledOK) String() string
- type SetEnabledParams
- func (o *SetEnabledParams) SetContext(ctx context.Context)
- func (o *SetEnabledParams) SetDefaults()
- func (o *SetEnabledParams) SetEnable(enable *models.Enabled)
- func (o *SetEnabledParams) SetHTTPClient(client *http.Client)
- func (o *SetEnabledParams) SetTimeout(timeout time.Duration)
- func (o *SetEnabledParams) SetUser(user string)
- func (o *SetEnabledParams) WithContext(ctx context.Context) *SetEnabledParams
- func (o *SetEnabledParams) WithDefaults() *SetEnabledParams
- func (o *SetEnabledParams) WithEnable(enable *models.Enabled) *SetEnabledParams
- func (o *SetEnabledParams) WithHTTPClient(client *http.Client) *SetEnabledParams
- func (o *SetEnabledParams) WithTimeout(timeout time.Duration) *SetEnabledParams
- func (o *SetEnabledParams) WithUser(user string) *SetEnabledParams
- func (o *SetEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetEnabledReader
- type ValidateUserDefault
- func (o *ValidateUserDefault) Code() int
- func (o *ValidateUserDefault) Error() string
- func (o *ValidateUserDefault) GetPayload() *models.Error
- func (o *ValidateUserDefault) IsClientError() bool
- func (o *ValidateUserDefault) IsCode(code int) bool
- func (o *ValidateUserDefault) IsRedirect() bool
- func (o *ValidateUserDefault) IsServerError() bool
- func (o *ValidateUserDefault) IsSuccess() bool
- func (o *ValidateUserDefault) String() string
- type ValidateUserOK
- func (o *ValidateUserOK) Code() int
- func (o *ValidateUserOK) Error() string
- func (o *ValidateUserOK) IsClientError() bool
- func (o *ValidateUserOK) IsCode(code int) bool
- func (o *ValidateUserOK) IsRedirect() bool
- func (o *ValidateUserOK) IsServerError() bool
- func (o *ValidateUserOK) IsSuccess() bool
- func (o *ValidateUserOK) String() string
- type ValidateUserParams
- func (o *ValidateUserParams) SetContext(ctx context.Context)
- func (o *ValidateUserParams) SetDefaults()
- func (o *ValidateUserParams) SetHTTPClient(client *http.Client)
- func (o *ValidateUserParams) SetTimeout(timeout time.Duration)
- func (o *ValidateUserParams) WithContext(ctx context.Context) *ValidateUserParams
- func (o *ValidateUserParams) WithDefaults() *ValidateUserParams
- func (o *ValidateUserParams) WithHTTPClient(client *http.Client) *ValidateUserParams
- func (o *ValidateUserParams) WithTimeout(timeout time.Duration) *ValidateUserParams
- func (o *ValidateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidateUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordDefault ¶
type ChangePasswordDefault struct { Payload *models.Error // contains filtered or unexported fields }
ChangePasswordDefault describes a response with status code -1, with default header values.
unexpected error
func NewChangePasswordDefault ¶
func NewChangePasswordDefault(code int) *ChangePasswordDefault
NewChangePasswordDefault creates a ChangePasswordDefault with default headers values
func (*ChangePasswordDefault) Code ¶
func (o *ChangePasswordDefault) Code() int
Code gets the status code for the change password default response
func (*ChangePasswordDefault) Error ¶
func (o *ChangePasswordDefault) Error() string
func (*ChangePasswordDefault) GetPayload ¶
func (o *ChangePasswordDefault) GetPayload() *models.Error
func (*ChangePasswordDefault) IsClientError ¶
func (o *ChangePasswordDefault) IsClientError() bool
IsClientError returns true when this change password default response has a 4xx status code
func (*ChangePasswordDefault) IsCode ¶
func (o *ChangePasswordDefault) IsCode(code int) bool
IsCode returns true when this change password default response a status code equal to that given
func (*ChangePasswordDefault) IsRedirect ¶
func (o *ChangePasswordDefault) IsRedirect() bool
IsRedirect returns true when this change password default response has a 3xx status code
func (*ChangePasswordDefault) IsServerError ¶
func (o *ChangePasswordDefault) IsServerError() bool
IsServerError returns true when this change password default response has a 5xx status code
func (*ChangePasswordDefault) IsSuccess ¶
func (o *ChangePasswordDefault) IsSuccess() bool
IsSuccess returns true when this change password default response has a 2xx status code
func (*ChangePasswordDefault) String ¶
func (o *ChangePasswordDefault) String() string
type ChangePasswordOK ¶
type ChangePasswordOK struct { }
ChangePasswordOK describes a response with status code 200, with default header values.
Null response
func NewChangePasswordOK ¶
func NewChangePasswordOK() *ChangePasswordOK
NewChangePasswordOK creates a ChangePasswordOK with default headers values
func (*ChangePasswordOK) Code ¶
func (o *ChangePasswordOK) Code() int
Code gets the status code for the change password o k response
func (*ChangePasswordOK) Error ¶
func (o *ChangePasswordOK) Error() string
func (*ChangePasswordOK) IsClientError ¶
func (o *ChangePasswordOK) IsClientError() bool
IsClientError returns true when this change password o k response has a 4xx status code
func (*ChangePasswordOK) IsCode ¶
func (o *ChangePasswordOK) IsCode(code int) bool
IsCode returns true when this change password o k response a status code equal to that given
func (*ChangePasswordOK) IsRedirect ¶
func (o *ChangePasswordOK) IsRedirect() bool
IsRedirect returns true when this change password o k response has a 3xx status code
func (*ChangePasswordOK) IsServerError ¶
func (o *ChangePasswordOK) IsServerError() bool
IsServerError returns true when this change password o k response has a 5xx status code
func (*ChangePasswordOK) IsSuccess ¶
func (o *ChangePasswordOK) IsSuccess() bool
IsSuccess returns true when this change password o k response has a 2xx status code
func (*ChangePasswordOK) String ¶
func (o *ChangePasswordOK) String() string
type ChangePasswordParams ¶
type ChangePasswordParams struct { /* Password. The new password */ Password *models.Password /* User. The username of the user whose password should be changed */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ChangePasswordParams contains all the parameters to send to the API endpoint
for the change password operation. Typically these are written to a http.Request.
func NewChangePasswordParams ¶
func NewChangePasswordParams() *ChangePasswordParams
NewChangePasswordParams creates a new ChangePasswordParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewChangePasswordParamsWithContext ¶
func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams
NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the ability to set a context for a request.
func NewChangePasswordParamsWithHTTPClient ¶
func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams
NewChangePasswordParamsWithHTTPClient creates a new ChangePasswordParams object with the ability to set a custom HTTPClient for a request.
func NewChangePasswordParamsWithTimeout ¶
func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams
NewChangePasswordParamsWithTimeout creates a new ChangePasswordParams object with the ability to set a timeout on a request.
func (*ChangePasswordParams) SetContext ¶
func (o *ChangePasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the change password params
func (*ChangePasswordParams) SetDefaults ¶
func (o *ChangePasswordParams) SetDefaults()
SetDefaults hydrates default values in the change password params (not the query body).
All values with no default are reset to their zero value.
func (*ChangePasswordParams) SetHTTPClient ¶
func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change password params
func (*ChangePasswordParams) SetPassword ¶
func (o *ChangePasswordParams) SetPassword(password *models.Password)
SetPassword adds the password 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) SetUser ¶
func (o *ChangePasswordParams) SetUser(user string)
SetUser adds the user to the change password params
func (*ChangePasswordParams) WithContext ¶
func (o *ChangePasswordParams) WithContext(ctx context.Context) *ChangePasswordParams
WithContext adds the context to the change password params
func (*ChangePasswordParams) WithDefaults ¶
func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams
WithDefaults hydrates default values in the change password params (not the query body).
All values with no default are reset to their zero value.
func (*ChangePasswordParams) WithHTTPClient ¶
func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams
WithHTTPClient adds the HTTPClient to the change password params
func (*ChangePasswordParams) WithPassword ¶
func (o *ChangePasswordParams) WithPassword(password *models.Password) *ChangePasswordParams
WithPassword adds the password 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) WithUser ¶
func (o *ChangePasswordParams) WithUser(user string) *ChangePasswordParams
WithUser adds the user 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) ChangePassword ¶
func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error)
ChangePassword changes the users password
func (*Client) CreateUser ¶
func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserCreated, error)
CreateUser creates a new user
func (*Client) GetUser ¶ added in v0.3.0
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)
GetUser gets a user
func (*Client) IsEnabled ¶
func (a *Client) IsEnabled(params *IsEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsEnabledOK, error)
IsEnabled gets the user s enabled status
func (*Client) IsSuperuser ¶
func (a *Client) IsSuperuser(params *IsSuperuserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsSuperuserOK, error)
IsSuperuser gets the user s superuser status
func (*Client) ListUsers ¶
func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error)
ListUsers lists all users
func (*Client) RemoveUser ¶
func (a *Client) RemoveUser(params *RemoveUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserNoContent, error)
RemoveUser removes a user
func (*Client) SetEnabled ¶
func (a *Client) SetEnabled(params *SetEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetEnabledOK, error)
SetEnabled enables disable a user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) ValidateUser ¶
func (a *Client) ValidateUser(params *ValidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateUserOK, error)
ValidateUser validates the user credentials
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserCreated, error) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) IsEnabled(params *IsEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsEnabledOK, error) IsSuperuser(params *IsSuperuserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsSuperuserOK, error) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error) RemoveUser(params *RemoveUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserNoContent, error) SetEnabled(params *SetEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetEnabledOK, error) ValidateUser(params *ValidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateUserOK, 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 CreateUserCreated ¶
type CreateUserCreated struct { }
CreateUserCreated describes a response with status code 201, with default header values.
Null response
func NewCreateUserCreated ¶
func NewCreateUserCreated() *CreateUserCreated
NewCreateUserCreated creates a CreateUserCreated with default headers values
func (*CreateUserCreated) Code ¶
func (o *CreateUserCreated) Code() int
Code gets the status code for the create user created response
func (*CreateUserCreated) Error ¶
func (o *CreateUserCreated) Error() string
func (*CreateUserCreated) IsClientError ¶
func (o *CreateUserCreated) IsClientError() bool
IsClientError returns true when this create user created response has a 4xx status code
func (*CreateUserCreated) IsCode ¶
func (o *CreateUserCreated) IsCode(code int) bool
IsCode returns true when this create user created response a status code equal to that given
func (*CreateUserCreated) IsRedirect ¶
func (o *CreateUserCreated) IsRedirect() bool
IsRedirect returns true when this create user created response has a 3xx status code
func (*CreateUserCreated) IsServerError ¶
func (o *CreateUserCreated) IsServerError() bool
IsServerError returns true when this create user created response has a 5xx status code
func (*CreateUserCreated) IsSuccess ¶
func (o *CreateUserCreated) IsSuccess() bool
IsSuccess returns true when this create user created response has a 2xx status code
func (*CreateUserCreated) String ¶
func (o *CreateUserCreated) String() string
type CreateUserDefault ¶
CreateUserDefault describes a response with status code -1, with default header values.
unexpected error
func NewCreateUserDefault ¶
func NewCreateUserDefault(code int) *CreateUserDefault
NewCreateUserDefault creates a CreateUserDefault with default headers values
func (*CreateUserDefault) Code ¶
func (o *CreateUserDefault) Code() int
Code gets the status code for the create user default response
func (*CreateUserDefault) Error ¶
func (o *CreateUserDefault) Error() string
func (*CreateUserDefault) GetPayload ¶
func (o *CreateUserDefault) GetPayload() *models.Error
func (*CreateUserDefault) IsClientError ¶
func (o *CreateUserDefault) IsClientError() bool
IsClientError returns true when this create user default response has a 4xx status code
func (*CreateUserDefault) IsCode ¶
func (o *CreateUserDefault) IsCode(code int) bool
IsCode returns true when this create user default response a status code equal to that given
func (*CreateUserDefault) IsRedirect ¶
func (o *CreateUserDefault) IsRedirect() bool
IsRedirect returns true when this create user default response has a 3xx status code
func (*CreateUserDefault) IsServerError ¶
func (o *CreateUserDefault) IsServerError() bool
IsServerError returns true when this create user default response has a 5xx status code
func (*CreateUserDefault) IsSuccess ¶
func (o *CreateUserDefault) IsSuccess() bool
IsSuccess returns true when this create user default response has a 2xx status code
func (*CreateUserDefault) String ¶
func (o *CreateUserDefault) String() string
type CreateUserParams ¶
type CreateUserParams struct { /* User. The user to create. */ User *models.User Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUserParams contains all the parameters to send to the API endpoint
for the create user operation. Typically these are written to a http.Request.
func NewCreateUserParams ¶
func NewCreateUserParams() *CreateUserParams
NewCreateUserParams creates a new CreateUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateUserParamsWithContext ¶
func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams
NewCreateUserParamsWithContext creates a new CreateUserParams object with the ability to set a context for a request.
func NewCreateUserParamsWithHTTPClient ¶
func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams
NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUserParamsWithTimeout ¶
func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams
NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the ability to set a timeout on a request.
func (*CreateUserParams) SetContext ¶
func (o *CreateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the create user params
func (*CreateUserParams) SetDefaults ¶
func (o *CreateUserParams) SetDefaults()
SetDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) SetHTTPClient ¶
func (o *CreateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) SetTimeout ¶
func (o *CreateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create user params
func (*CreateUserParams) SetUser ¶
func (o *CreateUserParams) SetUser(user *models.User)
SetUser adds the user to the create user params
func (*CreateUserParams) WithContext ¶
func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
WithContext adds the context to the create user params
func (*CreateUserParams) WithDefaults ¶
func (o *CreateUserParams) WithDefaults() *CreateUserParams
WithDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) WithHTTPClient ¶
func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
WithHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) WithTimeout ¶
func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
WithTimeout adds the timeout to the create user params
func (*CreateUserParams) WithUser ¶
func (o *CreateUserParams) WithUser(user *models.User) *CreateUserParams
WithUser adds the user to the create user params
func (*CreateUserParams) WriteToRequest ¶
func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUserReader ¶
type CreateUserReader struct {
// contains filtered or unexported fields
}
CreateUserReader is a Reader for the CreateUser structure.
func (*CreateUserReader) ReadResponse ¶
func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserDefault ¶ added in v0.3.0
GetUserDefault describes a response with status code -1, with default header values.
unexpected error
func NewGetUserDefault ¶ added in v0.3.0
func NewGetUserDefault(code int) *GetUserDefault
NewGetUserDefault creates a GetUserDefault with default headers values
func (*GetUserDefault) Code ¶ added in v0.3.0
func (o *GetUserDefault) Code() int
Code gets the status code for the get user default response
func (*GetUserDefault) Error ¶ added in v0.3.0
func (o *GetUserDefault) Error() string
func (*GetUserDefault) GetPayload ¶ added in v0.3.0
func (o *GetUserDefault) GetPayload() *models.Error
func (*GetUserDefault) IsClientError ¶ added in v0.3.0
func (o *GetUserDefault) IsClientError() bool
IsClientError returns true when this get user default response has a 4xx status code
func (*GetUserDefault) IsCode ¶ added in v0.3.0
func (o *GetUserDefault) IsCode(code int) bool
IsCode returns true when this get user default response a status code equal to that given
func (*GetUserDefault) IsRedirect ¶ added in v0.3.0
func (o *GetUserDefault) IsRedirect() bool
IsRedirect returns true when this get user default response has a 3xx status code
func (*GetUserDefault) IsServerError ¶ added in v0.3.0
func (o *GetUserDefault) IsServerError() bool
IsServerError returns true when this get user default response has a 5xx status code
func (*GetUserDefault) IsSuccess ¶ added in v0.3.0
func (o *GetUserDefault) IsSuccess() bool
IsSuccess returns true when this get user default response has a 2xx status code
func (*GetUserDefault) String ¶ added in v0.3.0
func (o *GetUserDefault) String() string
type GetUserNotFound ¶ added in v0.3.0
GetUserNotFound describes a response with status code 404, with default header values.
User does not exist
func NewGetUserNotFound ¶ added in v0.3.0
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates a GetUserNotFound with default headers values
func (*GetUserNotFound) Code ¶ added in v0.3.0
func (o *GetUserNotFound) Code() int
Code gets the status code for the get user not found response
func (*GetUserNotFound) Error ¶ added in v0.3.0
func (o *GetUserNotFound) Error() string
func (*GetUserNotFound) GetPayload ¶ added in v0.3.0
func (o *GetUserNotFound) GetPayload() *models.NotExists
func (*GetUserNotFound) IsClientError ¶ added in v0.3.0
func (o *GetUserNotFound) IsClientError() bool
IsClientError returns true when this get user not found response has a 4xx status code
func (*GetUserNotFound) IsCode ¶ added in v0.3.0
func (o *GetUserNotFound) IsCode(code int) bool
IsCode returns true when this get user not found response a status code equal to that given
func (*GetUserNotFound) IsRedirect ¶ added in v0.3.0
func (o *GetUserNotFound) IsRedirect() bool
IsRedirect returns true when this get user not found response has a 3xx status code
func (*GetUserNotFound) IsServerError ¶ added in v0.3.0
func (o *GetUserNotFound) IsServerError() bool
IsServerError returns true when this get user not found response has a 5xx status code
func (*GetUserNotFound) IsSuccess ¶ added in v0.3.0
func (o *GetUserNotFound) IsSuccess() bool
IsSuccess returns true when this get user not found response has a 2xx status code
func (*GetUserNotFound) String ¶ added in v0.3.0
func (o *GetUserNotFound) String() string
type GetUserOK ¶ added in v0.3.0
GetUserOK describes a response with status code 200, with default header values.
A user if it exists
func NewGetUserOK ¶ added in v0.3.0
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶ added in v0.3.0
func (*GetUserOK) IsClientError ¶ added in v0.3.0
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶ added in v0.3.0
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶ added in v0.3.0
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶ added in v0.3.0
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶ added in v0.3.0
type GetUserParams struct { /* User. The username of the user to get */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint
for the get user operation. Typically these are written to a http.Request.
func NewGetUserParams ¶ added in v0.3.0
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUserParamsWithContext ¶ added in v0.3.0
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.
func NewGetUserParamsWithHTTPClient ¶ added in v0.3.0
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserParamsWithTimeout ¶ added in v0.3.0
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.
func (*GetUserParams) SetContext ¶ added in v0.3.0
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetDefaults ¶ added in v0.3.0
func (o *GetUserParams) SetDefaults()
SetDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) SetHTTPClient ¶ added in v0.3.0
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetTimeout ¶ added in v0.3.0
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) SetUser ¶ added in v0.3.0
func (o *GetUserParams) SetUser(user string)
SetUser adds the user to the get user params
func (*GetUserParams) WithContext ¶ added in v0.3.0
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithDefaults ¶ added in v0.3.0
func (o *GetUserParams) WithDefaults() *GetUserParams
WithDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) WithHTTPClient ¶ added in v0.3.0
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithTimeout ¶ added in v0.3.0
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WithUser ¶ added in v0.3.0
func (o *GetUserParams) WithUser(user string) *GetUserParams
WithUser adds the user to the get user params
func (*GetUserParams) WriteToRequest ¶ added in v0.3.0
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶ added in v0.3.0
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶ added in v0.3.0
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type IsEnabledDefault ¶
IsEnabledDefault describes a response with status code -1, with default header values.
unexpected error
func NewIsEnabledDefault ¶
func NewIsEnabledDefault(code int) *IsEnabledDefault
NewIsEnabledDefault creates a IsEnabledDefault with default headers values
func (*IsEnabledDefault) Code ¶
func (o *IsEnabledDefault) Code() int
Code gets the status code for the is enabled default response
func (*IsEnabledDefault) Error ¶
func (o *IsEnabledDefault) Error() string
func (*IsEnabledDefault) GetPayload ¶
func (o *IsEnabledDefault) GetPayload() *models.Error
func (*IsEnabledDefault) IsClientError ¶
func (o *IsEnabledDefault) IsClientError() bool
IsClientError returns true when this is enabled default response has a 4xx status code
func (*IsEnabledDefault) IsCode ¶
func (o *IsEnabledDefault) IsCode(code int) bool
IsCode returns true when this is enabled default response a status code equal to that given
func (*IsEnabledDefault) IsRedirect ¶
func (o *IsEnabledDefault) IsRedirect() bool
IsRedirect returns true when this is enabled default response has a 3xx status code
func (*IsEnabledDefault) IsServerError ¶
func (o *IsEnabledDefault) IsServerError() bool
IsServerError returns true when this is enabled default response has a 5xx status code
func (*IsEnabledDefault) IsSuccess ¶
func (o *IsEnabledDefault) IsSuccess() bool
IsSuccess returns true when this is enabled default response has a 2xx status code
func (*IsEnabledDefault) String ¶
func (o *IsEnabledDefault) String() string
type IsEnabledOK ¶
IsEnabledOK describes a response with status code 200, with default header values.
Whether the user is enabled
func NewIsEnabledOK ¶
func NewIsEnabledOK() *IsEnabledOK
NewIsEnabledOK creates a IsEnabledOK with default headers values
func (*IsEnabledOK) Code ¶
func (o *IsEnabledOK) Code() int
Code gets the status code for the is enabled o k response
func (*IsEnabledOK) Error ¶
func (o *IsEnabledOK) Error() string
func (*IsEnabledOK) GetPayload ¶
func (o *IsEnabledOK) GetPayload() *models.Enabled
func (*IsEnabledOK) IsClientError ¶
func (o *IsEnabledOK) IsClientError() bool
IsClientError returns true when this is enabled o k response has a 4xx status code
func (*IsEnabledOK) IsCode ¶
func (o *IsEnabledOK) IsCode(code int) bool
IsCode returns true when this is enabled o k response a status code equal to that given
func (*IsEnabledOK) IsRedirect ¶
func (o *IsEnabledOK) IsRedirect() bool
IsRedirect returns true when this is enabled o k response has a 3xx status code
func (*IsEnabledOK) IsServerError ¶
func (o *IsEnabledOK) IsServerError() bool
IsServerError returns true when this is enabled o k response has a 5xx status code
func (*IsEnabledOK) IsSuccess ¶
func (o *IsEnabledOK) IsSuccess() bool
IsSuccess returns true when this is enabled o k response has a 2xx status code
func (*IsEnabledOK) String ¶
func (o *IsEnabledOK) String() string
type IsEnabledParams ¶
type IsEnabledParams struct { /* User. The username of the user whose status should be queried */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
IsEnabledParams contains all the parameters to send to the API endpoint
for the is enabled operation. Typically these are written to a http.Request.
func NewIsEnabledParams ¶
func NewIsEnabledParams() *IsEnabledParams
NewIsEnabledParams creates a new IsEnabledParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewIsEnabledParamsWithContext ¶
func NewIsEnabledParamsWithContext(ctx context.Context) *IsEnabledParams
NewIsEnabledParamsWithContext creates a new IsEnabledParams object with the ability to set a context for a request.
func NewIsEnabledParamsWithHTTPClient ¶
func NewIsEnabledParamsWithHTTPClient(client *http.Client) *IsEnabledParams
NewIsEnabledParamsWithHTTPClient creates a new IsEnabledParams object with the ability to set a custom HTTPClient for a request.
func NewIsEnabledParamsWithTimeout ¶
func NewIsEnabledParamsWithTimeout(timeout time.Duration) *IsEnabledParams
NewIsEnabledParamsWithTimeout creates a new IsEnabledParams object with the ability to set a timeout on a request.
func (*IsEnabledParams) SetContext ¶
func (o *IsEnabledParams) SetContext(ctx context.Context)
SetContext adds the context to the is enabled params
func (*IsEnabledParams) SetDefaults ¶
func (o *IsEnabledParams) SetDefaults()
SetDefaults hydrates default values in the is enabled params (not the query body).
All values with no default are reset to their zero value.
func (*IsEnabledParams) SetHTTPClient ¶
func (o *IsEnabledParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the is enabled params
func (*IsEnabledParams) SetTimeout ¶
func (o *IsEnabledParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the is enabled params
func (*IsEnabledParams) SetUser ¶
func (o *IsEnabledParams) SetUser(user string)
SetUser adds the user to the is enabled params
func (*IsEnabledParams) WithContext ¶
func (o *IsEnabledParams) WithContext(ctx context.Context) *IsEnabledParams
WithContext adds the context to the is enabled params
func (*IsEnabledParams) WithDefaults ¶
func (o *IsEnabledParams) WithDefaults() *IsEnabledParams
WithDefaults hydrates default values in the is enabled params (not the query body).
All values with no default are reset to their zero value.
func (*IsEnabledParams) WithHTTPClient ¶
func (o *IsEnabledParams) WithHTTPClient(client *http.Client) *IsEnabledParams
WithHTTPClient adds the HTTPClient to the is enabled params
func (*IsEnabledParams) WithTimeout ¶
func (o *IsEnabledParams) WithTimeout(timeout time.Duration) *IsEnabledParams
WithTimeout adds the timeout to the is enabled params
func (*IsEnabledParams) WithUser ¶
func (o *IsEnabledParams) WithUser(user string) *IsEnabledParams
WithUser adds the user to the is enabled params
func (*IsEnabledParams) WriteToRequest ¶
func (o *IsEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IsEnabledReader ¶
type IsEnabledReader struct {
// contains filtered or unexported fields
}
IsEnabledReader is a Reader for the IsEnabled structure.
func (*IsEnabledReader) ReadResponse ¶
func (o *IsEnabledReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type IsSuperuserDefault ¶
IsSuperuserDefault describes a response with status code -1, with default header values.
unexpected error
func NewIsSuperuserDefault ¶
func NewIsSuperuserDefault(code int) *IsSuperuserDefault
NewIsSuperuserDefault creates a IsSuperuserDefault with default headers values
func (*IsSuperuserDefault) Code ¶
func (o *IsSuperuserDefault) Code() int
Code gets the status code for the is superuser default response
func (*IsSuperuserDefault) Error ¶
func (o *IsSuperuserDefault) Error() string
func (*IsSuperuserDefault) GetPayload ¶
func (o *IsSuperuserDefault) GetPayload() *models.Error
func (*IsSuperuserDefault) IsClientError ¶
func (o *IsSuperuserDefault) IsClientError() bool
IsClientError returns true when this is superuser default response has a 4xx status code
func (*IsSuperuserDefault) IsCode ¶
func (o *IsSuperuserDefault) IsCode(code int) bool
IsCode returns true when this is superuser default response a status code equal to that given
func (*IsSuperuserDefault) IsRedirect ¶
func (o *IsSuperuserDefault) IsRedirect() bool
IsRedirect returns true when this is superuser default response has a 3xx status code
func (*IsSuperuserDefault) IsServerError ¶
func (o *IsSuperuserDefault) IsServerError() bool
IsServerError returns true when this is superuser default response has a 5xx status code
func (*IsSuperuserDefault) IsSuccess ¶
func (o *IsSuperuserDefault) IsSuccess() bool
IsSuccess returns true when this is superuser default response has a 2xx status code
func (*IsSuperuserDefault) String ¶
func (o *IsSuperuserDefault) String() string
type IsSuperuserOK ¶
IsSuperuserOK describes a response with status code 200, with default header values.
The user's superuser status
func NewIsSuperuserOK ¶
func NewIsSuperuserOK() *IsSuperuserOK
NewIsSuperuserOK creates a IsSuperuserOK with default headers values
func (*IsSuperuserOK) Code ¶
func (o *IsSuperuserOK) Code() int
Code gets the status code for the is superuser o k response
func (*IsSuperuserOK) Error ¶
func (o *IsSuperuserOK) Error() string
func (*IsSuperuserOK) GetPayload ¶
func (o *IsSuperuserOK) GetPayload() *models.Superuser
func (*IsSuperuserOK) IsClientError ¶
func (o *IsSuperuserOK) IsClientError() bool
IsClientError returns true when this is superuser o k response has a 4xx status code
func (*IsSuperuserOK) IsCode ¶
func (o *IsSuperuserOK) IsCode(code int) bool
IsCode returns true when this is superuser o k response a status code equal to that given
func (*IsSuperuserOK) IsRedirect ¶
func (o *IsSuperuserOK) IsRedirect() bool
IsRedirect returns true when this is superuser o k response has a 3xx status code
func (*IsSuperuserOK) IsServerError ¶
func (o *IsSuperuserOK) IsServerError() bool
IsServerError returns true when this is superuser o k response has a 5xx status code
func (*IsSuperuserOK) IsSuccess ¶
func (o *IsSuperuserOK) IsSuccess() bool
IsSuccess returns true when this is superuser o k response has a 2xx status code
func (*IsSuperuserOK) String ¶
func (o *IsSuperuserOK) String() string
type IsSuperuserParams ¶
type IsSuperuserParams struct { /* User. The username of the user whose status should be queried */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
IsSuperuserParams contains all the parameters to send to the API endpoint
for the is superuser operation. Typically these are written to a http.Request.
func NewIsSuperuserParams ¶
func NewIsSuperuserParams() *IsSuperuserParams
NewIsSuperuserParams creates a new IsSuperuserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewIsSuperuserParamsWithContext ¶
func NewIsSuperuserParamsWithContext(ctx context.Context) *IsSuperuserParams
NewIsSuperuserParamsWithContext creates a new IsSuperuserParams object with the ability to set a context for a request.
func NewIsSuperuserParamsWithHTTPClient ¶
func NewIsSuperuserParamsWithHTTPClient(client *http.Client) *IsSuperuserParams
NewIsSuperuserParamsWithHTTPClient creates a new IsSuperuserParams object with the ability to set a custom HTTPClient for a request.
func NewIsSuperuserParamsWithTimeout ¶
func NewIsSuperuserParamsWithTimeout(timeout time.Duration) *IsSuperuserParams
NewIsSuperuserParamsWithTimeout creates a new IsSuperuserParams object with the ability to set a timeout on a request.
func (*IsSuperuserParams) SetContext ¶
func (o *IsSuperuserParams) SetContext(ctx context.Context)
SetContext adds the context to the is superuser params
func (*IsSuperuserParams) SetDefaults ¶
func (o *IsSuperuserParams) SetDefaults()
SetDefaults hydrates default values in the is superuser params (not the query body).
All values with no default are reset to their zero value.
func (*IsSuperuserParams) SetHTTPClient ¶
func (o *IsSuperuserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the is superuser params
func (*IsSuperuserParams) SetTimeout ¶
func (o *IsSuperuserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the is superuser params
func (*IsSuperuserParams) SetUser ¶
func (o *IsSuperuserParams) SetUser(user string)
SetUser adds the user to the is superuser params
func (*IsSuperuserParams) WithContext ¶
func (o *IsSuperuserParams) WithContext(ctx context.Context) *IsSuperuserParams
WithContext adds the context to the is superuser params
func (*IsSuperuserParams) WithDefaults ¶
func (o *IsSuperuserParams) WithDefaults() *IsSuperuserParams
WithDefaults hydrates default values in the is superuser params (not the query body).
All values with no default are reset to their zero value.
func (*IsSuperuserParams) WithHTTPClient ¶
func (o *IsSuperuserParams) WithHTTPClient(client *http.Client) *IsSuperuserParams
WithHTTPClient adds the HTTPClient to the is superuser params
func (*IsSuperuserParams) WithTimeout ¶
func (o *IsSuperuserParams) WithTimeout(timeout time.Duration) *IsSuperuserParams
WithTimeout adds the timeout to the is superuser params
func (*IsSuperuserParams) WithUser ¶
func (o *IsSuperuserParams) WithUser(user string) *IsSuperuserParams
WithUser adds the user to the is superuser params
func (*IsSuperuserParams) WriteToRequest ¶
func (o *IsSuperuserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IsSuperuserReader ¶
type IsSuperuserReader struct {
// contains filtered or unexported fields
}
IsSuperuserReader is a Reader for the IsSuperuser structure.
func (*IsSuperuserReader) ReadResponse ¶
func (o *IsSuperuserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUsersDefault ¶
ListUsersDefault describes a response with status code -1, with default header values.
unexpected error
func NewListUsersDefault ¶
func NewListUsersDefault(code int) *ListUsersDefault
NewListUsersDefault creates a ListUsersDefault with default headers values
func (*ListUsersDefault) Code ¶
func (o *ListUsersDefault) Code() int
Code gets the status code for the list users default response
func (*ListUsersDefault) Error ¶
func (o *ListUsersDefault) Error() string
func (*ListUsersDefault) GetPayload ¶
func (o *ListUsersDefault) GetPayload() *models.Error
func (*ListUsersDefault) IsClientError ¶
func (o *ListUsersDefault) IsClientError() bool
IsClientError returns true when this list users default response has a 4xx status code
func (*ListUsersDefault) IsCode ¶
func (o *ListUsersDefault) IsCode(code int) bool
IsCode returns true when this list users default response a status code equal to that given
func (*ListUsersDefault) IsRedirect ¶
func (o *ListUsersDefault) IsRedirect() bool
IsRedirect returns true when this list users default response has a 3xx status code
func (*ListUsersDefault) IsServerError ¶
func (o *ListUsersDefault) IsServerError() bool
IsServerError returns true when this list users default response has a 5xx status code
func (*ListUsersDefault) IsSuccess ¶
func (o *ListUsersDefault) IsSuccess() bool
IsSuccess returns true when this list users default response has a 2xx status code
func (*ListUsersDefault) String ¶
func (o *ListUsersDefault) String() string
type ListUsersOK ¶
ListUsersOK describes a response with status code 200, with default header values.
A dict containing an array of usernames
func NewListUsersOK ¶
func NewListUsersOK() *ListUsersOK
NewListUsersOK creates a ListUsersOK with default headers values
func (*ListUsersOK) Code ¶
func (o *ListUsersOK) Code() int
Code gets the status code for the list users o k response
func (*ListUsersOK) Error ¶
func (o *ListUsersOK) Error() string
func (*ListUsersOK) GetPayload ¶
func (o *ListUsersOK) GetPayload() *models.Users
func (*ListUsersOK) IsClientError ¶
func (o *ListUsersOK) IsClientError() bool
IsClientError returns true when this list users o k response has a 4xx status code
func (*ListUsersOK) IsCode ¶
func (o *ListUsersOK) IsCode(code int) bool
IsCode returns true when this list users o k response a status code equal to that given
func (*ListUsersOK) IsRedirect ¶
func (o *ListUsersOK) IsRedirect() bool
IsRedirect returns true when this list users o k response has a 3xx status code
func (*ListUsersOK) IsServerError ¶
func (o *ListUsersOK) IsServerError() bool
IsServerError returns true when this list users o k response has a 5xx status code
func (*ListUsersOK) IsSuccess ¶
func (o *ListUsersOK) IsSuccess() bool
IsSuccess returns true when this list users o k response has a 2xx status code
func (*ListUsersOK) String ¶
func (o *ListUsersOK) String() 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 timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListUsersParamsWithContext ¶
func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams
NewListUsersParamsWithContext creates a new ListUsersParams object with 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 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 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) SetDefaults ¶
func (o *ListUsersParams) SetDefaults()
SetDefaults hydrates default values in the list users params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ListUsersParams) WithDefaults() *ListUsersParams
WithDefaults hydrates default values in the list users params (not the query body).
All values with no default are reset to their zero value.
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 RemoveUserDefault ¶
RemoveUserDefault describes a response with status code -1, with default header values.
unexpected error
func NewRemoveUserDefault ¶
func NewRemoveUserDefault(code int) *RemoveUserDefault
NewRemoveUserDefault creates a RemoveUserDefault with default headers values
func (*RemoveUserDefault) Code ¶
func (o *RemoveUserDefault) Code() int
Code gets the status code for the remove user default response
func (*RemoveUserDefault) Error ¶
func (o *RemoveUserDefault) Error() string
func (*RemoveUserDefault) GetPayload ¶
func (o *RemoveUserDefault) GetPayload() *models.Error
func (*RemoveUserDefault) IsClientError ¶
func (o *RemoveUserDefault) IsClientError() bool
IsClientError returns true when this remove user default response has a 4xx status code
func (*RemoveUserDefault) IsCode ¶
func (o *RemoveUserDefault) IsCode(code int) bool
IsCode returns true when this remove user default response a status code equal to that given
func (*RemoveUserDefault) IsRedirect ¶
func (o *RemoveUserDefault) IsRedirect() bool
IsRedirect returns true when this remove user default response has a 3xx status code
func (*RemoveUserDefault) IsServerError ¶
func (o *RemoveUserDefault) IsServerError() bool
IsServerError returns true when this remove user default response has a 5xx status code
func (*RemoveUserDefault) IsSuccess ¶
func (o *RemoveUserDefault) IsSuccess() bool
IsSuccess returns true when this remove user default response has a 2xx status code
func (*RemoveUserDefault) String ¶
func (o *RemoveUserDefault) String() string
type RemoveUserNoContent ¶
type RemoveUserNoContent struct { }
RemoveUserNoContent describes a response with status code 204, with default header values.
Null response
func NewRemoveUserNoContent ¶
func NewRemoveUserNoContent() *RemoveUserNoContent
NewRemoveUserNoContent creates a RemoveUserNoContent with default headers values
func (*RemoveUserNoContent) Code ¶
func (o *RemoveUserNoContent) Code() int
Code gets the status code for the remove user no content response
func (*RemoveUserNoContent) Error ¶
func (o *RemoveUserNoContent) Error() string
func (*RemoveUserNoContent) IsClientError ¶
func (o *RemoveUserNoContent) IsClientError() bool
IsClientError returns true when this remove user no content response has a 4xx status code
func (*RemoveUserNoContent) IsCode ¶
func (o *RemoveUserNoContent) IsCode(code int) bool
IsCode returns true when this remove user no content response a status code equal to that given
func (*RemoveUserNoContent) IsRedirect ¶
func (o *RemoveUserNoContent) IsRedirect() bool
IsRedirect returns true when this remove user no content response has a 3xx status code
func (*RemoveUserNoContent) IsServerError ¶
func (o *RemoveUserNoContent) IsServerError() bool
IsServerError returns true when this remove user no content response has a 5xx status code
func (*RemoveUserNoContent) IsSuccess ¶
func (o *RemoveUserNoContent) IsSuccess() bool
IsSuccess returns true when this remove user no content response has a 2xx status code
func (*RemoveUserNoContent) String ¶
func (o *RemoveUserNoContent) String() string
type RemoveUserNotFound ¶
RemoveUserNotFound describes a response with status code 404, with default header values.
User does not exist
func NewRemoveUserNotFound ¶
func NewRemoveUserNotFound() *RemoveUserNotFound
NewRemoveUserNotFound creates a RemoveUserNotFound with default headers values
func (*RemoveUserNotFound) Code ¶
func (o *RemoveUserNotFound) Code() int
Code gets the status code for the remove user not found response
func (*RemoveUserNotFound) Error ¶
func (o *RemoveUserNotFound) Error() string
func (*RemoveUserNotFound) GetPayload ¶
func (o *RemoveUserNotFound) GetPayload() *models.NotExists
func (*RemoveUserNotFound) IsClientError ¶
func (o *RemoveUserNotFound) IsClientError() bool
IsClientError returns true when this remove user not found response has a 4xx status code
func (*RemoveUserNotFound) IsCode ¶
func (o *RemoveUserNotFound) IsCode(code int) bool
IsCode returns true when this remove user not found response a status code equal to that given
func (*RemoveUserNotFound) IsRedirect ¶
func (o *RemoveUserNotFound) IsRedirect() bool
IsRedirect returns true when this remove user not found response has a 3xx status code
func (*RemoveUserNotFound) IsServerError ¶
func (o *RemoveUserNotFound) IsServerError() bool
IsServerError returns true when this remove user not found response has a 5xx status code
func (*RemoveUserNotFound) IsSuccess ¶
func (o *RemoveUserNotFound) IsSuccess() bool
IsSuccess returns true when this remove user not found response has a 2xx status code
func (*RemoveUserNotFound) String ¶
func (o *RemoveUserNotFound) String() string
type RemoveUserParams ¶
type RemoveUserParams struct { /* User. The username of the user to delete */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveUserParams contains all the parameters to send to the API endpoint
for the remove user operation. Typically these are written to a http.Request.
func NewRemoveUserParams ¶
func NewRemoveUserParams() *RemoveUserParams
NewRemoveUserParams creates a new RemoveUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRemoveUserParamsWithContext ¶
func NewRemoveUserParamsWithContext(ctx context.Context) *RemoveUserParams
NewRemoveUserParamsWithContext creates a new RemoveUserParams object with the ability to set a context for a request.
func NewRemoveUserParamsWithHTTPClient ¶
func NewRemoveUserParamsWithHTTPClient(client *http.Client) *RemoveUserParams
NewRemoveUserParamsWithHTTPClient creates a new RemoveUserParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveUserParamsWithTimeout ¶
func NewRemoveUserParamsWithTimeout(timeout time.Duration) *RemoveUserParams
NewRemoveUserParamsWithTimeout creates a new RemoveUserParams object with the ability to set a timeout on a request.
func (*RemoveUserParams) SetContext ¶
func (o *RemoveUserParams) SetContext(ctx context.Context)
SetContext adds the context to the remove user params
func (*RemoveUserParams) SetDefaults ¶
func (o *RemoveUserParams) SetDefaults()
SetDefaults hydrates default values in the remove user params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveUserParams) SetHTTPClient ¶
func (o *RemoveUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove user params
func (*RemoveUserParams) SetTimeout ¶
func (o *RemoveUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove user params
func (*RemoveUserParams) SetUser ¶
func (o *RemoveUserParams) SetUser(user string)
SetUser adds the user to the remove user params
func (*RemoveUserParams) WithContext ¶
func (o *RemoveUserParams) WithContext(ctx context.Context) *RemoveUserParams
WithContext adds the context to the remove user params
func (*RemoveUserParams) WithDefaults ¶
func (o *RemoveUserParams) WithDefaults() *RemoveUserParams
WithDefaults hydrates default values in the remove user params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveUserParams) WithHTTPClient ¶
func (o *RemoveUserParams) WithHTTPClient(client *http.Client) *RemoveUserParams
WithHTTPClient adds the HTTPClient to the remove user params
func (*RemoveUserParams) WithTimeout ¶
func (o *RemoveUserParams) WithTimeout(timeout time.Duration) *RemoveUserParams
WithTimeout adds the timeout to the remove user params
func (*RemoveUserParams) WithUser ¶
func (o *RemoveUserParams) WithUser(user string) *RemoveUserParams
WithUser adds the user to the remove user params
func (*RemoveUserParams) WriteToRequest ¶
func (o *RemoveUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveUserReader ¶
type RemoveUserReader struct {
// contains filtered or unexported fields
}
RemoveUserReader is a Reader for the RemoveUser structure.
func (*RemoveUserReader) ReadResponse ¶
func (o *RemoveUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetEnabledDefault ¶
SetEnabledDefault describes a response with status code -1, with default header values.
unexpected error
func NewSetEnabledDefault ¶
func NewSetEnabledDefault(code int) *SetEnabledDefault
NewSetEnabledDefault creates a SetEnabledDefault with default headers values
func (*SetEnabledDefault) Code ¶
func (o *SetEnabledDefault) Code() int
Code gets the status code for the set enabled default response
func (*SetEnabledDefault) Error ¶
func (o *SetEnabledDefault) Error() string
func (*SetEnabledDefault) GetPayload ¶
func (o *SetEnabledDefault) GetPayload() *models.Error
func (*SetEnabledDefault) IsClientError ¶
func (o *SetEnabledDefault) IsClientError() bool
IsClientError returns true when this set enabled default response has a 4xx status code
func (*SetEnabledDefault) IsCode ¶
func (o *SetEnabledDefault) IsCode(code int) bool
IsCode returns true when this set enabled default response a status code equal to that given
func (*SetEnabledDefault) IsRedirect ¶
func (o *SetEnabledDefault) IsRedirect() bool
IsRedirect returns true when this set enabled default response has a 3xx status code
func (*SetEnabledDefault) IsServerError ¶
func (o *SetEnabledDefault) IsServerError() bool
IsServerError returns true when this set enabled default response has a 5xx status code
func (*SetEnabledDefault) IsSuccess ¶
func (o *SetEnabledDefault) IsSuccess() bool
IsSuccess returns true when this set enabled default response has a 2xx status code
func (*SetEnabledDefault) String ¶
func (o *SetEnabledDefault) String() string
type SetEnabledOK ¶
type SetEnabledOK struct { }
SetEnabledOK describes a response with status code 200, with default header values.
Null response
func NewSetEnabledOK ¶
func NewSetEnabledOK() *SetEnabledOK
NewSetEnabledOK creates a SetEnabledOK with default headers values
func (*SetEnabledOK) Code ¶
func (o *SetEnabledOK) Code() int
Code gets the status code for the set enabled o k response
func (*SetEnabledOK) Error ¶
func (o *SetEnabledOK) Error() string
func (*SetEnabledOK) IsClientError ¶
func (o *SetEnabledOK) IsClientError() bool
IsClientError returns true when this set enabled o k response has a 4xx status code
func (*SetEnabledOK) IsCode ¶
func (o *SetEnabledOK) IsCode(code int) bool
IsCode returns true when this set enabled o k response a status code equal to that given
func (*SetEnabledOK) IsRedirect ¶
func (o *SetEnabledOK) IsRedirect() bool
IsRedirect returns true when this set enabled o k response has a 3xx status code
func (*SetEnabledOK) IsServerError ¶
func (o *SetEnabledOK) IsServerError() bool
IsServerError returns true when this set enabled o k response has a 5xx status code
func (*SetEnabledOK) IsSuccess ¶
func (o *SetEnabledOK) IsSuccess() bool
IsSuccess returns true when this set enabled o k response has a 2xx status code
func (*SetEnabledOK) String ¶
func (o *SetEnabledOK) String() string
type SetEnabledParams ¶
type SetEnabledParams struct { /* Enable. The enabled status */ Enable *models.Enabled /* User. The username of the user whose status should be changed */ User string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetEnabledParams contains all the parameters to send to the API endpoint
for the set enabled operation. Typically these are written to a http.Request.
func NewSetEnabledParams ¶
func NewSetEnabledParams() *SetEnabledParams
NewSetEnabledParams creates a new SetEnabledParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSetEnabledParamsWithContext ¶
func NewSetEnabledParamsWithContext(ctx context.Context) *SetEnabledParams
NewSetEnabledParamsWithContext creates a new SetEnabledParams object with the ability to set a context for a request.
func NewSetEnabledParamsWithHTTPClient ¶
func NewSetEnabledParamsWithHTTPClient(client *http.Client) *SetEnabledParams
NewSetEnabledParamsWithHTTPClient creates a new SetEnabledParams object with the ability to set a custom HTTPClient for a request.
func NewSetEnabledParamsWithTimeout ¶
func NewSetEnabledParamsWithTimeout(timeout time.Duration) *SetEnabledParams
NewSetEnabledParamsWithTimeout creates a new SetEnabledParams object with the ability to set a timeout on a request.
func (*SetEnabledParams) SetContext ¶
func (o *SetEnabledParams) SetContext(ctx context.Context)
SetContext adds the context to the set enabled params
func (*SetEnabledParams) SetDefaults ¶
func (o *SetEnabledParams) SetDefaults()
SetDefaults hydrates default values in the set enabled params (not the query body).
All values with no default are reset to their zero value.
func (*SetEnabledParams) SetEnable ¶
func (o *SetEnabledParams) SetEnable(enable *models.Enabled)
SetEnable adds the enable to the set enabled params
func (*SetEnabledParams) SetHTTPClient ¶
func (o *SetEnabledParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set enabled params
func (*SetEnabledParams) SetTimeout ¶
func (o *SetEnabledParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set enabled params
func (*SetEnabledParams) SetUser ¶
func (o *SetEnabledParams) SetUser(user string)
SetUser adds the user to the set enabled params
func (*SetEnabledParams) WithContext ¶
func (o *SetEnabledParams) WithContext(ctx context.Context) *SetEnabledParams
WithContext adds the context to the set enabled params
func (*SetEnabledParams) WithDefaults ¶
func (o *SetEnabledParams) WithDefaults() *SetEnabledParams
WithDefaults hydrates default values in the set enabled params (not the query body).
All values with no default are reset to their zero value.
func (*SetEnabledParams) WithEnable ¶
func (o *SetEnabledParams) WithEnable(enable *models.Enabled) *SetEnabledParams
WithEnable adds the enable to the set enabled params
func (*SetEnabledParams) WithHTTPClient ¶
func (o *SetEnabledParams) WithHTTPClient(client *http.Client) *SetEnabledParams
WithHTTPClient adds the HTTPClient to the set enabled params
func (*SetEnabledParams) WithTimeout ¶
func (o *SetEnabledParams) WithTimeout(timeout time.Duration) *SetEnabledParams
WithTimeout adds the timeout to the set enabled params
func (*SetEnabledParams) WithUser ¶
func (o *SetEnabledParams) WithUser(user string) *SetEnabledParams
WithUser adds the user to the set enabled params
func (*SetEnabledParams) WriteToRequest ¶
func (o *SetEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetEnabledReader ¶
type SetEnabledReader struct {
// contains filtered or unexported fields
}
SetEnabledReader is a Reader for the SetEnabled structure.
func (*SetEnabledReader) ReadResponse ¶
func (o *SetEnabledReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ValidateUserDefault ¶
ValidateUserDefault describes a response with status code -1, with default header values.
User invalid
func NewValidateUserDefault ¶
func NewValidateUserDefault(code int) *ValidateUserDefault
NewValidateUserDefault creates a ValidateUserDefault with default headers values
func (*ValidateUserDefault) Code ¶
func (o *ValidateUserDefault) Code() int
Code gets the status code for the validate user default response
func (*ValidateUserDefault) Error ¶
func (o *ValidateUserDefault) Error() string
func (*ValidateUserDefault) GetPayload ¶
func (o *ValidateUserDefault) GetPayload() *models.Error
func (*ValidateUserDefault) IsClientError ¶
func (o *ValidateUserDefault) IsClientError() bool
IsClientError returns true when this validate user default response has a 4xx status code
func (*ValidateUserDefault) IsCode ¶
func (o *ValidateUserDefault) IsCode(code int) bool
IsCode returns true when this validate user default response a status code equal to that given
func (*ValidateUserDefault) IsRedirect ¶
func (o *ValidateUserDefault) IsRedirect() bool
IsRedirect returns true when this validate user default response has a 3xx status code
func (*ValidateUserDefault) IsServerError ¶
func (o *ValidateUserDefault) IsServerError() bool
IsServerError returns true when this validate user default response has a 5xx status code
func (*ValidateUserDefault) IsSuccess ¶
func (o *ValidateUserDefault) IsSuccess() bool
IsSuccess returns true when this validate user default response has a 2xx status code
func (*ValidateUserDefault) String ¶
func (o *ValidateUserDefault) String() string
type ValidateUserOK ¶
type ValidateUserOK struct { }
ValidateUserOK describes a response with status code 200, with default header values.
Null response
func NewValidateUserOK ¶
func NewValidateUserOK() *ValidateUserOK
NewValidateUserOK creates a ValidateUserOK with default headers values
func (*ValidateUserOK) Code ¶
func (o *ValidateUserOK) Code() int
Code gets the status code for the validate user o k response
func (*ValidateUserOK) Error ¶
func (o *ValidateUserOK) Error() string
func (*ValidateUserOK) IsClientError ¶
func (o *ValidateUserOK) IsClientError() bool
IsClientError returns true when this validate user o k response has a 4xx status code
func (*ValidateUserOK) IsCode ¶
func (o *ValidateUserOK) IsCode(code int) bool
IsCode returns true when this validate user o k response a status code equal to that given
func (*ValidateUserOK) IsRedirect ¶
func (o *ValidateUserOK) IsRedirect() bool
IsRedirect returns true when this validate user o k response has a 3xx status code
func (*ValidateUserOK) IsServerError ¶
func (o *ValidateUserOK) IsServerError() bool
IsServerError returns true when this validate user o k response has a 5xx status code
func (*ValidateUserOK) IsSuccess ¶
func (o *ValidateUserOK) IsSuccess() bool
IsSuccess returns true when this validate user o k response has a 2xx status code
func (*ValidateUserOK) String ¶
func (o *ValidateUserOK) String() string
type ValidateUserParams ¶
type ValidateUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ValidateUserParams contains all the parameters to send to the API endpoint
for the validate user operation. Typically these are written to a http.Request.
func NewValidateUserParams ¶
func NewValidateUserParams() *ValidateUserParams
NewValidateUserParams creates a new ValidateUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewValidateUserParamsWithContext ¶
func NewValidateUserParamsWithContext(ctx context.Context) *ValidateUserParams
NewValidateUserParamsWithContext creates a new ValidateUserParams object with the ability to set a context for a request.
func NewValidateUserParamsWithHTTPClient ¶
func NewValidateUserParamsWithHTTPClient(client *http.Client) *ValidateUserParams
NewValidateUserParamsWithHTTPClient creates a new ValidateUserParams object with the ability to set a custom HTTPClient for a request.
func NewValidateUserParamsWithTimeout ¶
func NewValidateUserParamsWithTimeout(timeout time.Duration) *ValidateUserParams
NewValidateUserParamsWithTimeout creates a new ValidateUserParams object with the ability to set a timeout on a request.
func (*ValidateUserParams) SetContext ¶
func (o *ValidateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the validate user params
func (*ValidateUserParams) SetDefaults ¶
func (o *ValidateUserParams) SetDefaults()
SetDefaults hydrates default values in the validate user params (not the query body).
All values with no default are reset to their zero value.
func (*ValidateUserParams) SetHTTPClient ¶
func (o *ValidateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the validate user params
func (*ValidateUserParams) SetTimeout ¶
func (o *ValidateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the validate user params
func (*ValidateUserParams) WithContext ¶
func (o *ValidateUserParams) WithContext(ctx context.Context) *ValidateUserParams
WithContext adds the context to the validate user params
func (*ValidateUserParams) WithDefaults ¶
func (o *ValidateUserParams) WithDefaults() *ValidateUserParams
WithDefaults hydrates default values in the validate user params (not the query body).
All values with no default are reset to their zero value.
func (*ValidateUserParams) WithHTTPClient ¶
func (o *ValidateUserParams) WithHTTPClient(client *http.Client) *ValidateUserParams
WithHTTPClient adds the HTTPClient to the validate user params
func (*ValidateUserParams) WithTimeout ¶
func (o *ValidateUserParams) WithTimeout(timeout time.Duration) *ValidateUserParams
WithTimeout adds the timeout to the validate user params
func (*ValidateUserParams) WriteToRequest ¶
func (o *ValidateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ValidateUserReader ¶
type ValidateUserReader struct {
// contains filtered or unexported fields
}
ValidateUserReader is a Reader for the ValidateUser structure.
func (*ValidateUserReader) ReadResponse ¶
func (o *ValidateUserReader) 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
- create_user_parameters.go
- create_user_responses.go
- get_user_parameters.go
- get_user_responses.go
- is_enabled_parameters.go
- is_enabled_responses.go
- is_superuser_parameters.go
- is_superuser_responses.go
- list_users_parameters.go
- list_users_responses.go
- remove_user_parameters.go
- remove_user_responses.go
- set_enabled_parameters.go
- set_enabled_responses.go
- users_client.go
- validate_user_parameters.go
- validate_user_responses.go