private BucketsResource.DeleteRequest CreateDeleteBucketRequest(string bucket, DeleteBucketOptions options) { ValidateBucketName(bucket); var request = Service.Buckets.Delete(bucket); options?.ModifyRequest(request); return(request); }
/// <summary> /// Deletes a bucket synchronously. /// </summary> /// <param name="bucket">The name of the bucket to delete. Must not be null.</param> /// <param name="options">Additional options for the operation. May be null, in which case appropriate /// defaults will be used.</param> public virtual void DeleteBucket(string bucket, DeleteBucketOptions options = null) { throw new NotImplementedException(); }
/// <inheritdoc /> public override Task DeleteBucketAsync( Bucket bucket, DeleteBucketOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) => CreateDeleteBucketRequest(bucket, options).ExecuteAsync(cancellationToken);
private BucketsResource.DeleteRequest CreateDeleteBucketRequest(Bucket bucket, DeleteBucketOptions options) { ValidateBucket(bucket, nameof(bucket)); var request = Service.Buckets.Delete(bucket.Name); options?.ModifyRequest(request); return(request); }
/// <inheritdoc /> public override void DeleteBucket(Bucket bucket, DeleteBucketOptions options = null) => CreateDeleteBucketRequest(bucket, options).Execute();
/// <inheritdoc /> public override Task DeleteBucketAsync( Bucket bucket, DeleteBucketOptions options = null, CancellationToken cancellationToken = default) => DeleteBucketAsyncImpl(ValidateBucket(bucket, nameof(bucket)), options, cancellationToken);
/// <inheritdoc /> public override void DeleteBucket(Bucket bucket, DeleteBucketOptions options = null) => DeleteBucketImpl(ValidateBucket(bucket, nameof(bucket)), options);
/// <inheritdoc /> public override Task DeleteBucketAsync( string bucket, DeleteBucketOptions options = null, CancellationToken cancellationToken = default) => DeleteBucketAsyncImpl(ValidateBucketName(bucket), options, cancellationToken);
/// <inheritdoc /> public override void DeleteBucket(string bucket, DeleteBucketOptions options = null) => DeleteBucketImpl(ValidateBucketName(bucket), options);