transient_otp

package
v0.0.0-...-7b99a6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 is the option for 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.

type GetTransientOTPForbidden

type GetTransientOTPForbidden struct {
	Payload *models.Error
}

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

type GetTransientOTPNotFound struct {
	Payload *models.Error
}

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 (*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

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 {
	Payload *models.Error
}

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 (*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

type GetTransientOTPUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the get transient o t p unprocessable entity response

func (*GetTransientOTPUnprocessableEntity) Error

func (*GetTransientOTPUnprocessableEntity) GetPayload

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

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

IsSuccess returns true when this get transient o t p unprocessable entity response has a 2xx status code

func (*GetTransientOTPUnprocessableEntity) String

type InitiateTransientOTPBadRequest

type InitiateTransientOTPBadRequest struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p bad request response

func (*InitiateTransientOTPBadRequest) Error

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

type InitiateTransientOTPForbidden

type InitiateTransientOTPForbidden struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p forbidden response

func (*InitiateTransientOTPForbidden) Error

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

type InitiateTransientOTPNotFound

type InitiateTransientOTPNotFound struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p not found response

func (*InitiateTransientOTPNotFound) Error

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

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 (*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

WithContext adds the context to the initiate transient o t p params

func (*InitiateTransientOTPParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the initiate transient o t p params

func (*InitiateTransientOTPParams) WithTimeout

WithTimeout adds the timeout to the initiate transient o t p params

func (*InitiateTransientOTPParams) WithTransientOTP

WithTransientOTP adds the transientOTP to the initiate transient o t p params

func (*InitiateTransientOTPParams) WriteToRequest

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

type InitiateTransientOTPTooManyRequests struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p too many requests response

func (*InitiateTransientOTPTooManyRequests) Error

func (*InitiateTransientOTPTooManyRequests) GetPayload

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

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

IsSuccess returns true when this initiate transient o t p too many requests response has a 2xx status code

func (*InitiateTransientOTPTooManyRequests) String

type InitiateTransientOTPUnauthorized

type InitiateTransientOTPUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p unauthorized response

func (*InitiateTransientOTPUnauthorized) Error

func (*InitiateTransientOTPUnauthorized) GetPayload

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

type InitiateTransientOTPUnprocessableEntity

type InitiateTransientOTPUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the initiate transient o t p unprocessable entity response

func (*InitiateTransientOTPUnprocessableEntity) Error

func (*InitiateTransientOTPUnprocessableEntity) GetPayload

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

IsCode returns true when this initiate transient o t p unprocessable entity response a status code equal to that given

func (*InitiateTransientOTPUnprocessableEntity) IsRedirect

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

IsSuccess returns true when this initiate transient o t p unprocessable entity response has a 2xx status code

func (*InitiateTransientOTPUnprocessableEntity) String

type VerifyTransientOTPForbidden

type VerifyTransientOTPForbidden struct {
	Payload *models.Error
}

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 (*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 (*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

type VerifyTransientOTPNotFound struct {
	Payload *models.Error
}

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 (*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

WithContext adds the context to the verify transient o t p params

func (*VerifyTransientOTPParams) WithDefaults

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

WithOtpID adds the otpID to the verify transient o t p params

func (*VerifyTransientOTPParams) WithTimeout

WithTimeout adds the timeout to the verify transient o t p params

func (*VerifyTransientOTPParams) WithTransientOTP

WithTransientOTP adds the transientOTP to the verify transient o t p params

func (*VerifyTransientOTPParams) WriteToRequest

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 {
	Payload *models.Error
}

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

Code gets the status code for the verify transient o t p unauthorized response

func (*VerifyTransientOTPUnauthorized) Error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL