Interface RateLimitServiceAsync
-
- All Implemented Interfaces:
public interface RateLimitServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRateLimitServiceAsync.WithRawResponseA view of RateLimitServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract RateLimitServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract RateLimitServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
update
CompletableFuture<WorkspaceRateLimit> update(String rateLimitId, RateLimitUpdateParams params)
Set or clear rate-limit overrides for one rate-limit group in a workspace.
Only the limiter types named in
limitschange: an integervaluesets that type's override andnullclears it. Types not named keep their current value. A value above the organization's own limit is stored, but the organization limit still applies, so the lower of the two is enforced.Returns the targeted group's entry with this request applied, in the shape
GET /v1/organizations/workspaces/{workspace_id}/rate_limitsreturns. Changes take effect within about an hour.
-
update
CompletableFuture<WorkspaceRateLimit> update(String rateLimitId, RateLimitUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<WorkspaceRateLimit> update(RateLimitUpdateParams params)
-
update
abstract CompletableFuture<WorkspaceRateLimit> update(RateLimitUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RateLimitListPageAsync> list(String workspaceId)
List a workspace's rate limits.
By default, returns only the groups and limiter types that have a workspace-level override. With
include_inherited=true, returns every group with organization-level limits the workspace can see, listing for each the values it inherits from the organization as well as its own overrides. Each value'ssourcesays which it is.When
limitis omitted, every matching entry is returned in a single page; whenlimittruncates the result, follownext_pageto fetch the remaining entries.
-
list
CompletableFuture<RateLimitListPageAsync> list(String workspaceId, RateLimitListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RateLimitListPageAsync> list(String workspaceId, RateLimitListParams params)
-
list
abstract CompletableFuture<RateLimitListPageAsync> list(RateLimitListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RateLimitListPageAsync> list(RateLimitListParams params)
-
list
CompletableFuture<RateLimitListPageAsync> list(String workspaceId, RequestOptions requestOptions)
-
-
-
-