model

package
v0.0.13-beta Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	// 挂载的时间信息。  时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	AttachedAt string `json:"attached_at"`
	// 挂载信息对应的ID。
	AttachmentId string `json:"attachment_id"`
	// 挂载点。
	Device string `json:"device"`
	// 云硬盘挂载到的云服务器对应的物理主机的名称。
	HostName string `json:"host_name"`
	// 挂载的资源ID。
	Id string `json:"id"`
	// 云硬盘挂载到的云服务器的 ID。
	ServerId string `json:"server_id"`
	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

云硬盘挂载信息。

func (Attachment) String

func (o Attachment) String() string

type AzInfo

type AzInfo struct {
	// 可用分区的名字。
	ZoneName  string     `json:"zoneName"`
	ZoneState *ZoneState `json:"zoneState"`
}

一个az对象

func (AzInfo) String

func (o AzInfo) String() string

type BatchCreateVolumeTagsRequest

type BatchCreateVolumeTagsRequest struct {
	VolumeId string                            `json:"volume_id"`
	Body     *BatchCreateVolumeTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateVolumeTagsRequest) String

type BatchCreateVolumeTagsRequestBody

type BatchCreateVolumeTagsRequestBody struct {
	// 操作标识,当前支持的取值如下:  添加标签:create
	Action BatchCreateVolumeTagsRequestBodyAction `json:"action"`
	// 标签列表。
	Tags []Tag `json:"tags"`
}

This is a auto create Body Object

func (BatchCreateVolumeTagsRequestBody) String

type BatchCreateVolumeTagsRequestBodyAction

type BatchCreateVolumeTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchCreateVolumeTagsRequestBodyAction) MarshalJSON

func (c BatchCreateVolumeTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchCreateVolumeTagsRequestBodyAction) UnmarshalJSON

func (c *BatchCreateVolumeTagsRequestBodyAction) UnmarshalJSON(b []byte) error

type BatchCreateVolumeTagsRequestBodyActionEnum

type BatchCreateVolumeTagsRequestBodyActionEnum struct {
	CREATE BatchCreateVolumeTagsRequestBodyAction
}

func GetBatchCreateVolumeTagsRequestBodyActionEnum

func GetBatchCreateVolumeTagsRequestBodyActionEnum() BatchCreateVolumeTagsRequestBodyActionEnum

type BatchCreateVolumeTagsResponse

type BatchCreateVolumeTagsResponse struct {
}

Response Object

func (BatchCreateVolumeTagsResponse) String

type BatchDeleteVolumeTagsRequest

type BatchDeleteVolumeTagsRequest struct {
	VolumeId string                            `json:"volume_id"`
	Body     *BatchDeleteVolumeTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchDeleteVolumeTagsRequest) String

type BatchDeleteVolumeTagsRequestBody

type BatchDeleteVolumeTagsRequestBody struct {
	// 操作标识,当前支持的取值如下:  删除标签:delete
	Action BatchDeleteVolumeTagsRequestBodyAction `json:"action"`
	// 标签列表。
	Tags []DeleteTagsOption `json:"tags"`
}

This is a auto create Body Object

func (BatchDeleteVolumeTagsRequestBody) String

type BatchDeleteVolumeTagsRequestBodyAction

type BatchDeleteVolumeTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchDeleteVolumeTagsRequestBodyAction) MarshalJSON

func (c BatchDeleteVolumeTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchDeleteVolumeTagsRequestBodyAction) UnmarshalJSON

func (c *BatchDeleteVolumeTagsRequestBodyAction) UnmarshalJSON(b []byte) error

type BatchDeleteVolumeTagsRequestBodyActionEnum

type BatchDeleteVolumeTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteVolumeTagsRequestBodyAction
}

func GetBatchDeleteVolumeTagsRequestBodyActionEnum

func GetBatchDeleteVolumeTagsRequestBodyActionEnum() BatchDeleteVolumeTagsRequestBodyActionEnum

type BatchDeleteVolumeTagsResponse

type BatchDeleteVolumeTagsResponse struct {
}

Response Object

func (BatchDeleteVolumeTagsResponse) String

type BssParamForCreateVolume

type BssParamForCreateVolume struct {
	// 功能说明:计费模式。默认值为postPaid。 取值范围: * prePaid:包年包月 * postPaid:按需
	ChargingMode *BssParamForCreateVolumeChargingMode `json:"chargingMode,omitempty"`
	// 功能说明:是否立即支付。chargingMode为PrePaid时该参数会生效。默认值为false。 取值范围: * true:立即支付,从帐户余额中自动扣费 * false:不立即支付,创建订单暂不支付
	IsAutoPay *BssParamForCreateVolumeIsAutoPay `json:"isAutoPay,omitempty"`
	// 功能说明:是否自动续订。chargingMode为prePaid时该参数会生效。默认值为false。 取值范围: * true:自动续订,自动续订周期与订购周期相同 * false:不自动续订
	IsAutoRenew *BssParamForCreateVolumeIsAutoRenew `json:"isAutoRenew,omitempty"`
	// 功能说明:订购周期数,chargingMode为prePaid时该参数会生效,并且该参数为为必选。 取值范围: * periodType为month时,为[1-9] * periodType为year时,为[1-1]
	PeriodNum *int32 `json:"periodNum,omitempty"`
	// 功能说明:订购周期单位。chargingMode为prePaid时该参数会生效,并且该参数为必选。 取值范围: * month:月 * year:年
	PeriodType *BssParamForCreateVolumePeriodType `json:"periodType,omitempty"`
}

包周期创卷的计费策略参数。

func (BssParamForCreateVolume) String

func (o BssParamForCreateVolume) String() string

type BssParamForCreateVolumeChargingMode

type BssParamForCreateVolumeChargingMode struct {
	// contains filtered or unexported fields
}

func (BssParamForCreateVolumeChargingMode) MarshalJSON

func (c BssParamForCreateVolumeChargingMode) MarshalJSON() ([]byte, error)

func (*BssParamForCreateVolumeChargingMode) UnmarshalJSON

func (c *BssParamForCreateVolumeChargingMode) UnmarshalJSON(b []byte) error

type BssParamForCreateVolumeChargingModeEnum

type BssParamForCreateVolumeChargingModeEnum struct {
	POST_PAID BssParamForCreateVolumeChargingMode
	PRE_PAID  BssParamForCreateVolumeChargingMode
}

func GetBssParamForCreateVolumeChargingModeEnum

func GetBssParamForCreateVolumeChargingModeEnum() BssParamForCreateVolumeChargingModeEnum

type BssParamForCreateVolumeIsAutoPay

type BssParamForCreateVolumeIsAutoPay struct {
	// contains filtered or unexported fields
}

func (BssParamForCreateVolumeIsAutoPay) MarshalJSON

func (c BssParamForCreateVolumeIsAutoPay) MarshalJSON() ([]byte, error)

func (*BssParamForCreateVolumeIsAutoPay) UnmarshalJSON

func (c *BssParamForCreateVolumeIsAutoPay) UnmarshalJSON(b []byte) error

type BssParamForCreateVolumeIsAutoPayEnum

type BssParamForCreateVolumeIsAutoPayEnum struct {
	TRUE  BssParamForCreateVolumeIsAutoPay
	FALSE BssParamForCreateVolumeIsAutoPay
}

func GetBssParamForCreateVolumeIsAutoPayEnum

func GetBssParamForCreateVolumeIsAutoPayEnum() BssParamForCreateVolumeIsAutoPayEnum

type BssParamForCreateVolumeIsAutoRenew

type BssParamForCreateVolumeIsAutoRenew struct {
	// contains filtered or unexported fields
}

func (BssParamForCreateVolumeIsAutoRenew) MarshalJSON

func (c BssParamForCreateVolumeIsAutoRenew) MarshalJSON() ([]byte, error)

func (*BssParamForCreateVolumeIsAutoRenew) UnmarshalJSON

func (c *BssParamForCreateVolumeIsAutoRenew) UnmarshalJSON(b []byte) error

type BssParamForCreateVolumeIsAutoRenewEnum

type BssParamForCreateVolumeIsAutoRenewEnum struct {
	TRUE  BssParamForCreateVolumeIsAutoRenew
	FALSE BssParamForCreateVolumeIsAutoRenew
}

func GetBssParamForCreateVolumeIsAutoRenewEnum

func GetBssParamForCreateVolumeIsAutoRenewEnum() BssParamForCreateVolumeIsAutoRenewEnum

type BssParamForCreateVolumePeriodType

