Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateOauthProviders(params *CreateOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateOauthProvidersOK, error)
- func (a *Client) DeleteOauthProviders(params *DeleteOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteOauthProvidersOK, error)
- func (a *Client) EmailAuth(params *EmailAuthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*EmailAuthOK, error)
- func (a *Client) GetOauthProviders(params *GetOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetOauthProvidersOK, error)
- func (a *Client) InitOtpAuth(params *InitOtpAuthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*InitOtpAuthOK, error)
- func (a *Client) Oauth(params *OauthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*OauthOK, error)
- func (a *Client) OtpAuth(params *OtpAuthParams, authInfo runtime.ClientAuthInfoWriter, ...) (*OtpAuthOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateOauthProvidersOK
- func (o *CreateOauthProvidersOK) Code() int
- func (o *CreateOauthProvidersOK) Error() string
- func (o *CreateOauthProvidersOK) GetPayload() *models.ActivityResponse
- func (o *CreateOauthProvidersOK) IsClientError() bool
- func (o *CreateOauthProvidersOK) IsCode(code int) bool
- func (o *CreateOauthProvidersOK) IsRedirect() bool
- func (o *CreateOauthProvidersOK) IsServerError() bool
- func (o *CreateOauthProvidersOK) IsSuccess() bool
- func (o *CreateOauthProvidersOK) String() string
- type CreateOauthProvidersParams
- func NewCreateOauthProvidersParams() *CreateOauthProvidersParams
- func NewCreateOauthProvidersParamsWithContext(ctx context.Context) *CreateOauthProvidersParams
- func NewCreateOauthProvidersParamsWithHTTPClient(client *http.Client) *CreateOauthProvidersParams
- func NewCreateOauthProvidersParamsWithTimeout(timeout time.Duration) *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) SetBody(body *models.CreateOauthProvidersRequest)
- func (o *CreateOauthProvidersParams) SetContext(ctx context.Context)
- func (o *CreateOauthProvidersParams) SetDefaults()
- func (o *CreateOauthProvidersParams) SetHTTPClient(client *http.Client)
- func (o *CreateOauthProvidersParams) SetTimeout(timeout time.Duration)
- func (o *CreateOauthProvidersParams) WithBody(body *models.CreateOauthProvidersRequest) *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) WithContext(ctx context.Context) *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) WithDefaults() *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) WithHTTPClient(client *http.Client) *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) WithTimeout(timeout time.Duration) *CreateOauthProvidersParams
- func (o *CreateOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateOauthProvidersReader
- type DeleteOauthProvidersOK
- func (o *DeleteOauthProvidersOK) Code() int
- func (o *DeleteOauthProvidersOK) Error() string
- func (o *DeleteOauthProvidersOK) GetPayload() *models.ActivityResponse
- func (o *DeleteOauthProvidersOK) IsClientError() bool
- func (o *DeleteOauthProvidersOK) IsCode(code int) bool
- func (o *DeleteOauthProvidersOK) IsRedirect() bool
- func (o *DeleteOauthProvidersOK) IsServerError() bool
- func (o *DeleteOauthProvidersOK) IsSuccess() bool
- func (o *DeleteOauthProvidersOK) String() string
- type DeleteOauthProvidersParams
- func NewDeleteOauthProvidersParams() *DeleteOauthProvidersParams
- func NewDeleteOauthProvidersParamsWithContext(ctx context.Context) *DeleteOauthProvidersParams
- func NewDeleteOauthProvidersParamsWithHTTPClient(client *http.Client) *DeleteOauthProvidersParams
- func NewDeleteOauthProvidersParamsWithTimeout(timeout time.Duration) *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) SetBody(body *models.DeleteOauthProvidersRequest)
- func (o *DeleteOauthProvidersParams) SetContext(ctx context.Context)
- func (o *DeleteOauthProvidersParams) SetDefaults()
- func (o *DeleteOauthProvidersParams) SetHTTPClient(client *http.Client)
- func (o *DeleteOauthProvidersParams) SetTimeout(timeout time.Duration)
- func (o *DeleteOauthProvidersParams) WithBody(body *models.DeleteOauthProvidersRequest) *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) WithContext(ctx context.Context) *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) WithDefaults() *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) WithHTTPClient(client *http.Client) *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) WithTimeout(timeout time.Duration) *DeleteOauthProvidersParams
- func (o *DeleteOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteOauthProvidersReader
- type EmailAuthOK
- func (o *EmailAuthOK) Code() int
- func (o *EmailAuthOK) Error() string
- func (o *EmailAuthOK) GetPayload() *models.ActivityResponse
- func (o *EmailAuthOK) IsClientError() bool
- func (o *EmailAuthOK) IsCode(code int) bool
- func (o *EmailAuthOK) IsRedirect() bool
- func (o *EmailAuthOK) IsServerError() bool
- func (o *EmailAuthOK) IsSuccess() bool
- func (o *EmailAuthOK) String() string
- type EmailAuthParams
- func (o *EmailAuthParams) SetBody(body *models.EmailAuthRequest)
- func (o *EmailAuthParams) SetContext(ctx context.Context)
- func (o *EmailAuthParams) SetDefaults()
- func (o *EmailAuthParams) SetHTTPClient(client *http.Client)
- func (o *EmailAuthParams) SetTimeout(timeout time.Duration)
- func (o *EmailAuthParams) WithBody(body *models.EmailAuthRequest) *EmailAuthParams
- func (o *EmailAuthParams) WithContext(ctx context.Context) *EmailAuthParams
- func (o *EmailAuthParams) WithDefaults() *EmailAuthParams
- func (o *EmailAuthParams) WithHTTPClient(client *http.Client) *EmailAuthParams
- func (o *EmailAuthParams) WithTimeout(timeout time.Duration) *EmailAuthParams
- func (o *EmailAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EmailAuthReader
- type GetOauthProvidersOK
- func (o *GetOauthProvidersOK) Code() int
- func (o *GetOauthProvidersOK) Error() string
- func (o *GetOauthProvidersOK) GetPayload() *models.GetOauthProvidersResponse
- func (o *GetOauthProvidersOK) IsClientError() bool
- func (o *GetOauthProvidersOK) IsCode(code int) bool
- func (o *GetOauthProvidersOK) IsRedirect() bool
- func (o *GetOauthProvidersOK) IsServerError() bool
- func (o *GetOauthProvidersOK) IsSuccess() bool
- func (o *GetOauthProvidersOK) String() string
- type GetOauthProvidersParams
- func NewGetOauthProvidersParams() *GetOauthProvidersParams
- func NewGetOauthProvidersParamsWithContext(ctx context.Context) *GetOauthProvidersParams
- func NewGetOauthProvidersParamsWithHTTPClient(client *http.Client) *GetOauthProvidersParams
- func NewGetOauthProvidersParamsWithTimeout(timeout time.Duration) *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) SetBody(body *models.GetOauthProvidersRequest)
- func (o *GetOauthProvidersParams) SetContext(ctx context.Context)
- func (o *GetOauthProvidersParams) SetDefaults()
- func (o *GetOauthProvidersParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthProvidersParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthProvidersParams) WithBody(body *models.GetOauthProvidersRequest) *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) WithContext(ctx context.Context) *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) WithDefaults() *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) WithHTTPClient(client *http.Client) *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) WithTimeout(timeout time.Duration) *GetOauthProvidersParams
- func (o *GetOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthProvidersReader
- type InitOtpAuthOK
- func (o *InitOtpAuthOK) Code() int
- func (o *InitOtpAuthOK) Error() string
- func (o *InitOtpAuthOK) GetPayload() *models.ActivityResponse
- func (o *InitOtpAuthOK) IsClientError() bool
- func (o *InitOtpAuthOK) IsCode(code int) bool
- func (o *InitOtpAuthOK) IsRedirect() bool
- func (o *InitOtpAuthOK) IsServerError() bool
- func (o *InitOtpAuthOK) IsSuccess() bool
- func (o *InitOtpAuthOK) String() string
- type InitOtpAuthParams
- func (o *InitOtpAuthParams) SetBody(body *models.InitOtpAuthRequest)
- func (o *InitOtpAuthParams) SetContext(ctx context.Context)
- func (o *InitOtpAuthParams) SetDefaults()
- func (o *InitOtpAuthParams) SetHTTPClient(client *http.Client)
- func (o *InitOtpAuthParams) SetTimeout(timeout time.Duration)
- func (o *InitOtpAuthParams) WithBody(body *models.InitOtpAuthRequest) *InitOtpAuthParams
- func (o *InitOtpAuthParams) WithContext(ctx context.Context) *InitOtpAuthParams
- func (o *InitOtpAuthParams) WithDefaults() *InitOtpAuthParams
- func (o *InitOtpAuthParams) WithHTTPClient(client *http.Client) *InitOtpAuthParams
- func (o *InitOtpAuthParams) WithTimeout(timeout time.Duration) *InitOtpAuthParams
- func (o *InitOtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InitOtpAuthReader
- type OauthOK
- func (o *OauthOK) Code() int
- func (o *OauthOK) Error() string
- func (o *OauthOK) GetPayload() *models.ActivityResponse
- func (o *OauthOK) IsClientError() bool
- func (o *OauthOK) IsCode(code int) bool
- func (o *OauthOK) IsRedirect() bool
- func (o *OauthOK) IsServerError() bool
- func (o *OauthOK) IsSuccess() bool
- func (o *OauthOK) String() string
- type OauthParams
- func (o *OauthParams) SetBody(body *models.OauthRequest)
- func (o *OauthParams) SetContext(ctx context.Context)
- func (o *OauthParams) SetDefaults()
- func (o *OauthParams) SetHTTPClient(client *http.Client)
- func (o *OauthParams) SetTimeout(timeout time.Duration)
- func (o *OauthParams) WithBody(body *models.OauthRequest) *OauthParams
- func (o *OauthParams) WithContext(ctx context.Context) *OauthParams
- func (o *OauthParams) WithDefaults() *OauthParams
- func (o *OauthParams) WithHTTPClient(client *http.Client) *OauthParams
- func (o *OauthParams) WithTimeout(timeout time.Duration) *OauthParams
- func (o *OauthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OauthReader
- type OtpAuthOK
- func (o *OtpAuthOK) Code() int
- func (o *OtpAuthOK) Error() string
- func (o *OtpAuthOK) GetPayload() *models.ActivityResponse
- func (o *OtpAuthOK) IsClientError() bool
- func (o *OtpAuthOK) IsCode(code int) bool
- func (o *OtpAuthOK) IsRedirect() bool
- func (o *OtpAuthOK) IsServerError() bool
- func (o *OtpAuthOK) IsSuccess() bool
- func (o *OtpAuthOK) String() string
- type OtpAuthParams
- func (o *OtpAuthParams) SetBody(body *models.OtpAuthRequest)
- func (o *OtpAuthParams) SetContext(ctx context.Context)
- func (o *OtpAuthParams) SetDefaults()
- func (o *OtpAuthParams) SetHTTPClient(client *http.Client)
- func (o *OtpAuthParams) SetTimeout(timeout time.Duration)
- func (o *OtpAuthParams) WithBody(body *models.OtpAuthRequest) *OtpAuthParams
- func (o *OtpAuthParams) WithContext(ctx context.Context) *OtpAuthParams
- func (o *OtpAuthParams) WithDefaults() *OtpAuthParams
- func (o *OtpAuthParams) WithHTTPClient(client *http.Client) *OtpAuthParams
- func (o *OtpAuthParams) WithTimeout(timeout time.Duration) *OtpAuthParams
- func (o *OtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OtpAuthReader
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 auth API
func (*Client) CreateOauthProviders ¶
func (a *Client) CreateOauthProviders(params *CreateOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOauthProvidersOK, error)
CreateOauthProviders creates oauth providers
Creates Oauth providers for a specified user - BETA
func (*Client) DeleteOauthProviders ¶
func (a *Client) DeleteOauthProviders(params *DeleteOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOauthProvidersOK, error)
DeleteOauthProviders deletes oauth providers
Removes Oauth providers for a specified user - BETA
func (*Client) EmailAuth ¶
func (a *Client) EmailAuth(params *EmailAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EmailAuthOK, error)
EmailAuth performs email auth
Authenticate a user via Email
func (*Client) GetOauthProviders ¶
func (a *Client) GetOauthProviders(params *GetOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauthProvidersOK, error)
GetOauthProviders gets oauth providers
Get details about Oauth providers for a user
func (*Client) InitOtpAuth ¶
func (a *Client) InitOtpAuth(params *InitOtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpAuthOK, error)
InitOtpAuth inits o t p auth
Initiate an OTP auth activity
func (*Client) Oauth ¶
func (a *Client) Oauth(params *OauthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OauthOK, error)
Oauth oauths
Authenticate a user with an Oidc token (Oauth) - BETA
func (*Client) OtpAuth ¶
func (a *Client) OtpAuth(params *OtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OtpAuthOK, error)
OtpAuth os t p auth
Authenticate a user with an OTP code sent via email or SMS
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 { CreateOauthProviders(params *CreateOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOauthProvidersOK, error) DeleteOauthProviders(params *DeleteOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOauthProvidersOK, error) EmailAuth(params *EmailAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EmailAuthOK, error) GetOauthProviders(params *GetOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauthProvidersOK, error) InitOtpAuth(params *InitOtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpAuthOK, error) Oauth(params *OauthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OauthOK, error) OtpAuth(params *OtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OtpAuthOK, 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 auth API client.
type CreateOauthProvidersOK ¶
type CreateOauthProvidersOK struct {
Payload *models.ActivityResponse
}
CreateOauthProvidersOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateOauthProvidersOK ¶
func NewCreateOauthProvidersOK() *CreateOauthProvidersOK
NewCreateOauthProvidersOK creates a CreateOauthProvidersOK with default headers values
func (*CreateOauthProvidersOK) Code ¶
func (o *CreateOauthProvidersOK) Code() int
Code gets the status code for the create oauth providers o k response
func (*CreateOauthProvidersOK) Error ¶
func (o *CreateOauthProvidersOK) Error() string
func (*CreateOauthProvidersOK) GetPayload ¶
func (o *CreateOauthProvidersOK) GetPayload() *models.ActivityResponse
func (*CreateOauthProvidersOK) IsClientError ¶
func (o *CreateOauthProvidersOK) IsClientError() bool
IsClientError returns true when this create oauth providers o k response has a 4xx status code
func (*CreateOauthProvidersOK) IsCode ¶
func (o *CreateOauthProvidersOK) IsCode(code int) bool
IsCode returns true when this create oauth providers o k response a status code equal to that given
func (*CreateOauthProvidersOK) IsRedirect ¶
func (o *CreateOauthProvidersOK) IsRedirect() bool
IsRedirect returns true when this create oauth providers o k response has a 3xx status code
func (*CreateOauthProvidersOK) IsServerError ¶
func (o *CreateOauthProvidersOK) IsServerError() bool
IsServerError returns true when this create oauth providers o k response has a 5xx status code
func (*CreateOauthProvidersOK) IsSuccess ¶
func (o *CreateOauthProvidersOK) IsSuccess() bool
IsSuccess returns true when this create oauth providers o k response has a 2xx status code
func (*CreateOauthProvidersOK) String ¶
func (o *CreateOauthProvidersOK) String() string
type CreateOauthProvidersParams ¶
type CreateOauthProvidersParams struct { // Body. Body *models.CreateOauthProvidersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateOauthProvidersParams contains all the parameters to send to the API endpoint
for the create oauth providers operation. Typically these are written to a http.Request.
func NewCreateOauthProvidersParams ¶
func NewCreateOauthProvidersParams() *CreateOauthProvidersParams
NewCreateOauthProvidersParams creates a new CreateOauthProvidersParams 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 NewCreateOauthProvidersParamsWithContext ¶
func NewCreateOauthProvidersParamsWithContext(ctx context.Context) *CreateOauthProvidersParams
NewCreateOauthProvidersParamsWithContext creates a new CreateOauthProvidersParams object with the ability to set a context for a request.
func NewCreateOauthProvidersParamsWithHTTPClient ¶
func NewCreateOauthProvidersParamsWithHTTPClient(client *http.Client) *CreateOauthProvidersParams
NewCreateOauthProvidersParamsWithHTTPClient creates a new CreateOauthProvidersParams object with the ability to set a custom HTTPClient for a request.
func NewCreateOauthProvidersParamsWithTimeout ¶
func NewCreateOauthProvidersParamsWithTimeout(timeout time.Duration) *CreateOauthProvidersParams
NewCreateOauthProvidersParamsWithTimeout creates a new CreateOauthProvidersParams object with the ability to set a timeout on a request.
func (*CreateOauthProvidersParams) SetBody ¶
func (o *CreateOauthProvidersParams) SetBody(body *models.CreateOauthProvidersRequest)
SetBody adds the body to the create oauth providers params
func (*CreateOauthProvidersParams) SetContext ¶
func (o *CreateOauthProvidersParams) SetContext(ctx context.Context)
SetContext adds the context to the create oauth providers params
func (*CreateOauthProvidersParams) SetDefaults ¶
func (o *CreateOauthProvidersParams) SetDefaults()
SetDefaults hydrates default values in the create oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*CreateOauthProvidersParams) SetHTTPClient ¶
func (o *CreateOauthProvidersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create oauth providers params
func (*CreateOauthProvidersParams) SetTimeout ¶
func (o *CreateOauthProvidersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create oauth providers params
func (*CreateOauthProvidersParams) WithBody ¶
func (o *CreateOauthProvidersParams) WithBody(body *models.CreateOauthProvidersRequest) *CreateOauthProvidersParams
WithBody adds the body to the create oauth providers params
func (*CreateOauthProvidersParams) WithContext ¶
func (o *CreateOauthProvidersParams) WithContext(ctx context.Context) *CreateOauthProvidersParams
WithContext adds the context to the create oauth providers params
func (*CreateOauthProvidersParams) WithDefaults ¶
func (o *CreateOauthProvidersParams) WithDefaults() *CreateOauthProvidersParams
WithDefaults hydrates default values in the create oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*CreateOauthProvidersParams) WithHTTPClient ¶
func (o *CreateOauthProvidersParams) WithHTTPClient(client *http.Client) *CreateOauthProvidersParams
WithHTTPClient adds the HTTPClient to the create oauth providers params
func (*CreateOauthProvidersParams) WithTimeout ¶
func (o *CreateOauthProvidersParams) WithTimeout(timeout time.Duration) *CreateOauthProvidersParams
WithTimeout adds the timeout to the create oauth providers params
func (*CreateOauthProvidersParams) WriteToRequest ¶
func (o *CreateOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateOauthProvidersReader ¶
type CreateOauthProvidersReader struct {
// contains filtered or unexported fields
}
CreateOauthProvidersReader is a Reader for the CreateOauthProviders structure.
func (*CreateOauthProvidersReader) ReadResponse ¶
func (o *CreateOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteOauthProvidersOK ¶
type DeleteOauthProvidersOK struct {
Payload *models.ActivityResponse
}
DeleteOauthProvidersOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteOauthProvidersOK ¶
func NewDeleteOauthProvidersOK() *DeleteOauthProvidersOK
NewDeleteOauthProvidersOK creates a DeleteOauthProvidersOK with default headers values
func (*DeleteOauthProvidersOK) Code ¶
func (o *DeleteOauthProvidersOK) Code() int
Code gets the status code for the delete oauth providers o k response
func (*DeleteOauthProvidersOK) Error ¶
func (o *DeleteOauthProvidersOK) Error() string
func (*DeleteOauthProvidersOK) GetPayload ¶
func (o *DeleteOauthProvidersOK) GetPayload() *models.ActivityResponse
func (*DeleteOauthProvidersOK) IsClientError ¶
func (o *DeleteOauthProvidersOK) IsClientError() bool
IsClientError returns true when this delete oauth providers o k response has a 4xx status code
func (*DeleteOauthProvidersOK) IsCode ¶
func (o *DeleteOauthProvidersOK) IsCode(code int) bool
IsCode returns true when this delete oauth providers o k response a status code equal to that given
func (*DeleteOauthProvidersOK) IsRedirect ¶
func (o *DeleteOauthProvidersOK) IsRedirect() bool
IsRedirect returns true when this delete oauth providers o k response has a 3xx status code
func (*DeleteOauthProvidersOK) IsServerError ¶
func (o *DeleteOauthProvidersOK) IsServerError() bool
IsServerError returns true when this delete oauth providers o k response has a 5xx status code
func (*DeleteOauthProvidersOK) IsSuccess ¶
func (o *DeleteOauthProvidersOK) IsSuccess() bool
IsSuccess returns true when this delete oauth providers o k response has a 2xx status code
func (*DeleteOauthProvidersOK) String ¶
func (o *DeleteOauthProvidersOK) String() string
type DeleteOauthProvidersParams ¶
type DeleteOauthProvidersParams struct { // Body. Body *models.DeleteOauthProvidersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteOauthProvidersParams contains all the parameters to send to the API endpoint
for the delete oauth providers operation. Typically these are written to a http.Request.
func NewDeleteOauthProvidersParams ¶
func NewDeleteOauthProvidersParams() *DeleteOauthProvidersParams
NewDeleteOauthProvidersParams creates a new DeleteOauthProvidersParams 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 NewDeleteOauthProvidersParamsWithContext ¶
func NewDeleteOauthProvidersParamsWithContext(ctx context.Context) *DeleteOauthProvidersParams
NewDeleteOauthProvidersParamsWithContext creates a new DeleteOauthProvidersParams object with the ability to set a context for a request.
func NewDeleteOauthProvidersParamsWithHTTPClient ¶
func NewDeleteOauthProvidersParamsWithHTTPClient(client *http.Client) *DeleteOauthProvidersParams
NewDeleteOauthProvidersParamsWithHTTPClient creates a new DeleteOauthProvidersParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteOauthProvidersParamsWithTimeout ¶
func NewDeleteOauthProvidersParamsWithTimeout(timeout time.Duration) *DeleteOauthProvidersParams
NewDeleteOauthProvidersParamsWithTimeout creates a new DeleteOauthProvidersParams object with the ability to set a timeout on a request.
func (*DeleteOauthProvidersParams) SetBody ¶
func (o *DeleteOauthProvidersParams) SetBody(body *models.DeleteOauthProvidersRequest)
SetBody adds the body to the delete oauth providers params
func (*DeleteOauthProvidersParams) SetContext ¶
func (o *DeleteOauthProvidersParams) SetContext(ctx context.Context)
SetContext adds the context to the delete oauth providers params
func (*DeleteOauthProvidersParams) SetDefaults ¶
func (o *DeleteOauthProvidersParams) SetDefaults()
SetDefaults hydrates default values in the delete oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteOauthProvidersParams) SetHTTPClient ¶
func (o *DeleteOauthProvidersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete oauth providers params
func (*DeleteOauthProvidersParams) SetTimeout ¶
func (o *DeleteOauthProvidersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete oauth providers params
func (*DeleteOauthProvidersParams) WithBody ¶
func (o *DeleteOauthProvidersParams) WithBody(body *models.DeleteOauthProvidersRequest) *DeleteOauthProvidersParams
WithBody adds the body to the delete oauth providers params
func (*DeleteOauthProvidersParams) WithContext ¶
func (o *DeleteOauthProvidersParams) WithContext(ctx context.Context) *DeleteOauthProvidersParams
WithContext adds the context to the delete oauth providers params
func (*DeleteOauthProvidersParams) WithDefaults ¶
func (o *DeleteOauthProvidersParams) WithDefaults() *DeleteOauthProvidersParams
WithDefaults hydrates default values in the delete oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteOauthProvidersParams) WithHTTPClient ¶
func (o *DeleteOauthProvidersParams) WithHTTPClient(client *http.Client) *DeleteOauthProvidersParams
WithHTTPClient adds the HTTPClient to the delete oauth providers params
func (*DeleteOauthProvidersParams) WithTimeout ¶
func (o *DeleteOauthProvidersParams) WithTimeout(timeout time.Duration) *DeleteOauthProvidersParams
WithTimeout adds the timeout to the delete oauth providers params
func (*DeleteOauthProvidersParams) WriteToRequest ¶
func (o *DeleteOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteOauthProvidersReader ¶
type DeleteOauthProvidersReader struct {
// contains filtered or unexported fields
}
DeleteOauthProvidersReader is a Reader for the DeleteOauthProviders structure.
func (*DeleteOauthProvidersReader) ReadResponse ¶
func (o *DeleteOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EmailAuthOK ¶
type EmailAuthOK struct {
Payload *models.ActivityResponse
}
EmailAuthOK describes a response with status code 200, with default header values.
A successful response.
func NewEmailAuthOK ¶
func NewEmailAuthOK() *EmailAuthOK
NewEmailAuthOK creates a EmailAuthOK with default headers values
func (*EmailAuthOK) Code ¶
func (o *EmailAuthOK) Code() int
Code gets the status code for the email auth o k response
func (*EmailAuthOK) Error ¶
func (o *EmailAuthOK) Error() string
func (*EmailAuthOK) GetPayload ¶
func (o *EmailAuthOK) GetPayload() *models.ActivityResponse
func (*EmailAuthOK) IsClientError ¶
func (o *EmailAuthOK) IsClientError() bool
IsClientError returns true when this email auth o k response has a 4xx status code
func (*EmailAuthOK) IsCode ¶
func (o *EmailAuthOK) IsCode(code int) bool
IsCode returns true when this email auth o k response a status code equal to that given
func (*EmailAuthOK) IsRedirect ¶
func (o *EmailAuthOK) IsRedirect() bool
IsRedirect returns true when this email auth o k response has a 3xx status code
func (*EmailAuthOK) IsServerError ¶
func (o *EmailAuthOK) IsServerError() bool
IsServerError returns true when this email auth o k response has a 5xx status code
func (*EmailAuthOK) IsSuccess ¶
func (o *EmailAuthOK) IsSuccess() bool
IsSuccess returns true when this email auth o k response has a 2xx status code
func (*EmailAuthOK) String ¶
func (o *EmailAuthOK) String() string
type EmailAuthParams ¶
type EmailAuthParams struct { // Body. Body *models.EmailAuthRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EmailAuthParams contains all the parameters to send to the API endpoint
for the email auth operation. Typically these are written to a http.Request.
func NewEmailAuthParams ¶
func NewEmailAuthParams() *EmailAuthParams
NewEmailAuthParams creates a new EmailAuthParams 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 NewEmailAuthParamsWithContext ¶
func NewEmailAuthParamsWithContext(ctx context.Context) *EmailAuthParams
NewEmailAuthParamsWithContext creates a new EmailAuthParams object with the ability to set a context for a request.
func NewEmailAuthParamsWithHTTPClient ¶
func NewEmailAuthParamsWithHTTPClient(client *http.Client) *EmailAuthParams
NewEmailAuthParamsWithHTTPClient creates a new EmailAuthParams object with the ability to set a custom HTTPClient for a request.
func NewEmailAuthParamsWithTimeout ¶
func NewEmailAuthParamsWithTimeout(timeout time.Duration) *EmailAuthParams
NewEmailAuthParamsWithTimeout creates a new EmailAuthParams object with the ability to set a timeout on a request.
func (*EmailAuthParams) SetBody ¶
func (o *EmailAuthParams) SetBody(body *models.EmailAuthRequest)
SetBody adds the body to the email auth params
func (*EmailAuthParams) SetContext ¶
func (o *EmailAuthParams) SetContext(ctx context.Context)
SetContext adds the context to the email auth params
func (*EmailAuthParams) SetDefaults ¶
func (o *EmailAuthParams) SetDefaults()
SetDefaults hydrates default values in the email auth params (not the query body).
All values with no default are reset to their zero value.
func (*EmailAuthParams) SetHTTPClient ¶
func (o *EmailAuthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the email auth params
func (*EmailAuthParams) SetTimeout ¶
func (o *EmailAuthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the email auth params
func (*EmailAuthParams) WithBody ¶
func (o *EmailAuthParams) WithBody(body *models.EmailAuthRequest) *EmailAuthParams
WithBody adds the body to the email auth params
func (*EmailAuthParams) WithContext ¶
func (o *EmailAuthParams) WithContext(ctx context.Context) *EmailAuthParams
WithContext adds the context to the email auth params
func (*EmailAuthParams) WithDefaults ¶
func (o *EmailAuthParams) WithDefaults() *EmailAuthParams
WithDefaults hydrates default values in the email auth params (not the query body).
All values with no default are reset to their zero value.
func (*EmailAuthParams) WithHTTPClient ¶
func (o *EmailAuthParams) WithHTTPClient(client *http.Client) *EmailAuthParams
WithHTTPClient adds the HTTPClient to the email auth params
func (*EmailAuthParams) WithTimeout ¶
func (o *EmailAuthParams) WithTimeout(timeout time.Duration) *EmailAuthParams
WithTimeout adds the timeout to the email auth params
func (*EmailAuthParams) WriteToRequest ¶
func (o *EmailAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EmailAuthReader ¶
type EmailAuthReader struct {
// contains filtered or unexported fields
}
EmailAuthReader is a Reader for the EmailAuth structure.
func (*EmailAuthReader) ReadResponse ¶
func (o *EmailAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOauthProvidersOK ¶
type GetOauthProvidersOK struct {
Payload *models.GetOauthProvidersResponse
}
GetOauthProvidersOK describes a response with status code 200, with default header values.
A successful response.
func NewGetOauthProvidersOK ¶
func NewGetOauthProvidersOK() *GetOauthProvidersOK
NewGetOauthProvidersOK creates a GetOauthProvidersOK with default headers values
func (*GetOauthProvidersOK) Code ¶
func (o *GetOauthProvidersOK) Code() int
Code gets the status code for the get oauth providers o k response
func (*GetOauthProvidersOK) Error ¶
func (o *GetOauthProvidersOK) Error() string
func (*GetOauthProvidersOK) GetPayload ¶
func (o *GetOauthProvidersOK) GetPayload() *models.GetOauthProvidersResponse
func (*GetOauthProvidersOK) IsClientError ¶
func (o *GetOauthProvidersOK) IsClientError() bool
IsClientError returns true when this get oauth providers o k response has a 4xx status code
func (*GetOauthProvidersOK) IsCode ¶
func (o *GetOauthProvidersOK) IsCode(code int) bool
IsCode returns true when this get oauth providers o k response a status code equal to that given
func (*GetOauthProvidersOK) IsRedirect ¶
func (o *GetOauthProvidersOK) IsRedirect() bool
IsRedirect returns true when this get oauth providers o k response has a 3xx status code
func (*GetOauthProvidersOK) IsServerError ¶
func (o *GetOauthProvidersOK) IsServerError() bool
IsServerError returns true when this get oauth providers o k response has a 5xx status code
func (*GetOauthProvidersOK) IsSuccess ¶
func (o *GetOauthProvidersOK) IsSuccess() bool
IsSuccess returns true when this get oauth providers o k response has a 2xx status code
func (*GetOauthProvidersOK) String ¶
func (o *GetOauthProvidersOK) String() string
type GetOauthProvidersParams ¶
type GetOauthProvidersParams struct { // Body. Body *models.GetOauthProvidersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetOauthProvidersParams contains all the parameters to send to the API endpoint
for the get oauth providers operation. Typically these are written to a http.Request.
func NewGetOauthProvidersParams ¶
func NewGetOauthProvidersParams() *GetOauthProvidersParams
NewGetOauthProvidersParams creates a new GetOauthProvidersParams 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 NewGetOauthProvidersParamsWithContext ¶
func NewGetOauthProvidersParamsWithContext(ctx context.Context) *GetOauthProvidersParams
NewGetOauthProvidersParamsWithContext creates a new GetOauthProvidersParams object with the ability to set a context for a request.
func NewGetOauthProvidersParamsWithHTTPClient ¶
func NewGetOauthProvidersParamsWithHTTPClient(client *http.Client) *GetOauthProvidersParams
NewGetOauthProvidersParamsWithHTTPClient creates a new GetOauthProvidersParams object with the ability to set a custom HTTPClient for a request.
func NewGetOauthProvidersParamsWithTimeout ¶
func NewGetOauthProvidersParamsWithTimeout(timeout time.Duration) *GetOauthProvidersParams
NewGetOauthProvidersParamsWithTimeout creates a new GetOauthProvidersParams object with the ability to set a timeout on a request.
func (*GetOauthProvidersParams) SetBody ¶
func (o *GetOauthProvidersParams) SetBody(body *models.GetOauthProvidersRequest)
SetBody adds the body to the get oauth providers params
func (*GetOauthProvidersParams) SetContext ¶
func (o *GetOauthProvidersParams) SetContext(ctx context.Context)
SetContext adds the context to the get oauth providers params
func (*GetOauthProvidersParams) SetDefaults ¶
func (o *GetOauthProvidersParams) SetDefaults()
SetDefaults hydrates default values in the get oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthProvidersParams) SetHTTPClient ¶
func (o *GetOauthProvidersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get oauth providers params
func (*GetOauthProvidersParams) SetTimeout ¶
func (o *GetOauthProvidersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get oauth providers params
func (*GetOauthProvidersParams) WithBody ¶
func (o *GetOauthProvidersParams) WithBody(body *models.GetOauthProvidersRequest) *GetOauthProvidersParams
WithBody adds the body to the get oauth providers params
func (*GetOauthProvidersParams) WithContext ¶
func (o *GetOauthProvidersParams) WithContext(ctx context.Context) *GetOauthProvidersParams
WithContext adds the context to the get oauth providers params
func (*GetOauthProvidersParams) WithDefaults ¶
func (o *GetOauthProvidersParams) WithDefaults() *GetOauthProvidersParams
WithDefaults hydrates default values in the get oauth providers params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthProvidersParams) WithHTTPClient ¶
func (o *GetOauthProvidersParams) WithHTTPClient(client *http.Client) *GetOauthProvidersParams
WithHTTPClient adds the HTTPClient to the get oauth providers params
func (*GetOauthProvidersParams) WithTimeout ¶
func (o *GetOauthProvidersParams) WithTimeout(timeout time.Duration) *GetOauthProvidersParams
WithTimeout adds the timeout to the get oauth providers params
func (*GetOauthProvidersParams) WriteToRequest ¶
func (o *GetOauthProvidersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOauthProvidersReader ¶
type GetOauthProvidersReader struct {
// contains filtered or unexported fields
}
GetOauthProvidersReader is a Reader for the GetOauthProviders structure.
func (*GetOauthProvidersReader) ReadResponse ¶
func (o *GetOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InitOtpAuthOK ¶
type InitOtpAuthOK struct {
Payload *models.ActivityResponse
}
InitOtpAuthOK describes a response with status code 200, with default header values.
A successful response.
func NewInitOtpAuthOK ¶
func NewInitOtpAuthOK() *InitOtpAuthOK
NewInitOtpAuthOK creates a InitOtpAuthOK with default headers values
func (*InitOtpAuthOK) Code ¶
func (o *InitOtpAuthOK) Code() int
Code gets the status code for the init otp auth o k response
func (*InitOtpAuthOK) Error ¶
func (o *InitOtpAuthOK) Error() string
func (*InitOtpAuthOK) GetPayload ¶
func (o *InitOtpAuthOK) GetPayload() *models.ActivityResponse
func (*InitOtpAuthOK) IsClientError ¶
func (o *InitOtpAuthOK) IsClientError() bool
IsClientError returns true when this init otp auth o k response has a 4xx status code
func (*InitOtpAuthOK) IsCode ¶
func (o *InitOtpAuthOK) IsCode(code int) bool
IsCode returns true when this init otp auth o k response a status code equal to that given
func (*InitOtpAuthOK) IsRedirect ¶
func (o *InitOtpAuthOK) IsRedirect() bool
IsRedirect returns true when this init otp auth o k response has a 3xx status code
func (*InitOtpAuthOK) IsServerError ¶
func (o *InitOtpAuthOK) IsServerError() bool
IsServerError returns true when this init otp auth o k response has a 5xx status code
func (*InitOtpAuthOK) IsSuccess ¶
func (o *InitOtpAuthOK) IsSuccess() bool
IsSuccess returns true when this init otp auth o k response has a 2xx status code
func (*InitOtpAuthOK) String ¶
func (o *InitOtpAuthOK) String() string
type InitOtpAuthParams ¶
type InitOtpAuthParams struct { // Body. Body *models.InitOtpAuthRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InitOtpAuthParams contains all the parameters to send to the API endpoint
for the init otp auth operation. Typically these are written to a http.Request.
func NewInitOtpAuthParams ¶
func NewInitOtpAuthParams() *InitOtpAuthParams
NewInitOtpAuthParams creates a new InitOtpAuthParams 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 NewInitOtpAuthParamsWithContext ¶
func NewInitOtpAuthParamsWithContext(ctx context.Context) *InitOtpAuthParams
NewInitOtpAuthParamsWithContext creates a new InitOtpAuthParams object with the ability to set a context for a request.
func NewInitOtpAuthParamsWithHTTPClient ¶
func NewInitOtpAuthParamsWithHTTPClient(client *http.Client) *InitOtpAuthParams
NewInitOtpAuthParamsWithHTTPClient creates a new InitOtpAuthParams object with the ability to set a custom HTTPClient for a request.
func NewInitOtpAuthParamsWithTimeout ¶
func NewInitOtpAuthParamsWithTimeout(timeout time.Duration) *InitOtpAuthParams
NewInitOtpAuthParamsWithTimeout creates a new InitOtpAuthParams object with the ability to set a timeout on a request.
func (*InitOtpAuthParams) SetBody ¶
func (o *InitOtpAuthParams) SetBody(body *models.InitOtpAuthRequest)
SetBody adds the body to the init otp auth params
func (*InitOtpAuthParams) SetContext ¶
func (o *InitOtpAuthParams) SetContext(ctx context.Context)
SetContext adds the context to the init otp auth params
func (*InitOtpAuthParams) SetDefaults ¶
func (o *InitOtpAuthParams) SetDefaults()
SetDefaults hydrates default values in the init otp auth params (not the query body).
All values with no default are reset to their zero value.
func (*InitOtpAuthParams) SetHTTPClient ¶
func (o *InitOtpAuthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the init otp auth params
func (*InitOtpAuthParams) SetTimeout ¶
func (o *InitOtpAuthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the init otp auth params
func (*InitOtpAuthParams) WithBody ¶
func (o *InitOtpAuthParams) WithBody(body *models.InitOtpAuthRequest) *InitOtpAuthParams
WithBody adds the body to the init otp auth params
func (*InitOtpAuthParams) WithContext ¶
func (o *InitOtpAuthParams) WithContext(ctx context.Context) *InitOtpAuthParams
WithContext adds the context to the init otp auth params
func (*InitOtpAuthParams) WithDefaults ¶
func (o *InitOtpAuthParams) WithDefaults() *InitOtpAuthParams
WithDefaults hydrates default values in the init otp auth params (not the query body).
All values with no default are reset to their zero value.
func (*InitOtpAuthParams) WithHTTPClient ¶
func (o *InitOtpAuthParams) WithHTTPClient(client *http.Client) *InitOtpAuthParams
WithHTTPClient adds the HTTPClient to the init otp auth params
func (*InitOtpAuthParams) WithTimeout ¶
func (o *InitOtpAuthParams) WithTimeout(timeout time.Duration) *InitOtpAuthParams
WithTimeout adds the timeout to the init otp auth params
func (*InitOtpAuthParams) WriteToRequest ¶
func (o *InitOtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InitOtpAuthReader ¶
type InitOtpAuthReader struct {
// contains filtered or unexported fields
}
InitOtpAuthReader is a Reader for the InitOtpAuth structure.
func (*InitOtpAuthReader) ReadResponse ¶
func (o *InitOtpAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OauthOK ¶
type OauthOK struct {
Payload *models.ActivityResponse
}
OauthOK describes a response with status code 200, with default header values.
A successful response.
func NewOauthOK ¶
func NewOauthOK() *OauthOK
NewOauthOK creates a OauthOK with default headers values
func (*OauthOK) GetPayload ¶
func (o *OauthOK) GetPayload() *models.ActivityResponse
func (*OauthOK) IsClientError ¶
IsClientError returns true when this oauth o k response has a 4xx status code
func (*OauthOK) IsCode ¶
IsCode returns true when this oauth o k response a status code equal to that given
func (*OauthOK) IsRedirect ¶
IsRedirect returns true when this oauth o k response has a 3xx status code
func (*OauthOK) IsServerError ¶
IsServerError returns true when this oauth o k response has a 5xx status code
type OauthParams ¶
type OauthParams struct { // Body. Body *models.OauthRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OauthParams contains all the parameters to send to the API endpoint
for the oauth operation. Typically these are written to a http.Request.
func NewOauthParams ¶
func NewOauthParams() *OauthParams
NewOauthParams creates a new OauthParams 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 NewOauthParamsWithContext ¶
func NewOauthParamsWithContext(ctx context.Context) *OauthParams
NewOauthParamsWithContext creates a new OauthParams object with the ability to set a context for a request.
func NewOauthParamsWithHTTPClient ¶
func NewOauthParamsWithHTTPClient(client *http.Client) *OauthParams
NewOauthParamsWithHTTPClient creates a new OauthParams object with the ability to set a custom HTTPClient for a request.
func NewOauthParamsWithTimeout ¶
func NewOauthParamsWithTimeout(timeout time.Duration) *OauthParams
NewOauthParamsWithTimeout creates a new OauthParams object with the ability to set a timeout on a request.
func (*OauthParams) SetBody ¶
func (o *OauthParams) SetBody(body *models.OauthRequest)
SetBody adds the body to the oauth params
func (*OauthParams) SetContext ¶
func (o *OauthParams) SetContext(ctx context.Context)
SetContext adds the context to the oauth params
func (*OauthParams) SetDefaults ¶
func (o *OauthParams) SetDefaults()
SetDefaults hydrates default values in the oauth params (not the query body).
All values with no default are reset to their zero value.
func (*OauthParams) SetHTTPClient ¶
func (o *OauthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the oauth params
func (*OauthParams) SetTimeout ¶
func (o *OauthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the oauth params
func (*OauthParams) WithBody ¶
func (o *OauthParams) WithBody(body *models.OauthRequest) *OauthParams
WithBody adds the body to the oauth params
func (*OauthParams) WithContext ¶
func (o *OauthParams) WithContext(ctx context.Context) *OauthParams
WithContext adds the context to the oauth params
func (*OauthParams) WithDefaults ¶
func (o *OauthParams) WithDefaults() *OauthParams
WithDefaults hydrates default values in the oauth params (not the query body).
All values with no default are reset to their zero value.
func (*OauthParams) WithHTTPClient ¶
func (o *OauthParams) WithHTTPClient(client *http.Client) *OauthParams
WithHTTPClient adds the HTTPClient to the oauth params
func (*OauthParams) WithTimeout ¶
func (o *OauthParams) WithTimeout(timeout time.Duration) *OauthParams
WithTimeout adds the timeout to the oauth params
func (*OauthParams) WriteToRequest ¶
func (o *OauthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OauthReader ¶
type OauthReader struct {
// contains filtered or unexported fields
}
OauthReader is a Reader for the Oauth structure.
func (*OauthReader) ReadResponse ¶
func (o *OauthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OtpAuthOK ¶
type OtpAuthOK struct {
Payload *models.ActivityResponse
}
OtpAuthOK describes a response with status code 200, with default header values.
A successful response.
func NewOtpAuthOK ¶
func NewOtpAuthOK() *OtpAuthOK
NewOtpAuthOK creates a OtpAuthOK with default headers values
func (*OtpAuthOK) GetPayload ¶
func (o *OtpAuthOK) GetPayload() *models.ActivityResponse
func (*OtpAuthOK) IsClientError ¶
IsClientError returns true when this otp auth o k response has a 4xx status code
func (*OtpAuthOK) IsCode ¶
IsCode returns true when this otp auth o k response a status code equal to that given
func (*OtpAuthOK) IsRedirect ¶
IsRedirect returns true when this otp auth o k response has a 3xx status code
func (*OtpAuthOK) IsServerError ¶
IsServerError returns true when this otp auth o k response has a 5xx status code
type OtpAuthParams ¶
type OtpAuthParams struct { // Body. Body *models.OtpAuthRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OtpAuthParams contains all the parameters to send to the API endpoint
for the otp auth operation. Typically these are written to a http.Request.
func NewOtpAuthParams ¶
func NewOtpAuthParams() *OtpAuthParams
NewOtpAuthParams creates a new OtpAuthParams 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 NewOtpAuthParamsWithContext ¶
func NewOtpAuthParamsWithContext(ctx context.Context) *OtpAuthParams
NewOtpAuthParamsWithContext creates a new OtpAuthParams object with the ability to set a context for a request.
func NewOtpAuthParamsWithHTTPClient ¶
func NewOtpAuthParamsWithHTTPClient(client *http.Client) *OtpAuthParams
NewOtpAuthParamsWithHTTPClient creates a new OtpAuthParams object with the ability to set a custom HTTPClient for a request.
func NewOtpAuthParamsWithTimeout ¶
func NewOtpAuthParamsWithTimeout(timeout time.Duration) *OtpAuthParams
NewOtpAuthParamsWithTimeout creates a new OtpAuthParams object with the ability to set a timeout on a request.
func (*OtpAuthParams) SetBody ¶
func (o *OtpAuthParams) SetBody(body *models.OtpAuthRequest)
SetBody adds the body to the otp auth params
func (*OtpAuthParams) SetContext ¶
func (o *OtpAuthParams) SetContext(ctx context.Context)
SetContext adds the context to the otp auth params
func (*OtpAuthParams) SetDefaults ¶
func (o *OtpAuthParams) SetDefaults()
SetDefaults hydrates default values in the otp auth params (not the query body).
All values with no default are reset to their zero value.
func (*OtpAuthParams) SetHTTPClient ¶
func (o *OtpAuthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the otp auth params
func (*OtpAuthParams) SetTimeout ¶
func (o *OtpAuthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the otp auth params
func (*OtpAuthParams) WithBody ¶
func (o *OtpAuthParams) WithBody(body *models.OtpAuthRequest) *OtpAuthParams
WithBody adds the body to the otp auth params
func (*OtpAuthParams) WithContext ¶
func (o *OtpAuthParams) WithContext(ctx context.Context) *OtpAuthParams
WithContext adds the context to the otp auth params
func (*OtpAuthParams) WithDefaults ¶
func (o *OtpAuthParams) WithDefaults() *OtpAuthParams
WithDefaults hydrates default values in the otp auth params (not the query body).
All values with no default are reset to their zero value.
func (*OtpAuthParams) WithHTTPClient ¶
func (o *OtpAuthParams) WithHTTPClient(client *http.Client) *OtpAuthParams
WithHTTPClient adds the HTTPClient to the otp auth params
func (*OtpAuthParams) WithTimeout ¶
func (o *OtpAuthParams) WithTimeout(timeout time.Duration) *OtpAuthParams
WithTimeout adds the timeout to the otp auth params
func (*OtpAuthParams) WriteToRequest ¶
func (o *OtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OtpAuthReader ¶
type OtpAuthReader struct {
// contains filtered or unexported fields
}
OtpAuthReader is a Reader for the OtpAuth structure.
func (*OtpAuthReader) ReadResponse ¶
func (o *OtpAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_oauth_providers_parameters.go
- create_oauth_providers_responses.go
- delete_oauth_providers_parameters.go
- delete_oauth_providers_responses.go
- email_auth_parameters.go
- email_auth_responses.go
- get_oauth_providers_parameters.go
- get_oauth_providers_responses.go
- init_otp_auth_parameters.go
- init_otp_auth_responses.go
- oauth_parameters.go
- oauth_responses.go
- otp_auth_parameters.go
- otp_auth_responses.go
- user_auth_client.go