Documentation
¶
Index ¶
- type Client
- func (a *Client) GetTransientOTP(params *GetTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTransientOTPOK, error)
- func (a *Client) InitiateTransientOTP(params *InitiateTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*InitiateTransientOTPOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) VerifyTransientOTP(params *VerifyTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*VerifyTransientOTPNoContent, error)
- type ClientOption
- type ClientService
- type GetTransientOTPForbidden
- func (o *GetTransientOTPForbidden) Code() int
- func (o *GetTransientOTPForbidden) Error() string
- func (o *GetTransientOTPForbidden) GetPayload() *models.Error
- func (o *GetTransientOTPForbidden) IsClientError() bool
- func (o *GetTransientOTPForbidden) IsCode(code int) bool
- func (o *GetTransientOTPForbidden) IsRedirect() bool
- func (o *GetTransientOTPForbidden) IsServerError() bool
- func (o *GetTransientOTPForbidden) IsSuccess() bool
- func (o *GetTransientOTPForbidden) String() string
- type GetTransientOTPNotFound
- func (o *GetTransientOTPNotFound) Code() int
- func (o *GetTransientOTPNotFound) Error() string
- func (o *GetTransientOTPNotFound) GetPayload() *models.Error
- func (o *GetTransientOTPNotFound) IsClientError() bool
- func (o *GetTransientOTPNotFound) IsCode(code int) bool
- func (o *GetTransientOTPNotFound) IsRedirect() bool
- func (o *GetTransientOTPNotFound) IsServerError() bool
- func (o *GetTransientOTPNotFound) IsSuccess() bool
- func (o *GetTransientOTPNotFound) String() string
- type GetTransientOTPOK
- func (o *GetTransientOTPOK) Code() int
- func (o *GetTransientOTPOK) Error() string
- func (o *GetTransientOTPOK) GetPayload() *models.TransientOTPResponse
- func (o *GetTransientOTPOK) IsClientError() bool
- func (o *GetTransientOTPOK) IsCode(code int) bool
- func (o *GetTransientOTPOK) IsRedirect() bool
- func (o *GetTransientOTPOK) IsServerError() bool
- func (o *GetTransientOTPOK) IsSuccess() bool
- func (o *GetTransientOTPOK) String() string
- type GetTransientOTPParams
- func NewGetTransientOTPParams() *GetTransientOTPParams
- func NewGetTransientOTPParamsWithContext(ctx context.Context) *GetTransientOTPParams
- func NewGetTransientOTPParamsWithHTTPClient(client *http.Client) *GetTransientOTPParams
- func NewGetTransientOTPParamsWithTimeout(timeout time.Duration) *GetTransientOTPParams
- func (o *GetTransientOTPParams) SetContext(ctx context.Context)
- func (o *GetTransientOTPParams) SetDefaults()
- func (o *GetTransientOTPParams) SetHTTPClient(client *http.Client)
- func (o *GetTransientOTPParams) SetOtpID(otpID string)
- func (o *GetTransientOTPParams) SetState(state *string)
- func (o *GetTransientOTPParams) SetTimeout(timeout time.Duration)
- func (o *GetTransientOTPParams) WithContext(ctx context.Context) *GetTransientOTPParams
- func (o *GetTransientOTPParams) WithDefaults() *GetTransientOTPParams
- func (o *GetTransientOTPParams) WithHTTPClient(client *http.Client) *GetTransientOTPParams
- func (o *GetTransientOTPParams) WithOtpID(otpID string) *GetTransientOTPParams
- func (o *GetTransientOTPParams) WithState(state *string) *GetTransientOTPParams
- func (o *GetTransientOTPParams) WithTimeout(timeout time.Duration) *GetTransientOTPParams
- func (o *GetTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransientOTPReader
- type GetTransientOTPUnauthorized
- func (o *GetTransientOTPUnauthorized) Code() int
- func (o *GetTransientOTPUnauthorized) Error() string
- func (o *GetTransientOTPUnauthorized) GetPayload() *models.Error
- func (o *GetTransientOTPUnauthorized) IsClientError() bool
- func (o *GetTransientOTPUnauthorized) IsCode(code int) bool
- func (o *GetTransientOTPUnauthorized) IsRedirect() bool
- func (o *GetTransientOTPUnauthorized) IsServerError() bool
- func (o *GetTransientOTPUnauthorized) IsSuccess() bool
- func (o *GetTransientOTPUnauthorized) String() string
- type GetTransientOTPUnprocessableEntity
- func (o *GetTransientOTPUnprocessableEntity) Code() int
- func (o *GetTransientOTPUnprocessableEntity) Error() string
- func (o *GetTransientOTPUnprocessableEntity) GetPayload() *models.Error
- func (o *GetTransientOTPUnprocessableEntity) IsClientError() bool
- func (o *GetTransientOTPUnprocessableEntity) IsCode(code int) bool
- func (o *GetTransientOTPUnprocessableEntity) IsRedirect() bool
- func (o *GetTransientOTPUnprocessableEntity) IsServerError() bool
- func (o *GetTransientOTPUnprocessableEntity) IsSuccess() bool
- func (o *GetTransientOTPUnprocessableEntity) String() string
- type InitiateTransientOTPBadRequest
- func (o *InitiateTransientOTPBadRequest) Code() int
- func (o *InitiateTransientOTPBadRequest) Error() string
- func (o *InitiateTransientOTPBadRequest) GetPayload() *models.Error
- func (o *InitiateTransientOTPBadRequest) IsClientError() bool
- func (o *InitiateTransientOTPBadRequest) IsCode(code int) bool
- func (o *InitiateTransientOTPBadRequest) IsRedirect() bool
- func (o *InitiateTransientOTPBadRequest) IsServerError() bool
- func (o *InitiateTransientOTPBadRequest) IsSuccess() bool
- func (o *InitiateTransientOTPBadRequest) String() string
- type InitiateTransientOTPForbidden
- func (o *InitiateTransientOTPForbidden) Code() int
- func (o *InitiateTransientOTPForbidden) Error() string
- func (o *InitiateTransientOTPForbidden) GetPayload() *models.Error
- func (o *InitiateTransientOTPForbidden) IsClientError() bool
- func (o *InitiateTransientOTPForbidden) IsCode(code int) bool
- func (o *InitiateTransientOTPForbidden) IsRedirect() bool
- func (o *InitiateTransientOTPForbidden) IsServerError() bool
- func (o *InitiateTransientOTPForbidden) IsSuccess() bool
- func (o *InitiateTransientOTPForbidden) String() string
- type InitiateTransientOTPNotFound
- func (o *InitiateTransientOTPNotFound) Code() int
- func (o *InitiateTransientOTPNotFound) Error() string
- func (o *InitiateTransientOTPNotFound) GetPayload() *models.Error
- func (o *InitiateTransientOTPNotFound) IsClientError() bool
- func (o *InitiateTransientOTPNotFound) IsCode(code int) bool
- func (o *InitiateTransientOTPNotFound) IsRedirect() bool
- func (o *InitiateTransientOTPNotFound) IsServerError() bool
- func (o *InitiateTransientOTPNotFound) IsSuccess() bool
- func (o *InitiateTransientOTPNotFound) String() string
- type InitiateTransientOTPOK
- func (o *InitiateTransientOTPOK) Code() int
- func (o *InitiateTransientOTPOK) Error() string
- func (o *InitiateTransientOTPOK) GetPayload() *models.TransientOTPResponse
- func (o *InitiateTransientOTPOK) IsClientError() bool
- func (o *InitiateTransientOTPOK) IsCode(code int) bool
- func (o *InitiateTransientOTPOK) IsRedirect() bool
- func (o *InitiateTransientOTPOK) IsServerError() bool
- func (o *InitiateTransientOTPOK) IsSuccess() bool
- func (o *InitiateTransientOTPOK) String() string
- type InitiateTransientOTPParams
- func NewInitiateTransientOTPParams() *InitiateTransientOTPParams
- func NewInitiateTransientOTPParamsWithContext(ctx context.Context) *InitiateTransientOTPParams
- func NewInitiateTransientOTPParamsWithHTTPClient(client *http.Client) *InitiateTransientOTPParams
- func NewInitiateTransientOTPParamsWithTimeout(timeout time.Duration) *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) SetContext(ctx context.Context)
- func (o *InitiateTransientOTPParams) SetDefaults()
- func (o *InitiateTransientOTPParams) SetHTTPClient(client *http.Client)
- func (o *InitiateTransientOTPParams) SetTimeout(timeout time.Duration)
- func (o *InitiateTransientOTPParams) SetTransientOTP(transientOTP *models.TransientOTPRequest)
- func (o *InitiateTransientOTPParams) WithContext(ctx context.Context) *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) WithDefaults() *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) WithHTTPClient(client *http.Client) *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) WithTimeout(timeout time.Duration) *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) WithTransientOTP(transientOTP *models.TransientOTPRequest) *InitiateTransientOTPParams
- func (o *InitiateTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InitiateTransientOTPReader
- type InitiateTransientOTPTooManyRequests
- func (o *InitiateTransientOTPTooManyRequests) Code() int
- func (o *InitiateTransientOTPTooManyRequests) Error() string
- func (o *InitiateTransientOTPTooManyRequests) GetPayload() *models.Error
- func (o *InitiateTransientOTPTooManyRequests) IsClientError() bool
- func (o *InitiateTransientOTPTooManyRequests) IsCode(code int) bool
- func (o *InitiateTransientOTPTooManyRequests) IsRedirect() bool
- func (o *InitiateTransientOTPTooManyRequests) IsServerError() bool
- func (o *InitiateTransientOTPTooManyRequests) IsSuccess() bool
- func (o *InitiateTransientOTPTooManyRequests) String() string
- type InitiateTransientOTPUnauthorized
- func (o *InitiateTransientOTPUnauthorized) Code() int
- func (o *InitiateTransientOTPUnauthorized) Error() string
- func (o *InitiateTransientOTPUnauthorized) GetPayload() *models.Error
- func (o *InitiateTransientOTPUnauthorized) IsClientError() bool
- func (o *InitiateTransientOTPUnauthorized) IsCode(code int) bool
- func (o *InitiateTransientOTPUnauthorized) IsRedirect() bool
- func (o *InitiateTransientOTPUnauthorized) IsServerError() bool
- func (o *InitiateTransientOTPUnauthorized) IsSuccess() bool
- func (o *InitiateTransientOTPUnauthorized) String() string
- type InitiateTransientOTPUnprocessableEntity
- func (o *InitiateTransientOTPUnprocessableEntity) Code() int
- func (o *InitiateTransientOTPUnprocessableEntity) Error() string
- func (o *InitiateTransientOTPUnprocessableEntity) GetPayload() *models.Error
- func (o *InitiateTransientOTPUnprocessableEntity) IsClientError() bool
- func (o *InitiateTransientOTPUnprocessableEntity) IsCode(code int) bool
- func (o *InitiateTransientOTPUnprocessableEntity) IsRedirect() bool
- func (o *InitiateTransientOTPUnprocessableEntity) IsServerError() bool
- func (o *InitiateTransientOTPUnprocessableEntity) IsSuccess() bool
- func (o *InitiateTransientOTPUnprocessableEntity) String() string
- type VerifyTransientOTPForbidden
- func (o *VerifyTransientOTPForbidden) Code() int
- func (o *VerifyTransientOTPForbidden) Error() string
- func (o *VerifyTransientOTPForbidden) GetPayload() *models.Error
- func (o *VerifyTransientOTPForbidden) IsClientError() bool
- func (o *VerifyTransientOTPForbidden) IsCode(code int) bool
- func (o *VerifyTransientOTPForbidden) IsRedirect() bool
- func (o *VerifyTransientOTPForbidden) IsServerError() bool
- func (o *VerifyTransientOTPForbidden) IsSuccess() bool
- func (o *VerifyTransientOTPForbidden) String() string
- type VerifyTransientOTPNoContent
- func (o *VerifyTransientOTPNoContent) Code() int
- func (o *VerifyTransientOTPNoContent) Error() string
- func (o *VerifyTransientOTPNoContent) IsClientError() bool
- func (o *VerifyTransientOTPNoContent) IsCode(code int) bool
- func (o *VerifyTransientOTPNoContent) IsRedirect() bool
- func (o *VerifyTransientOTPNoContent) IsServerError() bool
- func (o *VerifyTransientOTPNoContent) IsSuccess() bool
- func (o *VerifyTransientOTPNoContent) String() string
- type VerifyTransientOTPNotFound
- func (o *VerifyTransientOTPNotFound) Code() int
- func (o *VerifyTransientOTPNotFound) Error() string
- func (o *VerifyTransientOTPNotFound) GetPayload() *models.Error
- func (o *VerifyTransientOTPNotFound) IsClientError() bool
- func (o *VerifyTransientOTPNotFound) IsCode(code int) bool
- func (o *VerifyTransientOTPNotFound) IsRedirect() bool
- func (o *VerifyTransientOTPNotFound) IsServerError() bool
- func (o *VerifyTransientOTPNotFound) IsSuccess() bool
- func (o *VerifyTransientOTPNotFound) String() string
- type VerifyTransientOTPParams
- func NewVerifyTransientOTPParams() *VerifyTransientOTPParams
- func NewVerifyTransientOTPParamsWithContext(ctx context.Context) *VerifyTransientOTPParams
- func NewVerifyTransientOTPParamsWithHTTPClient(client *http.Client) *VerifyTransientOTPParams
- func NewVerifyTransientOTPParamsWithTimeout(timeout time.Duration) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) SetContext(ctx context.Context)
- func (o *VerifyTransientOTPParams) SetDefaults()
- func (o *VerifyTransientOTPParams) SetHTTPClient(client *http.Client)
- func (o *VerifyTransientOTPParams) SetOtpID(otpID string)
- func (o *VerifyTransientOTPParams) SetTimeout(timeout time.Duration)
- func (o *VerifyTransientOTPParams) SetTransientOTP(transientOTP *models.TransientOTPRequest)
- func (o *VerifyTransientOTPParams) WithContext(ctx context.Context) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WithDefaults() *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WithHTTPClient(client *http.Client) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WithOtpID(otpID string) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WithTimeout(timeout time.Duration) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WithTransientOTP(transientOTP *models.TransientOTPRequest) *VerifyTransientOTPParams
- func (o *VerifyTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VerifyTransientOTPReader
- type VerifyTransientOTPUnauthorized
- func (o *VerifyTransientOTPUnauthorized) Code() int
- func (o *VerifyTransientOTPUnauthorized) Error() string
- func (o *VerifyTransientOTPUnauthorized) GetPayload() *models.Error
- func (o *VerifyTransientOTPUnauthorized) IsClientError() bool
- func (o *VerifyTransientOTPUnauthorized) IsCode(code int) bool
- func (o *VerifyTransientOTPUnauthorized) IsRedirect() bool
- func (o *VerifyTransientOTPUnauthorized) IsServerError() bool
- func (o *VerifyTransientOTPUnauthorized) IsSuccess() bool
- func (o *VerifyTransientOTPUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for transient otp API
func (*Client) GetTransientOTP ¶
func (a *Client) GetTransientOTP(params *GetTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransientOTPOK, error)
GetTransientOTP gets the one time password o t p object
Determine whether this OTP has been verified already.
func (*Client) InitiateTransientOTP ¶
func (a *Client) InitiateTransientOTP(params *InitiateTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitiateTransientOTPOK, error)
InitiateTransientOTP sends a transient one time password o t p
Initiate a new transient OTP verification.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) VerifyTransientOTP ¶
func (a *Client) VerifyTransientOTP(params *VerifyTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyTransientOTPNoContent, error)
VerifyTransientOTP verifies the one time password o t p
Compare the OTP submitted by the user to the OTP that was sent.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetTransientOTP(params *GetTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransientOTPOK, error) InitiateTransientOTP(params *InitiateTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitiateTransientOTPOK, error) VerifyTransientOTP(params *VerifyTransientOTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyTransientOTPNoContent, 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 transient otp API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new transient otp 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 transient otp 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 GetTransientOTPForbidden ¶
GetTransientOTPForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetTransientOTPForbidden ¶
func NewGetTransientOTPForbidden() *GetTransientOTPForbidden
NewGetTransientOTPForbidden creates a GetTransientOTPForbidden with default headers values
func (*GetTransientOTPForbidden) Code ¶
func (o *GetTransientOTPForbidden) Code() int
Code gets the status code for the get transient o t p forbidden response
func (*GetTransientOTPForbidden) Error ¶
func (o *GetTransientOTPForbidden) Error() string
func (*GetTransientOTPForbidden) GetPayload ¶
func (o *GetTransientOTPForbidden) GetPayload() *models.Error
func (*GetTransientOTPForbidden) IsClientError ¶
func (o *GetTransientOTPForbidden) IsClientError() bool
IsClientError returns true when this get transient o t p forbidden response has a 4xx status code
func (*GetTransientOTPForbidden) IsCode ¶
func (o *GetTransientOTPForbidden) IsCode(code int) bool
IsCode returns true when this get transient o t p forbidden response a status code equal to that given
func (*GetTransientOTPForbidden) IsRedirect ¶
func (o *GetTransientOTPForbidden) IsRedirect() bool
IsRedirect returns true when this get transient o t p forbidden response has a 3xx status code
func (*GetTransientOTPForbidden) IsServerError ¶
func (o *GetTransientOTPForbidden) IsServerError() bool
IsServerError returns true when this get transient o t p forbidden response has a 5xx status code
func (*GetTransientOTPForbidden) IsSuccess ¶
func (o *GetTransientOTPForbidden) IsSuccess() bool
IsSuccess returns true when this get transient o t p forbidden response has a 2xx status code
func (*GetTransientOTPForbidden) String ¶
func (o *GetTransientOTPForbidden) String() string
type GetTransientOTPNotFound ¶
GetTransientOTPNotFound describes a response with status code 404, with default header values.
Not found
func NewGetTransientOTPNotFound ¶
func NewGetTransientOTPNotFound() *GetTransientOTPNotFound
NewGetTransientOTPNotFound creates a GetTransientOTPNotFound with default headers values
func (*GetTransientOTPNotFound) Code ¶
func (o *GetTransientOTPNotFound) Code() int
Code gets the status code for the get transient o t p not found response
func (*GetTransientOTPNotFound) Error ¶
func (o *GetTransientOTPNotFound) Error() string
func (*GetTransientOTPNotFound) GetPayload ¶
func (o *GetTransientOTPNotFound) GetPayload() *models.Error
func (*GetTransientOTPNotFound) IsClientError ¶
func (o *GetTransientOTPNotFound) IsClientError() bool
IsClientError returns true when this get transient o t p not found response has a 4xx status code
func (*GetTransientOTPNotFound) IsCode ¶
func (o *GetTransientOTPNotFound) IsCode(code int) bool
IsCode returns true when this get transient o t p not found response a status code equal to that given
func (*GetTransientOTPNotFound) IsRedirect ¶
func (o *GetTransientOTPNotFound) IsRedirect() bool
IsRedirect returns true when this get transient o t p not found response has a 3xx status code
func (*GetTransientOTPNotFound) IsServerError ¶
func (o *GetTransientOTPNotFound) IsServerError() bool
IsServerError returns true when this get transient o t p not found response has a 5xx status code
func (*GetTransientOTPNotFound) IsSuccess ¶
func (o *GetTransientOTPNotFound) IsSuccess() bool
IsSuccess returns true when this get transient o t p not found response has a 2xx status code
func (*GetTransientOTPNotFound) String ¶
func (o *GetTransientOTPNotFound) String() string
type GetTransientOTPOK ¶
type GetTransientOTPOK struct {
Payload *models.TransientOTPResponse
}
GetTransientOTPOK describes a response with status code 200, with default header values.
Transient OTP
func NewGetTransientOTPOK ¶
func NewGetTransientOTPOK() *GetTransientOTPOK
NewGetTransientOTPOK creates a GetTransientOTPOK with default headers values
func (*GetTransientOTPOK) Code ¶
func (o *GetTransientOTPOK) Code() int
Code gets the status code for the get transient o t p o k response
func (*GetTransientOTPOK) Error ¶
func (o *GetTransientOTPOK) Error() string
func (*GetTransientOTPOK) GetPayload ¶
func (o *GetTransientOTPOK) GetPayload() *models.TransientOTPResponse
func (*GetTransientOTPOK) IsClientError ¶
func (o *GetTransientOTPOK) IsClientError() bool
IsClientError returns true when this get transient o t p o k response has a 4xx status code
func (*GetTransientOTPOK) IsCode ¶
func (o *GetTransientOTPOK) IsCode(code int) bool
IsCode returns true when this get transient o t p o k response a status code equal to that given
func (*GetTransientOTPOK) IsRedirect ¶
func (o *GetTransientOTPOK) IsRedirect() bool
IsRedirect returns true when this get transient o t p o k response has a 3xx status code
func (*GetTransientOTPOK) IsServerError ¶
func (o *GetTransientOTPOK) IsServerError() bool
IsServerError returns true when this get transient o t p o k response has a 5xx status code
func (*GetTransientOTPOK) IsSuccess ¶
func (o *GetTransientOTPOK) IsSuccess() bool
IsSuccess returns true when this get transient o t p o k response has a 2xx status code
func (*GetTransientOTPOK) String ¶
func (o *GetTransientOTPOK) String() string
type GetTransientOTPParams ¶
type GetTransientOTPParams struct { // OtpID. OtpID string // State. State *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTransientOTPParams contains all the parameters to send to the API endpoint
for the get transient o t p operation. Typically these are written to a http.Request.
func NewGetTransientOTPParams ¶
func NewGetTransientOTPParams() *GetTransientOTPParams
NewGetTransientOTPParams creates a new GetTransientOTPParams 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 NewGetTransientOTPParamsWithContext ¶
func NewGetTransientOTPParamsWithContext(ctx context.Context) *GetTransientOTPParams
NewGetTransientOTPParamsWithContext creates a new GetTransientOTPParams object with the ability to set a context for a request.
func NewGetTransientOTPParamsWithHTTPClient ¶
func NewGetTransientOTPParamsWithHTTPClient(client *http.Client) *GetTransientOTPParams
NewGetTransientOTPParamsWithHTTPClient creates a new GetTransientOTPParams object with the ability to set a custom HTTPClient for a request.
func NewGetTransientOTPParamsWithTimeout ¶
func NewGetTransientOTPParamsWithTimeout(timeout time.Duration) *GetTransientOTPParams
NewGetTransientOTPParamsWithTimeout creates a new GetTransientOTPParams object with the ability to set a timeout on a request.
func (*GetTransientOTPParams) SetContext ¶
func (o *GetTransientOTPParams) SetContext(ctx context.Context)
SetContext adds the context to the get transient o t p params
func (*GetTransientOTPParams) SetDefaults ¶
func (o *GetTransientOTPParams) SetDefaults()
SetDefaults hydrates default values in the get transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransientOTPParams) SetHTTPClient ¶
func (o *GetTransientOTPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get transient o t p params
func (*GetTransientOTPParams) SetOtpID ¶
func (o *GetTransientOTPParams) SetOtpID(otpID string)
SetOtpID adds the otpId to the get transient o t p params
func (*GetTransientOTPParams) SetState ¶
func (o *GetTransientOTPParams) SetState(state *string)
SetState adds the state to the get transient o t p params
func (*GetTransientOTPParams) SetTimeout ¶
func (o *GetTransientOTPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get transient o t p params
func (*GetTransientOTPParams) WithContext ¶
func (o *GetTransientOTPParams) WithContext(ctx context.Context) *GetTransientOTPParams
WithContext adds the context to the get transient o t p params
func (*GetTransientOTPParams) WithDefaults ¶
func (o *GetTransientOTPParams) WithDefaults() *GetTransientOTPParams
WithDefaults hydrates default values in the get transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*GetTransientOTPParams) WithHTTPClient ¶
func (o *GetTransientOTPParams) WithHTTPClient(client *http.Client) *GetTransientOTPParams
WithHTTPClient adds the HTTPClient to the get transient o t p params
func (*GetTransientOTPParams) WithOtpID ¶
func (o *GetTransientOTPParams) WithOtpID(otpID string) *GetTransientOTPParams
WithOtpID adds the otpID to the get transient o t p params
func (*GetTransientOTPParams) WithState ¶
func (o *GetTransientOTPParams) WithState(state *string) *GetTransientOTPParams
WithState adds the state to the get transient o t p params
func (*GetTransientOTPParams) WithTimeout ¶
func (o *GetTransientOTPParams) WithTimeout(timeout time.Duration) *GetTransientOTPParams
WithTimeout adds the timeout to the get transient o t p params
func (*GetTransientOTPParams) WriteToRequest ¶
func (o *GetTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTransientOTPReader ¶
type GetTransientOTPReader struct {
// contains filtered or unexported fields
}
GetTransientOTPReader is a Reader for the GetTransientOTP structure.
func (*GetTransientOTPReader) ReadResponse ¶
func (o *GetTransientOTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTransientOTPUnauthorized ¶
type GetTransientOTPUnauthorized struct {
}GetTransientOTPUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetTransientOTPUnauthorized ¶
func NewGetTransientOTPUnauthorized() *GetTransientOTPUnauthorized
NewGetTransientOTPUnauthorized creates a GetTransientOTPUnauthorized with default headers values
func (*GetTransientOTPUnauthorized) Code ¶
func (o *GetTransientOTPUnauthorized) Code() int
Code gets the status code for the get transient o t p unauthorized response
func (*GetTransientOTPUnauthorized) Error ¶
func (o *GetTransientOTPUnauthorized) Error() string
func (*GetTransientOTPUnauthorized) GetPayload ¶
func (o *GetTransientOTPUnauthorized) GetPayload() *models.Error
func (*GetTransientOTPUnauthorized) IsClientError ¶
func (o *GetTransientOTPUnauthorized) IsClientError() bool
IsClientError returns true when this get transient o t p unauthorized response has a 4xx status code
func (*GetTransientOTPUnauthorized) IsCode ¶
func (o *GetTransientOTPUnauthorized) IsCode(code int) bool
IsCode returns true when this get transient o t p unauthorized response a status code equal to that given
func (*GetTransientOTPUnauthorized) IsRedirect ¶
func (o *GetTransientOTPUnauthorized) IsRedirect() bool
IsRedirect returns true when this get transient o t p unauthorized response has a 3xx status code
func (*GetTransientOTPUnauthorized) IsServerError ¶
func (o *GetTransientOTPUnauthorized) IsServerError() bool
IsServerError returns true when this get transient o t p unauthorized response has a 5xx status code
func (*GetTransientOTPUnauthorized) IsSuccess ¶
func (o *GetTransientOTPUnauthorized) IsSuccess() bool
IsSuccess returns true when this get transient o t p unauthorized response has a 2xx status code
func (*GetTransientOTPUnauthorized) String ¶
func (o *GetTransientOTPUnauthorized) String() string
type GetTransientOTPUnprocessableEntity ¶
GetTransientOTPUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewGetTransientOTPUnprocessableEntity ¶
func NewGetTransientOTPUnprocessableEntity() *GetTransientOTPUnprocessableEntity
NewGetTransientOTPUnprocessableEntity creates a GetTransientOTPUnprocessableEntity with default headers values
func (*GetTransientOTPUnprocessableEntity) Code ¶
func (o *GetTransientOTPUnprocessableEntity) Code() int
Code gets the status code for the get transient o t p unprocessable entity response
func (*GetTransientOTPUnprocessableEntity) Error ¶
func (o *GetTransientOTPUnprocessableEntity) Error() string
func (*GetTransientOTPUnprocessableEntity) GetPayload ¶
func (o *GetTransientOTPUnprocessableEntity) GetPayload() *models.Error
func (*GetTransientOTPUnprocessableEntity) IsClientError ¶
func (o *GetTransientOTPUnprocessableEntity) IsClientError() bool
IsClientError returns true when this get transient o t p unprocessable entity response has a 4xx status code
func (*GetTransientOTPUnprocessableEntity) IsCode ¶
func (o *GetTransientOTPUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this get transient o t p unprocessable entity response a status code equal to that given
func (*GetTransientOTPUnprocessableEntity) IsRedirect ¶
func (o *GetTransientOTPUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this get transient o t p unprocessable entity response has a 3xx status code
func (*GetTransientOTPUnprocessableEntity) IsServerError ¶
func (o *GetTransientOTPUnprocessableEntity) IsServerError() bool
IsServerError returns true when this get transient o t p unprocessable entity response has a 5xx status code
func (*GetTransientOTPUnprocessableEntity) IsSuccess ¶
func (o *GetTransientOTPUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this get transient o t p unprocessable entity response has a 2xx status code
func (*GetTransientOTPUnprocessableEntity) String ¶
func (o *GetTransientOTPUnprocessableEntity) String() string
type InitiateTransientOTPBadRequest ¶
InitiateTransientOTPBadRequest describes a response with status code 400, with default header values.
Bad request
func NewInitiateTransientOTPBadRequest ¶
func NewInitiateTransientOTPBadRequest() *InitiateTransientOTPBadRequest
NewInitiateTransientOTPBadRequest creates a InitiateTransientOTPBadRequest with default headers values
func (*InitiateTransientOTPBadRequest) Code ¶
func (o *InitiateTransientOTPBadRequest) Code() int
Code gets the status code for the initiate transient o t p bad request response
func (*InitiateTransientOTPBadRequest) Error ¶
func (o *InitiateTransientOTPBadRequest) Error() string
func (*InitiateTransientOTPBadRequest) GetPayload ¶
func (o *InitiateTransientOTPBadRequest) GetPayload() *models.Error
func (*InitiateTransientOTPBadRequest) IsClientError ¶
func (o *InitiateTransientOTPBadRequest) IsClientError() bool
IsClientError returns true when this initiate transient o t p bad request response has a 4xx status code
func (*InitiateTransientOTPBadRequest) IsCode ¶
func (o *InitiateTransientOTPBadRequest) IsCode(code int) bool
IsCode returns true when this initiate transient o t p bad request response a status code equal to that given
func (*InitiateTransientOTPBadRequest) IsRedirect ¶
func (o *InitiateTransientOTPBadRequest) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p bad request response has a 3xx status code
func (*InitiateTransientOTPBadRequest) IsServerError ¶
func (o *InitiateTransientOTPBadRequest) IsServerError() bool
IsServerError returns true when this initiate transient o t p bad request response has a 5xx status code
func (*InitiateTransientOTPBadRequest) IsSuccess ¶
func (o *InitiateTransientOTPBadRequest) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p bad request response has a 2xx status code
func (*InitiateTransientOTPBadRequest) String ¶
func (o *InitiateTransientOTPBadRequest) String() string
type InitiateTransientOTPForbidden ¶
InitiateTransientOTPForbidden describes a response with status code 403, with default header values.
Forbidden
func NewInitiateTransientOTPForbidden ¶
func NewInitiateTransientOTPForbidden() *InitiateTransientOTPForbidden
NewInitiateTransientOTPForbidden creates a InitiateTransientOTPForbidden with default headers values
func (*InitiateTransientOTPForbidden) Code ¶
func (o *InitiateTransientOTPForbidden) Code() int
Code gets the status code for the initiate transient o t p forbidden response
func (*InitiateTransientOTPForbidden) Error ¶
func (o *InitiateTransientOTPForbidden) Error() string
func (*InitiateTransientOTPForbidden) GetPayload ¶
func (o *InitiateTransientOTPForbidden) GetPayload() *models.Error
func (*InitiateTransientOTPForbidden) IsClientError ¶
func (o *InitiateTransientOTPForbidden) IsClientError() bool
IsClientError returns true when this initiate transient o t p forbidden response has a 4xx status code
func (*InitiateTransientOTPForbidden) IsCode ¶
func (o *InitiateTransientOTPForbidden) IsCode(code int) bool
IsCode returns true when this initiate transient o t p forbidden response a status code equal to that given
func (*InitiateTransientOTPForbidden) IsRedirect ¶
func (o *InitiateTransientOTPForbidden) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p forbidden response has a 3xx status code
func (*InitiateTransientOTPForbidden) IsServerError ¶
func (o *InitiateTransientOTPForbidden) IsServerError() bool
IsServerError returns true when this initiate transient o t p forbidden response has a 5xx status code
func (*InitiateTransientOTPForbidden) IsSuccess ¶
func (o *InitiateTransientOTPForbidden) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p forbidden response has a 2xx status code
func (*InitiateTransientOTPForbidden) String ¶
func (o *InitiateTransientOTPForbidden) String() string
type InitiateTransientOTPNotFound ¶
InitiateTransientOTPNotFound describes a response with status code 404, with default header values.
Not found
func NewInitiateTransientOTPNotFound ¶
func NewInitiateTransientOTPNotFound() *InitiateTransientOTPNotFound
NewInitiateTransientOTPNotFound creates a InitiateTransientOTPNotFound with default headers values
func (*InitiateTransientOTPNotFound) Code ¶
func (o *InitiateTransientOTPNotFound) Code() int
Code gets the status code for the initiate transient o t p not found response
func (*InitiateTransientOTPNotFound) Error ¶
func (o *InitiateTransientOTPNotFound) Error() string
func (*InitiateTransientOTPNotFound) GetPayload ¶
func (o *InitiateTransientOTPNotFound) GetPayload() *models.Error
func (*InitiateTransientOTPNotFound) IsClientError ¶
func (o *InitiateTransientOTPNotFound) IsClientError() bool
IsClientError returns true when this initiate transient o t p not found response has a 4xx status code
func (*InitiateTransientOTPNotFound) IsCode ¶
func (o *InitiateTransientOTPNotFound) IsCode(code int) bool
IsCode returns true when this initiate transient o t p not found response a status code equal to that given
func (*InitiateTransientOTPNotFound) IsRedirect ¶
func (o *InitiateTransientOTPNotFound) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p not found response has a 3xx status code
func (*InitiateTransientOTPNotFound) IsServerError ¶
func (o *InitiateTransientOTPNotFound) IsServerError() bool
IsServerError returns true when this initiate transient o t p not found response has a 5xx status code
func (*InitiateTransientOTPNotFound) IsSuccess ¶
func (o *InitiateTransientOTPNotFound) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p not found response has a 2xx status code
func (*InitiateTransientOTPNotFound) String ¶
func (o *InitiateTransientOTPNotFound) String() string
type InitiateTransientOTPOK ¶
type InitiateTransientOTPOK struct {
Payload *models.TransientOTPResponse
}
InitiateTransientOTPOK describes a response with status code 200, with default header values.
Transient OTP
func NewInitiateTransientOTPOK ¶
func NewInitiateTransientOTPOK() *InitiateTransientOTPOK
NewInitiateTransientOTPOK creates a InitiateTransientOTPOK with default headers values
func (*InitiateTransientOTPOK) Code ¶
func (o *InitiateTransientOTPOK) Code() int
Code gets the status code for the initiate transient o t p o k response
func (*InitiateTransientOTPOK) Error ¶
func (o *InitiateTransientOTPOK) Error() string
func (*InitiateTransientOTPOK) GetPayload ¶
func (o *InitiateTransientOTPOK) GetPayload() *models.TransientOTPResponse
func (*InitiateTransientOTPOK) IsClientError ¶
func (o *InitiateTransientOTPOK) IsClientError() bool
IsClientError returns true when this initiate transient o t p o k response has a 4xx status code
func (*InitiateTransientOTPOK) IsCode ¶
func (o *InitiateTransientOTPOK) IsCode(code int) bool
IsCode returns true when this initiate transient o t p o k response a status code equal to that given
func (*InitiateTransientOTPOK) IsRedirect ¶
func (o *InitiateTransientOTPOK) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p o k response has a 3xx status code
func (*InitiateTransientOTPOK) IsServerError ¶
func (o *InitiateTransientOTPOK) IsServerError() bool
IsServerError returns true when this initiate transient o t p o k response has a 5xx status code
func (*InitiateTransientOTPOK) IsSuccess ¶
func (o *InitiateTransientOTPOK) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p o k response has a 2xx status code
func (*InitiateTransientOTPOK) String ¶
func (o *InitiateTransientOTPOK) String() string
type InitiateTransientOTPParams ¶
type InitiateTransientOTPParams struct { // TransientOTP. TransientOTP *models.TransientOTPRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InitiateTransientOTPParams contains all the parameters to send to the API endpoint
for the initiate transient o t p operation. Typically these are written to a http.Request.
func NewInitiateTransientOTPParams ¶
func NewInitiateTransientOTPParams() *InitiateTransientOTPParams
NewInitiateTransientOTPParams creates a new InitiateTransientOTPParams 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 NewInitiateTransientOTPParamsWithContext ¶
func NewInitiateTransientOTPParamsWithContext(ctx context.Context) *InitiateTransientOTPParams
NewInitiateTransientOTPParamsWithContext creates a new InitiateTransientOTPParams object with the ability to set a context for a request.
func NewInitiateTransientOTPParamsWithHTTPClient ¶
func NewInitiateTransientOTPParamsWithHTTPClient(client *http.Client) *InitiateTransientOTPParams
NewInitiateTransientOTPParamsWithHTTPClient creates a new InitiateTransientOTPParams object with the ability to set a custom HTTPClient for a request.
func NewInitiateTransientOTPParamsWithTimeout ¶
func NewInitiateTransientOTPParamsWithTimeout(timeout time.Duration) *InitiateTransientOTPParams
NewInitiateTransientOTPParamsWithTimeout creates a new InitiateTransientOTPParams object with the ability to set a timeout on a request.
func (*InitiateTransientOTPParams) SetContext ¶
func (o *InitiateTransientOTPParams) SetContext(ctx context.Context)
SetContext adds the context to the initiate transient o t p params
func (*InitiateTransientOTPParams) SetDefaults ¶
func (o *InitiateTransientOTPParams) SetDefaults()
SetDefaults hydrates default values in the initiate transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*InitiateTransientOTPParams) SetHTTPClient ¶
func (o *InitiateTransientOTPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the initiate transient o t p params
func (*InitiateTransientOTPParams) SetTimeout ¶
func (o *InitiateTransientOTPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the initiate transient o t p params
func (*InitiateTransientOTPParams) SetTransientOTP ¶
func (o *InitiateTransientOTPParams) SetTransientOTP(transientOTP *models.TransientOTPRequest)
SetTransientOTP adds the transientOTP to the initiate transient o t p params
func (*InitiateTransientOTPParams) WithContext ¶
func (o *InitiateTransientOTPParams) WithContext(ctx context.Context) *InitiateTransientOTPParams
WithContext adds the context to the initiate transient o t p params
func (*InitiateTransientOTPParams) WithDefaults ¶
func (o *InitiateTransientOTPParams) WithDefaults() *InitiateTransientOTPParams
WithDefaults hydrates default values in the initiate transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*InitiateTransientOTPParams) WithHTTPClient ¶
func (o *InitiateTransientOTPParams) WithHTTPClient(client *http.Client) *InitiateTransientOTPParams
WithHTTPClient adds the HTTPClient to the initiate transient o t p params
func (*InitiateTransientOTPParams) WithTimeout ¶
func (o *InitiateTransientOTPParams) WithTimeout(timeout time.Duration) *InitiateTransientOTPParams
WithTimeout adds the timeout to the initiate transient o t p params
func (*InitiateTransientOTPParams) WithTransientOTP ¶
func (o *InitiateTransientOTPParams) WithTransientOTP(transientOTP *models.TransientOTPRequest) *InitiateTransientOTPParams
WithTransientOTP adds the transientOTP to the initiate transient o t p params
func (*InitiateTransientOTPParams) WriteToRequest ¶
func (o *InitiateTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InitiateTransientOTPReader ¶
type InitiateTransientOTPReader struct {
// contains filtered or unexported fields
}
InitiateTransientOTPReader is a Reader for the InitiateTransientOTP structure.
func (*InitiateTransientOTPReader) ReadResponse ¶
func (o *InitiateTransientOTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InitiateTransientOTPTooManyRequests ¶
InitiateTransientOTPTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewInitiateTransientOTPTooManyRequests ¶
func NewInitiateTransientOTPTooManyRequests() *InitiateTransientOTPTooManyRequests
NewInitiateTransientOTPTooManyRequests creates a InitiateTransientOTPTooManyRequests with default headers values
func (*InitiateTransientOTPTooManyRequests) Code ¶
func (o *InitiateTransientOTPTooManyRequests) Code() int
Code gets the status code for the initiate transient o t p too many requests response
func (*InitiateTransientOTPTooManyRequests) Error ¶
func (o *InitiateTransientOTPTooManyRequests) Error() string
func (*InitiateTransientOTPTooManyRequests) GetPayload ¶
func (o *InitiateTransientOTPTooManyRequests) GetPayload() *models.Error
func (*InitiateTransientOTPTooManyRequests) IsClientError ¶
func (o *InitiateTransientOTPTooManyRequests) IsClientError() bool
IsClientError returns true when this initiate transient o t p too many requests response has a 4xx status code
func (*InitiateTransientOTPTooManyRequests) IsCode ¶
func (o *InitiateTransientOTPTooManyRequests) IsCode(code int) bool
IsCode returns true when this initiate transient o t p too many requests response a status code equal to that given
func (*InitiateTransientOTPTooManyRequests) IsRedirect ¶
func (o *InitiateTransientOTPTooManyRequests) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p too many requests response has a 3xx status code
func (*InitiateTransientOTPTooManyRequests) IsServerError ¶
func (o *InitiateTransientOTPTooManyRequests) IsServerError() bool
IsServerError returns true when this initiate transient o t p too many requests response has a 5xx status code
func (*InitiateTransientOTPTooManyRequests) IsSuccess ¶
func (o *InitiateTransientOTPTooManyRequests) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p too many requests response has a 2xx status code
func (*InitiateTransientOTPTooManyRequests) String ¶
func (o *InitiateTransientOTPTooManyRequests) String() string
type InitiateTransientOTPUnauthorized ¶
type InitiateTransientOTPUnauthorized struct {
}InitiateTransientOTPUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewInitiateTransientOTPUnauthorized ¶
func NewInitiateTransientOTPUnauthorized() *InitiateTransientOTPUnauthorized
NewInitiateTransientOTPUnauthorized creates a InitiateTransientOTPUnauthorized with default headers values
func (*InitiateTransientOTPUnauthorized) Code ¶
func (o *InitiateTransientOTPUnauthorized) Code() int
Code gets the status code for the initiate transient o t p unauthorized response
func (*InitiateTransientOTPUnauthorized) Error ¶
func (o *InitiateTransientOTPUnauthorized) Error() string
func (*InitiateTransientOTPUnauthorized) GetPayload ¶
func (o *InitiateTransientOTPUnauthorized) GetPayload() *models.Error
func (*InitiateTransientOTPUnauthorized) IsClientError ¶
func (o *InitiateTransientOTPUnauthorized) IsClientError() bool
IsClientError returns true when this initiate transient o t p unauthorized response has a 4xx status code
func (*InitiateTransientOTPUnauthorized) IsCode ¶
func (o *InitiateTransientOTPUnauthorized) IsCode(code int) bool
IsCode returns true when this initiate transient o t p unauthorized response a status code equal to that given
func (*InitiateTransientOTPUnauthorized) IsRedirect ¶
func (o *InitiateTransientOTPUnauthorized) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p unauthorized response has a 3xx status code
func (*InitiateTransientOTPUnauthorized) IsServerError ¶
func (o *InitiateTransientOTPUnauthorized) IsServerError() bool
IsServerError returns true when this initiate transient o t p unauthorized response has a 5xx status code
func (*InitiateTransientOTPUnauthorized) IsSuccess ¶
func (o *InitiateTransientOTPUnauthorized) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p unauthorized response has a 2xx status code
func (*InitiateTransientOTPUnauthorized) String ¶
func (o *InitiateTransientOTPUnauthorized) String() string
type InitiateTransientOTPUnprocessableEntity ¶
InitiateTransientOTPUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewInitiateTransientOTPUnprocessableEntity ¶
func NewInitiateTransientOTPUnprocessableEntity() *InitiateTransientOTPUnprocessableEntity
NewInitiateTransientOTPUnprocessableEntity creates a InitiateTransientOTPUnprocessableEntity with default headers values
func (*InitiateTransientOTPUnprocessableEntity) Code ¶
func (o *InitiateTransientOTPUnprocessableEntity) Code() int
Code gets the status code for the initiate transient o t p unprocessable entity response
func (*InitiateTransientOTPUnprocessableEntity) Error ¶
func (o *InitiateTransientOTPUnprocessableEntity) Error() string
func (*InitiateTransientOTPUnprocessableEntity) GetPayload ¶
func (o *InitiateTransientOTPUnprocessableEntity) GetPayload() *models.Error
func (*InitiateTransientOTPUnprocessableEntity) IsClientError ¶
func (o *InitiateTransientOTPUnprocessableEntity) IsClientError() bool
IsClientError returns true when this initiate transient o t p unprocessable entity response has a 4xx status code
func (*InitiateTransientOTPUnprocessableEntity) IsCode ¶
func (o *InitiateTransientOTPUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this initiate transient o t p unprocessable entity response a status code equal to that given
func (*InitiateTransientOTPUnprocessableEntity) IsRedirect ¶
func (o *InitiateTransientOTPUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this initiate transient o t p unprocessable entity response has a 3xx status code
func (*InitiateTransientOTPUnprocessableEntity) IsServerError ¶
func (o *InitiateTransientOTPUnprocessableEntity) IsServerError() bool
IsServerError returns true when this initiate transient o t p unprocessable entity response has a 5xx status code
func (*InitiateTransientOTPUnprocessableEntity) IsSuccess ¶
func (o *InitiateTransientOTPUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this initiate transient o t p unprocessable entity response has a 2xx status code
func (*InitiateTransientOTPUnprocessableEntity) String ¶
func (o *InitiateTransientOTPUnprocessableEntity) String() string
type VerifyTransientOTPForbidden ¶
VerifyTransientOTPForbidden describes a response with status code 403, with default header values.
Forbidden
func NewVerifyTransientOTPForbidden ¶
func NewVerifyTransientOTPForbidden() *VerifyTransientOTPForbidden
NewVerifyTransientOTPForbidden creates a VerifyTransientOTPForbidden with default headers values
func (*VerifyTransientOTPForbidden) Code ¶
func (o *VerifyTransientOTPForbidden) Code() int
Code gets the status code for the verify transient o t p forbidden response
func (*VerifyTransientOTPForbidden) Error ¶
func (o *VerifyTransientOTPForbidden) Error() string
func (*VerifyTransientOTPForbidden) GetPayload ¶
func (o *VerifyTransientOTPForbidden) GetPayload() *models.Error
func (*VerifyTransientOTPForbidden) IsClientError ¶
func (o *VerifyTransientOTPForbidden) IsClientError() bool
IsClientError returns true when this verify transient o t p forbidden response has a 4xx status code
func (*VerifyTransientOTPForbidden) IsCode ¶
func (o *VerifyTransientOTPForbidden) IsCode(code int) bool
IsCode returns true when this verify transient o t p forbidden response a status code equal to that given
func (*VerifyTransientOTPForbidden) IsRedirect ¶
func (o *VerifyTransientOTPForbidden) IsRedirect() bool
IsRedirect returns true when this verify transient o t p forbidden response has a 3xx status code
func (*VerifyTransientOTPForbidden) IsServerError ¶
func (o *VerifyTransientOTPForbidden) IsServerError() bool
IsServerError returns true when this verify transient o t p forbidden response has a 5xx status code
func (*VerifyTransientOTPForbidden) IsSuccess ¶
func (o *VerifyTransientOTPForbidden) IsSuccess() bool
IsSuccess returns true when this verify transient o t p forbidden response has a 2xx status code
func (*VerifyTransientOTPForbidden) String ¶
func (o *VerifyTransientOTPForbidden) String() string
type VerifyTransientOTPNoContent ¶
type VerifyTransientOTPNoContent struct { }
VerifyTransientOTPNoContent describes a response with status code 204, with default header values.
one-time password verified
func NewVerifyTransientOTPNoContent ¶
func NewVerifyTransientOTPNoContent() *VerifyTransientOTPNoContent
NewVerifyTransientOTPNoContent creates a VerifyTransientOTPNoContent with default headers values
func (*VerifyTransientOTPNoContent) Code ¶
func (o *VerifyTransientOTPNoContent) Code() int
Code gets the status code for the verify transient o t p no content response
func (*VerifyTransientOTPNoContent) Error ¶
func (o *VerifyTransientOTPNoContent) Error() string
func (*VerifyTransientOTPNoContent) IsClientError ¶
func (o *VerifyTransientOTPNoContent) IsClientError() bool
IsClientError returns true when this verify transient o t p no content response has a 4xx status code
func (*VerifyTransientOTPNoContent) IsCode ¶
func (o *VerifyTransientOTPNoContent) IsCode(code int) bool
IsCode returns true when this verify transient o t p no content response a status code equal to that given
func (*VerifyTransientOTPNoContent) IsRedirect ¶
func (o *VerifyTransientOTPNoContent) IsRedirect() bool
IsRedirect returns true when this verify transient o t p no content response has a 3xx status code
func (*VerifyTransientOTPNoContent) IsServerError ¶
func (o *VerifyTransientOTPNoContent) IsServerError() bool
IsServerError returns true when this verify transient o t p no content response has a 5xx status code
func (*VerifyTransientOTPNoContent) IsSuccess ¶
func (o *VerifyTransientOTPNoContent) IsSuccess() bool
IsSuccess returns true when this verify transient o t p no content response has a 2xx status code
func (*VerifyTransientOTPNoContent) String ¶
func (o *VerifyTransientOTPNoContent) String() string
type VerifyTransientOTPNotFound ¶
VerifyTransientOTPNotFound describes a response with status code 404, with default header values.
Not found
func NewVerifyTransientOTPNotFound ¶
func NewVerifyTransientOTPNotFound() *VerifyTransientOTPNotFound
NewVerifyTransientOTPNotFound creates a VerifyTransientOTPNotFound with default headers values
func (*VerifyTransientOTPNotFound) Code ¶
func (o *VerifyTransientOTPNotFound) Code() int
Code gets the status code for the verify transient o t p not found response
func (*VerifyTransientOTPNotFound) Error ¶
func (o *VerifyTransientOTPNotFound) Error() string
func (*VerifyTransientOTPNotFound) GetPayload ¶
func (o *VerifyTransientOTPNotFound) GetPayload() *models.Error
func (*VerifyTransientOTPNotFound) IsClientError ¶
func (o *VerifyTransientOTPNotFound) IsClientError() bool
IsClientError returns true when this verify transient o t p not found response has a 4xx status code
func (*VerifyTransientOTPNotFound) IsCode ¶
func (o *VerifyTransientOTPNotFound) IsCode(code int) bool
IsCode returns true when this verify transient o t p not found response a status code equal to that given
func (*VerifyTransientOTPNotFound) IsRedirect ¶
func (o *VerifyTransientOTPNotFound) IsRedirect() bool
IsRedirect returns true when this verify transient o t p not found response has a 3xx status code
func (*VerifyTransientOTPNotFound) IsServerError ¶
func (o *VerifyTransientOTPNotFound) IsServerError() bool
IsServerError returns true when this verify transient o t p not found response has a 5xx status code
func (*VerifyTransientOTPNotFound) IsSuccess ¶
func (o *VerifyTransientOTPNotFound) IsSuccess() bool
IsSuccess returns true when this verify transient o t p not found response has a 2xx status code
func (*VerifyTransientOTPNotFound) String ¶
func (o *VerifyTransientOTPNotFound) String() string
type VerifyTransientOTPParams ¶
type VerifyTransientOTPParams struct { // TransientOTP. TransientOTP *models.TransientOTPRequest // OtpID. OtpID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VerifyTransientOTPParams contains all the parameters to send to the API endpoint
for the verify transient o t p operation. Typically these are written to a http.Request.
func NewVerifyTransientOTPParams ¶
func NewVerifyTransientOTPParams() *VerifyTransientOTPParams
NewVerifyTransientOTPParams creates a new VerifyTransientOTPParams 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 NewVerifyTransientOTPParamsWithContext ¶
func NewVerifyTransientOTPParamsWithContext(ctx context.Context) *VerifyTransientOTPParams
NewVerifyTransientOTPParamsWithContext creates a new VerifyTransientOTPParams object with the ability to set a context for a request.
func NewVerifyTransientOTPParamsWithHTTPClient ¶
func NewVerifyTransientOTPParamsWithHTTPClient(client *http.Client) *VerifyTransientOTPParams
NewVerifyTransientOTPParamsWithHTTPClient creates a new VerifyTransientOTPParams object with the ability to set a custom HTTPClient for a request.
func NewVerifyTransientOTPParamsWithTimeout ¶
func NewVerifyTransientOTPParamsWithTimeout(timeout time.Duration) *VerifyTransientOTPParams
NewVerifyTransientOTPParamsWithTimeout creates a new VerifyTransientOTPParams object with the ability to set a timeout on a request.
func (*VerifyTransientOTPParams) SetContext ¶
func (o *VerifyTransientOTPParams) SetContext(ctx context.Context)
SetContext adds the context to the verify transient o t p params
func (*VerifyTransientOTPParams) SetDefaults ¶
func (o *VerifyTransientOTPParams) SetDefaults()
SetDefaults hydrates default values in the verify transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*VerifyTransientOTPParams) SetHTTPClient ¶
func (o *VerifyTransientOTPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the verify transient o t p params
func (*VerifyTransientOTPParams) SetOtpID ¶
func (o *VerifyTransientOTPParams) SetOtpID(otpID string)
SetOtpID adds the otpId to the verify transient o t p params
func (*VerifyTransientOTPParams) SetTimeout ¶
func (o *VerifyTransientOTPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the verify transient o t p params
func (*VerifyTransientOTPParams) SetTransientOTP ¶
func (o *VerifyTransientOTPParams) SetTransientOTP(transientOTP *models.TransientOTPRequest)
SetTransientOTP adds the transientOTP to the verify transient o t p params
func (*VerifyTransientOTPParams) WithContext ¶
func (o *VerifyTransientOTPParams) WithContext(ctx context.Context) *VerifyTransientOTPParams
WithContext adds the context to the verify transient o t p params
func (*VerifyTransientOTPParams) WithDefaults ¶
func (o *VerifyTransientOTPParams) WithDefaults() *VerifyTransientOTPParams
WithDefaults hydrates default values in the verify transient o t p params (not the query body).
All values with no default are reset to their zero value.
func (*VerifyTransientOTPParams) WithHTTPClient ¶
func (o *VerifyTransientOTPParams) WithHTTPClient(client *http.Client) *VerifyTransientOTPParams
WithHTTPClient adds the HTTPClient to the verify transient o t p params
func (*VerifyTransientOTPParams) WithOtpID ¶
func (o *VerifyTransientOTPParams) WithOtpID(otpID string) *VerifyTransientOTPParams
WithOtpID adds the otpID to the verify transient o t p params
func (*VerifyTransientOTPParams) WithTimeout ¶
func (o *VerifyTransientOTPParams) WithTimeout(timeout time.Duration) *VerifyTransientOTPParams
WithTimeout adds the timeout to the verify transient o t p params
func (*VerifyTransientOTPParams) WithTransientOTP ¶
func (o *VerifyTransientOTPParams) WithTransientOTP(transientOTP *models.TransientOTPRequest) *VerifyTransientOTPParams
WithTransientOTP adds the transientOTP to the verify transient o t p params
func (*VerifyTransientOTPParams) WriteToRequest ¶
func (o *VerifyTransientOTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VerifyTransientOTPReader ¶
type VerifyTransientOTPReader struct {
// contains filtered or unexported fields
}
VerifyTransientOTPReader is a Reader for the VerifyTransientOTP structure.
func (*VerifyTransientOTPReader) ReadResponse ¶
func (o *VerifyTransientOTPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type VerifyTransientOTPUnauthorized ¶
type VerifyTransientOTPUnauthorized struct {
}VerifyTransientOTPUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewVerifyTransientOTPUnauthorized ¶
func NewVerifyTransientOTPUnauthorized() *VerifyTransientOTPUnauthorized
NewVerifyTransientOTPUnauthorized creates a VerifyTransientOTPUnauthorized with default headers values
func (*VerifyTransientOTPUnauthorized) Code ¶
func (o *VerifyTransientOTPUnauthorized) Code() int
Code gets the status code for the verify transient o t p unauthorized response
func (*VerifyTransientOTPUnauthorized) Error ¶
func (o *VerifyTransientOTPUnauthorized) Error() string
func (*VerifyTransientOTPUnauthorized) GetPayload ¶
func (o *VerifyTransientOTPUnauthorized) GetPayload() *models.Error
func (*VerifyTransientOTPUnauthorized) IsClientError ¶
func (o *VerifyTransientOTPUnauthorized) IsClientError() bool
IsClientError returns true when this verify transient o t p unauthorized response has a 4xx status code
func (*VerifyTransientOTPUnauthorized) IsCode ¶
func (o *VerifyTransientOTPUnauthorized) IsCode(code int) bool
IsCode returns true when this verify transient o t p unauthorized response a status code equal to that given
func (*VerifyTransientOTPUnauthorized) IsRedirect ¶
func (o *VerifyTransientOTPUnauthorized) IsRedirect() bool
IsRedirect returns true when this verify transient o t p unauthorized response has a 3xx status code
func (*VerifyTransientOTPUnauthorized) IsServerError ¶
func (o *VerifyTransientOTPUnauthorized) IsServerError() bool
IsServerError returns true when this verify transient o t p unauthorized response has a 5xx status code
func (*VerifyTransientOTPUnauthorized) IsSuccess ¶
func (o *VerifyTransientOTPUnauthorized) IsSuccess() bool
IsSuccess returns true when this verify transient o t p unauthorized response has a 2xx status code
func (*VerifyTransientOTPUnauthorized) String ¶
func (o *VerifyTransientOTPUnauthorized) String() string