Documentation ¶
Index ¶
- type Client
- func (a *Client) InitUserEmailRecovery(params *InitUserEmailRecoveryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*InitUserEmailRecoveryOK, error)
- func (a *Client) RecoverUser(params *RecoverUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RecoverUserOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type InitUserEmailRecoveryOK
- func (o *InitUserEmailRecoveryOK) Code() int
- func (o *InitUserEmailRecoveryOK) Error() string
- func (o *InitUserEmailRecoveryOK) GetPayload() *models.ActivityResponse
- func (o *InitUserEmailRecoveryOK) IsClientError() bool
- func (o *InitUserEmailRecoveryOK) IsCode(code int) bool
- func (o *InitUserEmailRecoveryOK) IsRedirect() bool
- func (o *InitUserEmailRecoveryOK) IsServerError() bool
- func (o *InitUserEmailRecoveryOK) IsSuccess() bool
- func (o *InitUserEmailRecoveryOK) String() string
- type InitUserEmailRecoveryParams
- func NewInitUserEmailRecoveryParams() *InitUserEmailRecoveryParams
- func NewInitUserEmailRecoveryParamsWithContext(ctx context.Context) *InitUserEmailRecoveryParams
- func NewInitUserEmailRecoveryParamsWithHTTPClient(client *http.Client) *InitUserEmailRecoveryParams
- func NewInitUserEmailRecoveryParamsWithTimeout(timeout time.Duration) *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) SetBody(body *models.InitUserEmailRecoveryRequest)
- func (o *InitUserEmailRecoveryParams) SetContext(ctx context.Context)
- func (o *InitUserEmailRecoveryParams) SetDefaults()
- func (o *InitUserEmailRecoveryParams) SetHTTPClient(client *http.Client)
- func (o *InitUserEmailRecoveryParams) SetTimeout(timeout time.Duration)
- func (o *InitUserEmailRecoveryParams) WithBody(body *models.InitUserEmailRecoveryRequest) *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) WithContext(ctx context.Context) *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) WithDefaults() *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) WithHTTPClient(client *http.Client) *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) WithTimeout(timeout time.Duration) *InitUserEmailRecoveryParams
- func (o *InitUserEmailRecoveryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InitUserEmailRecoveryReader
- type RecoverUserOK
- func (o *RecoverUserOK) Code() int
- func (o *RecoverUserOK) Error() string
- func (o *RecoverUserOK) GetPayload() *models.ActivityResponse
- func (o *RecoverUserOK) IsClientError() bool
- func (o *RecoverUserOK) IsCode(code int) bool
- func (o *RecoverUserOK) IsRedirect() bool
- func (o *RecoverUserOK) IsServerError() bool
- func (o *RecoverUserOK) IsSuccess() bool
- func (o *RecoverUserOK) String() string
- type RecoverUserParams
- func (o *RecoverUserParams) SetBody(body *models.RecoverUserRequest)
- func (o *RecoverUserParams) SetContext(ctx context.Context)
- func (o *RecoverUserParams) SetDefaults()
- func (o *RecoverUserParams) SetHTTPClient(client *http.Client)
- func (o *RecoverUserParams) SetTimeout(timeout time.Duration)
- func (o *RecoverUserParams) WithBody(body *models.RecoverUserRequest) *RecoverUserParams
- func (o *RecoverUserParams) WithContext(ctx context.Context) *RecoverUserParams
- func (o *RecoverUserParams) WithDefaults() *RecoverUserParams
- func (o *RecoverUserParams) WithHTTPClient(client *http.Client) *RecoverUserParams
- func (o *RecoverUserParams) WithTimeout(timeout time.Duration) *RecoverUserParams
- func (o *RecoverUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RecoverUserReader
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 recovery API
func (*Client) InitUserEmailRecovery ¶
func (a *Client) InitUserEmailRecovery(params *InitUserEmailRecoveryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitUserEmailRecoveryOK, error)
InitUserEmailRecovery inits email recovery
Initializes a new email recovery
func (*Client) RecoverUser ¶
func (a *Client) RecoverUser(params *RecoverUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RecoverUserOK, error)
RecoverUser recovers a user
Completes the process of recovering a user by adding an authenticator
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { InitUserEmailRecovery(params *InitUserEmailRecoveryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitUserEmailRecoveryOK, error) RecoverUser(params *RecoverUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RecoverUserOK, 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 recovery API client.
type InitUserEmailRecoveryOK ¶
type InitUserEmailRecoveryOK struct {
Payload *models.ActivityResponse
}
InitUserEmailRecoveryOK describes a response with status code 200, with default header values.
A successful response.
func NewInitUserEmailRecoveryOK ¶
func NewInitUserEmailRecoveryOK() *InitUserEmailRecoveryOK
NewInitUserEmailRecoveryOK creates a InitUserEmailRecoveryOK with default headers values
func (*InitUserEmailRecoveryOK) Code ¶
func (o *InitUserEmailRecoveryOK) Code() int
Code gets the status code for the init user email recovery o k response
func (*InitUserEmailRecoveryOK) Error ¶
func (o *InitUserEmailRecoveryOK) Error() string
func (*InitUserEmailRecoveryOK) GetPayload ¶
func (o *InitUserEmailRecoveryOK) GetPayload() *models.ActivityResponse
func (*InitUserEmailRecoveryOK) IsClientError ¶
func (o *InitUserEmailRecoveryOK) IsClientError() bool
IsClientError returns true when this init user email recovery o k response has a 4xx status code
func (*InitUserEmailRecoveryOK) IsCode ¶
func (o *InitUserEmailRecoveryOK) IsCode(code int) bool
IsCode returns true when this init user email recovery o k response a status code equal to that given
func (*InitUserEmailRecoveryOK) IsRedirect ¶
func (o *InitUserEmailRecoveryOK) IsRedirect() bool
IsRedirect returns true when this init user email recovery o k response has a 3xx status code
func (*InitUserEmailRecoveryOK) IsServerError ¶
func (o *InitUserEmailRecoveryOK) IsServerError() bool
IsServerError returns true when this init user email recovery o k response has a 5xx status code
func (*InitUserEmailRecoveryOK) IsSuccess ¶
func (o *InitUserEmailRecoveryOK) IsSuccess() bool
IsSuccess returns true when this init user email recovery o k response has a 2xx status code
func (*InitUserEmailRecoveryOK) String ¶
func (o *InitUserEmailRecoveryOK) String() string
type InitUserEmailRecoveryParams ¶
type InitUserEmailRecoveryParams struct { // Body. Body *models.InitUserEmailRecoveryRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InitUserEmailRecoveryParams contains all the parameters to send to the API endpoint
for the init user email recovery operation. Typically these are written to a http.Request.
func NewInitUserEmailRecoveryParams ¶
func NewInitUserEmailRecoveryParams() *InitUserEmailRecoveryParams
NewInitUserEmailRecoveryParams creates a new InitUserEmailRecoveryParams 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 NewInitUserEmailRecoveryParamsWithContext ¶
func NewInitUserEmailRecoveryParamsWithContext(ctx context.Context) *InitUserEmailRecoveryParams
NewInitUserEmailRecoveryParamsWithContext creates a new InitUserEmailRecoveryParams object with the ability to set a context for a request.
func NewInitUserEmailRecoveryParamsWithHTTPClient ¶
func NewInitUserEmailRecoveryParamsWithHTTPClient(client *http.Client) *InitUserEmailRecoveryParams
NewInitUserEmailRecoveryParamsWithHTTPClient creates a new InitUserEmailRecoveryParams object with the ability to set a custom HTTPClient for a request.
func NewInitUserEmailRecoveryParamsWithTimeout ¶
func NewInitUserEmailRecoveryParamsWithTimeout(timeout time.Duration) *InitUserEmailRecoveryParams
NewInitUserEmailRecoveryParamsWithTimeout creates a new InitUserEmailRecoveryParams object with the ability to set a timeout on a request.
func (*InitUserEmailRecoveryParams) SetBody ¶
func (o *InitUserEmailRecoveryParams) SetBody(body *models.InitUserEmailRecoveryRequest)
SetBody adds the body to the init user email recovery params
func (*InitUserEmailRecoveryParams) SetContext ¶
func (o *InitUserEmailRecoveryParams) SetContext(ctx context.Context)
SetContext adds the context to the init user email recovery params
func (*InitUserEmailRecoveryParams) SetDefaults ¶
func (o *InitUserEmailRecoveryParams) SetDefaults()
SetDefaults hydrates default values in the init user email recovery params (not the query body).
All values with no default are reset to their zero value.
func (*InitUserEmailRecoveryParams) SetHTTPClient ¶
func (o *InitUserEmailRecoveryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the init user email recovery params
func (*InitUserEmailRecoveryParams) SetTimeout ¶
func (o *InitUserEmailRecoveryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the init user email recovery params
func (*InitUserEmailRecoveryParams) WithBody ¶
func (o *InitUserEmailRecoveryParams) WithBody(body *models.InitUserEmailRecoveryRequest) *InitUserEmailRecoveryParams
WithBody adds the body to the init user email recovery params
func (*InitUserEmailRecoveryParams) WithContext ¶
func (o *InitUserEmailRecoveryParams) WithContext(ctx context.Context) *InitUserEmailRecoveryParams
WithContext adds the context to the init user email recovery params
func (*InitUserEmailRecoveryParams) WithDefaults ¶
func (o *InitUserEmailRecoveryParams) WithDefaults() *InitUserEmailRecoveryParams
WithDefaults hydrates default values in the init user email recovery params (not the query body).
All values with no default are reset to their zero value.
func (*InitUserEmailRecoveryParams) WithHTTPClient ¶
func (o *InitUserEmailRecoveryParams) WithHTTPClient(client *http.Client) *InitUserEmailRecoveryParams
WithHTTPClient adds the HTTPClient to the init user email recovery params
func (*InitUserEmailRecoveryParams) WithTimeout ¶
func (o *InitUserEmailRecoveryParams) WithTimeout(timeout time.Duration) *InitUserEmailRecoveryParams
WithTimeout adds the timeout to the init user email recovery params
func (*InitUserEmailRecoveryParams) WriteToRequest ¶
func (o *InitUserEmailRecoveryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InitUserEmailRecoveryReader ¶
type InitUserEmailRecoveryReader struct {
// contains filtered or unexported fields
}
InitUserEmailRecoveryReader is a Reader for the InitUserEmailRecovery structure.
func (*InitUserEmailRecoveryReader) ReadResponse ¶
func (o *InitUserEmailRecoveryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RecoverUserOK ¶
type RecoverUserOK struct {
Payload *models.ActivityResponse
}
RecoverUserOK describes a response with status code 200, with default header values.
A successful response.
func NewRecoverUserOK ¶
func NewRecoverUserOK() *RecoverUserOK
NewRecoverUserOK creates a RecoverUserOK with default headers values
func (*RecoverUserOK) Code ¶
func (o *RecoverUserOK) Code() int
Code gets the status code for the recover user o k response
func (*RecoverUserOK) Error ¶
func (o *RecoverUserOK) Error() string
func (*RecoverUserOK) GetPayload ¶
func (o *RecoverUserOK) GetPayload() *models.ActivityResponse
func (*RecoverUserOK) IsClientError ¶
func (o *RecoverUserOK) IsClientError() bool
IsClientError returns true when this recover user o k response has a 4xx status code
func (*RecoverUserOK) IsCode ¶
func (o *RecoverUserOK) IsCode(code int) bool
IsCode returns true when this recover user o k response a status code equal to that given
func (*RecoverUserOK) IsRedirect ¶
func (o *RecoverUserOK) IsRedirect() bool
IsRedirect returns true when this recover user o k response has a 3xx status code
func (*RecoverUserOK) IsServerError ¶
func (o *RecoverUserOK) IsServerError() bool
IsServerError returns true when this recover user o k response has a 5xx status code
func (*RecoverUserOK) IsSuccess ¶
func (o *RecoverUserOK) IsSuccess() bool
IsSuccess returns true when this recover user o k response has a 2xx status code
func (*RecoverUserOK) String ¶
func (o *RecoverUserOK) String() string
type RecoverUserParams ¶
type RecoverUserParams struct { // Body. Body *models.RecoverUserRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RecoverUserParams contains all the parameters to send to the API endpoint
for the recover user operation. Typically these are written to a http.Request.
func NewRecoverUserParams ¶
func NewRecoverUserParams() *RecoverUserParams
NewRecoverUserParams creates a new RecoverUserParams 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 NewRecoverUserParamsWithContext ¶
func NewRecoverUserParamsWithContext(ctx context.Context) *RecoverUserParams
NewRecoverUserParamsWithContext creates a new RecoverUserParams object with the ability to set a context for a request.
func NewRecoverUserParamsWithHTTPClient ¶
func NewRecoverUserParamsWithHTTPClient(client *http.Client) *RecoverUserParams
NewRecoverUserParamsWithHTTPClient creates a new RecoverUserParams object with the ability to set a custom HTTPClient for a request.
func NewRecoverUserParamsWithTimeout ¶
func NewRecoverUserParamsWithTimeout(timeout time.Duration) *RecoverUserParams
NewRecoverUserParamsWithTimeout creates a new RecoverUserParams object with the ability to set a timeout on a request.
func (*RecoverUserParams) SetBody ¶
func (o *RecoverUserParams) SetBody(body *models.RecoverUserRequest)
SetBody adds the body to the recover user params
func (*RecoverUserParams) SetContext ¶
func (o *RecoverUserParams) SetContext(ctx context.Context)
SetContext adds the context to the recover user params
func (*RecoverUserParams) SetDefaults ¶
func (o *RecoverUserParams) SetDefaults()
SetDefaults hydrates default values in the recover user params (not the query body).
All values with no default are reset to their zero value.
func (*RecoverUserParams) SetHTTPClient ¶
func (o *RecoverUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the recover user params
func (*RecoverUserParams) SetTimeout ¶
func (o *RecoverUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the recover user params
func (*RecoverUserParams) WithBody ¶
func (o *RecoverUserParams) WithBody(body *models.RecoverUserRequest) *RecoverUserParams
WithBody adds the body to the recover user params
func (*RecoverUserParams) WithContext ¶
func (o *RecoverUserParams) WithContext(ctx context.Context) *RecoverUserParams
WithContext adds the context to the recover user params
func (*RecoverUserParams) WithDefaults ¶
func (o *RecoverUserParams) WithDefaults() *RecoverUserParams
WithDefaults hydrates default values in the recover user params (not the query body).
All values with no default are reset to their zero value.
func (*RecoverUserParams) WithHTTPClient ¶
func (o *RecoverUserParams) WithHTTPClient(client *http.Client) *RecoverUserParams
WithHTTPClient adds the HTTPClient to the recover user params
func (*RecoverUserParams) WithTimeout ¶
func (o *RecoverUserParams) WithTimeout(timeout time.Duration) *RecoverUserParams
WithTimeout adds the timeout to the recover user params
func (*RecoverUserParams) WriteToRequest ¶
func (o *RecoverUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RecoverUserReader ¶
type RecoverUserReader struct {
// contains filtered or unexported fields
}
RecoverUserReader is a Reader for the RecoverUser structure.
func (*RecoverUserReader) ReadResponse ¶
func (o *RecoverUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.