user_auth

package
v0.0.1-test-2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 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 user auth API

func (*Client) CreateOauthProviders

func (a *Client) CreateOauthProviders(params *CreateOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOauthProvidersOK, error)

CreateOauthProviders creates oauth providers

Creates Oauth providers for a specified user - BETA

func (*Client) DeleteOauthProviders

func (a *Client) DeleteOauthProviders(params *DeleteOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOauthProvidersOK, error)

DeleteOauthProviders deletes oauth providers

Removes Oauth providers for a specified user - BETA

func (*Client) EmailAuth

func (a *Client) EmailAuth(params *EmailAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EmailAuthOK, error)

EmailAuth performs email auth

Authenticate a user via Email

func (*Client) GetOauthProviders

func (a *Client) GetOauthProviders(params *GetOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauthProvidersOK, error)

GetOauthProviders gets oauth providers

Get details about Oauth providers for a user

func (*Client) InitOtpAuth

func (a *Client) InitOtpAuth(params *InitOtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpAuthOK, error)

InitOtpAuth inits o t p auth

Initiate an OTP auth activity

func (*Client) Oauth

func (a *Client) Oauth(params *OauthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OauthOK, error)

Oauth oauths

Authenticate a user with an Oidc token (Oauth) - BETA

func (*Client) OtpAuth

func (a *Client) OtpAuth(params *OtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OtpAuthOK, error)

OtpAuth os t p auth

Authenticate a user with an OTP code sent via email or SMS

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateOauthProviders(params *CreateOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOauthProvidersOK, error)

	DeleteOauthProviders(params *DeleteOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOauthProvidersOK, error)

	EmailAuth(params *EmailAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EmailAuthOK, error)

	GetOauthProviders(params *GetOauthProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauthProvidersOK, error)

	InitOtpAuth(params *InitOtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitOtpAuthOK, error)

	Oauth(params *OauthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OauthOK, error)

	OtpAuth(params *OtpAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OtpAuthOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new user auth API client.

type CreateOauthProvidersOK

type CreateOauthProvidersOK struct {
	Payload *models.ActivityResponse
}

CreateOauthProvidersOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateOauthProvidersOK

func NewCreateOauthProvidersOK() *CreateOauthProvidersOK

NewCreateOauthProvidersOK creates a CreateOauthProvidersOK with default headers values

func (*CreateOauthProvidersOK) Code

func (o *CreateOauthProvidersOK) Code() int

Code gets the status code for the create oauth providers o k response

func (*CreateOauthProvidersOK) Error

func (o *CreateOauthProvidersOK) Error() string

func (*CreateOauthProvidersOK) GetPayload

func (*CreateOauthProvidersOK) IsClientError

func (o *CreateOauthProvidersOK) IsClientError() bool

IsClientError returns true when this create oauth providers o k response has a 4xx status code

func (*CreateOauthProvidersOK) IsCode

func (o *CreateOauthProvidersOK) IsCode(code int) bool

IsCode returns true when this create oauth providers o k response a status code equal to that given

func (*CreateOauthProvidersOK) IsRedirect

func (o *CreateOauthProvidersOK) IsRedirect() bool

IsRedirect returns true when this create oauth providers o k response has a 3xx status code

func (*CreateOauthProvidersOK) IsServerError

func (o *CreateOauthProvidersOK) IsServerError() bool

IsServerError returns true when this create oauth providers o k response has a 5xx status code

func (*CreateOauthProvidersOK) IsSuccess

func (o *CreateOauthProvidersOK) IsSuccess() bool

IsSuccess returns true when this create oauth providers o k response has a 2xx status code

func (*CreateOauthProvidersOK) String

func (o *CreateOauthProvidersOK) String() string

type CreateOauthProvidersParams

type CreateOauthProvidersParams struct {

	// Body.
	Body *models.CreateOauthProvidersRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateOauthProvidersParams contains all the parameters to send to the API endpoint

for the create oauth providers operation.

Typically these are written to a http.Request.

func NewCreateOauthProvidersParams

func NewCreateOauthProvidersParams() *CreateOauthProvidersParams

NewCreateOauthProvidersParams creates a new CreateOauthProvidersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateOauthProvidersParamsWithContext

func NewCreateOauthProvidersParamsWithContext(ctx context.Context) *CreateOauthProvidersParams

NewCreateOauthProvidersParamsWithContext creates a new CreateOauthProvidersParams object with the ability to set a context for a request.

func NewCreateOauthProvidersParamsWithHTTPClient

func NewCreateOauthProvidersParamsWithHTTPClient(client *http.Client) *CreateOauthProvidersParams

NewCreateOauthProvidersParamsWithHTTPClient creates a new CreateOauthProvidersParams object with the ability to set a custom HTTPClient for a request.

func NewCreateOauthProvidersParamsWithTimeout

func NewCreateOauthProvidersParamsWithTimeout(timeout time.Duration) *CreateOauthProvidersParams

NewCreateOauthProvidersParamsWithTimeout creates a new CreateOauthProvidersParams object with the ability to set a timeout on a request.

func (*CreateOauthProvidersParams) SetBody

SetBody adds the body to the create oauth providers params

func (*CreateOauthProvidersParams) SetContext

func (o *CreateOauthProvidersParams) SetContext(ctx context.Context)

SetContext adds the context to the create oauth providers params

func (*CreateOauthProvidersParams) SetDefaults

func (o *CreateOauthProvidersParams) SetDefaults()

SetDefaults hydrates default values in the create oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOauthProvidersParams) SetHTTPClient

func (o *CreateOauthProvidersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create oauth providers params

func (*CreateOauthProvidersParams) SetTimeout

func (o *CreateOauthProvidersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create oauth providers params

func (*CreateOauthProvidersParams) WithBody

WithBody adds the body to the create oauth providers params

func (*CreateOauthProvidersParams) WithContext

WithContext adds the context to the create oauth providers params

func (*CreateOauthProvidersParams) WithDefaults

WithDefaults hydrates default values in the create oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOauthProvidersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create oauth providers params

func (*CreateOauthProvidersParams) WithTimeout

WithTimeout adds the timeout to the create oauth providers params

func (*CreateOauthProvidersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateOauthProvidersReader

type CreateOauthProvidersReader struct {
	// contains filtered or unexported fields
}

CreateOauthProvidersReader is a Reader for the CreateOauthProviders structure.

func (*CreateOauthProvidersReader) ReadResponse

func (o *CreateOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteOauthProvidersOK

type DeleteOauthProvidersOK struct {
	Payload *models.ActivityResponse
}

DeleteOauthProvidersOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteOauthProvidersOK

func NewDeleteOauthProvidersOK() *DeleteOauthProvidersOK

NewDeleteOauthProvidersOK creates a DeleteOauthProvidersOK with default headers values

func (*DeleteOauthProvidersOK) Code

func (o *DeleteOauthProvidersOK) Code() int

Code gets the status code for the delete oauth providers o k response

func (*DeleteOauthProvidersOK) Error

func (o *DeleteOauthProvidersOK) Error() string

func (*DeleteOauthProvidersOK) GetPayload

func (*DeleteOauthProvidersOK) IsClientError

func (o *DeleteOauthProvidersOK) IsClientError() bool

IsClientError returns true when this delete oauth providers o k response has a 4xx status code

func (*DeleteOauthProvidersOK) IsCode

func (o *DeleteOauthProvidersOK) IsCode(code int) bool

IsCode returns true when this delete oauth providers o k response a status code equal to that given

func (*DeleteOauthProvidersOK) IsRedirect

func (o *DeleteOauthProvidersOK) IsRedirect() bool

IsRedirect returns true when this delete oauth providers o k response has a 3xx status code

func (*DeleteOauthProvidersOK) IsServerError

func (o *DeleteOauthProvidersOK) IsServerError() bool

IsServerError returns true when this delete oauth providers o k response has a 5xx status code

func (*DeleteOauthProvidersOK) IsSuccess

func (o *DeleteOauthProvidersOK) IsSuccess() bool

IsSuccess returns true when this delete oauth providers o k response has a 2xx status code

func (*DeleteOauthProvidersOK) String

func (o *DeleteOauthProvidersOK) String() string

type DeleteOauthProvidersParams

type DeleteOauthProvidersParams struct {

	// Body.
	Body *models.DeleteOauthProvidersRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteOauthProvidersParams contains all the parameters to send to the API endpoint

for the delete oauth providers operation.

Typically these are written to a http.Request.

func NewDeleteOauthProvidersParams

func NewDeleteOauthProvidersParams() *DeleteOauthProvidersParams

NewDeleteOauthProvidersParams creates a new DeleteOauthProvidersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteOauthProvidersParamsWithContext

func NewDeleteOauthProvidersParamsWithContext(ctx context.Context) *DeleteOauthProvidersParams

NewDeleteOauthProvidersParamsWithContext creates a new DeleteOauthProvidersParams object with the ability to set a context for a request.

func NewDeleteOauthProvidersParamsWithHTTPClient

func NewDeleteOauthProvidersParamsWithHTTPClient(client *http.Client) *DeleteOauthProvidersParams

NewDeleteOauthProvidersParamsWithHTTPClient creates a new DeleteOauthProvidersParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteOauthProvidersParamsWithTimeout

func NewDeleteOauthProvidersParamsWithTimeout(timeout time.Duration) *DeleteOauthProvidersParams

NewDeleteOauthProvidersParamsWithTimeout creates a new DeleteOauthProvidersParams object with the ability to set a timeout on a request.

func (*DeleteOauthProvidersParams) SetBody

SetBody adds the body to the delete oauth providers params

func (*DeleteOauthProvidersParams) SetContext

func (o *DeleteOauthProvidersParams) SetContext(ctx context.Context)

SetContext adds the context to the delete oauth providers params

func (*DeleteOauthProvidersParams) SetDefaults

func (o *DeleteOauthProvidersParams) SetDefaults()

SetDefaults hydrates default values in the delete oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteOauthProvidersParams) SetHTTPClient

func (o *DeleteOauthProvidersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete oauth providers params

func (*DeleteOauthProvidersParams) SetTimeout

func (o *DeleteOauthProvidersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete oauth providers params

func (*DeleteOauthProvidersParams) WithBody

WithBody adds the body to the delete oauth providers params

func (*DeleteOauthProvidersParams) WithContext

WithContext adds the context to the delete oauth providers params

func (*DeleteOauthProvidersParams) WithDefaults

WithDefaults hydrates default values in the delete oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteOauthProvidersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete oauth providers params

func (*DeleteOauthProvidersParams) WithTimeout

WithTimeout adds the timeout to the delete oauth providers params

func (*DeleteOauthProvidersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteOauthProvidersReader

type DeleteOauthProvidersReader struct {
	// contains filtered or unexported fields
}

DeleteOauthProvidersReader is a Reader for the DeleteOauthProviders structure.

func (*DeleteOauthProvidersReader) ReadResponse

func (o *DeleteOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type EmailAuthOK

type EmailAuthOK struct {
	Payload *models.ActivityResponse
}

EmailAuthOK describes a response with status code 200, with default header values.

A successful response.

func NewEmailAuthOK

func NewEmailAuthOK() *EmailAuthOK

NewEmailAuthOK creates a EmailAuthOK with default headers values

func (*EmailAuthOK) Code

func (o *EmailAuthOK) Code() int

Code gets the status code for the email auth o k response

func (*EmailAuthOK) Error

func (o *EmailAuthOK) Error() string

func (*EmailAuthOK) GetPayload

func (o *EmailAuthOK) GetPayload() *models.ActivityResponse

func (*EmailAuthOK) IsClientError

func (o *EmailAuthOK) IsClientError() bool

IsClientError returns true when this email auth o k response has a 4xx status code

func (*EmailAuthOK) IsCode

func (o *EmailAuthOK) IsCode(code int) bool

IsCode returns true when this email auth o k response a status code equal to that given

func (*EmailAuthOK) IsRedirect

func (o *EmailAuthOK) IsRedirect() bool

IsRedirect returns true when this email auth o k response has a 3xx status code

func (*EmailAuthOK) IsServerError

func (o *EmailAuthOK) IsServerError() bool

IsServerError returns true when this email auth o k response has a 5xx status code

func (*EmailAuthOK) IsSuccess

func (o *EmailAuthOK) IsSuccess() bool

IsSuccess returns true when this email auth o k response has a 2xx status code

func (*EmailAuthOK) String

func (o *EmailAuthOK) String() string

type EmailAuthParams

type EmailAuthParams struct {

	// Body.
	Body *models.EmailAuthRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EmailAuthParams contains all the parameters to send to the API endpoint

for the email auth operation.

Typically these are written to a http.Request.

func NewEmailAuthParams

func NewEmailAuthParams() *EmailAuthParams

NewEmailAuthParams creates a new EmailAuthParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewEmailAuthParamsWithContext

func NewEmailAuthParamsWithContext(ctx context.Context) *EmailAuthParams

NewEmailAuthParamsWithContext creates a new EmailAuthParams object with the ability to set a context for a request.

func NewEmailAuthParamsWithHTTPClient

func NewEmailAuthParamsWithHTTPClient(client *http.Client) *EmailAuthParams

NewEmailAuthParamsWithHTTPClient creates a new EmailAuthParams object with the ability to set a custom HTTPClient for a request.

func NewEmailAuthParamsWithTimeout

func NewEmailAuthParamsWithTimeout(timeout time.Duration) *EmailAuthParams

NewEmailAuthParamsWithTimeout creates a new EmailAuthParams object with the ability to set a timeout on a request.

func (*EmailAuthParams) SetBody

func (o *EmailAuthParams) SetBody(body *models.EmailAuthRequest)

SetBody adds the body to the email auth params

func (*EmailAuthParams) SetContext

func (o *EmailAuthParams) SetContext(ctx context.Context)

SetContext adds the context to the email auth params

func (*EmailAuthParams) SetDefaults

func (o *EmailAuthParams) SetDefaults()

SetDefaults hydrates default values in the email auth params (not the query body).

All values with no default are reset to their zero value.

func (*EmailAuthParams) SetHTTPClient

func (o *EmailAuthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the email auth params

func (*EmailAuthParams) SetTimeout

func (o *EmailAuthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the email auth params

func (*EmailAuthParams) WithBody

WithBody adds the body to the email auth params

func (*EmailAuthParams) WithContext

func (o *EmailAuthParams) WithContext(ctx context.Context) *EmailAuthParams

WithContext adds the context to the email auth params

func (*EmailAuthParams) WithDefaults

func (o *EmailAuthParams) WithDefaults() *EmailAuthParams

WithDefaults hydrates default values in the email auth params (not the query body).

All values with no default are reset to their zero value.

func (*EmailAuthParams) WithHTTPClient

func (o *EmailAuthParams) WithHTTPClient(client *http.Client) *EmailAuthParams

WithHTTPClient adds the HTTPClient to the email auth params

func (*EmailAuthParams) WithTimeout

func (o *EmailAuthParams) WithTimeout(timeout time.Duration) *EmailAuthParams

WithTimeout adds the timeout to the email auth params

func (*EmailAuthParams) WriteToRequest

func (o *EmailAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EmailAuthReader

type EmailAuthReader struct {
	// contains filtered or unexported fields
}

EmailAuthReader is a Reader for the EmailAuth structure.

func (*EmailAuthReader) ReadResponse

func (o *EmailAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOauthProvidersOK

type GetOauthProvidersOK struct {
	Payload *models.GetOauthProvidersResponse
}

GetOauthProvidersOK describes a response with status code 200, with default header values.

A successful response.

func NewGetOauthProvidersOK

func NewGetOauthProvidersOK() *GetOauthProvidersOK

NewGetOauthProvidersOK creates a GetOauthProvidersOK with default headers values

func (*GetOauthProvidersOK) Code

func (o *GetOauthProvidersOK) Code() int

Code gets the status code for the get oauth providers o k response

func (*GetOauthProvidersOK) Error

func (o *GetOauthProvidersOK) Error() string

func (*GetOauthProvidersOK) GetPayload

func (*GetOauthProvidersOK) IsClientError

func (o *GetOauthProvidersOK) IsClientError() bool

IsClientError returns true when this get oauth providers o k response has a 4xx status code

func (*GetOauthProvidersOK) IsCode

func (o *GetOauthProvidersOK) IsCode(code int) bool

IsCode returns true when this get oauth providers o k response a status code equal to that given

func (*GetOauthProvidersOK) IsRedirect

func (o *GetOauthProvidersOK) IsRedirect() bool

IsRedirect returns true when this get oauth providers o k response has a 3xx status code

func (*GetOauthProvidersOK) IsServerError

func (o *GetOauthProvidersOK) IsServerError() bool

IsServerError returns true when this get oauth providers o k response has a 5xx status code

func (*GetOauthProvidersOK) IsSuccess

func (o *GetOauthProvidersOK) IsSuccess() bool

IsSuccess returns true when this get oauth providers o k response has a 2xx status code

func (*GetOauthProvidersOK) String

func (o *GetOauthProvidersOK) String() string

type GetOauthProvidersParams

type GetOauthProvidersParams struct {

	// Body.
	Body *models.GetOauthProvidersRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOauthProvidersParams contains all the parameters to send to the API endpoint

for the get oauth providers operation.

Typically these are written to a http.Request.

func NewGetOauthProvidersParams

func NewGetOauthProvidersParams() *GetOauthProvidersParams

NewGetOauthProvidersParams creates a new GetOauthProvidersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetOauthProvidersParamsWithContext

func NewGetOauthProvidersParamsWithContext(ctx context.Context) *GetOauthProvidersParams

NewGetOauthProvidersParamsWithContext creates a new GetOauthProvidersParams object with the ability to set a context for a request.

func NewGetOauthProvidersParamsWithHTTPClient

func NewGetOauthProvidersParamsWithHTTPClient(client *http.Client) *GetOauthProvidersParams

NewGetOauthProvidersParamsWithHTTPClient creates a new GetOauthProvidersParams object with the ability to set a custom HTTPClient for a request.

func NewGetOauthProvidersParamsWithTimeout

func NewGetOauthProvidersParamsWithTimeout(timeout time.Duration) *GetOauthProvidersParams

NewGetOauthProvidersParamsWithTimeout creates a new GetOauthProvidersParams object with the ability to set a timeout on a request.

func (*GetOauthProvidersParams) SetBody

SetBody adds the body to the get oauth providers params

func (*GetOauthProvidersParams) SetContext

func (o *GetOauthProvidersParams) SetContext(ctx context.Context)

SetContext adds the context to the get oauth providers params

func (*GetOauthProvidersParams) SetDefaults

func (o *GetOauthProvidersParams) SetDefaults()

SetDefaults hydrates default values in the get oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*GetOauthProvidersParams) SetHTTPClient

func (o *GetOauthProvidersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get oauth providers params

func (*GetOauthProvidersParams) SetTimeout

func (o *GetOauthProvidersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get oauth providers params

func (*GetOauthProvidersParams) WithBody

WithBody adds the body to the get oauth providers params

func (*GetOauthProvidersParams) WithContext

WithContext adds the context to the get oauth providers params

func (*GetOauthProvidersParams) WithDefaults

WithDefaults hydrates default values in the get oauth providers params (not the query body).

All values with no default are reset to their zero value.

func (*GetOauthProvidersParams) WithHTTPClient

func (o *GetOauthProvidersParams) WithHTTPClient(client *http.Client) *GetOauthProvidersParams

WithHTTPClient adds the HTTPClient to the get oauth providers params

func (*GetOauthProvidersParams) WithTimeout

WithTimeout adds the timeout to the get oauth providers params

func (*GetOauthProvidersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOauthProvidersReader

type GetOauthProvidersReader struct {
	// contains filtered or unexported fields
}

GetOauthProvidersReader is a Reader for the GetOauthProviders structure.

func (*GetOauthProvidersReader) ReadResponse

func (o *GetOauthProvidersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type InitOtpAuthOK

type InitOtpAuthOK struct {
	Payload *models.ActivityResponse
}

InitOtpAuthOK describes a response with status code 200, with default header values.

A successful response.

func NewInitOtpAuthOK

func NewInitOtpAuthOK() *InitOtpAuthOK

NewInitOtpAuthOK creates a InitOtpAuthOK with default headers values

func (*InitOtpAuthOK) Code

func (o *InitOtpAuthOK) Code() int

Code gets the status code for the init otp auth o k response

func (*InitOtpAuthOK) Error

func (o *InitOtpAuthOK) Error() string

func (*InitOtpAuthOK) GetPayload

func (o *InitOtpAuthOK) GetPayload() *models.ActivityResponse

func (*InitOtpAuthOK) IsClientError

func (o *InitOtpAuthOK) IsClientError() bool

IsClientError returns true when this init otp auth o k response has a 4xx status code

func (*InitOtpAuthOK) IsCode

func (o *InitOtpAuthOK) IsCode(code int) bool

IsCode returns true when this init otp auth o k response a status code equal to that given

func (*InitOtpAuthOK) IsRedirect

func (o *InitOtpAuthOK) IsRedirect() bool

IsRedirect returns true when this init otp auth o k response has a 3xx status code

func (*InitOtpAuthOK) IsServerError

func (o *InitOtpAuthOK) IsServerError() bool

IsServerError returns true when this init otp auth o k response has a 5xx status code

func (*InitOtpAuthOK) IsSuccess

func (o *InitOtpAuthOK) IsSuccess() bool

IsSuccess returns true when this init otp auth o k response has a 2xx status code

func (*InitOtpAuthOK) String

func (o *InitOtpAuthOK) String() string

type InitOtpAuthParams

type InitOtpAuthParams struct {

	// Body.
	Body *models.InitOtpAuthRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InitOtpAuthParams contains all the parameters to send to the API endpoint

for the init otp auth operation.

Typically these are written to a http.Request.

func NewInitOtpAuthParams

func NewInitOtpAuthParams() *InitOtpAuthParams

NewInitOtpAuthParams creates a new InitOtpAuthParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewInitOtpAuthParamsWithContext

func NewInitOtpAuthParamsWithContext(ctx context.Context) *InitOtpAuthParams

NewInitOtpAuthParamsWithContext creates a new InitOtpAuthParams object with the ability to set a context for a request.

func NewInitOtpAuthParamsWithHTTPClient

func NewInitOtpAuthParamsWithHTTPClient(client *http.Client) *InitOtpAuthParams

NewInitOtpAuthParamsWithHTTPClient creates a new InitOtpAuthParams object with the ability to set a custom HTTPClient for a request.

func NewInitOtpAuthParamsWithTimeout

func NewInitOtpAuthParamsWithTimeout(timeout time.Duration) *InitOtpAuthParams

NewInitOtpAuthParamsWithTimeout creates a new InitOtpAuthParams object with the ability to set a timeout on a request.

func (*InitOtpAuthParams) SetBody

func (o *InitOtpAuthParams) SetBody(body *models.InitOtpAuthRequest)

SetBody adds the body to the init otp auth params

func (*InitOtpAuthParams) SetContext

func (o *InitOtpAuthParams) SetContext(ctx context.Context)

SetContext adds the context to the init otp auth params

func (*InitOtpAuthParams) SetDefaults

func (o *InitOtpAuthParams) SetDefaults()

SetDefaults hydrates default values in the init otp auth params (not the query body).

All values with no default are reset to their zero value.

func (*InitOtpAuthParams) SetHTTPClient

func (o *InitOtpAuthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the init otp auth params

func (*InitOtpAuthParams) SetTimeout

func (o *InitOtpAuthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the init otp auth params

func (*InitOtpAuthParams) WithBody

WithBody adds the body to the init otp auth params

func (*InitOtpAuthParams) WithContext

func (o *InitOtpAuthParams) WithContext(ctx context.Context) *InitOtpAuthParams

WithContext adds the context to the init otp auth params

func (*InitOtpAuthParams) WithDefaults

func (o *InitOtpAuthParams) WithDefaults() *InitOtpAuthParams

WithDefaults hydrates default values in the init otp auth params (not the query body).

All values with no default are reset to their zero value.

func (*InitOtpAuthParams) WithHTTPClient

func (o *InitOtpAuthParams) WithHTTPClient(client *http.Client) *InitOtpAuthParams

WithHTTPClient adds the HTTPClient to the init otp auth params

func (*InitOtpAuthParams) WithTimeout

func (o *InitOtpAuthParams) WithTimeout(timeout time.Duration) *InitOtpAuthParams

WithTimeout adds the timeout to the init otp auth params

func (*InitOtpAuthParams) WriteToRequest

func (o *InitOtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type InitOtpAuthReader

type InitOtpAuthReader struct {
	// contains filtered or unexported fields
}

InitOtpAuthReader is a Reader for the InitOtpAuth structure.

func (*InitOtpAuthReader) ReadResponse

func (o *InitOtpAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OauthOK

type OauthOK struct {
	Payload *models.ActivityResponse
}

OauthOK describes a response with status code 200, with default header values.

A successful response.

func NewOauthOK

func NewOauthOK() *OauthOK

NewOauthOK creates a OauthOK with default headers values

func (*OauthOK) Code

func (o *OauthOK) Code() int

Code gets the status code for the oauth o k response

func (*OauthOK) Error

func (o *OauthOK) Error() string

func (*OauthOK) GetPayload

func (o *OauthOK) GetPayload() *models.ActivityResponse

func (*OauthOK) IsClientError

func (o *OauthOK) IsClientError() bool

IsClientError returns true when this oauth o k response has a 4xx status code

func (*OauthOK) IsCode

func (o *OauthOK) IsCode(code int) bool

IsCode returns true when this oauth o k response a status code equal to that given

func (*OauthOK) IsRedirect

func (o *OauthOK) IsRedirect() bool

IsRedirect returns true when this oauth o k response has a 3xx status code

func (*OauthOK) IsServerError

func (o *OauthOK) IsServerError() bool

IsServerError returns true when this oauth o k response has a 5xx status code

func (*OauthOK) IsSuccess

func (o *OauthOK) IsSuccess() bool

IsSuccess returns true when this oauth o k response has a 2xx status code

func (*OauthOK) String

func (o *OauthOK) String() string

type OauthParams

type OauthParams struct {

	// Body.
	Body *models.OauthRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OauthParams contains all the parameters to send to the API endpoint

for the oauth operation.

Typically these are written to a http.Request.

func NewOauthParams

func NewOauthParams() *OauthParams

NewOauthParams creates a new OauthParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOauthParamsWithContext

func NewOauthParamsWithContext(ctx context.Context) *OauthParams

NewOauthParamsWithContext creates a new OauthParams object with the ability to set a context for a request.

func NewOauthParamsWithHTTPClient

func NewOauthParamsWithHTTPClient(client *http.Client) *OauthParams

NewOauthParamsWithHTTPClient creates a new OauthParams object with the ability to set a custom HTTPClient for a request.

func NewOauthParamsWithTimeout

func NewOauthParamsWithTimeout(timeout time.Duration) *OauthParams

NewOauthParamsWithTimeout creates a new OauthParams object with the ability to set a timeout on a request.

func (*OauthParams) SetBody

func (o *OauthParams) SetBody(body *models.OauthRequest)

SetBody adds the body to the oauth params

func (*OauthParams) SetContext

func (o *OauthParams) SetContext(ctx context.Context)

SetContext adds the context to the oauth params

func (*OauthParams) SetDefaults

func (o *OauthParams) SetDefaults()

SetDefaults hydrates default values in the oauth params (not the query body).

All values with no default are reset to their zero value.

func (*OauthParams) SetHTTPClient

func (o *OauthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the oauth params

func (*OauthParams) SetTimeout

func (o *OauthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the oauth params

func (*OauthParams) WithBody

func (o *OauthParams) WithBody(body *models.OauthRequest) *OauthParams

WithBody adds the body to the oauth params

func (*OauthParams) WithContext

func (o *OauthParams) WithContext(ctx context.Context) *OauthParams

WithContext adds the context to the oauth params

func (*OauthParams) WithDefaults

func (o *OauthParams) WithDefaults() *OauthParams

WithDefaults hydrates default values in the oauth params (not the query body).

All values with no default are reset to their zero value.

func (*OauthParams) WithHTTPClient

func (o *OauthParams) WithHTTPClient(client *http.Client) *OauthParams

WithHTTPClient adds the HTTPClient to the oauth params

func (*OauthParams) WithTimeout

func (o *OauthParams) WithTimeout(timeout time.Duration) *OauthParams

WithTimeout adds the timeout to the oauth params

func (*OauthParams) WriteToRequest

func (o *OauthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OauthReader

type OauthReader struct {
	// contains filtered or unexported fields
}

OauthReader is a Reader for the Oauth structure.

func (*OauthReader) ReadResponse

func (o *OauthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OtpAuthOK

type OtpAuthOK struct {
	Payload *models.ActivityResponse
}

OtpAuthOK describes a response with status code 200, with default header values.

A successful response.

func NewOtpAuthOK

func NewOtpAuthOK() *OtpAuthOK

NewOtpAuthOK creates a OtpAuthOK with default headers values

func (*OtpAuthOK) Code

func (o *OtpAuthOK) Code() int

Code gets the status code for the otp auth o k response

func (*OtpAuthOK) Error

func (o *OtpAuthOK) Error() string

func (*OtpAuthOK) GetPayload

func (o *OtpAuthOK) GetPayload() *models.ActivityResponse

func (*OtpAuthOK) IsClientError

func (o *OtpAuthOK) IsClientError() bool

IsClientError returns true when this otp auth o k response has a 4xx status code

func (*OtpAuthOK) IsCode

func (o *OtpAuthOK) IsCode(code int) bool

IsCode returns true when this otp auth o k response a status code equal to that given

func (*OtpAuthOK) IsRedirect

func (o *OtpAuthOK) IsRedirect() bool

IsRedirect returns true when this otp auth o k response has a 3xx status code

func (*OtpAuthOK) IsServerError

func (o *OtpAuthOK) IsServerError() bool

IsServerError returns true when this otp auth o k response has a 5xx status code

func (*OtpAuthOK) IsSuccess

func (o *OtpAuthOK) IsSuccess() bool

IsSuccess returns true when this otp auth o k response has a 2xx status code

func (*OtpAuthOK) String

func (o *OtpAuthOK) String() string

type OtpAuthParams

type OtpAuthParams struct {

	// Body.
	Body *models.OtpAuthRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OtpAuthParams contains all the parameters to send to the API endpoint

for the otp auth operation.

Typically these are written to a http.Request.

func NewOtpAuthParams

func NewOtpAuthParams() *OtpAuthParams

NewOtpAuthParams creates a new OtpAuthParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOtpAuthParamsWithContext

func NewOtpAuthParamsWithContext(ctx context.Context) *OtpAuthParams

NewOtpAuthParamsWithContext creates a new OtpAuthParams object with the ability to set a context for a request.

func NewOtpAuthParamsWithHTTPClient

func NewOtpAuthParamsWithHTTPClient(client *http.Client) *OtpAuthParams

NewOtpAuthParamsWithHTTPClient creates a new OtpAuthParams object with the ability to set a custom HTTPClient for a request.

func NewOtpAuthParamsWithTimeout

func NewOtpAuthParamsWithTimeout(timeout time.Duration) *OtpAuthParams

NewOtpAuthParamsWithTimeout creates a new OtpAuthParams object with the ability to set a timeout on a request.

func (*OtpAuthParams) SetBody

func (o *OtpAuthParams) SetBody(body *models.OtpAuthRequest)

SetBody adds the body to the otp auth params

func (*OtpAuthParams) SetContext

func (o *OtpAuthParams) SetContext(ctx context.Context)

SetContext adds the context to the otp auth params

func (*OtpAuthParams) SetDefaults

func (o *OtpAuthParams) SetDefaults()

SetDefaults hydrates default values in the otp auth params (not the query body).

All values with no default are reset to their zero value.

func (*OtpAuthParams) SetHTTPClient

func (o *OtpAuthParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the otp auth params

func (*OtpAuthParams) SetTimeout

func (o *OtpAuthParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the otp auth params

func (*OtpAuthParams) WithBody

func (o *OtpAuthParams) WithBody(body *models.OtpAuthRequest) *OtpAuthParams

WithBody adds the body to the otp auth params

func (*OtpAuthParams) WithContext

func (o *OtpAuthParams) WithContext(ctx context.Context) *OtpAuthParams

WithContext adds the context to the otp auth params

func (*OtpAuthParams) WithDefaults

func (o *OtpAuthParams) WithDefaults() *OtpAuthParams

WithDefaults hydrates default values in the otp auth params (not the query body).

All values with no default are reset to their zero value.

func (*OtpAuthParams) WithHTTPClient

func (o *OtpAuthParams) WithHTTPClient(client *http.Client) *OtpAuthParams

WithHTTPClient adds the HTTPClient to the otp auth params

func (*OtpAuthParams) WithTimeout

func (o *OtpAuthParams) WithTimeout(timeout time.Duration) *OtpAuthParams

WithTimeout adds the timeout to the otp auth params

func (*OtpAuthParams) WriteToRequest

func (o *OtpAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OtpAuthReader

type OtpAuthReader struct {
	// contains filtered or unexported fields
}

OtpAuthReader is a Reader for the OtpAuth structure.

func (*OtpAuthReader) ReadResponse

func (o *OtpAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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