Exemple #1
0
 /// <summary>
 /// 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](https://cloud.google.com/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.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
 /// <param name="cancellationToken">An optional token for canceling the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::Google.Cloud.ServiceControl.V1.AllocateQuotaResponse> AllocateQuotaAsync(global::Google.Cloud.ServiceControl.V1.AllocateQuotaRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
 {
     return(AllocateQuotaAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #2
0
 /// <summary>
 /// 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](https://cloud.google.com/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.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="options">The options for the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::Google.Cloud.ServiceControl.V1.AllocateQuotaResponse> AllocateQuotaAsync(global::Google.Cloud.ServiceControl.V1.AllocateQuotaRequest request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_AllocateQuota, null, options, request));
 }
Exemple #3
0
 /// <summary>
 /// 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](https://cloud.google.com/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.
 /// </summary>
 /// <param name="request">The request received from the client.</param>
 /// <param name="context">The context of the server-side call handler being invoked.</param>
 /// <returns>The response to send back to the client (wrapped by a task).</returns>
 public virtual global::System.Threading.Tasks.Task <global::Google.Cloud.ServiceControl.V1.AllocateQuotaResponse> AllocateQuota(global::Google.Cloud.ServiceControl.V1.AllocateQuotaRequest request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }