user

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON added in v0.19.1

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptImagePng added in v0.19.1

func WithAcceptImagePng(r *runtime.ClientOperation)

WithAcceptImagePng sets the Accept header to "image/png".

func WithAcceptTextPlain added in v0.19.1

func WithAcceptTextPlain(r *runtime.ClientOperation)

WithAcceptTextPlain sets the Accept header to "text/plain".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for user API

func (*Client) GetUser

func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)

GetUser gets your own user model

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TwoFactorDisablePost added in v0.19.1

func (a *Client) TwoFactorDisablePost(params *TwoFactorDisablePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorDisablePostOK, error)
TwoFactorDisablePost disables 2fa for the authorized user user s current password must be provided for verification purposes

If 2fa is already disabled for this user, code 409 Conflict will be returned.

If the instance is running with OIDC enabled, two factor authentication cannot be turned on or off in GtS, it must be enabled or disabled using the OIDC provider. All calls to 2fa api endpoints will return 422 Unprocessable Entity while OIDC is enabled.

func (*Client) TwoFactorEnablePost added in v0.19.1

func (a *Client) TwoFactorEnablePost(params *TwoFactorEnablePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorEnablePostOK, error)
TwoFactorEnablePost enables 2fa for the authorized user using the provided code from an authenticator app and return an array of one time recovery codes to allow bypassing 2fa

If 2fa is already enabled for this user, code 409 Conflict will be returned.

If the instance is running with OIDC enabled, two factor authentication cannot be turned on or off in GtS, it must be enabled or disabled using the OIDC provider. All calls to 2fa api endpoints will return 422 Unprocessable Entity while OIDC is enabled.

func (*Client) TwoFactorQRCodePngGet added in v0.19.1

func (a *Client) TwoFactorQRCodePngGet(params *TwoFactorQRCodePngGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorQRCodePngGetOK, error)
TwoFactorQRCodePngGet returns a q r code png to allow the authorized user to enable 2fa for their login

For the plaintext version of the QR code URI, call /api/v1/user/2fa/qruri instead.

If 2fa is already enabled for this user, the QR code (with its secret) will not be shared again. Instead, code 409 Conflict will be returned. To get a fresh secret, first disable 2fa using POST /api/v1/user/2fa/disable, and then call this endpoint again.

If the instance is running with OIDC enabled, two factor authentication cannot be turned on or off in GtS, it must be enabled or disabled using the OIDC provider. All calls to 2fa api endpoints will return 422 Unprocessable Entity while OIDC is enabled.

func (*Client) TwoFactorQRCodeURIGet added in v0.19.1

func (a *Client) TwoFactorQRCodeURIGet(params *TwoFactorQRCodeURIGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorQRCodeURIGetOK, error)
TwoFactorQRCodeURIGet returns a q r code uri to allow the authorized user to enable 2fa for their login

For a png of the QR code, call /api/v1/user/2fa/qr.png instead.

If 2fa is already enabled for this user, the QR code URI (with its secret) will not be shared again. Instead, code 409 Conflict will be returned. To get a fresh secret, first disable 2fa using POST /api/v1/user/2fa/disable, and then call this endpoint again.

If the instance is running with OIDC enabled, two factor authentication cannot be turned on or off in GtS, it must be enabled or disabled using the OIDC provider. All calls to 2fa api endpoints will return 422 Unprocessable Entity while OIDC is enabled.

func (*Client) UserEmailChange

func (a *Client) UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error)

UserEmailChange requests changing the email address of authenticated user

func (*Client) UserPasswordChange

func (a *Client) UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, error)
UserPasswordChange changes the password of authenticated user

The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'.

The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept added in v0.19.1

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	TwoFactorDisablePost(params *TwoFactorDisablePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorDisablePostOK, error)

	TwoFactorEnablePost(params *TwoFactorEnablePostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorEnablePostOK, error)

	TwoFactorQRCodePngGet(params *TwoFactorQRCodePngGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorQRCodePngGetOK, error)

	TwoFactorQRCodeURIGet(params *TwoFactorQRCodeURIGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TwoFactorQRCodeURIGetOK, error)

	GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)

	UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error)

	UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, 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 API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new user 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 user 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 GetUserBadRequest

type GetUserBadRequest struct {
}

GetUserBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetUserBadRequest

func NewGetUserBadRequest() *GetUserBadRequest

NewGetUserBadRequest creates a GetUserBadRequest with default headers values

func (*GetUserBadRequest) Code

func (o *GetUserBadRequest) Code() int

Code gets the status code for the get user bad request response

func (*GetUserBadRequest) Error

func (o *GetUserBadRequest) Error() string

func (*GetUserBadRequest) IsClientError

func (o *GetUserBadRequest) IsClientError() bool

IsClientError returns true when this get user bad request response has a 4xx status code

func (*GetUserBadRequest) IsCode

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

IsCode returns true when this get user bad request response a status code equal to that given

func (*GetUserBadRequest) IsRedirect

func (o *GetUserBadRequest) IsRedirect() bool

IsRedirect returns true when this get user bad request response has a 3xx status code

func (*GetUserBadRequest) IsServerError

func (o *GetUserBadRequest) IsServerError() bool

IsServerError returns true when this get user bad request response has a 5xx status code

func (*GetUserBadRequest) IsSuccess

func (o *GetUserBadRequest) IsSuccess() bool

IsSuccess returns true when this get user bad request response has a 2xx status code

func (*GetUserBadRequest) String

func (o *GetUserBadRequest) String() string

type GetUserForbidden

type GetUserForbidden struct {
}

GetUserForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Code

func (o *GetUserForbidden) Code() int

Code gets the status code for the get user forbidden response

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) IsClientError

func (o *GetUserForbidden) IsClientError() bool

IsClientError returns true when this get user forbidden response has a 4xx status code

func (*GetUserForbidden) IsCode

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

IsCode returns true when this get user forbidden response a status code equal to that given

func (*GetUserForbidden) IsRedirect

func (o *GetUserForbidden) IsRedirect() bool

IsRedirect returns true when this get user forbidden response has a 3xx status code

func (*GetUserForbidden) IsServerError

func (o *GetUserForbidden) IsServerError() bool

IsServerError returns true when this get user forbidden response has a 5xx status code

func (*GetUserForbidden) IsSuccess

func (o *GetUserForbidden) IsSuccess() bool

IsSuccess returns true when this get user forbidden response has a 2xx status code

func (*GetUserForbidden) String

func (o *GetUserForbidden) String() string

type GetUserInternalServerError

type GetUserInternalServerError struct {
}

GetUserInternalServerError describes a response with status code 500, with default header values.

internal error

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) Code

func (o *GetUserInternalServerError) Code() int

Code gets the status code for the get user internal server error response

func (*GetUserInternalServerError) Error

func (*GetUserInternalServerError) IsClientError

func (o *GetUserInternalServerError) IsClientError() bool

IsClientError returns true when this get user internal server error response has a 4xx status code

func (*GetUserInternalServerError) IsCode

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

IsCode returns true when this get user internal server error response a status code equal to that given

func (*GetUserInternalServerError) IsRedirect

func (o *GetUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this get user internal server error response has a 3xx status code

func (*GetUserInternalServerError) IsServerError

func (o *GetUserInternalServerError) IsServerError() bool

IsServerError returns true when this get user internal server error response has a 5xx status code

func (*GetUserInternalServerError) IsSuccess

func (o *GetUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this get user internal server error response has a 2xx status code

func (*GetUserInternalServerError) String

func (o *GetUserInternalServerError) String() string

type GetUserNotAcceptable

type GetUserNotAcceptable struct {
}

GetUserNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewGetUserNotAcceptable

func NewGetUserNotAcceptable() *GetUserNotAcceptable

NewGetUserNotAcceptable creates a GetUserNotAcceptable with default headers values

func (*GetUserNotAcceptable) Code

func (o *GetUserNotAcceptable) Code() int

Code gets the status code for the get user not acceptable response

func (*GetUserNotAcceptable) Error

func (o *GetUserNotAcceptable) Error() string

func (*GetUserNotAcceptable) IsClientError

func (o *GetUserNotAcceptable) IsClientError() bool

IsClientError returns true when this get user not acceptable response has a 4xx status code

func (*GetUserNotAcceptable) IsCode

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

IsCode returns true when this get user not acceptable response a status code equal to that given

func (*GetUserNotAcceptable) IsRedirect

func (o *GetUserNotAcceptable) IsRedirect() bool

IsRedirect returns true when this get user not acceptable response has a 3xx status code

func (*GetUserNotAcceptable) IsServerError

func (o *GetUserNotAcceptable) IsServerError() bool

IsServerError returns true when this get user not acceptable response has a 5xx status code

func (*GetUserNotAcceptable) IsSuccess

func (o *GetUserNotAcceptable) IsSuccess() bool

IsSuccess returns true when this get user not acceptable response has a 2xx status code

func (*GetUserNotAcceptable) String

func (o *GetUserNotAcceptable) String() string

type GetUserOK

type GetUserOK struct {
	Payload *models.User
}

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

The requested user.

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code

func (o *GetUserOK) Code() int

Code gets the status code for the get user o k response

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

func (o *GetUserOK) GetPayload() *models.User

func (*GetUserOK) IsClientError

func (o *GetUserOK) IsClientError() bool

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

func (*GetUserOK) IsCode

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

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

func (*GetUserOK) IsRedirect

func (o *GetUserOK) IsRedirect() bool

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

func (*GetUserOK) IsServerError

func (o *GetUserOK) IsServerError() bool

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

func (*GetUserOK) IsSuccess

func (o *GetUserOK) IsSuccess() bool

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

func (*GetUserOK) String

func (o *GetUserOK) String() string

type GetUserParams

type GetUserParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUserParams contains all the parameters to send to the API endpoint

for the get user operation.

Typically these are written to a http.Request.

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams 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 NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.

func (*GetUserParams) SetContext

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

SetContext adds the context to the get user params

func (*GetUserParams) SetDefaults

func (o *GetUserParams) SetDefaults()

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

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

func (*GetUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout

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

SetTimeout adds the timeout to the get user params

func (*GetUserParams) WithContext

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

WithContext adds the context to the get user params

func (*GetUserParams) WithDefaults

func (o *GetUserParams) WithDefaults() *GetUserParams

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

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

func (*GetUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout

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

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserUnauthorized

type GetUserUnauthorized struct {
}

GetUserUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Code

func (o *GetUserUnauthorized) Code() int

Code gets the status code for the get user unauthorized response

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

func (*GetUserUnauthorized) IsClientError

func (o *GetUserUnauthorized) IsClientError() bool

IsClientError returns true when this get user unauthorized response has a 4xx status code

func (*GetUserUnauthorized) IsCode

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

IsCode returns true when this get user unauthorized response a status code equal to that given

func (*GetUserUnauthorized) IsRedirect

func (o *GetUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this get user unauthorized response has a 3xx status code

func (*GetUserUnauthorized) IsServerError

func (o *GetUserUnauthorized) IsServerError() bool

IsServerError returns true when this get user unauthorized response has a 5xx status code

func (*GetUserUnauthorized) IsSuccess

func (o *GetUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this get user unauthorized response has a 2xx status code

func (*GetUserUnauthorized) String

func (o *GetUserUnauthorized) String() string

type TwoFactorDisablePostConflict added in v0.19.1

type TwoFactorDisablePostConflict struct {
}

TwoFactorDisablePostConflict describes a response with status code 409, with default header values.

conflict

func NewTwoFactorDisablePostConflict added in v0.19.1

func NewTwoFactorDisablePostConflict() *TwoFactorDisablePostConflict

NewTwoFactorDisablePostConflict creates a TwoFactorDisablePostConflict with default headers values

func (*TwoFactorDisablePostConflict) Code added in v0.19.1

Code gets the status code for the two factor disable post conflict response

func (*TwoFactorDisablePostConflict) Error added in v0.19.1

func (*TwoFactorDisablePostConflict) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostConflict) IsClientError() bool

IsClientError returns true when this two factor disable post conflict response has a 4xx status code

func (*TwoFactorDisablePostConflict) IsCode added in v0.19.1

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

IsCode returns true when this two factor disable post conflict response a status code equal to that given

func (*TwoFactorDisablePostConflict) IsRedirect added in v0.19.1

func (o *TwoFactorDisablePostConflict) IsRedirect() bool

IsRedirect returns true when this two factor disable post conflict response has a 3xx status code

func (*TwoFactorDisablePostConflict) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostConflict) IsServerError() bool

IsServerError returns true when this two factor disable post conflict response has a 5xx status code

func (*TwoFactorDisablePostConflict) IsSuccess added in v0.19.1

func (o *TwoFactorDisablePostConflict) IsSuccess() bool

IsSuccess returns true when this two factor disable post conflict response has a 2xx status code

func (*TwoFactorDisablePostConflict) String added in v0.19.1

type TwoFactorDisablePostForbidden added in v0.19.1

type TwoFactorDisablePostForbidden struct {
}

TwoFactorDisablePostForbidden describes a response with status code 403, with default header values.

forbidden

func NewTwoFactorDisablePostForbidden added in v0.19.1

func NewTwoFactorDisablePostForbidden() *TwoFactorDisablePostForbidden

NewTwoFactorDisablePostForbidden creates a TwoFactorDisablePostForbidden with default headers values

func (*TwoFactorDisablePostForbidden) Code added in v0.19.1

Code gets the status code for the two factor disable post forbidden response

func (*TwoFactorDisablePostForbidden) Error added in v0.19.1

func (*TwoFactorDisablePostForbidden) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostForbidden) IsClientError() bool

IsClientError returns true when this two factor disable post forbidden response has a 4xx status code

func (*TwoFactorDisablePostForbidden) IsCode added in v0.19.1

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

IsCode returns true when this two factor disable post forbidden response a status code equal to that given

func (*TwoFactorDisablePostForbidden) IsRedirect added in v0.19.1

func (o *TwoFactorDisablePostForbidden) IsRedirect() bool

IsRedirect returns true when this two factor disable post forbidden response has a 3xx status code

func (*TwoFactorDisablePostForbidden) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostForbidden) IsServerError() bool

IsServerError returns true when this two factor disable post forbidden response has a 5xx status code

func (*TwoFactorDisablePostForbidden) IsSuccess added in v0.19.1

func (o *TwoFactorDisablePostForbidden) IsSuccess() bool

IsSuccess returns true when this two factor disable post forbidden response has a 2xx status code

func (*TwoFactorDisablePostForbidden) String added in v0.19.1

type TwoFactorDisablePostInternalServerError added in v0.19.1

type TwoFactorDisablePostInternalServerError struct {
}

TwoFactorDisablePostInternalServerError describes a response with status code 500, with default header values.

internal error

func NewTwoFactorDisablePostInternalServerError added in v0.19.1

func NewTwoFactorDisablePostInternalServerError() *TwoFactorDisablePostInternalServerError

NewTwoFactorDisablePostInternalServerError creates a TwoFactorDisablePostInternalServerError with default headers values

func (*TwoFactorDisablePostInternalServerError) Code added in v0.19.1

Code gets the status code for the two factor disable post internal server error response

func (*TwoFactorDisablePostInternalServerError) Error added in v0.19.1

func (*TwoFactorDisablePostInternalServerError) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostInternalServerError) IsClientError() bool

IsClientError returns true when this two factor disable post internal server error response has a 4xx status code

func (*TwoFactorDisablePostInternalServerError) IsCode added in v0.19.1

IsCode returns true when this two factor disable post internal server error response a status code equal to that given

func (*TwoFactorDisablePostInternalServerError) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor disable post internal server error response has a 3xx status code

func (*TwoFactorDisablePostInternalServerError) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostInternalServerError) IsServerError() bool

IsServerError returns true when this two factor disable post internal server error response has a 5xx status code

func (*TwoFactorDisablePostInternalServerError) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor disable post internal server error response has a 2xx status code

func (*TwoFactorDisablePostInternalServerError) String added in v0.19.1

type TwoFactorDisablePostNotAcceptable added in v0.19.1

type TwoFactorDisablePostNotAcceptable struct {
}

TwoFactorDisablePostNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTwoFactorDisablePostNotAcceptable added in v0.19.1

func NewTwoFactorDisablePostNotAcceptable() *TwoFactorDisablePostNotAcceptable

NewTwoFactorDisablePostNotAcceptable creates a TwoFactorDisablePostNotAcceptable with default headers values

func (*TwoFactorDisablePostNotAcceptable) Code added in v0.19.1

Code gets the status code for the two factor disable post not acceptable response

func (*TwoFactorDisablePostNotAcceptable) Error added in v0.19.1

func (*TwoFactorDisablePostNotAcceptable) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostNotAcceptable) IsClientError() bool

IsClientError returns true when this two factor disable post not acceptable response has a 4xx status code

func (*TwoFactorDisablePostNotAcceptable) IsCode added in v0.19.1

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

IsCode returns true when this two factor disable post not acceptable response a status code equal to that given

func (*TwoFactorDisablePostNotAcceptable) IsRedirect added in v0.19.1

func (o *TwoFactorDisablePostNotAcceptable) IsRedirect() bool

IsRedirect returns true when this two factor disable post not acceptable response has a 3xx status code

func (*TwoFactorDisablePostNotAcceptable) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostNotAcceptable) IsServerError() bool

IsServerError returns true when this two factor disable post not acceptable response has a 5xx status code

func (*TwoFactorDisablePostNotAcceptable) IsSuccess added in v0.19.1

func (o *TwoFactorDisablePostNotAcceptable) IsSuccess() bool

IsSuccess returns true when this two factor disable post not acceptable response has a 2xx status code

func (*TwoFactorDisablePostNotAcceptable) String added in v0.19.1

type TwoFactorDisablePostOK added in v0.19.1

type TwoFactorDisablePostOK struct {
}

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

QR code

func NewTwoFactorDisablePostOK added in v0.19.1

func NewTwoFactorDisablePostOK() *TwoFactorDisablePostOK

NewTwoFactorDisablePostOK creates a TwoFactorDisablePostOK with default headers values

func (*TwoFactorDisablePostOK) Code added in v0.19.1

func (o *TwoFactorDisablePostOK) Code() int

Code gets the status code for the two factor disable post o k response

func (*TwoFactorDisablePostOK) Error added in v0.19.1

func (o *TwoFactorDisablePostOK) Error() string

func (*TwoFactorDisablePostOK) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostOK) IsClientError() bool

IsClientError returns true when this two factor disable post o k response has a 4xx status code

func (*TwoFactorDisablePostOK) IsCode added in v0.19.1

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

IsCode returns true when this two factor disable post o k response a status code equal to that given

func (*TwoFactorDisablePostOK) IsRedirect added in v0.19.1

func (o *TwoFactorDisablePostOK) IsRedirect() bool

IsRedirect returns true when this two factor disable post o k response has a 3xx status code

func (*TwoFactorDisablePostOK) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostOK) IsServerError() bool

IsServerError returns true when this two factor disable post o k response has a 5xx status code

func (*TwoFactorDisablePostOK) IsSuccess added in v0.19.1

func (o *TwoFactorDisablePostOK) IsSuccess() bool

IsSuccess returns true when this two factor disable post o k response has a 2xx status code

func (*TwoFactorDisablePostOK) String added in v0.19.1

func (o *TwoFactorDisablePostOK) String() string

type TwoFactorDisablePostParams added in v0.19.1

type TwoFactorDisablePostParams struct {

	/* Password.

	   User's current password, for verification.
	*/
	Password *string

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

TwoFactorDisablePostParams contains all the parameters to send to the API endpoint

for the two factor disable post operation.

Typically these are written to a http.Request.

func NewTwoFactorDisablePostParams added in v0.19.1

func NewTwoFactorDisablePostParams() *TwoFactorDisablePostParams

NewTwoFactorDisablePostParams creates a new TwoFactorDisablePostParams 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 NewTwoFactorDisablePostParamsWithContext added in v0.19.1

func NewTwoFactorDisablePostParamsWithContext(ctx context.Context) *TwoFactorDisablePostParams

NewTwoFactorDisablePostParamsWithContext creates a new TwoFactorDisablePostParams object with the ability to set a context for a request.

func NewTwoFactorDisablePostParamsWithHTTPClient added in v0.19.1

func NewTwoFactorDisablePostParamsWithHTTPClient(client *http.Client) *TwoFactorDisablePostParams

NewTwoFactorDisablePostParamsWithHTTPClient creates a new TwoFactorDisablePostParams object with the ability to set a custom HTTPClient for a request.

func NewTwoFactorDisablePostParamsWithTimeout added in v0.19.1

func NewTwoFactorDisablePostParamsWithTimeout(timeout time.Duration) *TwoFactorDisablePostParams

NewTwoFactorDisablePostParamsWithTimeout creates a new TwoFactorDisablePostParams object with the ability to set a timeout on a request.

func (*TwoFactorDisablePostParams) SetContext added in v0.19.1

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

SetContext adds the context to the two factor disable post params

func (*TwoFactorDisablePostParams) SetDefaults added in v0.19.1

func (o *TwoFactorDisablePostParams) SetDefaults()

SetDefaults hydrates default values in the two factor disable post params (not the query body).

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

func (*TwoFactorDisablePostParams) SetHTTPClient added in v0.19.1

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

SetHTTPClient adds the HTTPClient to the two factor disable post params

func (*TwoFactorDisablePostParams) SetPassword added in v0.19.1

func (o *TwoFactorDisablePostParams) SetPassword(password *string)

SetPassword adds the password to the two factor disable post params

func (*TwoFactorDisablePostParams) SetTimeout added in v0.19.1

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

SetTimeout adds the timeout to the two factor disable post params

func (*TwoFactorDisablePostParams) WithContext added in v0.19.1

WithContext adds the context to the two factor disable post params

func (*TwoFactorDisablePostParams) WithDefaults added in v0.19.1

WithDefaults hydrates default values in the two factor disable post params (not the query body).

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

func (*TwoFactorDisablePostParams) WithHTTPClient added in v0.19.1

WithHTTPClient adds the HTTPClient to the two factor disable post params

func (*TwoFactorDisablePostParams) WithPassword added in v0.19.1

func (o *TwoFactorDisablePostParams) WithPassword(password *string) *TwoFactorDisablePostParams

WithPassword adds the password to the two factor disable post params

func (*TwoFactorDisablePostParams) WithTimeout added in v0.19.1

WithTimeout adds the timeout to the two factor disable post params

func (*TwoFactorDisablePostParams) WriteToRequest added in v0.19.1

WriteToRequest writes these params to a swagger request

type TwoFactorDisablePostReader added in v0.19.1

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

TwoFactorDisablePostReader is a Reader for the TwoFactorDisablePost structure.

func (*TwoFactorDisablePostReader) ReadResponse added in v0.19.1

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

ReadResponse reads a server response into the received o.

type TwoFactorDisablePostUnauthorized added in v0.19.1

type TwoFactorDisablePostUnauthorized struct {
}

TwoFactorDisablePostUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTwoFactorDisablePostUnauthorized added in v0.19.1

func NewTwoFactorDisablePostUnauthorized() *TwoFactorDisablePostUnauthorized

NewTwoFactorDisablePostUnauthorized creates a TwoFactorDisablePostUnauthorized with default headers values

func (*TwoFactorDisablePostUnauthorized) Code added in v0.19.1

Code gets the status code for the two factor disable post unauthorized response

func (*TwoFactorDisablePostUnauthorized) Error added in v0.19.1

func (*TwoFactorDisablePostUnauthorized) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostUnauthorized) IsClientError() bool

IsClientError returns true when this two factor disable post unauthorized response has a 4xx status code

func (*TwoFactorDisablePostUnauthorized) IsCode added in v0.19.1

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

IsCode returns true when this two factor disable post unauthorized response a status code equal to that given

func (*TwoFactorDisablePostUnauthorized) IsRedirect added in v0.19.1

func (o *TwoFactorDisablePostUnauthorized) IsRedirect() bool

IsRedirect returns true when this two factor disable post unauthorized response has a 3xx status code

func (*TwoFactorDisablePostUnauthorized) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostUnauthorized) IsServerError() bool

IsServerError returns true when this two factor disable post unauthorized response has a 5xx status code

func (*TwoFactorDisablePostUnauthorized) IsSuccess added in v0.19.1

func (o *TwoFactorDisablePostUnauthorized) IsSuccess() bool

IsSuccess returns true when this two factor disable post unauthorized response has a 2xx status code

func (*TwoFactorDisablePostUnauthorized) String added in v0.19.1

type TwoFactorDisablePostUnprocessableEntity added in v0.19.1

type TwoFactorDisablePostUnprocessableEntity struct {
}

TwoFactorDisablePostUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable entity

func NewTwoFactorDisablePostUnprocessableEntity added in v0.19.1

func NewTwoFactorDisablePostUnprocessableEntity() *TwoFactorDisablePostUnprocessableEntity

NewTwoFactorDisablePostUnprocessableEntity creates a TwoFactorDisablePostUnprocessableEntity with default headers values

func (*TwoFactorDisablePostUnprocessableEntity) Code added in v0.19.1

Code gets the status code for the two factor disable post unprocessable entity response

func (*TwoFactorDisablePostUnprocessableEntity) Error added in v0.19.1

func (*TwoFactorDisablePostUnprocessableEntity) IsClientError added in v0.19.1

func (o *TwoFactorDisablePostUnprocessableEntity) IsClientError() bool

IsClientError returns true when this two factor disable post unprocessable entity response has a 4xx status code

func (*TwoFactorDisablePostUnprocessableEntity) IsCode added in v0.19.1

IsCode returns true when this two factor disable post unprocessable entity response a status code equal to that given

func (*TwoFactorDisablePostUnprocessableEntity) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor disable post unprocessable entity response has a 3xx status code

func (*TwoFactorDisablePostUnprocessableEntity) IsServerError added in v0.19.1

func (o *TwoFactorDisablePostUnprocessableEntity) IsServerError() bool

IsServerError returns true when this two factor disable post unprocessable entity response has a 5xx status code

func (*TwoFactorDisablePostUnprocessableEntity) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor disable post unprocessable entity response has a 2xx status code

func (*TwoFactorDisablePostUnprocessableEntity) String added in v0.19.1

type TwoFactorEnablePostConflict added in v0.19.1

type TwoFactorEnablePostConflict struct {
}

TwoFactorEnablePostConflict describes a response with status code 409, with default header values.

conflict

func NewTwoFactorEnablePostConflict added in v0.19.1

func NewTwoFactorEnablePostConflict() *TwoFactorEnablePostConflict

NewTwoFactorEnablePostConflict creates a TwoFactorEnablePostConflict with default headers values

func (*TwoFactorEnablePostConflict) Code added in v0.19.1

func (o *TwoFactorEnablePostConflict) Code() int

Code gets the status code for the two factor enable post conflict response

func (*TwoFactorEnablePostConflict) Error added in v0.19.1

func (*TwoFactorEnablePostConflict) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostConflict) IsClientError() bool

IsClientError returns true when this two factor enable post conflict response has a 4xx status code

func (*TwoFactorEnablePostConflict) IsCode added in v0.19.1

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

IsCode returns true when this two factor enable post conflict response a status code equal to that given

func (*TwoFactorEnablePostConflict) IsRedirect added in v0.19.1

func (o *TwoFactorEnablePostConflict) IsRedirect() bool

IsRedirect returns true when this two factor enable post conflict response has a 3xx status code

func (*TwoFactorEnablePostConflict) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostConflict) IsServerError() bool

IsServerError returns true when this two factor enable post conflict response has a 5xx status code

func (*TwoFactorEnablePostConflict) IsSuccess added in v0.19.1

func (o *TwoFactorEnablePostConflict) IsSuccess() bool

IsSuccess returns true when this two factor enable post conflict response has a 2xx status code

func (*TwoFactorEnablePostConflict) String added in v0.19.1

func (o *TwoFactorEnablePostConflict) String() string

type TwoFactorEnablePostForbidden added in v0.19.1

type TwoFactorEnablePostForbidden struct {
}

TwoFactorEnablePostForbidden describes a response with status code 403, with default header values.

forbidden

func NewTwoFactorEnablePostForbidden added in v0.19.1

func NewTwoFactorEnablePostForbidden() *TwoFactorEnablePostForbidden

NewTwoFactorEnablePostForbidden creates a TwoFactorEnablePostForbidden with default headers values

func (*TwoFactorEnablePostForbidden) Code added in v0.19.1

Code gets the status code for the two factor enable post forbidden response

func (*TwoFactorEnablePostForbidden) Error added in v0.19.1

func (*TwoFactorEnablePostForbidden) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostForbidden) IsClientError() bool

IsClientError returns true when this two factor enable post forbidden response has a 4xx status code

func (*TwoFactorEnablePostForbidden) IsCode added in v0.19.1

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

IsCode returns true when this two factor enable post forbidden response a status code equal to that given

func (*TwoFactorEnablePostForbidden) IsRedirect added in v0.19.1

func (o *TwoFactorEnablePostForbidden) IsRedirect() bool

IsRedirect returns true when this two factor enable post forbidden response has a 3xx status code

func (*TwoFactorEnablePostForbidden) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostForbidden) IsServerError() bool

IsServerError returns true when this two factor enable post forbidden response has a 5xx status code

func (*TwoFactorEnablePostForbidden) IsSuccess added in v0.19.1

func (o *TwoFactorEnablePostForbidden) IsSuccess() bool

IsSuccess returns true when this two factor enable post forbidden response has a 2xx status code

func (*TwoFactorEnablePostForbidden) String added in v0.19.1

type TwoFactorEnablePostInternalServerError added in v0.19.1

type TwoFactorEnablePostInternalServerError struct {
}

TwoFactorEnablePostInternalServerError describes a response with status code 500, with default header values.

internal error

func NewTwoFactorEnablePostInternalServerError added in v0.19.1

func NewTwoFactorEnablePostInternalServerError() *TwoFactorEnablePostInternalServerError

NewTwoFactorEnablePostInternalServerError creates a TwoFactorEnablePostInternalServerError with default headers values

func (*TwoFactorEnablePostInternalServerError) Code added in v0.19.1

Code gets the status code for the two factor enable post internal server error response

func (*TwoFactorEnablePostInternalServerError) Error added in v0.19.1

func (*TwoFactorEnablePostInternalServerError) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostInternalServerError) IsClientError() bool

IsClientError returns true when this two factor enable post internal server error response has a 4xx status code

func (*TwoFactorEnablePostInternalServerError) IsCode added in v0.19.1

IsCode returns true when this two factor enable post internal server error response a status code equal to that given

func (*TwoFactorEnablePostInternalServerError) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor enable post internal server error response has a 3xx status code

func (*TwoFactorEnablePostInternalServerError) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostInternalServerError) IsServerError() bool

IsServerError returns true when this two factor enable post internal server error response has a 5xx status code

func (*TwoFactorEnablePostInternalServerError) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor enable post internal server error response has a 2xx status code

func (*TwoFactorEnablePostInternalServerError) String added in v0.19.1

type TwoFactorEnablePostNotAcceptable added in v0.19.1

type TwoFactorEnablePostNotAcceptable struct {
}

TwoFactorEnablePostNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTwoFactorEnablePostNotAcceptable added in v0.19.1

func NewTwoFactorEnablePostNotAcceptable() *TwoFactorEnablePostNotAcceptable

NewTwoFactorEnablePostNotAcceptable creates a TwoFactorEnablePostNotAcceptable with default headers values

func (*TwoFactorEnablePostNotAcceptable) Code added in v0.19.1

Code gets the status code for the two factor enable post not acceptable response

func (*TwoFactorEnablePostNotAcceptable) Error added in v0.19.1

func (*TwoFactorEnablePostNotAcceptable) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostNotAcceptable) IsClientError() bool

IsClientError returns true when this two factor enable post not acceptable response has a 4xx status code

func (*TwoFactorEnablePostNotAcceptable) IsCode added in v0.19.1

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

IsCode returns true when this two factor enable post not acceptable response a status code equal to that given

func (*TwoFactorEnablePostNotAcceptable) IsRedirect added in v0.19.1

func (o *TwoFactorEnablePostNotAcceptable) IsRedirect() bool

IsRedirect returns true when this two factor enable post not acceptable response has a 3xx status code

func (*TwoFactorEnablePostNotAcceptable) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostNotAcceptable) IsServerError() bool

IsServerError returns true when this two factor enable post not acceptable response has a 5xx status code

func (*TwoFactorEnablePostNotAcceptable) IsSuccess added in v0.19.1

func (o *TwoFactorEnablePostNotAcceptable) IsSuccess() bool

IsSuccess returns true when this two factor enable post not acceptable response has a 2xx status code

func (*TwoFactorEnablePostNotAcceptable) String added in v0.19.1

type TwoFactorEnablePostOK added in v0.19.1

type TwoFactorEnablePostOK struct {
}

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

QR code

func NewTwoFactorEnablePostOK added in v0.19.1

func NewTwoFactorEnablePostOK() *TwoFactorEnablePostOK

NewTwoFactorEnablePostOK creates a TwoFactorEnablePostOK with default headers values

func (*TwoFactorEnablePostOK) Code added in v0.19.1

func (o *TwoFactorEnablePostOK) Code() int

Code gets the status code for the two factor enable post o k response

func (*TwoFactorEnablePostOK) Error added in v0.19.1

func (o *TwoFactorEnablePostOK) Error() string

func (*TwoFactorEnablePostOK) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostOK) IsClientError() bool

IsClientError returns true when this two factor enable post o k response has a 4xx status code

func (*TwoFactorEnablePostOK) IsCode added in v0.19.1

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

IsCode returns true when this two factor enable post o k response a status code equal to that given

func (*TwoFactorEnablePostOK) IsRedirect added in v0.19.1

func (o *TwoFactorEnablePostOK) IsRedirect() bool

IsRedirect returns true when this two factor enable post o k response has a 3xx status code

func (*TwoFactorEnablePostOK) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostOK) IsServerError() bool

IsServerError returns true when this two factor enable post o k response has a 5xx status code

func (*TwoFactorEnablePostOK) IsSuccess added in v0.19.1

func (o *TwoFactorEnablePostOK) IsSuccess() bool

IsSuccess returns true when this two factor enable post o k response has a 2xx status code

func (*TwoFactorEnablePostOK) String added in v0.19.1

func (o *TwoFactorEnablePostOK) String() string

type TwoFactorEnablePostParams added in v0.19.1

type TwoFactorEnablePostParams struct {

	/* Code.

	     2fa code from the user's authenticator app.
	Sample: 123456
	*/
	Code *string

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

TwoFactorEnablePostParams contains all the parameters to send to the API endpoint

for the two factor enable post operation.

Typically these are written to a http.Request.

func NewTwoFactorEnablePostParams added in v0.19.1

func NewTwoFactorEnablePostParams() *TwoFactorEnablePostParams

NewTwoFactorEnablePostParams creates a new TwoFactorEnablePostParams 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 NewTwoFactorEnablePostParamsWithContext added in v0.19.1

func NewTwoFactorEnablePostParamsWithContext(ctx context.Context) *TwoFactorEnablePostParams

NewTwoFactorEnablePostParamsWithContext creates a new TwoFactorEnablePostParams object with the ability to set a context for a request.

func NewTwoFactorEnablePostParamsWithHTTPClient added in v0.19.1

func NewTwoFactorEnablePostParamsWithHTTPClient(client *http.Client) *TwoFactorEnablePostParams

NewTwoFactorEnablePostParamsWithHTTPClient creates a new TwoFactorEnablePostParams object with the ability to set a custom HTTPClient for a request.

func NewTwoFactorEnablePostParamsWithTimeout added in v0.19.1

func NewTwoFactorEnablePostParamsWithTimeout(timeout time.Duration) *TwoFactorEnablePostParams

NewTwoFactorEnablePostParamsWithTimeout creates a new TwoFactorEnablePostParams object with the ability to set a timeout on a request.

func (*TwoFactorEnablePostParams) SetCode added in v0.19.1

func (o *TwoFactorEnablePostParams) SetCode(code *string)

SetCode adds the code to the two factor enable post params

func (*TwoFactorEnablePostParams) SetContext added in v0.19.1

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

SetContext adds the context to the two factor enable post params

func (*TwoFactorEnablePostParams) SetDefaults added in v0.19.1

func (o *TwoFactorEnablePostParams) SetDefaults()

SetDefaults hydrates default values in the two factor enable post params (not the query body).

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

func (*TwoFactorEnablePostParams) SetHTTPClient added in v0.19.1

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

SetHTTPClient adds the HTTPClient to the two factor enable post params

func (*TwoFactorEnablePostParams) SetTimeout added in v0.19.1

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

SetTimeout adds the timeout to the two factor enable post params

func (*TwoFactorEnablePostParams) WithCode added in v0.19.1

WithCode adds the code to the two factor enable post params

func (*TwoFactorEnablePostParams) WithContext added in v0.19.1

WithContext adds the context to the two factor enable post params

func (*TwoFactorEnablePostParams) WithDefaults added in v0.19.1

WithDefaults hydrates default values in the two factor enable post params (not the query body).

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

func (*TwoFactorEnablePostParams) WithHTTPClient added in v0.19.1

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

WithHTTPClient adds the HTTPClient to the two factor enable post params

func (*TwoFactorEnablePostParams) WithTimeout added in v0.19.1

WithTimeout adds the timeout to the two factor enable post params

func (*TwoFactorEnablePostParams) WriteToRequest added in v0.19.1

WriteToRequest writes these params to a swagger request

type TwoFactorEnablePostReader added in v0.19.1

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

TwoFactorEnablePostReader is a Reader for the TwoFactorEnablePost structure.

func (*TwoFactorEnablePostReader) ReadResponse added in v0.19.1

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

ReadResponse reads a server response into the received o.

type TwoFactorEnablePostUnauthorized added in v0.19.1

type TwoFactorEnablePostUnauthorized struct {
}

TwoFactorEnablePostUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTwoFactorEnablePostUnauthorized added in v0.19.1

func NewTwoFactorEnablePostUnauthorized() *TwoFactorEnablePostUnauthorized

NewTwoFactorEnablePostUnauthorized creates a TwoFactorEnablePostUnauthorized with default headers values

func (*TwoFactorEnablePostUnauthorized) Code added in v0.19.1

Code gets the status code for the two factor enable post unauthorized response

func (*TwoFactorEnablePostUnauthorized) Error added in v0.19.1

func (*TwoFactorEnablePostUnauthorized) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostUnauthorized) IsClientError() bool

