예제 #1
0
        public Task <PutBucketLockConfigurationResponse> PutBucketLockConfigurationAsync(string bucketName, bool enabled, Action <PutBucketLockConfigurationRequest>?config = null, CancellationToken token = default)
        {
            PutBucketLockConfigurationRequest request = new PutBucketLockConfigurationRequest(bucketName, enabled);

            config?.Invoke(request);

            return(BucketOperations.PutBucketLockConfigurationAsync(request, token));
        }
예제 #2
0
 public Task <PutBucketLockConfigurationResponse> PutBucketLockConfigurationAsync(PutBucketLockConfigurationRequest request, CancellationToken token = default)
 {
     return(_requestHandler.SendRequestAsync <PutBucketLockConfigurationRequest, PutBucketLockConfigurationResponse>(request, token));
 }