v1

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CphClientBuilder

func CphClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCreateTags added in v0.1.21

func GenReqDefForBatchCreateTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteTags added in v0.1.21

func GenReqDefForBatchDeleteTags() *def.HttpRequestDef

func GenReqDefForBatchExportCloudPhoneData

func GenReqDefForBatchExportCloudPhoneData() *def.HttpRequestDef

func GenReqDefForBatchImportCloudPhoneData

func GenReqDefForBatchImportCloudPhoneData() *def.HttpRequestDef

func GenReqDefForChangeCloudPhoneServerModel

func GenReqDefForChangeCloudPhoneServerModel() *def.HttpRequestDef

func GenReqDefForCreateNet2CloudPhoneServer

func GenReqDefForCreateNet2CloudPhoneServer() *def.HttpRequestDef

func GenReqDefForDeleteShareApps

func GenReqDefForDeleteShareApps() *def.HttpRequestDef

func GenReqDefForDeleteShareFiles added in v0.1.10

func GenReqDefForDeleteShareFiles() *def.HttpRequestDef

func GenReqDefForImportTraffic

func GenReqDefForImportTraffic() *def.HttpRequestDef

func GenReqDefForInstallApk added in v0.1.13

func GenReqDefForInstallApk() *def.HttpRequestDef

func GenReqDefForListCloudPhoneImages

func GenReqDefForListCloudPhoneImages() *def.HttpRequestDef

func GenReqDefForListCloudPhoneModels

func GenReqDefForListCloudPhoneModels() *def.HttpRequestDef

func GenReqDefForListCloudPhoneServerModels

func GenReqDefForListCloudPhoneServerModels() *def.HttpRequestDef

func GenReqDefForListCloudPhoneServers

func GenReqDefForListCloudPhoneServers() *def.HttpRequestDef

func GenReqDefForListCloudPhones

func GenReqDefForListCloudPhones() *def.HttpRequestDef

func GenReqDefForListEncodeServers

func GenReqDefForListEncodeServers() *def.HttpRequestDef

func GenReqDefForListJobs

func GenReqDefForListJobs() *def.HttpRequestDef

func GenReqDefForListProjectTags added in v0.1.21

func GenReqDefForListProjectTags() *def.HttpRequestDef

func GenReqDefForListResourceInstances added in v0.1.21

func GenReqDefForListResourceInstances() *def.HttpRequestDef

func GenReqDefForListResourceTags added in v0.1.21

func GenReqDefForListResourceTags() *def.HttpRequestDef

func GenReqDefForListShareFiles

func GenReqDefForListShareFiles() *def.HttpRequestDef

func GenReqDefForPushFile added in v0.1.13

func GenReqDefForPushFile() *def.HttpRequestDef

func GenReqDefForPushShareApps

func GenReqDefForPushShareApps() *def.HttpRequestDef

func GenReqDefForPushShareFiles

func GenReqDefForPushShareFiles() *def.HttpRequestDef

func GenReqDefForResetCloudPhone

func GenReqDefForResetCloudPhone() *def.HttpRequestDef

func GenReqDefForRestartCloudPhone

func GenReqDefForRestartCloudPhone() *def.HttpRequestDef

func GenReqDefForRestartCloudPhoneServer

func GenReqDefForRestartCloudPhoneServer() *def.HttpRequestDef

func GenReqDefForRestartEncodeServer

func GenReqDefForRestartEncodeServer() *def.HttpRequestDef

func GenReqDefForRunShellCommand

func GenReqDefForRunShellCommand() *def.HttpRequestDef

func GenReqDefForRunSyncCommand

func GenReqDefForRunSyncCommand() *def.HttpRequestDef

func GenReqDefForShowBandwidthDetail

func GenReqDefForShowBandwidthDetail() *def.HttpRequestDef

func GenReqDefForShowCloudPhoneDetail

func GenReqDefForShowCloudPhoneDetail() *def.HttpRequestDef

func GenReqDefForShowCloudPhoneServerDetail

func GenReqDefForShowCloudPhoneServerDetail() *def.HttpRequestDef

func GenReqDefForShowJob

func GenReqDefForShowJob() *def.HttpRequestDef

func GenReqDefForStopCloudPhone

func GenReqDefForStopCloudPhone() *def.HttpRequestDef

func GenReqDefForUninstallApk added in v0.1.13

func GenReqDefForUninstallApk() *def.HttpRequestDef

func GenReqDefForUpdateBandwidth

func GenReqDefForUpdateBandwidth() *def.HttpRequestDef

func GenReqDefForUpdateCloudPhoneProperty

func GenReqDefForUpdateCloudPhoneProperty() *def.HttpRequestDef

func GenReqDefForUpdateKeypair

func GenReqDefForUpdateKeypair() *def.HttpRequestDef

func GenReqDefForUpdatePhoneName

func GenReqDefForUpdatePhoneName() *def.HttpRequestDef

func GenReqDefForUpdateServerName

func GenReqDefForUpdateServerName() *def.HttpRequestDef

Types

type BatchCreateTagsInvoker added in v0.1.21

type BatchCreateTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateTagsInvoker) Invoke added in v0.1.21

type BatchDeleteTagsInvoker added in v0.1.21

type BatchDeleteTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteTagsInvoker) Invoke added in v0.1.21

type BatchExportCloudPhoneDataInvoker

type BatchExportCloudPhoneDataInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchExportCloudPhoneDataInvoker) Invoke

type BatchImportCloudPhoneDataInvoker

type BatchImportCloudPhoneDataInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchImportCloudPhoneDataInvoker) Invoke

type ChangeCloudPhoneServerModelInvoker

type ChangeCloudPhoneServerModelInvoker struct {
	*invoker.BaseInvoker
}

func (*ChangeCloudPhoneServerModelInvoker) Invoke

type CphClient

type CphClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCphClient

func NewCphClient(hcClient *http_client.HcHttpClient) *CphClient

func (*CphClient) BatchCreateTags added in v0.1.21

func (c *CphClient) BatchCreateTags(request *model.BatchCreateTagsRequest) (*model.BatchCreateTagsResponse, error)

BatchCreateTags 批量添加标签

批量添加标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) BatchCreateTagsInvoker added in v0.1.21

func (c *CphClient) BatchCreateTagsInvoker(request *model.BatchCreateTagsRequest) *BatchCreateTagsInvoker

BatchCreateTagsInvoker 批量添加标签

func (*CphClient) BatchDeleteTags added in v0.1.21

func (c *CphClient) BatchDeleteTags(request *model.BatchDeleteTagsRequest) (*model.BatchDeleteTagsResponse, error)

BatchDeleteTags 批量删除标签

批量删除标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) BatchDeleteTagsInvoker added in v0.1.21

func (c *CphClient) BatchDeleteTagsInvoker(request *model.BatchDeleteTagsRequest) *BatchDeleteTagsInvoker

BatchDeleteTagsInvoker 批量删除标签

func (*CphClient) BatchExportCloudPhoneData

BatchExportCloudPhoneData 导出云手机数据

批量导出云手机中的数据。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk)

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) BatchExportCloudPhoneDataInvoker

func (c *CphClient) BatchExportCloudPhoneDataInvoker(request *model.BatchExportCloudPhoneDataRequest) *BatchExportCloudPhoneDataInvoker

BatchExportCloudPhoneDataInvoker 导出云手机数据

func (*CphClient) BatchImportCloudPhoneData

BatchImportCloudPhoneData 恢复云手机数据

批量恢复数据到云手机中。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk)

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) BatchImportCloudPhoneDataInvoker

func (c *CphClient) BatchImportCloudPhoneDataInvoker(request *model.BatchImportCloudPhoneDataRequest) *BatchImportCloudPhoneDataInvoker

BatchImportCloudPhoneDataInvoker 恢复云手机数据

func (*CphClient) ChangeCloudPhoneServerModel

ChangeCloudPhoneServerModel 变更云手机服务器规格

变更云手机服务器规格。变更的目标规格也必须为特殊的规格才可变更。接口调用成功后,大约2分钟左右规格会变更结束,在订单中心可以查看到变更的订单状态为成功,且查询服务器的详细信息,可以查看到服务器规格名称已经变成新的规格名称。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ChangeCloudPhoneServerModelInvoker

func (c *CphClient) ChangeCloudPhoneServerModelInvoker(request *model.ChangeCloudPhoneServerModelRequest) *ChangeCloudPhoneServerModelInvoker

ChangeCloudPhoneServerModelInvoker 变更云手机服务器规格

func (*CphClient) CreateNet2CloudPhoneServer

CreateNet2CloudPhoneServer 购买自定义网络云手机服务器

购买自定义网络的云手机服务器。自定义网络是云手机全新一代网络配置管理模式,支持您复用已有的VPC网络管理云手机服务器,支持云手机服务器复用您已购买的共享带宽等资源。 - 请确保您已具有虚拟私有云资源,创建服务器需要指定一个已有的虚拟私有云,否则无法创建服务器。 - 请确保已正确创建委托(委托名称cph_admin_trust,委托服务CPH),委托未被删除, 确保委托包含VPC FullAccess权限,委托及权限校验失败将导致云服务器创建失败。创建委托时委托类型选择“云服务”,云服务选择“CPH”,即允许CPH调用云服务。 - 请确保您使用的账号具有Security Administrator权限或者具备创建委托的细粒度权限iam:agencies:createAgency。 - 请确保您有足够的服务器及网络配额,配额校验不通过将导致创建失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) CreateNet2CloudPhoneServerInvoker

func (c *CphClient) CreateNet2CloudPhoneServerInvoker(request *model.CreateNet2CloudPhoneServerRequest) *CreateNet2CloudPhoneServerInvoker

CreateNet2CloudPhoneServerInvoker 购买自定义网络云手机服务器

func (*CphClient) DeleteShareApps

func (c *CphClient) DeleteShareApps(request *model.DeleteShareAppsRequest) (*model.DeleteShareAppsResponse, error)

DeleteShareApps 删除共享应用

在共享应用存储目录中删除共享应用,该功能仅在支持共享应用的云手机规格上可实现。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) DeleteShareAppsInvoker

func (c *CphClient) DeleteShareAppsInvoker(request *model.DeleteShareAppsRequest) *DeleteShareAppsInvoker

DeleteShareAppsInvoker 删除共享应用

func (*CphClient) DeleteShareFiles added in v0.1.10

func (c *CphClient) DeleteShareFiles(request *model.DeleteShareFilesRequest) (*model.DeleteShareFilesResponse, error)

DeleteShareFiles 删除共享存储文件

删除共享存储目录中文件,该功能仅在支持共享存储的云手机规格上可实现。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) DeleteShareFilesInvoker added in v0.1.10

func (c *CphClient) DeleteShareFilesInvoker(request *model.DeleteShareFilesRequest) *DeleteShareFilesInvoker

DeleteShareFilesInvoker 删除共享存储文件

func (*CphClient) ImportTraffic

func (c *CphClient) ImportTraffic(request *model.ImportTrafficRequest) (*model.ImportTrafficResponse, error)

ImportTraffic 云手机流量导流

手机流量路由修改。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ImportTrafficInvoker

func (c *CphClient) ImportTrafficInvoker(request *model.ImportTrafficRequest) *ImportTrafficInvoker

ImportTrafficInvoker 云手机流量导流

func (*CphClient) InstallApk added in v0.1.13

func (c *CphClient) InstallApk(request *model.InstallApkRequest) (*model.InstallApkResponse, error)

InstallApk 安装apk

在云手机中安装apk。系统会将指定的apk文件下载后直接安装到云手机中。 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk) - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 - 建议通过开发应用市场的方式安装apk。允许安装的apk大小限制为2G(即不可将obs桶内大于2G的apk安装到手机中),超过限制将返回错误。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) InstallApkInvoker added in v0.1.13

func (c *CphClient) InstallApkInvoker(request *model.InstallApkRequest) *InstallApkInvoker

InstallApkInvoker 安装apk

func (*CphClient) ListCloudPhoneImages

