captcha

package
v0.0.0-...-b8f2a1b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for captcha API

func (*Client) GetCaptcha

func (a *Client) GetCaptcha(params *GetCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCaptchaOK, error)

GetCaptcha gets deployment captcha state

func (*Client) GetTenantCaptcha

func (a *Client) GetTenantCaptcha(params *GetTenantCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantCaptchaOK, error)

GetTenantCaptcha gets tenant captcha settings

func (*Client) SetTenantCaptcha

func (a *Client) SetTenantCaptcha(params *SetTenantCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantCaptchaOK, error)

SetTenantCaptcha sets tenant captcha settings

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {
	GetCaptcha(params *GetCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCaptchaOK, error)

	GetTenantCaptcha(params *GetTenantCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantCaptchaOK, error)

	SetTenantCaptcha(params *SetTenantCaptchaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantCaptchaOK, 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 captcha API client.

func NewClientWithBasicAuth

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

New creates a new captcha 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 captcha 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 GetCaptchaForbidden

type GetCaptchaForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetCaptchaForbidden

func NewGetCaptchaForbidden() *GetCaptchaForbidden

NewGetCaptchaForbidden creates a GetCaptchaForbidden with default headers values

func (*GetCaptchaForbidden) Code

func (o *GetCaptchaForbidden) Code() int

Code gets the status code for the get captcha forbidden response

func (*GetCaptchaForbidden) Error

func (o *GetCaptchaForbidden) Error() string

func (*GetCaptchaForbidden) GetPayload

func (o *GetCaptchaForbidden) GetPayload() *models.Error

func (*GetCaptchaForbidden) IsClientError

func (o *GetCaptchaForbidden) IsClientError() bool

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

func (*GetCaptchaForbidden) IsCode

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

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

func (*GetCaptchaForbidden) IsRedirect

func (o *GetCaptchaForbidden) IsRedirect() bool

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

func (*GetCaptchaForbidden) IsServerError

func (o *GetCaptchaForbidden) IsServerError() bool

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

func (*GetCaptchaForbidden) IsSuccess

func (o *GetCaptchaForbidden) IsSuccess() bool

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

func (*GetCaptchaForbidden) String

func (o *GetCaptchaForbidden) String() string

type GetCaptchaOK

type GetCaptchaOK struct {
	Payload *models.CaptchaDeployment
}

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

Get captcha

func NewGetCaptchaOK

func NewGetCaptchaOK() *GetCaptchaOK

NewGetCaptchaOK creates a GetCaptchaOK with default headers values

func (*GetCaptchaOK) Code

func (o *GetCaptchaOK) Code() int

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

func (*GetCaptchaOK) Error

func (o *GetCaptchaOK) Error() string

func (*GetCaptchaOK) GetPayload

func (o *GetCaptchaOK) GetPayload() *models.CaptchaDeployment

func (*GetCaptchaOK) IsClientError

func (o *GetCaptchaOK) IsClientError() bool

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

func (*GetCaptchaOK) IsCode

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

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

func (*GetCaptchaOK) IsRedirect

func (o *GetCaptchaOK) IsRedirect() bool

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

func (*GetCaptchaOK) IsServerError

func (o *GetCaptchaOK) IsServerError() bool

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

func (*GetCaptchaOK) IsSuccess

func (o *GetCaptchaOK) IsSuccess() bool

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

func (*GetCaptchaOK) String

func (o *GetCaptchaOK) String() string

type GetCaptchaParams

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

GetCaptchaParams contains all the parameters to send to the API endpoint

for the get captcha operation.

Typically these are written to a http.Request.

func NewGetCaptchaParams

func NewGetCaptchaParams() *GetCaptchaParams

NewGetCaptchaParams creates a new GetCaptchaParams 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 NewGetCaptchaParamsWithContext

func NewGetCaptchaParamsWithContext(ctx context.Context) *GetCaptchaParams

NewGetCaptchaParamsWithContext creates a new GetCaptchaParams object with the ability to set a context for a request.

func NewGetCaptchaParamsWithHTTPClient

func NewGetCaptchaParamsWithHTTPClient(client *http.Client) *GetCaptchaParams

NewGetCaptchaParamsWithHTTPClient creates a new GetCaptchaParams object with the ability to set a custom HTTPClient for a request.

func NewGetCaptchaParamsWithTimeout

func NewGetCaptchaParamsWithTimeout(timeout time.Duration) *GetCaptchaParams

NewGetCaptchaParamsWithTimeout creates a new GetCaptchaParams object with the ability to set a timeout on a request.

func (*GetCaptchaParams) SetContext

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

SetContext adds the context to the get captcha params

func (*GetCaptchaParams) SetDefaults

func (o *GetCaptchaParams) SetDefaults()

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

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

func (*GetCaptchaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get captcha params

func (*GetCaptchaParams) SetTimeout

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

SetTimeout adds the timeout to the get captcha params

func (*GetCaptchaParams) WithContext

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

WithContext adds the context to the get captcha params

func (*GetCaptchaParams) WithDefaults

func (o *GetCaptchaParams) WithDefaults() *GetCaptchaParams

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

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

func (*GetCaptchaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get captcha params

func (*GetCaptchaParams) WithTimeout

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

WithTimeout adds the timeout to the get captcha params

func (*GetCaptchaParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCaptchaReader

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

GetCaptchaReader is a Reader for the GetCaptcha structure.

func (*GetCaptchaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCaptchaTooManyRequests

type GetCaptchaTooManyRequests struct {
	Payload *models.Error
}

GetCaptchaTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetCaptchaTooManyRequests

func NewGetCaptchaTooManyRequests() *GetCaptchaTooManyRequests

NewGetCaptchaTooManyRequests creates a GetCaptchaTooManyRequests with default headers values

func (*GetCaptchaTooManyRequests) Code

func (o *GetCaptchaTooManyRequests) Code() int

Code gets the status code for the get captcha too many requests response

func (*GetCaptchaTooManyRequests) Error

func (o *GetCaptchaTooManyRequests) Error() string

func (*GetCaptchaTooManyRequests) GetPayload

func (o *GetCaptchaTooManyRequests) GetPayload() *models.Error

func (*GetCaptchaTooManyRequests) IsClientError

func (o *GetCaptchaTooManyRequests) IsClientError() bool

IsClientError returns true when this get captcha too many requests response has a 4xx status code

func (*GetCaptchaTooManyRequests) IsCode

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

IsCode returns true when this get captcha too many requests response a status code equal to that given

func (*GetCaptchaTooManyRequests) IsRedirect

func (o *GetCaptchaTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get captcha too many requests response has a 3xx status code

func (*GetCaptchaTooManyRequests) IsServerError

func (o *GetCaptchaTooManyRequests) IsServerError() bool

IsServerError returns true when this get captcha too many requests response has a 5xx status code

func (*GetCaptchaTooManyRequests) IsSuccess

func (o *GetCaptchaTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get captcha too many requests response has a 2xx status code

func (*GetCaptchaTooManyRequests) String

func (o *GetCaptchaTooManyRequests) String() string

type GetCaptchaUnauthorized

type GetCaptchaUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetCaptchaUnauthorized

func NewGetCaptchaUnauthorized() *GetCaptchaUnauthorized

NewGetCaptchaUnauthorized creates a GetCaptchaUnauthorized with default headers values

func (*GetCaptchaUnauthorized) Code

func (o *GetCaptchaUnauthorized) Code() int

Code gets the status code for the get captcha unauthorized response

func (*GetCaptchaUnauthorized) Error

func (o *GetCaptchaUnauthorized) Error() string

func (*GetCaptchaUnauthorized) GetPayload

func (o *GetCaptchaUnauthorized) GetPayload() *models.Error

func (*GetCaptchaUnauthorized) IsClientError

func (o *GetCaptchaUnauthorized) IsClientError() bool

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

func (*GetCaptchaUnauthorized) IsCode

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

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

func (*GetCaptchaUnauthorized) IsRedirect

func (o *GetCaptchaUnauthorized) IsRedirect() bool

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

func (*GetCaptchaUnauthorized) IsServerError

func (o *GetCaptchaUnauthorized) IsServerError() bool

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

func (*GetCaptchaUnauthorized) IsSuccess

func (o *GetCaptchaUnauthorized) IsSuccess() bool

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

func (*GetCaptchaUnauthorized) String

func (o *GetCaptchaUnauthorized) String() string

type GetTenantCaptchaForbidden

type GetTenantCaptchaForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetTenantCaptchaForbidden

func NewGetTenantCaptchaForbidden() *GetTenantCaptchaForbidden

NewGetTenantCaptchaForbidden creates a GetTenantCaptchaForbidden with default headers values

func (*GetTenantCaptchaForbidden) Code

func (o *GetTenantCaptchaForbidden) Code() int

Code gets the status code for the get tenant captcha forbidden response

func (*GetTenantCaptchaForbidden) Error

func (o *GetTenantCaptchaForbidden) Error() string

func (*GetTenantCaptchaForbidden) GetPayload

func (o *GetTenantCaptchaForbidden) GetPayload() *models.Error

func (*GetTenantCaptchaForbidden) IsClientError

func (o *GetTenantCaptchaForbidden) IsClientError() bool

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

func (*GetTenantCaptchaForbidden) IsCode

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

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

func (*GetTenantCaptchaForbidden) IsRedirect

func (o *GetTenantCaptchaForbidden) IsRedirect() bool

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

func (*GetTenantCaptchaForbidden) IsServerError

func (o *GetTenantCaptchaForbidden) IsServerError() bool

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

func (*GetTenantCaptchaForbidden) IsSuccess

func (o *GetTenantCaptchaForbidden) IsSuccess() bool

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

func (*GetTenantCaptchaForbidden) String

func (o *GetTenantCaptchaForbidden) String() string

type GetTenantCaptchaNotFound

type GetTenantCaptchaNotFound struct {
	Payload *models.Error
}

GetTenantCaptchaNotFound describes a response with status code 404, with default header values.

Not found

func NewGetTenantCaptchaNotFound

func NewGetTenantCaptchaNotFound() *GetTenantCaptchaNotFound

NewGetTenantCaptchaNotFound creates a GetTenantCaptchaNotFound with default headers values

func (*GetTenantCaptchaNotFound) Code

func (o *GetTenantCaptchaNotFound) Code() int

Code gets the status code for the get tenant captcha not found response

func (*GetTenantCaptchaNotFound) Error

func (o *GetTenantCaptchaNotFound) Error() string

func (*GetTenantCaptchaNotFound) GetPayload

func (o *GetTenantCaptchaNotFound) GetPayload() *models.Error

func (*GetTenantCaptchaNotFound) IsClientError

func (o *GetTenantCaptchaNotFound) IsClientError() bool

IsClientError returns true when this get tenant captcha not found response has a 4xx status code

func (*GetTenantCaptchaNotFound) IsCode

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

IsCode returns true when this get tenant captcha not found response a status code equal to that given

func (*GetTenantCaptchaNotFound) IsRedirect

func (o *GetTenantCaptchaNotFound) IsRedirect() bool

IsRedirect returns true when this get tenant captcha not found response has a 3xx status code

func (*GetTenantCaptchaNotFound) IsServerError

func (o *GetTenantCaptchaNotFound) IsServerError() bool

IsServerError returns true when this get tenant captcha not found response has a 5xx status code

func (*GetTenantCaptchaNotFound) IsSuccess

func (o *GetTenantCaptchaNotFound) IsSuccess() bool

IsSuccess returns true when this get tenant captcha not found response has a 2xx status code

func (*GetTenantCaptchaNotFound) String

func (o *GetTenantCaptchaNotFound) String() string

type GetTenantCaptchaOK

type GetTenantCaptchaOK struct {
	Payload *models.CaptchaSettings
}

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

Tenant captcha settings

func NewGetTenantCaptchaOK

func NewGetTenantCaptchaOK() *GetTenantCaptchaOK

NewGetTenantCaptchaOK creates a GetTenantCaptchaOK with default headers values

func (*GetTenantCaptchaOK) Code

func (o *GetTenantCaptchaOK) Code() int

Code gets the status code for the get tenant captcha o k response

func (*GetTenantCaptchaOK) Error

func (o *GetTenantCaptchaOK) Error() string

func (*GetTenantCaptchaOK) GetPayload

func (o *GetTenantCaptchaOK) GetPayload() *models.CaptchaSettings

func (*GetTenantCaptchaOK) IsClientError

func (o *GetTenantCaptchaOK) IsClientError() bool

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

func (*GetTenantCaptchaOK) IsCode

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

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

func (*GetTenantCaptchaOK) IsRedirect

func (o *GetTenantCaptchaOK) IsRedirect() bool

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

func (*GetTenantCaptchaOK) IsServerError

func (o *GetTenantCaptchaOK) IsServerError() bool

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

func (*GetTenantCaptchaOK) IsSuccess

func (o *GetTenantCaptchaOK) IsSuccess() bool

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

func (*GetTenantCaptchaOK) String

func (o *GetTenantCaptchaOK) String() string

type GetTenantCaptchaParams

type GetTenantCaptchaParams struct {

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

GetTenantCaptchaParams contains all the parameters to send to the API endpoint

for the get tenant captcha operation.

Typically these are written to a http.Request.

func NewGetTenantCaptchaParams

func NewGetTenantCaptchaParams() *GetTenantCaptchaParams

NewGetTenantCaptchaParams creates a new GetTenantCaptchaParams 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 NewGetTenantCaptchaParamsWithContext

func NewGetTenantCaptchaParamsWithContext(ctx context.Context) *GetTenantCaptchaParams

NewGetTenantCaptchaParamsWithContext creates a new GetTenantCaptchaParams object with the ability to set a context for a request.

func NewGetTenantCaptchaParamsWithHTTPClient

func NewGetTenantCaptchaParamsWithHTTPClient(client *http.Client) *GetTenantCaptchaParams

NewGetTenantCaptchaParamsWithHTTPClient creates a new GetTenantCaptchaParams object with the ability to set a custom HTTPClient for a request.

func NewGetTenantCaptchaParamsWithTimeout

func NewGetTenantCaptchaParamsWithTimeout(timeout time.Duration) *GetTenantCaptchaParams

NewGetTenantCaptchaParamsWithTimeout creates a new GetTenantCaptchaParams object with the ability to set a timeout on a request.

func (*GetTenantCaptchaParams) SetContext

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

SetContext adds the context to the get tenant captcha params

func (*GetTenantCaptchaParams) SetDefaults

func (o *GetTenantCaptchaParams) SetDefaults()

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

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

func (*GetTenantCaptchaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tenant captcha params

func (*GetTenantCaptchaParams) SetTid

func (o *GetTenantCaptchaParams) SetTid(tid string)

SetTid adds the tid to the get tenant captcha params

func (*GetTenantCaptchaParams) SetTimeout

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

SetTimeout adds the timeout to the get tenant captcha params

func (*GetTenantCaptchaParams) WithContext

WithContext adds the context to the get tenant captcha params

func (*GetTenantCaptchaParams) WithDefaults

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

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

func (*GetTenantCaptchaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tenant captcha params

func (*GetTenantCaptchaParams) WithTid

WithTid adds the tid to the get tenant captcha params

func (*GetTenantCaptchaParams) WithTimeout

WithTimeout adds the timeout to the get tenant captcha params

func (*GetTenantCaptchaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTenantCaptchaReader

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

GetTenantCaptchaReader is a Reader for the GetTenantCaptcha structure.

func (*GetTenantCaptchaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTenantCaptchaTooManyRequests

type GetTenantCaptchaTooManyRequests struct {
	Payload *models.Error
}

GetTenantCaptchaTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetTenantCaptchaTooManyRequests

func NewGetTenantCaptchaTooManyRequests() *GetTenantCaptchaTooManyRequests

NewGetTenantCaptchaTooManyRequests creates a GetTenantCaptchaTooManyRequests with default headers values

func (*GetTenantCaptchaTooManyRequests) Code

Code gets the status code for the get tenant captcha too many requests response

func (*GetTenantCaptchaTooManyRequests) Error

func (*GetTenantCaptchaTooManyRequests) GetPayload

func (o *GetTenantCaptchaTooManyRequests) GetPayload() *models.Error

func (*GetTenantCaptchaTooManyRequests) IsClientError

func (o *GetTenantCaptchaTooManyRequests) IsClientError() bool

IsClientError returns true when this get tenant captcha too many requests response has a 4xx status code

func (*GetTenantCaptchaTooManyRequests) IsCode

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

IsCode returns true when this get tenant captcha too many requests response a status code equal to that given

func (*GetTenantCaptchaTooManyRequests) IsRedirect

func (o *GetTenantCaptchaTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get tenant captcha too many requests response has a 3xx status code

func (*GetTenantCaptchaTooManyRequests) IsServerError

func (o *GetTenantCaptchaTooManyRequests) IsServerError() bool

IsServerError returns true when this get tenant captcha too many requests response has a 5xx status code

func (*GetTenantCaptchaTooManyRequests) IsSuccess

func (o *GetTenantCaptchaTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get tenant captcha too many requests response has a 2xx status code

func (*GetTenantCaptchaTooManyRequests) String

type GetTenantCaptchaUnauthorized

type GetTenantCaptchaUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetTenantCaptchaUnauthorized

func NewGetTenantCaptchaUnauthorized() *GetTenantCaptchaUnauthorized

NewGetTenantCaptchaUnauthorized creates a GetTenantCaptchaUnauthorized with default headers values

func (*GetTenantCaptchaUnauthorized) Code

Code gets the status code for the get tenant captcha unauthorized response

func (*GetTenantCaptchaUnauthorized) Error

func (*GetTenantCaptchaUnauthorized) GetPayload

func (o *GetTenantCaptchaUnauthorized) GetPayload() *models.Error

func (*GetTenantCaptchaUnauthorized) IsClientError

func (o *GetTenantCaptchaUnauthorized) IsClientError() bool

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

func (*GetTenantCaptchaUnauthorized) IsCode

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

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

func (*GetTenantCaptchaUnauthorized) IsRedirect

func (o *GetTenantCaptchaUnauthorized) IsRedirect() bool

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

func (*GetTenantCaptchaUnauthorized) IsServerError

func (o *GetTenantCaptchaUnauthorized) IsServerError() bool

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

func (*GetTenantCaptchaUnauthorized) IsSuccess

func (o *GetTenantCaptchaUnauthorized) IsSuccess() bool

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

func (*GetTenantCaptchaUnauthorized) String

type SetTenantCaptchaBadRequest

type SetTenantCaptchaBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewSetTenantCaptchaBadRequest

func NewSetTenantCaptchaBadRequest() *SetTenantCaptchaBadRequest

NewSetTenantCaptchaBadRequest creates a SetTenantCaptchaBadRequest with default headers values

func (*SetTenantCaptchaBadRequest) Code

func (o *SetTenantCaptchaBadRequest) Code() int

Code gets the status code for the set tenant captcha bad request response

func (*SetTenantCaptchaBadRequest) Error

func (*SetTenantCaptchaBadRequest) GetPayload

func (o *SetTenantCaptchaBadRequest) GetPayload() *models.Error

func (*SetTenantCaptchaBadRequest) IsClientError

func (o *SetTenantCaptchaBadRequest) IsClientError() bool

IsClientError returns true when this set tenant captcha bad request response has a 4xx status code

func (*SetTenantCaptchaBadRequest) IsCode

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

IsCode returns true when this set tenant captcha bad request response a status code equal to that given

func (*SetTenantCaptchaBadRequest) IsRedirect

func (o *SetTenantCaptchaBadRequest) IsRedirect() bool

IsRedirect returns true when this set tenant captcha bad request response has a 3xx status code

func (*SetTenantCaptchaBadRequest) IsServerError

func (o *SetTenantCaptchaBadRequest) IsServerError() bool

IsServerError returns true when this set tenant captcha bad request response has a 5xx status code

func (*SetTenantCaptchaBadRequest) IsSuccess

func (o *SetTenantCaptchaBadRequest) IsSuccess() bool

IsSuccess returns true when this set tenant captcha bad request response has a 2xx status code

func (*SetTenantCaptchaBadRequest) String

func (o *SetTenantCaptchaBadRequest) String() string

type SetTenantCaptchaForbidden

type SetTenantCaptchaForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewSetTenantCaptchaForbidden

func NewSetTenantCaptchaForbidden() *SetTenantCaptchaForbidden

NewSetTenantCaptchaForbidden creates a SetTenantCaptchaForbidden with default headers values

func (*SetTenantCaptchaForbidden) Code

func (o *SetTenantCaptchaForbidden) Code() int

Code gets the status code for the set tenant captcha forbidden response

func (*SetTenantCaptchaForbidden) Error

func (o *SetTenantCaptchaForbidden) Error() string

func (*SetTenantCaptchaForbidden) GetPayload

func (o *SetTenantCaptchaForbidden) GetPayload() *models.Error

func (*SetTenantCaptchaForbidden) IsClientError

func (o *SetTenantCaptchaForbidden) IsClientError() bool

IsClientError returns true when this set tenant captcha forbidden response has a 4xx status code

func (*SetTenantCaptchaForbidden) IsCode

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

IsCode returns true when this set tenant captcha forbidden response a status code equal to that given

func (*SetTenantCaptchaForbidden) IsRedirect

func (o *SetTenantCaptchaForbidden) IsRedirect() bool

IsRedirect returns true when this set tenant captcha forbidden response has a 3xx status code

func (*SetTenantCaptchaForbidden) IsServerError

func (o *SetTenantCaptchaForbidden) IsServerError() bool

IsServerError returns true when this set tenant captcha forbidden response has a 5xx status code

func (*SetTenantCaptchaForbidden) IsSuccess

func (o *SetTenantCaptchaForbidden) IsSuccess() bool

IsSuccess returns true when this set tenant captcha forbidden response has a 2xx status code

func (*SetTenantCaptchaForbidden) String

func (o *SetTenantCaptchaForbidden) String() string

type SetTenantCaptchaNotFound

type SetTenantCaptchaNotFound struct {
	Payload *models.Error
}

SetTenantCaptchaNotFound describes a response with status code 404, with default header values.

Not found

func NewSetTenantCaptchaNotFound

func NewSetTenantCaptchaNotFound() *SetTenantCaptchaNotFound

NewSetTenantCaptchaNotFound creates a SetTenantCaptchaNotFound with default headers values

func (*SetTenantCaptchaNotFound) Code

func (o *SetTenantCaptchaNotFound) Code() int

Code gets the status code for the set tenant captcha not found response

func (*SetTenantCaptchaNotFound) Error

func (o *SetTenantCaptchaNotFound) Error() string

func (*SetTenantCaptchaNotFound) GetPayload

func (o *SetTenantCaptchaNotFound) GetPayload() *models.Error

func (*SetTenantCaptchaNotFound) IsClientError

func (o *SetTenantCaptchaNotFound) IsClientError() bool

IsClientError returns true when this set tenant captcha not found response has a 4xx status code

func (*SetTenantCaptchaNotFound) IsCode

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

IsCode returns true when this set tenant captcha not found response a status code equal to that given

func (*SetTenantCaptchaNotFound) IsRedirect

func (o *SetTenantCaptchaNotFound) IsRedirect() bool

IsRedirect returns true when this set tenant captcha not found response has a 3xx status code

func (*SetTenantCaptchaNotFound) IsServerError

func (o *SetTenantCaptchaNotFound) IsServerError() bool

IsServerError returns true when this set tenant captcha not found response has a 5xx status code

func (*SetTenantCaptchaNotFound) IsSuccess

func (o *SetTenantCaptchaNotFound) IsSuccess() bool

IsSuccess returns true when this set tenant captcha not found response has a 2xx status code

func (*SetTenantCaptchaNotFound) String

func (o *SetTenantCaptchaNotFound) String() string

type SetTenantCaptchaOK

type SetTenantCaptchaOK struct {
	Payload *models.CaptchaSettings
}

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

Tenant captcha settings

func NewSetTenantCaptchaOK

func NewSetTenantCaptchaOK() *SetTenantCaptchaOK

NewSetTenantCaptchaOK creates a SetTenantCaptchaOK with default headers values

func (*SetTenantCaptchaOK) Code

func (o *SetTenantCaptchaOK) Code() int

Code gets the status code for the set tenant captcha o k response

func (*SetTenantCaptchaOK) Error

func (o *SetTenantCaptchaOK) Error() string

func (*SetTenantCaptchaOK) GetPayload

func (o *SetTenantCaptchaOK) GetPayload() *models.CaptchaSettings

func (*SetTenantCaptchaOK) IsClientError

func (o *SetTenantCaptchaOK) IsClientError() bool

IsClientError returns true when this set tenant captcha o k response has a 4xx status code

func (*SetTenantCaptchaOK) IsCode

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

IsCode returns true when this set tenant captcha o k response a status code equal to that given

func (*SetTenantCaptchaOK) IsRedirect

func (o *SetTenantCaptchaOK) IsRedirect() bool

IsRedirect returns true when this set tenant captcha o k response has a 3xx status code

func (*SetTenantCaptchaOK) IsServerError

func (o *SetTenantCaptchaOK) IsServerError() bool

IsServerError returns true when this set tenant captcha o k response has a 5xx status code

func (*SetTenantCaptchaOK) IsSuccess

func (o *SetTenantCaptchaOK) IsSuccess() bool

IsSuccess returns true when this set tenant captcha o k response has a 2xx status code

func (*SetTenantCaptchaOK) String

func (o *SetTenantCaptchaOK) String() string

type SetTenantCaptchaParams

type SetTenantCaptchaParams struct {

	// SetTenantCaptcha.
	SetTenantCaptcha *models.SetTenantCaptcha

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

SetTenantCaptchaParams contains all the parameters to send to the API endpoint

for the set tenant captcha operation.

Typically these are written to a http.Request.

func NewSetTenantCaptchaParams

func NewSetTenantCaptchaParams() *SetTenantCaptchaParams

NewSetTenantCaptchaParams creates a new SetTenantCaptchaParams 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 NewSetTenantCaptchaParamsWithContext

func NewSetTenantCaptchaParamsWithContext(ctx context.Context) *SetTenantCaptchaParams

NewSetTenantCaptchaParamsWithContext creates a new SetTenantCaptchaParams object with the ability to set a context for a request.

func NewSetTenantCaptchaParamsWithHTTPClient

func NewSetTenantCaptchaParamsWithHTTPClient(client *http.Client) *SetTenantCaptchaParams

NewSetTenantCaptchaParamsWithHTTPClient creates a new SetTenantCaptchaParams object with the ability to set a custom HTTPClient for a request.

func NewSetTenantCaptchaParamsWithTimeout

func NewSetTenantCaptchaParamsWithTimeout(timeout time.Duration) *SetTenantCaptchaParams

NewSetTenantCaptchaParamsWithTimeout creates a new SetTenantCaptchaParams object with the ability to set a timeout on a request.

func (*SetTenantCaptchaParams) SetContext

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

SetContext adds the context to the set tenant captcha params

func (*SetTenantCaptchaParams) SetDefaults

func (o *SetTenantCaptchaParams) SetDefaults()

SetDefaults hydrates default values in the set tenant captcha params (not the query body).

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

func (*SetTenantCaptchaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set tenant captcha params

func (*SetTenantCaptchaParams) SetSetTenantCaptcha

func (o *SetTenantCaptchaParams) SetSetTenantCaptcha(setTenantCaptcha *models.SetTenantCaptcha)

SetSetTenantCaptcha adds the setTenantCaptcha to the set tenant captcha params

func (*SetTenantCaptchaParams) SetTid

func (o *SetTenantCaptchaParams) SetTid(tid string)

SetTid adds the tid to the set tenant captcha params

func (*SetTenantCaptchaParams) SetTimeout

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

SetTimeout adds the timeout to the set tenant captcha params

func (*SetTenantCaptchaParams) WithContext

WithContext adds the context to the set tenant captcha params

func (*SetTenantCaptchaParams) WithDefaults

WithDefaults hydrates default values in the set tenant captcha params (not the query body).

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

func (*SetTenantCaptchaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set tenant captcha params

func (*SetTenantCaptchaParams) WithSetTenantCaptcha

func (o *SetTenantCaptchaParams) WithSetTenantCaptcha(setTenantCaptcha *models.SetTenantCaptcha) *SetTenantCaptchaParams

WithSetTenantCaptcha adds the setTenantCaptcha to the set tenant captcha params

func (*SetTenantCaptchaParams) WithTid

WithTid adds the tid to the set tenant captcha params

func (*SetTenantCaptchaParams) WithTimeout

WithTimeout adds the timeout to the set tenant captcha params

func (*SetTenantCaptchaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetTenantCaptchaReader

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

SetTenantCaptchaReader is a Reader for the SetTenantCaptcha structure.

func (*SetTenantCaptchaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetTenantCaptchaTooManyRequests

type SetTenantCaptchaTooManyRequests struct {
	Payload *models.Error
}

SetTenantCaptchaTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewSetTenantCaptchaTooManyRequests

func NewSetTenantCaptchaTooManyRequests() *SetTenantCaptchaTooManyRequests

NewSetTenantCaptchaTooManyRequests creates a SetTenantCaptchaTooManyRequests with default headers values

func (*SetTenantCaptchaTooManyRequests) Code

Code gets the status code for the set tenant captcha too many requests response

func (*SetTenantCaptchaTooManyRequests) Error

func (*SetTenantCaptchaTooManyRequests) GetPayload

func (o *SetTenantCaptchaTooManyRequests) GetPayload() *models.Error

func (*SetTenantCaptchaTooManyRequests) IsClientError

func (o *SetTenantCaptchaTooManyRequests) IsClientError() bool

IsClientError returns true when this set tenant captcha too many requests response has a 4xx status code

func (*SetTenantCaptchaTooManyRequests) IsCode

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

IsCode returns true when this set tenant captcha too many requests response a status code equal to that given

func (*SetTenantCaptchaTooManyRequests) IsRedirect

func (o *SetTenantCaptchaTooManyRequests) IsRedirect() bool

IsRedirect returns true when this set tenant captcha too many requests response has a 3xx status code

func (*SetTenantCaptchaTooManyRequests) IsServerError

func (o *SetTenantCaptchaTooManyRequests) IsServerError() bool

IsServerError returns true when this set tenant captcha too many requests response has a 5xx status code

func (*SetTenantCaptchaTooManyRequests) IsSuccess

func (o *SetTenantCaptchaTooManyRequests) IsSuccess() bool

IsSuccess returns true when this set tenant captcha too many requests response has a 2xx status code

func (*SetTenantCaptchaTooManyRequests) String

type SetTenantCaptchaUnauthorized

type SetTenantCaptchaUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetTenantCaptchaUnauthorized

func NewSetTenantCaptchaUnauthorized() *SetTenantCaptchaUnauthorized

NewSetTenantCaptchaUnauthorized creates a SetTenantCaptchaUnauthorized with default headers values

func (*SetTenantCaptchaUnauthorized) Code

Code gets the status code for the set tenant captcha unauthorized response

func (*SetTenantCaptchaUnauthorized) Error

func (*SetTenantCaptchaUnauthorized) GetPayload

func (o *SetTenantCaptchaUnauthorized) GetPayload() *models.Error

func (*SetTenantCaptchaUnauthorized) IsClientError

func (o *SetTenantCaptchaUnauthorized) IsClientError() bool

IsClientError returns true when this set tenant captcha unauthorized response has a 4xx status code

func (*SetTenantCaptchaUnauthorized) IsCode

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

IsCode returns true when this set tenant captcha unauthorized response a status code equal to that given

func (*SetTenantCaptchaUnauthorized) IsRedirect

func (o *SetTenantCaptchaUnauthorized) IsRedirect() bool

IsRedirect returns true when this set tenant captcha unauthorized response has a 3xx status code

func (*SetTenantCaptchaUnauthorized) IsServerError

func (o *SetTenantCaptchaUnauthorized) IsServerError() bool

IsServerError returns true when this set tenant captcha unauthorized response has a 5xx status code

func (*SetTenantCaptchaUnauthorized) IsSuccess

func (o *SetTenantCaptchaUnauthorized) IsSuccess() bool

IsSuccess returns true when this set tenant captcha unauthorized response has a 2xx status code

func (*SetTenantCaptchaUnauthorized) String

type SetTenantCaptchaUnprocessableEntity

type SetTenantCaptchaUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewSetTenantCaptchaUnprocessableEntity

func NewSetTenantCaptchaUnprocessableEntity() *SetTenantCaptchaUnprocessableEntity

NewSetTenantCaptchaUnprocessableEntity creates a SetTenantCaptchaUnprocessableEntity with default headers values

func (*SetTenantCaptchaUnprocessableEntity) Code

Code gets the status code for the set tenant captcha unprocessable entity response

func (*SetTenantCaptchaUnprocessableEntity) Error

func (*SetTenantCaptchaUnprocessableEntity) GetPayload

func (*SetTenantCaptchaUnprocessableEntity) IsClientError

func (o *SetTenantCaptchaUnprocessableEntity) IsClientError() bool

IsClientError returns true when this set tenant captcha unprocessable entity response has a 4xx status code

func (*SetTenantCaptchaUnprocessableEntity) IsCode

IsCode returns true when this set tenant captcha unprocessable entity response a status code equal to that given

func (*SetTenantCaptchaUnprocessableEntity) IsRedirect

func (o *SetTenantCaptchaUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this set tenant captcha unprocessable entity response has a 3xx status code

func (*SetTenantCaptchaUnprocessableEntity) IsServerError

func (o *SetTenantCaptchaUnprocessableEntity) IsServerError() bool

IsServerError returns true when this set tenant captcha unprocessable entity response has a 5xx status code

func (*SetTenantCaptchaUnprocessableEntity) IsSuccess

IsSuccess returns true when this set tenant captcha unprocessable entity response has a 2xx status code

func (*SetTenantCaptchaUnprocessableEntity) String

Jump to

Keyboard shortcuts

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