public virtual Task<AllocateQuotaResponse> AllocateQuota(AllocateQuotaRequest request, ServerCallContext context)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `QuotaControllerBase` class within the `Google.Cloud.ServiceControl.V1` namespace, which serves as the base for server-side implementations of the `QuotaController`."],["The class includes a method called `AllocateQuota`, which is used to attempt to allocate quota for a specified consumer prior to an operation's execution and requires the `servicemanagement.services.quota` permission."],["The `AllocateQuota` method accepts an `AllocateQuotaRequest` and a `ServerCallContext`, returning an `AllocateQuotaResponse` wrapped in a task."],["The page provides a list of available versions for the `QuotaControllerBase` class, with version 2.4.0 being the latest."],["The webpage specifies that the server may return `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE` errors, and the client should fail open if encountering these errors."]]],[]]