示例#1
0
 /// <summary>
 /// Creates a billing setup, or cancels an existing billing setup.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [BillingSetupError]()
 /// [DateError]()
 /// [FieldError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [MutateError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="customerId">
 /// Required. Id of the customer to apply the billing setup mutate operation to.
 /// </param>
 /// <param name="operation">
 /// Required. The operation to perform.
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <MutateBillingSetupResponse> MutateBillingSetupAsync(string customerId, BillingSetupOperation operation, st::CancellationToken cancellationToken) =>
 MutateBillingSetupAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
示例#2
0
 /// <summary>
 /// Creates a billing setup, or cancels an existing billing setup.
 ///
 /// List of thrown errors:
 /// [AuthenticationError]()
 /// [AuthorizationError]()
 /// [BillingSetupError]()
 /// [DateError]()
 /// [FieldError]()
 /// [HeaderError]()
 /// [InternalError]()
 /// [MutateError]()
 /// [QuotaError]()
 /// [RequestError]()
 /// </summary>
 /// <param name="customerId">
 /// Required. Id of the customer to apply the billing setup mutate operation to.
 /// </param>
 /// <param name="operation">
 /// Required. The operation to perform.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <MutateBillingSetupResponse> MutateBillingSetupAsync(string customerId, BillingSetupOperation operation, gaxgrpc::CallSettings callSettings = null) =>
 MutateBillingSetupAsync(new MutateBillingSetupRequest
 {
     CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)),
     Operation  = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)),
 }, callSettings);