IsClientError returns true when this two factor enable post unauthorized response has a 4xx status code

func (*TwoFactorEnablePostUnauthorized) IsCode added in v0.19.1

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

IsCode returns true when this two factor enable post unauthorized response a status code equal to that given

func (*TwoFactorEnablePostUnauthorized) IsRedirect added in v0.19.1

func (o *TwoFactorEnablePostUnauthorized) IsRedirect() bool

IsRedirect returns true when this two factor enable post unauthorized response has a 3xx status code

func (*TwoFactorEnablePostUnauthorized) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostUnauthorized) IsServerError() bool

IsServerError returns true when this two factor enable post unauthorized response has a 5xx status code

func (*TwoFactorEnablePostUnauthorized) IsSuccess added in v0.19.1

func (o *TwoFactorEnablePostUnauthorized) IsSuccess() bool

IsSuccess returns true when this two factor enable post unauthorized response has a 2xx status code

func (*TwoFactorEnablePostUnauthorized) String added in v0.19.1

type TwoFactorEnablePostUnprocessableEntity added in v0.19.1

type TwoFactorEnablePostUnprocessableEntity struct {
}

TwoFactorEnablePostUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable entity

func NewTwoFactorEnablePostUnprocessableEntity added in v0.19.1

func NewTwoFactorEnablePostUnprocessableEntity() *TwoFactorEnablePostUnprocessableEntity

NewTwoFactorEnablePostUnprocessableEntity creates a TwoFactorEnablePostUnprocessableEntity with default headers values

func (*TwoFactorEnablePostUnprocessableEntity) Code added in v0.19.1

Code gets the status code for the two factor enable post unprocessable entity response

func (*TwoFactorEnablePostUnprocessableEntity) Error added in v0.19.1

func (*TwoFactorEnablePostUnprocessableEntity) IsClientError added in v0.19.1

func (o *TwoFactorEnablePostUnprocessableEntity) IsClientError() bool

IsClientError returns true when this two factor enable post unprocessable entity response has a 4xx status code

func (*TwoFactorEnablePostUnprocessableEntity) IsCode added in v0.19.1

IsCode returns true when this two factor enable post unprocessable entity response a status code equal to that given

func (*TwoFactorEnablePostUnprocessableEntity) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor enable post unprocessable entity response has a 3xx status code

func (*TwoFactorEnablePostUnprocessableEntity) IsServerError added in v0.19.1

func (o *TwoFactorEnablePostUnprocessableEntity) IsServerError() bool

IsServerError returns true when this two factor enable post unprocessable entity response has a 5xx status code

func (*TwoFactorEnablePostUnprocessableEntity) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor enable post unprocessable entity response has a 2xx status code

func (*TwoFactorEnablePostUnprocessableEntity) String added in v0.19.1

type TwoFactorQRCodePngGetConflict added in v0.19.1

type TwoFactorQRCodePngGetConflict struct {
}

TwoFactorQRCodePngGetConflict describes a response with status code 409, with default header values.

conflict

func NewTwoFactorQRCodePngGetConflict added in v0.19.1

func NewTwoFactorQRCodePngGetConflict() *TwoFactorQRCodePngGetConflict

NewTwoFactorQRCodePngGetConflict creates a TwoFactorQRCodePngGetConflict with default headers values

func (*TwoFactorQRCodePngGetConflict) Code added in v0.19.1

Code gets the status code for the two factor q r code png get conflict response

func (*TwoFactorQRCodePngGetConflict) Error added in v0.19.1

func (*TwoFactorQRCodePngGetConflict) IsClientError added in v0.19.1

func (o *TwoFactorQRCodePngGetConflict) IsClientError() bool

IsClientError returns true when this two factor q r code png get conflict response has a 4xx status code

func (*TwoFactorQRCodePngGetConflict) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code png get conflict response a status code equal to that given

func (*TwoFactorQRCodePngGetConflict) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodePngGetConflict) IsRedirect() bool

IsRedirect returns true when this two factor q r code png get conflict response has a 3xx status code

func (*TwoFactorQRCodePngGetConflict) IsServerError added in v0.19.1

func (o *TwoFactorQRCodePngGetConflict) IsServerError() bool

IsServerError returns true when this two factor q r code png get conflict response has a 5xx status code

func (*TwoFactorQRCodePngGetConflict) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodePngGetConflict) IsSuccess() bool

IsSuccess returns true when this two factor q r code png get conflict response has a 2xx status code

func (*TwoFactorQRCodePngGetConflict) String added in v0.19.1

type TwoFactorQRCodePngGetForbidden added in v0.19.1

type TwoFactorQRCodePngGetForbidden struct {
}

TwoFactorQRCodePngGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewTwoFactorQRCodePngGetForbidden added in v0.19.1

func NewTwoFactorQRCodePngGetForbidden() *TwoFactorQRCodePngGetForbidden

NewTwoFactorQRCodePngGetForbidden creates a TwoFactorQRCodePngGetForbidden with default headers values

func (*TwoFactorQRCodePngGetForbidden) Code added in v0.19.1

Code gets the status code for the two factor q r code png get forbidden response

func (*TwoFactorQRCodePngGetForbidden) Error added in v0.19.1

func (*TwoFactorQRCodePngGetForbidden) IsClientError added in v0.19.1

func (o *TwoFactorQRCodePngGetForbidden) IsClientError() bool

IsClientError returns true when this two factor q r code png get forbidden response has a 4xx status code

func (*TwoFactorQRCodePngGetForbidden) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code png get forbidden response a status code equal to that given

func (*TwoFactorQRCodePngGetForbidden) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodePngGetForbidden) IsRedirect() bool

IsRedirect returns true when this two factor q r code png get forbidden response has a 3xx status code

func (*TwoFactorQRCodePngGetForbidden) IsServerError added in v0.19.1

func (o *TwoFactorQRCodePngGetForbidden) IsServerError() bool

IsServerError returns true when this two factor q r code png get forbidden response has a 5xx status code

func (*TwoFactorQRCodePngGetForbidden) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodePngGetForbidden) IsSuccess() bool

IsSuccess returns true when this two factor q r code png get forbidden response has a 2xx status code

func (*TwoFactorQRCodePngGetForbidden) String added in v0.19.1

type TwoFactorQRCodePngGetInternalServerError added in v0.19.1

type TwoFactorQRCodePngGetInternalServerError struct {
}

TwoFactorQRCodePngGetInternalServerError describes a response with status code 500, with default header values.

internal error

func NewTwoFactorQRCodePngGetInternalServerError added in v0.19.1

func NewTwoFactorQRCodePngGetInternalServerError() *TwoFactorQRCodePngGetInternalServerError

NewTwoFactorQRCodePngGetInternalServerError creates a TwoFactorQRCodePngGetInternalServerError with default headers values

func (*TwoFactorQRCodePngGetInternalServerError) Code added in v0.19.1

Code gets the status code for the two factor q r code png get internal server error response

func (*TwoFactorQRCodePngGetInternalServerError) Error added in v0.19.1

func (*TwoFactorQRCodePngGetInternalServerError) IsClientError added in v0.19.1

IsClientError returns true when this two factor q r code png get internal server error response has a 4xx status code

func (*TwoFactorQRCodePngGetInternalServerError) IsCode added in v0.19.1

IsCode returns true when this two factor q r code png get internal server error response a status code equal to that given

func (*TwoFactorQRCodePngGetInternalServerError) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor q r code png get internal server error response has a 3xx status code

func (*TwoFactorQRCodePngGetInternalServerError) IsServerError added in v0.19.1

IsServerError returns true when this two factor q r code png get internal server error response has a 5xx status code

func (*TwoFactorQRCodePngGetInternalServerError) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code png get internal server error response has a 2xx status code

func (*TwoFactorQRCodePngGetInternalServerError) String added in v0.19.1

type TwoFactorQRCodePngGetNotAcceptable added in v0.19.1

type TwoFactorQRCodePngGetNotAcceptable struct {
}

TwoFactorQRCodePngGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTwoFactorQRCodePngGetNotAcceptable added in v0.19.1

func NewTwoFactorQRCodePngGetNotAcceptable() *TwoFactorQRCodePngGetNotAcceptable

NewTwoFactorQRCodePngGetNotAcceptable creates a TwoFactorQRCodePngGetNotAcceptable with default headers values

func (*TwoFactorQRCodePngGetNotAcceptable) Code added in v0.19.1

Code gets the status code for the two factor q r code png get not acceptable response

func (*TwoFactorQRCodePngGetNotAcceptable) Error added in v0.19.1

func (*TwoFactorQRCodePngGetNotAcceptable) IsClientError added in v0.19.1

func (o *TwoFactorQRCodePngGetNotAcceptable) IsClientError() bool

IsClientError returns true when this two factor q r code png get not acceptable response has a 4xx status code

func (*TwoFactorQRCodePngGetNotAcceptable) IsCode added in v0.19.1

IsCode returns true when this two factor q r code png get not acceptable response a status code equal to that given

func (*TwoFactorQRCodePngGetNotAcceptable) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodePngGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this two factor q r code png get not acceptable response has a 3xx status code

func (*TwoFactorQRCodePngGetNotAcceptable) IsServerError added in v0.19.1

func (o *TwoFactorQRCodePngGetNotAcceptable) IsServerError() bool

IsServerError returns true when this two factor q r code png get not acceptable response has a 5xx status code

func (*TwoFactorQRCodePngGetNotAcceptable) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code png get not acceptable response has a 2xx status code

func (*TwoFactorQRCodePngGetNotAcceptable) String added in v0.19.1

type TwoFactorQRCodePngGetOK added in v0.19.1

type TwoFactorQRCodePngGetOK struct {
}

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

QR code png

func NewTwoFactorQRCodePngGetOK added in v0.19.1

func NewTwoFactorQRCodePngGetOK() *TwoFactorQRCodePngGetOK

NewTwoFactorQRCodePngGetOK creates a TwoFactorQRCodePngGetOK with default headers values

func (*TwoFactorQRCodePngGetOK) Code added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) Code() int

Code gets the status code for the two factor q r code png get o k response

func (*TwoFactorQRCodePngGetOK) Error added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) Error() string

func (*TwoFactorQRCodePngGetOK) IsClientError added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) IsClientError() bool

IsClientError returns true when this two factor q r code png get o k response has a 4xx status code

func (*TwoFactorQRCodePngGetOK) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code png get o k response a status code equal to that given

func (*TwoFactorQRCodePngGetOK) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) IsRedirect() bool

IsRedirect returns true when this two factor q r code png get o k response has a 3xx status code

