using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace COSXML.Model.Tag
{
[XmlRoot("ListPartsResult")]
public sealed class ListParts
{
///
/// 分块上传的目标 Bucket
///
[XmlElement("Bucket")]
public string bucket;
///
/// 规定返回值的编码方式
///
[XmlElement("Encoding-type")]
public string encodingType;
///
/// Object 的名称
///
[XmlElement("Key")]
public string key;
///
/// 本次分块上传的 uploadID
///
[XmlElement("UploadId")]
public string uploadId;
///
/// 表示这些分块所有者的信息
///
[XmlElement("Owner")]
public Owner owner;
///
/// 默认以 UTF-8 二进制顺序列出条目,所有列出条目从 marker 开始
///
[XmlElement("PartNumberMarker")]
public string partNumberMarker;
///
/// 表示本次上传发起者的信息
///
///
[XmlElement("Initiator")]
public Initiator initiator;
///
/// 表示这些分块的存储级别
///
[XmlElement("StorageClass")]
public string storageClass;
///
/// 假如返回条目被截断,则返回 nextPartNumberMarker 就是下一个条目的起点
///
[XmlElement("NextPartNumberMarker")]
public string nextPartNumberMarker;
///
/// 单次返回最大的条目数量
///
[XmlElement("MaxParts")]
public string maxParts;
///
/// 返回条目是否被截断,布尔值:TRUE,FALSE
///
[XmlElement("IsTruncated")]
public bool isTruncated;
///
/// 表示每一个块的信息
///
///
[XmlElement("Part")]
public List parts;
public sealed class Owner
{
[XmlElement("ID")]
public string id;
[XmlElement("DisplayName")]
public string disPlayName;
}
public sealed class Initiator
{
///
/// 创建者的一个唯一标识
///
[XmlElement("ID")]
public string id;
///
/// 创建者的用户名描述
///
[XmlElement("DisplayName")]
public string disPlayName;
}
public sealed class Part
{
///
/// 块的编号
///
[XmlElement("PartNumber")]
public string partNumber;
///
/// 块最后修改时间
///
[XmlElement("LastModified")]
public string lastModified;
///
/// Object 块的 MD5 算法校验值
///
[XmlElement("ETag")]
public string eTag;
///
/// 块大小,单位 Byte
///
[XmlElement("Size")]
public string size;
}
}
}