uphone

package
v0.21.37 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package uphone include resources of ucloud uphone product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInstance

type AppInstance struct {

	// 应用的唯一标识ID
	AppId string

	// 应用名称。
	AppName string

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 应用描述。
	Description string

	// 修改时间,格式为Unix时间戳。
	ModifyTime int
}

AppInstance -

type AppVersionInstance

type AppVersionInstance struct {

	// 应用的唯一标识ID
	AppId string

	// 应用版本的唯一标识ID
	AppVersionId string

	// 应用版本名。
	AppVersionName string

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 应用版本描述。
	Description string

	// 修改时间,格式为Unix时间戳。
	ModifyTime int

	// 应用包名。
	PackageName string

	// 应用版本相关的Apk文件存放的公网URL地址。
	URL string
}

AppVersionInstance -

type CityInstance

type CityInstance struct {

	// 城市别名。如cn-sh2
	CityAlias string

	// 城市Id,eg: cn-shanghai, cn-jinan
	CityId string

	// 城市名称,eg:上海二、济南市
	CityName string

	// 城市类型。枚举值: <br /> * CENTER,中心城市  <br />* EDGE,边缘计算城市
	CityType string

	// 表示该城市资源是否售罄
	IsSoldOut bool
}

CityInstance -

type CreateUPhoneAppRequest

type CreateUPhoneAppRequest struct {
	request.CommonBase

	// 应用描述。
	Description *string `required:"false"`

	// 应用名称。
	Name *string `required:"true"`
}

CreateUPhoneAppRequest is request schema for CreateUPhoneApp action

type CreateUPhoneAppResponse

type CreateUPhoneAppResponse struct {
	response.CommonBase

	// 应用的唯一标识ID
	AppId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

CreateUPhoneAppResponse is response schema for CreateUPhoneApp action

type CreateUPhoneAppVersionRequest

type CreateUPhoneAppVersionRequest struct {
	request.CommonBase

	// 应用的唯一标识ID。
	AppId *string `required:"true"`

	// 应用版本描述。
	Description *string `required:"false"`

	// 应用版本名称,最大字符长度为255。
	Name *string `required:"true"`

	// 应用版本相关的Apk文件存放的公网URL地址。
	URL *string `required:"true"`
}

CreateUPhoneAppVersionRequest is request schema for CreateUPhoneAppVersion action

type CreateUPhoneAppVersionResponse

type CreateUPhoneAppVersionResponse struct {
	response.CommonBase

	// 应用版本的唯一标识ID
	AppVersionId string
}

CreateUPhoneAppVersionResponse is response schema for CreateUPhoneAppVersion action

type CreateUPhoneImageRequest

type CreateUPhoneImageRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 镜像的描述信息。长度为2~256个英文或中文字符
	Description *string `required:"false"`

	// 镜像名称。长度为2~128个英文或中文字符。
	Name *string `required:"false"`

	// 手机实例的资源ID
	UPhoneId *string `required:"true"`
}

CreateUPhoneImageRequest is request schema for CreateUPhoneImage action

type CreateUPhoneImageResponse

type CreateUPhoneImageResponse struct {
	response.CommonBase

	// 云手机自定义镜像资源 ID
	ImageId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

CreateUPhoneImageResponse is response schema for CreateUPhoneImage action

type CreateUPhoneServerParamNetworkInterface

type CreateUPhoneServerParamNetworkInterface struct {
}

CreateUPhoneServerParamNetworkInterface is request schema for complex param

type CreateUPhoneServerRequest

type CreateUPhoneServerRequest struct {
	request.CommonBase

	// 计费模式。枚举值为:> 年 Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费;默认为月付
	ChargeType *string `required:"false"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机服务器代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机服务器计费
	CouponId *string `required:"false"`

	// 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
	ImageId *string `required:"true"`

	// 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
	IpDestRegion *string `required:"false"`

	// 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。
	IpProportion *int `required:"false"`

	// 云手机服务器实例名称。默认:UPhone。请遵照字段规范设定实例名称。
	Name *string `required:"true"`

	// 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。
	Quantity *string `required:"false"`

	// 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表]()查询支持的云手机服务器规格。
	ServerModelName *string `required:"true"`

	// 独立IP参数。共享带宽值大小。传此参数需要和IpProportion同时传。
	ShareBandwidth *int `required:"false"`

	// 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。
	Tag *string `required:"false"`

	// 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
	UPhoneModelName *string `required:"true"`
}

CreateUPhoneServerRequest is request schema for CreateUPhoneServer action

type CreateUPhoneServerResponse

type CreateUPhoneServerResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// 云手机服务器的实例 ID
	ServerId string
}

CreateUPhoneServerResponse is response schema for CreateUPhoneServer action

type DeleteUPhoneImageRequest

type DeleteUPhoneImageRequest struct {
	request.CommonBase

	// 云手机自定义镜像资源ID
	ImageId *string `required:"true"`
}

DeleteUPhoneImageRequest is request schema for DeleteUPhoneImage action

type DeleteUPhoneImageResponse

type DeleteUPhoneImageResponse struct {
	response.CommonBase

	// 云手机自定义镜像资源ID
	ImageId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

DeleteUPhoneImageResponse is response schema for DeleteUPhoneImage action

type DeleteUPhoneServerRequest

type DeleteUPhoneServerRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 删除云手机服务器时是否释放绑定的EIP。默认为false。
	ReleaseEIP *bool `required:"false"`

	// 删除云手机服务器时是否同时删除挂载的数据盘。默认为false。
	ReleaseUDisk *bool `required:"false"`

	// 云手机服务器的实例ID 可通过 [DescribeUPhoneServer]()获取
	ServerId *string `required:"true"`
}

DeleteUPhoneServerRequest is request schema for DeleteUPhoneServer action

type DeleteUPhoneServerResponse

type DeleteUPhoneServerResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

DeleteUPhoneServerResponse is response schema for DeleteUPhoneServer action

type DescribeUPhoneAppRequest

type DescribeUPhoneAppRequest struct {
	request.CommonBase

	// 数组】应用的唯一标识 ID,调用方式举例:AppIds.0=希望获取应用信息的应用 1,AppIds.1=应用 2。 如果不传入,则返回当前 城市 所有符合条件的应用列表。
	AppIds []string `required:"false"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`
}

DescribeUPhoneAppRequest is request schema for DescribeUPhoneApp action

type DescribeUPhoneAppResponse

type DescribeUPhoneAppResponse struct {
	response.CommonBase

	// 云手机应用实例列表,每项参数可见数据模型 [AppInstance](#appInstance)
	Apps []AppInstance

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// AppInstance总数
	TotalCount int
}

DescribeUPhoneAppResponse is response schema for DescribeUPhoneApp action

type DescribeUPhoneAppVersionRequest

type DescribeUPhoneAppVersionRequest struct {
	request.CommonBase

	// 应用的唯一标识ID
	AppId *string `required:"false"`

	// 【数组】应用版本的唯一标识 ID,调用方式举例:AppVersionIds.0=希望获取应用版本信息的应用版本 1,AppVersionIds.1=应用版本 2。 如果不传入,则返回当前 城市 所有符合条件的应用版本列表。
	AppVersionIds []string `required:"false"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 云手机Id。此参数表示查询手机上所安装的应用版本。
	UPhoneId *string `required:"false"`
}

DescribeUPhoneAppVersionRequest is request schema for DescribeUPhoneAppVersion action

type DescribeUPhoneAppVersionResponse

type DescribeUPhoneAppVersionResponse struct {
	response.CommonBase

	// 云手机应用版本实例列表,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance)
	AppVersions []AppVersionInstance

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// AppVersionInstance总数
	TotalCount int
}

DescribeUPhoneAppVersionResponse is response schema for DescribeUPhoneAppVersion action

type DescribeUPhoneCitiesRequest

type DescribeUPhoneCitiesRequest struct {
	request.CommonBase
}

DescribeUPhoneCitiesRequest is request schema for DescribeUPhoneCities action

type DescribeUPhoneCitiesResponse

type DescribeUPhoneCitiesResponse struct {
	response.CommonBase

	// 云手机城市实例列表,每项参数可见数据模型 [CityInstance](#CityInstance)
	UPhoneCities []CityInstance
}

DescribeUPhoneCitiesResponse is response schema for DescribeUPhoneCities action

type DescribeUPhoneDetailByAppRequest

type DescribeUPhoneDetailByAppRequest struct {
	request.CommonBase

	// 应用的唯一标识ID
	AppId *string `required:"true"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`
}

DescribeUPhoneDetailByAppRequest is request schema for DescribeUPhoneDetailByApp action

type DescribeUPhoneDetailByAppResponse

type DescribeUPhoneDetailByAppResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// UPhoneWithAppVersion总数
	TotalCount int

	// 带有应用版本的云手机实例,具体参数见数据模型 [UPhoneDetailInstanc](#UPhoneDetailInstanc)
	UPhoneDetails []UPhoneDetailInstance
}