func (*TwoFactorQRCodePngGetOK) IsServerError added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) IsServerError() bool

IsServerError returns true when this two factor q r code png get o k response has a 5xx status code

func (*TwoFactorQRCodePngGetOK) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) IsSuccess() bool

IsSuccess returns true when this two factor q r code png get o k response has a 2xx status code

func (*TwoFactorQRCodePngGetOK) String added in v0.19.1

func (o *TwoFactorQRCodePngGetOK) String() string

type TwoFactorQRCodePngGetParams added in v0.19.1

type TwoFactorQRCodePngGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TwoFactorQRCodePngGetParams contains all the parameters to send to the API endpoint

for the two factor q r code png get operation.

Typically these are written to a http.Request.

func NewTwoFactorQRCodePngGetParams added in v0.19.1

func NewTwoFactorQRCodePngGetParams() *TwoFactorQRCodePngGetParams

NewTwoFactorQRCodePngGetParams creates a new TwoFactorQRCodePngGetParams 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 NewTwoFactorQRCodePngGetParamsWithContext added in v0.19.1

func NewTwoFactorQRCodePngGetParamsWithContext(ctx context.Context) *TwoFactorQRCodePngGetParams

NewTwoFactorQRCodePngGetParamsWithContext creates a new TwoFactorQRCodePngGetParams object with the ability to set a context for a request.

func NewTwoFactorQRCodePngGetParamsWithHTTPClient added in v0.19.1

func NewTwoFactorQRCodePngGetParamsWithHTTPClient(client *http.Client) *TwoFactorQRCodePngGetParams

NewTwoFactorQRCodePngGetParamsWithHTTPClient creates a new TwoFactorQRCodePngGetParams object with the ability to set a custom HTTPClient for a request.

func NewTwoFactorQRCodePngGetParamsWithTimeout added in v0.19.1

func NewTwoFactorQRCodePngGetParamsWithTimeout(timeout time.Duration) *TwoFactorQRCodePngGetParams

NewTwoFactorQRCodePngGetParamsWithTimeout creates a new TwoFactorQRCodePngGetParams object with the ability to set a timeout on a request.

func (*TwoFactorQRCodePngGetParams) SetContext added in v0.19.1

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

SetContext adds the context to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) SetDefaults added in v0.19.1

func (o *TwoFactorQRCodePngGetParams) SetDefaults()

SetDefaults hydrates default values in the two factor q r code png get params (not the query body).

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

func (*TwoFactorQRCodePngGetParams) SetHTTPClient added in v0.19.1

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

SetHTTPClient adds the HTTPClient to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) SetTimeout added in v0.19.1

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

SetTimeout adds the timeout to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) WithContext added in v0.19.1

WithContext adds the context to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) WithDefaults added in v0.19.1

WithDefaults hydrates default values in the two factor q r code png get params (not the query body).

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

func (*TwoFactorQRCodePngGetParams) WithHTTPClient added in v0.19.1

WithHTTPClient adds the HTTPClient to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) WithTimeout added in v0.19.1

WithTimeout adds the timeout to the two factor q r code png get params

func (*TwoFactorQRCodePngGetParams) WriteToRequest added in v0.19.1

WriteToRequest writes these params to a swagger request

type TwoFactorQRCodePngGetReader added in v0.19.1

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

TwoFactorQRCodePngGetReader is a Reader for the TwoFactorQRCodePngGet structure.

func (*TwoFactorQRCodePngGetReader) ReadResponse added in v0.19.1

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

ReadResponse reads a server response into the received o.

type TwoFactorQRCodePngGetUnauthorized added in v0.19.1

type TwoFactorQRCodePngGetUnauthorized struct {
}

TwoFactorQRCodePngGetUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTwoFactorQRCodePngGetUnauthorized added in v0.19.1

func NewTwoFactorQRCodePngGetUnauthorized() *TwoFactorQRCodePngGetUnauthorized

NewTwoFactorQRCodePngGetUnauthorized creates a TwoFactorQRCodePngGetUnauthorized with default headers values

func (*TwoFactorQRCodePngGetUnauthorized) Code added in v0.19.1

Code gets the status code for the two factor q r code png get unauthorized response

func (*TwoFactorQRCodePngGetUnauthorized) Error added in v0.19.1

func (*TwoFactorQRCodePngGetUnauthorized) IsClientError added in v0.19.1

func (o *TwoFactorQRCodePngGetUnauthorized) IsClientError() bool

IsClientError returns true when this two factor q r code png get unauthorized response has a 4xx status code

func (*TwoFactorQRCodePngGetUnauthorized) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code png get unauthorized response a status code equal to that given

func (*TwoFactorQRCodePngGetUnauthorized) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodePngGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this two factor q r code png get unauthorized response has a 3xx status code

func (*TwoFactorQRCodePngGetUnauthorized) IsServerError added in v0.19.1

func (o *TwoFactorQRCodePngGetUnauthorized) IsServerError() bool

IsServerError returns true when this two factor q r code png get unauthorized response has a 5xx status code

func (*TwoFactorQRCodePngGetUnauthorized) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodePngGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this two factor q r code png get unauthorized response has a 2xx status code

func (*TwoFactorQRCodePngGetUnauthorized) String added in v0.19.1

type TwoFactorQRCodePngGetUnprocessableEntity added in v0.19.1

type TwoFactorQRCodePngGetUnprocessableEntity struct {
}

TwoFactorQRCodePngGetUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable entity

func NewTwoFactorQRCodePngGetUnprocessableEntity added in v0.19.1

func NewTwoFactorQRCodePngGetUnprocessableEntity() *TwoFactorQRCodePngGetUnprocessableEntity

NewTwoFactorQRCodePngGetUnprocessableEntity creates a TwoFactorQRCodePngGetUnprocessableEntity with default headers values

func (*TwoFactorQRCodePngGetUnprocessableEntity) Code added in v0.19.1

Code gets the status code for the two factor q r code png get unprocessable entity response

func (*TwoFactorQRCodePngGetUnprocessableEntity) Error added in v0.19.1

func (*TwoFactorQRCodePngGetUnprocessableEntity) IsClientError added in v0.19.1

IsClientError returns true when this two factor q r code png get unprocessable entity response has a 4xx status code

func (*TwoFactorQRCodePngGetUnprocessableEntity) IsCode added in v0.19.1

IsCode returns true when this two factor q r code png get unprocessable entity response a status code equal to that given

func (*TwoFactorQRCodePngGetUnprocessableEntity) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor q r code png get unprocessable entity response has a 3xx status code

func (*TwoFactorQRCodePngGetUnprocessableEntity) IsServerError added in v0.19.1

IsServerError returns true when this two factor q r code png get unprocessable entity response has a 5xx status code

func (*TwoFactorQRCodePngGetUnprocessableEntity) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code png get unprocessable entity response has a 2xx status code

func (*TwoFactorQRCodePngGetUnprocessableEntity) String added in v0.19.1

type TwoFactorQRCodeURIGetConflict added in v0.19.1

type TwoFactorQRCodeURIGetConflict struct {
}

TwoFactorQRCodeURIGetConflict describes a response with status code 409, with default header values.

conflict

func NewTwoFactorQRCodeURIGetConflict added in v0.19.1

func NewTwoFactorQRCodeURIGetConflict() *TwoFactorQRCodeURIGetConflict

NewTwoFactorQRCodeURIGetConflict creates a TwoFactorQRCodeURIGetConflict with default headers values

func (*TwoFactorQRCodeURIGetConflict) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get conflict response

func (*TwoFactorQRCodeURIGetConflict) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetConflict) IsClientError added in v0.19.1

func (o *TwoFactorQRCodeURIGetConflict) IsClientError() bool

IsClientError returns true when this two factor q r code Uri get conflict response has a 4xx status code

func (*TwoFactorQRCodeURIGetConflict) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code Uri get conflict response a status code equal to that given

func (*TwoFactorQRCodeURIGetConflict) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodeURIGetConflict) IsRedirect() bool

IsRedirect returns true when this two factor q r code Uri get conflict response has a 3xx status code

func (*TwoFactorQRCodeURIGetConflict) IsServerError added in v0.19.1

func (o *TwoFactorQRCodeURIGetConflict) IsServerError() bool

IsServerError returns true when this two factor q r code Uri get conflict response has a 5xx status code

func (*TwoFactorQRCodeURIGetConflict) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodeURIGetConflict) IsSuccess() bool

IsSuccess returns true when this two factor q r code Uri get conflict response has a 2xx status code

func (*TwoFactorQRCodeURIGetConflict) String added in v0.19.1

type TwoFactorQRCodeURIGetForbidden added in v0.19.1

type TwoFactorQRCodeURIGetForbidden struct {
}

TwoFactorQRCodeURIGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewTwoFactorQRCodeURIGetForbidden added in v0.19.1

func NewTwoFactorQRCodeURIGetForbidden() *TwoFactorQRCodeURIGetForbidden

NewTwoFactorQRCodeURIGetForbidden creates a TwoFactorQRCodeURIGetForbidden with default headers values

func (*TwoFactorQRCodeURIGetForbidden) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get forbidden response

func (*TwoFactorQRCodeURIGetForbidden) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetForbidden) IsClientError added in v0.19.1

func (o *TwoFactorQRCodeURIGetForbidden) IsClientError() bool

IsClientError returns true when this two factor q r code Uri get forbidden response has a 4xx status code

func (*TwoFactorQRCodeURIGetForbidden) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code Uri get forbidden response a status code equal to that given

func (*TwoFactorQRCodeURIGetForbidden) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodeURIGetForbidden) IsRedirect() bool

IsRedirect returns true when this two factor q r code Uri get forbidden response has a 3xx status code

func (*TwoFactorQRCodeURIGetForbidden) IsServerError added in v0.19.1

func (o *TwoFactorQRCodeURIGetForbidden) IsServerError() bool

IsServerError returns true when this two factor q r code Uri get forbidden response has a 5xx status code

func (*TwoFactorQRCodeURIGetForbidden) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodeURIGetForbidden) IsSuccess() bool

IsSuccess returns true when this two factor q r code Uri get forbidden response has a 2xx status code

func (*TwoFactorQRCodeURIGetForbidden) String added in v0.19.1

type TwoFactorQRCodeURIGetInternalServerError added in v0.19.1

type TwoFactorQRCodeURIGetInternalServerError struct {
}

TwoFactorQRCodeURIGetInternalServerError describes a response with status code 500, with default header values.

internal error

func NewTwoFactorQRCodeURIGetInternalServerError added in v0.19.1

func NewTwoFactorQRCodeURIGetInternalServerError() *TwoFactorQRCodeURIGetInternalServerError

NewTwoFactorQRCodeURIGetInternalServerError creates a TwoFactorQRCodeURIGetInternalServerError with default headers values

func (*TwoFactorQRCodeURIGetInternalServerError) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get internal server error response

func (*TwoFactorQRCodeURIGetInternalServerError) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetInternalServerError) IsClientError added in v0.19.1

IsClientError returns true when this two factor q r code Uri get internal server error response has a 4xx status code

func (*TwoFactorQRCodeURIGetInternalServerError) IsCode added in v0.19.1

IsCode returns true when this two factor q r code Uri get internal server error response a status code equal to that given

func (*TwoFactorQRCodeURIGetInternalServerError) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor q r code Uri get internal server error response has a 3xx status code

func (*TwoFactorQRCodeURIGetInternalServerError) IsServerError added in v0.19.1

IsServerError returns true when this two factor q r code Uri get internal server error response has a 5xx status code

func (*TwoFactorQRCodeURIGetInternalServerError) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code Uri get internal server error response has a 2xx status code

func (*TwoFactorQRCodeURIGetInternalServerError) String added in v0.19.1

type TwoFactorQRCodeURIGetNotAcceptable added in v0.19.1

type TwoFactorQRCodeURIGetNotAcceptable struct {
}

TwoFactorQRCodeURIGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewTwoFactorQRCodeURIGetNotAcceptable added in v0.19.1

func NewTwoFactorQRCodeURIGetNotAcceptable() *TwoFactorQRCodeURIGetNotAcceptable

NewTwoFactorQRCodeURIGetNotAcceptable creates a TwoFactorQRCodeURIGetNotAcceptable with default headers values

func (*TwoFactorQRCodeURIGetNotAcceptable) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get not acceptable response

func (*TwoFactorQRCodeURIGetNotAcceptable) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetNotAcceptable) IsClientError added in v0.19.1

