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 limits API

func (*Client) DeleteRateLimit

func (a *Client) DeleteRateLimit(params *DeleteRateLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRateLimitNoContent, error)

DeleteRateLimit deletes rate limit

Delete custom rate limit for a module per tenant.

func (*Client) ListRateLimits

func (a *Client) ListRateLimits(params *ListRateLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRateLimitsOK, error)

ListRateLimits lists rate limits

List custom rate limits per tenant.

func (*Client) SetRateLimit

func (a *Client) SetRateLimit(params *SetRateLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRateLimitNoContent, error)

SetRateLimit sets rate limit

Set custom rate limit for a module per tenant.

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 {
	DeleteRateLimit(params *DeleteRateLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRateLimitNoContent, error)

	ListRateLimits(params *ListRateLimitsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRateLimitsOK, error)

	SetRateLimit(params *SetRateLimitParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRateLimitNoContent, 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 limits API client.

type DeleteRateLimitForbidden

type DeleteRateLimitForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteRateLimitForbidden

func NewDeleteRateLimitForbidden() *DeleteRateLimitForbidden

NewDeleteRateLimitForbidden creates a DeleteRateLimitForbidden with default headers values

func (*DeleteRateLimitForbidden) Code

func (o *DeleteRateLimitForbidden) Code() int

Code gets the status code for the delete rate limit forbidden response

func (*DeleteRateLimitForbidden) Error

func (o *DeleteRateLimitForbidden) Error() string

func (*DeleteRateLimitForbidden) GetPayload

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

func (*DeleteRateLimitForbidden) IsClientError

func (o *DeleteRateLimitForbidden) IsClientError() bool

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

func (*DeleteRateLimitForbidden) IsCode

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

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

func (*DeleteRateLimitForbidden) IsRedirect

func (o *DeleteRateLimitForbidden) IsRedirect() bool

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

func (*DeleteRateLimitForbidden) IsServerError

func (o *DeleteRateLimitForbidden) IsServerError() bool

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

func (*DeleteRateLimitForbidden) IsSuccess

func (o *DeleteRateLimitForbidden) IsSuccess() bool

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

func (*DeleteRateLimitForbidden) String

func (o *DeleteRateLimitForbidden) String() string

type DeleteRateLimitNoContent

type DeleteRateLimitNoContent struct {
}

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

custom rate limit has been deleted

func NewDeleteRateLimitNoContent

func NewDeleteRateLimitNoContent() *DeleteRateLimitNoContent

NewDeleteRateLimitNoContent creates a DeleteRateLimitNoContent with default headers values

func (*DeleteRateLimitNoContent) Code

func (o *DeleteRateLimitNoContent) Code() int

Code gets the status code for the delete rate limit no content response

func (*DeleteRateLimitNoContent) Error

func (o *DeleteRateLimitNoContent) Error() string

func (*DeleteRateLimitNoContent) IsClientError

func (o *DeleteRateLimitNoContent) IsClientError() bool

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

func (*DeleteRateLimitNoContent) IsCode

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

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

func (*DeleteRateLimitNoContent) IsRedirect

func (o *DeleteRateLimitNoContent) IsRedirect() bool

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

func (*DeleteRateLimitNoContent) IsServerError

func (o *DeleteRateLimitNoContent) IsServerError() bool

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

func (*DeleteRateLimitNoContent) IsSuccess

func (o *DeleteRateLimitNoContent) IsSuccess() bool

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

func (*DeleteRateLimitNoContent) String

func (o *DeleteRateLimitNoContent) String() string

type DeleteRateLimitNotFound

type DeleteRateLimitNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteRateLimitNotFound

func NewDeleteRateLimitNotFound() *DeleteRateLimitNotFound

NewDeleteRateLimitNotFound creates a DeleteRateLimitNotFound with default headers values

func (*DeleteRateLimitNotFound) Code

func (o *DeleteRateLimitNotFound) Code() int

Code gets the status code for the delete rate limit not found response

func (*DeleteRateLimitNotFound) Error

func (o *DeleteRateLimitNotFound) Error() string

func (*DeleteRateLimitNotFound) GetPayload

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

func (*DeleteRateLimitNotFound) IsClientError

func (o *DeleteRateLimitNotFound) IsClientError() bool

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

func (*DeleteRateLimitNotFound) IsCode

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

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

func (*DeleteRateLimitNotFound) IsRedirect

func (o *DeleteRateLimitNotFound) IsRedirect() bool

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

func (*DeleteRateLimitNotFound) IsServerError

func (o *DeleteRateLimitNotFound) IsServerError() bool

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

func (*DeleteRateLimitNotFound) IsSuccess

func (o *DeleteRateLimitNotFound) IsSuccess() bool

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

func (*DeleteRateLimitNotFound) String

func (o *DeleteRateLimitNotFound) String() string

type DeleteRateLimitParams

type DeleteRateLimitParams struct {

	// Module.
	Module string

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

DeleteRateLimitParams contains all the parameters to send to the API endpoint

for the delete rate limit operation.

Typically these are written to a http.Request.

func NewDeleteRateLimitParams

func NewDeleteRateLimitParams() *DeleteRateLimitParams

NewDeleteRateLimitParams creates a new DeleteRateLimitParams 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 NewDeleteRateLimitParamsWithContext

func NewDeleteRateLimitParamsWithContext(ctx context.Context) *DeleteRateLimitParams

NewDeleteRateLimitParamsWithContext creates a new DeleteRateLimitParams object with the ability to set a context for a request.

func NewDeleteRateLimitParamsWithHTTPClient

func NewDeleteRateLimitParamsWithHTTPClient(client *http.Client) *DeleteRateLimitParams

NewDeleteRateLimitParamsWithHTTPClient creates a new DeleteRateLimitParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRateLimitParamsWithTimeout

func NewDeleteRateLimitParamsWithTimeout(timeout time.Duration) *DeleteRateLimitParams

NewDeleteRateLimitParamsWithTimeout creates a new DeleteRateLimitParams object with the ability to set a timeout on a request.

func (*DeleteRateLimitParams) SetContext

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

SetContext adds the context to the delete rate limit params

func (*DeleteRateLimitParams) SetDefaults

func (o *DeleteRateLimitParams) SetDefaults()

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

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

func (*DeleteRateLimitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete rate limit params

func (*DeleteRateLimitParams) SetModule

func (o *DeleteRateLimitParams) SetModule(module string)

SetModule adds the module to the delete rate limit params

func (*DeleteRateLimitParams) SetTid

func (o *DeleteRateLimitParams) SetTid(tid string)

SetTid adds the tid to the delete rate limit params

func (*DeleteRateLimitParams) SetTimeout

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

SetTimeout adds the timeout to the delete rate limit params

func (*DeleteRateLimitParams) WithContext

WithContext adds the context to the delete rate limit params

func (*DeleteRateLimitParams) WithDefaults

func (o *DeleteRateLimitParams) WithDefaults() *DeleteRateLimitParams

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

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

func (*DeleteRateLimitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete rate limit params

func (*DeleteRateLimitParams) WithModule

func (o *DeleteRateLimitParams) WithModule(module string) *DeleteRateLimitParams

WithModule adds the module to the delete rate limit params

func (*DeleteRateLimitParams) WithTid

WithTid adds the tid to the delete rate limit params

func (*DeleteRateLimitParams) WithTimeout

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

WithTimeout adds the timeout to the delete rate limit params

func (*DeleteRateLimitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRateLimitReader

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

DeleteRateLimitReader is a Reader for the DeleteRateLimit structure.

func (*DeleteRateLimitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRateLimitTooManyRequests

type DeleteRateLimitTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewDeleteRateLimitTooManyRequests

func NewDeleteRateLimitTooManyRequests() *DeleteRateLimitTooManyRequests

NewDeleteRateLimitTooManyRequests creates a DeleteRateLimitTooManyRequests with default headers values

func (*DeleteRateLimitTooManyRequests) Code

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

func (*DeleteRateLimitTooManyRequests) Error

func (*DeleteRateLimitTooManyRequests) GetPayload

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

func (*DeleteRateLimitTooManyRequests) IsClientError

func (o *DeleteRateLimitTooManyRequests) IsClientError() bool

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

func (*DeleteRateLimitTooManyRequests) IsCode

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

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

func (*DeleteRateLimitTooManyRequests) IsRedirect

func (o *DeleteRateLimitTooManyRequests) IsRedirect() bool

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

func (*DeleteRateLimitTooManyRequests) IsServerError

func (o *DeleteRateLimitTooManyRequests) IsServerError() bool

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

func (*DeleteRateLimitTooManyRequests) IsSuccess

func (o *DeleteRateLimitTooManyRequests) IsSuccess() bool

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

func (*DeleteRateLimitTooManyRequests) String

type DeleteRateLimitUnauthorized

type DeleteRateLimitUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteRateLimitUnauthorized

func NewDeleteRateLimitUnauthorized() *DeleteRateLimitUnauthorized

NewDeleteRateLimitUnauthorized creates a DeleteRateLimitUnauthorized with default headers values

func (*DeleteRateLimitUnauthorized) Code

func (o *DeleteRateLimitUnauthorized) Code() int

Code gets the status code for the delete rate limit unauthorized response

func (*DeleteRateLimitUnauthorized) Error

func (*DeleteRateLimitUnauthorized) GetPayload

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

func (*DeleteRateLimitUnauthorized) IsClientError

func (o *DeleteRateLimitUnauthorized) IsClientError() bool

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

func (*DeleteRateLimitUnauthorized) IsCode

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

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

func (*DeleteRateLimitUnauthorized) IsRedirect

func (o *DeleteRateLimitUnauthorized) IsRedirect() bool

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

func (*DeleteRateLimitUnauthorized) IsServerError

func (o *DeleteRateLimitUnauthorized) IsServerError() bool

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

func (*DeleteRateLimitUnauthorized) IsSuccess

func (o *DeleteRateLimitUnauthorized) IsSuccess() bool

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

func (*DeleteRateLimitUnauthorized) String

func (o *DeleteRateLimitUnauthorized) String() string

type ListRateLimitsForbidden

type ListRateLimitsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListRateLimitsForbidden

func NewListRateLimitsForbidden() *ListRateLimitsForbidden

NewListRateLimitsForbidden creates a ListRateLimitsForbidden with default headers values

func (*ListRateLimitsForbidden) Code

func (o *ListRateLimitsForbidden) Code() int

Code gets the status code for the list rate limits forbidden response

func (*ListRateLimitsForbidden) Error

func (o *ListRateLimitsForbidden) Error() string

func (*ListRateLimitsForbidden) GetPayload

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

func (*ListRateLimitsForbidden) IsClientError

func (o *ListRateLimitsForbidden) IsClientError() bool

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

func (*ListRateLimitsForbidden) IsCode

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

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

func (*ListRateLimitsForbidden) IsRedirect

func (o *ListRateLimitsForbidden) IsRedirect() bool

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

func (*ListRateLimitsForbidden) IsServerError

func (o *ListRateLimitsForbidden) IsServerError() bool

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

func (*ListRateLimitsForbidden) IsSuccess

func (o *ListRateLimitsForbidden) IsSuccess() bool

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

func (*ListRateLimitsForbidden) String

func (o *ListRateLimitsForbidden) String() string

type ListRateLimitsNotFound

type ListRateLimitsNotFound struct {
	Payload *models.Error
}

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

Not found

func NewListRateLimitsNotFound

func NewListRateLimitsNotFound() *ListRateLimitsNotFound

NewListRateLimitsNotFound creates a ListRateLimitsNotFound with default headers values

func (*ListRateLimitsNotFound) Code

func (o *ListRateLimitsNotFound) Code() int

Code gets the status code for the list rate limits not found response

func (*ListRateLimitsNotFound) Error

func (o *ListRateLimitsNotFound) Error() string

func (*ListRateLimitsNotFound) GetPayload

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

func (*ListRateLimitsNotFound) IsClientError

func (o *ListRateLimitsNotFound) IsClientError() bool

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

func (*ListRateLimitsNotFound) IsCode

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

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

func (*ListRateLimitsNotFound) IsRedirect

func (o *ListRateLimitsNotFound) IsRedirect() bool

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

func (*ListRateLimitsNotFound) IsServerError

func (o *ListRateLimitsNotFound) IsServerError() bool

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

func (*ListRateLimitsNotFound) IsSuccess

func (o *ListRateLimitsNotFound) IsSuccess() bool

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

func (*ListRateLimitsNotFound) String

func (o *ListRateLimitsNotFound) String() string

type ListRateLimitsOK

type ListRateLimitsOK struct {
	Payload *models.ListRateLimitsResponse
}

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

Tenant rate limits

func NewListRateLimitsOK

func NewListRateLimitsOK() *ListRateLimitsOK

NewListRateLimitsOK creates a ListRateLimitsOK with default headers values

func (*ListRateLimitsOK) Code

func (o *ListRateLimitsOK) Code() int

Code gets the status code for the list rate limits o k response

func (*ListRateLimitsOK) Error

func (o *ListRateLimitsOK) Error() string

func (*ListRateLimitsOK) GetPayload

func (*ListRateLimitsOK) IsClientError

func (o *ListRateLimitsOK) IsClientError() bool

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

func (*ListRateLimitsOK) IsCode

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

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

func (*ListRateLimitsOK) IsRedirect

func (o *ListRateLimitsOK) IsRedirect() bool

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

func (*ListRateLimitsOK) IsServerError

func (o *ListRateLimitsOK) IsServerError() bool

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

func (*ListRateLimitsOK) IsSuccess

func (o *ListRateLimitsOK) IsSuccess() bool

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

func (*ListRateLimitsOK) String

func (o *ListRateLimitsOK) String() string

type ListRateLimitsParams

type ListRateLimitsParams struct {

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

ListRateLimitsParams contains all the parameters to send to the API endpoint

for the list rate limits operation.

Typically these are written to a http.Request.

func NewListRateLimitsParams

func NewListRateLimitsParams() *ListRateLimitsParams

NewListRateLimitsParams creates a new ListRateLimitsParams 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 NewListRateLimitsParamsWithContext

func NewListRateLimitsParamsWithContext(ctx context.Context) *ListRateLimitsParams

NewListRateLimitsParamsWithContext creates a new ListRateLimitsParams object with the ability to set a context for a request.

func NewListRateLimitsParamsWithHTTPClient

func NewListRateLimitsParamsWithHTTPClient(client *http.Client) *ListRateLimitsParams

NewListRateLimitsParamsWithHTTPClient creates a new ListRateLimitsParams object with the ability to set a custom HTTPClient for a request.

func NewListRateLimitsParamsWithTimeout

func NewListRateLimitsParamsWithTimeout(timeout time.Duration) *ListRateLimitsParams

NewListRateLimitsParamsWithTimeout creates a new ListRateLimitsParams object with the ability to set a timeout on a request.

func (*ListRateLimitsParams) SetContext

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

SetContext adds the context to the list rate limits params

func (*ListRateLimitsParams) SetDefaults

func (o *ListRateLimitsParams) SetDefaults()

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

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

func (*ListRateLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list rate limits params

func (*ListRateLimitsParams) SetTid

func (o *ListRateLimitsParams) SetTid(tid string)

SetTid adds the tid to the list rate limits params

func (*ListRateLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the list rate limits params

func (*ListRateLimitsParams) WithContext

WithContext adds the context to the list rate limits params

func (*ListRateLimitsParams) WithDefaults

func (o *ListRateLimitsParams) WithDefaults() *ListRateLimitsParams

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

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

func (*ListRateLimitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list rate limits params

func (*ListRateLimitsParams) WithTid

WithTid adds the tid to the list rate limits params

func (*ListRateLimitsParams) WithTimeout

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

WithTimeout adds the timeout to the list rate limits params

func (*ListRateLimitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRateLimitsReader

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

ListRateLimitsReader is a Reader for the ListRateLimits structure.

func (*ListRateLimitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRateLimitsTooManyRequests

type ListRateLimitsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListRateLimitsTooManyRequests

func NewListRateLimitsTooManyRequests() *ListRateLimitsTooManyRequests

NewListRateLimitsTooManyRequests creates a ListRateLimitsTooManyRequests with default headers values

func (*ListRateLimitsTooManyRequests) Code

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

func (*ListRateLimitsTooManyRequests) Error

func (*ListRateLimitsTooManyRequests) GetPayload

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

func (*ListRateLimitsTooManyRequests) IsClientError

func (o *ListRateLimitsTooManyRequests) IsClientError() bool

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

func (*ListRateLimitsTooManyRequests) IsCode

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

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

func (*ListRateLimitsTooManyRequests) IsRedirect

func (o *ListRateLimitsTooManyRequests) IsRedirect() bool

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

func (*ListRateLimitsTooManyRequests) IsServerError

func (o *ListRateLimitsTooManyRequests) IsServerError() bool

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

func (*ListRateLimitsTooManyRequests) IsSuccess

func (o *ListRateLimitsTooManyRequests) IsSuccess() bool

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

func (*ListRateLimitsTooManyRequests) String

type ListRateLimitsUnauthorized

type ListRateLimitsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListRateLimitsUnauthorized

func NewListRateLimitsUnauthorized() *ListRateLimitsUnauthorized

NewListRateLimitsUnauthorized creates a ListRateLimitsUnauthorized with default headers values

func (*ListRateLimitsUnauthorized) Code

func (o *ListRateLimitsUnauthorized) Code() int

Code gets the status code for the list rate limits unauthorized response

func (*ListRateLimitsUnauthorized) Error

func (*ListRateLimitsUnauthorized) GetPayload

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

func (*ListRateLimitsUnauthorized) IsClientError

func (o *ListRateLimitsUnauthorized) IsClientError() bool

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

func (*ListRateLimitsUnauthorized) IsCode

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

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

func (*ListRateLimitsUnauthorized) IsRedirect

func (o *ListRateLimitsUnauthorized) IsRedirect() bool

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

func (*ListRateLimitsUnauthorized) IsServerError

func (o *ListRateLimitsUnauthorized) IsServerError() bool

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

func (*ListRateLimitsUnauthorized) IsSuccess

func (o *ListRateLimitsUnauthorized) IsSuccess() bool

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

func (*ListRateLimitsUnauthorized) String

func (o *ListRateLimitsUnauthorized) String() string

type SetRateLimitForbidden

type SetRateLimitForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewSetRateLimitForbidden

func NewSetRateLimitForbidden() *SetRateLimitForbidden

NewSetRateLimitForbidden creates a SetRateLimitForbidden with default headers values

func (*SetRateLimitForbidden) Code

func (o *SetRateLimitForbidden) Code() int

Code gets the status code for the set rate limit forbidden response

func (*SetRateLimitForbidden) Error

func (o *SetRateLimitForbidden) Error() string

func (*SetRateLimitForbidden) GetPayload

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

func (*SetRateLimitForbidden) IsClientError

func (o *SetRateLimitForbidden) IsClientError() bool

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

func (*SetRateLimitForbidden) IsCode

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

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

func (*SetRateLimitForbidden) IsRedirect

func (o *SetRateLimitForbidden) IsRedirect() bool

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

func (*SetRateLimitForbidden) IsServerError

func (o *SetRateLimitForbidden) IsServerError() bool

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

func (*SetRateLimitForbidden) IsSuccess

func (o *SetRateLimitForbidden) IsSuccess() bool

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

func (*SetRateLimitForbidden) String

func (o *SetRateLimitForbidden) String() string

type SetRateLimitNoContent

type SetRateLimitNoContent struct {
}

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

custom rate limit has been saved

func NewSetRateLimitNoContent

func NewSetRateLimitNoContent() *SetRateLimitNoContent

NewSetRateLimitNoContent creates a SetRateLimitNoContent with default headers values

func (*SetRateLimitNoContent) Code

func (o *SetRateLimitNoContent) Code() int

Code gets the status code for the set rate limit no content response

func (*SetRateLimitNoContent) Error

func (o *SetRateLimitNoContent) Error() string

func (*SetRateLimitNoContent) IsClientError

func (o *SetRateLimitNoContent) IsClientError() bool

IsClientError returns true when this set rate limit no content response has a 4xx status code

func (*SetRateLimitNoContent) IsCode

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

IsCode returns true when this set rate limit no content response a status code equal to that given

func (*SetRateLimitNoContent) IsRedirect

func (o *SetRateLimitNoContent) IsRedirect() bool

IsRedirect returns true when this set rate limit no content response has a 3xx status code

func (*SetRateLimitNoContent) IsServerError

func (o *SetRateLimitNoContent) IsServerError() bool

IsServerError returns true when this set rate limit no content response has a 5xx status code

func (*SetRateLimitNoContent) IsSuccess

func (o *SetRateLimitNoContent) IsSuccess() bool

IsSuccess returns true when this set rate limit no content response has a 2xx status code

func (*SetRateLimitNoContent) String

func (o *SetRateLimitNoContent) String() string

type SetRateLimitNotFound

type SetRateLimitNotFound struct {
	Payload *models.Error
}

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

Not found

func NewSetRateLimitNotFound

func NewSetRateLimitNotFound() *SetRateLimitNotFound

NewSetRateLimitNotFound creates a SetRateLimitNotFound with default headers values

func (*SetRateLimitNotFound) Code

func (o *SetRateLimitNotFound) Code() int

Code gets the status code for the set rate limit not found response

func (*SetRateLimitNotFound) Error

func (o *SetRateLimitNotFound) Error() string

func (*SetRateLimitNotFound) GetPayload

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

func (*SetRateLimitNotFound) IsClientError

func (o *SetRateLimitNotFound) IsClientError() bool

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

func (*SetRateLimitNotFound) IsCode

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

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

func (*SetRateLimitNotFound) IsRedirect

func (o *SetRateLimitNotFound) IsRedirect() bool

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

func (*SetRateLimitNotFound) IsServerError

func (o *SetRateLimitNotFound) IsServerError() bool

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

func (*SetRateLimitNotFound) IsSuccess

func (o *SetRateLimitNotFound) IsSuccess() bool

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

func (*SetRateLimitNotFound) String

func (o *SetRateLimitNotFound) String() string

type SetRateLimitParams

type SetRateLimitParams struct {

	// CustomRateLimit.
	CustomRateLimit *models.SetRateLimitRequest

	// Module.
	Module string

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

SetRateLimitParams contains all the parameters to send to the API endpoint

for the set rate limit operation.

Typically these are written to a http.Request.

func NewSetRateLimitParams

func NewSetRateLimitParams() *SetRateLimitParams

NewSetRateLimitParams creates a new SetRateLimitParams 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 NewSetRateLimitParamsWithContext

func NewSetRateLimitParamsWithContext(ctx context.Context) *SetRateLimitParams

NewSetRateLimitParamsWithContext creates a new SetRateLimitParams object with the ability to set a context for a request.

func NewSetRateLimitParamsWithHTTPClient

func NewSetRateLimitParamsWithHTTPClient(client *http.Client) *SetRateLimitParams

NewSetRateLimitParamsWithHTTPClient creates a new SetRateLimitParams object with the ability to set a custom HTTPClient for a request.

func NewSetRateLimitParamsWithTimeout

func NewSetRateLimitParamsWithTimeout(timeout time.Duration) *SetRateLimitParams

NewSetRateLimitParamsWithTimeout creates a new SetRateLimitParams object with the ability to set a timeout on a request.

func (*SetRateLimitParams) SetContext

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

SetContext adds the context to the set rate limit params

func (*SetRateLimitParams) SetCustomRateLimit

func (o *SetRateLimitParams) SetCustomRateLimit(customRateLimit *models.SetRateLimitRequest)

SetCustomRateLimit adds the customRateLimit to the set rate limit params

func (*SetRateLimitParams) SetDefaults

func (o *SetRateLimitParams) SetDefaults()

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

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

func (*SetRateLimitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set rate limit params

func (*SetRateLimitParams) SetModule

func (o *SetRateLimitParams) SetModule(module string)

SetModule adds the module to the set rate limit params

func (*SetRateLimitParams) SetTid

func (o *SetRateLimitParams) SetTid(tid string)

SetTid adds the tid to the set rate limit params

func (*SetRateLimitParams) SetTimeout

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

SetTimeout adds the timeout to the set rate limit params

func (*SetRateLimitParams) WithContext

WithContext adds the context to the set rate limit params

func (*SetRateLimitParams) WithCustomRateLimit

func (o *SetRateLimitParams) WithCustomRateLimit(customRateLimit *models.SetRateLimitRequest) *SetRateLimitParams

WithCustomRateLimit adds the customRateLimit to the set rate limit params

func (*SetRateLimitParams) WithDefaults

func (o *SetRateLimitParams) WithDefaults() *SetRateLimitParams

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

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

func (*SetRateLimitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set rate limit params

func (*SetRateLimitParams) WithModule

func (o *SetRateLimitParams) WithModule(module string) *SetRateLimitParams

WithModule adds the module to the set rate limit params

func (*SetRateLimitParams) WithTid

func (o *SetRateLimitParams) WithTid(tid string) *SetRateLimitParams

WithTid adds the tid to the set rate limit params

func (*SetRateLimitParams) WithTimeout

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

WithTimeout adds the timeout to the set rate limit params

func (*SetRateLimitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetRateLimitReader

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

SetRateLimitReader is a Reader for the SetRateLimit structure.

func (*SetRateLimitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetRateLimitTooManyRequests

type SetRateLimitTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewSetRateLimitTooManyRequests

func NewSetRateLimitTooManyRequests() *SetRateLimitTooManyRequests

NewSetRateLimitTooManyRequests creates a SetRateLimitTooManyRequests with default headers values

func (*SetRateLimitTooManyRequests) Code

func (o *SetRateLimitTooManyRequests) Code() int

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

func (*SetRateLimitTooManyRequests) Error

func (*SetRateLimitTooManyRequests) GetPayload

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

func (*SetRateLimitTooManyRequests) IsClientError

func (o *SetRateLimitTooManyRequests) IsClientError() bool

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

func (*SetRateLimitTooManyRequests) IsCode

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

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

func (*SetRateLimitTooManyRequests) IsRedirect

func (o *SetRateLimitTooManyRequests) IsRedirect() bool

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

func (*SetRateLimitTooManyRequests) IsServerError

func (o *SetRateLimitTooManyRequests) IsServerError() bool

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

func (*SetRateLimitTooManyRequests) IsSuccess

func (o *SetRateLimitTooManyRequests) IsSuccess() bool

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

func (*SetRateLimitTooManyRequests) String

func (o *SetRateLimitTooManyRequests) String() string

type SetRateLimitUnauthorized

type SetRateLimitUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetRateLimitUnauthorized

func NewSetRateLimitUnauthorized() *SetRateLimitUnauthorized

NewSetRateLimitUnauthorized creates a SetRateLimitUnauthorized with default headers values

func (*SetRateLimitUnauthorized) Code

func (o *SetRateLimitUnauthorized) Code() int

Code gets the status code for the set rate limit unauthorized response

func (*SetRateLimitUnauthorized) Error

func (o *SetRateLimitUnauthorized) Error() string

func (*SetRateLimitUnauthorized) GetPayload

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

func (*SetRateLimitUnauthorized) IsClientError

func (o *SetRateLimitUnauthorized) IsClientError() bool

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

func (*SetRateLimitUnauthorized) IsCode

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

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

func (*SetRateLimitUnauthorized) IsRedirect

func (o *SetRateLimitUnauthorized) IsRedirect() bool

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

func (*SetRateLimitUnauthorized) IsServerError

func (o *SetRateLimitUnauthorized) IsServerError() bool

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

func (*SetRateLimitUnauthorized) IsSuccess

func (o *SetRateLimitUnauthorized) IsSuccess() bool

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

func (*SetRateLimitUnauthorized) String

func (o *SetRateLimitUnauthorized) String() string

Jump to

Keyboard shortcuts

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