model

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 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"`
}

Attachment 云硬盘挂载信息。

func (Attachment) String

func (o Attachment) String() string

type AzInfo

type AzInfo struct {

	// 可用分区的名字。
	ZoneName string `json:"zoneName"`

	ZoneState *ZoneState `json:"zoneState"`
}

AzInfo 一个az对象

func (AzInfo) String

func (o AzInfo) String() string

type BatchCreateVolumeTagsRequest

type BatchCreateVolumeTagsRequest struct {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`

	Body *BatchCreateVolumeTagsRequestBody `json:"body,omitempty"`
}

BatchCreateVolumeTagsRequest Request Object

func (BatchCreateVolumeTagsRequest) String

type BatchCreateVolumeTagsRequestBody

type BatchCreateVolumeTagsRequestBody struct {

	// 操作标识,当前支持的取值如下:  添加标签:create
	Action BatchCreateVolumeTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []Tag `json:"tags"`
}

BatchCreateVolumeTagsRequestBody 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

func (BatchCreateVolumeTagsRequestBodyAction) Value added in v0.0.90

type BatchCreateVolumeTagsRequestBodyActionEnum

type BatchCreateVolumeTagsRequestBodyActionEnum struct {
	CREATE BatchCreateVolumeTagsRequestBodyAction
}

func GetBatchCreateVolumeTagsRequestBodyActionEnum

func GetBatchCreateVolumeTagsRequestBodyActionEnum() BatchCreateVolumeTagsRequestBodyActionEnum

type BatchCreateVolumeTagsResponse

type BatchCreateVolumeTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchCreateVolumeTagsResponse Response Object

func (BatchCreateVolumeTagsResponse) String

type BatchDeleteVolumeTagsRequest

type BatchDeleteVolumeTagsRequest struct {

	// 磁盘ID。
	VolumeId string `json:"volume_id"`

	Body *BatchDeleteVolumeTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteVolumeTagsRequest Request Object

func (BatchDeleteVolumeTagsRequest) String

type BatchDeleteVolumeTagsRequestBody

type BatchDeleteVolumeTagsRequestBody struct {

	// 操作标识,当前支持的取值如下:  删除标签:delete
	Action BatchDeleteVolumeTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []DeleteTagsOption `json:"tags"`
}

BatchDeleteVolumeTagsRequestBody 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

func (BatchDeleteVolumeTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteVolumeTagsRequestBodyActionEnum

type BatchDeleteVolumeTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteVolumeTagsRequestBodyAction
}

func GetBatchDeleteVolumeTagsRequestBodyActionEnum

func GetBatchDeleteVolumeTagsRequestBodyActionEnum() BatchDeleteVolumeTagsRequestBodyActionEnum

type BatchDeleteVolumeTagsResponse

type BatchDeleteVolumeTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

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

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

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

func (BssParamForCreateVolumeChargingMode) Value added in v0.0.90

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

func (BssParamForCreateVolumeIsAutoPay) Value added in v0.0.90

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

func (BssParamForCreateVolumeIsAutoRenew) Value added in v0.0.90

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

func (BssParamForCreateVolumePeriodType) Value added in v0.0.90

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

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

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

func (BssParamForResizeVolumeIsAutoPay) Value added in v0.0.90

type BssParamForResizeVolumeIsAutoPayEnum

type BssParamForResizeVolumeIsAutoPayEnum struct {
	FALSE BssParamForResizeVolumeIsAutoPay
	TRUE  BssParamForResizeVolumeIsAutoPay
}

func GetBssParamForResizeVolumeIsAutoPayEnum

func GetBssParamForResizeVolumeIsAutoPayEnum() BssParamForResizeVolumeIsAutoPayEnum

type CinderAcceptVolumeTransferOption added in v0.1.1

type CinderAcceptVolumeTransferOption struct {

	// 云硬盘过户的身份认证密钥。  创建云硬盘过户时会返回该身份认证密钥。
	AuthKey string `json:"auth_key"`
}

CinderAcceptVolumeTransferOption 标记接受云硬盘过户操作。

func (CinderAcceptVolumeTransferOption) String added in v0.1.1

type CinderAcceptVolumeTransferRequest added in v0.1.1

type CinderAcceptVolumeTransferRequest struct {

	// 云硬盘ID
	TransferId string `json:"transfer_id"`

	Body *CinderAcceptVolumeTransferRequestBody `json:"body,omitempty"`
}

CinderAcceptVolumeTransferRequest Request Object

func (CinderAcceptVolumeTransferRequest) String added in v0.1.1

type CinderAcceptVolumeTransferRequestBody added in v0.1.1

type CinderAcceptVolumeTransferRequestBody struct {
	Accept *CinderAcceptVolumeTransferOption `json:"accept"`
}

CinderAcceptVolumeTransferRequestBody This is a auto create Body Object

func (CinderAcceptVolumeTransferRequestBody) String added in v0.1.1

type CinderAcceptVolumeTransferResponse added in v0.1.1

type CinderAcceptVolumeTransferResponse struct {
	Transfer       *VolumeTransferSummary `json:"transfer,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

CinderAcceptVolumeTransferResponse Response Object

func (CinderAcceptVolumeTransferResponse) String added in v0.1.1

type CinderCreateVolumeTransferRequest added in v0.1.1

type CinderCreateVolumeTransferRequest struct {
	Body *CinderCreateVolumeTransferRequestBody `json:"body,omitempty"`
}

CinderCreateVolumeTransferRequest Request Object

func (CinderCreateVolumeTransferRequest) String added in v0.1.1

type CinderCreateVolumeTransferRequestBody added in v0.1.1

type CinderCreateVolumeTransferRequestBody struct {
	Transfer *CreateVolumeTransferOption `json:"transfer"`
}

CinderCreateVolumeTransferRequestBody This is a auto create Body Object

func (CinderCreateVolumeTransferRequestBody) String added in v0.1.1

type CinderCreateVolumeTransferResponse added in v0.1.1

type CinderCreateVolumeTransferResponse struct {
	Transfer       *CreateVolumeTransferDetail `json:"transfer,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

CinderCreateVolumeTransferResponse Response Object

func (CinderCreateVolumeTransferResponse) String added in v0.1.1

type CinderDeleteVolumeTransferRequest added in v0.1.1

type CinderDeleteVolumeTransferRequest struct {

	// 云硬盘过户记录ID
	TransferId string `json:"transfer_id"`
}

CinderDeleteVolumeTransferRequest Request Object

func (CinderDeleteVolumeTransferRequest) String added in v0.1.1

type CinderDeleteVolumeTransferResponse added in v0.1.1

type CinderDeleteVolumeTransferResponse struct {
	HttpStatusCode int `json:"-"`
}

CinderDeleteVolumeTransferResponse Response Object

func (CinderDeleteVolumeTransferResponse) String added in v0.1.1

type CinderListAvailabilityZonesRequest

type CinderListAvailabilityZonesRequest struct {
}

CinderListAvailabilityZonesRequest 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"`
	HttpStatusCode       int       `json:"-"`
}

CinderListAvailabilityZonesResponse Response Object

func (CinderListAvailabilityZonesResponse) String

type CinderListQuotasRequest

type CinderListQuotasRequest struct {

	// 目标的项目ID。与project_id保持一致即可。
	TargetProjectId string `json:"target_project_id"`

	// 是否查询配额详细信息。当前只支持传true。
	Usage CinderListQuotasRequestUsage `json:"usage"`
}

CinderListQuotasRequest 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

func (CinderListQuotasRequestUsage) Value added in v0.0.90

type CinderListQuotasRequestUsageEnum

type CinderListQuotasRequestUsageEnum struct {
	TRUE CinderListQuotasRequestUsage
}

func GetCinderListQuotasRequestUsageEnum

func GetCinderListQuotasRequestUsageEnum() CinderListQuotasRequestUsageEnum

type CinderListQuotasResponse

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

CinderListQuotasResponse Response Object

func (CinderListQuotasResponse) String

func (o CinderListQuotasResponse) String() string

type CinderListVolumeTransfersRequest added in v0.1.1

type CinderListVolumeTransfersRequest struct {

	// 返回结果个数限制,取值为大 于0的整数
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,偏移量为一个大于0小 于云硬盘过户记录总个数的整 数,表示查询该偏移量后面的 所有的云硬盘过户记录
	Offset *int32 `json:"offset,omitempty"`
}

CinderListVolumeTransfersRequest Request Object

func (CinderListVolumeTransfersRequest) String added in v0.1.1

type CinderListVolumeTransfersResponse added in v0.1.1

type CinderListVolumeTransfersResponse struct {

	// 云硬盘过户记录列表概要,请参见•[transfers参数说明](https://support.huaweicloud.com/api-evs/evs_04_2110.html#evs_04_2110__li6113282511345)。
	Transfers      *[]VolumeTransferSummary `json:"transfers,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

CinderListVolumeTransfersResponse Response Object

func (CinderListVolumeTransfersResponse) String added in v0.1.1

type CinderListVolumeTypesRequest

type CinderListVolumeTypesRequest struct {
}

CinderListVolumeTypesRequest Request Object

func (CinderListVolumeTypesRequest) String

type CinderListVolumeTypesResponse

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

CinderListVolumeTypesResponse Response Object

func (CinderListVolumeTypesResponse) String

type CinderShowVolumeTransferRequest added in v0.1.1

type CinderShowVolumeTransferRequest struct {

	// 云硬盘过户记录ID
	TransferId string `json:"transfer_id"`
}

CinderShowVolumeTransferRequest Request Object

func (CinderShowVolumeTransferRequest) String added in v0.1.1

type CinderShowVolumeTransferResponse added in v0.1.1

type CinderShowVolumeTransferResponse struct {
	Transfer       *VolumeTransfer `json:"transfer,omitempty"`
	HttpStatusCode int             `json:"-"`
}

CinderShowVolumeTransferResponse Response Object

func (CinderShowVolumeTransferResponse) String added in v0.1.1

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

CreateSnapshotOption 快照信息。

func (CreateSnapshotOption) String

func (o CreateSnapshotOption) String() string

type CreateSnapshotRequest

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

CreateSnapshotRequest Request Object

func (CreateSnapshotRequest) String

func (o CreateSnapshotRequest) String() string

type CreateSnapshotRequestBody

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

CreateSnapshotRequestBody 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"`
	HttpStatusCode int              `json:"-"`
}

CreateSnapshotResponse Response Object

func (CreateSnapshotResponse) String

func (o CreateSnapshotResponse) String() string

type CreateVolumeOption

type CreateVolumeOption struct {

	// 指定要创建云硬盘的可用区。 获取方法请参见\"[获取可用区](https://apiexplorer.developer.huaweicloud.com/apiexplorer/sdk?product=EVS&api=CinderListAvailabilityZones)\"。
	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/ListKeys.html)\"。   [\\_\\_system\\_\\_encrypted]   metadata中的表示加密功能的字段,0代表不加密,1代表加密。不指定该字段时,云硬盘的加密属性与数据源保持一致,如果不是从数据源创建的场景,则默认不加密。    [full_clone]   从快照创建云硬盘时,如需使用link克隆方式,请指定该字段的值为0。    [hw:passthrough]    * true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。   * false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。   * 该字段不存在时,云硬盘默认为VBD类型。    [create\\_for\\_volume\\_id]  * true表示接口响应中会通过volume_ids字段返回本次创建的云硬盘ID。 * false表示接口响应中不会返回本次创建的云硬盘ID。  该字段不存在时,默认为false。
	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"`

	// 云硬盘大小,单位为GB,其限制如下: 系统盘:1GB-1024GB 数据盘:10GB-32768GB 创建空白云硬盘和从 镜像/快照 创建云硬盘时,size为必选,且云硬盘大小不能小于 镜像/快照 大小。 从备份创建云硬盘时,size为可选,不指定size时,云硬盘大小和备份大小一致。
	Size int32 `json:"size"`

	// 快照ID,指定该参数表示创建云硬盘方式为从快照创建云硬盘
	SnapshotId *string `json:"snapshot_id,omitempty"`

	// 云硬盘类型。  目前支持\"SATA\",\"SAS\",\"GPSSD\",\"SSD\",\"ESSD\",\"GPSSD2\"和\"ESSD2\"七种。  - \"SATA\"为普通IO云硬盘(已售罄) - \"SAS\"为高IO云硬盘 - \"GPSSD\"为通用型SSD云硬盘 - \"SSD\"为超高IO云硬盘 - \"ESSD\"为极速IO云硬盘 - \"GPSSD2\"为通用型SSD V2云硬盘 - \"ESSD2\"为极速型SSD V2云硬盘 当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。  说明: 从快照创建云硬盘时,volume_type字段必须和快照源云硬盘保持一致。 了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 获取region可用的卷类型,请参见[查询云硬盘类型列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=EVS&api=CinderListVolumeTypes)
	VolumeType CreateVolumeOptionVolumeType `json:"volume_type"`

	// 云硬盘标签信息。
	Tags map[string]string `json:"tags,omitempty"`

	// 给云硬盘配置iops,购买GPSSD2、ESSD2类型的云硬盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Iops *int32 `json:"iops,omitempty"`

	// 给云硬盘配置吞吐量,单位是MiB/s,购买GPSSD2类型云盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Throughput *int32 `json:"throughput,omitempty"`
}

CreateVolumeOption 创建云硬盘的信息。

func (CreateVolumeOption) String

func (o CreateVolumeOption) String() string

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

func (CreateVolumeOptionVolumeType) Value added in v0.0.90

type CreateVolumeRequest

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

CreateVolumeRequest Request Object

func (CreateVolumeRequest) String

func (o CreateVolumeRequest) String() string

type CreateVolumeRequestBody

type CreateVolumeRequestBody struct {
	BssParam *BssParamForCreateVolume `json:"bssParam,omitempty"`

	Volume *CreateVolumeOption `json:"volume"`

	// 创建云硬盘并挂载到目标虚拟机。 创建的云硬盘的计费模式会与虚拟机的计费模式保持一致。 目前只支持ECS服务的虚拟机,暂不支持BMS的裸金属服务器。
	ServerId *string `json:"server_id,omitempty"`

	OSSCHHNTschedulerHints *CreateVolumeSchedulerHints `json:"OS-SCH-HNT:scheduler_hints,omitempty"`
}

CreateVolumeRequestBody 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列表。 > 说明: > 通过云硬盘ID查询云硬盘详情 ,若返回404 可能云硬盘正在创建中或者已经创建失败。 > 通过JobId查询云硬盘创建任务是否完成[查询job的状态](https://support.huaweicloud.com/api-evs/evs_04_0054.html)。
	VolumeIds      *[]string `json:"volume_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

CreateVolumeResponse Response Object

func (CreateVolumeResponse) String

func (o CreateVolumeResponse) String() string

type CreateVolumeSchedulerHints

type CreateVolumeSchedulerHints struct {

	// 指定专属存储池ID,表示将云硬盘创建在该ID对应的存储池中。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`
}

CreateVolumeSchedulerHints 创建云硬盘的调度参数。

func (CreateVolumeSchedulerHints) String

type CreateVolumeTransferDetail added in v0.1.1

type CreateVolumeTransferDetail struct {

	// 云硬盘过户的身份认证密钥。
	AuthKey string `json:"auth_key"`

	// 云硬盘过户记录的创建时间。  时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	CreatedAt string `json:"created_at"`

	// 云硬盘过户记录的ID。
	Id string `json:"id"`

	// 云硬盘过户记录的链接。
	Links []Link `json:"links"`

	// 云硬盘过户记录的名称。
	Name string `json:"name"`

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

func (CreateVolumeTransferDetail) String added in v0.1.1

type CreateVolumeTransferOption added in v0.1.1

type CreateVolumeTransferOption struct {

	// 云硬盘过户记录的名称。最大支持255个字节。
	Name string `json:"name"`

	// 云硬盘ID。  通过[查询所有云硬盘详情](https://support.huaweicloud.com/api-evs/evs_04_3033.html)获取。
	VolumeId string `json:"volume_id"`
}

func (CreateVolumeTransferOption) String added in v0.1.1

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {

	// 快照ID。
	SnapshotId string `json:"snapshot_id"`
}

DeleteSnapshotRequest Request Object

func (DeleteSnapshotRequest) String

func (o DeleteSnapshotRequest) String() string

type DeleteSnapshotResponse

type DeleteSnapshotResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteSnapshotResponse 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 {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

DeleteVolumeRequest Request Object

func (DeleteVolumeRequest) String

func (o DeleteVolumeRequest) String() string

type DeleteVolumeResponse

type DeleteVolumeResponse struct {

	// 正常返回时返回的任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteVolumeResponse Response Object

func (DeleteVolumeResponse) String

func (o DeleteVolumeResponse) String() string

type Iops added in v0.1.36

type Iops struct {

	// 冻结标签。
	Frozened bool `json:"frozened"`

	// 云硬盘iops标识。
	Id string `json:"id"`

	// iops大小。
	TotalVal int32 `json:"total_val"`
}

Iops

func (Iops) String added in v0.1.36

func (o Iops) 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"`
}

JobEntities Job的响应信息。

func (JobEntities) String

func (o JobEntities) String() string
type Link struct {

	// 对应的快捷链接。
	Href *string `json:"href,omitempty"`

	// 快捷链接标记名称。
	Rel *string `json:"rel,omitempty"`
}

Link 云硬盘uri自描述信息。

func (Link) String

func (o Link) String() string

type ListSnapshotsRequest

type ListSnapshotsRequest struct {

	// 偏移量。 说明:分页查询快照时使用,与limit配合使用。假如共有30个快照,设置offset为11,limit为10,即为从第12个快照开始查询,一次最多可读取10个快照。
	Offset *int32 `json:"offset,omitempty"`

	// 返回结果个数限制,值为大于0的整数。默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 云硬盘快照名称。最大支持255个字节。
	Name *string `json:"name,omitempty"`

	// 云硬盘快照状态,具体请参见A.3 云硬盘快照状态。
	Status *string `json:"status,omitempty"`

	// 快照所属云硬盘的ID。
	VolumeId *string `json:"volume_id,omitempty"`

	// 快照所属云硬盘的可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 指定快照id进行过滤。可以传入多个id过滤查询,格式:id=id1&id=id2&id=id3
	Id *string `json:"id,omitempty"`

	// 专属存储的名称。
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`

	// 专属存储ID。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`

	// 服务类型。仅支持EVS、DSS、DESS。
	ServiceType *string `json:"service_type,omitempty"`

	// 指定企业项目id进行过滤。 传入“all_granted_eps”,代表查询权限范围内的所有企业项目下的云硬盘。 > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参考:\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListSnapshotsRequest 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"`
	HttpStatusCode int     `json:"-"`
}

ListSnapshotsResponse Response Object

func (ListSnapshotsResponse) String

func (o ListSnapshotsResponse) String() string

type ListVersionsRequest added in v0.1.1

type ListVersionsRequest struct {
}

ListVersionsRequest Request Object

func (ListVersionsRequest) String added in v0.1.1

func (o ListVersionsRequest) String() string

type ListVersionsResponse added in v0.1.1

type ListVersionsResponse struct {

	// 版本信息。
	Versions       *[]Versions `json:"versions,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ListVersionsResponse Response Object

func (ListVersionsResponse) String added in v0.1.1

func (o ListVersionsResponse) String() string

type ListVolumeTagsRequest

type ListVolumeTagsRequest struct {
}

ListVolumeTagsRequest Request Object

func (ListVolumeTagsRequest) String

func (o ListVolumeTagsRequest) String() string

type ListVolumeTagsResponse

type ListVolumeTagsResponse struct {

	// 所有云硬盘的标签信息
	Tags           map[string][]string `json:"tags,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ListVolumeTagsResponse Response Object

func (ListVolumeTagsResponse) String

func (o ListVolumeTagsResponse) String() string

type ListVolumesByTagsRequest

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

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

ListVolumesByTagsRequestBody 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

func (ListVolumesByTagsRequestBodyAction) Value added in v0.0.90

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

ListVolumesByTagsResponse Response Object

func (ListVolumesByTagsResponse) String

func (o ListVolumesByTagsResponse) String() string

type ListVolumesRequest

type ListVolumesRequest struct {

	// 通过云硬盘ID进行分页查询。默认为查询第一页数据。
	Marker *string `json:"marker,omitempty"`

	// 磁盘名称。
	Name *string `json:"name,omitempty"`

	// 返回结果个数限制。默认值为1000。
	Limit *int32 `json:"limit,omitempty"`

	// 返回结果按该关键字排序,支持id,status,size,created_at等关键字,默认为“created_at”。
	SortKey *string `json:"sort_key,omitempty"`

	// 偏移量(偏移量为一个大于0小于磁盘总个数的整数,表示查询该偏移量后面的所有的磁盘)。
	Offset *int32 `json:"offset,omitempty"`

	// 返回结果按照降序或升序排列,默认为“desc”。 降序:desc 升序:asc
	SortDir *string `json:"sort_dir,omitempty"`

	// 云硬盘状态,取值可参考:\"[云硬盘状态](https://support.huaweicloud.com/api-evs/evs_04_0040.html)\"。
	Status *string `json:"status,omitempty"`

	// 云硬盘元数据。
	Metadata *string `json:"metadata,omitempty"`

	// 可用区信息。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 是否为共享云硬盘。 true:表示为共享云硬盘。 false:表示为非共享云硬盘。
	Multiattach *bool `json:"multiattach,omitempty"`

	// 服务类型,仅支持EVS、DSS、DESS。
	ServiceType *string `json:"service_type,omitempty"`

	// 专属存储池ID,可过滤出该专属存储池下的所有云硬盘,必须精确匹配。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`

	// 专属存储池的名字,可过滤出该专属存储池下的所有云硬盘,支持模糊匹配。
	DedicatedStorageName *string `json:"dedicated_storage_name,omitempty"`

	// 云硬盘类型id。 通过\"[查询云硬盘类型列表](https://support.huaweicloud.com/api-evs/evs_04_3035.html)\"可以查到,即volume_types参数说明表格中的“id”
	VolumeTypeId *string `json:"volume_type_id,omitempty"`

	// 云硬盘ID。
	Id *string `json:"id,omitempty"`

	// 云硬盘id列表,格式为ids=['id1','id2',...,'idx'],返回“ids”中有效id的云硬盘详情,无效的id会被忽略。 支持查询最多60个id对应的云硬盘详情。 如果“id”和“ids”查询参数同时存在,“id”会被忽略。
	Ids *string `json:"ids,omitempty"`

	// 指定企业项目id进行过滤。 传入“all_granted_eps”,代表查询权限范围内的所有企业项目下的云硬盘。 > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参考:\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 云服务器id。
	ServerId *string `json:"server_id,omitempty"`
}

ListVolumesRequest 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"`
	HttpStatusCode int             `json:"-"`
}

ListVolumesResponse 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

func (MatchKey) Value added in v0.0.90

func (c MatchKey) Value() string

type MatchKeyEnum

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
	SERVICE_TYPE  MatchKey
}

func GetMatchKeyEnum

func GetMatchKeyEnum() MatchKeyEnum

type MediaTypes added in v0.1.1

type MediaTypes struct {

	// 文本类型
	Base string `json:"base"`

	// 返回类型
	Type string `json:"type"`
}

MediaTypes 接口版本的请求消息类型信息

func (MediaTypes) String added in v0.1.1

func (o MediaTypes) String() string

type ModifyVolumeQoSOption added in v0.1.59

type ModifyVolumeQoSOption struct {

	// 修改后的云硬盘iops,只支持GPSSD2、ESSD2类型的云硬盘。  说明: 了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
	Iops int32 `json:"iops"`

	// 修改后的云硬盘吞吐量,单位是MiB/s,GPSSD2类型云盘必须填写,其他类型不能填写。  说明: 了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
	Throughput *int32 `json:"throughput,omitempty"`
}

ModifyVolumeQoSOption

func (ModifyVolumeQoSOption) String added in v0.1.59

func (o ModifyVolumeQoSOption) String() string

type ModifyVolumeQoSRequest added in v0.1.59

type ModifyVolumeQoSRequest struct {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`

	Body *ModifyVolumeQoSRequestBody `json:"body,omitempty"`
}

ModifyVolumeQoSRequest Request Object

func (ModifyVolumeQoSRequest) String added in v0.1.59

func (o ModifyVolumeQoSRequest) String() string

type ModifyVolumeQoSRequestBody added in v0.1.59

type ModifyVolumeQoSRequestBody struct {
	QosModify *ModifyVolumeQoSOption `json:"qos_modify"`
}

ModifyVolumeQoSRequestBody This is a auto create Body Object

func (ModifyVolumeQoSRequestBody) String added in v0.1.59

type ModifyVolumeQoSResponse added in v0.1.59

type ModifyVolumeQoSResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ModifyVolumeQoSResponse Response Object

func (ModifyVolumeQoSResponse) String added in v0.1.59

func (o ModifyVolumeQoSResponse) String() string

type OsExtend

type OsExtend struct {

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

OsExtend

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

QuotaDetail 配额详细信息。

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

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

func (QuotaDetailBackupGigabytes) String

type QuotaDetailBackups

type QuotaDetailBackups struct {

	// 已使用的数量。
	InUse int32 `json:"in_use"`

	// 最大的数量。
	Limit int32 `json:"limit"`

	// 预留属性。
	Reserved int32 `json:"reserved"`
}

QuotaDetailBackups 备份个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailGigabytes 总容量,单位为GB,键值对,包含:reserved(预留)、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"`
}

QuotaDetailGigabytesGpssd GPSSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、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"`
}

