ListParts.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Xml.Serialization;
  5. namespace COSXML.Model.Tag
  6. {
  7. [XmlRoot("ListPartsResult")]
  8. public sealed class ListParts
  9. {
  10. /// <summary>
  11. /// 分块上传的目标 Bucket
  12. /// </summary>
  13. [XmlElement("Bucket")]
  14. public string bucket;
  15. /// <summary>
  16. /// 规定返回值的编码方式
  17. /// </summary>
  18. [XmlElement("Encoding-type")]
  19. public string encodingType;
  20. /// <summary>
  21. /// Object 的名称
  22. /// </summary>
  23. [XmlElement("Key")]
  24. public string key;
  25. /// <summary>
  26. /// 本次分块上传的 uploadID
  27. /// </summary>
  28. [XmlElement("UploadId")]
  29. public string uploadId;
  30. /// <summary>
  31. /// 表示这些分块所有者的信息
  32. /// </summary>
  33. [XmlElement("Owner")]
  34. public Owner owner;
  35. /// <summary>
  36. /// 默认以 UTF-8 二进制顺序列出条目,所有列出条目从 marker 开始
  37. /// </summary>
  38. [XmlElement("PartNumberMarker")]
  39. public string partNumberMarker;
  40. /// <summary>
  41. /// 表示本次上传发起者的信息
  42. /// <see href="Initiator"/>
  43. /// </summary>
  44. [XmlElement("Initiator")]
  45. public Initiator initiator;
  46. /// <summary>
  47. /// 表示这些分块的存储级别
  48. /// </summary>
  49. [XmlElement("StorageClass")]
  50. public string storageClass;
  51. /// <summary>
  52. /// 假如返回条目被截断,则返回 nextPartNumberMarker 就是下一个条目的起点
  53. /// </summary>
  54. [XmlElement("NextPartNumberMarker")]
  55. public string nextPartNumberMarker;
  56. /// <summary>
  57. /// 单次返回最大的条目数量
  58. /// </summary>
  59. [XmlElement("MaxParts")]
  60. public string maxParts;
  61. /// <summary>
  62. /// 返回条目是否被截断,布尔值:TRUE,FALSE
  63. /// </summary>
  64. [XmlElement("IsTruncated")]
  65. public bool isTruncated;
  66. /// <summary>
  67. /// 表示每一个块的信息
  68. /// <see href="Part"/>
  69. /// </summary>
  70. [XmlElement("Part")]
  71. public List<Part> parts;
  72. public sealed class Owner
  73. {
  74. [XmlElement("ID")]
  75. public string id;
  76. [XmlElement("DisplayName")]
  77. public string disPlayName;
  78. }
  79. public sealed class Initiator
  80. {
  81. /// <summary>
  82. /// 创建者的一个唯一标识
  83. /// </summary>
  84. [XmlElement("ID")]
  85. public string id;
  86. /// <summary>
  87. /// 创建者的用户名描述
  88. /// </summary>
  89. [XmlElement("DisplayName")]
  90. public string disPlayName;
  91. }
  92. public sealed class Part
  93. {
  94. /// <summary>
  95. /// 块的编号
  96. /// </summary>
  97. [XmlElement("PartNumber")]
  98. public string partNumber;
  99. /// <summary>
  100. /// 块最后修改时间
  101. /// </summary>
  102. [XmlElement("LastModified")]
  103. public string lastModified;
  104. /// <summary>
  105. /// Object 块的 MD5 算法校验值
  106. /// </summary>
  107. [XmlElement("ETag")]
  108. public string eTag;
  109. /// <summary>
  110. /// 块大小,单位 Byte
  111. /// </summary>
  112. [XmlElement("Size")]
  113. public string size;
  114. }
  115. }
  116. }