DescribeUPhoneDetailByAppResponse is response schema for DescribeUPhoneDetailByApp action

type DescribeUPhoneImageRequest

type DescribeUPhoneImageRequest struct {
	request.CommonBase

	// 【数组】云手机镜像资源 ID,调用方式举例:ImageIds.0=希望获取信息的云手机镜像 1,ImageIds.1=云手机镜像 2。 如果不传入,则返回当前 城市 所有符合条件的云手机镜像。
	ImageIds []string `required:"false"`

	// 最大返回镜像数量,默认为20,最大100
	Limit *string `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *string `required:"false"`

	// 希望获取的镜像类型,枚举值,不传则返回全部类型的镜像: <br /> >标准镜像: BASE; <br />>自制镜像: CUSTOM;  <br />
	Type *string `required:"false"`
}

DescribeUPhoneImageRequest is request schema for DescribeUPhoneImage action

type DescribeUPhoneImageResponse

type DescribeUPhoneImageResponse struct {
	response.CommonBase

	// 云手机镜像实例列表,具体参数见 [UPhoneImageInstance](#uphoneimageinstance)
	Images []UPhoneImageInstance

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// UPhoneImageInstance总数
	TotalCount int
}

DescribeUPhoneImageResponse is response schema for DescribeUPhoneImage action

type DescribeUPhoneIpRegionsRequest

type DescribeUPhoneIpRegionsRequest struct {
	request.CommonBase

	// 城市Id,eg: cn-shanghai, cn-hangzhou
	CityId *string `required:"true"`
}

DescribeUPhoneIpRegionsRequest is request schema for DescribeUPhoneIpRegions action

type DescribeUPhoneIpRegionsResponse

type DescribeUPhoneIpRegionsResponse struct {
	response.CommonBase

	// 独立IP地域信息。
	Regions []IpRegion

	// 总数量
	TotalCount int
}

DescribeUPhoneIpRegionsResponse is response schema for DescribeUPhoneIpRegions action

type DescribeUPhoneJobRequest

type DescribeUPhoneJobRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】Job 的唯一标识 Id,调用方式举例:ServerIds.0=希望查询状态的 Job1,ServerIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。
	JobIds []string `required:"false"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// Job状态,枚举值:* 等待状态: PENDING;* 运行状态: RUNNING;* 成功状态: SUCCESS* 失败状态: FAILED* 部分成功状态:PARTIAL_SUCCESS
	State *string `required:"false"`

	// 【数组】Job 类型,调用方式举例:JobTypes.0=希望查询的 Job 类型 1,JobTypes.1=Job 类型 2。 如果不传入,则返回当前 城市 所有符合条件的 Job 类型。Job 类型仅支持 INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND、CREATE_SERVER_AND_UPHONE、SET_UPHONE_GPS、SET_UPHONE_CONFIG、UPLOAD_FILE、DELETE_UPHONE
	Types []string `required:"false"`
}

DescribeUPhoneJobRequest is request schema for DescribeUPhoneJob action

type DescribeUPhoneJobResponse

type DescribeUPhoneJobResponse struct {
	response.CommonBase

	// Job信息,详情见数据结构Job(如果Status为等待中,此字段为空)
	Jobs []Job

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// Job总数
	TotalCount int
}

DescribeUPhoneJobResponse is response schema for DescribeUPhoneJob action

type DescribeUPhoneModelRequest

type DescribeUPhoneModelRequest struct {
	request.CommonBase

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 【数组】要获得信息的 UPhoneModel 名称。调用方式举例:UPhoneModelNames.0=希望获取信息的 UPhoneModel1,UPhoneModelNames.1=UPhoneModel2。 如果不传入,则返回当前 城市 所有符合条件的 UPhoneModel。
	UPhoneModelNames []string `required:"false"`
}

DescribeUPhoneModelRequest is request schema for DescribeUPhoneModel action

type DescribeUPhoneModelResponse

type DescribeUPhoneModelResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// UPhoneModelInstance总数
	TotalCount int

	// UPhoneModel实例列表,具体参数可见 UPhoneModelInstance
	UPhoneModels []UPhoneModelInstance
}

DescribeUPhoneModelResponse is response schema for DescribeUPhoneModel action

type DescribeUPhoneRequest

type DescribeUPhoneRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 是否返回全部。如果有此参数,分页不生效。
	IsAll *bool `required:"false"`

	// 返回数据长度,默认为200,最大200
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 云手机服务器的资源ID。
	ServerId *string `required:"false"`

	// 要查询的业务组名称
	Tag *string `required:"false"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
	UPhoneIds []string `required:"false"`
}

DescribeUPhoneRequest is request schema for DescribeUPhone action

type DescribeUPhoneResponse

type DescribeUPhoneResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// UPhoneInstance总数
	TotalCount int

	// 云手机实例列表,每项参数可见数据模型 [UPhoneInstance](#UPhoneInstance)
	UPhones []UPhoneInstance
}

DescribeUPhoneResponse is response schema for DescribeUPhone action

type DescribeUPhoneServerModelRequest

type DescribeUPhoneServerModelRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 【数组】要获得信息的 ServerModel 名称。调用方式举例:ServerModelNames.0=希望获取信息的 ServerModel1,ServerModelNames.1=ServerModel2。 如果不传入,则返回当前 城市 所有符合条件的 ServerModel。
	ServerModelNames []string `required:"false"`
}

DescribeUPhoneServerModelRequest is request schema for DescribeUPhoneServerModel action

type DescribeUPhoneServerModelResponse

type DescribeUPhoneServerModelResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// ServerModel实例列表,每项参数可见数据模型 ServerModelInstance
	ServerModels []ServerModelInstance

	// ServerModelInstance总数
	TotalCount int
}

DescribeUPhoneServerModelResponse is response schema for DescribeUPhoneServerModel action

type DescribeUPhoneServerRequest

type DescribeUPhoneServerRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 【数组】云手机服务器的资源 ID,调用方式举例:ServerIds.0=希望获取信息的服务器 1,ServerIds.1=服务器 2。 如果不传入,则返回当前 城市 所有符合条件的云手机服务器。
	ServerIds []string `required:"false"`
}

DescribeUPhoneServerRequest is request schema for DescribeUPhoneServer action

type DescribeUPhoneServerResponse

type DescribeUPhoneServerResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云手机服务器列表,每项参数可见数据模型 [ServerInstance](#ServerInstance)
	Servers []ServerInstance

	// ServerInstance总数
	TotalCount int
}

DescribeUPhoneServerResponse is response schema for DescribeUPhoneServer action

type GetUPhoneScreenCaptureRequest

type GetUPhoneScreenCaptureRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机ID
	UPhoneID *string `required:"true"`
}

GetUPhoneScreenCaptureRequest is request schema for GetUPhoneScreenCapture action

type GetUPhoneScreenCaptureResponse

type GetUPhoneScreenCaptureResponse struct {
	response.CommonBase

	// 云手机截图URL
	URL string
}

GetUPhoneScreenCaptureResponse is response schema for GetUPhoneScreenCapture action

type GetUPhoneServerPriceRequest

type GetUPhoneServerPriceRequest struct {
	request.CommonBase

	// 购买独立IP需要此参数。共享带宽总值。
	Bandwidth *int `required:"false"`

	// 计费模式。枚举值为:> Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。
	ChargeType *string `required:"false"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 购买独立IP需要此参数。需要的eip数量。
	IpCount *int `required:"false"`

	// 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
	IpDestRegion *string `required:"false"`

	// 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。
	Quantity *int `required:"false"`

	// 服务器规格名称
	ServerModelName *string `required:"true"`
}

GetUPhoneServerPriceRequest is request schema for GetUPhoneServerPrice action

type GetUPhoneServerPriceResponse

type GetUPhoneServerPriceResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// 价格列表,每项参数见UPhoneServerPriceSet
	PriceSet []UPhoneServerPriceSet
}

GetUPhoneServerPriceResponse is response schema for GetUPhoneServerPrice action

type GetUPhoneServerRenewPriceRequest

type GetUPhoneServerRenewPriceRequest struct {
	request.CommonBase

	// 计费模式。枚举值为:> Year,按年付费;> Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格
	ChargeType *string `required:"false"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机服务器的唯一标识,可通过[查询云手机服务器列表]()获取。
	ServerId *string `required:"true"`
}

GetUPhoneServerRenewPriceRequest is request schema for GetUPhoneServerRenewPrice action

type GetUPhoneServerRenewPriceResponse

type GetUPhoneServerRenewPriceResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string

	// 价格列表,具体参数见UPhoneServerPriceSet
	PriceSet []UPhoneServerPriceSet
}

GetUPhoneServerRenewPriceResponse is response schema for GetUPhoneServerRenewPrice action

type InstallUPhoneAppVersionRequest

type InstallUPhoneAppVersionRequest struct {
	request.CommonBase

	// 应用版本的唯一标识ID
	AppVersionId *string `required:"true"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望安装应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

InstallUPhoneAppVersionRequest is request schema for InstallUPhoneAppVersion action

type InstallUPhoneAppVersionResponse

type InstallUPhoneAppVersionResponse struct {
	response.CommonBase

	// 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
	JobId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

InstallUPhoneAppVersionResponse is response schema for InstallUPhoneAppVersion action

type IpRegion

type IpRegion struct {

	// 已开通地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
	Id string

	// 库存状态。枚举值:有库存:Available;无库存:SoldOut
	StockStatus string
}

IpRegion - 独立IP地域信息

type IpSet

type IpSet struct {

	// IP地址
	Ip string

	// ipv4或者ipv6
	IpMode string

	// 共有或私有
	IpType string

	// 运营商
	Isp string
}

IpSet -

type Job

type Job struct {

	// 安装/卸载Job相关的应用版本唯一标识
	AppVersionId string

	// Job处理开始时间,格式为Unix时间戳。
	BeginTime int

	// Job创建时间,格式为Unix时间戳。
	CreateTime int

	// Job处理结束时间,格式为Unix时间戳。
	EndTime int

	// Job的唯一标识Id
	JobId string

	// Job类型,仅支持INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND。
	JobType string

	// 任务状态* 等待中:PENDING* 运行中:RUNNING* 成功:SUCCESS* 部分成功:PARTIAL_SUCCESS* 失败:FAILED
	State string

	// Task信息,详情见数据结构Task(如果State为PENDING,此字段为空)
	Tasks []Task

	// 此Job相关的云手机唯一标识
	UPhoneIds []string
}

Job -

type ModifyUPhoneNameRequest

type ModifyUPhoneNameRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机实例名称
	Name *string `required:"true"`

	// 云手机实例的资源ID
	UPhoneId *string `required:"true"`
}

ModifyUPhoneNameRequest is request schema for ModifyUPhoneName action

type ModifyUPhoneNameResponse

type ModifyUPhoneNameResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云手机实例的资源ID
	UPhoneId string
}

ModifyUPhoneNameResponse is response schema for ModifyUPhoneName action

type ModifyUPhoneRemarkRequest

type ModifyUPhoneRemarkRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 备注
	Remark *string `required:"false"`

	// 云手机实例的资源ID
	UPhoneId *string `required:"true"`
}

ModifyUPhoneRemarkRequest is request schema for ModifyUPhoneRemark action

type ModifyUPhoneRemarkResponse

type ModifyUPhoneRemarkResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云手机实例的资源ID
	UPhoneId string
}

ModifyUPhoneRemarkResponse is response schema for ModifyUPhoneRemark action

type ModifyUPhoneServerNameRequest

type ModifyUPhoneServerNameRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机服务器实例名称
	Name *string `required:"false"`

	// 云手机服务器的唯一标识
	ServerId *string `required:"true"`
}

ModifyUPhoneServerNameRequest is request schema for ModifyUPhoneServerName action

type ModifyUPhoneServerNameResponse

type ModifyUPhoneServerNameResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云手机服务器的唯一标识
	ServerId string
}

ModifyUPhoneServerNameResponse is response schema for ModifyUPhoneServerName action

type ModifyUPhoneServerRemarkRequest

type ModifyUPhoneServerRemarkRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 备注
	Remark *string `required:"false"`

	// 云手机服务器的唯一标识
	ServerId *string `required:"true"`
}

ModifyUPhoneServerRemarkRequest is request schema for ModifyUPhoneServerRemark action

type ModifyUPhoneServerRemarkResponse

type ModifyUPhoneServerRemarkResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云手机服务器的唯一标识
	ServerId string
}

ModifyUPhoneServerRemarkResponse is response schema for ModifyUPhoneServerRemark action

type PoweroffUPhoneRequest

type PoweroffUPhoneRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望关闭的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

PoweroffUPhoneRequest is request schema for PoweroffUPhone action

type PoweroffUPhoneResponse

type PoweroffUPhoneResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

PoweroffUPhoneResponse is response schema for PoweroffUPhone action

type PoweronUPhoneRequest

type PoweronUPhoneRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。
	UPhoneIds []string `required:"true"`
}

PoweronUPhoneRequest is request schema for PoweronUPhone action

type PoweronUPhoneResponse

type PoweronUPhoneResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

PoweronUPhoneResponse is response schema for PoweronUPhone action

type RebootUPhoneRequest

type RebootUPhoneRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

RebootUPhoneRequest is request schema for RebootUPhone action

type RebootUPhoneResponse

type RebootUPhoneResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

RebootUPhoneResponse is response schema for RebootUPhone action

type ResetUPhoneRequest

type ResetUPhoneRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

ResetUPhoneRequest is request schema for ResetUPhone action

type ResetUPhoneResponse

type ResetUPhoneResponse struct {
	response.CommonBase

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

ResetUPhoneResponse is response schema for ResetUPhone action

type Results

type Results struct {

	//
	ExecuteMsg string

	//
	UPhoneId string
}

Results -

type RunAsyncCommandRequest

type RunAsyncCommandRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 待执行的命令。
	Content *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

RunAsyncCommandRequest is request schema for RunAsyncCommand action

type RunAsyncCommandResponse

type RunAsyncCommandResponse struct {
	response.CommonBase

	// 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
	JobId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

RunAsyncCommandResponse is response schema for RunAsyncCommand action

type RunSyncCommandRequest

type RunSyncCommandRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 待执行的命令。
	Content *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

RunSyncCommandRequest is request schema for RunSyncCommand action

type RunSyncCommandResponse

type RunSyncCommandResponse struct {
	response.CommonBase

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string

	// 云主机实例列表,每项参数可见数据模型 [UPhoneCommandResult](#UPhoneCommandResult)
	Results []UPhoneCommandResult
}

RunSyncCommandResponse is response schema for RunSyncCommand action

type ServerDiskSet

type ServerDiskSet struct {

	// 磁盘类型。请参考磁盘类型。
	DiskType string

	// 是否是系统盘。枚举值:> True,是系统盘> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
	IsBoot bool

	// 磁盘大小,单位: GB
	Size int
}

ServerDiskSet -

type ServerInstance

type ServerInstance struct {

	// 计费模式。枚举值为:<br />  *Year,按年付费;<br />*  Month,按月付费;<br />默认为月付
	ChargeType string

	// 城市Id,eg: cn-shanghai, cn-jinan
	CityId string

	// 城市名称,eg:上海二、济南市
	CityName string

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 到期时间,格式为Unix时间戳。
	ExpireTime int

	// 服务器IP信息
	IpSet []IpSet

	// 修改时间,格式为Unix时间戳。
	ModifyTime int

	// 云服务器备注。
	Remark string

	// 云手机服务器的唯一标识。
	ServerId string

	// 云服务器规格。
	ServerModel ServerModelInstance

	// 云手机服务器名称。
	ServerName string

	// 实例状态,枚举值: * 初始化: Initializing; * 云手机创建中: UPhoneCreating;* 运行中: Running; * 删除中: Deleting; * 创建失败: CreateFailed * 未知(空字符串,获取状态超时或出错):""
	State string

	// 云手机开数。
	UPhoneCount int

	// 云手机规格名称。
	UPhoneModelName string
}

ServerInstance -

type ServerModelInstance

type ServerModelInstance struct {

	// 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。
	CPU int

	// 磁盘信息见 UPhoneDiskSet
	DiskSet []ServerDiskSet

	// GPU个数
	GPU int

	// GPU类型
	GPUType string

	// 内存大小。单位:MB。
	Memory int

	// ServerModel名称
	ServerModelName string

	// 表示该机型是否上线,用于前端判断是否开放给用户。枚举值:>AVAILABLE,开放>UNAVAILABLE, 不开放
	ServerModelState string

	// 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec)
	UPhoneSpecs []UPhoneSpec
}

ServerModelInstance -

type SetUPhoneConfigRequest

type SetUPhoneConfigRequest struct {
	request.CommonBase

	// 异步请求开关,只有为1的时候才是异步,不填或者其他数值为同步
	Async *string `required:"false"`

	// 云手机画面传输码率(例,8000)取值范围[100,5000]
	Bitrate *string `required:"false"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机dpi,取值范围[100,1000]
	Dpi *string `required:"false"`

	// 云手机画面刷新率,即帧率(例,30)取值范围[1,200]
	Refresh *string `required:"false"`

	// 云手机画面分辨率(宽x高) (例,1920x1080,中间是字母x)宽和高的取值范围[100,5000]
	Resolution *string `required:"false"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

SetUPhoneConfigRequest is request schema for SetUPhoneConfig action

type SetUPhoneConfigResponse

type SetUPhoneConfigResponse struct {
	response.CommonBase

	// 异步请求成功后返回JobId,用以查询Job状态
	JobId string

	// 失败后返回Message,错误信息
	Message string

	// request_uuid,唯一值,用于区分request
	RequestId string

	// 同步请求会返回命令行结果,异步请求该参数为空
	Results []Results
}

SetUPhoneConfigResponse is response schema for SetUPhoneConfig action

type SetUPhoneGPSParamUPhoneGPSs

type SetUPhoneGPSParamUPhoneGPSs struct {

	// 海拔
	Altitude *float64 `required:"false"`

	// 纬度:-90~90
	Latitude *float64 `required:"false"`

	// 经度:-180~180
	Longitude *float64 `required:"false"`

	// 云手机ID
	UPhoneId *string `required:"false"`
}

SetUPhoneGPSParamUPhoneGPSs is request schema for complex param

type SetUPhoneGPSRequest

type SetUPhoneGPSRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	//
	UPhoneGPSs []SetUPhoneGPSParamUPhoneGPSs `required:"false"`
}

SetUPhoneGPSRequest is request schema for SetUPhoneGPS action

type SetUPhoneGPSResponse

type SetUPhoneGPSResponse struct {
	response.CommonBase

	// 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
	JobId string

	// 返回错误消息,当 RetCode 非 0 时提供详细的描述信息
	Message string
}

SetUPhoneGPSResponse is response schema for SetUPhoneGPS action

type SetUPhoneManagerModeRequest

type SetUPhoneManagerModeRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 管理模式:管理员admin,普通用户user
	Mode *string `required:"true"`

	// 云手机实例的资源ID
	UPhoneId *string `required:"true"`
}

SetUPhoneManagerModeRequest is request schema for SetUPhoneManagerMode action

type SetUPhoneManagerModeResponse

type SetUPhoneManagerModeResponse struct {
	response.CommonBase
}

SetUPhoneManagerModeResponse is response schema for SetUPhoneManagerMode action

type SetUPhoneSplashScreenRequest

type SetUPhoneSplashScreenRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 云手机ID
	UPhoneId *string `required:"true"`

	// 启动画面下载地址
	URL *string `required:"true"`
}

SetUPhoneSplashScreenRequest is request schema for SetUPhoneSplashScreen action

type SetUPhoneSplashScreenResponse

type SetUPhoneSplashScreenResponse struct {
	response.CommonBase
}

SetUPhoneSplashScreenResponse is response schema for SetUPhoneSplashScreen action

type SetUPhoneTokenRequest added in v0.21.37

type SetUPhoneTokenRequest struct {
	request.CommonBase

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// RTC连接Token,为空表示清空Token
	Token *string `required:"false"`

	// 云手机ID
	UPhoneId *string `required:"true"`
}

SetUPhoneTokenRequest is request schema for SetUPhoneToken action

type SetUPhoneTokenResponse added in v0.21.37

type SetUPhoneTokenResponse struct {
	response.CommonBase
}

SetUPhoneTokenResponse is response schema for SetUPhoneToken action

type Task

type Task struct {

	// 安装/卸载任务相关的应用版本唯一标识ID
	AppVersionId string

	// 任务处理开始时间,格式为Unix时间戳。
	BeginTime int

	// 任务处理结束时间,格式为Unix时间戳。
	EndTime int

	// Task错误信息
	ErrorMsg string

	// 异步任务执行结果
	ExecuteMsg string

	// 任务状态* 等待中:PENDING* 运行中:RUNNING* 成功:SUCCESS* 失败:FAILED
	State string

	// Task的唯一标识
	TaskId string

	// 云手机的唯一标识,云手机相关任务包含此字段。
	UPhoneId string
}

Task -

type UPhoneClient

type UPhoneClient struct {
	*ucloud.Client
}

UPhoneClient is the client of UPhone

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UPhoneClient

NewClient will return a instance of UPhoneClient

func (*UPhoneClient) CreateUPhoneApp

API: CreateUPhoneApp

一个 app 对应多个 app_version。

func (*UPhoneClient) CreateUPhoneAppVersion

API: CreateUPhoneAppVersion

创建云手机应用版本。 注:一个 app 对应多个 app_version。

func (*UPhoneClient) CreateUPhoneImage

API: CreateUPhoneImage

创建云手机镜像。

func (*UPhoneClient) CreateUPhoneServer

API: CreateUPhoneServer

创建云手机服务器

func (*UPhoneClient) DeleteUPhoneImage

API: DeleteUPhoneImage

删除自制云手机镜像。

func (*UPhoneClient) DeleteUPhoneServer

API: DeleteUPhoneServer

删除云手机服务器。 注:关机状态下才能执行删除操作。

func (*UPhoneClient) DescribeUPhone

func (c *UPhoneClient) DescribeUPhone(req *DescribeUPhoneRequest) (*DescribeUPhoneResponse, error)

API: DescribeUPhone

获取云手机列表信息。

func (*UPhoneClient) DescribeUPhoneApp

API: DescribeUPhoneApp

获取应用列表。

func (*UPhoneClient) DescribeUPhoneAppVersion

API: DescribeUPhoneAppVersion

获取应用版本列表。

func (*UPhoneClient) DescribeUPhoneCities

API: DescribeUPhoneCities

获取云手机提供服务的城市列表

func (*UPhoneClient) DescribeUPhoneDetailByApp

API: DescribeUPhoneDetailByApp

根据AppId,查询安装该应用的云手机以及相关的应用版本信息

func (*UPhoneClient) DescribeUPhoneImage

API: DescribeUPhoneImage

获取云手机镜像信息列表。

func (*UPhoneClient) DescribeUPhoneIpRegions

API: DescribeUPhoneIpRegions

获取云手机支持绑定独立IP的城市列表

func (*UPhoneClient) DescribeUPhoneJob

API: DescribeUPhoneJob

查询Job的执行状态。

func (*UPhoneClient) DescribeUPhoneModel

API: DescribeUPhoneModel

func (*UPhoneClient) DescribeUPhoneServer

API: DescribeUPhoneServer

获取云手机服务器列表信息。

func (*UPhoneClient) DescribeUPhoneServerModel

API: DescribeUPhoneServerModel

获取ServerModel列表。

func (*UPhoneClient) GetUPhoneScreenCapture

API: GetUPhoneScreenCapture

云手机截屏

func (*UPhoneClient) GetUPhoneServerPrice

API: GetUPhoneServerPrice

根据服务器规格名称,获取UPhoneServer实例的价格。

func (*UPhoneClient) GetUPhoneServerRenewPrice

API: GetUPhoneServerRenewPrice

获取云手机服务器续费价格

提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。

func (*UPhoneClient) InstallUPhoneAppVersion

API: InstallUPhoneAppVersion

在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。

func (*UPhoneClient) ModifyUPhoneName

API: ModifyUPhoneName

修改指定云手机实例名称。

func (*UPhoneClient) ModifyUPhoneRemark