ListCloudPhoneImages 查询手机镜像

根据项目ID查询可用的手机镜像。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListCloudPhoneImagesInvoker

func (c *CphClient) ListCloudPhoneImagesInvoker(request *model.ListCloudPhoneImagesRequest) *ListCloudPhoneImagesInvoker

ListCloudPhoneImagesInvoker 查询手机镜像

func (*CphClient) ListCloudPhoneModels

ListCloudPhoneModels 查询云手机规格列表

查询或统计云手机的规格列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListCloudPhoneModelsInvoker

func (c *CphClient) ListCloudPhoneModelsInvoker(request *model.ListCloudPhoneModelsRequest) *ListCloudPhoneModelsInvoker

ListCloudPhoneModelsInvoker 查询云手机规格列表

func (*CphClient) ListCloudPhoneServerModels

ListCloudPhoneServerModels 查询云手机服务器规格列表

查询云手机服务器的规格列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListCloudPhoneServerModelsInvoker

func (c *CphClient) ListCloudPhoneServerModelsInvoker(request *model.ListCloudPhoneServerModelsRequest) *ListCloudPhoneServerModelsInvoker

ListCloudPhoneServerModelsInvoker 查询云手机服务器规格列表

func (*CphClient) ListCloudPhoneServers

ListCloudPhoneServers 查询云手机服务器列表

分页查询云手机服务器,云手机服务器列表按照创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在云手机服务器,则返回空列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListCloudPhoneServersInvoker

func (c *CphClient) ListCloudPhoneServersInvoker(request *model.ListCloudPhoneServersRequest) *ListCloudPhoneServersInvoker

ListCloudPhoneServersInvoker 查询云手机服务器列表

func (*CphClient) ListCloudPhones

func (c *CphClient) ListCloudPhones(request *model.ListCloudPhonesRequest) (*model.ListCloudPhonesResponse, error)

ListCloudPhones 查询云手机列表

分页查询云手机,云手机列表按照创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在云手机,则返回空列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListCloudPhonesInvoker

func (c *CphClient) ListCloudPhonesInvoker(request *model.ListCloudPhonesRequest) *ListCloudPhonesInvoker

ListCloudPhonesInvoker 查询云手机列表

func (*CphClient) ListEncodeServers

func (c *CphClient) ListEncodeServers(request *model.ListEncodeServersRequest) (*model.ListEncodeServersResponse, error)

ListEncodeServers 查询编码服务

查询编码服务列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListEncodeServersInvoker

func (c *CphClient) ListEncodeServersInvoker(request *model.ListEncodeServersRequest) *ListEncodeServersInvoker

ListEncodeServersInvoker 查询编码服务

func (*CphClient) ListJobs

func (c *CphClient) ListJobs(request *model.ListJobsRequest) (*model.ListJobsResponse, error)

ListJobs 查询任务执行状态列表

查询同一个request id下的任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListJobsInvoker

func (c *CphClient) ListJobsInvoker(request *model.ListJobsRequest) *ListJobsInvoker

ListJobsInvoker 查询任务执行状态列表

func (*CphClient) ListProjectTags added in v0.1.21

func (c *CphClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error)

ListProjectTags 查询项目标签

查询租户在指定区域和资源类型的所有标签集合。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListProjectTagsInvoker added in v0.1.21

func (c *CphClient) ListProjectTagsInvoker(request *model.ListProjectTagsRequest) *ListProjectTagsInvoker

ListProjectTagsInvoker 查询项目标签

func (*CphClient) ListResourceInstances added in v0.1.21

ListResourceInstances 查询资源实例

查询资源实例。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListResourceInstancesInvoker added in v0.1.21

func (c *CphClient) ListResourceInstancesInvoker(request *model.ListResourceInstancesRequest) *ListResourceInstancesInvoker

ListResourceInstancesInvoker 查询资源实例

func (*CphClient) ListResourceTags added in v0.1.21

func (c *CphClient) ListResourceTags(request *model.ListResourceTagsRequest) (*model.ListResourceTagsResponse, error)

ListResourceTags 查询资源标签

查询资源标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListResourceTagsInvoker added in v0.1.21

func (c *CphClient) ListResourceTagsInvoker(request *model.ListResourceTagsRequest) *ListResourceTagsInvoker

ListResourceTagsInvoker 查询资源标签

func (*CphClient) ListShareFiles

func (c *CphClient) ListShareFiles(request *model.ListShareFilesRequest) (*model.ListShareFilesResponse, error)

ListShareFiles 查询共享存储文件

查询共享存储指定路径下的文件列表,该功能仅在支持共享存储的云手机规格上可实现。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ListShareFilesInvoker

func (c *CphClient) ListShareFilesInvoker(request *model.ListShareFilesRequest) *ListShareFilesInvoker

ListShareFilesInvoker 查询共享存储文件

func (*CphClient) PushFile added in v0.1.13

func (c *CphClient) PushFile(request *model.PushFileRequest) (*model.PushFileResponse, error)

PushFile 推送文件

推送文件到云手机文件系统中。系统会将所指定的文件下载解压后,将解压后的内容全部推送到云手机的根目录下。只支持指定tar格式的文件进行推送,您需要将tar文件提前上传至您的OBS桶中。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk) - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 - 允许推送的文件大小限制为6G(即不可将obs桶内大于6G的文件推送到手机中),超过限制将返回错误。 - 手机的系统有限制,推送到系统盘不保证推送成功,推荐把文件推送到手机的数据盘。所以在构建\"tar\"文件时,应将待推送的文件放到本地创建的data目录后将其打包(如tar -cvf data.tar data ),以确保把文件推送到手机的数据盘下。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) PushFileInvoker added in v0.1.13

func (c *CphClient) PushFileInvoker(request *model.PushFileRequest) *PushFileInvoker

PushFileInvoker 推送文件

func (*CphClient) PushShareApps

func (c *CphClient) PushShareApps(request *model.PushShareAppsRequest) (*model.PushShareAppsResponse, error)

PushShareApps 推送共享应用

推送应用tar文件至共享应用存储目录中,该功能仅在支持共享应用的云手机规格上可实现。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk)

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) PushShareAppsInvoker

func (c *CphClient) PushShareAppsInvoker(request *model.PushShareAppsRequest) *PushShareAppsInvoker

PushShareAppsInvoker 推送共享应用

func (*CphClient) PushShareFiles

func (c *CphClient) PushShareFiles(request *model.PushShareFilesRequest) (*model.PushShareFilesResponse, error)

PushShareFiles 推送共享存储文件

推送文件至共享存储目录中,该功能仅在支持共享存储的云手机规格上可实现。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws)[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/intl/zh-cn/bestpractice-cph/cph_bp_0050.html)。](tag:hws_hk)

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) PushShareFilesInvoker

func (c *CphClient) PushShareFilesInvoker(request *model.PushShareFilesRequest) *PushShareFilesInvoker

PushShareFilesInvoker 推送共享存储文件

func (*CphClient) ResetCloudPhone

func (c *CphClient) ResetCloudPhone(request *model.ResetCloudPhoneRequest) (*model.ResetCloudPhoneResponse, error)

ResetCloudPhone 重置云手机

批量重置云手机,将云手机恢复出厂设置。该接口为异步接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ResetCloudPhoneInvoker

func (c *CphClient) ResetCloudPhoneInvoker(request *model.ResetCloudPhoneRequest) *ResetCloudPhoneInvoker

ResetCloudPhoneInvoker 重置云手机

func (*CphClient) RestartCloudPhone

func (c *CphClient) RestartCloudPhone(request *model.RestartCloudPhoneRequest) (*model.RestartCloudPhoneResponse, error)

RestartCloudPhone 重启云手机

批量重启云手机,也可用于开启云手机。该接口为异步接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) RestartCloudPhoneInvoker

func (c *CphClient) RestartCloudPhoneInvoker(request *model.RestartCloudPhoneRequest) *RestartCloudPhoneInvoker

RestartCloudPhoneInvoker 重启云手机

func (*CphClient) RestartCloudPhoneServer

