Documentation ¶
Overview ¶
Package uphone include resources of ucloud uphone product
See also
- API: https://docs.ucloud.cn/api/uphone-api/index
- Product: https://www.ucloud.cn/site/product/uphone.html
for detail.
Index ¶
- type AppInstance
- type AppVersionInstance
- type CityInstance
- type CreateUPhoneAppRequest
- type CreateUPhoneAppResponse
- type CreateUPhoneAppVersionRequest
- type CreateUPhoneAppVersionResponse
- type CreateUPhoneImageRequest
- type CreateUPhoneImageResponse
- type CreateUPhoneRequest
- type CreateUPhoneResponse
- type CreateUPhoneServerParamNetworkInterface
- type CreateUPhoneServerRequest
- type CreateUPhoneServerResponse
- type DeleteUPhoneImageRequest
- type DeleteUPhoneImageResponse
- type DeleteUPhoneRequest
- type DeleteUPhoneResponse
- type DeleteUPhoneServerRequest
- type DeleteUPhoneServerResponse
- type DeleteUPhoneShareBandwidthRequest
- type DeleteUPhoneShareBandwidthResponse
- type DescribeUPhoneAppRequest
- type DescribeUPhoneAppResponse
- type DescribeUPhoneAppVersionRequest
- type DescribeUPhoneAppVersionResponse
- type DescribeUPhoneCitiesRequest
- type DescribeUPhoneCitiesResponse
- type DescribeUPhoneDetailByAppRequest
- type DescribeUPhoneDetailByAppResponse
- type DescribeUPhoneEipListRequest
- type DescribeUPhoneEipListResponse
- type DescribeUPhoneImageRequest
- type DescribeUPhoneImageResponse
- type DescribeUPhoneIpRegionsRequest
- type DescribeUPhoneIpRegionsResponse
- type DescribeUPhoneJobRequest
- type DescribeUPhoneJobResponse
- type DescribeUPhoneModelRequest
- type DescribeUPhoneModelResponse
- type DescribeUPhoneRequest
- type DescribeUPhoneResponse
- type DescribeUPhoneServerModelRequest
- type DescribeUPhoneServerModelResponse
- type DescribeUPhoneServerRequest
- type DescribeUPhoneServerResponse
- type DescribeUPhoneShareBandwidthRequest
- type DescribeUPhoneShareBandwidthResponse
- type EipInfo
- type GetUPhoneAllowanceRequest
- type GetUPhoneAllowanceResponse
- type GetUPhoneBandwidthUpgradePriceRequest
- type GetUPhoneBandwidthUpgradePriceResponse
- type GetUPhonePriceRequest
- type GetUPhonePriceResponse
- type GetUPhoneRenewPriceRequest
- type GetUPhoneRenewPriceResponse
- type GetUPhoneScreenCaptureRequest
- type GetUPhoneScreenCaptureResponse
- type GetUPhoneServerPriceRequest
- type GetUPhoneServerPriceResponse
- type GetUPhoneServerRenewPriceRequest
- type GetUPhoneServerRenewPriceResponse
- type GetUPhoneShareBandwidthUpgradePriceRequest
- type GetUPhoneShareBandwidthUpgradePriceResponse
- type ImportFileRequest
- type ImportFileResponse
- type InstallUPhoneAppVersionRequest
- type InstallUPhoneAppVersionResponse
- type IpRegion
- type IpSet
- type Job
- type ModifyUPhoneBandwidthRequest
- type ModifyUPhoneBandwidthResponse
- type ModifyUPhoneNameRequest
- type ModifyUPhoneNameResponse
- type ModifyUPhoneRemarkRequest
- type ModifyUPhoneRemarkResponse
- type ModifyUPhoneServerNameRequest
- type ModifyUPhoneServerNameResponse
- type ModifyUPhoneServerRemarkRequest
- type ModifyUPhoneServerRemarkResponse
- type ModifyUPhoneShareBandwidthNameRequest
- type ModifyUPhoneShareBandwidthNameResponse
- type ModifyUPhoneShareBandwidthRemarkRequest
- type ModifyUPhoneShareBandwidthRemarkResponse
- type ModifyUPhoneShareBandwidthRequest
- type ModifyUPhoneShareBandwidthResponse
- type PoweroffUPhoneRequest
- type PoweroffUPhoneResponse
- type PoweronUPhoneRequest
- type PoweronUPhoneResponse
- type RebootUPhoneRequest
- type RebootUPhoneResponse
- type RenewUPhoneRequest
- type RenewUPhoneResponse
- type ResetUPhoneRequest
- type ResetUPhoneResponse
- type Results
- type RunAsyncCommandRequest
- type RunAsyncCommandResponse
- type RunSyncCommandRequest
- type RunSyncCommandResponse
- type ServerDiskSet
- type ServerInstance
- type ServerModelInstance
- type SetUPhoneCallbackRequest
- type SetUPhoneCallbackResponse
- type SetUPhoneConfigRequest
- type SetUPhoneConfigResponse
- type SetUPhoneGPSParamUPhoneGPSs
- type SetUPhoneGPSRequest
- type SetUPhoneGPSResponse
- type SetUPhoneManagerModeRequest
- type SetUPhoneManagerModeResponse
- type SetUPhoneRootModeRequest
- type SetUPhoneRootModeResponse
- type SetUPhoneTokenRequest
- type SetUPhoneTokenResponse
- type ShareBandwidthInfo
- type StockInfo
- type SwitchUPhoneIndependentIpRequest
- type SwitchUPhoneIndependentIpResponse
- type Task
- type UPhoneAllowance
- type UPhoneClient
- func (c *UPhoneClient) CreateUPhone(req *CreateUPhoneRequest) (*CreateUPhoneResponse, error)
- func (c *UPhoneClient) CreateUPhoneApp(req *CreateUPhoneAppRequest) (*CreateUPhoneAppResponse, error)
- func (c *UPhoneClient) CreateUPhoneAppVersion(req *CreateUPhoneAppVersionRequest) (*CreateUPhoneAppVersionResponse, error)
- func (c *UPhoneClient) CreateUPhoneImage(req *CreateUPhoneImageRequest) (*CreateUPhoneImageResponse, error)
- func (c *UPhoneClient) CreateUPhoneServer(req *CreateUPhoneServerRequest) (*CreateUPhoneServerResponse, error)
- func (c *UPhoneClient) DeleteUPhone(req *DeleteUPhoneRequest) (*DeleteUPhoneResponse, error)
- func (c *UPhoneClient) DeleteUPhoneImage(req *DeleteUPhoneImageRequest) (*DeleteUPhoneImageResponse, error)
- func (c *UPhoneClient) DeleteUPhoneServer(req *DeleteUPhoneServerRequest) (*DeleteUPhoneServerResponse, error)
- func (c *UPhoneClient) DeleteUPhoneShareBandwidth(req *DeleteUPhoneShareBandwidthRequest) (*DeleteUPhoneShareBandwidthResponse, error)
- func (c *UPhoneClient) DescribeUPhone(req *DescribeUPhoneRequest) (*DescribeUPhoneResponse, error)
- func (c *UPhoneClient) DescribeUPhoneApp(req *DescribeUPhoneAppRequest) (*DescribeUPhoneAppResponse, error)
- func (c *UPhoneClient) DescribeUPhoneAppVersion(req *DescribeUPhoneAppVersionRequest) (*DescribeUPhoneAppVersionResponse, error)
- func (c *UPhoneClient) DescribeUPhoneCities(req *DescribeUPhoneCitiesRequest) (*DescribeUPhoneCitiesResponse, error)
- func (c *UPhoneClient) DescribeUPhoneDetailByApp(req *DescribeUPhoneDetailByAppRequest) (*DescribeUPhoneDetailByAppResponse, error)
- func (c *UPhoneClient) DescribeUPhoneEipList(req *DescribeUPhoneEipListRequest) (*DescribeUPhoneEipListResponse, error)
- func (c *UPhoneClient) DescribeUPhoneImage(req *DescribeUPhoneImageRequest) (*DescribeUPhoneImageResponse, error)
- func (c *UPhoneClient) DescribeUPhoneIpRegions(req *DescribeUPhoneIpRegionsRequest) (*DescribeUPhoneIpRegionsResponse, error)
- func (c *UPhoneClient) DescribeUPhoneJob(req *DescribeUPhoneJobRequest) (*DescribeUPhoneJobResponse, error)
- func (c *UPhoneClient) DescribeUPhoneModel(req *DescribeUPhoneModelRequest) (*DescribeUPhoneModelResponse, error)
- func (c *UPhoneClient) DescribeUPhoneServer(req *DescribeUPhoneServerRequest) (*DescribeUPhoneServerResponse, error)
- func (c *UPhoneClient) DescribeUPhoneServerModel(req *DescribeUPhoneServerModelRequest) (*DescribeUPhoneServerModelResponse, error)
- func (c *UPhoneClient) DescribeUPhoneShareBandwidth(req *DescribeUPhoneShareBandwidthRequest) (*DescribeUPhoneShareBandwidthResponse, error)
- func (c *UPhoneClient) GetUPhoneAllowance(req *GetUPhoneAllowanceRequest) (*GetUPhoneAllowanceResponse, error)
- func (c *UPhoneClient) GetUPhoneBandwidthUpgradePrice(req *GetUPhoneBandwidthUpgradePriceRequest) (*GetUPhoneBandwidthUpgradePriceResponse, error)
- func (c *UPhoneClient) GetUPhonePrice(req *GetUPhonePriceRequest) (*GetUPhonePriceResponse, error)
- func (c *UPhoneClient) GetUPhoneRenewPrice(req *GetUPhoneRenewPriceRequest) (*GetUPhoneRenewPriceResponse, error)
- func (c *UPhoneClient) GetUPhoneScreenCapture(req *GetUPhoneScreenCaptureRequest) (*GetUPhoneScreenCaptureResponse, error)
- func (c *UPhoneClient) GetUPhoneServerPrice(req *GetUPhoneServerPriceRequest) (*GetUPhoneServerPriceResponse, error)
- func (c *UPhoneClient) GetUPhoneServerRenewPrice(req *GetUPhoneServerRenewPriceRequest) (*GetUPhoneServerRenewPriceResponse, error)
- func (c *UPhoneClient) GetUPhoneShareBandwidthUpgradePrice(req *GetUPhoneShareBandwidthUpgradePriceRequest) (*GetUPhoneShareBandwidthUpgradePriceResponse, error)
- func (c *UPhoneClient) ImportFile(req *ImportFileRequest) (*ImportFileResponse, error)
- func (c *UPhoneClient) InstallUPhoneAppVersion(req *InstallUPhoneAppVersionRequest) (*InstallUPhoneAppVersionResponse, error)
- func (c *UPhoneClient) ModifyUPhoneBandwidth(req *ModifyUPhoneBandwidthRequest) (*ModifyUPhoneBandwidthResponse, error)
- func (c *UPhoneClient) ModifyUPhoneName(req *ModifyUPhoneNameRequest) (*ModifyUPhoneNameResponse, error)
- func (c *UPhoneClient) ModifyUPhoneRemark(req *ModifyUPhoneRemarkRequest) (*ModifyUPhoneRemarkResponse, error)
- func (c *UPhoneClient) ModifyUPhoneServerName(req *ModifyUPhoneServerNameRequest) (*ModifyUPhoneServerNameResponse, error)
- func (c *UPhoneClient) ModifyUPhoneServerRemark(req *ModifyUPhoneServerRemarkRequest) (*ModifyUPhoneServerRemarkResponse, error)
- func (c *UPhoneClient) ModifyUPhoneShareBandwidth(req *ModifyUPhoneShareBandwidthRequest) (*ModifyUPhoneShareBandwidthResponse, error)
- func (c *UPhoneClient) ModifyUPhoneShareBandwidthName(req *ModifyUPhoneShareBandwidthNameRequest) (*ModifyUPhoneShareBandwidthNameResponse, error)
- func (c *UPhoneClient) ModifyUPhoneShareBandwidthRemark(req *ModifyUPhoneShareBandwidthRemarkRequest) (*ModifyUPhoneShareBandwidthRemarkResponse, error)
- func (c *UPhoneClient) NewCreateUPhoneAppRequest() *CreateUPhoneAppRequest
- func (c *UPhoneClient) NewCreateUPhoneAppVersionRequest() *CreateUPhoneAppVersionRequest
- func (c *UPhoneClient) NewCreateUPhoneImageRequest() *CreateUPhoneImageRequest
- func (c *UPhoneClient) NewCreateUPhoneRequest() *CreateUPhoneRequest
- func (c *UPhoneClient) NewCreateUPhoneServerRequest() *CreateUPhoneServerRequest
- func (c *UPhoneClient) NewDeleteUPhoneImageRequest() *DeleteUPhoneImageRequest
- func (c *UPhoneClient) NewDeleteUPhoneRequest() *DeleteUPhoneRequest
- func (c *UPhoneClient) NewDeleteUPhoneServerRequest() *DeleteUPhoneServerRequest
- func (c *UPhoneClient) NewDeleteUPhoneShareBandwidthRequest() *DeleteUPhoneShareBandwidthRequest
- func (c *UPhoneClient) NewDescribeUPhoneAppRequest() *DescribeUPhoneAppRequest
- func (c *UPhoneClient) NewDescribeUPhoneAppVersionRequest() *DescribeUPhoneAppVersionRequest
- func (c *UPhoneClient) NewDescribeUPhoneCitiesRequest() *DescribeUPhoneCitiesRequest
- func (c *UPhoneClient) NewDescribeUPhoneDetailByAppRequest() *DescribeUPhoneDetailByAppRequest
- func (c *UPhoneClient) NewDescribeUPhoneEipListRequest() *DescribeUPhoneEipListRequest
- func (c *UPhoneClient) NewDescribeUPhoneImageRequest() *DescribeUPhoneImageRequest
- func (c *UPhoneClient) NewDescribeUPhoneIpRegionsRequest() *DescribeUPhoneIpRegionsRequest
- func (c *UPhoneClient) NewDescribeUPhoneJobRequest() *DescribeUPhoneJobRequest
- func (c *UPhoneClient) NewDescribeUPhoneModelRequest() *DescribeUPhoneModelRequest
- func (c *UPhoneClient) NewDescribeUPhoneRequest() *DescribeUPhoneRequest
- func (c *UPhoneClient) NewDescribeUPhoneServerModelRequest() *DescribeUPhoneServerModelRequest
- func (c *UPhoneClient) NewDescribeUPhoneServerRequest() *DescribeUPhoneServerRequest
- func (c *UPhoneClient) NewDescribeUPhoneShareBandwidthRequest() *DescribeUPhoneShareBandwidthRequest
- func (c *UPhoneClient) NewGetUPhoneAllowanceRequest() *GetUPhoneAllowanceRequest
- func (c *UPhoneClient) NewGetUPhoneBandwidthUpgradePriceRequest() *GetUPhoneBandwidthUpgradePriceRequest
- func (c *UPhoneClient) NewGetUPhonePriceRequest() *GetUPhonePriceRequest
- func (c *UPhoneClient) NewGetUPhoneRenewPriceRequest() *GetUPhoneRenewPriceRequest
- func (c *UPhoneClient) NewGetUPhoneScreenCaptureRequest() *GetUPhoneScreenCaptureRequest
- func (c *UPhoneClient) NewGetUPhoneServerPriceRequest() *GetUPhoneServerPriceRequest
- func (c *UPhoneClient) NewGetUPhoneServerRenewPriceRequest() *GetUPhoneServerRenewPriceRequest
- func (c *UPhoneClient) NewGetUPhoneShareBandwidthUpgradePriceRequest() *GetUPhoneShareBandwidthUpgradePriceRequest
- func (c *UPhoneClient) NewImportFileRequest() *ImportFileRequest
- func (c *UPhoneClient) NewInstallUPhoneAppVersionRequest() *InstallUPhoneAppVersionRequest
- func (c *UPhoneClient) NewModifyUPhoneBandwidthRequest() *ModifyUPhoneBandwidthRequest
- func (c *UPhoneClient) NewModifyUPhoneNameRequest() *ModifyUPhoneNameRequest
- func (c *UPhoneClient) NewModifyUPhoneRemarkRequest() *ModifyUPhoneRemarkRequest
- func (c *UPhoneClient) NewModifyUPhoneServerNameRequest() *ModifyUPhoneServerNameRequest
- func (c *UPhoneClient) NewModifyUPhoneServerRemarkRequest() *ModifyUPhoneServerRemarkRequest
- func (c *UPhoneClient) NewModifyUPhoneShareBandwidthNameRequest() *ModifyUPhoneShareBandwidthNameRequest
- func (c *UPhoneClient) NewModifyUPhoneShareBandwidthRemarkRequest() *ModifyUPhoneShareBandwidthRemarkRequest
- func (c *UPhoneClient) NewModifyUPhoneShareBandwidthRequest() *ModifyUPhoneShareBandwidthRequest
- func (c *UPhoneClient) NewPoweroffUPhoneRequest() *PoweroffUPhoneRequest
- func (c *UPhoneClient) NewPoweronUPhoneRequest() *PoweronUPhoneRequest
- func (c *UPhoneClient) NewRebootUPhoneRequest() *RebootUPhoneRequest
- func (c *UPhoneClient) NewRenewUPhoneRequest() *RenewUPhoneRequest
- func (c *UPhoneClient) NewResetUPhoneRequest() *ResetUPhoneRequest
- func (c *UPhoneClient) NewRunAsyncCommandRequest() *RunAsyncCommandRequest
- func (c *UPhoneClient) NewRunSyncCommandRequest() *RunSyncCommandRequest
- func (c *UPhoneClient) NewSetUPhoneCallbackRequest() *SetUPhoneCallbackRequest
- func (c *UPhoneClient) NewSetUPhoneConfigRequest() *SetUPhoneConfigRequest
- func (c *UPhoneClient) NewSetUPhoneGPSRequest() *SetUPhoneGPSRequest
- func (c *UPhoneClient) NewSetUPhoneManagerModeRequest() *SetUPhoneManagerModeRequest
- func (c *UPhoneClient) NewSetUPhoneRootModeRequest() *SetUPhoneRootModeRequest
- func (c *UPhoneClient) NewSetUPhoneTokenRequest() *SetUPhoneTokenRequest
- func (c *UPhoneClient) NewSwitchUPhoneIndependentIpRequest() *SwitchUPhoneIndependentIpRequest
- func (c *UPhoneClient) NewUnInstallUPhoneAppVersionRequest() *UnInstallUPhoneAppVersionRequest
- func (c *UPhoneClient) NewUpdateUPhoneImageRequest() *UpdateUPhoneImageRequest
- func (c *UPhoneClient) PoweroffUPhone(req *PoweroffUPhoneRequest) (*PoweroffUPhoneResponse, error)
- func (c *UPhoneClient) PoweronUPhone(req *PoweronUPhoneRequest) (*PoweronUPhoneResponse, error)
- func (c *UPhoneClient) RebootUPhone(req *RebootUPhoneRequest) (*RebootUPhoneResponse, error)
- func (c *UPhoneClient) RenewUPhone(req *RenewUPhoneRequest) (*RenewUPhoneResponse, error)
- func (c *UPhoneClient) ResetUPhone(req *ResetUPhoneRequest) (*ResetUPhoneResponse, error)
- func (c *UPhoneClient) RunAsyncCommand(req *RunAsyncCommandRequest) (*RunAsyncCommandResponse, error)
- func (c *UPhoneClient) RunSyncCommand(req *RunSyncCommandRequest) (*RunSyncCommandResponse, error)
- func (c *UPhoneClient) SetUPhoneCallback(req *SetUPhoneCallbackRequest) (*SetUPhoneCallbackResponse, error)
- func (c *UPhoneClient) SetUPhoneConfig(req *SetUPhoneConfigRequest) (*SetUPhoneConfigResponse, error)
- func (c *UPhoneClient) SetUPhoneGPS(req *SetUPhoneGPSRequest) (*SetUPhoneGPSResponse, error)
- func (c *UPhoneClient) SetUPhoneManagerMode(req *SetUPhoneManagerModeRequest) (*SetUPhoneManagerModeResponse, error)
- func (c *UPhoneClient) SetUPhoneRootMode(req *SetUPhoneRootModeRequest) (*SetUPhoneRootModeResponse, error)
- func (c *UPhoneClient) SetUPhoneToken(req *SetUPhoneTokenRequest) (*SetUPhoneTokenResponse, error)
- func (c *UPhoneClient) SwitchUPhoneIndependentIp(req *SwitchUPhoneIndependentIpRequest) (*SwitchUPhoneIndependentIpResponse, error)
- func (c *UPhoneClient) UnInstallUPhoneAppVersion(req *UnInstallUPhoneAppVersionRequest) (*UnInstallUPhoneAppVersionResponse, error)
- func (c *UPhoneClient) UpdateUPhoneImage(req *UpdateUPhoneImageRequest) (*UpdateUPhoneImageResponse, error)
- type UPhoneCommandResult
- type UPhoneDetailInstance
- type UPhoneImageInstance
- type UPhoneInstance
- type UPhoneModelInstance
- type UPhonePriceSet
- type UPhoneServerPriceSet
- type UPhoneSpec
- type UnInstallUPhoneAppVersionRequest
- type UnInstallUPhoneAppVersionResponse
- type UpdateUPhoneImageRequest
- type UpdateUPhoneImageResponse
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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` }
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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 应用版本相关的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,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取 CityId *string `required:"false"` // 镜像的描述信息。长度为2~256个英文或中文字符 Description *string `required:"false"` // 镜像名称。长度为2~128个英文或中文字符。 Name *string `required:"true"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *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 // 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 JobId string // 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息 Message string }
CreateUPhoneImageResponse is response schema for CreateUPhoneImage action
type CreateUPhoneRequest ¶ added in v0.21.38
type CreateUPhoneRequest struct { request.CommonBase // 绑定独立IP BindIp *bool `required:"false"` // 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 ChargeType *string `required:"false"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取;新增一个oversea虚拟城市,可以用来绑定海外独立IP 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。如果同时创建多个,则增加数字后缀,如UPhone-1 Name *string `required:"true"` // 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。 Quantity *string `required:"false"` ShareBandwidthId *string `required:"false"` ShareBandwidthName *string `required:"false"` // 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 Tag *string `required:"false"` // 单个云手机独立IP网络带宽,单位Kbps;CityId为oversea时不生效;手机规格为UPhone Store和UPhone Live时不生效 UPhoneBandwidth *int `required:"false"` // 创建云手机的个数 UPhoneCount *int `required:"true"` // 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。 UPhoneModelName *string `required:"true"` // 使用区域全局共享带宽 UseGlobalBws *bool `required:"false"` // 使用Kbps限速 UseKbps *bool `required:"false"` }
CreateUPhoneRequest is request schema for CreateUPhone action
type CreateUPhoneResponse ¶ added in v0.21.38
type CreateUPhoneResponse struct { response.CommonBase // 任务ID,用来查询创建云手机任务状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string // 【数组】创建的云手机ID UPhoneIds []string }
CreateUPhoneResponse is response schema for CreateUPhone 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,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 CityId *string `required:"true"` // 云手机服务器代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机服务器计费 CouponId *string `required:"false"` // 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像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个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。 ServerModelName *string `required:"true"` ShareBandwidth *int `required:"false"` // 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 Tag *string `required:"false"` // 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。 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"` // 枚举值【必填项】。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"false"` }
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 DeleteUPhoneRequest ¶ added in v0.21.38
type DeleteUPhoneRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 CityId *string `required:"false"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 ID,N<200;调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId UPhoneIds []string `required:"true"` }
DeleteUPhoneRequest is request schema for DeleteUPhone action
type DeleteUPhoneResponse ¶ added in v0.21.38
type DeleteUPhoneResponse struct { response.CommonBase // 任务ID,用来查询删除云手机任务状态 JobId string }
DeleteUPhoneResponse is response schema for DeleteUPhone 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 DeleteUPhoneShareBandwidthRequest ¶ added in v0.21.39
type DeleteUPhoneShareBandwidthRequest struct { string `required:"true"` }ShareBandwidthId *
DeleteUPhoneShareBandwidthRequest is request schema for DeleteUPhoneShareBandwidth action
type DeleteUPhoneShareBandwidthResponse ¶ added in v0.21.39
type DeleteUPhoneShareBandwidthResponse struct { string }Message
DeleteUPhoneShareBandwidthResponse is response schema for DeleteUPhoneShareBandwidth 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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `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 // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` }
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:"false"` // 返回数据长度,默认为20,最大100 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `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 DescribeUPhoneEipListRequest ¶ added in v0.21.41
type DescribeUPhoneEipListRequest struct { request.CommonBase // 云手机与Eip绑定比例,没有该参数表示获取所有绑定比例 Proportion *string `required:"false"` }
DescribeUPhoneEipListRequest is request schema for DescribeUPhoneEipList action
type DescribeUPhoneEipListResponse ¶ added in v0.21.41
type DescribeUPhoneEipListResponse struct { response.CommonBase // Eip信息列表 EipInfos []EipInfo // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string // Eip信息数量 TotalCount int }
DescribeUPhoneEipListResponse is response schema for DescribeUPhoneEipList 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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *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,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取;新增一个oversea虚拟城市,用来获取所有支持的海外独立IP地域 CityId *string `required:"true"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` }
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:"false"` // 【数组】Job 的唯一标识 Id,调用方式举例:JobIds.0=希望查询状态的 Job1,JobIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。 JobIds []string `required:"false"` // 返回数据长度,默认为20,最大100 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `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"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"false"` // 使用场景:海外(OVERSEA),境内(INLAND) Scene *string `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:"false"` // 是否返回全部。如果有此参数,分页不生效。 IsAll *bool `required:"false"` // 返回数据长度,默认为200,最大200 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 枚举值。【必填项】表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `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 // 服务器model的库存 Stock []StockInfo // 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 DescribeUPhoneShareBandwidthRequest ¶ added in v0.21.39
type DescribeUPhoneShareBandwidthRequest struct { string `required:"false"` }ShareBandwidthId *
DescribeUPhoneShareBandwidthRequest is request schema for DescribeUPhoneShareBandwidth action
type DescribeUPhoneShareBandwidthResponse ¶ added in v0.21.39
type DescribeUPhoneShareBandwidthResponse struct { string ShareBandwidth []ShareBandwidthInfo TotalCount int }Message
DescribeUPhoneShareBandwidthResponse is response schema for DescribeUPhoneShareBandwidth action
type EipInfo ¶ added in v0.21.41
type EipInfo struct { // 当前绑定云手机数量 BindCount int // 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 ChargeType string // 创建时间;格式为Unix时间戳 CreateTime int // Eip资源ID EipId string // Eip地址 EipIp string // 到期时间;格式为Unix时间戳 ExpireTime int // Eip名称 Name string // 云手机与Eip绑定比例 Proportion int // Eip所属区域 Region string // 剩余可绑定手机数量 RemainCount int // Eip备注 Remark string // 绑定的云手机ID UPhoneIds []string }
EipInfo - EIP信息
type GetUPhoneAllowanceRequest ¶ added in v0.21.38
type GetUPhoneAllowanceRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"true"` }
GetUPhoneAllowanceRequest is request schema for GetUPhoneAllowance action
type GetUPhoneAllowanceResponse ¶ added in v0.21.38
type GetUPhoneAllowanceResponse struct { response.CommonBase // 手机型号以及可创建数量 UPhoneAllowance []UPhoneAllowance }
GetUPhoneAllowanceResponse is response schema for GetUPhoneAllowance action
type GetUPhoneBandwidthUpgradePriceRequest ¶ added in v0.21.47
type GetUPhoneBandwidthUpgradePriceRequest struct { request.CommonBase // 带宽大小,单位Kbps,必须是100的整数倍 Bandwidth *int `required:"true"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"true"` // 云手机ID UPhoneId *string `required:"true"` }
GetUPhoneBandwidthUpgradePriceRequest is request schema for GetUPhoneBandwidthUpgradePrice action
type GetUPhoneBandwidthUpgradePriceResponse ¶ added in v0.21.47
type GetUPhoneBandwidthUpgradePriceResponse struct { response.CommonBase // 产品列表价 ListPrice float64 // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string // 限时优惠的折前原价(即列表价乘以商务折扣后的单价) OriginalPrice float64 // 规格调整差价。单位: 元,保留小数点后两位有效数字 Price float64 }
GetUPhoneBandwidthUpgradePriceResponse is response schema for GetUPhoneBandwidthUpgradePrice action
type GetUPhonePriceRequest ¶ added in v0.21.38
type GetUPhonePriceRequest struct { request.CommonBase // 购买独立IP并且使用全局共享带宽时需要此参数,带宽线路数量,与云手机数量一致 BandwidthLine *int `required:"false"` // 计费模式。枚举值为: > Year,按年付费; > Month,按月付费;> Day,按天付费; > Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。 ChargeType *string `required:"false"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"true"` // 购买独立IP需要此参数,其中一个ip的带宽值。 INetBandwidth *int `required:"false"` // 购买独立IP需要此参数。需要的eip数量。 IpCount *int `required:"false"` // 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) IpDestRegion *string `required:"false"` // 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。 Quantity *int `required:"false"` // 单个云手机带宽大小,单位Kbps,仅在UseKbps为true时生效 UPhoneBandwidth *int `required:"false"` // 云手机个数 UPhoneCount *int `required:"false"` // 云手机规格名称 UPhoneModelName *int `required:"false"` // 使用全局共享带宽 UseGlobalBws *bool `required:"false"` // 使用Kbps单位带宽,仅在使用全局共享带宽时生效,值为true时BandwidthLine参数不再生效 UseKbps *bool `required:"false"` }
GetUPhonePriceRequest is request schema for GetUPhonePrice action
type GetUPhonePriceResponse ¶ added in v0.21.38
type GetUPhonePriceResponse struct { response.CommonBase // 价格列表,每项参数见UPhonePriceSet PriceSet []UPhonePriceSet }
GetUPhonePriceResponse is response schema for GetUPhonePrice action
type GetUPhoneRenewPriceRequest ¶ added in v0.21.38
type GetUPhoneRenewPriceRequest struct { request.CommonBase // 计费模式。枚举值为: > Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格 ChargeType *string `required:"false"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 云手机的唯一标识,可通过[查询云手机列表]获取。 UPhoneId *string `required:"true"` }
GetUPhoneRenewPriceRequest is request schema for GetUPhoneRenewPrice action
type GetUPhoneRenewPriceResponse ¶ added in v0.21.38
type GetUPhoneRenewPriceResponse struct { response.CommonBase // 价格列表,具体参数见UPhonePriceSet PriceSet []UPhonePriceSet }
GetUPhoneRenewPriceResponse is response schema for GetUPhoneRenewPrice action
type GetUPhoneScreenCaptureRequest ¶
type GetUPhoneScreenCaptureRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 云手机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 GetUPhoneShareBandwidthUpgradePriceRequest ¶ added in v0.21.39
type GetUPhoneShareBandwidthUpgradePriceRequest struct { int `required:"true"` ShareBandwidthId *string `required:"true"` }Bandwidth *
GetUPhoneShareBandwidthUpgradePriceRequest is request schema for GetUPhoneShareBandwidthUpgradePrice action
type GetUPhoneShareBandwidthUpgradePriceResponse ¶ added in v0.21.39
type GetUPhoneShareBandwidthUpgradePriceResponse struct { float64 Message string OriginalPrice float64 Price float64 }ListPrice
GetUPhoneShareBandwidthUpgradePriceResponse is response schema for GetUPhoneShareBandwidthUpgradePrice action
type ImportFileRequest ¶ added in v0.21.38
type ImportFileRequest struct { request.CommonBase // 上传文件为apk时,可强制指定32位还是64位运行。armeabi-v7a(32位);不填为系统默认值(64位) ABI *string `required:"false"` // 城市。 参见 [云手机城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities) CityId *string `required:"false"` // 文件名 FileName *string `required:"true"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"false"` // 云手机ID UPhoneIds []string `required:"true"` // 文件下载链接 URL *string `required:"true"` }
ImportFileRequest is request schema for ImportFile action
type ImportFileResponse ¶ added in v0.21.38
type ImportFileResponse struct { response.CommonBase // 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 JobId string }
ImportFileResponse is response schema for ImportFile action
type InstallUPhoneAppVersionRequest ¶
type InstallUPhoneAppVersionRequest struct { request.CommonBase // 应用版本的唯一标识ID AppVersionId *string `required:"true"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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 ModifyUPhoneBandwidthRequest ¶ added in v0.21.47
type ModifyUPhoneBandwidthRequest struct { request.CommonBase // 带宽大小,单位Kbps,必须是100的整数倍 Bandwidth *int `required:"true"` // 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 ProductType *string `required:"true"` // 云手机ID UPhoneId *string `required:"true"` }
ModifyUPhoneBandwidthRequest is request schema for ModifyUPhoneBandwidth action
type ModifyUPhoneBandwidthResponse ¶ added in v0.21.47
type ModifyUPhoneBandwidthResponse struct { response.CommonBase // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
ModifyUPhoneBandwidthResponse is response schema for ModifyUPhoneBandwidth action
type ModifyUPhoneNameRequest ¶
type ModifyUPhoneNameRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 云手机实例名称 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:"false"` // 备注 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 ModifyUPhoneShareBandwidthNameRequest ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthNameRequest struct { string `required:"true"` ShareBandwidthId *string `required:"true"` }Name *
ModifyUPhoneShareBandwidthNameRequest is request schema for ModifyUPhoneShareBandwidthName action
type ModifyUPhoneShareBandwidthNameResponse ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthNameResponse struct { string }Message
ModifyUPhoneShareBandwidthNameResponse is response schema for ModifyUPhoneShareBandwidthName action
type ModifyUPhoneShareBandwidthRemarkRequest ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthRemarkRequest struct { string `required:"true"` ShareBandwidthId *string `required:"true"` }Remark *
ModifyUPhoneShareBandwidthRemarkRequest is request schema for ModifyUPhoneShareBandwidthRemark action
type ModifyUPhoneShareBandwidthRemarkResponse ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthRemarkResponse struct { string }Message
ModifyUPhoneShareBandwidthRemarkResponse is response schema for ModifyUPhoneShareBandwidthRemark action
type ModifyUPhoneShareBandwidthRequest ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthRequest struct { string `required:"true"` ShareBandwidthId *string `required:"true"` }Bandwidth *
ModifyUPhoneShareBandwidthRequest is request schema for ModifyUPhoneShareBandwidth action
type ModifyUPhoneShareBandwidthResponse ¶ added in v0.21.39
type ModifyUPhoneShareBandwidthResponse struct { string }Message
ModifyUPhoneShareBandwidthResponse is response schema for ModifyUPhoneShareBandwidth action
type PoweroffUPhoneRequest ¶
type PoweroffUPhoneRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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 // 任务ID,用来查询当前任务状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
PoweroffUPhoneResponse is response schema for PoweroffUPhone action
type PoweronUPhoneRequest ¶
type PoweronUPhoneRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源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 // 任务ID,用来查询当前任务状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
PoweronUPhoneResponse is response schema for PoweronUPhone action
type RebootUPhoneRequest ¶
type RebootUPhoneRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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 // 异步请求成功后返回JobId,用以查询Job状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
RebootUPhoneResponse is response schema for RebootUPhone action
type RenewUPhoneRequest ¶ added in v0.21.38
type RenewUPhoneRequest struct { request.CommonBase // AOSP唯一标识 AndroidID *string `required:"false"` // Wi-Fi 物理地址 BSSID *string `required:"false"` // 基带版本 BaseBand *string `required:"false"` // 主板名 Board *string `required:"false"` // bootloader版本号 BootLoader *string `required:"false"` // 品牌 Brand *string `required:"false"` // 固件编译主机 BuildHost *string `required:"false"` // build的版本号 BuildID *string `required:"false"` // 系统标记 BuildTags *string `required:"false"` // 版本增加说明 BuildVersionInc *string `required:"false"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 自定义设备参数设置的开关,true时会读取用户设置的下列设备参数信息;false时随机读取ucloud内置设备参数。默认false Customize *bool `required:"false"` // 设备名 Device *string `required:"false"` // 显示的版本号 DisplayID *string `required:"false"` // 系统指纹 FingerPrint *string `required:"false"` // SIM卡唯一标识 ICCID *string `required:"false"` // 串号 IMEI *string `required:"false"` // 移动设备标识码软件 IMEISV *string `required:"false"` // 移动识别码 IMSI *string `required:"false"` // 厂商 Manufacture *string `required:"false"` // 设备型号 Model *string `required:"false"` // 手机号码 PhoneNumber *string `required:"false"` // 产品名称 ProductName *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 移动网络mac地址 RadioMac *string `required:"false"` // 序列号 SerialNumber *string `required:"false"` // 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 UPhoneIds []string `required:"true"` // 当前连接Wi-Fi名称 WiFiName *string `required:"false"` }
RenewUPhoneRequest is request schema for RenewUPhone action
type RenewUPhoneResponse ¶ added in v0.21.38
type RenewUPhoneResponse struct { response.CommonBase // 任务ID,用来查询一键新机任务状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
RenewUPhoneResponse is response schema for RenewUPhone action
type ResetUPhoneRequest ¶
type ResetUPhoneRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 镜像ID,默认为空。不为空则手机会以填写的镜像进行重置,为空则手机会以重置前的镜像重置 ImageId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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 // 异步请求成功后返回JobId,用以查询Job状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
ResetUPhoneResponse is response schema for ResetUPhone action
type RunAsyncCommandRequest ¶
type RunAsyncCommandRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 待执行的命令。 Content *string `required:"true"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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:"false"` // 待执行的命令。 Content *string `required:"true"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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 SetUPhoneCallbackRequest ¶ added in v0.21.38
type SetUPhoneCallbackRequest struct { request.CommonBase // 城市ID CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 云手机ID。 UPhoneId *string `required:"true"` // 接收POST请求的http接口。Content-Type:application/json; charset=UTF-8,Accept:application/json。 URL *string `required:"true"` }
SetUPhoneCallbackRequest is request schema for SetUPhoneCallback action
type SetUPhoneCallbackResponse ¶ added in v0.21.38
type SetUPhoneCallbackResponse struct {
response.CommonBase
}
SetUPhoneCallbackResponse is response schema for SetUPhoneCallback action
type SetUPhoneConfigRequest ¶
type SetUPhoneConfigRequest struct { request.CommonBase // 异步请求开关,只有为1的时候才是异步,不填或者其他数值为同步 Async *string `required:"false"` // 云手机画面传输码率(例,8000)取值范围[100,50000] Bitrate *string `required:"false"` // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 云手机dpi,取值范围[100,1000] Dpi *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *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"` // GPS开关,true开启,false关闭,默认false Enabled *bool `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:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 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:"false"` // 管理模式:管理员admin,普通用户user Mode *string `required:"true"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 云手机实例的资源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 SetUPhoneRootModeRequest ¶ added in v0.21.38
type SetUPhoneRootModeRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 CityId *string `required:"false"` // 【数组】加入应用白名单的包名 PkgNames []string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // true则打开Root权限;false则关闭Root权限 Root *bool `required:"true"` // 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 UPhoneIds []string `required:"true"` }
SetUPhoneRootModeRequest is request schema for SetUPhoneRootMode action
type SetUPhoneRootModeResponse ¶ added in v0.21.38
type SetUPhoneRootModeResponse struct { response.CommonBase // 异步请求成功后返回JobId,用以查询Job状态 JobId string // 返回错误消息,当 RetCode 非 0 时提供详细的描述信息 Message string }
SetUPhoneRootModeResponse is response schema for SetUPhoneRootMode action
type SetUPhoneTokenRequest ¶ added in v0.21.37
type SetUPhoneTokenRequest struct { request.CommonBase // 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 CityId *string `required:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 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 ShareBandwidthInfo ¶ added in v0.21.39
type ShareBandwidthInfo struct { int BindCount int ChargeType string CreateTime int ExpireTime int Id string IpCount int IpProportion int Name string Region string RemainCount int Remark string }Bandwidth
ShareBandwidthInfo - 共享带宽信息
type SwitchUPhoneIndependentIpRequest ¶ added in v0.21.39
type SwitchUPhoneIndependentIpRequest struct { request.CommonBase // 云手机独立IP地址ID EipId *string `required:"true"` }
SwitchUPhoneIndependentIpRequest is request schema for SwitchUPhoneIndependentIp action
type SwitchUPhoneIndependentIpResponse ¶ added in v0.21.39
type SwitchUPhoneIndependentIpResponse struct { response.CommonBase // 返回错误消息,当 `RetCode` 非 0 时提供详细的描述信息 Message string // 更换后的新IP地址 NewIp string }
SwitchUPhoneIndependentIpResponse is response schema for SwitchUPhoneIndependentIp 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 UPhoneAllowance ¶ added in v0.21.38
type UPhoneAllowance struct { // 可创建云手机个数 Allowance int // 枚举值,云手机型号名称,取值:UPhone X,UPhone Plus,UPhone Pro ModelName string }
UPhoneAllowance - 云手机余量结构体
type UPhoneClient ¶
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) CreateUPhone ¶ added in v0.21.38
func (c *UPhoneClient) CreateUPhone(req *CreateUPhoneRequest) (*CreateUPhoneResponse, error)
API: CreateUPhone
创建云手机
func (*UPhoneClient) CreateUPhoneApp ¶
func (c *UPhoneClient) CreateUPhoneApp(req *CreateUPhoneAppRequest) (*CreateUPhoneAppResponse, error)
API: CreateUPhoneApp
一个 app 对应多个 app_version。
func (*UPhoneClient) CreateUPhoneAppVersion ¶
func (c *UPhoneClient) CreateUPhoneAppVersion(req *CreateUPhoneAppVersionRequest) (*CreateUPhoneAppVersionResponse, error)
API: CreateUPhoneAppVersion
创建云手机应用版本。 注:一个 app 对应多个 app_version。
func (*UPhoneClient) CreateUPhoneImage ¶
func (c *UPhoneClient) CreateUPhoneImage(req *CreateUPhoneImageRequest) (*CreateUPhoneImageResponse, error)
API: CreateUPhoneImage
创建云手机镜像。
func (*UPhoneClient) CreateUPhoneServer ¶
func (c *UPhoneClient) CreateUPhoneServer(req *CreateUPhoneServerRequest) (*CreateUPhoneServerResponse, error)
API: CreateUPhoneServer
创建云手机服务器
func (*UPhoneClient) DeleteUPhone ¶ added in v0.21.38
func (c *UPhoneClient) DeleteUPhone(req *DeleteUPhoneRequest) (*DeleteUPhoneResponse, error)
API: DeleteUPhone
删除云手机
func (*UPhoneClient) DeleteUPhoneImage ¶
func (c *UPhoneClient) DeleteUPhoneImage(req *DeleteUPhoneImageRequest) (*DeleteUPhoneImageResponse, error)
API: DeleteUPhoneImage
删除自制云手机镜像。
func (*UPhoneClient) DeleteUPhoneServer ¶
func (c *UPhoneClient) DeleteUPhoneServer(req *DeleteUPhoneServerRequest) (*DeleteUPhoneServerResponse, error)
API: DeleteUPhoneServer
删除云手机服务器。
func (*UPhoneClient) DeleteUPhoneShareBandwidth ¶ added in v0.21.39
func (c *UPhoneClient) DeleteUPhoneShareBandwidth(req *DeleteUPhoneShareBandwidthRequest) (*DeleteUPhoneShareBandwidthResponse, error)
API: DeleteUPhoneShareBandwidth
删除云手机共享带宽
func (*UPhoneClient) DescribeUPhone ¶
func (c *UPhoneClient) DescribeUPhone(req *DescribeUPhoneRequest) (*DescribeUPhoneResponse, error)
API: DescribeUPhone
获取云手机列表信息。
func (*UPhoneClient) DescribeUPhoneApp ¶
func (c *UPhoneClient) DescribeUPhoneApp(req *DescribeUPhoneAppRequest) (*DescribeUPhoneAppResponse, error)
API: DescribeUPhoneApp
获取应用列表。
func (*UPhoneClient) DescribeUPhoneAppVersion ¶
func (c *UPhoneClient) DescribeUPhoneAppVersion(req *DescribeUPhoneAppVersionRequest) (*DescribeUPhoneAppVersionResponse, error)
API: DescribeUPhoneAppVersion
获取应用版本列表。
func (*UPhoneClient) DescribeUPhoneCities ¶
func (c *UPhoneClient) DescribeUPhoneCities(req *DescribeUPhoneCitiesRequest) (*DescribeUPhoneCitiesResponse, error)
API: DescribeUPhoneCities
获取云手机提供服务的城市列表
func (*UPhoneClient) DescribeUPhoneDetailByApp ¶
func (c *UPhoneClient) DescribeUPhoneDetailByApp(req *DescribeUPhoneDetailByAppRequest) (*DescribeUPhoneDetailByAppResponse, error)
API: DescribeUPhoneDetailByApp
根据AppId,查询安装该应用的云手机以及相关的应用版本信息
func (*UPhoneClient) DescribeUPhoneEipList ¶ added in v0.21.41
func (c *UPhoneClient) DescribeUPhoneEipList(req *DescribeUPhoneEipListRequest) (*DescribeUPhoneEipListResponse, error)
API: DescribeUPhoneEipList
获取云手机Eip列表
func (*UPhoneClient) DescribeUPhoneImage ¶
func (c *UPhoneClient) DescribeUPhoneImage(req *DescribeUPhoneImageRequest) (*DescribeUPhoneImageResponse, error)
API: DescribeUPhoneImage
获取云手机镜像信息列表。
func (*UPhoneClient) DescribeUPhoneIpRegions ¶
func (c *UPhoneClient) DescribeUPhoneIpRegions(req *DescribeUPhoneIpRegionsRequest) (*DescribeUPhoneIpRegionsResponse, error)
API: DescribeUPhoneIpRegions
获取云手机所在城市支持绑定独立IP的地域列表
func (*UPhoneClient) DescribeUPhoneJob ¶
func (c *UPhoneClient) DescribeUPhoneJob(req *DescribeUPhoneJobRequest) (*DescribeUPhoneJobResponse, error)
API: DescribeUPhoneJob
查询Job的执行状态。
func (*UPhoneClient) DescribeUPhoneModel ¶
func (c *UPhoneClient) DescribeUPhoneModel(req *DescribeUPhoneModelRequest) (*DescribeUPhoneModelResponse, error)
API: DescribeUPhoneModel
获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
func (*UPhoneClient) DescribeUPhoneServer ¶
func (c *UPhoneClient) DescribeUPhoneServer(req *DescribeUPhoneServerRequest) (*DescribeUPhoneServerResponse, error)
API: DescribeUPhoneServer
获取云手机服务器列表信息。
func (*UPhoneClient) DescribeUPhoneServerModel ¶
func (c *UPhoneClient) DescribeUPhoneServerModel(req *DescribeUPhoneServerModelRequest) (*DescribeUPhoneServerModelResponse, error)
API: DescribeUPhoneServerModel
获取ServerModel列表。
func (*UPhoneClient) DescribeUPhoneShareBandwidth ¶ added in v0.21.39
func (c *UPhoneClient) DescribeUPhoneShareBandwidth(req *DescribeUPhoneShareBandwidthRequest) (*DescribeUPhoneShareBandwidthResponse, error)
API: DescribeUPhoneShareBandwidth
获取共享带宽列表
func (*UPhoneClient) GetUPhoneAllowance ¶ added in v0.21.38
func (c *UPhoneClient) GetUPhoneAllowance(req *GetUPhoneAllowanceRequest) (*GetUPhoneAllowanceResponse, error)
API: GetUPhoneAllowance
获取云手机创建余量
func (*UPhoneClient) GetUPhoneBandwidthUpgradePrice ¶ added in v0.21.47
func (c *UPhoneClient) GetUPhoneBandwidthUpgradePrice(req *GetUPhoneBandwidthUpgradePriceRequest) (*GetUPhoneBandwidthUpgradePriceResponse, error)
API: GetUPhoneBandwidthUpgradePrice
获取云手机带宽升降级价格
func (*UPhoneClient) GetUPhonePrice ¶ added in v0.21.38
func (c *UPhoneClient) GetUPhonePrice(req *GetUPhonePriceRequest) (*GetUPhonePriceResponse, error)
API: GetUPhonePrice
根据云手机规格名称,获取UPhone实例的价格。
func (*UPhoneClient) GetUPhoneRenewPrice ¶ added in v0.21.38
func (c *UPhoneClient) GetUPhoneRenewPrice(req *GetUPhoneRenewPriceRequest) (*GetUPhoneRenewPriceResponse, error)
API: GetUPhoneRenewPrice
获取云手机续费价格,不包括独立ip价格。
func (*UPhoneClient) GetUPhoneScreenCapture ¶
func (c *UPhoneClient) GetUPhoneScreenCapture(req *GetUPhoneScreenCaptureRequest) (*GetUPhoneScreenCaptureResponse, error)
API: GetUPhoneScreenCapture
云手机截屏
func (*UPhoneClient) GetUPhoneServerPrice ¶
func (c *UPhoneClient) GetUPhoneServerPrice(req *GetUPhoneServerPriceRequest) (*GetUPhoneServerPriceResponse, error)
API: GetUPhoneServerPrice
根据服务器规格名称,获取UPhoneServer实例的价格。
func (*UPhoneClient) GetUPhoneServerRenewPrice ¶
func (c *UPhoneClient) GetUPhoneServerRenewPrice(req *GetUPhoneServerRenewPriceRequest) (*GetUPhoneServerRenewPriceResponse, error)
API: GetUPhoneServerRenewPrice
获取云手机服务器续费价格
提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
func (*UPhoneClient) GetUPhoneShareBandwidthUpgradePrice ¶ added in v0.21.39
func (c *UPhoneClient) GetUPhoneShareBandwidthUpgradePrice(req *GetUPhoneShareBandwidthUpgradePriceRequest) (*GetUPhoneShareBandwidthUpgradePriceResponse, error)
API: GetUPhoneShareBandwidthUpgradePrice
获取云手机共享带宽升降级价格
func (*UPhoneClient) ImportFile ¶ added in v0.21.38
func (c *UPhoneClient) ImportFile(req *ImportFileRequest) (*ImportFileResponse, error)
API: ImportFile
上传文件到云手机目录/sdcard/Download/并自动安装APK文件
func (*UPhoneClient) InstallUPhoneAppVersion ¶
func (c *UPhoneClient) InstallUPhoneAppVersion(req *InstallUPhoneAppVersionRequest) (*InstallUPhoneAppVersionResponse, error)
API: InstallUPhoneAppVersion
在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
func (*UPhoneClient) ModifyUPhoneBandwidth ¶ added in v0.21.47
func (c *UPhoneClient) ModifyUPhoneBandwidth(req *ModifyUPhoneBandwidthRequest) (*ModifyUPhoneBandwidthResponse, error)
API: ModifyUPhoneBandwidth
修改云手机带宽
func (*UPhoneClient) ModifyUPhoneName ¶
func (c *UPhoneClient) ModifyUPhoneName(req *ModifyUPhoneNameRequest) (*ModifyUPhoneNameResponse, error)
API: ModifyUPhoneName
修改指定云手机实例名称。
func (*UPhoneClient) ModifyUPhoneRemark ¶
func (c *UPhoneClient) ModifyUPhoneRemark(req *ModifyUPhoneRemarkRequest) (*ModifyUPhoneRemarkResponse, error)
API: ModifyUPhoneRemark
修改指定云手机实例备注信息。
func (*UPhoneClient) ModifyUPhoneServerName ¶
func (c *UPhoneClient) ModifyUPhoneServerName(req *ModifyUPhoneServerNameRequest) (*ModifyUPhoneServerNameResponse, error)
API: ModifyUPhoneServerName
修改指定云手机服务器实例名称。
func (*UPhoneClient) ModifyUPhoneServerRemark ¶
func (c *UPhoneClient) ModifyUPhoneServerRemark(req *ModifyUPhoneServerRemarkRequest) (*ModifyUPhoneServerRemarkResponse, error)
API: ModifyUPhoneServerRemark
修改指定云手机实例备注信息。
func (*UPhoneClient) ModifyUPhoneShareBandwidth ¶ added in v0.21.39
func (c *UPhoneClient) ModifyUPhoneShareBandwidth(req *ModifyUPhoneShareBandwidthRequest) (*ModifyUPhoneShareBandwidthResponse, error)
API: ModifyUPhoneShareBandwidth
修改云手机共享带宽
func (*UPhoneClient) ModifyUPhoneShareBandwidthName ¶ added in v0.21.39
func (c *UPhoneClient) ModifyUPhoneShareBandwidthName(req *ModifyUPhoneShareBandwidthNameRequest) (*ModifyUPhoneShareBandwidthNameResponse, error)
API: ModifyUPhoneShareBandwidthName
修改云手机共享带宽名称
func (*UPhoneClient) ModifyUPhoneShareBandwidthRemark ¶ added in v0.21.39
func (c *UPhoneClient) ModifyUPhoneShareBandwidthRemark(req *ModifyUPhoneShareBandwidthRemarkRequest) (*ModifyUPhoneShareBandwidthRemarkResponse, error)
API: ModifyUPhoneShareBandwidthRemark
修改云手机共享带宽备注
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) NewCreateUPhoneRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewCreateUPhoneRequest() *CreateUPhoneRequest
NewCreateUPhoneRequest will create request of CreateUPhone 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) NewDeleteUPhoneRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewDeleteUPhoneRequest() *DeleteUPhoneRequest
NewDeleteUPhoneRequest will create request of DeleteUPhone action.
func (*UPhoneClient) NewDeleteUPhoneServerRequest ¶
func (c *UPhoneClient) NewDeleteUPhoneServerRequest() *DeleteUPhoneServerRequest
NewDeleteUPhoneServerRequest will create request of DeleteUPhoneServer action.
func (*UPhoneClient) NewDeleteUPhoneShareBandwidthRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewDeleteUPhoneShareBandwidthRequest() *DeleteUPhoneShareBandwidthRequest
NewDeleteUPhoneShareBandwidthRequest will create request of DeleteUPhoneShareBandwidth 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) NewDescribeUPhoneEipListRequest ¶ added in v0.21.41
func (c *UPhoneClient) NewDescribeUPhoneEipListRequest() *DescribeUPhoneEipListRequest
NewDescribeUPhoneEipListRequest will create request of DescribeUPhoneEipList 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) NewDescribeUPhoneShareBandwidthRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewDescribeUPhoneShareBandwidthRequest() *DescribeUPhoneShareBandwidthRequest
NewDescribeUPhoneShareBandwidthRequest will create request of DescribeUPhoneShareBandwidth action.
func (*UPhoneClient) NewGetUPhoneAllowanceRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewGetUPhoneAllowanceRequest() *GetUPhoneAllowanceRequest
NewGetUPhoneAllowanceRequest will create request of GetUPhoneAllowance action.
func (*UPhoneClient) NewGetUPhoneBandwidthUpgradePriceRequest ¶ added in v0.21.47
func (c *UPhoneClient) NewGetUPhoneBandwidthUpgradePriceRequest() *GetUPhoneBandwidthUpgradePriceRequest
NewGetUPhoneBandwidthUpgradePriceRequest will create request of GetUPhoneBandwidthUpgradePrice action.
func (*UPhoneClient) NewGetUPhonePriceRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewGetUPhonePriceRequest() *GetUPhonePriceRequest
NewGetUPhonePriceRequest will create request of GetUPhonePrice action.
func (*UPhoneClient) NewGetUPhoneRenewPriceRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewGetUPhoneRenewPriceRequest() *GetUPhoneRenewPriceRequest
NewGetUPhoneRenewPriceRequest will create request of GetUPhoneRenewPrice 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) NewGetUPhoneShareBandwidthUpgradePriceRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewGetUPhoneShareBandwidthUpgradePriceRequest() *GetUPhoneShareBandwidthUpgradePriceRequest
NewGetUPhoneShareBandwidthUpgradePriceRequest will create request of GetUPhoneShareBandwidthUpgradePrice action.
func (*UPhoneClient) NewImportFileRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewImportFileRequest() *ImportFileRequest
NewImportFileRequest will create request of ImportFile action.
func (*UPhoneClient) NewInstallUPhoneAppVersionRequest ¶
func (c *UPhoneClient) NewInstallUPhoneAppVersionRequest() *InstallUPhoneAppVersionRequest
NewInstallUPhoneAppVersionRequest will create request of InstallUPhoneAppVersion action.
func (*UPhoneClient) NewModifyUPhoneBandwidthRequest ¶ added in v0.21.47
func (c *UPhoneClient) NewModifyUPhoneBandwidthRequest() *ModifyUPhoneBandwidthRequest
NewModifyUPhoneBandwidthRequest will create request of ModifyUPhoneBandwidth 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) NewModifyUPhoneShareBandwidthNameRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewModifyUPhoneShareBandwidthNameRequest() *ModifyUPhoneShareBandwidthNameRequest
NewModifyUPhoneShareBandwidthNameRequest will create request of ModifyUPhoneShareBandwidthName action.
func (*UPhoneClient) NewModifyUPhoneShareBandwidthRemarkRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewModifyUPhoneShareBandwidthRemarkRequest() *ModifyUPhoneShareBandwidthRemarkRequest
NewModifyUPhoneShareBandwidthRemarkRequest will create request of ModifyUPhoneShareBandwidthRemark action.
func (*UPhoneClient) NewModifyUPhoneShareBandwidthRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewModifyUPhoneShareBandwidthRequest() *ModifyUPhoneShareBandwidthRequest
NewModifyUPhoneShareBandwidthRequest will create request of ModifyUPhoneShareBandwidth 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) NewRenewUPhoneRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewRenewUPhoneRequest() *RenewUPhoneRequest
NewRenewUPhoneRequest will create request of RenewUPhone 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) NewSetUPhoneCallbackRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewSetUPhoneCallbackRequest() *SetUPhoneCallbackRequest
NewSetUPhoneCallbackRequest will create request of SetUPhoneCallback 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) NewSetUPhoneRootModeRequest ¶ added in v0.21.38
func (c *UPhoneClient) NewSetUPhoneRootModeRequest() *SetUPhoneRootModeRequest
NewSetUPhoneRootModeRequest will create request of SetUPhoneRootMode action.
func (*UPhoneClient) NewSetUPhoneTokenRequest ¶ added in v0.21.37
func (c *UPhoneClient) NewSetUPhoneTokenRequest() *SetUPhoneTokenRequest
NewSetUPhoneTokenRequest will create request of SetUPhoneToken action.
func (*UPhoneClient) NewSwitchUPhoneIndependentIpRequest ¶ added in v0.21.39
func (c *UPhoneClient) NewSwitchUPhoneIndependentIpRequest() *SwitchUPhoneIndependentIpRequest
NewSwitchUPhoneIndependentIpRequest will create request of SwitchUPhoneIndependentIp 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) RenewUPhone ¶ added in v0.21.38
func (c *UPhoneClient) RenewUPhone(req *RenewUPhoneRequest) (*RenewUPhoneResponse, error)
API: RenewUPhone
修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果
func (*UPhoneClient) ResetUPhone ¶
func (c *UPhoneClient) ResetUPhone(req *ResetUPhoneRequest) (*ResetUPhoneResponse, error)
API: ResetUPhone
将云手机恢复为创建时的状态。
func (*UPhoneClient) RunAsyncCommand ¶
func (c *UPhoneClient) RunAsyncCommand(req *RunAsyncCommandRequest) (*RunAsyncCommandResponse, error)
API: RunAsyncCommand
在云手机中执行异步shell命令。
func (*UPhoneClient) RunSyncCommand ¶
func (c *UPhoneClient) RunSyncCommand(req *RunSyncCommandRequest) (*RunSyncCommandResponse, error)
API: RunSyncCommand
在云手机中执行同步shell命令。
func (*UPhoneClient) SetUPhoneCallback ¶ added in v0.21.38
func (c *UPhoneClient) SetUPhoneCallback(req *SetUPhoneCallbackRequest) (*SetUPhoneCallbackResponse, error)
API: SetUPhoneCallback
设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调
func (*UPhoneClient) SetUPhoneConfig ¶
func (c *UPhoneClient) SetUPhoneConfig(req *SetUPhoneConfigRequest) (*SetUPhoneConfigResponse, error)
API: SetUPhoneConfig
设置云手机画面参数(分辨率、DPI、帧率、码率)
func (*UPhoneClient) SetUPhoneGPS ¶
func (c *UPhoneClient) SetUPhoneGPS(req *SetUPhoneGPSRequest) (*SetUPhoneGPSResponse, error)
API: SetUPhoneGPS
设置云手机GPS信息
func (*UPhoneClient) SetUPhoneManagerMode ¶
func (c *UPhoneClient) SetUPhoneManagerMode(req *SetUPhoneManagerModeRequest) (*SetUPhoneManagerModeResponse, error)
API: SetUPhoneManagerMode
管理员模式支持所有按键,普通用户模式禁用返回桌面
func (*UPhoneClient) SetUPhoneRootMode ¶ added in v0.21.38
func (c *UPhoneClient) SetUPhoneRootMode(req *SetUPhoneRootModeRequest) (*SetUPhoneRootModeResponse, error)
API: SetUPhoneRootMode
设置云手机Root模式
func (*UPhoneClient) SetUPhoneToken ¶ added in v0.21.37
func (c *UPhoneClient) SetUPhoneToken(req *SetUPhoneTokenRequest) (*SetUPhoneTokenResponse, error)
API: SetUPhoneToken
设置云手机RTC连接Token提高安全性
func (*UPhoneClient) SwitchUPhoneIndependentIp ¶ added in v0.21.39
func (c *UPhoneClient) SwitchUPhoneIndependentIp(req *SwitchUPhoneIndependentIpRequest) (*SwitchUPhoneIndependentIpResponse, error)
API: SwitchUPhoneIndependentIp
更换云手机独立IP
func (*UPhoneClient) UnInstallUPhoneAppVersion ¶
func (c *UPhoneClient) UnInstallUPhoneAppVersion(req *UnInstallUPhoneAppVersionRequest) (*UnInstallUPhoneAppVersionResponse, error)
API: UnInstallUPhoneAppVersion
传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
func (*UPhoneClient) UpdateUPhoneImage ¶
func (c *UPhoneClient) UpdateUPhoneImage(req *UpdateUPhoneImageRequest) (*UpdateUPhoneImageResponse, error)
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 // 云手机的唯一标识,不超过32个字节。 UPhoneId string // 云手机规格名称 UPhoneModelName 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 { // 云手机的ADB信息 ADB string // 虚拟CPU核数。 CPU float64 // 云手机异步任务回调 Callback string // 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 ChargeType string // 城市Id,eg: cn-shanghai, cn-jinan CityId string // 城市名称,eg:上海二、济南市 CityName string // 创建时间,格式为Unix时间戳。 CreateTime int // 磁盘大小,单位: GB DiskSize int // 云手机IP地址ID EipId string // 到期时间;格式为Unix时间戳 ExpireTime int // 云手机镜像ID,不超过32个字节。 ImageId string // 云手机IP地址 Ip string // IP所属地域Id,eg: hk,th-bkk IpRegion string // 是否锁定带宽,true代表锁定不可更改,false代表未锁定可以修改带宽 LockBandwidth bool // 内存大小。单位MB Memory int // 云手机镜像系统,如"Android armv8" OsType string // 刷新率 Refresh int // 备注 Remark string // 分辨率 Resolution string // 云手机所在的服务器ID,不超过32个字节。 ServerId string ShareBandwidthId string ShareBandwidthName 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 // 云手机带宽,单位Kbps UPhoneBandwidth int // 云手机的唯一标识,不超过32个字节。 UPhoneId string // 云手机规格名称 UPhoneModelName string // 云手机的名称,不超过65个字符。 UPhoneName string // 云手机场景 UPhoneScene string }
UPhoneInstance -
type UPhoneModelInstance ¶
type UPhoneModelInstance struct { // 虚拟CPU核数。 CPU int // 型号描述信息 Description string // 磁盘大小,单位: GB DiskSize int // DPI Dpi int // 内存大小。单位MB Memory int // 刷新率 Refresh int // 分辨率 Resolution string // UPhoneModel名称 UPhoneModelName string }
UPhoneModelInstance -
type UPhonePriceSet ¶ added in v0.21.38
type UPhonePriceSet struct { // 计费类型,枚举值:Year,Month,Dynamic ChargeType string // 产品列表价 ListPrice float64 // 限时优惠的折前原价(即列表价乘以商务折扣后的单价) OriginalPrice float64 // 价格,单位: 元,保留小数点后两位有效数字 Price float64 }
UPhonePriceSet - 云手机价格列表
type UPhoneServerPriceSet ¶
type UPhoneServerPriceSet struct { // 计费类型,枚举值:Year,Month, Dynamic 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:"false"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *string `required:"false"` // 【数组】云手机实例的资源 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"` // 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 ProductType *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