示例#1
0
        private BucketsResource.DeleteRequest CreateDeleteBucketRequest(string bucket, DeleteBucketOptions options)
        {
            var request = Service.Buckets.Delete(bucket);

            options?.ModifyRequest(request);
            return(request);
        }
示例#2
0
        private BucketsResource.DeleteRequest CreateDeleteBucketRequest(Bucket bucket, DeleteBucketOptions options)
        {
            ValidateBucket(bucket, nameof(bucket));
            var request = Service.Buckets.Delete(bucket.Name);

            options?.ModifyRequest(request);
            return(request);
        }
示例#3
0
        private BucketsResource.DeleteRequest CreateDeleteBucketRequest(string bucket, DeleteBucketOptions options)
        {
            ValidateBucketName(bucket);
            var request = Service.Buckets.Delete(bucket);

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