/// <summary>Snippet for MutateAccountLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateAccountLink() { // Create client AccountLinkServiceClient accountLinkServiceClient = AccountLinkServiceClient.Create(); // Initialize request argument(s) string customerId = ""; AccountLinkOperation operation = new AccountLinkOperation(); // Make the request MutateAccountLinkResponse response = accountLinkServiceClient.MutateAccountLink(customerId, operation); }
/// <summary>Snippet for MutateAccountLinkAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task MutateAccountLinkAsync() { // Create client AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; AccountLinkOperation operation = new AccountLinkOperation(); // Make the request MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(customerId, operation); }
/// <summary>Snippet for MutateAccountLinkAsync</summary> public async Task MutateAccountLinkAsync() { // Snippet: MutateAccountLinkAsync(string, AccountLinkOperation, CallSettings) // Additional: MutateAccountLinkAsync(string, AccountLinkOperation, CancellationToken) // Create client AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; AccountLinkOperation operation = new AccountLinkOperation(); // Make the request MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(customerId, operation); // End snippet }
/// <summary> /// Creates or removes an account link. /// From V5, create is not supported through /// AccountLinkService.MutateAccountLink. Please use /// AccountLinkService.CreateAccountLink instead. /// /// List of thrown errors: /// [AccountLinkError]() /// [AuthenticationError]() /// [AuthorizationError]() /// [FieldMaskError]() /// [HeaderError]() /// [InternalError]() /// [MutateError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="customerId"> /// Required. The ID of the customer being modified. /// </param> /// <param name="operation"> /// Required. The operation to perform on the link. /// </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 <MutateAccountLinkResponse> MutateAccountLinkAsync(string customerId, AccountLinkOperation operation, st::CancellationToken cancellationToken) => MutateAccountLinkAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Creates or removes an account link. /// From V5, create is not supported through /// AccountLinkService.MutateAccountLink. Please use /// AccountLinkService.CreateAccountLink instead. /// /// List of thrown errors: /// [AccountLinkError]() /// [AuthenticationError]() /// [AuthorizationError]() /// [FieldMaskError]() /// [HeaderError]() /// [InternalError]() /// [MutateError]() /// [QuotaError]() /// [RequestError]() /// </summary> /// <param name="customerId"> /// Required. The ID of the customer being modified. /// </param> /// <param name="operation"> /// Required. The operation to perform on the link. /// </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 <MutateAccountLinkResponse> MutateAccountLinkAsync(string customerId, AccountLinkOperation operation, gaxgrpc::CallSettings callSettings = null) => MutateAccountLinkAsync(new MutateAccountLinkRequest { CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), }, callSettings);