/// <summary>
 /// Asynchronously deletes a notification configuration.
 /// </summary>
 /// <param name="bucket">The bucket associated with the notification configuration. Must not be null.</param>
 /// <param name="notificationId">ID of the notification configuration to delete. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation.</returns>
 public virtual Task DeleteNotificationAsync(string bucket, string notificationId, DeleteNotificationOptions options = null, CancellationToken cancellationToken = default) => throw new NotImplementedException();
 /// <summary>
 /// Deletes a notification configuration.
 /// </summary>
 /// <param name="bucket">The bucket associated with the notification configuration. Must not be null.</param>
 /// <param name="notificationId">ID of the notification configuration to delete. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public virtual void DeleteNotification(string bucket, string notificationId, DeleteNotificationOptions options = null) => throw new NotImplementedException();
示例#3
0
 /// <inheritdoc />
 public override void DeleteNotification(string bucket, string notificationId, DeleteNotificationOptions options = null) =>
 CreateDeleteNotificationRequest(bucket, notificationId, options).Execute();
示例#4
0
 /// <inheritdoc />
 public override Task DeleteNotificationAsync(string bucket, string notificationId, DeleteNotificationOptions options = null, CancellationToken cancellationToken = default) =>
 CreateDeleteNotificationRequest(bucket, notificationId, options).ExecuteAsync(cancellationToken);
示例#5
0
        private NotificationsResource.DeleteRequest CreateDeleteNotificationRequest(string bucket, string notificationId, DeleteNotificationOptions options)
        {
            ValidateBucketName(bucket);
            GaxPreconditions.CheckNotNull(notificationId, nameof(notificationId));
            var request = Service.Notifications.Delete(bucket, notificationId);

            request.ModifyRequest += _versionHeaderAction;
            options?.ModifyRequest(request);
            return(request);
        }