type BssParamForCreateVolumePeriodType struct {
	// contains filtered or unexported fields
}

func (BssParamForCreateVolumePeriodType) MarshalJSON

func (c BssParamForCreateVolumePeriodType) MarshalJSON() ([]byte, error)

func (*BssParamForCreateVolumePeriodType) UnmarshalJSON

func (c *BssParamForCreateVolumePeriodType) UnmarshalJSON(b []byte) error

type BssParamForCreateVolumePeriodTypeEnum

type BssParamForCreateVolumePeriodTypeEnum struct {
	MONTH BssParamForCreateVolumePeriodType
	YEAR  BssParamForCreateVolumePeriodType
}

func GetBssParamForCreateVolumePeriodTypeEnum

func GetBssParamForCreateVolumePeriodTypeEnum() BssParamForCreateVolumePeriodTypeEnum

type BssParamForResizeVolume

type BssParamForResizeVolume struct {
	// 功能说明:是否立即支付。该参数只有在云硬盘为包周期的情况下有意义。默认值为false 取值范围: * true:立即支付,从帐户余额中自动扣费 * false:不立即支付,创建订单暂不支付
	IsAutoPay *BssParamForResizeVolumeIsAutoPay `json:"isAutoPay,omitempty"`
}

包周期扩容计费策略参数。

func (BssParamForResizeVolume) String

func (o BssParamForResizeVolume) String() string

type BssParamForResizeVolumeIsAutoPay

type BssParamForResizeVolumeIsAutoPay struct {
	// contains filtered or unexported fields
}

func (BssParamForResizeVolumeIsAutoPay) MarshalJSON

func (c BssParamForResizeVolumeIsAutoPay) MarshalJSON() ([]byte, error)

func (*BssParamForResizeVolumeIsAutoPay) UnmarshalJSON

func (c *BssParamForResizeVolumeIsAutoPay) UnmarshalJSON(b []byte) error

type BssParamForResizeVolumeIsAutoPayEnum

type BssParamForResizeVolumeIsAutoPayEnum struct {
	FALSE BssParamForResizeVolumeIsAutoPay
	TRUE  BssParamForResizeVolumeIsAutoPay
}

func GetBssParamForResizeVolumeIsAutoPayEnum

func GetBssParamForResizeVolumeIsAutoPayEnum() BssParamForResizeVolumeIsAutoPayEnum

type CinderExportToImageOption

type CinderExportToImageOption struct {
	// 云硬盘导出镜像的容器类型。  目前支持ami、ari、aki、ovf、bare。默认是bare。
	ContainerFormat *CinderExportToImageOptionContainerFormat `json:"container_format,omitempty"`
	// 云硬盘导出镜像的格式。  目前支持vhd、zvhd、zvhd2、raw、qcow2。默认是vhd。
	DiskFormat *CinderExportToImageOptionDiskFormat `json:"disk_format,omitempty"`
	// 强制导出镜像的标示,默认值是false。  当force标记为false时,云硬盘处于正在使用状态时,不能强制导出镜像。 当force标记为true时,即使云硬盘处于正在使用状态时,仍可以导出镜像。
	Force *bool `json:"force,omitempty"`
	// 云硬盘导出镜像的名称。  名称的长度范围为1~128位。 名称只能包含以下字符:大写字母、小写字母、中文、数字、特殊字符包含“-”、“.”、“_”和空格。
	ImageName string `json:"image_name"`
	// 云硬盘导出镜像的系统类型。目前只支持“windows”和“linux”,默认值是“linux”。  说明: 只有云硬盘的volume_image_metadata信息中无“__os_type”字段且云硬盘状态为“available”时,设置的__os_type才会生效。 如果不传递该参数,则使用默认的“linux”值作为镜像的系统类型。
	OsType *CinderExportToImageOptionOsType `json:"__os_type,omitempty"`
}

将云硬盘导出为镜像的请求参数

func (CinderExportToImageOption) String

func (o CinderExportToImageOption) String() string

type CinderExportToImageOptionContainerFormat

type CinderExportToImageOptionContainerFormat struct {
	// contains filtered or unexported fields
}

func (CinderExportToImageOptionContainerFormat) MarshalJSON

func (*CinderExportToImageOptionContainerFormat) UnmarshalJSON

func (c *CinderExportToImageOptionContainerFormat) UnmarshalJSON(b []byte) error

type CinderExportToImageOptionDiskFormat

type CinderExportToImageOptionDiskFormat struct {
	// contains filtered or unexported fields
}

func (CinderExportToImageOptionDiskFormat) MarshalJSON

func (c CinderExportToImageOptionDiskFormat) MarshalJSON() ([]byte, error)

func (*CinderExportToImageOptionDiskFormat) UnmarshalJSON

func (c *CinderExportToImageOptionDiskFormat) UnmarshalJSON(b []byte) error

type CinderExportToImageOptionOsType

type CinderExportToImageOptionOsType struct {
	// contains filtered or unexported fields
}

func (CinderExportToImageOptionOsType) MarshalJSON

func (c CinderExportToImageOptionOsType) MarshalJSON() ([]byte, error)

func (*CinderExportToImageOptionOsType) UnmarshalJSON

func (c *CinderExportToImageOptionOsType) UnmarshalJSON(b []byte) error

type CinderExportToImageOptionOsTypeEnum

type CinderExportToImageOptionOsTypeEnum struct {
	WINDOWS CinderExportToImageOptionOsType
	LINUX   CinderExportToImageOptionOsType
}

func GetCinderExportToImageOptionOsTypeEnum

func GetCinderExportToImageOptionOsTypeEnum() CinderExportToImageOptionOsTypeEnum

type CinderExportToImageRequest

type CinderExportToImageRequest struct {
	VolumeId string                          `json:"volume_id"`
	Body     *CinderExportToImageRequestBody `json:"body,omitempty"`
}

Request Object

func (CinderExportToImageRequest) String

type CinderExportToImageRequestBody

type CinderExportToImageRequestBody struct {
	OsVolumeUploadImage *CinderExportToImageOption `json:"os-volume_upload_image"`
}

This is a auto create Body Object

func (CinderExportToImageRequestBody) String

type CinderExportToImageResponse

type CinderExportToImageResponse struct {
	OsVolumeUploadImage *Image `json:"os-volume_upload_image,omitempty"`
}

Response Object

func (CinderExportToImageResponse) String

type CinderListAvailabilityZonesRequest

type CinderListAvailabilityZonesRequest struct {
}

Request Object

func (CinderListAvailabilityZonesRequest) String

type CinderListAvailabilityZonesResponse

type CinderListAvailabilityZonesResponse struct {
	// 查询请求返回的可用分区列表,请参见• [availabilityZoneInfo参数说明](https://support.huaweicloud.com/api-evs/evs_04_2081.html#evs_04_2081__li19751007201910)。
	AvailabilityZoneInfo *[]AzInfo `json:"availabilityZoneInfo,omitempty"`
}

Response Object

func (CinderListAvailabilityZonesResponse) String

type CinderListQuotasRequest

type CinderListQuotasRequest struct {
	TargetProjectId string                       `json:"target_project_id"`
	Usage           CinderListQuotasRequestUsage `json:"usage"`
}

Request Object

func (CinderListQuotasRequest) String

func (o CinderListQuotasRequest) String() string

type CinderListQuotasRequestUsage

type CinderListQuotasRequestUsage struct {
	// contains filtered or unexported fields
}

func (CinderListQuotasRequestUsage) MarshalJSON

func (c CinderListQuotasRequestUsage) MarshalJSON() ([]byte, error)

func (*CinderListQuotasRequestUsage) UnmarshalJSON

func (c *CinderListQuotasRequestUsage) UnmarshalJSON(b []byte) error

type CinderListQuotasRequestUsageEnum

type CinderListQuotasRequestUsageEnum struct {
	TRUE CinderListQuotasRequestUsage
}

func GetCinderListQuotasRequestUsageEnum

func GetCinderListQuotasRequestUsageEnum() CinderListQuotasRequestUsageEnum

type CinderListQuotasResponse

type CinderListQuotasResponse struct {
	QuotaSet *QuotaList `json:"quota_set,omitempty"`
}

Response Object

func (CinderListQuotasResponse) String

func (o CinderListQuotasResponse) String() string

type CinderListVolumeTypesRequest

type CinderListVolumeTypesRequest struct {
}

Request Object

func (CinderListVolumeTypesRequest) String

type CinderListVolumeTypesResponse

type CinderListVolumeTypesResponse struct {
	VolumeTypes *[]VolumeType `json:"volume_types,omitempty"`
}

Response Object

func (CinderListVolumeTypesResponse) String

type CreateSnapshotOption

type CreateSnapshotOption struct {
	// 源云硬盘的ID。
	VolumeId string `json:"volume_id"`
	// 强制创快照标示,默认为false。 当force标记为false时,云硬盘处于挂载状态时,不能强制创建快照。 当force标记为true时,即使云硬盘处于挂载状态时,仍可以创建快照。
	Force *bool `json:"force,omitempty"`
	// 云硬盘快照的元数据信息。
	Metadata map[string]string `json:"metadata,omitempty"`
	// 云硬盘快照描述,最大支持255个字节。
	Description *string `json:"description,omitempty"`
	// 云硬盘快照名称。最大支持255个字节。  > > 说明: > 对云硬盘创建备份时,同时会创建以autobk_snapshot_为名称前缀的快照,云硬盘控制台对此类快照会有操作限制。因此建议不要创建以> > autobk_snapshot_为名称前缀的快照,避免影响快照的正常使用
	Name *string `json:"name,omitempty"`
}

快照信息。

func (CreateSnapshotOption) String

func (o CreateSnapshotOption) String() string

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	Body *CreateSnapshotRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSnapshotRequest) String

func (o CreateSnapshotRequest) String() string

type CreateSnapshotRequestBody

type CreateSnapshotRequestBody struct {
	Snapshot *CreateSnapshotOption `json:"snapshot"`
}

This is a auto create Body Object

func (CreateSnapshotRequestBody) String

func (o CreateSnapshotRequestBody) String() string

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	Snapshot *SnapshotDetails `json:"snapshot,omitempty"`
}

Response Object

func (CreateSnapshotResponse) String

func (o CreateSnapshotResponse) String() string

type CreateVolumeOption

type CreateVolumeOption struct {
	// 指定要创建云硬盘的可用区。
	AvailabilityZone string `json:"availability_zone"`
	// 备份ID,从备份创建云硬盘时为必选。
	BackupId *string `json:"backup_id,omitempty"`
	// 批量创云硬盘的个数。如果无该参数,表明只创建1个云硬盘,目前最多支持批量创建100个。 从备份创建云硬盘时,不支持批量创建,数量只能为“1”。  如果发送请求时,将参数值设置为小数,则默认取小数点前的整数。
	Count *int32 `json:"count,omitempty"`
	// 云硬盘的描述。最大支持255个字节。
	Description *string `json:"description,omitempty"`
	// 企业项目ID。创建云硬盘时,给云硬盘绑定企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 镜像ID,指定该参数表示创建云硬盘方式为从镜像创建云硬盘。
	ImageRef *string `json:"imageRef,omitempty"`
	// 创建云硬盘的metadata信息     可选参数如下:    [\\_\\_system\\_\\_cmkid]   metadata中的加密cmkid字段,与\\_\\_system\\_\\_encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: >  > 请求获取密钥ID的方法请参考:\"[查询密钥列表](https://support.huaweicloud.com/api-dew/dew_02_0017.html)\"。   [\\_\\_system\\_\\_encrypted]   metadata中的表示加密功能的字段,0代表不加密,1代表加密。不指定该字段时,云硬盘的加密属性与数据源保持一致,如果不是从数据源创建的场景,则默认不加密。    [full_clone]   从快照创建云硬盘时,如需使用link克隆方式,请指定该字段的值为0。    [hw:passthrough]    * true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。   * false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。   * 该字段不存在时,云硬盘默认为VBD类型。
	Metadata map[string]string `json:"metadata,omitempty"`
	// 是否为共享云硬盘。true为共享盘,false为普通云硬盘。
	Multiattach *bool `json:"multiattach,omitempty"`
	// 云硬盘名称。 如果为创建单个云硬盘,name为云硬盘名称。最大支持255个字节。 创建的云硬盘数量(count字段对应的值)大于1时,为区分不同云硬盘,创建过程中系统会自动在名称后加“-0000”的类似标记。例如:volume-0001、volume-0002。最大支持250个字节。
	Name *string `json:"name,omitempty"`
	// 是否为共享云硬盘。true为共享盘,false为普通云硬盘。 该字段已经废弃,请使用multiattach。
	Shareable *CreateVolumeOptionShareable `json:"shareable,omitempty"`
	// 云硬盘大小,单位为GB,其限制如下: 系统盘:1GB-1024GB 数据盘:10GB-32768GB 创建空白云硬盘和从 镜像/快照 创建云硬盘时,size为必选,且云硬盘大小不能小于 镜像/快照 大小。 从备份创建云硬盘时,size为可选,不指定size时,云硬盘大小和备份大小一致。
	Size *int32 `json:"size,omitempty"`
	// 快照ID,指定该参数表示创建云硬盘方式为从快照创建云硬盘
	SnapshotId *string `json:"snapshot_id,omitempty"`
	// 云硬盘类型。  目前支持“SSD”,“SAS”和“SATA”三种。 “SSD”为超高IO云硬盘 \"GPSSD\"为通用型SSD云硬盘 “SAS”为高IO云硬盘 “SATA”为普通IO云硬盘 当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。  说明: 从快照创建云硬盘时,volume_type字段必须和快照源云硬盘保持一致。 了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
	VolumeType CreateVolumeOptionVolumeType `json:"volume_type"`
	// 云硬盘标签信息。
	Tags map[string]string `json:"tags,omitempty"`
}

创建云硬盘的信息。

func (CreateVolumeOption) String

func (o CreateVolumeOption) String() string

type CreateVolumeOptionShareable

type CreateVolumeOptionShareable struct {
	// contains filtered or unexported fields
}

func (CreateVolumeOptionShareable) MarshalJSON

func (c CreateVolumeOptionShareable) MarshalJSON() ([]byte, error)

func (*CreateVolumeOptionShareable) UnmarshalJSON

func (c *CreateVolumeOptionShareable) UnmarshalJSON(b []byte) error

type CreateVolumeOptionShareableEnum

type CreateVolumeOptionShareableEnum struct {
	TRUE  CreateVolumeOptionShareable
	FALSE CreateVolumeOptionShareable
}

func GetCreateVolumeOptionShareableEnum

func GetCreateVolumeOptionShareableEnum() CreateVolumeOptionShareableEnum

type CreateVolumeOptionVolumeType

type CreateVolumeOptionVolumeType struct {
	// contains filtered or unexported fields
}

func (CreateVolumeOptionVolumeType) MarshalJSON

func (c CreateVolumeOptionVolumeType) MarshalJSON() ([]byte, error)

func (*CreateVolumeOptionVolumeType) UnmarshalJSON

func (c *CreateVolumeOptionVolumeType) UnmarshalJSON(b []byte) error

type CreateVolumeRequest

type CreateVolumeRequest struct {
	Body *CreateVolumeRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateVolumeRequest) String

func (o CreateVolumeRequest) String() string

type CreateVolumeRequestBody

type CreateVolumeRequestBody struct {
	BssParam *BssParamForCreateVolume `json:"bssParam,omitempty"`
	Volume   *CreateVolumeOption      `json:"volume"`
	// 创建云硬盘并挂载到目标虚拟机。
	ServerId *string `json:"server_id,omitempty"`
}

This is a auto create Body Object

func (CreateVolumeRequestBody) String

func (o CreateVolumeRequestBody) String() string

type CreateVolumeResponse

type CreateVolumeResponse struct {
	// 任务ID,云硬盘为按需计费时返回该参数。 > 说明: >  > 如果需要查询job的状态,请参考:\"[查询job的状态](https://support.huaweicloud.com/api-evs/evs_04_0054.html)\"。
	JobId *string `json:"job_id,omitempty"`
	// 订单ID,云硬盘为包周期计费时返回该参数。 > 说明: >  > - 如果您需要支付订单,请参考:\"[支付包周期产品订单](https://support.huaweicloud.com/api-oce/zh-cn_topic_0075746561.html)\"。
	OrderId *string `json:"order_id,omitempty"`
	// 待创建的磁盘ID列表。
	VolumeIds *[]string `json:"volume_ids,omitempty"`
}

Response Object

func (CreateVolumeResponse) String

func (o CreateVolumeResponse) String() string

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {
	SnapshotId string `json:"snapshot_id"`
}

Request Object

func (DeleteSnapshotRequest) String

func (o DeleteSnapshotRequest) String() string

type DeleteSnapshotResponse

type DeleteSnapshotResponse struct {
}

Response Object

func (DeleteSnapshotResponse) String

func (o DeleteSnapshotResponse) String() string

type DeleteTagsOption

type DeleteTagsOption struct {
	// 标签键。
	Key string `json:"key"`
}

func (DeleteTagsOption) String

func (o DeleteTagsOption) String() string

type DeleteVolumeRequest

type DeleteVolumeRequest struct {
	VolumeId string `json:"volume_id"`
}

Request Object

func (DeleteVolumeRequest) String

func (o DeleteVolumeRequest) String() string

type DeleteVolumeResponse

type DeleteVolumeResponse struct {
	// 正常返回时返回的任务ID。
	JobId *string `json:"job_id,omitempty"`
}

Response Object

func (DeleteVolumeResponse) String

func (o DeleteVolumeResponse) String() string

type Image

type Image struct {
	// 云硬盘导出镜像的容器类型。  目前支持ami、ari、aki、ovf、bare。默认是bare。
	ContainerFormat *string `json:"container_format,omitempty"`
	// 云硬盘导出镜像的格式。  目前支持vhd、zvhd、zvhd2、raw、qcow2。默认是vhd。
	DiskFormat *string `json:"disk_format,omitempty"`
	// 云硬盘描述信息。
	DisplayDescription *string `json:"display_description,omitempty"`
	// 云硬盘ID。
	Id string `json:"id"`
	// 云硬盘导出镜像的ID。
	ImageId string `json:"image_id"`
	// 云硬盘导出镜像的名称
	ImageName string `json:"image_name"`
	// 云硬盘容量。
	Size int32 `json:"size"`
	// 云硬盘导出镜像后的状态,正常值为 “uploading”。
	Status string `json:"status"`
	// 云硬盘更新时间。  时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	UpdatedAt  string      `json:"updated_at"`
	VolumeType *VolumeType `json:"volume_type,omitempty"`
}

func (Image) String

func (o Image) String() string

type JobEntities

type JobEntities struct {
	// 云硬盘的类型。
	VolumeType *string `json:"volume_type,omitempty"`
	// 云硬盘的容量,单位为GB。
	Size *int32 `json:"size,omitempty"`
	// 云硬盘的ID。
	VolumeId *string `json:"volume_id,omitempty"`
	// 云硬盘的名称。
	Name *string `json:"name,omitempty"`
	// 子Job的信息。当存在子Job信息时,entities中的其他字段将不会返回。
	SubJobs *[]SubJob `json:"sub_jobs,omitempty"`
}

Job的响应信息。

func (JobEntities) String

func (o JobEntities) String() string
type Link struct {
	// 对应的快捷链接。
	Href *string `json:"href,omitempty"`
	// 快捷链接标记名称。
	Rel *string `json:"rel,omitempty"`
}

云硬盘uri自描述信息。

func (Link) String

func (o Link) String() string

type ListSnapshotsRequest

type ListSnapshotsRequest struct {
	Offset               *int32  `json:"offset,omitempty"`
	Limit                *int32  `json:"limit,omitempty"`
	Name                 *string `json:"name,omitempty"`
	Status               *string `json:"status,omitempty"`
	VolumeId             *string `json:"volume_id,omitempty"`
	AvailabilityZone     *string `json:"availability_zone,omitempty"`
	Id                   *string `json:"id,omitempty"`
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`
	DedicatedStorageId   *string `json:"dedicated_storage_id,omitempty"`
	ServiceType          *string `json:"service_type,omitempty"`
	EnterpriseProjectId  *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListSnapshotsRequest) String

func (o ListSnapshotsRequest) String() string

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	// 快照的总数量,不受limi参数的影响。
	Count *int32 `json:"count,omitempty"`
	// 快照信息。
	Snapshots *[]SnapshotList `json:"snapshots,omitempty"`
	// 云硬盘快照列表查询位置标记。当查询时指定limit时会返回该字段,返回该字段表示本次查询只查出了部分云硬盘快照信息。
	SnapshotsLinks *[]Link `json:"snapshots_links,omitempty"`
}

Response Object

func (ListSnapshotsResponse) String

func (o ListSnapshotsResponse) String() string

type ListVolumeTagsRequest

type ListVolumeTagsRequest struct {
}

Request Object

func (ListVolumeTagsRequest) String

func (o ListVolumeTagsRequest) String() string

type ListVolumeTagsResponse

type ListVolumeTagsResponse struct {
	// 所有云硬盘的标签信息
	Tags map[string][]string `json:"tags,omitempty"`
}

Response Object

func (ListVolumeTagsResponse) String

func (o ListVolumeTagsResponse) String() string

type ListVolumesByTagsRequest

type ListVolumesByTagsRequest struct {
	Body *ListVolumesByTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (ListVolumesByTagsRequest) String

func (o ListVolumesByTagsRequest) String() string

type ListVolumesByTagsRequestBody

type ListVolumesByTagsRequestBody struct {
	// 操作标识。  根据标签查询云硬盘实例详情时使用“filter”。
	Action ListVolumesByTagsRequestBodyAction `json:"action"`
	// 查询记录数。最小值1,最大值1000,默认为1000。返回的结果中记录数不超过limit值
	Limit *int32 `json:"limit,omitempty"`
	// 资源本身支持的查询条件。标签列表中的标签key值不允许重复。
	Matches *[]Match `json:"matches,omitempty"`
	// 索引位置。最小值0,默认为0。返回的结果中第一条记录为符合查询条件的第“offset值+1”条记录
	Offset *int32 `json:"offset,omitempty"`
	// 标签的键值对。标签列表中最多包含10个key 。标签列表中的标签key值不允许重复。标签列表中多个key之间是“与”的关系,云硬盘必须满足请求中所有key才会匹配出来。
	Tags []TagsForListVolumes `json:"tags"`
}

This is a auto create Body Object

func (ListVolumesByTagsRequestBody) String

type ListVolumesByTagsRequestBodyAction

type ListVolumesByTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (ListVolumesByTagsRequestBodyAction) MarshalJSON

func (c ListVolumesByTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*ListVolumesByTagsRequestBodyAction) UnmarshalJSON

func (c *ListVolumesByTagsRequestBodyAction) UnmarshalJSON(b []byte) error

type ListVolumesByTagsRequestBodyActionEnum

type ListVolumesByTagsRequestBodyActionEnum struct {
	FILTER ListVolumesByTagsRequestBodyAction
}

func GetListVolumesByTagsRequestBodyActionEnum

func GetListVolumesByTagsRequestBodyActionEnum() ListVolumesByTagsRequestBodyActionEnum

type ListVolumesByTagsResponse

type ListVolumesByTagsResponse struct {
	// 符合查询条件的云硬盘资源个数
	TotalCount *int32 `json:"total_count,omitempty"`
	// 符合查询条件的资源列表
	Resources *[]Resource `json:"resources,omitempty"`
}

Response Object

func (ListVolumesByTagsResponse) String

func (o ListVolumesByTagsResponse) String() string

type ListVolumesRequest

type ListVolumesRequest struct {
	Marker               *string `json:"marker,omitempty"`
	Name                 *string `json:"name,omitempty"`
	Limit                *int32  `json:"limit,omitempty"`
	SortKey              *string `json:"sort_key,omitempty"`
	Offset               *int32  `json:"offset,omitempty"`
	SortDir              *string `json:"sort_dir,omitempty"`
	Status               *string `json:"status,omitempty"`
	Metadata             *string `json:"metadata,omitempty"`
	AvailabilityZone     *string `json:"availability_zone,omitempty"`
	Multiattach          *bool   `json:"multiattach,omitempty"`
	ServiceType          *string `json:"service_type,omitempty"`
	DedicatedStorageId   *string `json:"dedicated_storage_id,omitempty"`
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`
	VolumeTypeId         *string `json:"volume_type_id,omitempty"`
	Id                   *string `json:"id,omitempty"`
	Ids                  *string `json:"ids,omitempty"`
	EnterpriseProjectId  *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListVolumesRequest) String

func (o ListVolumesRequest) String() string

type ListVolumesResponse

type ListVolumesResponse struct {
	// 查询到的云硬盘总数量,不受分页影响。
	Count *int32 `json:"count,omitempty"`
	// 云硬盘列表查询位置标记。如果本次查询只返回部分列表信息时,会返回查询到的当前磁盘mark标记的url,可以继续使用这个url查询剩余列表信息。
	VolumesLinks *[]Link `json:"volumes_links,omitempty"`
	// 查询请求返回的云硬盘列表。
	Volumes *[]VolumeDetail `json:"volumes,omitempty"`
}