API: ModifyUPhoneRemark

修改指定云手机实例备注信息。

func (*UPhoneClient) ModifyUPhoneServerName

API: ModifyUPhoneServerName

修改指定云手机服务器实例名称。

func (*UPhoneClient) ModifyUPhoneServerRemark

API: ModifyUPhoneServerRemark

修改指定云手机实例备注信息。

func (*UPhoneClient) NewCreateUPhoneAppRequest

func (c *UPhoneClient) NewCreateUPhoneAppRequest() *CreateUPhoneAppRequest

NewCreateUPhoneAppRequest will create request of CreateUPhoneApp action.

func (*UPhoneClient) NewCreateUPhoneAppVersionRequest

func (c *UPhoneClient) NewCreateUPhoneAppVersionRequest() *CreateUPhoneAppVersionRequest

NewCreateUPhoneAppVersionRequest will create request of CreateUPhoneAppVersion action.

func (*UPhoneClient) NewCreateUPhoneImageRequest

func (c *UPhoneClient) NewCreateUPhoneImageRequest() *CreateUPhoneImageRequest

NewCreateUPhoneImageRequest will create request of CreateUPhoneImage action.

func (*UPhoneClient) NewCreateUPhoneServerRequest

func (c *UPhoneClient) NewCreateUPhoneServerRequest() *CreateUPhoneServerRequest

NewCreateUPhoneServerRequest will create request of CreateUPhoneServer action.

func (*UPhoneClient) NewDeleteUPhoneImageRequest

func (c *UPhoneClient) NewDeleteUPhoneImageRequest() *DeleteUPhoneImageRequest

NewDeleteUPhoneImageRequest will create request of DeleteUPhoneImage action.

func (*UPhoneClient) NewDeleteUPhoneServerRequest

func (c *UPhoneClient) NewDeleteUPhoneServerRequest() *DeleteUPhoneServerRequest

NewDeleteUPhoneServerRequest will create request of DeleteUPhoneServer action.

func (*UPhoneClient) NewDescribeUPhoneAppRequest

func (c *UPhoneClient) NewDescribeUPhoneAppRequest() *DescribeUPhoneAppRequest

NewDescribeUPhoneAppRequest will create request of DescribeUPhoneApp action.

func (*UPhoneClient) NewDescribeUPhoneAppVersionRequest

func (c *UPhoneClient) NewDescribeUPhoneAppVersionRequest() *DescribeUPhoneAppVersionRequest

NewDescribeUPhoneAppVersionRequest will create request of DescribeUPhoneAppVersion action.

func (*UPhoneClient) NewDescribeUPhoneCitiesRequest

func (c *UPhoneClient) NewDescribeUPhoneCitiesRequest() *DescribeUPhoneCitiesRequest

NewDescribeUPhoneCitiesRequest will create request of DescribeUPhoneCities action.

func (*UPhoneClient) NewDescribeUPhoneDetailByAppRequest

func (c *UPhoneClient) NewDescribeUPhoneDetailByAppRequest() *DescribeUPhoneDetailByAppRequest

NewDescribeUPhoneDetailByAppRequest will create request of DescribeUPhoneDetailByApp action.

func (*UPhoneClient) NewDescribeUPhoneImageRequest

func (c *UPhoneClient) NewDescribeUPhoneImageRequest() *DescribeUPhoneImageRequest

NewDescribeUPhoneImageRequest will create request of DescribeUPhoneImage action.

func (*UPhoneClient) NewDescribeUPhoneIpRegionsRequest

func (c *UPhoneClient) NewDescribeUPhoneIpRegionsRequest() *DescribeUPhoneIpRegionsRequest

NewDescribeUPhoneIpRegionsRequest will create request of DescribeUPhoneIpRegions action.

func (*UPhoneClient) NewDescribeUPhoneJobRequest

func (c *UPhoneClient) NewDescribeUPhoneJobRequest() *DescribeUPhoneJobRequest

NewDescribeUPhoneJobRequest will create request of DescribeUPhoneJob action.

func (*UPhoneClient) NewDescribeUPhoneModelRequest

func (c *UPhoneClient) NewDescribeUPhoneModelRequest() *DescribeUPhoneModelRequest

NewDescribeUPhoneModelRequest will create request of DescribeUPhoneModel action.

func (*UPhoneClient) NewDescribeUPhoneRequest

func (c *UPhoneClient) NewDescribeUPhoneRequest() *DescribeUPhoneRequest

NewDescribeUPhoneRequest will create request of DescribeUPhone action.

func (*UPhoneClient) NewDescribeUPhoneServerModelRequest

func (c *UPhoneClient) NewDescribeUPhoneServerModelRequest() *DescribeUPhoneServerModelRequest

NewDescribeUPhoneServerModelRequest will create request of DescribeUPhoneServerModel action.

func (*UPhoneClient) NewDescribeUPhoneServerRequest

func (c *UPhoneClient) NewDescribeUPhoneServerRequest() *DescribeUPhoneServerRequest

NewDescribeUPhoneServerRequest will create request of DescribeUPhoneServer action.

func (*UPhoneClient) NewGetUPhoneScreenCaptureRequest

func (c *UPhoneClient) NewGetUPhoneScreenCaptureRequest() *GetUPhoneScreenCaptureRequest

NewGetUPhoneScreenCaptureRequest will create request of GetUPhoneScreenCapture action.

func (*UPhoneClient) NewGetUPhoneServerPriceRequest

func (c *UPhoneClient) NewGetUPhoneServerPriceRequest() *GetUPhoneServerPriceRequest

NewGetUPhoneServerPriceRequest will create request of GetUPhoneServerPrice action.

func (*UPhoneClient) NewGetUPhoneServerRenewPriceRequest

func (c *UPhoneClient) NewGetUPhoneServerRenewPriceRequest() *GetUPhoneServerRenewPriceRequest

NewGetUPhoneServerRenewPriceRequest will create request of GetUPhoneServerRenewPrice action.

func (*UPhoneClient) NewInstallUPhoneAppVersionRequest

func (c *UPhoneClient) NewInstallUPhoneAppVersionRequest() *InstallUPhoneAppVersionRequest

NewInstallUPhoneAppVersionRequest will create request of InstallUPhoneAppVersion action.

func (*UPhoneClient) NewModifyUPhoneNameRequest

func (c *UPhoneClient) NewModifyUPhoneNameRequest() *ModifyUPhoneNameRequest

NewModifyUPhoneNameRequest will create request of ModifyUPhoneName action.

func (*UPhoneClient) NewModifyUPhoneRemarkRequest

func (c *UPhoneClient) NewModifyUPhoneRemarkRequest() *ModifyUPhoneRemarkRequest

NewModifyUPhoneRemarkRequest will create request of ModifyUPhoneRemark action.