QuotaDetailGigabytesSas SAS类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、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"`
}

QuotaDetailGigabytesSata SATA云硬盘类型预留的容量大小,单位为GB,键值对,包含:reserved(预留)、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"`
}

QuotaDetailGigabytesSsd SSD类型云硬盘预留的size大小,单位为GB,键值对,包含:reserved(预留)、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"`
}

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

func (QuotaDetailPerVolumeGigabytes) String

type QuotaDetailSnapshots

type QuotaDetailSnapshots struct {

	// 已使用的数量。
	InUse int32 `json:"in_use"`

	// 最大的数量。
	Limit int32 `json:"limit"`

	// 预留属性。
	Reserved int32 `json:"reserved"`
}

QuotaDetailSnapshots 快照个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailSnapshotsGpssd GPSSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailSnapshotsSas SAS类型云硬盘预留快照个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailSnapshotsSata SATA云硬盘类型预留快照个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailSnapshotsSsd SSD类型云硬盘预留快照个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailVolumes 云硬盘个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailVolumesGpssd GPSSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailVolumesSas SAS类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailVolumesSata SATA云硬盘类型预留的云硬盘个数,键值对,包含:reserved(预留)、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"`
}

QuotaDetailVolumesSsd SSD类型云硬盘预留的云硬盘个数,键值对,包含:reserved(预留)、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"`
}

