models

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

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

type SnapshotSpec struct {

	/* 快照名称  */
	Name string `json:"name"`

	/* 快照描述 (Optional) */
	Description *string `json:"description"`

	/* 用于创建快照的云盘ID  */
	DiskId string `json:"diskId"`
}

type Tag added in v1.0.4

type Tag struct {

	/* Tag键 (Optional) */
	Key string `json:"key"`

	/* Tag值 (Optional) */
	Value string `json:"value"`
}

type TagFilter added in v1.0.4

type TagFilter struct {

	/* Tag键  */
	Key string `json:"key"`

	/* Tag值  */
	Values []string `json:"values"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL