DeleteBucketPolicyRequest.cs 555 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using COSXML.Common;
  5. namespace COSXML.Model.Bucket
  6. {
  7. /// <summary>
  8. /// 删除 Bucket 权限策略
  9. /// <see href="https://cloud.tencent.com/document/product/436/8285"/>
  10. /// </summary>
  11. public sealed class DeleteBucketPolicyRequest : BucketRequest
  12. {
  13. public DeleteBucketPolicyRequest(string bucket)
  14. : base(bucket)
  15. {
  16. this.method = CosRequestMethod.DELETE;
  17. this.queryParameters.Add("policy", null);
  18. }
  19. }
  20. }