Response Object

func (ListVolumesResponse) String

func (o ListVolumesResponse) String() string

type Match

type Match struct {
	// 键。取值范围如下: resource_name:资源名称。 service_type:服务类型。
	Key MatchKey `json:"key"`
	// 值。最大长度255个字符。 key为“resource_name”时,value为模糊匹配。
	Value string `json:"value"`
}

func (Match) String

func (o Match) String() string

type MatchKey

type MatchKey struct {
	// contains filtered or unexported fields
}

func (MatchKey) MarshalJSON

func (c MatchKey) MarshalJSON() ([]byte, error)

func (*MatchKey) UnmarshalJSON

func (c *MatchKey) UnmarshalJSON(b []byte) error

type MatchKeyEnum

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
	SERVICE_TYPE  MatchKey
}

func GetMatchKeyEnum

func GetMatchKeyEnum() MatchKeyEnum

type OsExtend

type OsExtend struct {
	// 扩容后的云硬盘大小,单位为GB。扩容的大小必须大于原有云硬盘容量且小于云硬盘最大容量。 云硬盘最大容量: * 数据盘:32768GB * 系统盘:1024GB
	NewSize int32 `json:"new_size"`
}

func (OsExtend) String

func (o OsExtend) String() string

type QuotaDetail

type QuotaDetail struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

配额详细信息。

func (QuotaDetail) String

func (o QuotaDetail) String() string

type QuotaDetailBackupGigabytes

type QuotaDetailBackupGigabytes struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

备份容量,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailBackupGigabytes) String

type QuotaDetailBackups

type QuotaDetailBackups struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

备份个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailBackups) String

func (o QuotaDetailBackups) String() string

type QuotaDetailGigabytes

type QuotaDetailGigabytes struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

总容量,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailGigabytes) String

func (o QuotaDetailGigabytes) String() string

type QuotaDetailGigabytesGpssd

type QuotaDetailGigabytesGpssd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

GPSSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailGigabytesGpssd) String

func (o QuotaDetailGigabytesGpssd) String() string

type QuotaDetailGigabytesSas

type QuotaDetailGigabytesSas struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SAS类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailGigabytesSas) String

func (o QuotaDetailGigabytesSas) String() string

type QuotaDetailGigabytesSata

type QuotaDetailGigabytesSata struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SATA云硬盘类型预留的容量大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailGigabytesSata) String

func (o QuotaDetailGigabytesSata) String() string

type QuotaDetailGigabytesSsd

type QuotaDetailGigabytesSsd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailGigabytesSsd) String

func (o QuotaDetailGigabytesSsd) String() string

type QuotaDetailPerVolumeGigabytes

type QuotaDetailPerVolumeGigabytes struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

每个云硬盘的容量配额限制。键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailPerVolumeGigabytes) String

type QuotaDetailSnapshots

type QuotaDetailSnapshots struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailSnapshots) String

func (o QuotaDetailSnapshots) String() string

type QuotaDetailSnapshotsGpssd

type QuotaDetailSnapshotsGpssd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

GPSSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailSnapshotsGpssd) String

func (o QuotaDetailSnapshotsGpssd) String() string

type QuotaDetailSnapshotsSas

type QuotaDetailSnapshotsSas struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SAS类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailSnapshotsSas) String

func (o QuotaDetailSnapshotsSas) String() string

type QuotaDetailSnapshotsSata

type QuotaDetailSnapshotsSata struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SATA云硬盘类型预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailSnapshotsSata) String

func (o QuotaDetailSnapshotsSata) String() string

type QuotaDetailSnapshotsSsd

type QuotaDetailSnapshotsSsd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailSnapshotsSsd) String

func (o QuotaDetailSnapshotsSsd) String() string

type QuotaDetailVolumes

type QuotaDetailVolumes struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailVolumes) String

func (o QuotaDetailVolumes) String() string

type QuotaDetailVolumesGpssd

type QuotaDetailVolumesGpssd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

GPSSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailVolumesGpssd) String

func (o QuotaDetailVolumesGpssd) String() string

type QuotaDetailVolumesSas

type QuotaDetailVolumesSas struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SAS类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailVolumesSas) String

func (o QuotaDetailVolumesSas) String() string

type QuotaDetailVolumesSata

type QuotaDetailVolumesSata struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SATA云硬盘类型预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailVolumesSata) String

func (o QuotaDetailVolumesSata) String() string

type QuotaDetailVolumesSsd

type QuotaDetailVolumesSsd struct {
	// 已使用的数量。
	InUse int32 `json:"in_use"`
	// 最大的数量。
	Limit int32 `json:"limit"`
	// 预留属性。
	Reserved int32 `json:"reserved"`
	// 预留属性。
	Allocated string `json:"allocated"`
}

SSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、allocated(预留)、limit(最大)和in_use(已使用)。

func (QuotaDetailVolumesSsd) String

func (o QuotaDetailVolumesSsd) String() string

type QuotaList

type QuotaList struct {
	BackupGigabytes *QuotaDetailBackupGigabytes `json:"backup_gigabytes"`
	Backups         *QuotaDetailBackups         `json:"backups"`
	Gigabytes       *QuotaDetailGigabytes       `json:"gigabytes"`
	// 项目ID。
	Id                 string                         `json:"id"`
	Snapshots          *QuotaDetailSnapshots          `json:"snapshots"`
	Volumes            *QuotaDetailVolumes            `json:"volumes"`
	GigabytesSATA      *QuotaDetailGigabytesSata      `json:"gigabytes_SATA,omitempty"`
	SnapshotsSATA      *QuotaDetailSnapshotsSata      `json:"snapshots_SATA,omitempty"`
	VolumesSATA        *QuotaDetailVolumesSata        `json:"volumes_SATA,omitempty"`
	GigabytesSAS       *QuotaDetailGigabytesSas       `json:"gigabytes_SAS,omitempty"`
	SnapshotsSAS       *QuotaDetailSnapshotsSas       `json:"snapshots_SAS,omitempty"`
	VolumesSAS         *QuotaDetailVolumesSas         `json:"volumes_SAS,omitempty"`
	GigabytesSSD       *QuotaDetailGigabytesSsd       `json:"gigabytes_SSD,omitempty"`
	SnapshotsSSD       *QuotaDetailSnapshotsSsd       `json:"snapshots_SSD,omitempty"`
	VolumesSSD         *QuotaDetailVolumesSsd         `json:"volumes_SSD,omitempty"`
	GigabytesGPSSD     *QuotaDetailGigabytesGpssd     `json:"gigabytes_GPSSD,omitempty"`
	SnapshotsGPSSD     *QuotaDetailSnapshotsGpssd     `json:"snapshots_GPSSD,omitempty"`
	VolumesGPSSD       *QuotaDetailVolumesGpssd       `json:"volumes_GPSSD,omitempty"`
	PerVolumeGigabytes *QuotaDetailPerVolumeGigabytes `json:"per_volume_gigabytes,omitempty"`
}

配额信息。

func (QuotaList) String

func (o QuotaList) String() string

type ResizeVolumeRequest

type ResizeVolumeRequest struct {
	VolumeId string                   `json:"volume_id"`
	Body     *ResizeVolumeRequestBody `json:"body,omitempty"`
}

Request Object

func (ResizeVolumeRequest) String

func (o ResizeVolumeRequest) String() string

type ResizeVolumeRequestBody

type ResizeVolumeRequestBody struct {
	BssParam *BssParamForResizeVolume `json:"bssParam,omitempty"`
	OsExtend *OsExtend                `json:"os-extend"`
}

This is a auto create Body Object

func (ResizeVolumeRequestBody) String

func (o ResizeVolumeRequestBody) String() string

type ResizeVolumeResponse

type ResizeVolumeResponse struct {
	// 任务ID,云硬盘为按需计费时返回该参数。 > 说明: >  > 如果需要查询job的状态,请参考:\"[查询job的状态](https://support.huaweicloud.com/api-evs/evs_04_0054.html)\"。
	JobId *string `json:"job_id,omitempty"`
	// 订单ID,云硬盘为包周期计费时返回该参数。 > 说明: >  > - 如果您需要支付订单,请参考:\"[支付包周期产品订单](https://support.huaweicloud.com/api-oce/zh-cn_topic_0075746561.html)\"。
	OrderId *string `json:"order_id,omitempty"`
}

