DeleteBucketInventoryRequest.cs 604 B

123456789101112131415161718192021222324252627
  1. using COSXML.Common;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace COSXML.Model.Bucket
  6. {
  7. public sealed class DeleteBucketInventoryRequest : BucketRequest
  8. {
  9. public DeleteBucketInventoryRequest(string bucket) : base(bucket)
  10. {
  11. this.method = CosRequestMethod.DELETE;
  12. this.queryParameters.Add("inventory", null);
  13. }
  14. public void SetInventoryId(string inventoryId)
  15. {
  16. if (inventoryId != null)
  17. {
  18. SetQueryParameter("id", inventoryId);
  19. }
  20. }
  21. }
  22. }