GetBucketInventoryRequest.cs 593 B

12345678910111213141516171819202122232425
  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 GetBucketInventoryRequest : BucketRequest
  8. {
  9. public GetBucketInventoryRequest(string bucket) : base(bucket)
  10. {
  11. this.method = CosRequestMethod.GET;
  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. }