示例#1
0
 /// <summary>
 /// Creates a billing setup, or cancels an existing billing setup.
 /// </summary>
 /// <param name="customerId">
 /// Id of the customer to apply the billing setup mutate operation to.
 /// </param>
 /// <param name="operation">
 /// 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.
 /// </summary>
 /// <param name="customerId">
 /// Id of the customer to apply the billing setup mutate operation to.
 /// </param>
 /// <param name="operation">
 /// The operation to perform.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// The RPC response.
 /// </returns>
 public virtual MutateBillingSetupResponse MutateBillingSetup(
     string customerId,
     BillingSetupOperation operation,
     gaxgrpc::CallSettings callSettings = null) => MutateBillingSetup(
     new MutateBillingSetupRequest
 {
     CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)),
     Operation  = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)),
 },
     callSettings);