Response Object

func (ResizeVolumeResponse) String

func (o ResizeVolumeResponse) String() string

type Resource

type Resource struct {
	// 资源ID。
	ResourceId string `json:"resource_id"`
	// 资源名称。
	ResourceName   *string             `json:"resource_name,omitempty"`
	ResourceDetail *VolumeDetailForTag `json:"resource_detail"`
	// 标签列表。
	Tags []map[string]string `json:"tags"`
}

func (Resource) String

func (o Resource) String() string

type RollbackInfo

type RollbackInfo struct {
	// 回滚的目标云硬盘UUID。
	VolumeId string `json:"volume_id"`
}

func (RollbackInfo) String

func (o RollbackInfo) String() string

type RollbackSnapshotOption

type RollbackSnapshotOption struct {
	// 回滚的目标云硬盘名称。
	Name *string `json:"name,omitempty"`
	// 回滚的目标云硬盘UUID。
	VolumeId string `json:"volume_id"`
}

func (RollbackSnapshotOption) String

func (o RollbackSnapshotOption) String() string

type RollbackSnapshotRequest

type RollbackSnapshotRequest struct {
	SnapshotId string                       `json:"snapshot_id"`
	Body       *RollbackSnapshotRequestBody `json:"body,omitempty"`
}

Request Object

func (RollbackSnapshotRequest) String

func (o RollbackSnapshotRequest) String() string

type RollbackSnapshotRequestBody

type RollbackSnapshotRequestBody struct {
	Rollback *RollbackSnapshotOption `json:"rollback"`
}

This is a auto create Body Object

func (RollbackSnapshotRequestBody) String

type RollbackSnapshotResponse

type RollbackSnapshotResponse struct {
	Rollback *RollbackInfo `json:"rollback,omitempty"`
}

Response Object

func (RollbackSnapshotResponse) String

func (o RollbackSnapshotResponse) String() string

type ShowJobRequest

type ShowJobRequest struct {
	JobId string `json:"job_id"`
}

Request Object

func (ShowJobRequest) String

func (o ShowJobRequest) String() string

type ShowJobResponse

type ShowJobResponse struct {
	// job的状态。SUCCESS:成功。RUNNING:运行中。FAIL:失败。INIT:正在初始化。
	Status   *ShowJobResponseStatus `json:"status,omitempty"`
	Entities *JobEntities           `json:"entities,omitempty"`
	// job的ID。
	JobId *string `json:"job_id,omitempty"`
	// job的类型。createVolume:创建单个云硬盘。batchCreateVolume:批量创建云硬盘。deleteVolume:删除单个云硬盘。extendVolume:扩容云硬盘。bulkDeleteVolume:批量删除云硬盘。deleteSingleVolume:批量删除时逐个删除单个云硬盘。retypeVolume:对云硬盘做硬盘类型变更。
	JobType *string `json:"job_type,omitempty"`
	// 开始时间。
	BeginTime *string `json:"begin_time,omitempty"`
	// 结束时间。
	EndTime *string `json:"end_time,omitempty"`
	// job执行失败时的错误码。
	ErrorCode *string `json:"error_code,omitempty"`
	// job执行失败时的错误原因。
	FailReason *string `json:"fail_reason,omitempty"`
}

Response Object

func (ShowJobResponse) String

func (o ShowJobResponse) String() string

type ShowJobResponseStatus

type ShowJobResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowJobResponseStatus) MarshalJSON

func (c ShowJobResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowJobResponseStatus) UnmarshalJSON

func (c *ShowJobResponseStatus) UnmarshalJSON(b []byte) error

type ShowJobResponseStatusEnum

type ShowJobResponseStatusEnum struct {
	SUCCESS ShowJobResponseStatus
	RUNNING ShowJobResponseStatus
	FAIL    ShowJobResponseStatus
	INIT    ShowJobResponseStatus
}

func GetShowJobResponseStatusEnum

func GetShowJobResponseStatusEnum() ShowJobResponseStatusEnum

type ShowSnapshotRequest

type ShowSnapshotRequest struct {
	SnapshotId string `json:"snapshot_id"`
}

Request Object

func (ShowSnapshotRequest) String

func (o ShowSnapshotRequest) String() string

type ShowSnapshotResponse

type ShowSnapshotResponse struct {
	Snapshot *SnapshotDetails `json:"snapshot,omitempty"`
}

Response Object

func (ShowSnapshotResponse) String

func (o ShowSnapshotResponse) String() string

type ShowVolumeRequest

type ShowVolumeRequest struct {
	VolumeId string `json:"volume_id"`
}

Request Object

func (ShowVolumeRequest) String

func (o ShowVolumeRequest) String() string

type ShowVolumeResponse

type ShowVolumeResponse struct {
	Volume *VolumeDetail `json:"volume,omitempty"`
}

Response Object

func (ShowVolumeResponse) String

func (o ShowVolumeResponse) String() string

type ShowVolumeTagsRequest

type ShowVolumeTagsRequest struct {
	VolumeId string `json:"volume_id"`
}

Request Object

func (ShowVolumeTagsRequest) String

func (o ShowVolumeTagsRequest) String() string

type ShowVolumeTagsResponse

type ShowVolumeTagsResponse struct {
	// 标签列表。
	Tags *[]Tag `json:"tags,omitempty"`
}

Response Object

func (ShowVolumeTagsResponse) String

func (o ShowVolumeTagsResponse) String() string

type SnapshotDetails

type SnapshotDetails struct {
	// 云硬盘快照ID。
	Id *string `json:"id,omitempty"`
	// 云硬盘快照状态。
	Status *string `json:"status,omitempty"`
	// 云硬盘快照名称。
	Name *string `json:"name,omitempty"`
	// 云硬盘快照描述信息。
	Description *string `json:"description,omitempty"`
	// 云硬盘快照创建时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	CreatedAt *string `json:"created_at,omitempty"`
	// 快照更新时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	UpdatedAt *string `json:"updated_at,omitempty"`
	// 云硬盘快照的元数据信息。
	Metadata *interface{} `json:"metadata,omitempty"`
	// 快照所属的云硬盘ID。
	VolumeId *string `json:"volume_id,omitempty"`
	// 云硬盘快照大小,单位为GB。
	Size *int32 `json:"size,omitempty"`
	// 预留属性。
	OsExtendedSnapshotAttributesprojectId *string `json:"os-extended-snapshot-attributes:project_id,omitempty"`
	// 预留属性。
	OsExtendedSnapshotAttributesprogress *string `json:"os-extended-snapshot-attributes:progress,omitempty"`
}

快照详情。

func (SnapshotDetails) String

func (o SnapshotDetails) String() string

type SnapshotList

type SnapshotList struct {
	// 云硬盘快照ID。
	Id string `json:"id"`
	// 云硬盘快照的状态。
	Status string `json:"status"`
	// 云硬盘快照名称。
	Name *string `json:"name,omitempty"`
	// 云硬盘快照描述信息。
	Description *string `json:"description,omitempty"`
	// 云硬盘快照创建时间。
	CreatedAt string `json:"created_at"`
	// 云硬盘快照更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`
	// 云硬盘快照的元数据信息。
	Metadata map[string]string `json:"metadata,omitempty"`
	// 快照所属的云硬盘。
	VolumeId string `json:"volume_id"`
	// 云硬盘快照大小。
	Size int32 `json:"size"`
	// 项目ID。
	OsExtendedSnapshotAttributesprojectId string `json:"os-extended-snapshot-attributes:project_id"`
	// 快照进度。
	OsExtendedSnapshotAttributesprogress string `json:"os-extended-snapshot-attributes:progress"`
	// 专属存储ID。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`
	// 专属存储名称。
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`
	// 服务类型。
	ServiceType string `json:"service_type"`
}

快照列表信息。

func (SnapshotList) String

func (o SnapshotList) String() string

type SubJob

type SubJob struct {
	// 子job的状态。SUCCESS:成功。RUNNING:运行中。FAIL:失败。INIT:正在初始化。
	Status   SubJobStatus    `json:"status"`
	Entities *SubJobEntities `json:"entities"`
	// 子job的ID。
	JobId string `json:"job_id"`
	// 子job的类型。createVolume:创建单个云硬盘。batchCreateVolume:批量创建云硬盘。deleteVolume:删除单个云硬盘。extendVolume:扩容云硬盘。bulkDeleteVolume:批量删除云硬盘。deleteSingleVolume:批量删除时逐个删除单个云硬盘。retypeVolume:对云硬盘做硬盘类型变更。
	JobType string `json:"job_type"`
	// 开始时间。
	BeginTime string `json:"begin_time"`
	// 结束时间。
	EndTime string `json:"end_time"`
	// 子job执行失败时的错误码。
	ErrorCode string `json:"error_code"`
	// 子job执行失败时的错误原因。
	FailReason string `json:"fail_reason"`
}

子Job的详细信息。

func (SubJob) String

func (o SubJob) String() string

type SubJobEntities

type SubJobEntities struct {
	// 云硬盘的类型。
	VolumeType *string `json:"volume_type,omitempty"`
	// 云硬盘的容量,单位为GB。
	Size *int32 `json:"size,omitempty"`
	// 云硬盘的ID。
	VolumeId *string `json:"volume_id,omitempty"`
	// 云硬盘的名称。
	Name *string `json:"name,omitempty"`
}

子Job的响应信息。

func (SubJobEntities) String

func (o SubJobEntities) String() string

type SubJobStatus

type SubJobStatus struct {
	// contains filtered or unexported fields
}

func (SubJobStatus) MarshalJSON

func (c SubJobStatus) MarshalJSON() ([]byte, error)

func (*SubJobStatus) UnmarshalJSON

func (c *SubJobStatus) UnmarshalJSON(b []byte) error

type SubJobStatusEnum

type SubJobStatusEnum struct {
	SUCCESS SubJobStatus
	RUNNING SubJobStatus
	FAIL    SubJobStatus
	INIT    SubJobStatus
}

func GetSubJobStatusEnum

func GetSubJobStatusEnum() SubJobStatusEnum

type Tag

type Tag struct {
	// 标签键。同一资源的key值不能重复。 最大长度36个字符。 字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`
	// 标签值。 最大长度43个字符。 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Value string `json:"value"`
}

