Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
/* 云硬盘ID (Optional) */
DiskId string `json:"diskId"`
/* 云硬盘所属AZ (Optional) */
Az string `json:"az"`
/* 云硬盘名称 (Optional) */
Name string `json:"name"`
/* 云硬盘描述 (Optional) */
Description string `json:"description"`
/* 磁盘类型,取值为 ssd 或 premium-hdd (Optional) */
DiskType string `json:"diskType"`
/* 磁盘大小,单位为 GiB (Optional) */
DiskSizeGB int `json:"diskSizeGB"`
/* 云硬盘状态,取值为 creating、available、in-use、extending、restoring、deleting、deleted、error_create、error_delete、error_restore、error_extend 之一 (Optional) */
Status string `json:"status"`
/* 挂载信息 (Optional) */
Attachments []DiskAttachment `json:"attachments"`
/* 创建该云硬盘的快照ID (Optional) */
SnapshotId string `json:"snapshotId"`
/* 创建云硬盘时间 (Optional) */
CreateTime string `json:"createTime"`
/* 云硬盘计费配置信息 (Optional) */
Charge charge.Charge `json:"charge"`
/* Tag信息 (Optional) */
Tags []Tag `json:"tags"`
}
type DiskAttachment ¶
type DiskAttachment struct {
/* 挂载ID (Optional) */
AttachmentId string `json:"attachmentId"`
/* 云硬盘ID (Optional) */
DiskId string `json:"diskId"`
/* 挂载实例的类型,取值为 vm、nc (Optional) */
InstanceType string `json:"instanceType"`
/* 挂载实例的ID (Optional) */
InstanceId string `json:"instanceId"`
/* 挂载状态,取值为 "attaching", "attached", "detaching", "detached" (Optional) */
Status string `json:"status"`
/* 挂载时间 (Optional) */
AttachTime string `json:"attachTime"`
}
type DiskSpec ¶
type DiskSpec struct {
/* 云硬盘所属的可用区 */
Az string `json:"az"`
/* 云硬盘名称 */
Name string `json:"name"`
/* 云硬盘描述 (Optional) */
Description *string `json:"description"`
/* 云硬盘类型,取值为ssd、premium-hdd之一 */
DiskType string `json:"diskType"`
/* 云硬盘大小,单位为 GiB,ssd 类型取值范围[20,1000]GB,步长为10G,premium-hdd 类型取值范围[20,3000]GB,步长为10G */
DiskSizeGB int `json:"diskSizeGB"`
/* 用于创建云硬盘的快照ID (Optional) */
SnapshotId *string `json:"snapshotId"`
/* 计费配置;如不指定,默认计费类型是后付费-按使用时常付费 (Optional) */
Charge *charge.ChargeSpec `json:"charge"`
}
type Snapshot ¶
type Snapshot struct {
/* 云硬盘快照ID (Optional) */
SnapshotId string `json:"snapshotId"`
/* 创建快照的云硬盘ID (Optional) */
DiskId string `json:"diskId"`
/* 快照大小,单位为GiB (Optional) */
SnapshotSizeGB int `json:"snapshotSizeGB"`
/* 快照名称 (Optional) */
Name string `json:"name"`
/* 快照描述 (Optional) */
Description string `json:"description"`
/* 快照状态,取值为 creating、available、in-use、deleting、error_create、error_delete 之一 (Optional) */
Status string `json:"status"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type SnapshotSpec ¶
Click to show internal directories.
Click to hide internal directories.