QuotaList 配额信息。

func (QuotaList) String

func (o QuotaList) String() string

type ResizeVolumeRequest

type ResizeVolumeRequest struct {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`

	Body *ResizeVolumeRequestBody `json:"body,omitempty"`
}

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

ResizeVolumeRequestBody 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"`
	HttpStatusCode int     `json:"-"`
}

ResizeVolumeResponse 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 {

	// 快照ID
	SnapshotId string `json:"snapshot_id"`

	Body *RollbackSnapshotRequestBody `json:"body,omitempty"`
}

RollbackSnapshotRequest Request Object

func (RollbackSnapshotRequest) String

func (o RollbackSnapshotRequest) String() string

type RollbackSnapshotRequestBody

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

RollbackSnapshotRequestBody This is a auto create Body Object

func (RollbackSnapshotRequestBody) String

type RollbackSnapshotResponse

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

RollbackSnapshotResponse Response Object

func (RollbackSnapshotResponse) String

func (o RollbackSnapshotResponse) String() string

type ShowJobRequest

type ShowJobRequest struct {

	// job ID。
	JobId string `json:"job_id"`
}

ShowJobRequest 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"`
	HttpStatusCode int     `json:"-"`
}

ShowJobResponse 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

func (ShowJobResponseStatus) Value added in v0.0.90

func (c ShowJobResponseStatus) Value() string

type ShowJobResponseStatusEnum

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

func GetShowJobResponseStatusEnum

func GetShowJobResponseStatusEnum() ShowJobResponseStatusEnum

type ShowSnapshotRequest

type ShowSnapshotRequest struct {

	// 快照ID。
	SnapshotId string `json:"snapshot_id"`
}

ShowSnapshotRequest Request Object

func (ShowSnapshotRequest) String

func (o ShowSnapshotRequest) String() string

type ShowSnapshotResponse

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

ShowSnapshotResponse Response Object

func (ShowSnapshotResponse) String

func (o ShowSnapshotResponse) String() string

type ShowVersionRequest added in v0.1.1

type ShowVersionRequest struct {

	// 查询的目标版本号。 取值为:v1、v2、v3。
	Version ShowVersionRequestVersion `json:"version"`
}

ShowVersionRequest Request Object

func (ShowVersionRequest) String added in v0.1.1

func (o ShowVersionRequest) String() string

type ShowVersionRequestVersion added in v0.1.1

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

func (ShowVersionRequestVersion) MarshalJSON added in v0.1.1

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

func (*ShowVersionRequestVersion) UnmarshalJSON added in v0.1.1

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

func (ShowVersionRequestVersion) Value added in v0.1.1