func (Tag) String

func (o Tag) String() string

type TagsForListVolumes

type TagsForListVolumes struct {
	// 标签键。
	Key string `json:"key"`
	// 标签值。  标签列表中最多包含10个value。 标签列表中的标签value值不允许重复。 标签列表如果为空列表,表示匹配任意值。标签列表中多个value之间是“或”的关系,在key已经满足要求的前提下,云硬盘满足请求中的某个value就会匹配出来。
	Values []string `json:"values"`
}

func (TagsForListVolumes) String

func (o TagsForListVolumes) String() string

type UpdateSnapshotOption

type UpdateSnapshotOption struct {
	// 云硬盘快照描述。最大支持255个字节。
	Description *string `json:"description,omitempty"`
	// 云硬盘快照名称。最大支持255个字节。
	Name *string `json:"name,omitempty"`
}

func (UpdateSnapshotOption) String

func (o UpdateSnapshotOption) String() string

type UpdateSnapshotRequest

type UpdateSnapshotRequest struct {
	SnapshotId string                     `json:"snapshot_id"`
	Body       *UpdateSnapshotRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateSnapshotRequest) String

func (o UpdateSnapshotRequest) String() string

type UpdateSnapshotRequestBody

type UpdateSnapshotRequestBody struct {
	Snapshot *UpdateSnapshotOption `json:"snapshot"`
}

This is a auto create Body Object

func (UpdateSnapshotRequestBody) String

func (o UpdateSnapshotRequestBody) String() string

type UpdateSnapshotResponse

type UpdateSnapshotResponse struct {
	Snapshot *SnapshotDetails `json:"snapshot,omitempty"`
}

Response Object

func (UpdateSnapshotResponse) String

func (o UpdateSnapshotResponse) String() string

type UpdateVolumeOption

type UpdateVolumeOption struct {
	// 新的云硬盘的描述,name和description不能同时为null。最大支持255个字节。
	Description *string `json:"description,omitempty"`
	// 新的云硬盘的名字,name和description不能同时为null。最大支持255个字节。
	Name *string `json:"name,omitempty"`
}

func (UpdateVolumeOption) String

func (o UpdateVolumeOption) String() string

type UpdateVolumeRequest

type UpdateVolumeRequest struct {
	VolumeId string                   `json:"volume_id"`
	Body     *UpdateVolumeRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateVolumeRequest) String

func (o UpdateVolumeRequest) String() string

type UpdateVolumeRequestBody

type UpdateVolumeRequestBody struct {
	Volume *UpdateVolumeOption `json:"volume"`
}

This is a auto create Body Object

func (UpdateVolumeRequestBody) String

func (o UpdateVolumeRequestBody) String() string

type UpdateVolumeResponse

type UpdateVolumeResponse struct {
	// 是否挂载信息。
	Attachments *[]Attachment `json:"attachments,omitempty"`
	// 云硬盘所属AZ。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
	// 是否为可启动云硬盘。
	Bootable *string `json:"bootable,omitempty"`
	// 创建云硬盘的时间。
	CreatedAt *string `json:"created_at,omitempty"`
	// 云硬盘ID。
	Id *string `json:"id,omitempty"`
	// 云硬盘uri自描述信息
	Links    *[]Link         `json:"links,omitempty"`
	Metadata *VolumeMetadata `json:"metadata,omitempty"`
	// 是否为可共享云硬盘。
	Multiattach *bool `json:"multiattach,omitempty"`
	// 云硬盘名称
	Name *string `json:"name,omitempty"`
	// 预留属性。
	OsVolHostAttrhost *string `json:"os-vol-host-attr:host,omitempty"`
	// 云硬盘所属的项目ID。
	OsVolTenantAttrtenantId *string `json:"os-vol-tenant-attr:tenant_id,omitempty"`
	// 是否为共享云硬盘。
	Shareable *string `json:"shareable,omitempty"`
	// 云硬盘大小。
	Size *int32 `json:"size,omitempty"`
	// 快照ID。
	SnapshotId *string `json:"snapshot_id,omitempty"`
	// 预留字段。
	SourceVolid *string `json:"source_volid,omitempty"`
	// 云硬盘状态。
	Status *string `json:"status,omitempty"`
	// 云硬盘镜像的元数据。 > 说明: >  > 关于“volume_image_metadata”字段的详细说明,具体请参见:\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"。
	VolumeImageMetadata *interface{} `json:"volume_image_metadata,omitempty"`
	// 云硬盘类型。
	VolumeType *string `json:"volume_type,omitempty"`
	// 云硬盘描述。
	Description *string `json:"description,omitempty"`
	// 预留属性。
	OsVolumeReplicationextendedStatus *string `json:"os-volume-replication:extended_status,omitempty"`
}

Response Object

func (UpdateVolumeResponse) String

func (o UpdateVolumeResponse) String() string

type VolumeDetail

