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."],[[["The latest version of the `QuotaController.QuotaControllerBase` class is 2.4.0, with multiple previous versions available for reference, ranging back to version 1.0.0."],["`QuotaController.QuotaControllerBase` is a base class for server-side implementations of `QuotaController` in the Service Control v1 API, inheriting from the .NET `Object` class."],["The `AllocateQuota` method within `QuotaController.QuotaControllerBase` attempts to allocate quota for a consumer, requiring the `servicemanagement.services.quota` permission and advising client fail-open behavior on certain server errors."],["The `AllocateQuota` method takes an `AllocateQuotaRequest` and `ServerCallContext` as parameters, and returns an `AllocateQuotaResponse` wrapped in a `Task`."],["The namespace this class is a part of is `Google.Cloud.ServiceControl.V1` inside the `Google.Cloud.ServiceControl.V1.dll` assembly."]]],[]]