allocateQuota method

ResponseFuture<AllocateQuotaResponse> allocateQuota(
  1. AllocateQuotaRequest request, {
  2. CallOptions? options,
})

Attempts to allocate quota for the specified consumer. It should be called before the operation is executed.

This method requires the servicemanagement.services.quota permission on the specified service. For more information, see Cloud IAM.

NOTE: The client must fail-open on server errors INTERNAL, UNKNOWN, DEADLINE_EXCEEDED, and UNAVAILABLE. To ensure system reliability, the server may inject these errors to prohibit any hard dependency on the quota functionality.

Implementation

$grpc.ResponseFuture<$0.AllocateQuotaResponse> allocateQuota(
  $0.AllocateQuotaRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$allocateQuota, request, options: options);
}