models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 17 modules, 53 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 `json:"charge"`
}

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 *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"`
}

Jump to

Keyboard shortcuts

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