RestoreConfigure.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Text;
  4. using COSXML.Common;
  5. using COSXML.Utils;
  6. namespace COSXML.Model.Tag
  7. {
  8. [XmlRoot("RestoreRequest")]
  9. public sealed class RestoreConfigure
  10. {
  11. /// <summary>
  12. /// 设置临时副本的过期时间
  13. /// </summary>
  14. [XmlElement("Days")]
  15. public int days;
  16. /// <summary>
  17. /// 归档存储工作参数配置
  18. /// <see href="CASJobParameters"/>
  19. /// </summary>
  20. [XmlElement("CASJobParameters")]
  21. public CASJobParameters casJobParameters;
  22. public sealed class CASJobParameters
  23. {
  24. /// <summary>
  25. /// 恢复数据时,Tier 可以指定为 CAS 支持的三种恢复类型,分别为 Expedited、Standard、Bulk
  26. /// <see href="Tier"/>
  27. /// </summary>
  28. [XmlElement("Tier")]
  29. public Tier tier = Tier.Standard;
  30. }
  31. public enum Tier
  32. {
  33. [CosValue("Expedited")]
  34. Expedited = 0,
  35. [CosValue("Standard")]
  36. Standard,
  37. [CosValue("Bulk")]
  38. Bulk
  39. }
  40. }
  41. }