private BucketsResource.DeleteRequest CreateDeleteBucketRequest(string bucket, DeleteBucketOptions options) { var request = Service.Buckets.Delete(bucket); options?.ModifyRequest(request); return(request); }
private BucketsResource.DeleteRequest CreateDeleteBucketRequest(Bucket bucket, DeleteBucketOptions options) { ValidateBucket(bucket, nameof(bucket)); var request = Service.Buckets.Delete(bucket.Name); options?.ModifyRequest(request); return(request); }
private BucketsResource.DeleteRequest CreateDeleteBucketRequest(string bucket, DeleteBucketOptions options) { ValidateBucketName(bucket); var request = Service.Buckets.Delete(bucket); request.ModifyRequest += _versionHeaderAction; options?.ModifyRequest(request); return(request); }