RestartCloudPhoneServer 重启云手机服务器

批量重启云手机服务器。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) RestartCloudPhoneServerInvoker

func (c *CphClient) RestartCloudPhoneServerInvoker(request *model.RestartCloudPhoneServerRequest) *RestartCloudPhoneServerInvoker

RestartCloudPhoneServerInvoker 重启云手机服务器

func (*CphClient) RestartEncodeServer

RestartEncodeServer 重启编码服务

批量重启编码服务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) RestartEncodeServerInvoker

func (c *CphClient) RestartEncodeServerInvoker(request *model.RestartEncodeServerRequest) *RestartEncodeServerInvoker

RestartEncodeServerInvoker 重启编码服务

func (*CphClient) RunShellCommand

func (c *CphClient) RunShellCommand(request *model.RunShellCommandRequest) (*model.RunShellCommandResponse, error)

RunShellCommand 执行异步adb命令

在云手机中执行shell命令。该接口为异步接口。 - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) RunShellCommandInvoker

func (c *CphClient) RunShellCommandInvoker(request *model.RunShellCommandRequest) *RunShellCommandInvoker

RunShellCommandInvoker 执行异步adb命令

func (*CphClient) RunSyncCommand

func (c *CphClient) RunSyncCommand(request *model.RunSyncCommandRequest) (*model.RunSyncCommandResponse, error)

RunSyncCommand 执行同步adb命令

在云手机中同步执行命令并返回命令执行的输出信息,该接口仅支持adb shell命令的执行。1分钟内每个用户调用接口次数上限为6次,每个云手机允许执行命令超时时间为2秒,接口时间不超过30秒,执行云手机数越多,接口耗时相应越长。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) RunSyncCommandInvoker

func (c *CphClient) RunSyncCommandInvoker(request *model.RunSyncCommandRequest) *RunSyncCommandInvoker

RunSyncCommandInvoker 执行同步adb命令

func (*CphClient) ShowBandwidthDetail

ShowBandwidthDetail 查询带宽信息

查询云手机使用的带宽信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ShowBandwidthDetailInvoker

func (c *CphClient) ShowBandwidthDetailInvoker(request *model.ShowBandwidthDetailRequest) *ShowBandwidthDetailInvoker

ShowBandwidthDetailInvoker 查询带宽信息

func (*CphClient) ShowCloudPhoneDetail

ShowCloudPhoneDetail 查询云手机详情

查询云手机的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ShowCloudPhoneDetailInvoker

func (c *CphClient) ShowCloudPhoneDetailInvoker(request *model.ShowCloudPhoneDetailRequest) *ShowCloudPhoneDetailInvoker

ShowCloudPhoneDetailInvoker 查询云手机详情

func (*CphClient) ShowCloudPhoneServerDetail

ShowCloudPhoneServerDetail 查询云手机服务器详情

根据server_id查询云手机服务器的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ShowCloudPhoneServerDetailInvoker

func (c *CphClient) ShowCloudPhoneServerDetailInvoker(request *model.ShowCloudPhoneServerDetailRequest) *ShowCloudPhoneServerDetailInvoker

ShowCloudPhoneServerDetailInvoker 查询云手机服务器详情

func (*CphClient) ShowJob

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

ShowJob 查询任务执行状态

查询任务的执行状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) ShowJobInvoker

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

ShowJobInvoker 查询任务执行状态

func (*CphClient) StopCloudPhone

func (c *CphClient) StopCloudPhone(request *model.StopCloudPhoneRequest) (*model.StopCloudPhoneResponse, error)

StopCloudPhone 关闭云手机

批量关闭云手机。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) StopCloudPhoneInvoker

func (c *CphClient) StopCloudPhoneInvoker(request *model.StopCloudPhoneRequest) *StopCloudPhoneInvoker

StopCloudPhoneInvoker 关闭云手机

func (*CphClient) UninstallApk added in v0.1.13

func (c *CphClient) UninstallApk(request *model.UninstallApkRequest) (*model.UninstallApkResponse, error)

UninstallApk 卸载apk