type ShowVersionRequestVersionEnum added in v0.1.1

type ShowVersionRequestVersionEnum struct {
	V1 ShowVersionRequestVersion
	V2 ShowVersionRequestVersion
	V3 ShowVersionRequestVersion
}

func GetShowVersionRequestVersionEnum added in v0.1.1

func GetShowVersionRequestVersionEnum() ShowVersionRequestVersionEnum

type ShowVersionResponse added in v0.1.1

type ShowVersionResponse struct {

	// 版本信息。
	Versions       *[]Versions `json:"versions,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowVersionResponse Response Object

func (ShowVersionResponse) String added in v0.1.1

func (o ShowVersionResponse) String() string

type ShowVolumeRequest

type ShowVolumeRequest struct {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

ShowVolumeRequest Request Object

func (ShowVolumeRequest) String

func (o ShowVolumeRequest) String() string

type ShowVolumeResponse

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

ShowVolumeResponse Response Object

func (ShowVolumeResponse) String

func (o ShowVolumeResponse) String() string

type ShowVolumeTagsRequest

type ShowVolumeTagsRequest struct {

	// 云硬盘ID
	VolumeId string `json:"volume_id"`
}

ShowVolumeTagsRequest Request Object

func (ShowVolumeTagsRequest) String

func (o ShowVolumeTagsRequest) String() string

type ShowVolumeTagsResponse

type ShowVolumeTagsResponse struct {

	// 标签列表。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

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

SnapshotDetails 快照详情。

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

SnapshotList 快照列表信息。

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

SubJob 子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"`
}

SubJobEntities 子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

func (SubJobStatus) Value added in v0.0.90

func (c SubJobStatus) Value() string

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

Tag

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 Throughput added in v0.1.36

type Throughput struct {

	// 冻结标签。
	Frozened bool `json:"frozened"`

	// 云硬盘吞吐量标识。
	Id string `json:"id"`

	// 吞吐量大小。
	TotalVal int32 `json:"total_val"`
}

Throughput