func (o *TwoFactorQRCodeURIGetNotAcceptable) IsClientError() bool

IsClientError returns true when this two factor q r code Uri get not acceptable response has a 4xx status code

func (*TwoFactorQRCodeURIGetNotAcceptable) IsCode added in v0.19.1

IsCode returns true when this two factor q r code Uri get not acceptable response a status code equal to that given

func (*TwoFactorQRCodeURIGetNotAcceptable) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodeURIGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this two factor q r code Uri get not acceptable response has a 3xx status code

func (*TwoFactorQRCodeURIGetNotAcceptable) IsServerError added in v0.19.1

func (o *TwoFactorQRCodeURIGetNotAcceptable) IsServerError() bool

IsServerError returns true when this two factor q r code Uri get not acceptable response has a 5xx status code

func (*TwoFactorQRCodeURIGetNotAcceptable) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code Uri get not acceptable response has a 2xx status code

func (*TwoFactorQRCodeURIGetNotAcceptable) String added in v0.19.1

type TwoFactorQRCodeURIGetOK added in v0.19.1

type TwoFactorQRCodeURIGetOK struct {
}

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

QR code uri

func NewTwoFactorQRCodeURIGetOK added in v0.19.1

func NewTwoFactorQRCodeURIGetOK() *TwoFactorQRCodeURIGetOK

NewTwoFactorQRCodeURIGetOK creates a TwoFactorQRCodeURIGetOK with default headers values

func (*TwoFactorQRCodeURIGetOK) Code added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) Code() int

Code gets the status code for the two factor q r code Uri get o k response

func (*TwoFactorQRCodeURIGetOK) Error added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) Error() string

func (*TwoFactorQRCodeURIGetOK) IsClientError added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) IsClientError() bool

IsClientError returns true when this two factor q r code Uri get o k response has a 4xx status code

func (*TwoFactorQRCodeURIGetOK) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code Uri get o k response a status code equal to that given

func (*TwoFactorQRCodeURIGetOK) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) IsRedirect() bool

IsRedirect returns true when this two factor q r code Uri get o k response has a 3xx status code

func (*TwoFactorQRCodeURIGetOK) IsServerError added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) IsServerError() bool

IsServerError returns true when this two factor q r code Uri get o k response has a 5xx status code

func (*TwoFactorQRCodeURIGetOK) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) IsSuccess() bool

IsSuccess returns true when this two factor q r code Uri get o k response has a 2xx status code

func (*TwoFactorQRCodeURIGetOK) String added in v0.19.1

func (o *TwoFactorQRCodeURIGetOK) String() string

type TwoFactorQRCodeURIGetParams added in v0.19.1

type TwoFactorQRCodeURIGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TwoFactorQRCodeURIGetParams contains all the parameters to send to the API endpoint

for the two factor q r code URI get operation.

Typically these are written to a http.Request.

func NewTwoFactorQRCodeURIGetParams added in v0.19.1

func NewTwoFactorQRCodeURIGetParams() *TwoFactorQRCodeURIGetParams

NewTwoFactorQRCodeURIGetParams creates a new TwoFactorQRCodeURIGetParams 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 NewTwoFactorQRCodeURIGetParamsWithContext added in v0.19.1

func NewTwoFactorQRCodeURIGetParamsWithContext(ctx context.Context) *TwoFactorQRCodeURIGetParams

NewTwoFactorQRCodeURIGetParamsWithContext creates a new TwoFactorQRCodeURIGetParams object with the ability to set a context for a request.

func NewTwoFactorQRCodeURIGetParamsWithHTTPClient added in v0.19.1

func NewTwoFactorQRCodeURIGetParamsWithHTTPClient(client *http.Client) *TwoFactorQRCodeURIGetParams

NewTwoFactorQRCodeURIGetParamsWithHTTPClient creates a new TwoFactorQRCodeURIGetParams object with the ability to set a custom HTTPClient for a request.

func NewTwoFactorQRCodeURIGetParamsWithTimeout added in v0.19.1

func NewTwoFactorQRCodeURIGetParamsWithTimeout(timeout time.Duration) *TwoFactorQRCodeURIGetParams

NewTwoFactorQRCodeURIGetParamsWithTimeout creates a new TwoFactorQRCodeURIGetParams object with the ability to set a timeout on a request.

func (*TwoFactorQRCodeURIGetParams) SetContext added in v0.19.1

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

SetContext adds the context to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) SetDefaults added in v0.19.1

func (o *TwoFactorQRCodeURIGetParams) SetDefaults()

SetDefaults hydrates default values in the two factor q r code URI get params (not the query body).

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

func (*TwoFactorQRCodeURIGetParams) SetHTTPClient added in v0.19.1

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

SetHTTPClient adds the HTTPClient to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) SetTimeout added in v0.19.1

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

SetTimeout adds the timeout to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) WithContext added in v0.19.1

WithContext adds the context to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) WithDefaults added in v0.19.1

WithDefaults hydrates default values in the two factor q r code URI get params (not the query body).

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

func (*TwoFactorQRCodeURIGetParams) WithHTTPClient added in v0.19.1

WithHTTPClient adds the HTTPClient to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) WithTimeout added in v0.19.1

WithTimeout adds the timeout to the two factor q r code URI get params

func (*TwoFactorQRCodeURIGetParams) WriteToRequest added in v0.19.1

WriteToRequest writes these params to a swagger request

type TwoFactorQRCodeURIGetReader added in v0.19.1

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

TwoFactorQRCodeURIGetReader is a Reader for the TwoFactorQRCodeURIGet structure.

func (*TwoFactorQRCodeURIGetReader) ReadResponse added in v0.19.1

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

ReadResponse reads a server response into the received o.

type TwoFactorQRCodeURIGetUnauthorized added in v0.19.1

type TwoFactorQRCodeURIGetUnauthorized struct {
}

TwoFactorQRCodeURIGetUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTwoFactorQRCodeURIGetUnauthorized added in v0.19.1

func NewTwoFactorQRCodeURIGetUnauthorized() *TwoFactorQRCodeURIGetUnauthorized

NewTwoFactorQRCodeURIGetUnauthorized creates a TwoFactorQRCodeURIGetUnauthorized with default headers values

func (*TwoFactorQRCodeURIGetUnauthorized) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get unauthorized response

func (*TwoFactorQRCodeURIGetUnauthorized) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetUnauthorized) IsClientError added in v0.19.1

func (o *TwoFactorQRCodeURIGetUnauthorized) IsClientError() bool

IsClientError returns true when this two factor q r code Uri get unauthorized response has a 4xx status code

func (*TwoFactorQRCodeURIGetUnauthorized) IsCode added in v0.19.1

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

IsCode returns true when this two factor q r code Uri get unauthorized response a status code equal to that given

func (*TwoFactorQRCodeURIGetUnauthorized) IsRedirect added in v0.19.1

func (o *TwoFactorQRCodeURIGetUnauthorized) IsRedirect() bool

IsRedirect returns true when this two factor q r code Uri get unauthorized response has a 3xx status code

func (*TwoFactorQRCodeURIGetUnauthorized) IsServerError added in v0.19.1

func (o *TwoFactorQRCodeURIGetUnauthorized) IsServerError() bool

IsServerError returns true when this two factor q r code Uri get unauthorized response has a 5xx status code

func (*TwoFactorQRCodeURIGetUnauthorized) IsSuccess added in v0.19.1

func (o *TwoFactorQRCodeURIGetUnauthorized) IsSuccess() bool

IsSuccess returns true when this two factor q r code Uri get unauthorized response has a 2xx status code

func (*TwoFactorQRCodeURIGetUnauthorized) String added in v0.19.1

type TwoFactorQRCodeURIGetUnprocessableEntity added in v0.19.1

type TwoFactorQRCodeURIGetUnprocessableEntity struct {
}

TwoFactorQRCodeURIGetUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable entity

func NewTwoFactorQRCodeURIGetUnprocessableEntity added in v0.19.1

func NewTwoFactorQRCodeURIGetUnprocessableEntity() *TwoFactorQRCodeURIGetUnprocessableEntity

NewTwoFactorQRCodeURIGetUnprocessableEntity creates a TwoFactorQRCodeURIGetUnprocessableEntity with default headers values

func (*TwoFactorQRCodeURIGetUnprocessableEntity) Code added in v0.19.1

Code gets the status code for the two factor q r code Uri get unprocessable entity response

func (*TwoFactorQRCodeURIGetUnprocessableEntity) Error added in v0.19.1

func (*TwoFactorQRCodeURIGetUnprocessableEntity) IsClientError added in v0.19.1

IsClientError returns true when this two factor q r code Uri get unprocessable entity response has a 4xx status code

func (*TwoFactorQRCodeURIGetUnprocessableEntity) IsCode added in v0.19.1

IsCode returns true when this two factor q r code Uri get unprocessable entity response a status code equal to that given

func (*TwoFactorQRCodeURIGetUnprocessableEntity) IsRedirect added in v0.19.1

IsRedirect returns true when this two factor q r code Uri get unprocessable entity response has a 3xx status code

func (*TwoFactorQRCodeURIGetUnprocessableEntity) IsServerError added in v0.19.1

IsServerError returns true when this two factor q r code Uri get unprocessable entity response has a 5xx status code

func (*TwoFactorQRCodeURIGetUnprocessableEntity) IsSuccess added in v0.19.1

IsSuccess returns true when this two factor q r code Uri get unprocessable entity response has a 2xx status code

func (*TwoFactorQRCodeURIGetUnprocessableEntity) String added in v0.19.1

type UserEmailChangeAccepted

type UserEmailChangeAccepted struct {
	Payload *models.User
}

UserEmailChangeAccepted describes a response with status code 202, with default header values.

Accepted: email change is processing; check your inbox to confirm new address.

func NewUserEmailChangeAccepted

func NewUserEmailChangeAccepted() *UserEmailChangeAccepted

NewUserEmailChangeAccepted creates a UserEmailChangeAccepted with default headers values

func (*UserEmailChangeAccepted) Code

func (o *UserEmailChangeAccepted) Code() int

Code gets the status code for the user email change accepted response

func (*UserEmailChangeAccepted) Error

func (o *UserEmailChangeAccepted) Error() string

func (*UserEmailChangeAccepted) GetPayload

func (o *UserEmailChangeAccepted) GetPayload() *models.User

func (*UserEmailChangeAccepted) IsClientError

func (o *UserEmailChangeAccepted) IsClientError() bool

IsClientError returns true when this user email change accepted response has a 4xx status code

func (*UserEmailChangeAccepted) IsCode

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

IsCode returns true when this user email change accepted response a status code equal to that given

func (*UserEmailChangeAccepted) IsRedirect

func (o *UserEmailChangeAccepted) IsRedirect() bool

IsRedirect returns true when this user email change accepted response has a 3xx status code

func (*UserEmailChangeAccepted) IsServerError

func (o *UserEmailChangeAccepted) IsServerError() bool

IsServerError returns true when this user email change accepted response has a 5xx status code

func (*UserEmailChangeAccepted) IsSuccess

func (o *UserEmailChangeAccepted) IsSuccess() bool

IsSuccess returns true when this user email change accepted response has a 2xx status code

func (*UserEmailChangeAccepted) String

func (o *UserEmailChangeAccepted) String() string

type UserEmailChangeBadRequest

type UserEmailChangeBadRequest struct {
}

UserEmailChangeBadRequest describes a response with status code 400, with default header values.

bad request

func NewUserEmailChangeBadRequest

func NewUserEmailChangeBadRequest() *UserEmailChangeBadRequest

NewUserEmailChangeBadRequest creates a UserEmailChangeBadRequest with default headers values

func (*UserEmailChangeBadRequest) Code

func (o *UserEmailChangeBadRequest) Code() int

Code gets the status code for the user email change bad request response

func (*UserEmailChangeBadRequest) Error

func (o *UserEmailChangeBadRequest) Error() string

func (*UserEmailChangeBadRequest) IsClientError

func (o *UserEmailChangeBadRequest) IsClientError() bool

IsClientError returns true when this user email change bad request response has a 4xx status code

func (*UserEmailChangeBadRequest) IsCode

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

IsCode returns true when this user email change bad request response a status code equal to that given

func (*UserEmailChangeBadRequest) IsRedirect

func (o *UserEmailChangeBadRequest) IsRedirect() bool

