Class ServicesResource.AllocateQuotaRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.ServiceControl.v1
Assembly: Google.Apis.ServiceControl.v1.dll
Syntax
public class ServicesResource.AllocateQuotaRequest : ServiceControlBaseServiceRequest<AllocateQuotaResponse>, IClientServiceRequest<AllocateQuotaResponse>, IClientServiceRequest
Constructors
AllocateQuotaRequest(IClientService, AllocateQuotaRequest, string)
Constructs a new AllocateQuota request.
Declaration
public AllocateQuotaRequest(IClientService service, AllocateQuotaRequest body, string serviceName)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AllocateQuotaRequest | body | |
| string | serviceName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
ServiceName
Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".
See google.api.Service for the definition of a service name.
Declaration
[RequestParameter("serviceName", RequestParameterType.Path)]
public virtual string ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes AllocateQuota parameter list.
Declaration
protected override void InitParameters()