SetBucketCorsRequestModel.cs 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) Alibaba Cloud Computing
  3. * All rights reserved.
  4. *
  5. * 版权所有 (C)阿里云计算有限公司
  6. */
  7. using System;
  8. using System.Xml.Serialization;
  9. namespace Aliyun.OSS.Model
  10. {
  11. [XmlRoot("CORSConfiguration")]
  12. public class SetBucketCorsRequestModel
  13. {
  14. [XmlElement("CORSRule")]
  15. public CORSRuleModel[] CORSRuleModels { get; set; }
  16. [XmlRoot("CORSRule")]
  17. public class CORSRuleModel
  18. {
  19. [XmlElement("AllowedOrigin")]
  20. public String[] AllowedOrigins { get; set; }
  21. [XmlElement("AllowedMethod")]
  22. public String[] AllowedMethods { get; set; }
  23. [XmlElement("AllowedHeader")]
  24. public String[] AllowedHeaders { get; set; }
  25. [XmlElement("ExposeHeader")]
  26. public String[] ExposeHeaders { get; set; }
  27. [XmlElement("MaxAgeSeconds")]
  28. public Int32 MaxAgeSeconds { get; set; }
  29. }
  30. }
  31. }