在云手机中卸载apk。该接口为异步接口。 - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UninstallApkInvoker added in v0.1.13

func (c *CphClient) UninstallApkInvoker(request *model.UninstallApkRequest) *UninstallApkInvoker

UninstallApkInvoker 卸载apk

func (*CphClient) UpdateBandwidth

func (c *CphClient) UpdateBandwidth(request *model.UpdateBandwidthRequest) (*model.UpdateBandwidthResponse, error)

UpdateBandwidth 修改共享带宽

修改云手机使用的共享带宽大小。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UpdateBandwidthInvoker

func (c *CphClient) UpdateBandwidthInvoker(request *model.UpdateBandwidthRequest) *UpdateBandwidthInvoker

UpdateBandwidthInvoker 修改共享带宽

func (*CphClient) UpdateCloudPhoneProperty

UpdateCloudPhoneProperty 更新云手机属性

部分云手机属性开放更新能力,部分属性无法更新,部分属性需要重启手机生效,属性约束请云手机属性列表。如果手机处于异常状态,属性更新后需恢复手机状态为运行中才可生效。该接口为异步接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UpdateCloudPhonePropertyInvoker

func (c *CphClient) UpdateCloudPhonePropertyInvoker(request *model.UpdateCloudPhonePropertyRequest) *UpdateCloudPhonePropertyInvoker

UpdateCloudPhonePropertyInvoker 更新云手机属性

func (*CphClient) UpdateKeypair

func (c *CphClient) UpdateKeypair(request *model.UpdateKeypairRequest) (*model.UpdateKeypairResponse, error)

UpdateKeypair 更改密钥对

修改连接云手机的密钥对。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UpdateKeypairInvoker

func (c *CphClient) UpdateKeypairInvoker(request *model.UpdateKeypairRequest) *UpdateKeypairInvoker

UpdateKeypairInvoker 更改密钥对

func (*CphClient) UpdatePhoneName

func (c *CphClient) UpdatePhoneName(request *model.UpdatePhoneNameRequest) (*model.UpdatePhoneNameResponse, error)

UpdatePhoneName 修改云手机名称

根据phoneId修改phoneName。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UpdatePhoneNameInvoker

func (c *CphClient) UpdatePhoneNameInvoker(request *model.UpdatePhoneNameRequest) *UpdatePhoneNameInvoker

UpdatePhoneNameInvoker 修改云手机名称

func (*CphClient) UpdateServerName

func (c *CphClient) UpdateServerName(request *model.UpdateServerNameRequest) (*model.UpdateServerNameResponse, error)

UpdateServerName 修改云手机服务器名称

根据serverId修改serverName。

Please refer to HUAWEI cloud API Explorer for details.

func (*CphClient) UpdateServerNameInvoker

func (c *CphClient) UpdateServerNameInvoker(request *model.UpdateServerNameRequest) *UpdateServerNameInvoker

UpdateServerNameInvoker 修改云手机服务器名称

type CreateNet2CloudPhoneServerInvoker

type CreateNet2CloudPhoneServerInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateNet2CloudPhoneServerInvoker) Invoke

type DeleteShareAppsInvoker

type DeleteShareAppsInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteShareAppsInvoker) Invoke

type DeleteShareFilesInvoker added in v0.1.10

type DeleteShareFilesInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteShareFilesInvoker) Invoke added in v0.1.10

type ImportTrafficInvoker

type ImportTrafficInvoker struct {
	*invoker.BaseInvoker
}

func (*ImportTrafficInvoker) Invoke

type InstallApkInvoker added in v0.1.13

type InstallApkInvoker struct {
	*invoker.BaseInvoker
}

func (*InstallApkInvoker) Invoke added in v0.1.13

type ListCloudPhoneImagesInvoker

type ListCloudPhoneImagesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCloudPhoneImagesInvoker) Invoke

type ListCloudPhoneModelsInvoker

type ListCloudPhoneModelsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCloudPhoneModelsInvoker) Invoke

type ListCloudPhoneServerModelsInvoker

type ListCloudPhoneServerModelsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCloudPhoneServerModelsInvoker) Invoke

type ListCloudPhoneServersInvoker

type ListCloudPhoneServersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCloudPhoneServersInvoker) Invoke

type ListCloudPhonesInvoker

type ListCloudPhonesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCloudPhonesInvoker) Invoke

type ListEncodeServersInvoker

type ListEncodeServersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListEncodeServersInvoker) Invoke

type ListJobsInvoker

type ListJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListJobsInvoker) Invoke

func (i *ListJobsInvoker) Invoke() (*model.ListJobsResponse, error)

type ListProjectTagsInvoker added in v0.1.21

type ListProjectTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListProjectTagsInvoker) Invoke added in v0.1.21

type ListResourceInstancesInvoker added in v0.1.21

type ListResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceInstancesInvoker) Invoke added in v0.1.21

type ListResourceTagsInvoker added in v0.1.21

type ListResourceTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceTagsInvoker) Invoke added in v0.1.21

type ListShareFilesInvoker

type ListShareFilesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListShareFilesInvoker) Invoke

type PushFileInvoker added in v0.1.13

type PushFileInvoker struct {
	*invoker.BaseInvoker
}

func (*PushFileInvoker) Invoke added in v0.1.13

func (i *PushFileInvoker) Invoke() (*model.PushFileResponse, error)

type PushShareAppsInvoker

type PushShareAppsInvoker struct {
	*invoker.BaseInvoker
}

func (*PushShareAppsInvoker) Invoke

type PushShareFilesInvoker

type PushShareFilesInvoker struct {
	*invoker.BaseInvoker
}

func (*PushShareFilesInvoker) Invoke

type ResetCloudPhoneInvoker

type ResetCloudPhoneInvoker struct {
	*invoker.BaseInvoker
}

func (*ResetCloudPhoneInvoker) Invoke

type RestartCloudPhoneInvoker

type RestartCloudPhoneInvoker struct {
	*invoker.BaseInvoker
}

func (*RestartCloudPhoneInvoker) Invoke

type RestartCloudPhoneServerInvoker

type RestartCloudPhoneServerInvoker struct {
	*invoker.BaseInvoker
}

func (*RestartCloudPhoneServerInvoker) Invoke

type RestartEncodeServerInvoker

type RestartEncodeServerInvoker struct {
	*invoker.BaseInvoker
}

func (*RestartEncodeServerInvoker) Invoke

type RunShellCommandInvoker

type RunShellCommandInvoker struct {
	*invoker.BaseInvoker
}

func (*RunShellCommandInvoker) Invoke

type RunSyncCommandInvoker

type RunSyncCommandInvoker struct {
	*invoker.BaseInvoker
}

func (*RunSyncCommandInvoker) Invoke

type ShowBandwidthDetailInvoker

type ShowBandwidthDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBandwidthDetailInvoker) Invoke

type ShowCloudPhoneDetailInvoker

type ShowCloudPhoneDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCloudPhoneDetailInvoker) Invoke

type ShowCloudPhoneServerDetailInvoker

type ShowCloudPhoneServerDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCloudPhoneServerDetailInvoker) Invoke

type ShowJobInvoker

type ShowJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobInvoker) Invoke

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

type StopCloudPhoneInvoker

type StopCloudPhoneInvoker struct {
	*invoker.BaseInvoker
}

func (*StopCloudPhoneInvoker) Invoke

type UninstallApkInvoker added in v0.1.13

type UninstallApkInvoker struct {
	*invoker.BaseInvoker
}

func (*UninstallApkInvoker) Invoke added in v0.1.13

type UpdateBandwidthInvoker

type UpdateBandwidthInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateBandwidthInvoker) Invoke

type UpdateCloudPhonePropertyInvoker

type UpdateCloudPhonePropertyInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateCloudPhonePropertyInvoker) Invoke

type UpdateKeypairInvoker

type UpdateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateKeypairInvoker) Invoke

type UpdatePhoneNameInvoker

type UpdatePhoneNameInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdatePhoneNameInvoker) Invoke

type UpdateServerNameInvoker

type UpdateServerNameInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateServerNameInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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