Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteRateLimit(params *DeleteRateLimitParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteRateLimitNoContent, error)
- func (a *Client) ListRateLimits(params *ListRateLimitsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListRateLimitsOK, error)
- func (a *Client) SetRateLimit(params *SetRateLimitParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetRateLimitNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteRateLimitForbidden
- func (o *DeleteRateLimitForbidden) Code() int
- func (o *DeleteRateLimitForbidden) Error() string
- func (o *DeleteRateLimitForbidden) GetPayload() *models.Error
- func (o *DeleteRateLimitForbidden) IsClientError() bool
- func (o *DeleteRateLimitForbidden) IsCode(code int) bool
- func (o *DeleteRateLimitForbidden) IsRedirect() bool
- func (o *DeleteRateLimitForbidden) IsServerError() bool
- func (o *DeleteRateLimitForbidden) IsSuccess() bool
- func (o *DeleteRateLimitForbidden) String() string
- type DeleteRateLimitNoContent
- func (o *DeleteRateLimitNoContent) Code() int
- func (o *DeleteRateLimitNoContent) Error() string
- func (o *DeleteRateLimitNoContent) IsClientError() bool
- func (o *DeleteRateLimitNoContent) IsCode(code int) bool
- func (o *DeleteRateLimitNoContent) IsRedirect() bool
- func (o *DeleteRateLimitNoContent) IsServerError() bool
- func (o *DeleteRateLimitNoContent) IsSuccess() bool
- func (o *DeleteRateLimitNoContent) String() string
- type DeleteRateLimitNotFound
- func (o *DeleteRateLimitNotFound) Code() int
- func (o *DeleteRateLimitNotFound) Error() string
- func (o *DeleteRateLimitNotFound) GetPayload() *models.Error
- func (o *DeleteRateLimitNotFound) IsClientError() bool
- func (o *DeleteRateLimitNotFound) IsCode(code int) bool
- func (o *DeleteRateLimitNotFound) IsRedirect() bool
- func (o *DeleteRateLimitNotFound) IsServerError() bool
- func (o *DeleteRateLimitNotFound) IsSuccess() bool
- func (o *DeleteRateLimitNotFound) String() string
- type DeleteRateLimitParams
- func NewDeleteRateLimitParams() *DeleteRateLimitParams
- func NewDeleteRateLimitParamsWithContext(ctx context.Context) *DeleteRateLimitParams
- func NewDeleteRateLimitParamsWithHTTPClient(client *http.Client) *DeleteRateLimitParams
- func NewDeleteRateLimitParamsWithTimeout(timeout time.Duration) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) SetContext(ctx context.Context)
- func (o *DeleteRateLimitParams) SetDefaults()
- func (o *DeleteRateLimitParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRateLimitParams) SetModule(module string)
- func (o *DeleteRateLimitParams) SetTid(tid string)
- func (o *DeleteRateLimitParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRateLimitParams) WithContext(ctx context.Context) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WithDefaults() *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WithHTTPClient(client *http.Client) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WithModule(module string) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WithTid(tid string) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WithTimeout(timeout time.Duration) *DeleteRateLimitParams
- func (o *DeleteRateLimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRateLimitReader
- type DeleteRateLimitTooManyRequests
- func (o *DeleteRateLimitTooManyRequests) Code() int
- func (o *DeleteRateLimitTooManyRequests) Error() string
- func (o *DeleteRateLimitTooManyRequests) GetPayload() *models.Error
- func (o *DeleteRateLimitTooManyRequests) IsClientError() bool
- func (o *DeleteRateLimitTooManyRequests) IsCode(code int) bool
- func (o *DeleteRateLimitTooManyRequests) IsRedirect() bool
- func (o *DeleteRateLimitTooManyRequests) IsServerError() bool
- func (o *DeleteRateLimitTooManyRequests) IsSuccess() bool
- func (o *DeleteRateLimitTooManyRequests) String() string
- type DeleteRateLimitUnauthorized
- func (o *DeleteRateLimitUnauthorized) Code() int
- func (o *DeleteRateLimitUnauthorized) Error() string
- func (o *DeleteRateLimitUnauthorized) GetPayload() *models.Error
- func (o *DeleteRateLimitUnauthorized) IsClientError() bool
- func (o *DeleteRateLimitUnauthorized) IsCode(code int) bool
- func (o *DeleteRateLimitUnauthorized) IsRedirect() bool
- func (o *DeleteRateLimitUnauthorized) IsServerError() bool
- func (o *DeleteRateLimitUnauthorized) IsSuccess() bool
- func (o *DeleteRateLimitUnauthorized) String() string
- type ListRateLimitsForbidden
- func (o *ListRateLimitsForbidden) Code() int
- func (o *ListRateLimitsForbidden) Error() string
- func (o *ListRateLimitsForbidden) GetPayload() *models.Error
- func (o *ListRateLimitsForbidden) IsClientError() bool
- func (o *ListRateLimitsForbidden) IsCode(code int) bool
- func (o *ListRateLimitsForbidden) IsRedirect() bool
- func (o *ListRateLimitsForbidden) IsServerError() bool
- func (o *ListRateLimitsForbidden) IsSuccess() bool
- func (o *ListRateLimitsForbidden) String() string
- type ListRateLimitsNotFound
- func (o *ListRateLimitsNotFound) Code() int
- func (o *ListRateLimitsNotFound) Error() string
- func (o *ListRateLimitsNotFound) GetPayload() *models.Error
- func (o *ListRateLimitsNotFound) IsClientError() bool
- func (o *ListRateLimitsNotFound) IsCode(code int) bool
- func (o *ListRateLimitsNotFound) IsRedirect() bool
- func (o *ListRateLimitsNotFound) IsServerError() bool
- func (o *ListRateLimitsNotFound) IsSuccess() bool
- func (o *ListRateLimitsNotFound) String() string
- type ListRateLimitsOK
- func (o *ListRateLimitsOK) Code() int
- func (o *ListRateLimitsOK) Error() string
- func (o *ListRateLimitsOK) GetPayload() *models.ListRateLimitsResponse
- func (o *ListRateLimitsOK) IsClientError() bool
- func (o *ListRateLimitsOK) IsCode(code int) bool
- func (o *ListRateLimitsOK) IsRedirect() bool
- func (o *ListRateLimitsOK) IsServerError() bool
- func (o *ListRateLimitsOK) IsSuccess() bool
- func (o *ListRateLimitsOK) String() string
- type ListRateLimitsParams
- func NewListRateLimitsParams() *ListRateLimitsParams
- func NewListRateLimitsParamsWithContext(ctx context.Context) *ListRateLimitsParams
- func NewListRateLimitsParamsWithHTTPClient(client *http.Client) *ListRateLimitsParams
- func NewListRateLimitsParamsWithTimeout(timeout time.Duration) *ListRateLimitsParams
- func (o *ListRateLimitsParams) SetContext(ctx context.Context)
- func (o *ListRateLimitsParams) SetDefaults()
- func (o *ListRateLimitsParams) SetHTTPClient(client *http.Client)
- func (o *ListRateLimitsParams) SetTid(tid string)
- func (o *ListRateLimitsParams) SetTimeout(timeout time.Duration)
- func (o *ListRateLimitsParams) WithContext(ctx context.Context) *ListRateLimitsParams
- func (o *ListRateLimitsParams) WithDefaults() *ListRateLimitsParams
- func (o *ListRateLimitsParams) WithHTTPClient(client *http.Client) *ListRateLimitsParams
- func (o *ListRateLimitsParams) WithTid(tid string) *ListRateLimitsParams
- func (o *ListRateLimitsParams) WithTimeout(timeout time.Duration) *ListRateLimitsParams
- func (o *ListRateLimitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRateLimitsReader
- type ListRateLimitsTooManyRequests
- func (o *ListRateLimitsTooManyRequests) Code() int
- func (o *ListRateLimitsTooManyRequests) Error() string
- func (o *ListRateLimitsTooManyRequests) GetPayload() *models.Error
- func (o *ListRateLimitsTooManyRequests) IsClientError() bool
- func (o *ListRateLimitsTooManyRequests) IsCode(code int) bool
- func (o *ListRateLimitsTooManyRequests) IsRedirect() bool
- func (o *ListRateLimitsTooManyRequests) IsServerError() bool
- func (o *ListRateLimitsTooManyRequests) IsSuccess() bool
- func (o *ListRateLimitsTooManyRequests) String() string
- type ListRateLimitsUnauthorized
- func (o *ListRateLimitsUnauthorized) Code() int
- func (o *ListRateLimitsUnauthorized) Error() string
- func (o *ListRateLimitsUnauthorized) GetPayload() *models.Error
- func (o *ListRateLimitsUnauthorized) IsClientError() bool
- func (o *ListRateLimitsUnauthorized) IsCode(code int) bool
- func (o *ListRateLimitsUnauthorized) IsRedirect() bool
- func (o *ListRateLimitsUnauthorized) IsServerError() bool
- func (o *ListRateLimitsUnauthorized) IsSuccess() bool
- func (o *ListRateLimitsUnauthorized) String() string
- type SetRateLimitForbidden
- func (o *SetRateLimitForbidden) Code() int
- func (o *SetRateLimitForbidden) Error() string
- func (o *SetRateLimitForbidden) GetPayload() *models.Error
- func (o *SetRateLimitForbidden) IsClientError() bool
- func (o *SetRateLimitForbidden) IsCode(code int) bool
- func (o *SetRateLimitForbidden) IsRedirect() bool
- func (o *SetRateLimitForbidden) IsServerError() bool
- func (o *SetRateLimitForbidden) IsSuccess() bool
- func (o *SetRateLimitForbidden) String() string
- type SetRateLimitNoContent
- func (o *SetRateLimitNoContent) Code() int
- func (o *SetRateLimitNoContent) Error() string
- func (o *SetRateLimitNoContent) IsClientError() bool
- func (o *SetRateLimitNoContent) IsCode(code int) bool
- func (o *SetRateLimitNoContent) IsRedirect() bool
- func (o *SetRateLimitNoContent) IsServerError() bool
- func (o *SetRateLimitNoContent) IsSuccess() bool
- func (o *SetRateLimitNoContent) String() string
- type SetRateLimitNotFound
- func (o *SetRateLimitNotFound) Code() int
- func (o *SetRateLimitNotFound) Error() string
- func (o *SetRateLimitNotFound) GetPayload() *models.Error
- func (o *SetRateLimitNotFound) IsClientError() bool
- func (o *SetRateLimitNotFound) IsCode(code int) bool
- func (o *SetRateLimitNotFound) IsRedirect() bool
- func (o *SetRateLimitNotFound) IsServerError() bool
- func (o *SetRateLimitNotFound) IsSuccess() bool
- func (o *SetRateLimitNotFound) String() string
- type SetRateLimitParams
- func (o *SetRateLimitParams) SetContext(ctx context.Context)
- func (o *SetRateLimitParams) SetCustomRateLimit(customRateLimit *models.SetRateLimitRequest)
- func (o *SetRateLimitParams) SetDefaults()
- func (o *SetRateLimitParams) SetHTTPClient(client *http.Client)
- func (o *SetRateLimitParams) SetModule(module string)
- func (o *SetRateLimitParams) SetTid(tid string)
- func (o *SetRateLimitParams) SetTimeout(timeout time.Duration)
- func (o *SetRateLimitParams) WithContext(ctx context.Context) *SetRateLimitParams
- func (o *SetRateLimitParams) WithCustomRateLimit(customRateLimit *models.SetRateLimitRequest) *SetRateLimitParams
- func (o *SetRateLimitParams) WithDefaults() *SetRateLimitParams
- func (o *SetRateLimitParams) WithHTTPClient(client *http.Client) *SetRateLimitParams
- func (o *SetRateLimitParams) WithModule(module string) *SetRateLimitParams
- func (o *SetRateLimitParams) WithTid(tid string) *SetRateLimitParams
- func (o *SetRateLimitParams) WithTimeout(timeout time.Duration) *SetRateLimitParams
- func (o *SetRateLimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetRateLimitReader
- type SetRateLimitTooManyRequests
- func (o *SetRateLimitTooManyRequests) Code() int
- func (o *SetRateLimitTooManyRequests) Error() string
- func (o *SetRateLimitTooManyRequests) GetPayload() *models.Error
- func (o *SetRateLimitTooManyRequests) IsClientError() bool
- func (o *SetRateLimitTooManyRequests) IsCode(code int) bool
- func (o *SetRateLimitTooManyRequests) IsRedirect() bool
- func (o *SetRateLimitTooManyRequests) IsServerError() bool
- func (o *SetRateLimitTooManyRequests) IsSuccess() bool
- func (o *SetRateLimitTooManyRequests) String() string
- type SetRateLimitUnauthorized
- func (o *SetRateLimitUnauthorized) Code() int
- func (o *SetRateLimitUnauthorized) Error() string
- func (o *SetRateLimitUnauthorized) GetPayload() *models.Error
- func (o *SetRateLimitUnauthorized) IsClientError() bool
- func (o *SetRateLimitUnauthorized) IsCode(code int) bool
- func (o *SetRateLimitUnauthorized) IsRedirect() bool
- func (o *SetRateLimitUnauthorized) IsServerError() bool
- func (o *SetRateLimitUnauthorized) IsSuccess() bool
- func (o *SetRateLimitUnauthorized) String() string
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 may be used to customize the behavior of 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.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new limits 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 limits 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 DeleteRateLimitForbidden ¶
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 ¶
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 ¶
func (o *DeleteRateLimitParams) WithContext(ctx context.Context) *DeleteRateLimitParams
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 ¶
func (o *DeleteRateLimitParams) WithTid(tid string) *DeleteRateLimitParams
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 ¶
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 ¶
func (o *DeleteRateLimitTooManyRequests) Code() int
Code gets the status code for the delete rate limit too many requests response
func (*DeleteRateLimitTooManyRequests) Error ¶
func (o *DeleteRateLimitTooManyRequests) Error() string
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 ¶
func (o *DeleteRateLimitTooManyRequests) String() string
type DeleteRateLimitUnauthorized ¶
type DeleteRateLimitUnauthorized struct {
}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 (o *DeleteRateLimitUnauthorized) Error() string
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 ¶
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 ¶
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 (o *ListRateLimitsOK) GetPayload() *models.ListRateLimitsResponse
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 ¶
func (o *ListRateLimitsParams) WithContext(ctx context.Context) *ListRateLimitsParams
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 ¶
func (o *ListRateLimitsParams) WithTid(tid string) *ListRateLimitsParams
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 ¶
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 ¶
func (o *ListRateLimitsTooManyRequests) Code() int
Code gets the status code for the list rate limits too many requests response
func (*ListRateLimitsTooManyRequests) Error ¶
func (o *ListRateLimitsTooManyRequests) Error() string
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 ¶
func (o *ListRateLimitsTooManyRequests) String() string
type ListRateLimitsUnauthorized ¶
type ListRateLimitsUnauthorized struct {
}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 (o *ListRateLimitsUnauthorized) Error() string
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 ¶
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 ¶
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 ¶
func (o *SetRateLimitParams) WithContext(ctx context.Context) *SetRateLimitParams
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 ¶
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 (o *SetRateLimitTooManyRequests) Error() string
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 {
}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