Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type UserPasswordChangeBadRequest
- func (o *UserPasswordChangeBadRequest) Code() int
- func (o *UserPasswordChangeBadRequest) Error() string
- func (o *UserPasswordChangeBadRequest) IsClientError() bool
- func (o *UserPasswordChangeBadRequest) IsCode(code int) bool
- func (o *UserPasswordChangeBadRequest) IsRedirect() bool
- func (o *UserPasswordChangeBadRequest) IsServerError() bool
- func (o *UserPasswordChangeBadRequest) IsSuccess() bool
- func (o *UserPasswordChangeBadRequest) String() string
- type UserPasswordChangeForbidden
- func (o *UserPasswordChangeForbidden) Code() int
- func (o *UserPasswordChangeForbidden) Error() string
- func (o *UserPasswordChangeForbidden) IsClientError() bool
- func (o *UserPasswordChangeForbidden) IsCode(code int) bool
- func (o *UserPasswordChangeForbidden) IsRedirect() bool
- func (o *UserPasswordChangeForbidden) IsServerError() bool
- func (o *UserPasswordChangeForbidden) IsSuccess() bool
- func (o *UserPasswordChangeForbidden) String() string
- type UserPasswordChangeInternalServerError
- func (o *UserPasswordChangeInternalServerError) Code() int
- func (o *UserPasswordChangeInternalServerError) Error() string
- func (o *UserPasswordChangeInternalServerError) IsClientError() bool
- func (o *UserPasswordChangeInternalServerError) IsCode(code int) bool
- func (o *UserPasswordChangeInternalServerError) IsRedirect() bool
- func (o *UserPasswordChangeInternalServerError) IsServerError() bool
- func (o *UserPasswordChangeInternalServerError) IsSuccess() bool
- func (o *UserPasswordChangeInternalServerError) String() string
- type UserPasswordChangeNotAcceptable
- func (o *UserPasswordChangeNotAcceptable) Code() int
- func (o *UserPasswordChangeNotAcceptable) Error() string
- func (o *UserPasswordChangeNotAcceptable) IsClientError() bool
- func (o *UserPasswordChangeNotAcceptable) IsCode(code int) bool
- func (o *UserPasswordChangeNotAcceptable) IsRedirect() bool
- func (o *UserPasswordChangeNotAcceptable) IsServerError() bool
- func (o *UserPasswordChangeNotAcceptable) IsSuccess() bool
- func (o *UserPasswordChangeNotAcceptable) String() string
- type UserPasswordChangeOK
- func (o *UserPasswordChangeOK) Code() int
- func (o *UserPasswordChangeOK) Error() string
- func (o *UserPasswordChangeOK) IsClientError() bool
- func (o *UserPasswordChangeOK) IsCode(code int) bool
- func (o *UserPasswordChangeOK) IsRedirect() bool
- func (o *UserPasswordChangeOK) IsServerError() bool
- func (o *UserPasswordChangeOK) IsSuccess() bool
- func (o *UserPasswordChangeOK) String() string
- type UserPasswordChangeParams
- func NewUserPasswordChangeParams() *UserPasswordChangeParams
- func NewUserPasswordChangeParamsWithContext(ctx context.Context) *UserPasswordChangeParams
- func NewUserPasswordChangeParamsWithHTTPClient(client *http.Client) *UserPasswordChangeParams
- func NewUserPasswordChangeParamsWithTimeout(timeout time.Duration) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) SetContext(ctx context.Context)
- func (o *UserPasswordChangeParams) SetDefaults()
- func (o *UserPasswordChangeParams) SetHTTPClient(client *http.Client)
- func (o *UserPasswordChangeParams) SetNewPassword(newPassword string)
- func (o *UserPasswordChangeParams) SetOldPassword(oldPassword string)
- func (o *UserPasswordChangeParams) SetTimeout(timeout time.Duration)
- func (o *UserPasswordChangeParams) WithContext(ctx context.Context) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WithDefaults() *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WithHTTPClient(client *http.Client) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WithNewPassword(newPassword string) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WithOldPassword(oldPassword string) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WithTimeout(timeout time.Duration) *UserPasswordChangeParams
- func (o *UserPasswordChangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserPasswordChangeReader
- type UserPasswordChangeUnauthorized
- func (o *UserPasswordChangeUnauthorized) Code() int
- func (o *UserPasswordChangeUnauthorized) Error() string
- func (o *UserPasswordChangeUnauthorized) IsClientError() bool
- func (o *UserPasswordChangeUnauthorized) IsCode(code int) bool
- func (o *UserPasswordChangeUnauthorized) IsRedirect() bool
- func (o *UserPasswordChangeUnauthorized) IsServerError() bool
- func (o *UserPasswordChangeUnauthorized) IsSuccess() bool
- func (o *UserPasswordChangeUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UserPasswordChange ¶
func (a *Client) UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, error)
UserPasswordChange changes the password of authenticated user The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'.
The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, 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 user API client.
type UserPasswordChangeBadRequest ¶
type UserPasswordChangeBadRequest struct {
}
UserPasswordChangeBadRequest describes a response with status code 400, with default header values.
bad request
func NewUserPasswordChangeBadRequest ¶
func NewUserPasswordChangeBadRequest() *UserPasswordChangeBadRequest
NewUserPasswordChangeBadRequest creates a UserPasswordChangeBadRequest with default headers values
func (*UserPasswordChangeBadRequest) Code ¶
func (o *UserPasswordChangeBadRequest) Code() int
Code gets the status code for the user password change bad request response
func (*UserPasswordChangeBadRequest) Error ¶
func (o *UserPasswordChangeBadRequest) Error() string
func (*UserPasswordChangeBadRequest) IsClientError ¶
func (o *UserPasswordChangeBadRequest) IsClientError() bool
IsClientError returns true when this user password change bad request response has a 4xx status code
func (*UserPasswordChangeBadRequest) IsCode ¶
func (o *UserPasswordChangeBadRequest) IsCode(code int) bool
IsCode returns true when this user password change bad request response a status code equal to that given
func (*UserPasswordChangeBadRequest) IsRedirect ¶
func (o *UserPasswordChangeBadRequest) IsRedirect() bool
IsRedirect returns true when this user password change bad request response has a 3xx status code
func (*UserPasswordChangeBadRequest) IsServerError ¶
func (o *UserPasswordChangeBadRequest) IsServerError() bool
IsServerError returns true when this user password change bad request response has a 5xx status code
func (*UserPasswordChangeBadRequest) IsSuccess ¶
func (o *UserPasswordChangeBadRequest) IsSuccess() bool
IsSuccess returns true when this user password change bad request response has a 2xx status code
func (*UserPasswordChangeBadRequest) String ¶
func (o *UserPasswordChangeBadRequest) String() string
type UserPasswordChangeForbidden ¶
type UserPasswordChangeForbidden struct {
}
UserPasswordChangeForbidden describes a response with status code 403, with default header values.
forbidden
func NewUserPasswordChangeForbidden ¶
func NewUserPasswordChangeForbidden() *UserPasswordChangeForbidden
NewUserPasswordChangeForbidden creates a UserPasswordChangeForbidden with default headers values
func (*UserPasswordChangeForbidden) Code ¶
func (o *UserPasswordChangeForbidden) Code() int
Code gets the status code for the user password change forbidden response
func (*UserPasswordChangeForbidden) Error ¶
func (o *UserPasswordChangeForbidden) Error() string
func (*UserPasswordChangeForbidden) IsClientError ¶
func (o *UserPasswordChangeForbidden) IsClientError() bool
IsClientError returns true when this user password change forbidden response has a 4xx status code
func (*UserPasswordChangeForbidden) IsCode ¶
func (o *UserPasswordChangeForbidden) IsCode(code int) bool
IsCode returns true when this user password change forbidden response a status code equal to that given
func (*UserPasswordChangeForbidden) IsRedirect ¶
func (o *UserPasswordChangeForbidden) IsRedirect() bool
IsRedirect returns true when this user password change forbidden response has a 3xx status code
func (*UserPasswordChangeForbidden) IsServerError ¶
func (o *UserPasswordChangeForbidden) IsServerError() bool
IsServerError returns true when this user password change forbidden response has a 5xx status code
func (*UserPasswordChangeForbidden) IsSuccess ¶
func (o *UserPasswordChangeForbidden) IsSuccess() bool
IsSuccess returns true when this user password change forbidden response has a 2xx status code
func (*UserPasswordChangeForbidden) String ¶
func (o *UserPasswordChangeForbidden) String() string
type UserPasswordChangeInternalServerError ¶
type UserPasswordChangeInternalServerError struct {
}
UserPasswordChangeInternalServerError describes a response with status code 500, with default header values.
internal error
func NewUserPasswordChangeInternalServerError ¶
func NewUserPasswordChangeInternalServerError() *UserPasswordChangeInternalServerError
NewUserPasswordChangeInternalServerError creates a UserPasswordChangeInternalServerError with default headers values
func (*UserPasswordChangeInternalServerError) Code ¶
func (o *UserPasswordChangeInternalServerError) Code() int
Code gets the status code for the user password change internal server error response
func (*UserPasswordChangeInternalServerError) Error ¶
func (o *UserPasswordChangeInternalServerError) Error() string
func (*UserPasswordChangeInternalServerError) IsClientError ¶
func (o *UserPasswordChangeInternalServerError) IsClientError() bool
IsClientError returns true when this user password change internal server error response has a 4xx status code
func (*UserPasswordChangeInternalServerError) IsCode ¶
func (o *UserPasswordChangeInternalServerError) IsCode(code int) bool
IsCode returns true when this user password change internal server error response a status code equal to that given
func (*UserPasswordChangeInternalServerError) IsRedirect ¶
func (o *UserPasswordChangeInternalServerError) IsRedirect() bool
IsRedirect returns true when this user password change internal server error response has a 3xx status code
func (*UserPasswordChangeInternalServerError) IsServerError ¶
func (o *UserPasswordChangeInternalServerError) IsServerError() bool
IsServerError returns true when this user password change internal server error response has a 5xx status code
func (*UserPasswordChangeInternalServerError) IsSuccess ¶
func (o *UserPasswordChangeInternalServerError) IsSuccess() bool
IsSuccess returns true when this user password change internal server error response has a 2xx status code
func (*UserPasswordChangeInternalServerError) String ¶
func (o *UserPasswordChangeInternalServerError) String() string
type UserPasswordChangeNotAcceptable ¶
type UserPasswordChangeNotAcceptable struct {
}
UserPasswordChangeNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewUserPasswordChangeNotAcceptable ¶
func NewUserPasswordChangeNotAcceptable() *UserPasswordChangeNotAcceptable
NewUserPasswordChangeNotAcceptable creates a UserPasswordChangeNotAcceptable with default headers values
func (*UserPasswordChangeNotAcceptable) Code ¶
func (o *UserPasswordChangeNotAcceptable) Code() int
Code gets the status code for the user password change not acceptable response
func (*UserPasswordChangeNotAcceptable) Error ¶
func (o *UserPasswordChangeNotAcceptable) Error() string
func (*UserPasswordChangeNotAcceptable) IsClientError ¶
func (o *UserPasswordChangeNotAcceptable) IsClientError() bool
IsClientError returns true when this user password change not acceptable response has a 4xx status code
func (*UserPasswordChangeNotAcceptable) IsCode ¶
func (o *UserPasswordChangeNotAcceptable) IsCode(code int) bool
IsCode returns true when this user password change not acceptable response a status code equal to that given
func (*UserPasswordChangeNotAcceptable) IsRedirect ¶
func (o *UserPasswordChangeNotAcceptable) IsRedirect() bool
IsRedirect returns true when this user password change not acceptable response has a 3xx status code
func (*UserPasswordChangeNotAcceptable) IsServerError ¶
func (o *UserPasswordChangeNotAcceptable) IsServerError() bool
IsServerError returns true when this user password change not acceptable response has a 5xx status code
func (*UserPasswordChangeNotAcceptable) IsSuccess ¶
func (o *UserPasswordChangeNotAcceptable) IsSuccess() bool
IsSuccess returns true when this user password change not acceptable response has a 2xx status code
func (*UserPasswordChangeNotAcceptable) String ¶
func (o *UserPasswordChangeNotAcceptable) String() string
type UserPasswordChangeOK ¶
type UserPasswordChangeOK struct {
}
UserPasswordChangeOK describes a response with status code 200, with default header values.
Change successful
func NewUserPasswordChangeOK ¶
func NewUserPasswordChangeOK() *UserPasswordChangeOK
NewUserPasswordChangeOK creates a UserPasswordChangeOK with default headers values
func (*UserPasswordChangeOK) Code ¶
func (o *UserPasswordChangeOK) Code() int
Code gets the status code for the user password change o k response
func (*UserPasswordChangeOK) Error ¶
func (o *UserPasswordChangeOK) Error() string
func (*UserPasswordChangeOK) IsClientError ¶
func (o *UserPasswordChangeOK) IsClientError() bool
IsClientError returns true when this user password change o k response has a 4xx status code
func (*UserPasswordChangeOK) IsCode ¶
func (o *UserPasswordChangeOK) IsCode(code int) bool
IsCode returns true when this user password change o k response a status code equal to that given
func (*UserPasswordChangeOK) IsRedirect ¶
func (o *UserPasswordChangeOK) IsRedirect() bool
IsRedirect returns true when this user password change o k response has a 3xx status code
func (*UserPasswordChangeOK) IsServerError ¶
func (o *UserPasswordChangeOK) IsServerError() bool
IsServerError returns true when this user password change o k response has a 5xx status code
func (*UserPasswordChangeOK) IsSuccess ¶
func (o *UserPasswordChangeOK) IsSuccess() bool
IsSuccess returns true when this user password change o k response has a 2xx status code
func (*UserPasswordChangeOK) String ¶
func (o *UserPasswordChangeOK) String() string
type UserPasswordChangeParams ¶
type UserPasswordChangeParams struct {
/* NewPassword.
Desired new password.
If the password does not have high enough entropy, it will be rejected.
See https://github.com/wagslane/go-password-validator
*/
NewPassword string
/* OldPassword.
User's previous password.
*/
OldPassword string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UserPasswordChangeParams contains all the parameters to send to the API endpoint
for the user password change operation. Typically these are written to a http.Request.
func NewUserPasswordChangeParams ¶
func NewUserPasswordChangeParams() *UserPasswordChangeParams
NewUserPasswordChangeParams creates a new UserPasswordChangeParams 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 NewUserPasswordChangeParamsWithContext ¶
func NewUserPasswordChangeParamsWithContext(ctx context.Context) *UserPasswordChangeParams
NewUserPasswordChangeParamsWithContext creates a new UserPasswordChangeParams object with the ability to set a context for a request.
func NewUserPasswordChangeParamsWithHTTPClient ¶
func NewUserPasswordChangeParamsWithHTTPClient(client *http.Client) *UserPasswordChangeParams
NewUserPasswordChangeParamsWithHTTPClient creates a new UserPasswordChangeParams object with the ability to set a custom HTTPClient for a request.
func NewUserPasswordChangeParamsWithTimeout ¶
func NewUserPasswordChangeParamsWithTimeout(timeout time.Duration) *UserPasswordChangeParams
NewUserPasswordChangeParamsWithTimeout creates a new UserPasswordChangeParams object with the ability to set a timeout on a request.
func (*UserPasswordChangeParams) SetContext ¶
func (o *UserPasswordChangeParams) SetContext(ctx context.Context)
SetContext adds the context to the user password change params
func (*UserPasswordChangeParams) SetDefaults ¶
func (o *UserPasswordChangeParams) SetDefaults()
SetDefaults hydrates default values in the user password change params (not the query body).
All values with no default are reset to their zero value.
func (*UserPasswordChangeParams) SetHTTPClient ¶
func (o *UserPasswordChangeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user password change params
func (*UserPasswordChangeParams) SetNewPassword ¶
func (o *UserPasswordChangeParams) SetNewPassword(newPassword string)
SetNewPassword adds the newPassword to the user password change params
func (*UserPasswordChangeParams) SetOldPassword ¶
func (o *UserPasswordChangeParams) SetOldPassword(oldPassword string)
SetOldPassword adds the oldPassword to the user password change params
func (*UserPasswordChangeParams) SetTimeout ¶
func (o *UserPasswordChangeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user password change params
func (*UserPasswordChangeParams) WithContext ¶
func (o *UserPasswordChangeParams) WithContext(ctx context.Context) *UserPasswordChangeParams
WithContext adds the context to the user password change params
func (*UserPasswordChangeParams) WithDefaults ¶
func (o *UserPasswordChangeParams) WithDefaults() *UserPasswordChangeParams
WithDefaults hydrates default values in the user password change params (not the query body).
All values with no default are reset to their zero value.
func (*UserPasswordChangeParams) WithHTTPClient ¶
func (o *UserPasswordChangeParams) WithHTTPClient(client *http.Client) *UserPasswordChangeParams
WithHTTPClient adds the HTTPClient to the user password change params
func (*UserPasswordChangeParams) WithNewPassword ¶
func (o *UserPasswordChangeParams) WithNewPassword(newPassword string) *UserPasswordChangeParams
WithNewPassword adds the newPassword to the user password change params
func (*UserPasswordChangeParams) WithOldPassword ¶
func (o *UserPasswordChangeParams) WithOldPassword(oldPassword string) *UserPasswordChangeParams
WithOldPassword adds the oldPassword to the user password change params
func (*UserPasswordChangeParams) WithTimeout ¶
func (o *UserPasswordChangeParams) WithTimeout(timeout time.Duration) *UserPasswordChangeParams
WithTimeout adds the timeout to the user password change params
func (*UserPasswordChangeParams) WriteToRequest ¶
func (o *UserPasswordChangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserPasswordChangeReader ¶
type UserPasswordChangeReader struct {
// contains filtered or unexported fields
}
UserPasswordChangeReader is a Reader for the UserPasswordChange structure.
func (*UserPasswordChangeReader) ReadResponse ¶
func (o *UserPasswordChangeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserPasswordChangeUnauthorized ¶
type UserPasswordChangeUnauthorized struct {
}
UserPasswordChangeUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewUserPasswordChangeUnauthorized ¶
func NewUserPasswordChangeUnauthorized() *UserPasswordChangeUnauthorized
NewUserPasswordChangeUnauthorized creates a UserPasswordChangeUnauthorized with default headers values
func (*UserPasswordChangeUnauthorized) Code ¶
func (o *UserPasswordChangeUnauthorized) Code() int
Code gets the status code for the user password change unauthorized response
func (*UserPasswordChangeUnauthorized) Error ¶
func (o *UserPasswordChangeUnauthorized) Error() string
func (*UserPasswordChangeUnauthorized) IsClientError ¶
func (o *UserPasswordChangeUnauthorized) IsClientError() bool
IsClientError returns true when this user password change unauthorized response has a 4xx status code
func (*UserPasswordChangeUnauthorized) IsCode ¶
func (o *UserPasswordChangeUnauthorized) IsCode(code int) bool
IsCode returns true when this user password change unauthorized response a status code equal to that given
func (*UserPasswordChangeUnauthorized) IsRedirect ¶
func (o *UserPasswordChangeUnauthorized) IsRedirect() bool
IsRedirect returns true when this user password change unauthorized response has a 3xx status code
func (*UserPasswordChangeUnauthorized) IsServerError ¶
func (o *UserPasswordChangeUnauthorized) IsServerError() bool
IsServerError returns true when this user password change unauthorized response has a 5xx status code
func (*UserPasswordChangeUnauthorized) IsSuccess ¶
func (o *UserPasswordChangeUnauthorized) IsSuccess() bool
IsSuccess returns true when this user password change unauthorized response has a 2xx status code
func (*UserPasswordChangeUnauthorized) String ¶
func (o *UserPasswordChangeUnauthorized) String() string