Documentation ¶
Index ¶
- func EvsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForBatchCreateVolumeTags() *def.HttpRequestDef
- func GenReqDefForBatchDeleteVolumeTags() *def.HttpRequestDef
- func GenReqDefForCinderExportToImage() *def.HttpRequestDef
- func GenReqDefForCinderListAvailabilityZones() *def.HttpRequestDef
- func GenReqDefForCinderListQuotas() *def.HttpRequestDef
- func GenReqDefForCinderListVolumeTypes() *def.HttpRequestDef
- func GenReqDefForCreateSnapshot() *def.HttpRequestDef
- func GenReqDefForCreateVolume() *def.HttpRequestDef
- func GenReqDefForDeleteSnapshot() *def.HttpRequestDef
- func GenReqDefForDeleteVolume() *def.HttpRequestDef
- func GenReqDefForListSnapshots() *def.HttpRequestDef
- func GenReqDefForListVolumeTags() *def.HttpRequestDef
- func GenReqDefForListVolumes() *def.HttpRequestDef
- func GenReqDefForListVolumesByTags() *def.HttpRequestDef
- func GenReqDefForResizeVolume() *def.HttpRequestDef
- func GenReqDefForRollbackSnapshot() *def.HttpRequestDef
- func GenReqDefForShowJob() *def.HttpRequestDef
- func GenReqDefForShowSnapshot() *def.HttpRequestDef
- func GenReqDefForShowVolume() *def.HttpRequestDef
- func GenReqDefForShowVolumeTags() *def.HttpRequestDef
- func GenReqDefForUpdateSnapshot() *def.HttpRequestDef
- func GenReqDefForUpdateVolume() *def.HttpRequestDef
- type EvsClient
- func (c *EvsClient) BatchCreateVolumeTags(request *model.BatchCreateVolumeTagsRequest) (*model.BatchCreateVolumeTagsResponse, error)
- func (c *EvsClient) BatchDeleteVolumeTags(request *model.BatchDeleteVolumeTagsRequest) (*model.BatchDeleteVolumeTagsResponse, error)
- func (c *EvsClient) CinderExportToImage(request *model.CinderExportToImageRequest) (*model.CinderExportToImageResponse, error)
- func (c *EvsClient) CinderListAvailabilityZones(request *model.CinderListAvailabilityZonesRequest) (*model.CinderListAvailabilityZonesResponse, error)
- func (c *EvsClient) CinderListQuotas(request *model.CinderListQuotasRequest) (*model.CinderListQuotasResponse, error)
- func (c *EvsClient) CinderListVolumeTypes(request *model.CinderListVolumeTypesRequest) (*model.CinderListVolumeTypesResponse, error)
- func (c *EvsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)
- func (c *EvsClient) CreateVolume(request *model.CreateVolumeRequest) (*model.CreateVolumeResponse, error)
- func (c *EvsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)
- func (c *EvsClient) DeleteVolume(request *model.DeleteVolumeRequest) (*model.DeleteVolumeResponse, error)
- func (c *EvsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)
- func (c *EvsClient) ListVolumeTags(request *model.ListVolumeTagsRequest) (*model.ListVolumeTagsResponse, error)
- func (c *EvsClient) ListVolumes(request *model.ListVolumesRequest) (*model.ListVolumesResponse, error)
- func (c *EvsClient) ListVolumesByTags(request *model.ListVolumesByTagsRequest) (*model.ListVolumesByTagsResponse, error)
- func (c *EvsClient) ResizeVolume(request *model.ResizeVolumeRequest) (*model.ResizeVolumeResponse, error)
- func (c *EvsClient) RollbackSnapshot(request *model.RollbackSnapshotRequest) (*model.RollbackSnapshotResponse, error)
- func (c *EvsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)
- func (c *EvsClient) ShowSnapshot(request *model.ShowSnapshotRequest) (*model.ShowSnapshotResponse, error)
- func (c *EvsClient) ShowVolume(request *model.ShowVolumeRequest) (*model.ShowVolumeResponse, error)
- func (c *EvsClient) ShowVolumeTags(request *model.ShowVolumeTagsRequest) (*model.ShowVolumeTagsResponse, error)
- func (c *EvsClient) UpdateSnapshot(request *model.UpdateSnapshotRequest) (*model.UpdateSnapshotResponse, error)
- func (c *EvsClient) UpdateVolume(request *model.UpdateVolumeRequest) (*model.UpdateVolumeResponse, error)
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 GenReqDefForCinderExportToImage ¶
func GenReqDefForCinderExportToImage() *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 EvsClient ¶
type EvsClient struct {
HcClient *http_client.HcHttpClient
}
func NewEvsClient ¶
func NewEvsClient(hcClient *http_client.HcHttpClient) *EvsClient
func (*EvsClient) BatchCreateVolumeTags ¶
func (c *EvsClient) BatchCreateVolumeTags(request *model.BatchCreateVolumeTagsRequest) (*model.BatchCreateVolumeTagsResponse, error)
为指定云硬盘批量添加标签。 添加标签时,如果云硬盘的标签已存在相同key,则会覆盖已有标签。 单个云硬盘最多支持创建10个标签。
func (*EvsClient) BatchDeleteVolumeTags ¶
func (c *EvsClient) BatchDeleteVolumeTags(request *model.BatchDeleteVolumeTagsRequest) (*model.BatchDeleteVolumeTagsResponse, error)
为指定云硬盘批量删除标签。
func (*EvsClient) CinderExportToImage ¶
func (c *EvsClient) CinderExportToImage(request *model.CinderExportToImageRequest) (*model.CinderExportToImageResponse, error)
将系统盘或数据盘的数据导出为IMS镜像,导出的镜像在IMS的私有镜像列表中可以查 看并使用。
func (*EvsClient) CinderListAvailabilityZones ¶
func (c *EvsClient) CinderListAvailabilityZones(request *model.CinderListAvailabilityZonesRequest) (*model.CinderListAvailabilityZonesResponse, error)
查询所有的可用分区信息。
func (*EvsClient) CinderListQuotas ¶
func (c *EvsClient) CinderListQuotas(request *model.CinderListQuotasRequest) (*model.CinderListQuotasResponse, error)
查询租户的详细配额。
func (*EvsClient) CinderListVolumeTypes ¶
func (c *EvsClient) CinderListVolumeTypes(request *model.CinderListVolumeTypesRequest) (*model.CinderListVolumeTypesResponse, error)
查询云硬盘类型列表。
func (*EvsClient) CreateSnapshot ¶
func (c *EvsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)
创建云硬盘快照。
func (*EvsClient) CreateVolume ¶
func (c *EvsClient) CreateVolume(request *model.CreateVolumeRequest) (*model.CreateVolumeResponse, error)
创建按需或包周期云硬盘。 在创建包周期云硬盘的场景下: - 如果您需要查看订单可用的优惠券,请参考\"[查询订单可用优惠券](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)”。
func (*EvsClient) DeleteSnapshot ¶
func (c *EvsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)
删除云硬盘快照。
func (*EvsClient) DeleteVolume ¶
func (c *EvsClient) DeleteVolume(request *model.DeleteVolumeRequest) (*model.DeleteVolumeResponse, error)
删除一个云硬盘。
func (*EvsClient) ListSnapshots ¶
func (c *EvsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)
查询云硬盘快照详细列表信息。
func (*EvsClient) ListVolumeTags ¶
func (c *EvsClient) ListVolumeTags(request *model.ListVolumeTagsRequest) (*model.ListVolumeTagsResponse, error)
获取某个租户的所有云硬盘资源的标签信息。
func (*EvsClient) ListVolumes ¶
func (c *EvsClient) ListVolumes(request *model.ListVolumesRequest) (*model.ListVolumesResponse, error)
查询所有云硬盘的详细信息。
func (*EvsClient) ListVolumesByTags ¶
func (c *EvsClient) ListVolumesByTags(request *model.ListVolumesByTagsRequest) (*model.ListVolumesByTagsResponse, error)
通过标签查询云硬盘资源实例详情。
func (*EvsClient) ResizeVolume ¶
func (c *EvsClient) ResizeVolume(request *model.ResizeVolumeRequest) (*model.ResizeVolumeResponse, error)
对按需或者包周期云硬盘进行扩容。 在扩容包周期云硬盘的场景下: - 如果您需要查看订单可用的优惠券,请参考\"[查询订单可用优惠券](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)”。
func (*EvsClient) RollbackSnapshot ¶
func (c *EvsClient) RollbackSnapshot(request *model.RollbackSnapshotRequest) (*model.RollbackSnapshotResponse, error)
将快照数据回滚到云硬盘。支持企业项目授权功能。
func (*EvsClient) ShowJob ¶
func (c *EvsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)
查询Job的执行状态。 可用于查询创建云硬盘,扩容云硬盘,删除云硬盘等API的执行状态。
func (*EvsClient) ShowSnapshot ¶
func (c *EvsClient) ShowSnapshot(request *model.ShowSnapshotRequest) (*model.ShowSnapshotResponse, error)
查询单个云硬盘快照信息。支持企业项目授权功能。
func (*EvsClient) ShowVolume ¶
func (c *EvsClient) ShowVolume(request *model.ShowVolumeRequest) (*model.ShowVolumeResponse, error)
查询单个云硬盘的详细信息。支持企业项目授权功能。
func (*EvsClient) ShowVolumeTags ¶
func (c *EvsClient) ShowVolumeTags(request *model.ShowVolumeTagsRequest) (*model.ShowVolumeTagsResponse, error)
查询指定云硬盘的标签信息。
func (*EvsClient) UpdateSnapshot ¶
func (c *EvsClient) UpdateSnapshot(request *model.UpdateSnapshotRequest) (*model.UpdateSnapshotResponse, error)
更新云硬盘快照。支持企业项目授权功能。
func (*EvsClient) UpdateVolume ¶
func (c *EvsClient) UpdateVolume(request *model.UpdateVolumeRequest) (*model.UpdateVolumeResponse, error)
更新一个云硬盘的名称和描述。