func (Throughput) String added in v0.1.36

func (o Throughput) 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 {

	// 快照ID
	SnapshotId string `json:"snapshot_id"`

	Body *UpdateSnapshotRequestBody `json:"body,omitempty"`
}

UpdateSnapshotRequest Request Object

func (UpdateSnapshotRequest) String

func (o UpdateSnapshotRequest) String() string

type UpdateSnapshotRequestBody

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

UpdateSnapshotRequestBody 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"`
	HttpStatusCode int              `json:"-"`
}

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

UpdateVolumeOption

func (UpdateVolumeOption) String

func (o UpdateVolumeOption) String() string

type UpdateVolumeRequest

type UpdateVolumeRequest struct {

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`

	Body *UpdateVolumeRequestBody `json:"body,omitempty"`
}

UpdateVolumeRequest Request Object

func (UpdateVolumeRequest) String

func (o UpdateVolumeRequest) String() string

type UpdateVolumeRequestBody

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

UpdateVolumeRequestBody 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"`
	HttpStatusCode                    int     `json:"-"`
}

UpdateVolumeResponse Response Object

func (UpdateVolumeResponse) String

func (o UpdateVolumeResponse) String() string

type Versions added in v0.1.1

type Versions struct {

	// 接口版本的ID
	Id string `json:"id"`

	// 接口版本信息的URI描述信息
	Links []Link `json:"links"`

	// 接口版本的请求消息类型信息
	MediaTypes []MediaTypes `json:"media-types"`

	// 接口版本的最小版本号
	MinVersion *string `json:"min_version,omitempty"`

	// 接口版本的状态
	Status string `json:"status"`

	// 接口版本更新时间
	Updated string `json:"updated"`

	// 接口版本的版本号信息
	Version string `json:"version"`
}

Versions 版本信息结构体

func (Versions) String added in v0.1.1

func (o Versions) 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"`

	// 云硬盘类型。 目前支持\"SATA\",\"SAS\",\"GPSSD\",\"SSD\",\"ESSD\",\"GPSSD2\",\"ESSD2\"七种。  - \"SATA\"为普通IO云硬盘 - \"SAS\"为高IO云硬盘 - \"GPSSD\"为通用型SSD云硬盘 - \"SSD\"为超高IO云硬盘 - \"ESSD\"为极速IO云硬盘 - \"GPSSD2\"为通用型SSD V2云硬盘 - \"ESSD2\"为极速型SSD V2云硬盘
	VolumeType string `json:"volume_type"`

	// 云硬盘大小,单位为GB。
	Size int32 `json:"size"`

	// 预留属性。
	ConsistencygroupId *string `json:"consistencygroup_id,omitempty"`

	// 是否为启动云硬盘。 true:表示为启动云硬盘。 false:表示为非启动云硬盘。
	Bootable string `json:"bootable"`

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

	// 云硬盘序列号。 只有SCSI类型的非双活卷才会返回该字段,用于与虚拟机中的盘做对应关系。
	SerialNumber *string `json:"serial_number,omitempty"`

	Iops *Iops `json:"iops,omitempty"`

	Throughput *Throughput `json:"throughput,omitempty"`
}

VolumeDetail 云硬盘详情。

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

VolumeDetailForTag 云硬盘详情。

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

VolumeMetadata 云硬盘的元数据。

func (VolumeMetadata) String

func (o VolumeMetadata) String() string

type VolumeTransfer added in v0.1.1

type VolumeTransfer struct {

	// 云硬盘过户记录的创建时间。  时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
	CreatedAt string `json:"created_at"`

	// 云硬盘过户记录的ID。
	Id string `json:"id"`

	// 云硬盘过户记录的链接。
	Links []Link `json:"links"`

	// 云硬盘过户记录的名称。
	Name string `json:"name"`

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

func (VolumeTransfer) String added in v0.1.1

func (o VolumeTransfer) String() string

type VolumeTransferSummary added in v0.1.1

type VolumeTransferSummary struct {

	// 云硬盘过户记录的ID。
	Id string `json:"id"`

	// 云硬盘过户记录的链接
	Links []Link `json:"links"`

	// 云硬盘过户记录的名称
	Name string `json:"name"`

	// 云硬盘ID。
	VolumeId string `json:"volume_id"`
}

func (VolumeTransferSummary) String added in v0.1.1

func (o VolumeTransferSummary) 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"`
}

VolumeTypeExtraSpecs 云硬盘类型的规格

func (VolumeTypeExtraSpecs) String

func (o VolumeTypeExtraSpecs) String() string

type ZoneState

type ZoneState struct {

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

ZoneState 可用分区的状态。

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