func (*UPhoneClient) NewModifyUPhoneServerNameRequest

func (c *UPhoneClient) NewModifyUPhoneServerNameRequest() *ModifyUPhoneServerNameRequest

NewModifyUPhoneServerNameRequest will create request of ModifyUPhoneServerName action.

func (*UPhoneClient) NewModifyUPhoneServerRemarkRequest

func (c *UPhoneClient) NewModifyUPhoneServerRemarkRequest() *ModifyUPhoneServerRemarkRequest

NewModifyUPhoneServerRemarkRequest will create request of ModifyUPhoneServerRemark action.

func (*UPhoneClient) NewPoweroffUPhoneRequest

func (c *UPhoneClient) NewPoweroffUPhoneRequest() *PoweroffUPhoneRequest

NewPoweroffUPhoneRequest will create request of PoweroffUPhone action.

func (*UPhoneClient) NewPoweronUPhoneRequest

func (c *UPhoneClient) NewPoweronUPhoneRequest() *PoweronUPhoneRequest

NewPoweronUPhoneRequest will create request of PoweronUPhone action.

func (*UPhoneClient) NewRebootUPhoneRequest

func (c *UPhoneClient) NewRebootUPhoneRequest() *RebootUPhoneRequest

NewRebootUPhoneRequest will create request of RebootUPhone action.

func (*UPhoneClient) NewResetUPhoneRequest

func (c *UPhoneClient) NewResetUPhoneRequest() *ResetUPhoneRequest

NewResetUPhoneRequest will create request of ResetUPhone action.

func (*UPhoneClient) NewRunAsyncCommandRequest

func (c *UPhoneClient) NewRunAsyncCommandRequest() *RunAsyncCommandRequest

NewRunAsyncCommandRequest will create request of RunAsyncCommand action.

func (*UPhoneClient) NewRunSyncCommandRequest

func (c *UPhoneClient) NewRunSyncCommandRequest() *RunSyncCommandRequest

NewRunSyncCommandRequest will create request of RunSyncCommand action.

func (*UPhoneClient) NewSetUPhoneConfigRequest

func (c *UPhoneClient) NewSetUPhoneConfigRequest() *SetUPhoneConfigRequest

NewSetUPhoneConfigRequest will create request of SetUPhoneConfig action.

func (*UPhoneClient) NewSetUPhoneGPSRequest

func (c *UPhoneClient) NewSetUPhoneGPSRequest() *SetUPhoneGPSRequest

NewSetUPhoneGPSRequest will create request of SetUPhoneGPS action.

func (*UPhoneClient) NewSetUPhoneManagerModeRequest

func (c *UPhoneClient) NewSetUPhoneManagerModeRequest() *SetUPhoneManagerModeRequest

NewSetUPhoneManagerModeRequest will create request of SetUPhoneManagerMode action.

func (*UPhoneClient) NewSetUPhoneSplashScreenRequest

func (c *UPhoneClient) NewSetUPhoneSplashScreenRequest() *SetUPhoneSplashScreenRequest

NewSetUPhoneSplashScreenRequest will create request of SetUPhoneSplashScreen action.

func (*UPhoneClient) NewSetUPhoneTokenRequest added in v0.21.37

func (c *UPhoneClient) NewSetUPhoneTokenRequest() *SetUPhoneTokenRequest

NewSetUPhoneTokenRequest will create request of SetUPhoneToken action.

func (*UPhoneClient) NewUnInstallUPhoneAppVersionRequest

func (c *UPhoneClient) NewUnInstallUPhoneAppVersionRequest() *UnInstallUPhoneAppVersionRequest

NewUnInstallUPhoneAppVersionRequest will create request of UnInstallUPhoneAppVersion action.

func (*UPhoneClient) NewUpdateUPhoneImageRequest

func (c *UPhoneClient) NewUpdateUPhoneImageRequest() *UpdateUPhoneImageRequest

NewUpdateUPhoneImageRequest will create request of UpdateUPhoneImage action.

func (*UPhoneClient) PoweroffUPhone

func (c *UPhoneClient) PoweroffUPhone(req *PoweroffUPhoneRequest) (*PoweroffUPhoneResponse, error)

API: PoweroffUPhone

关闭处于运行状态的云手机实例

func (*UPhoneClient) PoweronUPhone

func (c *UPhoneClient) PoweronUPhone(req *PoweronUPhoneRequest) (*PoweronUPhoneResponse, error)

API: PoweronUPhone

启动处于关闭状态的云手机实例

func (*UPhoneClient) RebootUPhone

func (c *UPhoneClient) RebootUPhone(req *RebootUPhoneRequest) (*RebootUPhoneResponse, error)

API: RebootUPhone

重新启动云手机实例

func (*UPhoneClient) ResetUPhone

func (c *UPhoneClient) ResetUPhone(req *ResetUPhoneRequest) (*ResetUPhoneResponse, error)

API: ResetUPhone

将云手机恢复为创建时的状态。

func (*UPhoneClient) RunAsyncCommand

API: RunAsyncCommand

在云手机中执行异步shell命令。

func (*UPhoneClient) RunSyncCommand

func (c *UPhoneClient) RunSyncCommand(req *RunSyncCommandRequest) (*RunSyncCommandResponse, error)

API: RunSyncCommand

在云手机中执行同步shell命令。

func (*UPhoneClient) SetUPhoneConfig

API: SetUPhoneConfig

设置云手机画面参数(分辨率、DPI、帧率、码率)

func (*UPhoneClient) SetUPhoneGPS

func (c *UPhoneClient) SetUPhoneGPS(req *SetUPhoneGPSRequest) (*SetUPhoneGPSResponse, error)

API: SetUPhoneGPS

设置云手机GPS信息

func (*UPhoneClient) SetUPhoneManagerMode

API: SetUPhoneManagerMode

管理员模式支持所有按键,普通用户模式禁用返回桌面

func (*UPhoneClient) SetUPhoneSplashScreen

API: SetUPhoneSplashScreen

设置云手机启动画面,通过DescribeUPhone接口可以查询该地址

func (*UPhoneClient) SetUPhoneToken added in v0.21.37

func (c *UPhoneClient) SetUPhoneToken(req *SetUPhoneTokenRequest) (*SetUPhoneTokenResponse, error)

API: SetUPhoneToken

设置云手机RTC连接Token提高安全性

func (*UPhoneClient) UnInstallUPhoneAppVersion

API: UnInstallUPhoneAppVersion

传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。

func (*UPhoneClient) UpdateUPhoneImage

API: UpdateUPhoneImage

更新云手机镜像信息。

type UPhoneCommandResult

type UPhoneCommandResult struct {

	// 同步shell命令的执行结果。
	ExecuteMsg string

	// 云手机实例的资源ID。
	UPhoneId string
}