IsRedirect returns true when this user email change bad request response has a 3xx status code

func (*UserEmailChangeBadRequest) IsServerError

func (o *UserEmailChangeBadRequest) IsServerError() bool

IsServerError returns true when this user email change bad request response has a 5xx status code

func (*UserEmailChangeBadRequest) IsSuccess

func (o *UserEmailChangeBadRequest) IsSuccess() bool

IsSuccess returns true when this user email change bad request response has a 2xx status code

func (*UserEmailChangeBadRequest) String

func (o *UserEmailChangeBadRequest) String() string

type UserEmailChangeConflict

type UserEmailChangeConflict struct {
}

UserEmailChangeConflict describes a response with status code 409, with default header values.

Conflict: desired email address already in use

func NewUserEmailChangeConflict

func NewUserEmailChangeConflict() *UserEmailChangeConflict

NewUserEmailChangeConflict creates a UserEmailChangeConflict with default headers values

func (*UserEmailChangeConflict) Code

func (o *UserEmailChangeConflict) Code() int

Code gets the status code for the user email change conflict response

func (*UserEmailChangeConflict) Error

func (o *UserEmailChangeConflict) Error() string

func (*UserEmailChangeConflict) IsClientError

func (o *UserEmailChangeConflict) IsClientError() bool

IsClientError returns true when this user email change conflict response has a 4xx status code

func (*UserEmailChangeConflict) IsCode

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

IsCode returns true when this user email change conflict response a status code equal to that given

func (*UserEmailChangeConflict) IsRedirect

func (o *UserEmailChangeConflict) IsRedirect() bool

IsRedirect returns true when this user email change conflict response has a 3xx status code

func (*UserEmailChangeConflict) IsServerError

func (o *UserEmailChangeConflict) IsServerError() bool

IsServerError returns true when this user email change conflict response has a 5xx status code

func (*UserEmailChangeConflict) IsSuccess

func (o *UserEmailChangeConflict) IsSuccess() bool

IsSuccess returns true when this user email change conflict response has a 2xx status code

func (*UserEmailChangeConflict) String

func (o *UserEmailChangeConflict) String() string

type UserEmailChangeForbidden

type UserEmailChangeForbidden struct {
}

UserEmailChangeForbidden describes a response with status code 403, with default header values.

forbidden

func NewUserEmailChangeForbidden

func NewUserEmailChangeForbidden() *UserEmailChangeForbidden

NewUserEmailChangeForbidden creates a UserEmailChangeForbidden with default headers values

func (*UserEmailChangeForbidden) Code

func (o *UserEmailChangeForbidden) Code() int

Code gets the status code for the user email change forbidden response

func (*UserEmailChangeForbidden) Error

func (o *UserEmailChangeForbidden) Error() string

func (*UserEmailChangeForbidden) IsClientError

func (o *UserEmailChangeForbidden) IsClientError() bool

IsClientError returns true when this user email change forbidden response has a 4xx status code

func (*UserEmailChangeForbidden) IsCode

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

IsCode returns true when this user email change forbidden response a status code equal to that given

func (*UserEmailChangeForbidden) IsRedirect

func (o *UserEmailChangeForbidden) IsRedirect() bool

IsRedirect returns true when this user email change forbidden response has a 3xx status code

func (*UserEmailChangeForbidden) IsServerError

func (o *UserEmailChangeForbidden) IsServerError() bool

IsServerError returns true when this user email change forbidden response has a 5xx status code

func (*UserEmailChangeForbidden) IsSuccess

func (o *UserEmailChangeForbidden) IsSuccess() bool

IsSuccess returns true when this user email change forbidden response has a 2xx status code

func (*UserEmailChangeForbidden) String

func (o *UserEmailChangeForbidden) String() string

type UserEmailChangeInternalServerError

type UserEmailChangeInternalServerError struct {
}

UserEmailChangeInternalServerError describes a response with status code 500, with default header values.

internal error

func NewUserEmailChangeInternalServerError

func NewUserEmailChangeInternalServerError() *UserEmailChangeInternalServerError

NewUserEmailChangeInternalServerError creates a UserEmailChangeInternalServerError with default headers values

func (*UserEmailChangeInternalServerError) Code

Code gets the status code for the user email change internal server error response

func (*UserEmailChangeInternalServerError) Error

func (*UserEmailChangeInternalServerError) IsClientError

func (o *UserEmailChangeInternalServerError) IsClientError() bool

IsClientError returns true when this user email change internal server error response has a 4xx status code

func (*UserEmailChangeInternalServerError) IsCode

IsCode returns true when this user email change internal server error response a status code equal to that given

func (*UserEmailChangeInternalServerError) IsRedirect

func (o *UserEmailChangeInternalServerError) IsRedirect() bool

IsRedirect returns true when this user email change internal server error response has a 3xx status code

func (*UserEmailChangeInternalServerError) IsServerError

func (o *UserEmailChangeInternalServerError) IsServerError() bool

IsServerError returns true when this user email change internal server error response has a 5xx status code

func (*UserEmailChangeInternalServerError) IsSuccess

IsSuccess returns true when this user email change internal server error response has a 2xx status code

func (*UserEmailChangeInternalServerError) String

type UserEmailChangeNotAcceptable

type UserEmailChangeNotAcceptable struct {
}

UserEmailChangeNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewUserEmailChangeNotAcceptable

func NewUserEmailChangeNotAcceptable() *UserEmailChangeNotAcceptable

NewUserEmailChangeNotAcceptable creates a UserEmailChangeNotAcceptable with default headers values

func (*UserEmailChangeNotAcceptable) Code

Code gets the status code for the user email change not acceptable response

func (*UserEmailChangeNotAcceptable) Error

func (*UserEmailChangeNotAcceptable) IsClientError

func (o *UserEmailChangeNotAcceptable) IsClientError() bool

IsClientError returns true when this user email change not acceptable response has a 4xx status code

func (*UserEmailChangeNotAcceptable) IsCode

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

IsCode returns true when this user email change not acceptable response a status code equal to that given

func (*UserEmailChangeNotAcceptable) IsRedirect

func (o *UserEmailChangeNotAcceptable) IsRedirect() bool

IsRedirect returns true when this user email change not acceptable response has a 3xx status code

func (*UserEmailChangeNotAcceptable) IsServerError

func (o *UserEmailChangeNotAcceptable) IsServerError() bool

IsServerError returns true when this user email change not acceptable response has a 5xx status code

func (*UserEmailChangeNotAcceptable) IsSuccess

func (o *UserEmailChangeNotAcceptable) IsSuccess() bool

IsSuccess returns true when this user email change not acceptable response has a 2xx status code

func (*UserEmailChangeNotAcceptable) String

type UserEmailChangeParams

