DeleteBucketCORSRequest.cs 530 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 CORS
  9. /// <see href="https://cloud.tencent.com/document/product/436/8283"/>
  10. /// </summary>
  11. public sealed class DeleteBucketCORSRequest : BucketRequest
  12. {
  13. public DeleteBucketCORSRequest(string bucket) : base(bucket)
  14. {
  15. this.method = CosRequestMethod.DELETE;
  16. this.queryParameters.Add("cors", null);
  17. }
  18. }
  19. }