Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UserEmailChangeAccepted, error)
- func (a *Client) UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UserPasswordChangeOK, error)
- type ClientOption
- type ClientService
- type GetUserBadRequest
- func (o *GetUserBadRequest) Code() int
- func (o *GetUserBadRequest) Error() string
- func (o *GetUserBadRequest) IsClientError() bool
- func (o *GetUserBadRequest) IsCode(code int) bool
- func (o *GetUserBadRequest) IsRedirect() bool
- func (o *GetUserBadRequest) IsServerError() bool
- func (o *GetUserBadRequest) IsSuccess() bool
- func (o *GetUserBadRequest) String() string
- type GetUserForbidden
- func (o *GetUserForbidden) Code() int
- func (o *GetUserForbidden) Error() string
- func (o *GetUserForbidden) IsClientError() bool
- func (o *GetUserForbidden) IsCode(code int) bool
- func (o *GetUserForbidden) IsRedirect() bool
- func (o *GetUserForbidden) IsServerError() bool
- func (o *GetUserForbidden) IsSuccess() bool
- func (o *GetUserForbidden) String() string
- type GetUserInternalServerError
- func (o *GetUserInternalServerError) Code() int
- func (o *GetUserInternalServerError) Error() string
- func (o *GetUserInternalServerError) IsClientError() bool
- func (o *GetUserInternalServerError) IsCode(code int) bool
- func (o *GetUserInternalServerError) IsRedirect() bool
- func (o *GetUserInternalServerError) IsServerError() bool
- func (o *GetUserInternalServerError) IsSuccess() bool
- func (o *GetUserInternalServerError) String() string
- type GetUserNotAcceptable
- func (o *GetUserNotAcceptable) Code() int
- func (o *GetUserNotAcceptable) Error() string
- func (o *GetUserNotAcceptable) IsClientError() bool
- func (o *GetUserNotAcceptable) IsCode(code int) bool
- func (o *GetUserNotAcceptable) IsRedirect() bool
- func (o *GetUserNotAcceptable) IsServerError() bool
- func (o *GetUserNotAcceptable) IsSuccess() bool
- func (o *GetUserNotAcceptable) String() string
- type GetUserOK
- func (o *GetUserOK) Code() int
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.User
- 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) 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) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUserUnauthorized
- func (o *GetUserUnauthorized) Code() int
- func (o *GetUserUnauthorized) Error() string
- func (o *GetUserUnauthorized) IsClientError() bool
- func (o *GetUserUnauthorized) IsCode(code int) bool
- func (o *GetUserUnauthorized) IsRedirect() bool
- func (o *GetUserUnauthorized) IsServerError() bool
- func (o *GetUserUnauthorized) IsSuccess() bool
- func (o *GetUserUnauthorized) String() string
- type UserEmailChangeAccepted
- func (o *UserEmailChangeAccepted) Code() int
- func (o *UserEmailChangeAccepted) Error() string
- func (o *UserEmailChangeAccepted) GetPayload() *models.User
- func (o *UserEmailChangeAccepted) IsClientError() bool
- func (o *UserEmailChangeAccepted) IsCode(code int) bool
- func (o *UserEmailChangeAccepted) IsRedirect() bool
- func (o *UserEmailChangeAccepted) IsServerError() bool
- func (o *UserEmailChangeAccepted) IsSuccess() bool
- func (o *UserEmailChangeAccepted) String() string
- type UserEmailChangeBadRequest
- func (o *UserEmailChangeBadRequest) Code() int
- func (o *UserEmailChangeBadRequest) Error() string
- func (o *UserEmailChangeBadRequest) IsClientError() bool
- func (o *UserEmailChangeBadRequest) IsCode(code int) bool
- func (o *UserEmailChangeBadRequest) IsRedirect() bool
- func (o *UserEmailChangeBadRequest) IsServerError() bool
- func (o *UserEmailChangeBadRequest) IsSuccess() bool
- func (o *UserEmailChangeBadRequest) String() string
- type UserEmailChangeConflict
- func (o *UserEmailChangeConflict) Code() int
- func (o *UserEmailChangeConflict) Error() string
- func (o *UserEmailChangeConflict) IsClientError() bool
- func (o *UserEmailChangeConflict) IsCode(code int) bool
- func (o *UserEmailChangeConflict) IsRedirect() bool
- func (o *UserEmailChangeConflict) IsServerError() bool
- func (o *UserEmailChangeConflict) IsSuccess() bool
- func (o *UserEmailChangeConflict) String() string
- type UserEmailChangeForbidden
- func (o *UserEmailChangeForbidden) Code() int
- func (o *UserEmailChangeForbidden) Error() string
- func (o *UserEmailChangeForbidden) IsClientError() bool
- func (o *UserEmailChangeForbidden) IsCode(code int) bool
- func (o *UserEmailChangeForbidden) IsRedirect() bool
- func (o *UserEmailChangeForbidden) IsServerError() bool
- func (o *UserEmailChangeForbidden) IsSuccess() bool
- func (o *UserEmailChangeForbidden) String() string
- type UserEmailChangeInternalServerError
- func (o *UserEmailChangeInternalServerError) Code() int
- func (o *UserEmailChangeInternalServerError) Error() string
- func (o *UserEmailChangeInternalServerError) IsClientError() bool
- func (o *UserEmailChangeInternalServerError) IsCode(code int) bool
- func (o *UserEmailChangeInternalServerError) IsRedirect() bool
- func (o *UserEmailChangeInternalServerError) IsServerError() bool
- func (o *UserEmailChangeInternalServerError) IsSuccess() bool
- func (o *UserEmailChangeInternalServerError) String() string
- type UserEmailChangeNotAcceptable
- func (o *UserEmailChangeNotAcceptable) Code() int
- func (o *UserEmailChangeNotAcceptable) Error() string
- func (o *UserEmailChangeNotAcceptable) IsClientError() bool
- func (o *UserEmailChangeNotAcceptable) IsCode(code int) bool
- func (o *UserEmailChangeNotAcceptable) IsRedirect() bool
- func (o *UserEmailChangeNotAcceptable) IsServerError() bool
- func (o *UserEmailChangeNotAcceptable) IsSuccess() bool
- func (o *UserEmailChangeNotAcceptable) String() string
- type UserEmailChangeParams
- func NewUserEmailChangeParams() *UserEmailChangeParams
- func NewUserEmailChangeParamsWithContext(ctx context.Context) *UserEmailChangeParams
- func NewUserEmailChangeParamsWithHTTPClient(client *http.Client) *UserEmailChangeParams
- func NewUserEmailChangeParamsWithTimeout(timeout time.Duration) *UserEmailChangeParams
- func (o *UserEmailChangeParams) SetContext(ctx context.Context)
- func (o *UserEmailChangeParams) SetDefaults()
- func (o *UserEmailChangeParams) SetHTTPClient(client *http.Client)
- func (o *UserEmailChangeParams) SetNewEmail(newEmail string)
- func (o *UserEmailChangeParams) SetPassword(password string)
- func (o *UserEmailChangeParams) SetTimeout(timeout time.Duration)
- func (o *UserEmailChangeParams) WithContext(ctx context.Context) *UserEmailChangeParams
- func (o *UserEmailChangeParams) WithDefaults() *UserEmailChangeParams
- func (o *UserEmailChangeParams) WithHTTPClient(client *http.Client) *UserEmailChangeParams
- func (o *UserEmailChangeParams) WithNewEmail(newEmail string) *UserEmailChangeParams
- func (o *UserEmailChangeParams) WithPassword(password string) *UserEmailChangeParams
- func (o *UserEmailChangeParams) WithTimeout(timeout time.Duration) *UserEmailChangeParams
- func (o *UserEmailChangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserEmailChangeReader
- type UserEmailChangeUnauthorized
- func (o *UserEmailChangeUnauthorized) Code() int
- func (o *UserEmailChangeUnauthorized) Error() string
- func (o *UserEmailChangeUnauthorized) IsClientError() bool
- func (o *UserEmailChangeUnauthorized) IsCode(code int) bool
- func (o *UserEmailChangeUnauthorized) IsRedirect() bool
- func (o *UserEmailChangeUnauthorized) IsServerError() bool
- func (o *UserEmailChangeUnauthorized) IsSuccess() bool
- func (o *UserEmailChangeUnauthorized) String() string
- 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
- type UserPasswordChangeUnprocessableEntity
- func (o *UserPasswordChangeUnprocessableEntity) Code() int
- func (o *UserPasswordChangeUnprocessableEntity) Error() string
- func (o *UserPasswordChangeUnprocessableEntity) IsClientError() bool
- func (o *UserPasswordChangeUnprocessableEntity) IsCode(code int) bool
- func (o *UserPasswordChangeUnprocessableEntity) IsRedirect() bool
- func (o *UserPasswordChangeUnprocessableEntity) IsServerError() bool
- func (o *UserPasswordChangeUnprocessableEntity) IsSuccess() bool
- func (o *UserPasswordChangeUnprocessableEntity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)
GetUser gets your own user model
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UserEmailChange ¶
func (a *Client) UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error)
UserEmailChange requests changing the email address of authenticated user
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 may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error) 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.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new user API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new user API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetUserBadRequest ¶
type GetUserBadRequest struct { }
GetUserBadRequest describes a response with status code 400, with default header values.
bad request
func NewGetUserBadRequest ¶
func NewGetUserBadRequest() *GetUserBadRequest
NewGetUserBadRequest creates a GetUserBadRequest with default headers values
func (*GetUserBadRequest) Code ¶
func (o *GetUserBadRequest) Code() int
Code gets the status code for the get user bad request response
func (*GetUserBadRequest) Error ¶
func (o *GetUserBadRequest) Error() string
func (*GetUserBadRequest) IsClientError ¶
func (o *GetUserBadRequest) IsClientError() bool
IsClientError returns true when this get user bad request response has a 4xx status code
func (*GetUserBadRequest) IsCode ¶
func (o *GetUserBadRequest) IsCode(code int) bool
IsCode returns true when this get user bad request response a status code equal to that given
func (*GetUserBadRequest) IsRedirect ¶
func (o *GetUserBadRequest) IsRedirect() bool
IsRedirect returns true when this get user bad request response has a 3xx status code
func (*GetUserBadRequest) IsServerError ¶
func (o *GetUserBadRequest) IsServerError() bool
IsServerError returns true when this get user bad request response has a 5xx status code
func (*GetUserBadRequest) IsSuccess ¶
func (o *GetUserBadRequest) IsSuccess() bool
IsSuccess returns true when this get user bad request response has a 2xx status code
func (*GetUserBadRequest) String ¶
func (o *GetUserBadRequest) String() string
type GetUserForbidden ¶
type GetUserForbidden struct { }
GetUserForbidden describes a response with status code 403, with default header values.
forbidden
func NewGetUserForbidden ¶
func NewGetUserForbidden() *GetUserForbidden
NewGetUserForbidden creates a GetUserForbidden with default headers values
func (*GetUserForbidden) Code ¶
func (o *GetUserForbidden) Code() int
Code gets the status code for the get user forbidden response
func (*GetUserForbidden) Error ¶
func (o *GetUserForbidden) Error() string
func (*GetUserForbidden) IsClientError ¶
func (o *GetUserForbidden) IsClientError() bool
IsClientError returns true when this get user forbidden response has a 4xx status code
func (*GetUserForbidden) IsCode ¶
func (o *GetUserForbidden) IsCode(code int) bool
IsCode returns true when this get user forbidden response a status code equal to that given
func (*GetUserForbidden) IsRedirect ¶
func (o *GetUserForbidden) IsRedirect() bool
IsRedirect returns true when this get user forbidden response has a 3xx status code
func (*GetUserForbidden) IsServerError ¶
func (o *GetUserForbidden) IsServerError() bool
IsServerError returns true when this get user forbidden response has a 5xx status code
func (*GetUserForbidden) IsSuccess ¶
func (o *GetUserForbidden) IsSuccess() bool
IsSuccess returns true when this get user forbidden response has a 2xx status code
func (*GetUserForbidden) String ¶
func (o *GetUserForbidden) String() string
type GetUserInternalServerError ¶
type GetUserInternalServerError struct { }
GetUserInternalServerError describes a response with status code 500, with default header values.
internal error
func NewGetUserInternalServerError ¶
func NewGetUserInternalServerError() *GetUserInternalServerError
NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values
func (*GetUserInternalServerError) Code ¶
func (o *GetUserInternalServerError) Code() int
Code gets the status code for the get user internal server error response
func (*GetUserInternalServerError) Error ¶
func (o *GetUserInternalServerError) Error() string
func (*GetUserInternalServerError) IsClientError ¶
func (o *GetUserInternalServerError) IsClientError() bool
IsClientError returns true when this get user internal server error response has a 4xx status code
func (*GetUserInternalServerError) IsCode ¶
func (o *GetUserInternalServerError) IsCode(code int) bool
IsCode returns true when this get user internal server error response a status code equal to that given
func (*GetUserInternalServerError) IsRedirect ¶
func (o *GetUserInternalServerError) IsRedirect() bool
IsRedirect returns true when this get user internal server error response has a 3xx status code
func (*GetUserInternalServerError) IsServerError ¶
func (o *GetUserInternalServerError) IsServerError() bool
IsServerError returns true when this get user internal server error response has a 5xx status code
func (*GetUserInternalServerError) IsSuccess ¶
func (o *GetUserInternalServerError) IsSuccess() bool
IsSuccess returns true when this get user internal server error response has a 2xx status code
func (*GetUserInternalServerError) String ¶
func (o *GetUserInternalServerError) String() string
type GetUserNotAcceptable ¶
type GetUserNotAcceptable struct { }
GetUserNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewGetUserNotAcceptable ¶
func NewGetUserNotAcceptable() *GetUserNotAcceptable
NewGetUserNotAcceptable creates a GetUserNotAcceptable with default headers values
func (*GetUserNotAcceptable) Code ¶
func (o *GetUserNotAcceptable) Code() int
Code gets the status code for the get user not acceptable response
func (*GetUserNotAcceptable) Error ¶
func (o *GetUserNotAcceptable) Error() string
func (*GetUserNotAcceptable) IsClientError ¶
func (o *GetUserNotAcceptable) IsClientError() bool
IsClientError returns true when this get user not acceptable response has a 4xx status code
func (*GetUserNotAcceptable) IsCode ¶
func (o *GetUserNotAcceptable) IsCode(code int) bool
IsCode returns true when this get user not acceptable response a status code equal to that given
func (*GetUserNotAcceptable) IsRedirect ¶
func (o *GetUserNotAcceptable) IsRedirect() bool
IsRedirect returns true when this get user not acceptable response has a 3xx status code
func (*GetUserNotAcceptable) IsServerError ¶
func (o *GetUserNotAcceptable) IsServerError() bool
IsServerError returns true when this get user not acceptable response has a 5xx status code
func (*GetUserNotAcceptable) IsSuccess ¶
func (o *GetUserNotAcceptable) IsSuccess() bool
IsSuccess returns true when this get user not acceptable response has a 2xx status code
func (*GetUserNotAcceptable) String ¶
func (o *GetUserNotAcceptable) String() string
type GetUserOK ¶
GetUserOK describes a response with status code 200, with default header values.
The requested user.
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
func (*GetUserOK) IsClientError ¶
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶
type GetUserParams struct { 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 ¶
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 ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.
func NewGetUserParamsWithHTTPClient ¶
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 ¶
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 ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetDefaults ¶
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 ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithDefaults ¶
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 ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WriteToRequest ¶
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserUnauthorized ¶
type GetUserUnauthorized struct { }
GetUserUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGetUserUnauthorized ¶
func NewGetUserUnauthorized() *GetUserUnauthorized
NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values
func (*GetUserUnauthorized) Code ¶
func (o *GetUserUnauthorized) Code() int
Code gets the status code for the get user unauthorized response
func (*GetUserUnauthorized) Error ¶
func (o *GetUserUnauthorized) Error() string
func (*GetUserUnauthorized) IsClientError ¶
func (o *GetUserUnauthorized) IsClientError() bool
IsClientError returns true when this get user unauthorized response has a 4xx status code
func (*GetUserUnauthorized) IsCode ¶
func (o *GetUserUnauthorized) IsCode(code int) bool
IsCode returns true when this get user unauthorized response a status code equal to that given
func (*GetUserUnauthorized) IsRedirect ¶
func (o *GetUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this get user unauthorized response has a 3xx status code
func (*GetUserUnauthorized) IsServerError ¶
func (o *GetUserUnauthorized) IsServerError() bool
IsServerError returns true when this get user unauthorized response has a 5xx status code
func (*GetUserUnauthorized) IsSuccess ¶
func (o *GetUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this get user unauthorized response has a 2xx status code
func (*GetUserUnauthorized) String ¶
func (o *GetUserUnauthorized) String() string
type UserEmailChangeAccepted ¶
UserEmailChangeAccepted describes a response with status code 202, with default header values.
Accepted: email change is processing; check your inbox to confirm new address.
func NewUserEmailChangeAccepted ¶
func NewUserEmailChangeAccepted() *UserEmailChangeAccepted
NewUserEmailChangeAccepted creates a UserEmailChangeAccepted with default headers values
func (*UserEmailChangeAccepted) Code ¶
func (o *UserEmailChangeAccepted) Code() int
Code gets the status code for the user email change accepted response
func (*UserEmailChangeAccepted) Error ¶
func (o *UserEmailChangeAccepted) Error() string
func (*UserEmailChangeAccepted) GetPayload ¶
func (o *UserEmailChangeAccepted) GetPayload() *models.User
func (*UserEmailChangeAccepted) IsClientError ¶
func (o *UserEmailChangeAccepted) IsClientError() bool
IsClientError returns true when this user email change accepted response has a 4xx status code
func (*UserEmailChangeAccepted) IsCode ¶
func (o *UserEmailChangeAccepted) IsCode(code int) bool
IsCode returns true when this user email change accepted response a status code equal to that given
func (*UserEmailChangeAccepted) IsRedirect ¶
func (o *UserEmailChangeAccepted) IsRedirect() bool
IsRedirect returns true when this user email change accepted response has a 3xx status code
func (*UserEmailChangeAccepted) IsServerError ¶
func (o *UserEmailChangeAccepted) IsServerError() bool
IsServerError returns true when this user email change accepted response has a 5xx status code
func (*UserEmailChangeAccepted) IsSuccess ¶
func (o *UserEmailChangeAccepted) IsSuccess() bool
IsSuccess returns true when this user email change accepted response has a 2xx status code
func (*UserEmailChangeAccepted) String ¶
func (o *UserEmailChangeAccepted) String() string
type UserEmailChangeBadRequest ¶
type UserEmailChangeBadRequest struct { }
UserEmailChangeBadRequest describes a response with status code 400, with default header values.
bad request
func NewUserEmailChangeBadRequest ¶
func NewUserEmailChangeBadRequest() *UserEmailChangeBadRequest
NewUserEmailChangeBadRequest creates a UserEmailChangeBadRequest with default headers values
func (*UserEmailChangeBadRequest) Code ¶
func (o *UserEmailChangeBadRequest) Code() int
Code gets the status code for the user email change bad request response
func (*UserEmailChangeBadRequest) Error ¶
func (o *UserEmailChangeBadRequest) Error() string
func (*UserEmailChangeBadRequest) IsClientError ¶
func (o *UserEmailChangeBadRequest) IsClientError() bool
IsClientError returns true when this user email change bad request response has a 4xx status code
func (*UserEmailChangeBadRequest) IsCode ¶
func (o *UserEmailChangeBadRequest) IsCode(code int) bool
IsCode returns true when this user email change bad request response a status code equal to that given
func (*UserEmailChangeBadRequest) IsRedirect ¶
func (o *UserEmailChangeBadRequest) IsRedirect() bool
IsRedirect returns true when this user email change bad request response has a 3xx status code
func (*UserEmailChangeBadRequest) IsServerError ¶
func (o *UserEmailChangeBadRequest) IsServerError() bool
IsServerError returns true when this user email change bad request response has a 5xx status code
func (*UserEmailChangeBadRequest) IsSuccess ¶
func (o *UserEmailChangeBadRequest) IsSuccess() bool
IsSuccess returns true when this user email change bad request response has a 2xx status code
func (*UserEmailChangeBadRequest) String ¶
func (o *UserEmailChangeBadRequest) String() string
type UserEmailChangeConflict ¶
type UserEmailChangeConflict struct { }
UserEmailChangeConflict describes a response with status code 409, with default header values.
Conflict: desired email address already in use
func NewUserEmailChangeConflict ¶
func NewUserEmailChangeConflict() *UserEmailChangeConflict
NewUserEmailChangeConflict creates a UserEmailChangeConflict with default headers values
func (*UserEmailChangeConflict) Code ¶
func (o *UserEmailChangeConflict) Code() int
Code gets the status code for the user email change conflict response
func (*UserEmailChangeConflict) Error ¶
func (o *UserEmailChangeConflict) Error() string
func (*UserEmailChangeConflict) IsClientError ¶
func (o *UserEmailChangeConflict) IsClientError() bool
IsClientError returns true when this user email change conflict response has a 4xx status code
func (*UserEmailChangeConflict) IsCode ¶
func (o *UserEmailChangeConflict) IsCode(code int) bool
IsCode returns true when this user email change conflict response a status code equal to that given
func (*UserEmailChangeConflict) IsRedirect ¶
func (o *UserEmailChangeConflict) IsRedirect() bool
IsRedirect returns true when this user email change conflict response has a 3xx status code
func (*UserEmailChangeConflict) IsServerError ¶
func (o *UserEmailChangeConflict) IsServerError() bool
IsServerError returns true when this user email change conflict response has a 5xx status code
func (*UserEmailChangeConflict) IsSuccess ¶
func (o *UserEmailChangeConflict) IsSuccess() bool
IsSuccess returns true when this user email change conflict response has a 2xx status code
func (*UserEmailChangeConflict) String ¶
func (o *UserEmailChangeConflict) String() string
type UserEmailChangeForbidden ¶
type UserEmailChangeForbidden struct { }
UserEmailChangeForbidden describes a response with status code 403, with default header values.
forbidden
func NewUserEmailChangeForbidden ¶
func NewUserEmailChangeForbidden() *UserEmailChangeForbidden
NewUserEmailChangeForbidden creates a UserEmailChangeForbidden with default headers values
func (*UserEmailChangeForbidden) Code ¶
func (o *UserEmailChangeForbidden) Code() int
Code gets the status code for the user email change forbidden response
func (*UserEmailChangeForbidden) Error ¶
func (o *UserEmailChangeForbidden) Error() string
func (*UserEmailChangeForbidden) IsClientError ¶
func (o *UserEmailChangeForbidden) IsClientError() bool
IsClientError returns true when this user email change forbidden response has a 4xx status code
func (*UserEmailChangeForbidden) IsCode ¶
func (o *UserEmailChangeForbidden) IsCode(code int) bool
IsCode returns true when this user email change forbidden response a status code equal to that given
func (*UserEmailChangeForbidden) IsRedirect ¶
func (o *UserEmailChangeForbidden) IsRedirect() bool
IsRedirect returns true when this user email change forbidden response has a 3xx status code
func (*UserEmailChangeForbidden) IsServerError ¶
func (o *UserEmailChangeForbidden) IsServerError() bool
IsServerError returns true when this user email change forbidden response has a 5xx status code
func (*UserEmailChangeForbidden) IsSuccess ¶
func (o *UserEmailChangeForbidden) IsSuccess() bool
IsSuccess returns true when this user email change forbidden response has a 2xx status code
func (*UserEmailChangeForbidden) String ¶
func (o *UserEmailChangeForbidden) String() string
type UserEmailChangeInternalServerError ¶
type UserEmailChangeInternalServerError struct { }
UserEmailChangeInternalServerError describes a response with status code 500, with default header values.
internal error
func NewUserEmailChangeInternalServerError ¶
func NewUserEmailChangeInternalServerError() *UserEmailChangeInternalServerError
NewUserEmailChangeInternalServerError creates a UserEmailChangeInternalServerError with default headers values
func (*UserEmailChangeInternalServerError) Code ¶
func (o *UserEmailChangeInternalServerError) Code() int
Code gets the status code for the user email change internal server error response
func (*UserEmailChangeInternalServerError) Error ¶
func (o *UserEmailChangeInternalServerError) Error() string
func (*UserEmailChangeInternalServerError) IsClientError ¶
func (o *UserEmailChangeInternalServerError) IsClientError() bool
IsClientError returns true when this user email change internal server error response has a 4xx status code
func (*UserEmailChangeInternalServerError) IsCode ¶
func (o *UserEmailChangeInternalServerError) IsCode(code int) bool
IsCode returns true when this user email change internal server error response a status code equal to that given
func (*UserEmailChangeInternalServerError) IsRedirect ¶
func (o *UserEmailChangeInternalServerError) IsRedirect() bool
IsRedirect returns true when this user email change internal server error response has a 3xx status code
func (*UserEmailChangeInternalServerError) IsServerError ¶
func (o *UserEmailChangeInternalServerError) IsServerError() bool
IsServerError returns true when this user email change internal server error response has a 5xx status code
func (*UserEmailChangeInternalServerError) IsSuccess ¶
func (o *UserEmailChangeInternalServerError) IsSuccess() bool
IsSuccess returns true when this user email change internal server error response has a 2xx status code
func (*UserEmailChangeInternalServerError) String ¶
func (o *UserEmailChangeInternalServerError) String() string
type UserEmailChangeNotAcceptable ¶
type UserEmailChangeNotAcceptable struct { }
UserEmailChangeNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewUserEmailChangeNotAcceptable ¶
func NewUserEmailChangeNotAcceptable() *UserEmailChangeNotAcceptable
NewUserEmailChangeNotAcceptable creates a UserEmailChangeNotAcceptable with default headers values
func (*UserEmailChangeNotAcceptable) Code ¶
func (o *UserEmailChangeNotAcceptable) Code() int
Code gets the status code for the user email change not acceptable response
func (*UserEmailChangeNotAcceptable) Error ¶
func (o *UserEmailChangeNotAcceptable) Error() string
func (*UserEmailChangeNotAcceptable) IsClientError ¶
func (o *UserEmailChangeNotAcceptable) IsClientError() bool
IsClientError returns true when this user email change not acceptable response has a 4xx status code
func (*UserEmailChangeNotAcceptable) IsCode ¶
func (o *UserEmailChangeNotAcceptable) IsCode(code int) bool
IsCode returns true when this user email change not acceptable response a status code equal to that given
func (*UserEmailChangeNotAcceptable) IsRedirect ¶
func (o *UserEmailChangeNotAcceptable) IsRedirect() bool
IsRedirect returns true when this user email change not acceptable response has a 3xx status code
func (*UserEmailChangeNotAcceptable) IsServerError ¶
func (o *UserEmailChangeNotAcceptable) IsServerError() bool
IsServerError returns true when this user email change not acceptable response has a 5xx status code
func (*UserEmailChangeNotAcceptable) IsSuccess ¶
func (o *UserEmailChangeNotAcceptable) IsSuccess() bool
IsSuccess returns true when this user email change not acceptable response has a 2xx status code
func (*UserEmailChangeNotAcceptable) String ¶
func (o *UserEmailChangeNotAcceptable) String() string
type UserEmailChangeParams ¶
type UserEmailChangeParams struct { /* NewEmail. Desired new email address. */ NewEmail string /* Password. User's current password, for verification. */ Password string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UserEmailChangeParams contains all the parameters to send to the API endpoint
for the user email change operation. Typically these are written to a http.Request.
func NewUserEmailChangeParams ¶
func NewUserEmailChangeParams() *UserEmailChangeParams
NewUserEmailChangeParams creates a new UserEmailChangeParams 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 NewUserEmailChangeParamsWithContext ¶
func NewUserEmailChangeParamsWithContext(ctx context.Context) *UserEmailChangeParams
NewUserEmailChangeParamsWithContext creates a new UserEmailChangeParams object with the ability to set a context for a request.
func NewUserEmailChangeParamsWithHTTPClient ¶
func NewUserEmailChangeParamsWithHTTPClient(client *http.Client) *UserEmailChangeParams
NewUserEmailChangeParamsWithHTTPClient creates a new UserEmailChangeParams object with the ability to set a custom HTTPClient for a request.
func NewUserEmailChangeParamsWithTimeout ¶
func NewUserEmailChangeParamsWithTimeout(timeout time.Duration) *UserEmailChangeParams
NewUserEmailChangeParamsWithTimeout creates a new UserEmailChangeParams object with the ability to set a timeout on a request.
func (*UserEmailChangeParams) SetContext ¶
func (o *UserEmailChangeParams) SetContext(ctx context.Context)
SetContext adds the context to the user email change params
func (*UserEmailChangeParams) SetDefaults ¶
func (o *UserEmailChangeParams) SetDefaults()
SetDefaults hydrates default values in the user email change params (not the query body).
All values with no default are reset to their zero value.
func (*UserEmailChangeParams) SetHTTPClient ¶
func (o *UserEmailChangeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user email change params
func (*UserEmailChangeParams) SetNewEmail ¶
func (o *UserEmailChangeParams) SetNewEmail(newEmail string)
SetNewEmail adds the newEmail to the user email change params
func (*UserEmailChangeParams) SetPassword ¶
func (o *UserEmailChangeParams) SetPassword(password string)
SetPassword adds the password to the user email change params
func (*UserEmailChangeParams) SetTimeout ¶
func (o *UserEmailChangeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user email change params
func (*UserEmailChangeParams) WithContext ¶
func (o *UserEmailChangeParams) WithContext(ctx context.Context) *UserEmailChangeParams
WithContext adds the context to the user email change params
func (*UserEmailChangeParams) WithDefaults ¶
func (o *UserEmailChangeParams) WithDefaults() *UserEmailChangeParams
WithDefaults hydrates default values in the user email change params (not the query body).
All values with no default are reset to their zero value.
func (*UserEmailChangeParams) WithHTTPClient ¶
func (o *UserEmailChangeParams) WithHTTPClient(client *http.Client) *UserEmailChangeParams
WithHTTPClient adds the HTTPClient to the user email change params
func (*UserEmailChangeParams) WithNewEmail ¶
func (o *UserEmailChangeParams) WithNewEmail(newEmail string) *UserEmailChangeParams
WithNewEmail adds the newEmail to the user email change params
func (*UserEmailChangeParams) WithPassword ¶
func (o *UserEmailChangeParams) WithPassword(password string) *UserEmailChangeParams
WithPassword adds the password to the user email change params
func (*UserEmailChangeParams) WithTimeout ¶
func (o *UserEmailChangeParams) WithTimeout(timeout time.Duration) *UserEmailChangeParams
WithTimeout adds the timeout to the user email change params
func (*UserEmailChangeParams) WriteToRequest ¶
func (o *UserEmailChangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserEmailChangeReader ¶
type UserEmailChangeReader struct {
// contains filtered or unexported fields
}
UserEmailChangeReader is a Reader for the UserEmailChange structure.
func (*UserEmailChangeReader) ReadResponse ¶
func (o *UserEmailChangeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserEmailChangeUnauthorized ¶
type UserEmailChangeUnauthorized struct { }
UserEmailChangeUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewUserEmailChangeUnauthorized ¶
func NewUserEmailChangeUnauthorized() *UserEmailChangeUnauthorized
NewUserEmailChangeUnauthorized creates a UserEmailChangeUnauthorized with default headers values
func (*UserEmailChangeUnauthorized) Code ¶
func (o *UserEmailChangeUnauthorized) Code() int
Code gets the status code for the user email change unauthorized response
func (*UserEmailChangeUnauthorized) Error ¶
func (o *UserEmailChangeUnauthorized) Error() string
func (*UserEmailChangeUnauthorized) IsClientError ¶
func (o *UserEmailChangeUnauthorized) IsClientError() bool
IsClientError returns true when this user email change unauthorized response has a 4xx status code
func (*UserEmailChangeUnauthorized) IsCode ¶
func (o *UserEmailChangeUnauthorized) IsCode(code int) bool
IsCode returns true when this user email change unauthorized response a status code equal to that given
func (*UserEmailChangeUnauthorized) IsRedirect ¶
func (o *UserEmailChangeUnauthorized) IsRedirect() bool
IsRedirect returns true when this user email change unauthorized response has a 3xx status code
func (*UserEmailChangeUnauthorized) IsServerError ¶
func (o *UserEmailChangeUnauthorized) IsServerError() bool
IsServerError returns true when this user email change unauthorized response has a 5xx status code
func (*UserEmailChangeUnauthorized) IsSuccess ¶
func (o *UserEmailChangeUnauthorized) IsSuccess() bool
IsSuccess returns true when this user email change unauthorized response has a 2xx status code
func (*UserEmailChangeUnauthorized) String ¶
func (o *UserEmailChangeUnauthorized) String() string
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
type UserPasswordChangeUnprocessableEntity ¶
type UserPasswordChangeUnprocessableEntity struct { }
UserPasswordChangeUnprocessableEntity describes a response with status code 422, with default header values.
unprocessable request because instance is running with OIDC backend
func NewUserPasswordChangeUnprocessableEntity ¶
func NewUserPasswordChangeUnprocessableEntity() *UserPasswordChangeUnprocessableEntity
NewUserPasswordChangeUnprocessableEntity creates a UserPasswordChangeUnprocessableEntity with default headers values
func (*UserPasswordChangeUnprocessableEntity) Code ¶
func (o *UserPasswordChangeUnprocessableEntity) Code() int
Code gets the status code for the user password change unprocessable entity response
func (*UserPasswordChangeUnprocessableEntity) Error ¶
func (o *UserPasswordChangeUnprocessableEntity) Error() string
func (*UserPasswordChangeUnprocessableEntity) IsClientError ¶
func (o *UserPasswordChangeUnprocessableEntity) IsClientError() bool
IsClientError returns true when this user password change unprocessable entity response has a 4xx status code
func (*UserPasswordChangeUnprocessableEntity) IsCode ¶
func (o *UserPasswordChangeUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this user password change unprocessable entity response a status code equal to that given
func (*UserPasswordChangeUnprocessableEntity) IsRedirect ¶
func (o *UserPasswordChangeUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this user password change unprocessable entity response has a 3xx status code
func (*UserPasswordChangeUnprocessableEntity) IsServerError ¶
func (o *UserPasswordChangeUnprocessableEntity) IsServerError() bool
IsServerError returns true when this user password change unprocessable entity response has a 5xx status code
func (*UserPasswordChangeUnprocessableEntity) IsSuccess ¶
func (o *UserPasswordChangeUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this user password change unprocessable entity response has a 2xx status code
func (*UserPasswordChangeUnprocessableEntity) String ¶
func (o *UserPasswordChangeUnprocessableEntity) String() string