v2

package
v0.0.105 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvsClientBuilder

func EvsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCreateVolumeTags

func GenReqDefForBatchCreateVolumeTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteVolumeTags

func GenReqDefForBatchDeleteVolumeTags() *def.HttpRequestDef

func GenReqDefForCinderListAvailabilityZones

func GenReqDefForCinderListAvailabilityZones() *def.HttpRequestDef

func GenReqDefForCinderListQuotas

func GenReqDefForCinderListQuotas() *def.HttpRequestDef

func GenReqDefForCinderListVolumeTypes

func GenReqDefForCinderListVolumeTypes() *def.HttpRequestDef

func GenReqDefForCreateSnapshot

func GenReqDefForCreateSnapshot() *def.HttpRequestDef

func GenReqDefForCreateVolume

func GenReqDefForCreateVolume() *def.HttpRequestDef

func GenReqDefForDeleteSnapshot

func GenReqDefForDeleteSnapshot() *def.HttpRequestDef

func GenReqDefForDeleteVolume

func GenReqDefForDeleteVolume() *def.HttpRequestDef

func GenReqDefForListSnapshots

func GenReqDefForListSnapshots() *def.HttpRequestDef

func GenReqDefForListVolumeTags

func GenReqDefForListVolumeTags() *def.HttpRequestDef

func GenReqDefForListVolumes

func GenReqDefForListVolumes() *def.HttpRequestDef

func GenReqDefForListVolumesByTags

func GenReqDefForListVolumesByTags() *def.HttpRequestDef

func GenReqDefForResizeVolume

func GenReqDefForResizeVolume() *def.HttpRequestDef

func GenReqDefForRollbackSnapshot

func GenReqDefForRollbackSnapshot() *def.HttpRequestDef

func GenReqDefForShowJob

func GenReqDefForShowJob() *def.HttpRequestDef

func GenReqDefForShowSnapshot

func GenReqDefForShowSnapshot() *def.HttpRequestDef

func GenReqDefForShowVolume

func GenReqDefForShowVolume() *def.HttpRequestDef

func GenReqDefForShowVolumeTags

func GenReqDefForShowVolumeTags() *def.HttpRequestDef

func GenReqDefForUpdateSnapshot

func GenReqDefForUpdateSnapshot() *def.HttpRequestDef

func GenReqDefForUpdateVolume

func GenReqDefForUpdateVolume() *def.HttpRequestDef

Types

type BatchCreateVolumeTagsInvoker added in v0.0.90

type BatchCreateVolumeTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateVolumeTagsInvoker) Invoke added in v0.0.90

type BatchDeleteVolumeTagsInvoker added in v0.0.90

type BatchDeleteVolumeTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteVolumeTagsInvoker) Invoke added in v0.0.90

type CinderListAvailabilityZonesInvoker added in v0.0.90

type CinderListAvailabilityZonesInvoker struct {
	*invoker.BaseInvoker
}

func (*CinderListAvailabilityZonesInvoker) Invoke added in v0.0.90

type CinderListQuotasInvoker added in v0.0.90

type CinderListQuotasInvoker struct {
	*invoker.BaseInvoker
}

func (*CinderListQuotasInvoker) Invoke added in v0.0.90

type CinderListVolumeTypesInvoker added in v0.0.90

type CinderListVolumeTypesInvoker struct {
	*invoker.BaseInvoker
}

func (*CinderListVolumeTypesInvoker) Invoke added in v0.0.90

type CreateSnapshotInvoker added in v0.0.90

type CreateSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSnapshotInvoker) Invoke added in v0.0.90

type CreateVolumeInvoker added in v0.0.90

type CreateVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateVolumeInvoker) Invoke added in v0.0.90

type DeleteSnapshotInvoker added in v0.0.90

type DeleteSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSnapshotInvoker) Invoke added in v0.0.90

type DeleteVolumeInvoker added in v0.0.90

type DeleteVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteVolumeInvoker) Invoke added in v0.0.90

type EvsClient

type EvsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewEvsClient

func NewEvsClient(hcClient *http_client.HcHttpClient) *EvsClient

func (*EvsClient) BatchCreateVolumeTags

BatchCreateVolumeTags 为指定云硬盘批量添加标签

为指定云硬盘批量添加标签。

添加标签时,如果云硬盘的标签已存在相同key,则会覆盖已有标签。 单个云硬盘最多支持创建10个标签。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) BatchCreateVolumeTagsInvoker added in v0.0.90

func (c *EvsClient) BatchCreateVolumeTagsInvoker(request *model.BatchCreateVolumeTagsRequest) *BatchCreateVolumeTagsInvoker

BatchCreateVolumeTagsInvoker 为指定云硬盘批量添加标签

func (*EvsClient) BatchDeleteVolumeTags

BatchDeleteVolumeTags 为指定云硬盘批量删除标签

为指定云硬盘批量删除标签。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) BatchDeleteVolumeTagsInvoker added in v0.0.90

func (c *EvsClient) BatchDeleteVolumeTagsInvoker(request *model.BatchDeleteVolumeTagsRequest) *BatchDeleteVolumeTagsInvoker

BatchDeleteVolumeTagsInvoker 为指定云硬盘批量删除标签

func (*EvsClient) CinderListAvailabilityZones

CinderListAvailabilityZones 查询所有的可用分区信息

查询所有的可用分区信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) CinderListAvailabilityZonesInvoker added in v0.0.90

func (c *EvsClient) CinderListAvailabilityZonesInvoker(request *model.CinderListAvailabilityZonesRequest) *CinderListAvailabilityZonesInvoker

CinderListAvailabilityZonesInvoker 查询所有的可用分区信息

func (*EvsClient) CinderListQuotas

func (c *EvsClient) CinderListQuotas(request *model.CinderListQuotasRequest) (*model.CinderListQuotasResponse, error)

CinderListQuotas 查询租户的详细配额

查询租户的详细配额。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) CinderListQuotasInvoker added in v0.0.90

func (c *EvsClient) CinderListQuotasInvoker(request *model.CinderListQuotasRequest) *CinderListQuotasInvoker

CinderListQuotasInvoker 查询租户的详细配额

func (*EvsClient) CinderListVolumeTypes

CinderListVolumeTypes 查询云硬盘类型列表

查询云硬盘类型列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) CinderListVolumeTypesInvoker added in v0.0.90

func (c *EvsClient) CinderListVolumeTypesInvoker(request *model.CinderListVolumeTypesRequest) *CinderListVolumeTypesInvoker

CinderListVolumeTypesInvoker 查询云硬盘类型列表

func (*EvsClient) CreateSnapshot

func (c *EvsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)

CreateSnapshot 创建云硬盘快照

创建云硬盘快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) CreateSnapshotInvoker added in v0.0.90

func (c *EvsClient) CreateSnapshotInvoker(request *model.CreateSnapshotRequest) *CreateSnapshotInvoker

CreateSnapshotInvoker 创建云硬盘快照

func (*EvsClient) CreateVolume

func (c *EvsClient) CreateVolume(request *model.CreateVolumeRequest) (*model.CreateVolumeResponse, error)

CreateVolume 创建云硬盘

创建按需或包周期云硬盘。 在创建包周期云硬盘的场景下: - 如果您需要查看订单可用的优惠券,请参考\"[查询订单可用优惠券](https://support.huaweicloud.com/api-oce/zh-cn_topic_0092953630.html)\"。 - 如果您需要支付订单,请参考\"[支付包周期产品订单](https://support.huaweicloud.com/api-oce/zh-cn_topic_0075746561.html)\"。 - 如果您需要查询订单的资源开通详情,请参考\"[查询订单的资源开通详情](https://support.huaweicloud.com/api-oce/api_order_00001.html)\"。 - 如果您需要退订该包周期资源,请参考“[退订包周期资源](https://support.huaweicloud.com/api-oce/zh-cn_topic_0082522030.html)”。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) CreateVolumeInvoker added in v0.0.90

func (c *EvsClient) CreateVolumeInvoker(request *model.CreateVolumeRequest) *CreateVolumeInvoker

CreateVolumeInvoker 创建云硬盘

func (*EvsClient) DeleteSnapshot

func (c *EvsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)

DeleteSnapshot 删除云硬盘快照

删除云硬盘快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) DeleteSnapshotInvoker added in v0.0.90

func (c *EvsClient) DeleteSnapshotInvoker(request *model.DeleteSnapshotRequest) *DeleteSnapshotInvoker

DeleteSnapshotInvoker 删除云硬盘快照

func (*EvsClient) DeleteVolume

func (c *EvsClient) DeleteVolume(request *model.DeleteVolumeRequest) (*model.DeleteVolumeResponse, error)

DeleteVolume 删除云硬盘

删除一个云硬盘。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) DeleteVolumeInvoker added in v0.0.90

