Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<AllocateQuotaResponse>
ServiceControlBaseServiceRequest<AllocateQuotaResponse>
ServicesResource.AllocateQuotaRequest
Implements
IClientServiceRequest<AllocateQuotaResponse>
IClientServiceRequest
Inherited Members
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.Xgafv
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.AccessToken
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.Alt
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.Callback
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.Fields
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.Key
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.OauthToken
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.PrettyPrint
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.QuotaUser
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.UploadType
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.UploadProtocol
ClientServiceRequest<AllocateQuotaResponse>.Execute()
ClientServiceRequest<AllocateQuotaResponse>.ExecuteAsStream()
ClientServiceRequest<AllocateQuotaResponse>.ExecuteAsync()
ClientServiceRequest<AllocateQuotaResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<AllocateQuotaResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<AllocateQuotaResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<AllocateQuotaResponse>.CreateRequest(bool?)
ClientServiceRequest<AllocateQuotaResponse>.GenerateRequestUri()
ClientServiceRequest<AllocateQuotaResponse>.GetDefaultETagAction(string)
ClientServiceRequest<AllocateQuotaResponse>.ETagAction
ClientServiceRequest<AllocateQuotaResponse>.ModifyRequest
ClientServiceRequest<AllocateQuotaResponse>.ValidateParameters
ClientServiceRequest<AllocateQuotaResponse>.ApiVersion
ClientServiceRequest<AllocateQuotaResponse>.RequestParameters
ClientServiceRequest<AllocateQuotaResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<AllocateQuotaResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<AllocateQuotaResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<AllocateQuotaResponse>.RestPath

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
ClientServiceRequest<AllocateQuotaResponse>.GetBody()

InitParameters()

Initializes AllocateQuota parameter list.

Declaration
protected override void InitParameters()
Overrides
ServiceControlBaseServiceRequest<AllocateQuotaResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX