brute_force_limits

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for brute force limits API

func (*Client) DeleteBruteForceLimit

func (a *Client) DeleteBruteForceLimit(params *DeleteBruteForceLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBruteForceLimitNoContent, error)

DeleteBruteForceLimit resets brute force limit

Reset brute force limit for tenant and protection type.

func (*Client) ListBruteForceLimits

func (a *Client) ListBruteForceLimits(params *ListBruteForceLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListBruteForceLimitsOK, error)

ListBruteForceLimits gets tenant s brute force limits

Get tenant's brute force limits

func (*Client) SetBruteForceLimit

func (a *Client) SetBruteForceLimit(params *SetBruteForceLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetBruteForceLimitCreated, error)

SetBruteForceLimit sets brute force limit

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteBruteForceLimit(params *DeleteBruteForceLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBruteForceLimitNoContent, error)

	ListBruteForceLimits(params *ListBruteForceLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListBruteForceLimitsOK, error)

	SetBruteForceLimit(params *SetBruteForceLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetBruteForceLimitCreated, 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 brute force limits API client.

type DeleteBruteForceLimitForbidden

type DeleteBruteForceLimitForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteBruteForceLimitForbidden

func NewDeleteBruteForceLimitForbidden() *DeleteBruteForceLimitForbidden

NewDeleteBruteForceLimitForbidden creates a DeleteBruteForceLimitForbidden with default headers values

func (*DeleteBruteForceLimitForbidden) Code

Code gets the status code for the delete brute force limit forbidden response

func (*DeleteBruteForceLimitForbidden) Error

func (*DeleteBruteForceLimitForbidden) GetPayload

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

func (*DeleteBruteForceLimitForbidden) IsClientError

func (o *DeleteBruteForceLimitForbidden) IsClientError() bool

IsClientError returns true when this delete brute force limit forbidden response has a 4xx status code

func (*DeleteBruteForceLimitForbidden) IsCode

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

IsCode returns true when this delete brute force limit forbidden response a status code equal to that given

func (*DeleteBruteForceLimitForbidden) IsRedirect

func (o *DeleteBruteForceLimitForbidden) IsRedirect() bool

IsRedirect returns true when this delete brute force limit forbidden response has a 3xx status code

func (*DeleteBruteForceLimitForbidden) IsServerError

func (o *DeleteBruteForceLimitForbidden) IsServerError() bool

IsServerError returns true when this delete brute force limit forbidden response has a 5xx status code

func (*DeleteBruteForceLimitForbidden) IsSuccess

func (o *DeleteBruteForceLimitForbidden) IsSuccess() bool

IsSuccess returns true when this delete brute force limit forbidden response has a 2xx status code

func (*DeleteBruteForceLimitForbidden) String

type DeleteBruteForceLimitNoContent

type DeleteBruteForceLimitNoContent struct {
}

DeleteBruteForceLimitNoContent describes a response with status code 204, with default header values.

brute force limit has been reset

func NewDeleteBruteForceLimitNoContent

func NewDeleteBruteForceLimitNoContent() *DeleteBruteForceLimitNoContent

NewDeleteBruteForceLimitNoContent creates a DeleteBruteForceLimitNoContent with default headers values

func (*DeleteBruteForceLimitNoContent) Code

Code gets the status code for the delete brute force limit no content response

func (*DeleteBruteForceLimitNoContent) Error

func (*DeleteBruteForceLimitNoContent) IsClientError

func (o *DeleteBruteForceLimitNoContent) IsClientError() bool

IsClientError returns true when this delete brute force limit no content response has a 4xx status code

func (*DeleteBruteForceLimitNoContent) IsCode

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

IsCode returns true when this delete brute force limit no content response a status code equal to that given

func (*DeleteBruteForceLimitNoContent) IsRedirect

func (o *DeleteBruteForceLimitNoContent) IsRedirect() bool

IsRedirect returns true when this delete brute force limit no content response has a 3xx status code

func (*DeleteBruteForceLimitNoContent) IsServerError

func (o *DeleteBruteForceLimitNoContent) IsServerError() bool

IsServerError returns true when this delete brute force limit no content response has a 5xx status code

func (*DeleteBruteForceLimitNoContent) IsSuccess

func (o *DeleteBruteForceLimitNoContent) IsSuccess() bool

IsSuccess returns true when this delete brute force limit no content response has a 2xx status code

func (*DeleteBruteForceLimitNoContent) String

type DeleteBruteForceLimitNotFound

type DeleteBruteForceLimitNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteBruteForceLimitNotFound

func NewDeleteBruteForceLimitNotFound() *DeleteBruteForceLimitNotFound

NewDeleteBruteForceLimitNotFound creates a DeleteBruteForceLimitNotFound with default headers values

func (*DeleteBruteForceLimitNotFound) Code

Code gets the status code for the delete brute force limit not found response

func (*DeleteBruteForceLimitNotFound) Error

func (*DeleteBruteForceLimitNotFound) GetPayload

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

func (*DeleteBruteForceLimitNotFound) IsClientError

func (o *DeleteBruteForceLimitNotFound) IsClientError() bool

IsClientError returns true when this delete brute force limit not found response has a 4xx status code

func (*DeleteBruteForceLimitNotFound) IsCode

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

IsCode returns true when this delete brute force limit not found response a status code equal to that given

func (*DeleteBruteForceLimitNotFound) IsRedirect

func (o *DeleteBruteForceLimitNotFound) IsRedirect() bool

IsRedirect returns true when this delete brute force limit not found response has a 3xx status code

func (*DeleteBruteForceLimitNotFound) IsServerError

func (o *DeleteBruteForceLimitNotFound) IsServerError() bool

IsServerError returns true when this delete brute force limit not found response has a 5xx status code

func (*DeleteBruteForceLimitNotFound) IsSuccess

func (o *DeleteBruteForceLimitNotFound) IsSuccess() bool

IsSuccess returns true when this delete brute force limit not found response has a 2xx status code

func (*DeleteBruteForceLimitNotFound) String

type DeleteBruteForceLimitParams

type DeleteBruteForceLimitParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	// ProtectedType.
	ProtectedType string

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

DeleteBruteForceLimitParams contains all the parameters to send to the API endpoint

for the delete brute force limit operation.

Typically these are written to a http.Request.

func NewDeleteBruteForceLimitParams

func NewDeleteBruteForceLimitParams() *DeleteBruteForceLimitParams

NewDeleteBruteForceLimitParams creates a new DeleteBruteForceLimitParams 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 NewDeleteBruteForceLimitParamsWithContext

func NewDeleteBruteForceLimitParamsWithContext(ctx context.Context) *DeleteBruteForceLimitParams

NewDeleteBruteForceLimitParamsWithContext creates a new DeleteBruteForceLimitParams object with the ability to set a context for a request.

func NewDeleteBruteForceLimitParamsWithHTTPClient

func NewDeleteBruteForceLimitParamsWithHTTPClient(client *http.Client) *DeleteBruteForceLimitParams

NewDeleteBruteForceLimitParamsWithHTTPClient creates a new DeleteBruteForceLimitParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBruteForceLimitParamsWithTimeout

func NewDeleteBruteForceLimitParamsWithTimeout(timeout time.Duration) *DeleteBruteForceLimitParams

NewDeleteBruteForceLimitParamsWithTimeout creates a new DeleteBruteForceLimitParams object with the ability to set a timeout on a request.

func (*DeleteBruteForceLimitParams) SetContext

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

SetContext adds the context to the delete brute force limit params

func (*DeleteBruteForceLimitParams) SetDefaults

func (o *DeleteBruteForceLimitParams) SetDefaults()

SetDefaults hydrates default values in the delete brute force limit params (not the query body).

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

func (*DeleteBruteForceLimitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete brute force limit params

func (*DeleteBruteForceLimitParams) SetIfMatch

func (o *DeleteBruteForceLimitParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete brute force limit params

func (*DeleteBruteForceLimitParams) SetProtectedType

func (o *DeleteBruteForceLimitParams) SetProtectedType(protectedType string)

SetProtectedType adds the protectedType to the delete brute force limit params

func (*DeleteBruteForceLimitParams) SetTimeout

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

SetTimeout adds the timeout to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WithContext

WithContext adds the context to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WithDefaults

WithDefaults hydrates default values in the delete brute force limit params (not the query body).

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

func (*DeleteBruteForceLimitParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WithIfMatch

WithIfMatch adds the ifMatch to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WithProtectedType

func (o *DeleteBruteForceLimitParams) WithProtectedType(protectedType string) *DeleteBruteForceLimitParams

WithProtectedType adds the protectedType to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WithTimeout

WithTimeout adds the timeout to the delete brute force limit params

func (*DeleteBruteForceLimitParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteBruteForceLimitReader

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

DeleteBruteForceLimitReader is a Reader for the DeleteBruteForceLimit structure.

func (*DeleteBruteForceLimitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBruteForceLimitTooManyRequests

type DeleteBruteForceLimitTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewDeleteBruteForceLimitTooManyRequests

func NewDeleteBruteForceLimitTooManyRequests() *DeleteBruteForceLimitTooManyRequests

NewDeleteBruteForceLimitTooManyRequests creates a DeleteBruteForceLimitTooManyRequests with default headers values

func (*DeleteBruteForceLimitTooManyRequests) Code

Code gets the status code for the delete brute force limit too many requests response

func (*DeleteBruteForceLimitTooManyRequests) Error

func (*DeleteBruteForceLimitTooManyRequests) GetPayload

func (*DeleteBruteForceLimitTooManyRequests) IsClientError

func (o *DeleteBruteForceLimitTooManyRequests) IsClientError() bool

IsClientError returns true when this delete brute force limit too many requests response has a 4xx status code

func (*DeleteBruteForceLimitTooManyRequests) IsCode

IsCode returns true when this delete brute force limit too many requests response a status code equal to that given

func (*DeleteBruteForceLimitTooManyRequests) IsRedirect

IsRedirect returns true when this delete brute force limit too many requests response has a 3xx status code

func (*DeleteBruteForceLimitTooManyRequests) IsServerError

func (o *DeleteBruteForceLimitTooManyRequests) IsServerError() bool

IsServerError returns true when this delete brute force limit too many requests response has a 5xx status code

func (*DeleteBruteForceLimitTooManyRequests) IsSuccess

IsSuccess returns true when this delete brute force limit too many requests response has a 2xx status code

func (*DeleteBruteForceLimitTooManyRequests) String

type DeleteBruteForceLimitUnauthorized

type DeleteBruteForceLimitUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteBruteForceLimitUnauthorized

func NewDeleteBruteForceLimitUnauthorized() *DeleteBruteForceLimitUnauthorized

NewDeleteBruteForceLimitUnauthorized creates a DeleteBruteForceLimitUnauthorized with default headers values

func (*DeleteBruteForceLimitUnauthorized) Code

Code gets the status code for the delete brute force limit unauthorized response

func (*DeleteBruteForceLimitUnauthorized) Error

func (*DeleteBruteForceLimitUnauthorized) GetPayload

func (*DeleteBruteForceLimitUnauthorized) IsClientError

func (o *DeleteBruteForceLimitUnauthorized) IsClientError() bool

IsClientError returns true when this delete brute force limit unauthorized response has a 4xx status code

func (*DeleteBruteForceLimitUnauthorized) IsCode

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

IsCode returns true when this delete brute force limit unauthorized response a status code equal to that given

func (*DeleteBruteForceLimitUnauthorized) IsRedirect

func (o *DeleteBruteForceLimitUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete brute force limit unauthorized response has a 3xx status code

func (*DeleteBruteForceLimitUnauthorized) IsServerError

func (o *DeleteBruteForceLimitUnauthorized) IsServerError() bool

IsServerError returns true when this delete brute force limit unauthorized response has a 5xx status code

func (*DeleteBruteForceLimitUnauthorized) IsSuccess

func (o *DeleteBruteForceLimitUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete brute force limit unauthorized response has a 2xx status code

func (*DeleteBruteForceLimitUnauthorized) String

type ListBruteForceLimitsForbidden

type ListBruteForceLimitsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListBruteForceLimitsForbidden

func NewListBruteForceLimitsForbidden() *ListBruteForceLimitsForbidden

NewListBruteForceLimitsForbidden creates a ListBruteForceLimitsForbidden with default headers values

func (*ListBruteForceLimitsForbidden) Code

Code gets the status code for the list brute force limits forbidden response

func (*ListBruteForceLimitsForbidden) Error

func (*ListBruteForceLimitsForbidden) GetPayload

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

func (*ListBruteForceLimitsForbidden) IsClientError

func (o *ListBruteForceLimitsForbidden) IsClientError() bool

IsClientError returns true when this list brute force limits forbidden response has a 4xx status code

func (*ListBruteForceLimitsForbidden) IsCode

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

IsCode returns true when this list brute force limits forbidden response a status code equal to that given

func (*ListBruteForceLimitsForbidden) IsRedirect

func (o *ListBruteForceLimitsForbidden) IsRedirect() bool

IsRedirect returns true when this list brute force limits forbidden response has a 3xx status code

func (*ListBruteForceLimitsForbidden) IsServerError

func (o *ListBruteForceLimitsForbidden) IsServerError() bool

IsServerError returns true when this list brute force limits forbidden response has a 5xx status code

func (*ListBruteForceLimitsForbidden) IsSuccess

func (o *ListBruteForceLimitsForbidden) IsSuccess() bool

IsSuccess returns true when this list brute force limits forbidden response has a 2xx status code

func (*ListBruteForceLimitsForbidden) String

type ListBruteForceLimitsNotFound

type ListBruteForceLimitsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListBruteForceLimitsNotFound

func NewListBruteForceLimitsNotFound() *ListBruteForceLimitsNotFound

NewListBruteForceLimitsNotFound creates a ListBruteForceLimitsNotFound with default headers values

func (*ListBruteForceLimitsNotFound) Code

Code gets the status code for the list brute force limits not found response

func (*ListBruteForceLimitsNotFound) Error

func (*ListBruteForceLimitsNotFound) GetPayload

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

func (*ListBruteForceLimitsNotFound) IsClientError

func (o *ListBruteForceLimitsNotFound) IsClientError() bool

IsClientError returns true when this list brute force limits not found response has a 4xx status code

func (*ListBruteForceLimitsNotFound) IsCode

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

IsCode returns true when this list brute force limits not found response a status code equal to that given

func (*ListBruteForceLimitsNotFound) IsRedirect

func (o *ListBruteForceLimitsNotFound) IsRedirect() bool

IsRedirect returns true when this list brute force limits not found response has a 3xx status code

func (*ListBruteForceLimitsNotFound) IsServerError

func (o *ListBruteForceLimitsNotFound) IsServerError() bool

IsServerError returns true when this list brute force limits not found response has a 5xx status code

func (*ListBruteForceLimitsNotFound) IsSuccess

func (o *ListBruteForceLimitsNotFound) IsSuccess() bool

IsSuccess returns true when this list brute force limits not found response has a 2xx status code

func (*ListBruteForceLimitsNotFound) String

type ListBruteForceLimitsOK

type ListBruteForceLimitsOK struct {
	Payload *models.BruteForceLimits
}

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

BruteForceLimits

func NewListBruteForceLimitsOK

func NewListBruteForceLimitsOK() *ListBruteForceLimitsOK

NewListBruteForceLimitsOK creates a ListBruteForceLimitsOK with default headers values

func (*ListBruteForceLimitsOK) Code

func (o *ListBruteForceLimitsOK) Code() int

Code gets the status code for the list brute force limits o k response

func (*ListBruteForceLimitsOK) Error

func (o *ListBruteForceLimitsOK) Error() string

func (*ListBruteForceLimitsOK) GetPayload

func (*ListBruteForceLimitsOK) IsClientError

func (o *ListBruteForceLimitsOK) IsClientError() bool

IsClientError returns true when this list brute force limits o k response has a 4xx status code

func (*ListBruteForceLimitsOK) IsCode

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

IsCode returns true when this list brute force limits o k response a status code equal to that given

func (*ListBruteForceLimitsOK) IsRedirect

func (o *ListBruteForceLimitsOK) IsRedirect() bool

IsRedirect returns true when this list brute force limits o k response has a 3xx status code

func (*ListBruteForceLimitsOK) IsServerError

func (o *ListBruteForceLimitsOK) IsServerError() bool

IsServerError returns true when this list brute force limits o k response has a 5xx status code

func (*ListBruteForceLimitsOK) IsSuccess

func (o *ListBruteForceLimitsOK) IsSuccess() bool

IsSuccess returns true when this list brute force limits o k response has a 2xx status code

func (*ListBruteForceLimitsOK) String

func (o *ListBruteForceLimitsOK) String() string

type ListBruteForceLimitsParams

type ListBruteForceLimitsParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

ListBruteForceLimitsParams contains all the parameters to send to the API endpoint

for the list brute force limits operation.

Typically these are written to a http.Request.

func NewListBruteForceLimitsParams

func NewListBruteForceLimitsParams() *ListBruteForceLimitsParams

NewListBruteForceLimitsParams creates a new ListBruteForceLimitsParams 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 NewListBruteForceLimitsParamsWithContext

func NewListBruteForceLimitsParamsWithContext(ctx context.Context) *ListBruteForceLimitsParams

NewListBruteForceLimitsParamsWithContext creates a new ListBruteForceLimitsParams object with the ability to set a context for a request.

func NewListBruteForceLimitsParamsWithHTTPClient

func NewListBruteForceLimitsParamsWithHTTPClient(client *http.Client) *ListBruteForceLimitsParams

NewListBruteForceLimitsParamsWithHTTPClient creates a new ListBruteForceLimitsParams object with the ability to set a custom HTTPClient for a request.

func NewListBruteForceLimitsParamsWithTimeout

func NewListBruteForceLimitsParamsWithTimeout(timeout time.Duration) *ListBruteForceLimitsParams

NewListBruteForceLimitsParamsWithTimeout creates a new ListBruteForceLimitsParams object with the ability to set a timeout on a request.

func (*ListBruteForceLimitsParams) SetContext

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

SetContext adds the context to the list brute force limits params

func (*ListBruteForceLimitsParams) SetDefaults

func (o *ListBruteForceLimitsParams) SetDefaults()

SetDefaults hydrates default values in the list brute force limits params (not the query body).

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

func (*ListBruteForceLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list brute force limits params

func (*ListBruteForceLimitsParams) SetIfMatch

func (o *ListBruteForceLimitsParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list brute force limits params

func (*ListBruteForceLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the list brute force limits params

func (*ListBruteForceLimitsParams) WithContext

WithContext adds the context to the list brute force limits params

func (*ListBruteForceLimitsParams) WithDefaults

WithDefaults hydrates default values in the list brute force limits params (not the query body).

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

func (*ListBruteForceLimitsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list brute force limits params

func (*ListBruteForceLimitsParams) WithIfMatch

WithIfMatch adds the ifMatch to the list brute force limits params

func (*ListBruteForceLimitsParams) WithTimeout

WithTimeout adds the timeout to the list brute force limits params

func (*ListBruteForceLimitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListBruteForceLimitsReader

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

ListBruteForceLimitsReader is a Reader for the ListBruteForceLimits structure.

func (*ListBruteForceLimitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListBruteForceLimitsTooManyRequests

type ListBruteForceLimitsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListBruteForceLimitsTooManyRequests

func NewListBruteForceLimitsTooManyRequests() *ListBruteForceLimitsTooManyRequests

NewListBruteForceLimitsTooManyRequests creates a ListBruteForceLimitsTooManyRequests with default headers values

func (*ListBruteForceLimitsTooManyRequests) Code

Code gets the status code for the list brute force limits too many requests response

func (*ListBruteForceLimitsTooManyRequests) Error

func (*ListBruteForceLimitsTooManyRequests) GetPayload

func (*ListBruteForceLimitsTooManyRequests) IsClientError

func (o *ListBruteForceLimitsTooManyRequests) IsClientError() bool

IsClientError returns true when this list brute force limits too many requests response has a 4xx status code

func (*ListBruteForceLimitsTooManyRequests) IsCode

IsCode returns true when this list brute force limits too many requests response a status code equal to that given

func (*ListBruteForceLimitsTooManyRequests) IsRedirect

func (o *ListBruteForceLimitsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list brute force limits too many requests response has a 3xx status code

func (*ListBruteForceLimitsTooManyRequests) IsServerError

func (o *ListBruteForceLimitsTooManyRequests) IsServerError() bool

IsServerError returns true when this list brute force limits too many requests response has a 5xx status code

func (*ListBruteForceLimitsTooManyRequests) IsSuccess

IsSuccess returns true when this list brute force limits too many requests response has a 2xx status code

func (*ListBruteForceLimitsTooManyRequests) String

type ListBruteForceLimitsUnauthorized

type ListBruteForceLimitsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListBruteForceLimitsUnauthorized

func NewListBruteForceLimitsUnauthorized() *ListBruteForceLimitsUnauthorized

NewListBruteForceLimitsUnauthorized creates a ListBruteForceLimitsUnauthorized with default headers values

func (*ListBruteForceLimitsUnauthorized) Code

Code gets the status code for the list brute force limits unauthorized response

func (*ListBruteForceLimitsUnauthorized) Error

func (*ListBruteForceLimitsUnauthorized) GetPayload

func (*ListBruteForceLimitsUnauthorized) IsClientError

func (o *ListBruteForceLimitsUnauthorized) IsClientError() bool

IsClientError returns true when this list brute force limits unauthorized response has a 4xx status code

func (*ListBruteForceLimitsUnauthorized) IsCode

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

IsCode returns true when this list brute force limits unauthorized response a status code equal to that given

func (*ListBruteForceLimitsUnauthorized) IsRedirect

func (o *ListBruteForceLimitsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list brute force limits unauthorized response has a 3xx status code

func (*ListBruteForceLimitsUnauthorized) IsServerError

func (o *ListBruteForceLimitsUnauthorized) IsServerError() bool

IsServerError returns true when this list brute force limits unauthorized response has a 5xx status code

func (*ListBruteForceLimitsUnauthorized) IsSuccess

func (o *ListBruteForceLimitsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list brute force limits unauthorized response has a 2xx status code

func (*ListBruteForceLimitsUnauthorized) String

type SetBruteForceLimitBadRequest

type SetBruteForceLimitBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewSetBruteForceLimitBadRequest

func NewSetBruteForceLimitBadRequest() *SetBruteForceLimitBadRequest

NewSetBruteForceLimitBadRequest creates a SetBruteForceLimitBadRequest with default headers values

func (*SetBruteForceLimitBadRequest) Code

Code gets the status code for the set brute force limit bad request response

func (*SetBruteForceLimitBadRequest) Error

func (*SetBruteForceLimitBadRequest) GetPayload

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

func (*SetBruteForceLimitBadRequest) IsClientError

func (o *SetBruteForceLimitBadRequest) IsClientError() bool

IsClientError returns true when this set brute force limit bad request response has a 4xx status code

func (*SetBruteForceLimitBadRequest) IsCode

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

IsCode returns true when this set brute force limit bad request response a status code equal to that given

func (*SetBruteForceLimitBadRequest) IsRedirect

func (o *SetBruteForceLimitBadRequest) IsRedirect() bool

IsRedirect returns true when this set brute force limit bad request response has a 3xx status code

func (*SetBruteForceLimitBadRequest) IsServerError

func (o *SetBruteForceLimitBadRequest) IsServerError() bool

IsServerError returns true when this set brute force limit bad request response has a 5xx status code

func (*SetBruteForceLimitBadRequest) IsSuccess

func (o *SetBruteForceLimitBadRequest) IsSuccess() bool

IsSuccess returns true when this set brute force limit bad request response has a 2xx status code

func (*SetBruteForceLimitBadRequest) String

type SetBruteForceLimitConflict

type SetBruteForceLimitConflict struct {
	Payload *models.Error
}

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

Conflict

func NewSetBruteForceLimitConflict

func NewSetBruteForceLimitConflict() *SetBruteForceLimitConflict

NewSetBruteForceLimitConflict creates a SetBruteForceLimitConflict with default headers values

func (*SetBruteForceLimitConflict) Code

func (o *SetBruteForceLimitConflict) Code() int

Code gets the status code for the set brute force limit conflict response

func (*SetBruteForceLimitConflict) Error

func (*SetBruteForceLimitConflict) GetPayload

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

func (*SetBruteForceLimitConflict) IsClientError

func (o *SetBruteForceLimitConflict) IsClientError() bool

IsClientError returns true when this set brute force limit conflict response has a 4xx status code

func (*SetBruteForceLimitConflict) IsCode

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

IsCode returns true when this set brute force limit conflict response a status code equal to that given

func (*SetBruteForceLimitConflict) IsRedirect

func (o *SetBruteForceLimitConflict) IsRedirect() bool

IsRedirect returns true when this set brute force limit conflict response has a 3xx status code

func (*SetBruteForceLimitConflict) IsServerError

func (o *SetBruteForceLimitConflict) IsServerError() bool

IsServerError returns true when this set brute force limit conflict response has a 5xx status code

func (*SetBruteForceLimitConflict) IsSuccess

func (o *SetBruteForceLimitConflict) IsSuccess() bool

IsSuccess returns true when this set brute force limit conflict response has a 2xx status code

func (*SetBruteForceLimitConflict) String

func (o *SetBruteForceLimitConflict) String() string

type SetBruteForceLimitCreated

type SetBruteForceLimitCreated struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.BruteForceLimit
}

SetBruteForceLimitCreated describes a response with status code 201, with default header values.

Brute force limit

func NewSetBruteForceLimitCreated

func NewSetBruteForceLimitCreated() *SetBruteForceLimitCreated

NewSetBruteForceLimitCreated creates a SetBruteForceLimitCreated with default headers values

func (*SetBruteForceLimitCreated) Code

func (o *SetBruteForceLimitCreated) Code() int

Code gets the status code for the set brute force limit created response

func (*SetBruteForceLimitCreated) Error

func (o *SetBruteForceLimitCreated) Error() string

func (*SetBruteForceLimitCreated) GetPayload

func (*SetBruteForceLimitCreated) IsClientError

func (o *SetBruteForceLimitCreated) IsClientError() bool

IsClientError returns true when this set brute force limit created response has a 4xx status code

func (*SetBruteForceLimitCreated) IsCode

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

IsCode returns true when this set brute force limit created response a status code equal to that given

func (*SetBruteForceLimitCreated) IsRedirect

func (o *SetBruteForceLimitCreated) IsRedirect() bool

IsRedirect returns true when this set brute force limit created response has a 3xx status code

func (*SetBruteForceLimitCreated) IsServerError

func (o *SetBruteForceLimitCreated) IsServerError() bool

IsServerError returns true when this set brute force limit created response has a 5xx status code

func (*SetBruteForceLimitCreated) IsSuccess

func (o *SetBruteForceLimitCreated) IsSuccess() bool

IsSuccess returns true when this set brute force limit created response has a 2xx status code

func (*SetBruteForceLimitCreated) String

func (o *SetBruteForceLimitCreated) String() string

type SetBruteForceLimitForbidden

type SetBruteForceLimitForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewSetBruteForceLimitForbidden

func NewSetBruteForceLimitForbidden() *SetBruteForceLimitForbidden

NewSetBruteForceLimitForbidden creates a SetBruteForceLimitForbidden with default headers values

func (*SetBruteForceLimitForbidden) Code

func (o *SetBruteForceLimitForbidden) Code() int

Code gets the status code for the set brute force limit forbidden response

func (*SetBruteForceLimitForbidden) Error

func (*SetBruteForceLimitForbidden) GetPayload

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

func (*SetBruteForceLimitForbidden) IsClientError

func (o *SetBruteForceLimitForbidden) IsClientError() bool

IsClientError returns true when this set brute force limit forbidden response has a 4xx status code

func (*SetBruteForceLimitForbidden) IsCode

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

IsCode returns true when this set brute force limit forbidden response a status code equal to that given

func (*SetBruteForceLimitForbidden) IsRedirect

func (o *SetBruteForceLimitForbidden) IsRedirect() bool

IsRedirect returns true when this set brute force limit forbidden response has a 3xx status code

func (*SetBruteForceLimitForbidden) IsServerError

func (o *SetBruteForceLimitForbidden) IsServerError() bool

IsServerError returns true when this set brute force limit forbidden response has a 5xx status code

func (*SetBruteForceLimitForbidden) IsSuccess

func (o *SetBruteForceLimitForbidden) IsSuccess() bool

IsSuccess returns true when this set brute force limit forbidden response has a 2xx status code

func (*SetBruteForceLimitForbidden) String

func (o *SetBruteForceLimitForbidden) String() string

type SetBruteForceLimitNotFound

type SetBruteForceLimitNotFound struct {
	Payload *models.Error
}

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

Not found

func NewSetBruteForceLimitNotFound

func NewSetBruteForceLimitNotFound() *SetBruteForceLimitNotFound

NewSetBruteForceLimitNotFound creates a SetBruteForceLimitNotFound with default headers values

func (*SetBruteForceLimitNotFound) Code

func (o *SetBruteForceLimitNotFound) Code() int

Code gets the status code for the set brute force limit not found response

func (*SetBruteForceLimitNotFound) Error

func (*SetBruteForceLimitNotFound) GetPayload

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

func (*SetBruteForceLimitNotFound) IsClientError

func (o *SetBruteForceLimitNotFound) IsClientError() bool

IsClientError returns true when this set brute force limit not found response has a 4xx status code

func (*SetBruteForceLimitNotFound) IsCode

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

IsCode returns true when this set brute force limit not found response a status code equal to that given

func (*SetBruteForceLimitNotFound) IsRedirect

func (o *SetBruteForceLimitNotFound) IsRedirect() bool

IsRedirect returns true when this set brute force limit not found response has a 3xx status code

func (*SetBruteForceLimitNotFound) IsServerError

func (o *SetBruteForceLimitNotFound) IsServerError() bool

IsServerError returns true when this set brute force limit not found response has a 5xx status code

func (*SetBruteForceLimitNotFound) IsSuccess

func (o *SetBruteForceLimitNotFound) IsSuccess() bool

IsSuccess returns true when this set brute force limit not found response has a 2xx status code

func (*SetBruteForceLimitNotFound) String

func (o *SetBruteForceLimitNotFound) String() string

type SetBruteForceLimitParams

type SetBruteForceLimitParams struct {

	// BruteForceLimit.
	BruteForceLimit *models.BruteForceLimit

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

SetBruteForceLimitParams contains all the parameters to send to the API endpoint

for the set brute force limit operation.

Typically these are written to a http.Request.

func NewSetBruteForceLimitParams

func NewSetBruteForceLimitParams() *SetBruteForceLimitParams

NewSetBruteForceLimitParams creates a new SetBruteForceLimitParams 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 NewSetBruteForceLimitParamsWithContext

func NewSetBruteForceLimitParamsWithContext(ctx context.Context) *SetBruteForceLimitParams

NewSetBruteForceLimitParamsWithContext creates a new SetBruteForceLimitParams object with the ability to set a context for a request.

func NewSetBruteForceLimitParamsWithHTTPClient

func NewSetBruteForceLimitParamsWithHTTPClient(client *http.Client) *SetBruteForceLimitParams

NewSetBruteForceLimitParamsWithHTTPClient creates a new SetBruteForceLimitParams object with the ability to set a custom HTTPClient for a request.

func NewSetBruteForceLimitParamsWithTimeout

func NewSetBruteForceLimitParamsWithTimeout(timeout time.Duration) *SetBruteForceLimitParams

NewSetBruteForceLimitParamsWithTimeout creates a new SetBruteForceLimitParams object with the ability to set a timeout on a request.

func (*SetBruteForceLimitParams) SetBruteForceLimit

func (o *SetBruteForceLimitParams) SetBruteForceLimit(bruteForceLimit *models.BruteForceLimit)

SetBruteForceLimit adds the bruteForceLimit to the set brute force limit params

func (*SetBruteForceLimitParams) SetContext

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

SetContext adds the context to the set brute force limit params

func (*SetBruteForceLimitParams) SetDefaults

func (o *SetBruteForceLimitParams) SetDefaults()

SetDefaults hydrates default values in the set brute force limit params (not the query body).

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

func (*SetBruteForceLimitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set brute force limit params

func (*SetBruteForceLimitParams) SetIfMatch

func (o *SetBruteForceLimitParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the set brute force limit params

func (*SetBruteForceLimitParams) SetTimeout

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

SetTimeout adds the timeout to the set brute force limit params

func (*SetBruteForceLimitParams) WithBruteForceLimit

func (o *SetBruteForceLimitParams) WithBruteForceLimit(bruteForceLimit *models.BruteForceLimit) *SetBruteForceLimitParams

WithBruteForceLimit adds the bruteForceLimit to the set brute force limit params

func (*SetBruteForceLimitParams) WithContext

WithContext adds the context to the set brute force limit params

func (*SetBruteForceLimitParams) WithDefaults

WithDefaults hydrates default values in the set brute force limit params (not the query body).

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

func (*SetBruteForceLimitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set brute force limit params

func (*SetBruteForceLimitParams) WithIfMatch

func (o *SetBruteForceLimitParams) WithIfMatch(ifMatch *string) *SetBruteForceLimitParams

WithIfMatch adds the ifMatch to the set brute force limit params

func (*SetBruteForceLimitParams) WithTimeout

WithTimeout adds the timeout to the set brute force limit params

func (*SetBruteForceLimitParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetBruteForceLimitReader

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

SetBruteForceLimitReader is a Reader for the SetBruteForceLimit structure.

func (*SetBruteForceLimitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetBruteForceLimitTooManyRequests

type SetBruteForceLimitTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewSetBruteForceLimitTooManyRequests

func NewSetBruteForceLimitTooManyRequests() *SetBruteForceLimitTooManyRequests

NewSetBruteForceLimitTooManyRequests creates a SetBruteForceLimitTooManyRequests with default headers values

func (*SetBruteForceLimitTooManyRequests) Code

Code gets the status code for the set brute force limit too many requests response

func (*SetBruteForceLimitTooManyRequests) Error

func (*SetBruteForceLimitTooManyRequests) GetPayload

func (*SetBruteForceLimitTooManyRequests) IsClientError

func (o *SetBruteForceLimitTooManyRequests) IsClientError() bool

IsClientError returns true when this set brute force limit too many requests response has a 4xx status code

func (*SetBruteForceLimitTooManyRequests) IsCode

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

IsCode returns true when this set brute force limit too many requests response a status code equal to that given

func (*SetBruteForceLimitTooManyRequests) IsRedirect

func (o *SetBruteForceLimitTooManyRequests) IsRedirect() bool

IsRedirect returns true when this set brute force limit too many requests response has a 3xx status code

func (*SetBruteForceLimitTooManyRequests) IsServerError

func (o *SetBruteForceLimitTooManyRequests) IsServerError() bool

IsServerError returns true when this set brute force limit too many requests response has a 5xx status code

func (*SetBruteForceLimitTooManyRequests) IsSuccess

func (o *SetBruteForceLimitTooManyRequests) IsSuccess() bool

IsSuccess returns true when this set brute force limit too many requests response has a 2xx status code

func (*SetBruteForceLimitTooManyRequests) String

type SetBruteForceLimitUnauthorized

type SetBruteForceLimitUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetBruteForceLimitUnauthorized

func NewSetBruteForceLimitUnauthorized() *SetBruteForceLimitUnauthorized

NewSetBruteForceLimitUnauthorized creates a SetBruteForceLimitUnauthorized with default headers values

func (*SetBruteForceLimitUnauthorized) Code

Code gets the status code for the set brute force limit unauthorized response

func (*SetBruteForceLimitUnauthorized) Error

func (*SetBruteForceLimitUnauthorized) GetPayload

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

func (*SetBruteForceLimitUnauthorized) IsClientError

func (o *SetBruteForceLimitUnauthorized) IsClientError() bool

IsClientError returns true when this set brute force limit unauthorized response has a 4xx status code

func (*SetBruteForceLimitUnauthorized) IsCode

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

IsCode returns true when this set brute force limit unauthorized response a status code equal to that given

func (*SetBruteForceLimitUnauthorized) IsRedirect

func (o *SetBruteForceLimitUnauthorized) IsRedirect() bool

IsRedirect returns true when this set brute force limit unauthorized response has a 3xx status code

func (*SetBruteForceLimitUnauthorized) IsServerError

func (o *SetBruteForceLimitUnauthorized) IsServerError() bool

IsServerError returns true when this set brute force limit unauthorized response has a 5xx status code

func (*SetBruteForceLimitUnauthorized) IsSuccess

func (o *SetBruteForceLimitUnauthorized) IsSuccess() bool

IsSuccess returns true when this set brute force limit unauthorized response has a 2xx status code

func (*SetBruteForceLimitUnauthorized) String

type SetBruteForceLimitUnprocessableEntity

type SetBruteForceLimitUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewSetBruteForceLimitUnprocessableEntity

func NewSetBruteForceLimitUnprocessableEntity() *SetBruteForceLimitUnprocessableEntity

NewSetBruteForceLimitUnprocessableEntity creates a SetBruteForceLimitUnprocessableEntity with default headers values

func (*SetBruteForceLimitUnprocessableEntity) Code

Code gets the status code for the set brute force limit unprocessable entity response

func (*SetBruteForceLimitUnprocessableEntity) Error

func (*SetBruteForceLimitUnprocessableEntity) GetPayload

func (*SetBruteForceLimitUnprocessableEntity) IsClientError

func (o *SetBruteForceLimitUnprocessableEntity) IsClientError() bool

IsClientError returns true when this set brute force limit unprocessable entity response has a 4xx status code

func (*SetBruteForceLimitUnprocessableEntity) IsCode

IsCode returns true when this set brute force limit unprocessable entity response a status code equal to that given

func (*SetBruteForceLimitUnprocessableEntity) IsRedirect

IsRedirect returns true when this set brute force limit unprocessable entity response has a 3xx status code

func (*SetBruteForceLimitUnprocessableEntity) IsServerError

func (o *SetBruteForceLimitUnprocessableEntity) IsServerError() bool

IsServerError returns true when this set brute force limit unprocessable entity response has a 5xx status code

func (*SetBruteForceLimitUnprocessableEntity) IsSuccess

IsSuccess returns true when this set brute force limit unprocessable entity response has a 2xx status code

func (*SetBruteForceLimitUnprocessableEntity) String

Jump to

Keyboard shortcuts

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