type VolumeDetail struct {
	// 云硬盘的ID。
	Id string `json:"id"`
	// 云硬盘URI自描述信息。请参见 [links参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li1077125119136)。
	Links []Link `json:"links"`
	// 云硬盘名称。
	Name string `json:"name"`
	// 云硬盘状态,请参见[云硬盘状态](https://support.huaweicloud.com/api-evs/evs_04_0040.html)。
	Status string `json:"status"`
	// 云硬盘的挂载信息,请参见•[attachments参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li12430153610291)。
	Attachments []Attachment `json:"attachments"`
	// 云硬盘所属的AZ信息。
	AvailabilityZone string `json:"availability_zone"`
	// 预留属性。
	OsVolHostAttrhost string `json:"os-vol-host-attr:host"`
	// 源云硬盘ID,如果是从源云硬盘创建,则有值。  当前云硬盘服务不支持该字段。
	SourceVolid *string `json:"source_volid,omitempty"`
	// 快照ID,如果是从快照创建,则有值。
	SnapshotId string `json:"snapshot_id"`
	// 云硬盘描述。
	Description string `json:"description"`
	// 云硬盘创建时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	CreatedAt string `json:"created_at"`
	// 云硬盘所属的租户ID。租户ID就是项目ID。
	OsVolTenantAttrtenantId string `json:"os-vol-tenant-attr:tenant_id"`
	// 云硬盘镜像的元数据。 > 说明: >  > 关于“volume_image_metadata”字段的详细说明,具体请参见:\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"。
	VolumeImageMetadata map[string]interface{} `json:"volume_image_metadata"`
	// 云硬盘类型。 目前支持“SSD”,“SAS”和“SATA”三种。 “SSD”为超高IO云硬盘 “SAS”为高IO云硬盘 “SATA”为普通IO云硬盘
	VolumeType string `json:"volume_type"`
	// 云硬盘大小,单位为GB。
	Size int32 `json:"size"`
	// 预留属性。
	ConsistencygroupId *string `json:"consistencygroup_id,omitempty"`
	// 是否为启动云硬盘。 true:表示为启动云硬盘。 false:表示为非启动云硬盘。
	Bootable string          `json:"bootable"`
	Metadata *VolumeMetadata `json:"metadata"`
	// 云硬盘更新时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	UpdatedAt string `json:"updated_at"`
	// 当前云硬盘服务不支持该字段。
	Encrypted *bool `json:"encrypted,omitempty"`
	// 预留属性。
	ReplicationStatus string `json:"replication_status"`
	// 预留属性。
	OsVolumeReplicationextendedStatus string `json:"os-volume-replication:extended_status"`
	// 预留属性。
	OsVolMigStatusAttrmigstat string `json:"os-vol-mig-status-attr:migstat"`
	// 预留属性。
	OsVolMigStatusAttrnameId string `json:"os-vol-mig-status-attr:name_id"`
	// 是否为共享云硬盘。true为共享盘,false为普通云硬盘。 该字段已经废弃,请使用multiattach。
	Shareable string `json:"shareable"`
	// 预留属性。
	UserId string `json:"user_id"`
	// 服务类型,结果为EVS、DSS、DESS。
	ServiceType string `json:"service_type"`
	// 是否为共享云硬盘。
	Multiattach bool `json:"multiattach"`
	// 云硬盘所属的专属存储池ID。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`
	// 云硬盘所属的专属存储池的名称。
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`
	// 云硬盘的标签。 如果云硬盘有标签,则会有该字段,否则该字段为空。
	Tags map[string]string `json:"tags"`
	// 云硬盘挂载时的唯一标识。
	Wwn *string `json:"wwn,omitempty"`
	// 云硬盘上绑定的企业项目ID。 > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参见:\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

云硬盘详情。

func (VolumeDetail) String

func (o VolumeDetail) String() string

type VolumeDetailForTag

type VolumeDetailForTag struct {
	// 云硬盘的ID。
	Id string `json:"id"`
	// 云硬盘URI自描述信息。请参见 [links参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li1077125119136)。
	Links []Link `json:"links"`
	// 云硬盘名称。
	Name string `json:"name"`
	// 云硬盘状态,请参见[云硬盘状态](https://support.huaweicloud.com/api-evs/evs_04_0040.html)。
	Status string `json:"status"`
	// 云硬盘的挂载信息,请参见•[attachments参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li12430153610291)。
	Attachments []Attachment `json:"attachments"`
	// 云硬盘所属的AZ信息。
	AvailabilityZone string `json:"availability_zone"`
	// 预留属性。
	OsVolHostAttrhost string `json:"os-vol-host-attr:host"`
	// 源云硬盘ID,如果是从源云硬盘创建,则有值。  当前云硬盘服务不支持该字段。
	SourceVolid *string `json:"source_volid,omitempty"`
	// 快照ID,如果是从快照创建,则有值。
	SnapshotId string `json:"snapshot_id"`
	// 云硬盘描述。
	Description string `json:"description"`
	// 云硬盘创建时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	CreatedAt string `json:"created_at"`
	// 云硬盘所属的租户ID。租户ID就是项目ID。
	OsVolTenantAttrtenantId string `json:"os-vol-tenant-attr:tenant_id"`
	// 云硬盘镜像的元数据。 > 说明: >  > 关于“volume_image_metadata”字段的详细说明,具体请参见:\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"。
	VolumeImageMetadata map[string]interface{} `json:"volume_image_metadata"`
	// 云硬盘类型。 目前支持“SSD”,“SAS”和“SATA”三种。 “SSD”为超高IO云硬盘 “SAS”为高IO云硬盘 “SATA”为普通IO云硬盘
	VolumeType string `json:"volume_type"`
	// 云硬盘大小,单位为GB。
	Size int32 `json:"size"`
	// 预留属性。
	ConsistencygroupId *string `json:"consistencygroup_id,omitempty"`
	// 是否为启动云硬盘。 true:表示为启动云硬盘。 false:表示为非启动云硬盘。
	Bootable string          `json:"bootable"`
	Metadata *VolumeMetadata `json:"metadata"`
	// 云硬盘更新时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	UpdatedAt string `json:"updated_at"`
	// 当前云硬盘服务不支持该字段。
	Encrypted *bool `json:"encrypted,omitempty"`
	// 预留属性。
	ReplicationStatus string `json:"replication_status"`
	// 预留属性。
	OsVolumeReplicationextendedStatus string `json:"os-volume-replication:extended_status"`
	// 预留属性。
	OsVolMigStatusAttrmigstat string `json:"os-vol-mig-status-attr:migstat"`
	// 预留属性。
	OsVolMigStatusAttrnameId string `json:"os-vol-mig-status-attr:name_id"`
	// 是否为共享云硬盘。true为共享盘,false为普通云硬盘。 该字段已经废弃,请使用multiattach。
	Shareable bool `json:"shareable"`
	// 预留属性。
	UserId string `json:"user_id"`
	// 服务类型,结果为EVS、DSS、DESS。
	ServiceType string `json:"service_type"`
	// 是否为共享云硬盘。
	Multiattach bool `json:"multiattach"`
	// 云硬盘所属的专属存储池ID。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`
	// 云硬盘所属的专属存储池的名称。
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`
	// 云硬盘的标签。 如果云硬盘有标签,则会有该字段,否则该字段为空。
	Tags map[string]string `json:"tags"`
	// 云硬盘挂载时的唯一标识。
	Wwn *string `json:"wwn,omitempty"`
	// 云硬盘上绑定的企业项目ID。 > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参见:\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

云硬盘详情。

func (VolumeDetailForTag) String

func (o VolumeDetailForTag) String() string

type VolumeMetadata

type VolumeMetadata struct {
	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: >  > 请求获取密钥ID的方法请参考:\"[查询密钥列表](https://support.huaweicloud.com/api-dew/dew_02_0017.html)\"。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。 不指定该字段时,云硬盘的加密属性与数据源保持一致,如果不是从数据源创建的场景,则默认不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`
	// 从快照创建云硬盘时的创建方式。 * 0表示使用链接克隆方式。 * 1表示使用全量克隆方式。
	FullClone *string `json:"full_clone,omitempty"`
	// * true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。 * false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。 * 该字段不存在时,云硬盘默认为VBD类型。
	Hwpassthrough *string `json:"hw:passthrough,omitempty"`
	// metadata中的表示云硬盘计费类型的字段。 当该字段有值时,表示该云硬盘的计费类型为包周期计费,否则计费类型为按需计费。
	OrderID *string `json:"orderID,omitempty"`
}

云硬盘的元数据。

func (VolumeMetadata) String

func (o VolumeMetadata) String() string

type VolumeType

type VolumeType struct {
	// 云硬盘类型的ID。
	Id string `json:"id"`
	// 云硬盘类型名称。
	Name       string                `json:"name"`
	ExtraSpecs *VolumeTypeExtraSpecs `json:"extra_specs,omitempty"`
	// 云硬盘类型的描述信息。
	Description *string `json:"description,omitempty"`
	// 预留属性。
	QosSpecsId *string `json:"qos_specs_id,omitempty"`
	// 预留属性。
	IsPublic *bool `json:"is_public,omitempty"`
}

func (VolumeType) String

func (o VolumeType) String() string

type VolumeTypeExtraSpecs

type VolumeTypeExtraSpecs struct {
	// 支持当前云硬盘类型的可用区列表。
	RESKEYavailabilityZones *string `json:"RESKEY:availability_zones,omitempty"`
	// 预留属性。
	AvailabilityZone *string `json:"availability-zone,omitempty"`
	// 当前云硬盘类型已售罄的可用区列表。
	OsVendorExtendedsoldOutAvailabilityZones *string `json:"os-vendor-extended:sold_out_availability_zones,omitempty"`
	// 预留属性。
	VolumeBackendName *string `json:"volume_backend_name,omitempty"`
	// 预留属性。
	HWavailabilityZone *string `json:"HW:availability_zone,omitempty"`
}

云硬盘类型的规格

func (VolumeTypeExtraSpecs) String

func (o VolumeTypeExtraSpecs) String() string

type ZoneState

type ZoneState struct {
	// 可用分区是否可用。
	Available *bool `json:"available,omitempty"`
}

可用分区的状态。

func (ZoneState) String

func (o ZoneState) String() string

Source Files

Jump to

Keyboard shortcuts

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