UPhoneCommandResult -

type UPhoneDetailInstance

type UPhoneDetailInstance struct {

	// 应用版本实例,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance)
	AppVersion AppVersionInstance

	// 虚拟CPU核数。
	CPU int

	// 城市Id,eg: cn-shanghai, cn-jinan
	CityId string

	// 城市名称,eg:上海二、济南市
	CityName string

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 磁盘大小,单位: GB
	DiskSize int

	// 云手机镜像ID,不超过32个字节。
	ImageId string

	// 内存大小。单位MB
	Memory int

	// 云手机镜像系统,如"Android armv8"
	OsType string

	// 刷新率
	Refresh int

	// 备注
	Remark string

	// 分辨率
	Resolution string

	// 云手机所在的服务器ID,不超过32个字节。
	ServerId string

	// 云手机状态<br />* 启动中: STARTING; <br />* 运行中: RUNNING; <br />* 关机中: STOPPING; <br />* 关机: STOPPED <br />* 重启中: REBOOTING; <br />* 重置中: RESETTING; <br />* 启动失败: START_FAILED; <br />* 关机失败: STOP_FAILED; <br />* 重启失败: REBOOT_FAILED; <br />* 重置失败: RESET_FAILED; <br />* 未知状态:UNDEFINED或""
	State string

	// 云手机规格名称
	UPhoneId string

	// 云手机的名称,不超过65个字符。
	UPhoneName string
}

UPhoneDetailInstance -

type UPhoneImageInstance

type UPhoneImageInstance struct {

	// 云手机镜像所安装的应用版本列表,具体参数见 [AppVersionInstance](#appversioninstance)
	AppVersions []AppVersionInstance

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 云手机镜像描述信息
	Description string

	// 云手机镜像资源Id
	ImageId string

	// 云手机镜像名称
	ImageName string

	// 云手机镜像状态<br />* 制作中: 制作中; <br />* 可用的: CREATING; <br />* 制作失败: CREATE_FAILED; <br />* 上传中: UPLOADING <br />* 上传失败: UPLOAD_FAILED; <br />* 未知状态:UNDEFINED或""
	ImageState string

	// 云手机镜像类型,枚举值:<br />> 用户自制镜像: CUSTOM;  <br />> 标准镜像: BASE;;
	ImageType string

	// 修改时间,格式为Unix时间戳。
	ModifyTime int

	// 云手机镜像系统
	OsType string

	// 云手机镜像创建时所属云手机资源 Id
	UPhoneId string
}

UPhoneImageInstance -

type UPhoneInstance

type UPhoneInstance struct {

	// 虚拟CPU核数。
	CPU int

	// 云手机异步任务回调
	Callback string

	// 城市Id,eg: cn-shanghai, cn-jinan
	CityId string

	// 城市名称,eg:上海二、济南市
	CityName string

	// 创建时间,格式为Unix时间戳。
	CreateTime int

	// 磁盘大小,单位: GB
	DiskSize int

	// 云手机镜像ID,不超过32个字节。
	ImageId string

	// 内存大小。单位MB
	Memory int

	// 云手机镜像系统,如"Android armv8"
	OsType string

	// 刷新率
	Refresh int

	// 备注
	Remark string

	// 分辨率
	Resolution string

	// 云手机所在的服务器ID,不超过32个字节。
	ServerId string

	// 云手机启动图片URL链接
	SplashScreen string

	// 云手机状态<br />* 启动中: STARTING; <br />* 运行中: RUNNING; <br />* 关机中: STOPPING; <br />* 关机: STOPPED <br />* 重启中: REBOOTING; <br />* 重置中: RESETTING; <br />* 启动失败: START_FAILED; <br />* 关机失败: STOP_FAILED; <br />* 重启失败: REBOOT_FAILED; <br />* 重置失败: RESET_FAILED; <br />* 未知状态:UNDEFINED_STATE或""
	State string

	// 业务组名称
	Tag string

	// 云手机的唯一标识,不超过32个字节。
	UPhoneId string

	// 云手机规格名称
	UPhoneModelName string

	// 云手机的名称,不超过65个字符。
	UPhoneName string
}

UPhoneInstance -

type UPhoneModelInstance

type UPhoneModelInstance struct {

	// 虚拟CPU核数。
	CPU int

	// 磁盘大小,单位: GB
	DiskSize int

	// 内存大小。单位MB
	Memory int

	// 刷新率
	Refresh int

	// 分辨率
	Resolution string

	// UPhoneModel名称
	UPhoneModelName string
}

UPhoneModelInstance -

type UPhoneServerPriceSet

type UPhoneServerPriceSet struct {

	// 计费类型,枚举值:Year,Month
	ChargeType string

	// 产品列表价
	ListPrice float64

	// 限时优惠的折前原价(即列表价乘以商务折扣后的单价)
	OriginalPrice float64

	// 价格,单位: 元,保留小数点后两位有效数字
	Price float64
}

UPhoneServerPriceSet - 价格列表

type UPhoneSpec

type UPhoneSpec struct {

	// 手机开数,即该服务器规格能生成对应手机规格的云手机个数
	UPhoneCount int

	// 手机规格名
	UPhoneModelName string
}

UPhoneSpec -

type UnInstallUPhoneAppVersionRequest

type UnInstallUPhoneAppVersionRequest struct {
	request.CommonBase

	// 应用版本的唯一标识ID
	AppVersionId *string `required:"true"`

	// 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
	CityId *string `required:"true"`

	// 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望卸载应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
	UPhoneIds []string `required:"true"`
}

UnInstallUPhoneAppVersionRequest is request schema for UnInstallUPhoneAppVersion action

type UnInstallUPhoneAppVersionResponse

type UnInstallUPhoneAppVersionResponse struct {
	response.CommonBase

	// 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
	JobId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

UnInstallUPhoneAppVersionResponse is response schema for UnInstallUPhoneAppVersion action

type UpdateUPhoneImageRequest

type UpdateUPhoneImageRequest struct {
	request.CommonBase

	// 镜像的描述信息。长度为2~256个英文或中文字符
	Description *string `required:"false"`

	// 云手机自定义镜像资源ID
	ImageId *string `required:"true"`

	// 镜像名称。长度为2~128个英文或中文字符。
	Name *string `required:"false"`
}

UpdateUPhoneImageRequest is request schema for UpdateUPhoneImage action

type UpdateUPhoneImageResponse

type UpdateUPhoneImageResponse struct {
	response.CommonBase

	// 云手机自定义镜像资源ID
	ImageId string

	// 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息
	Message string
}

UpdateUPhoneImageResponse is response schema for UpdateUPhoneImage action

Jump to

Keyboard shortcuts

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