private DeleteBucketInventoryConfigurationCommand(IServiceClient client, Uri endpoint, ExecutionContext context,
                                                   DeleteBucketInventoryConfigurationRequest request)
     : base(client, endpoint, context)
 {
     OssUtils.CheckBucketName(request.BucketName);
     _request = request;
 }
        private static void DeleteInventoryAndValidate()
        {
            DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest = new DeleteBucketInventoryConfigurationRequest()
            {
                BucketName  = bucketName,
                InventoryId = "configId"
            };

            var deleteBucketInventoryConfigurationResponse = Client.DeleteBucketInventoryConfiguration(deleteBucketInventoryConfigurationRequest);

            var response = Client.ListObjects(new ListObjectsRequest()
            {
                BucketName = bucketName
            });

            var successFlag = true;

            if (response.S3Objects.Count > 0)
            {
                successFlag = false;
            }

            Assert.IsTrue(successFlag);
        }
Exemplo n.º 3
0
 public Task <DeleteBucketInventoryConfigurationResponse> DeleteBucketInventoryConfigurationAsync(DeleteBucketInventoryConfigurationRequest request, CancellationToken cancellationToken = default)
 {
     throw new NotImplementedException();
 }
 public static DeleteBucketInventoryConfigurationCommand Create(IServiceClient client, Uri endpoint,
                                                                ExecutionContext context,
                                                                DeleteBucketInventoryConfigurationRequest request)
 {
     return(new DeleteBucketInventoryConfigurationCommand(client, endpoint, context, request));
 }
Exemplo n.º 5
0
 public void DeleteBucketInventoryConfigurationAsync(DeleteBucketInventoryConfigurationRequest request, AmazonServiceCallback <DeleteBucketInventoryConfigurationRequest, DeleteBucketInventoryConfigurationResponse> callback, AsyncOptions options = null)
 {
     throw new System.NotImplementedException();
 }