type UserEmailChangeParams struct {

	/* NewEmail.

	   Desired new email address.
	*/
	NewEmail string

	/* Password.

	   User's current password, for verification.
	*/
	Password string

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

UserEmailChangeParams contains all the parameters to send to the API endpoint

for the user email change operation.

Typically these are written to a http.Request.

func NewUserEmailChangeParams

func NewUserEmailChangeParams() *UserEmailChangeParams

NewUserEmailChangeParams creates a new UserEmailChangeParams 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 NewUserEmailChangeParamsWithContext

func NewUserEmailChangeParamsWithContext(ctx context.Context) *UserEmailChangeParams

NewUserEmailChangeParamsWithContext creates a new UserEmailChangeParams object with the ability to set a context for a request.

func NewUserEmailChangeParamsWithHTTPClient

func NewUserEmailChangeParamsWithHTTPClient(client *http.Client) *UserEmailChangeParams

NewUserEmailChangeParamsWithHTTPClient creates a new UserEmailChangeParams object with the ability to set a custom HTTPClient for a request.

func NewUserEmailChangeParamsWithTimeout

func NewUserEmailChangeParamsWithTimeout(timeout time.Duration) *UserEmailChangeParams

NewUserEmailChangeParamsWithTimeout creates a new UserEmailChangeParams object with the ability to set a timeout on a request.

func (*UserEmailChangeParams) SetContext

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

SetContext adds the context to the user email change params

func (*UserEmailChangeParams) SetDefaults

func (o *UserEmailChangeParams) SetDefaults()

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

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

func (*UserEmailChangeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user email change params

func (*UserEmailChangeParams) SetNewEmail

func (o *UserEmailChangeParams) SetNewEmail(newEmail string)

SetNewEmail adds the newEmail to the user email change params

func (*UserEmailChangeParams) SetPassword

func (o *UserEmailChangeParams) SetPassword(password string)

SetPassword adds the password to the user email change params

func (*UserEmailChangeParams) SetTimeout

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

SetTimeout adds the timeout to the user email change params

func (*UserEmailChangeParams) WithContext

WithContext adds the context to the user email change params

func (*UserEmailChangeParams) WithDefaults

func (o *UserEmailChangeParams) WithDefaults() *UserEmailChangeParams

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

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

func (*UserEmailChangeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user email change params

func (*UserEmailChangeParams) WithNewEmail

func (o *UserEmailChangeParams) WithNewEmail(newEmail string) *UserEmailChangeParams

WithNewEmail adds the newEmail to the user email change params

func (*UserEmailChangeParams) WithPassword

func (o *UserEmailChangeParams) WithPassword(password string) *UserEmailChangeParams

WithPassword adds the password to the user email change params

func (*UserEmailChangeParams) WithTimeout

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

WithTimeout adds the timeout to the user email change params

func (*UserEmailChangeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserEmailChangeReader

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

UserEmailChangeReader is a Reader for the UserEmailChange structure.

func (*UserEmailChangeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserEmailChangeUnauthorized

type UserEmailChangeUnauthorized struct {
}

UserEmailChangeUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewUserEmailChangeUnauthorized

func NewUserEmailChangeUnauthorized() *UserEmailChangeUnauthorized

NewUserEmailChangeUnauthorized creates a UserEmailChangeUnauthorized with default headers values

func (*UserEmailChangeUnauthorized) Code

func (o *UserEmailChangeUnauthorized) Code() int

Code gets the status code for the user email change unauthorized response

func (*UserEmailChangeUnauthorized) Error

func (*UserEmailChangeUnauthorized) IsClientError

func (o *UserEmailChangeUnauthorized) IsClientError() bool

IsClientError returns true when this user email change unauthorized response has a 4xx status code

func (*UserEmailChangeUnauthorized) IsCode

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

IsCode returns true when this user email change unauthorized response a status code equal to that given

func (*UserEmailChangeUnauthorized) IsRedirect

func (o *UserEmailChangeUnauthorized) IsRedirect() bool

IsRedirect returns true when this user email change unauthorized response has a 3xx status code

func (*UserEmailChangeUnauthorized) IsServerError

func (o *UserEmailChangeUnauthorized) IsServerError() bool

IsServerError returns true when this user email change unauthorized response has a 5xx status code

func (*UserEmailChangeUnauthorized) IsSuccess

func (o *UserEmailChangeUnauthorized) IsSuccess() bool

IsSuccess returns true when this user email change unauthorized response has a 2xx status code

func (*UserEmailChangeUnauthorized) String

func (o *UserEmailChangeUnauthorized) String() string

type UserPasswordChangeBadRequest

type UserPasswordChangeBadRequest struct {
}

UserPasswordChangeBadRequest describes a response with status code 400, with default header values.

bad request

func NewUserPasswordChangeBadRequest

func NewUserPasswordChangeBadRequest() *UserPasswordChangeBadRequest

NewUserPasswordChangeBadRequest creates a UserPasswordChangeBadRequest with default headers values

func (*UserPasswordChangeBadRequest) Code

Code gets the status code for the user password change bad request response

func (*UserPasswordChangeBadRequest) Error

func (*UserPasswordChangeBadRequest) IsClientError

func (o *UserPasswordChangeBadRequest) IsClientError() bool

IsClientError returns true when this user password change bad request response has a 4xx status code

func (*UserPasswordChangeBadRequest) IsCode

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

IsCode returns true when this user password change bad request response a status code equal to that given

func (*UserPasswordChangeBadRequest) IsRedirect

func (o *UserPasswordChangeBadRequest) IsRedirect() bool

IsRedirect returns true when this user password change bad request response has a 3xx status code

func (*UserPasswordChangeBadRequest) IsServerError

func (o *UserPasswordChangeBadRequest) IsServerError() bool

IsServerError returns true when this user password change bad request response has a 5xx status code

func (*UserPasswordChangeBadRequest) IsSuccess

func (o *UserPasswordChangeBadRequest) IsSuccess() bool

IsSuccess returns true when this user password change bad request response has a 2xx status code

func (*UserPasswordChangeBadRequest) String

type UserPasswordChangeForbidden

type UserPasswordChangeForbidden struct {
}

UserPasswordChangeForbidden describes a response with status code 403, with default header values.

forbidden

func NewUserPasswordChangeForbidden

func NewUserPasswordChangeForbidden() *UserPasswordChangeForbidden

NewUserPasswordChangeForbidden creates a UserPasswordChangeForbidden with default headers values

func (*UserPasswordChangeForbidden) Code

func (o *UserPasswordChangeForbidden) Code() int

Code gets the status code for the user password change forbidden response

func (*UserPasswordChangeForbidden) Error

func (*UserPasswordChangeForbidden) IsClientError

func (o *UserPasswordChangeForbidden) IsClientError() bool

IsClientError returns true when this user password change forbidden response has a 4xx status code

func (*UserPasswordChangeForbidden) IsCode

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

IsCode returns true when this user password change forbidden response a status code equal to that given

func (*UserPasswordChangeForbidden) IsRedirect

func (o *UserPasswordChangeForbidden) IsRedirect() bool

IsRedirect returns true when this user password change forbidden response has a 3xx status code

func (*UserPasswordChangeForbidden) IsServerError

func (o *UserPasswordChangeForbidden) IsServerError() bool

IsServerError returns true when this user password change forbidden response has a 5xx status code

func (*UserPasswordChangeForbidden) IsSuccess

func (o *UserPasswordChangeForbidden) IsSuccess() bool

IsSuccess returns true when this user password change forbidden response has a 2xx status code

func (*UserPasswordChangeForbidden) String

func (o *UserPasswordChangeForbidden) String() string

type UserPasswordChangeInternalServerError

type UserPasswordChangeInternalServerError struct {
}

UserPasswordChangeInternalServerError describes a response with status code 500, with default header values.

internal error

func NewUserPasswordChangeInternalServerError

func NewUserPasswordChangeInternalServerError() *UserPasswordChangeInternalServerError

NewUserPasswordChangeInternalServerError creates a UserPasswordChangeInternalServerError with default headers values

func (*UserPasswordChangeInternalServerError) Code

Code gets the status code for the user password change internal server error response

func (*UserPasswordChangeInternalServerError) Error

func (*UserPasswordChangeInternalServerError) IsClientError

func (o *UserPasswordChangeInternalServerError) IsClientError() bool

IsClientError returns true when this user password change internal server error response has a 4xx status code

func (*UserPasswordChangeInternalServerError) IsCode

IsCode returns true when this user password change internal server error response a status code equal to that given

func (*UserPasswordChangeInternalServerError) IsRedirect

IsRedirect returns true when this user password change internal server error response has a 3xx status code

func (*UserPasswordChangeInternalServerError) IsServerError

func (o *UserPasswordChangeInternalServerError) IsServerError() bool

IsServerError returns true when this user password change internal server error response has a 5xx status code

func (*UserPasswordChangeInternalServerError) IsSuccess

IsSuccess returns true when this user password change internal server error response has a 2xx status code

func (*UserPasswordChangeInternalServerError) String

type UserPasswordChangeNotAcceptable

type UserPasswordChangeNotAcceptable struct {
}

UserPasswordChangeNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewUserPasswordChangeNotAcceptable

func NewUserPasswordChangeNotAcceptable() *UserPasswordChangeNotAcceptable

NewUserPasswordChangeNotAcceptable creates a UserPasswordChangeNotAcceptable with default headers values

func (*UserPasswordChangeNotAcceptable) Code

Code gets the status code for the user password change not acceptable response

func (*UserPasswordChangeNotAcceptable) Error

func (*UserPasswordChangeNotAcceptable) IsClientError

func (o *UserPasswordChangeNotAcceptable) IsClientError() bool

IsClientError returns true when this user password change not acceptable response has a 4xx status code

func (*UserPasswordChangeNotAcceptable) IsCode

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

IsCode returns true when this user password change not acceptable response a status code equal to that given

func (*UserPasswordChangeNotAcceptable) IsRedirect

func (o *UserPasswordChangeNotAcceptable) IsRedirect() bool

IsRedirect returns true when this user password change not acceptable response has a 3xx status code

func (*UserPasswordChangeNotAcceptable) IsServerError

func (o *UserPasswordChangeNotAcceptable) IsServerError() bool

IsServerError returns true when this user password change not acceptable response has a 5xx status code

func (*UserPasswordChangeNotAcceptable) IsSuccess

func (o *UserPasswordChangeNotAcceptable) IsSuccess() bool

IsSuccess returns true when this user password change not acceptable response has a 2xx status code

func (*UserPasswordChangeNotAcceptable) String

type UserPasswordChangeOK

type UserPasswordChangeOK struct {
}

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

Change successful

func NewUserPasswordChangeOK

func NewUserPasswordChangeOK() *UserPasswordChangeOK

NewUserPasswordChangeOK creates a UserPasswordChangeOK with default headers values

func (*UserPasswordChangeOK) Code

func (o *UserPasswordChangeOK) Code() int

Code gets the status code for the user password change o k response

func (*UserPasswordChangeOK) Error

func (o *UserPasswordChangeOK) Error() string

func (*UserPasswordChangeOK) IsClientError

func (o *UserPasswordChangeOK) IsClientError() bool

IsClientError returns true when this user password change o k response has a 4xx status code

func (*UserPasswordChangeOK) IsCode

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

IsCode returns true when this user password change o k response a status code equal to that given

func (*UserPasswordChangeOK) IsRedirect

func (o *UserPasswordChangeOK) IsRedirect() bool

IsRedirect returns true when this user password change o k response has a 3xx status code

func (*UserPasswordChangeOK) IsServerError

func (o *UserPasswordChangeOK) IsServerError() bool

IsServerError returns true when this user password change o k response has a 5xx status code

func (*UserPasswordChangeOK) IsSuccess

func (o *UserPasswordChangeOK) IsSuccess() bool

IsSuccess returns true when this user password change o k response has a 2xx status code

func (*UserPasswordChangeOK) String

func (o *UserPasswordChangeOK) String() string

type UserPasswordChangeParams

type UserPasswordChangeParams struct {

	/* NewPassword.

	     Desired new password.
	If the password does not have high enough entropy, it will be rejected.
	See https://github.com/wagslane/go-password-validator
	*/
	NewPassword string

	/* OldPassword.

	   User's previous password.
	*/
	OldPassword string

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

UserPasswordChangeParams contains all the parameters to send to the API endpoint

for the user password change operation.

Typically these are written to a http.Request.

func NewUserPasswordChangeParams

func NewUserPasswordChangeParams() *UserPasswordChangeParams

NewUserPasswordChangeParams creates a new UserPasswordChangeParams 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 NewUserPasswordChangeParamsWithContext

func NewUserPasswordChangeParamsWithContext(ctx context.Context) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithContext creates a new UserPasswordChangeParams object with the ability to set a context for a request.

func NewUserPasswordChangeParamsWithHTTPClient

func NewUserPasswordChangeParamsWithHTTPClient(client *http.Client) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithHTTPClient creates a new UserPasswordChangeParams object with the ability to set a custom HTTPClient for a request.

func NewUserPasswordChangeParamsWithTimeout

func NewUserPasswordChangeParamsWithTimeout(timeout time.Duration) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithTimeout creates a new UserPasswordChangeParams object with the ability to set a timeout on a request.

func (*UserPasswordChangeParams) SetContext

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

SetContext adds the context to the user password change params

func (*UserPasswordChangeParams) SetDefaults

func (o *UserPasswordChangeParams) SetDefaults()

SetDefaults hydrates default values in the user password change params (not the query body).

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

func (*UserPasswordChangeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user password change params

func (*UserPasswordChangeParams) SetNewPassword

func (o *UserPasswordChangeParams) SetNewPassword(newPassword string)

SetNewPassword adds the newPassword to the user password change params

func (*UserPasswordChangeParams) SetOldPassword

func (o *UserPasswordChangeParams) SetOldPassword(oldPassword string)

SetOldPassword adds the oldPassword to the user password change params

func (*UserPasswordChangeParams) SetTimeout

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

SetTimeout adds the timeout to the user password change params

func (*UserPasswordChangeParams) WithContext

WithContext adds the context to the user password change params

func (*UserPasswordChangeParams) WithDefaults

WithDefaults hydrates default values in the user password change params (not the query body).

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

func (*UserPasswordChangeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user password change params

func (*UserPasswordChangeParams) WithNewPassword

func (o *UserPasswordChangeParams) WithNewPassword(newPassword string) *UserPasswordChangeParams

WithNewPassword adds the newPassword to the user password change params

func (*UserPasswordChangeParams) WithOldPassword

func (o *UserPasswordChangeParams) WithOldPassword(oldPassword string) *UserPasswordChangeParams

WithOldPassword adds the oldPassword to the user password change params

func (*UserPasswordChangeParams) WithTimeout

WithTimeout adds the timeout to the user password change params

func (*UserPasswordChangeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserPasswordChangeReader

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

UserPasswordChangeReader is a Reader for the UserPasswordChange structure.

func (*UserPasswordChangeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserPasswordChangeUnauthorized

type UserPasswordChangeUnauthorized struct {
}

UserPasswordChangeUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewUserPasswordChangeUnauthorized

func NewUserPasswordChangeUnauthorized() *UserPasswordChangeUnauthorized

NewUserPasswordChangeUnauthorized creates a UserPasswordChangeUnauthorized with default headers values

func (*UserPasswordChangeUnauthorized) Code

Code gets the status code for the user password change unauthorized response

func (*UserPasswordChangeUnauthorized) Error

func (*UserPasswordChangeUnauthorized) IsClientError

func (o *UserPasswordChangeUnauthorized) IsClientError() bool

IsClientError returns true when this user password change unauthorized response has a 4xx status code

func (*UserPasswordChangeUnauthorized) IsCode

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

IsCode returns true when this user password change unauthorized response a status code equal to that given

func (*UserPasswordChangeUnauthorized) IsRedirect

func (o *UserPasswordChangeUnauthorized) IsRedirect() bool

IsRedirect returns true when this user password change unauthorized response has a 3xx status code

func (*UserPasswordChangeUnauthorized) IsServerError

func (o *UserPasswordChangeUnauthorized) IsServerError() bool

IsServerError returns true when this user password change unauthorized response has a 5xx status code

func (*UserPasswordChangeUnauthorized) IsSuccess

func (o *UserPasswordChangeUnauthorized) IsSuccess() bool

IsSuccess returns true when this user password change unauthorized response has a 2xx status code

func (*UserPasswordChangeUnauthorized) String

type UserPasswordChangeUnprocessableEntity

type UserPasswordChangeUnprocessableEntity struct {
}

UserPasswordChangeUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable request because instance is running with OIDC backend

func NewUserPasswordChangeUnprocessableEntity

func NewUserPasswordChangeUnprocessableEntity() *UserPasswordChangeUnprocessableEntity

NewUserPasswordChangeUnprocessableEntity creates a UserPasswordChangeUnprocessableEntity with default headers values

func (*UserPasswordChangeUnprocessableEntity) Code

Code gets the status code for the user password change unprocessable entity response

func (*UserPasswordChangeUnprocessableEntity) Error

func (*UserPasswordChangeUnprocessableEntity) IsClientError

func (o *UserPasswordChangeUnprocessableEntity) IsClientError() bool

IsClientError returns true when this user password change unprocessable entity response has a 4xx status code

func (*UserPasswordChangeUnprocessableEntity) IsCode

IsCode returns true when this user password change unprocessable entity response a status code equal to that given

func (*UserPasswordChangeUnprocessableEntity) IsRedirect

IsRedirect returns true when this user password change unprocessable entity response has a 3xx status code

func (*UserPasswordChangeUnprocessableEntity) IsServerError

func (o *UserPasswordChangeUnprocessableEntity) IsServerError() bool

IsServerError returns true when this user password change unprocessable entity response has a 5xx status code

func (*UserPasswordChangeUnprocessableEntity) IsSuccess

IsSuccess returns true when this user password change unprocessable entity response has a 2xx status code

func (*UserPasswordChangeUnprocessableEntity) String

Jump to

Keyboard shortcuts

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