func (c *EvsClient) DeleteVolumeInvoker(request *model.DeleteVolumeRequest) *DeleteVolumeInvoker

DeleteVolumeInvoker 删除云硬盘

func (*EvsClient) ListSnapshots

func (c *EvsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)

ListSnapshots 查询云硬盘快照详细列表信息

查询云硬盘快照详细列表信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ListSnapshotsInvoker added in v0.0.90

func (c *EvsClient) ListSnapshotsInvoker(request *model.ListSnapshotsRequest) *ListSnapshotsInvoker

ListSnapshotsInvoker 查询云硬盘快照详细列表信息

func (*EvsClient) ListVolumeTags

func (c *EvsClient) ListVolumeTags(request *model.ListVolumeTagsRequest) (*model.ListVolumeTagsResponse, error)

ListVolumeTags 获取云硬盘资源的所有标签

获取某个租户的所有云硬盘资源的标签信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ListVolumeTagsInvoker added in v0.0.90

func (c *EvsClient) ListVolumeTagsInvoker(request *model.ListVolumeTagsRequest) *ListVolumeTagsInvoker

ListVolumeTagsInvoker 获取云硬盘资源的所有标签

func (*EvsClient) ListVolumes

func (c *EvsClient) ListVolumes(request *model.ListVolumesRequest) (*model.ListVolumesResponse, error)

ListVolumes 查询所有云硬盘详情

查询所有云硬盘的详细信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ListVolumesByTags

func (c *EvsClient) ListVolumesByTags(request *model.ListVolumesByTagsRequest) (*model.ListVolumesByTagsResponse, error)

ListVolumesByTags 通过标签查询云硬盘资源实例详情

通过标签查询云硬盘资源实例详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ListVolumesByTagsInvoker added in v0.0.90

func (c *EvsClient) ListVolumesByTagsInvoker(request *model.ListVolumesByTagsRequest) *ListVolumesByTagsInvoker

ListVolumesByTagsInvoker 通过标签查询云硬盘资源实例详情

func (*EvsClient) ListVolumesInvoker added in v0.0.90

func (c *EvsClient) ListVolumesInvoker(request *model.ListVolumesRequest) *ListVolumesInvoker

ListVolumesInvoker 查询所有云硬盘详情

func (*EvsClient) ResizeVolume

func (c *EvsClient) ResizeVolume(request *model.ResizeVolumeRequest) (*model.ResizeVolumeResponse, error)

ResizeVolume 扩容云硬盘

对按需或者包周期云硬盘进行扩容。 在扩容包周期云硬盘的场景下: - 如果您需要查看订单可用的优惠券,请参考\"[查询订单可用优惠券](https://support.huaweicloud.com/api-oce/zh-cn_topic_0092953630.html)\"。 - 如果您需要支付订单,请参考\"[支付包周期产品订单](https://support.huaweicloud.com/api-oce/zh-cn_topic_0075746561.html)\"。 - 如果您需要查询订单的资源开通详情,请参考\"[查询订单的资源开通详情](https://support.huaweicloud.com/api-oce/api_order_00001.html)\"。 - 如果您需要退订该包周期资源,请参考“[退订包周期资源](https://support.huaweicloud.com/api-oce/zh-cn_topic_0082522030.html)”。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ResizeVolumeInvoker added in v0.0.90

func (c *EvsClient) ResizeVolumeInvoker(request *model.ResizeVolumeRequest) *ResizeVolumeInvoker

ResizeVolumeInvoker 扩容云硬盘

func (*EvsClient) RollbackSnapshot

func (c *EvsClient) RollbackSnapshot(request *model.RollbackSnapshotRequest) (*model.RollbackSnapshotResponse, error)

RollbackSnapshot 回滚快照到云硬盘

将快照数据回滚到云硬盘。支持企业项目授权功能。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) RollbackSnapshotInvoker added in v0.0.90

func (c *EvsClient) RollbackSnapshotInvoker(request *model.RollbackSnapshotRequest) *RollbackSnapshotInvoker

RollbackSnapshotInvoker 回滚快照到云硬盘

func (*EvsClient) ShowJob

func (c *EvsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)

ShowJob 查询job的状态

查询Job的执行状态。 可用于查询创建云硬盘,扩容云硬盘,删除云硬盘等API的执行状态。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ShowJobInvoker added in v0.0.90

func (c *EvsClient) ShowJobInvoker(request *model.ShowJobRequest) *ShowJobInvoker

ShowJobInvoker 查询job的状态

func (*EvsClient) ShowSnapshot

func (c *EvsClient) ShowSnapshot(request *model.ShowSnapshotRequest) (*model.ShowSnapshotResponse, error)

ShowSnapshot 查询单个云硬盘快照详细信息

查询单个云硬盘快照信息。支持企业项目授权功能。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ShowSnapshotInvoker added in v0.0.90

func (c *EvsClient) ShowSnapshotInvoker(request *model.ShowSnapshotRequest) *ShowSnapshotInvoker

ShowSnapshotInvoker 查询单个云硬盘快照详细信息

func (*EvsClient) ShowVolume

func (c *EvsClient) ShowVolume(request *model.ShowVolumeRequest) (*model.ShowVolumeResponse, error)

ShowVolume 查询单个云硬盘详情

查询单个云硬盘的详细信息。支持企业项目授权功能。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ShowVolumeInvoker added in v0.0.90

func (c *EvsClient) ShowVolumeInvoker(request *model.ShowVolumeRequest) *ShowVolumeInvoker

ShowVolumeInvoker 查询单个云硬盘详情

func (*EvsClient) ShowVolumeTags

func (c *EvsClient) ShowVolumeTags(request *model.ShowVolumeTagsRequest) (*model.ShowVolumeTagsResponse, error)

ShowVolumeTags 查询云硬盘标签

查询指定云硬盘的标签信息。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) ShowVolumeTagsInvoker added in v0.0.90

func (c *EvsClient) ShowVolumeTagsInvoker(request *model.ShowVolumeTagsRequest) *ShowVolumeTagsInvoker

ShowVolumeTagsInvoker 查询云硬盘标签

func (*EvsClient) UpdateSnapshot

func (c *EvsClient) UpdateSnapshot(request *model.UpdateSnapshotRequest) (*model.UpdateSnapshotResponse, error)

UpdateSnapshot 更新云硬盘快照

更新云硬盘快照。支持企业项目授权功能。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) UpdateSnapshotInvoker added in v0.0.90

func (c *EvsClient) UpdateSnapshotInvoker(request *model.UpdateSnapshotRequest) *UpdateSnapshotInvoker

UpdateSnapshotInvoker 更新云硬盘快照

func (*EvsClient) UpdateVolume

func (c *EvsClient) UpdateVolume(request *model.UpdateVolumeRequest) (*model.UpdateVolumeResponse, error)

UpdateVolume 更新云硬盘

更新一个云硬盘的名称和描述。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*EvsClient) UpdateVolumeInvoker added in v0.0.90

func (c *EvsClient) UpdateVolumeInvoker(request *model.UpdateVolumeRequest) *UpdateVolumeInvoker

UpdateVolumeInvoker 更新云硬盘

type ListSnapshotsInvoker added in v0.0.90

type ListSnapshotsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSnapshotsInvoker) Invoke added in v0.0.90

type ListVolumeTagsInvoker added in v0.0.90

type ListVolumeTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVolumeTagsInvoker) Invoke added in v0.0.90

type ListVolumesByTagsInvoker added in v0.0.90

type ListVolumesByTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVolumesByTagsInvoker) Invoke added in v0.0.90

type ListVolumesInvoker added in v0.0.90

type ListVolumesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVolumesInvoker) Invoke added in v0.0.90

type ResizeVolumeInvoker added in v0.0.90

type ResizeVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*ResizeVolumeInvoker) Invoke added in v0.0.90

type RollbackSnapshotInvoker added in v0.0.90

type RollbackSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*RollbackSnapshotInvoker) Invoke added in v0.0.90

type ShowJobInvoker added in v0.0.90

type ShowJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobInvoker) Invoke added in v0.0.90

func (i *ShowJobInvoker) Invoke() (*model.ShowJobResponse, error)

type ShowSnapshotInvoker added in v0.0.90

type ShowSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSnapshotInvoker) Invoke added in v0.0.90

type ShowVolumeInvoker added in v0.0.90

type ShowVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVolumeInvoker) Invoke added in v0.0.90

type ShowVolumeTagsInvoker added in v0.0.90

type ShowVolumeTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVolumeTagsInvoker) Invoke added in v0.0.90

type UpdateSnapshotInvoker added in v0.0.90

type UpdateSnapshotInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateSnapshotInvoker) Invoke added in v0.0.90

type UpdateVolumeInvoker added in v0.0.90

type UpdateVolumeInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateVolumeInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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