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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eQuotaController.QuotaControllerBase\u003c/code\u003e class is 2.4.0, with previous versions ranging from 2.3.0 down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQuotaController.QuotaControllerBase\u003c/code\u003e is a base class for server-side implementations of \u003ccode\u003eQuotaController\u003c/code\u003e in the Service Control v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe primary function of \u003ccode\u003eQuotaController.QuotaControllerBase\u003c/code\u003e is to attempt to allocate quota via the \u003ccode\u003eAllocateQuota\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocateQuota\u003c/code\u003e method takes an \u003ccode\u003eAllocateQuotaRequest\u003c/code\u003e and a \u003ccode\u003eServerCallContext\u003c/code\u003e as parameters, and it returns an \u003ccode\u003eAllocateQuotaResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocateQuota\u003c/code\u003e method needs \u003ccode\u003eservicemanagement.services.quota\u003c/code\u003e permission on the specified service.\u003c/p\u003e\n"]]],[],null,[]]