@ucloud-sdks/ucloud-sdk-js 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/uhost/index.d.ts +194 -3
- package/lib/services/uhost/index.js +9 -0
- package/lib/services/ulb/index.d.ts +2 -2
- package/lib/services/unet/index.d.ts +6 -2
- package/lib/services/uphone/index.d.ts +712 -24
- package/lib/services/uphone/index.js +93 -3
- package/lib/services/uvms/index.d.ts +8 -4
- package/lib/services/vpc/index.d.ts +239 -22
- package/lib/services/vpc/index.js +18 -0
- package/package.json +7 -7
|
@@ -9,6 +9,12 @@ export default class UPhoneClient extends Client {
|
|
|
9
9
|
config: ConfigOptions;
|
|
10
10
|
credential: CredentialOptions;
|
|
11
11
|
});
|
|
12
|
+
/**
|
|
13
|
+
* CreateUPhone - 创建云手机
|
|
14
|
+
*
|
|
15
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone
|
|
16
|
+
*/
|
|
17
|
+
createUPhone(request?: CreateUPhoneRequest): Promise<CreateUPhoneResponse>;
|
|
12
18
|
/**
|
|
13
19
|
* CreateUPhoneApp - 一个 app 对应多个 app_version。
|
|
14
20
|
*
|
|
@@ -34,6 +40,12 @@ export default class UPhoneClient extends Client {
|
|
|
34
40
|
* See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone_server
|
|
35
41
|
*/
|
|
36
42
|
createUPhoneServer(request?: CreateUPhoneServerRequest): Promise<CreateUPhoneServerResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* DeleteUPhone - 删除云手机
|
|
45
|
+
*
|
|
46
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/delete_u_phone
|
|
47
|
+
*/
|
|
48
|
+
deleteUPhone(request?: DeleteUPhoneRequest): Promise<DeleteUPhoneResponse>;
|
|
37
49
|
/**
|
|
38
50
|
* DeleteUPhoneImage - 删除自制云手机镜像。
|
|
39
51
|
*
|
|
@@ -41,7 +53,7 @@ export default class UPhoneClient extends Client {
|
|
|
41
53
|
*/
|
|
42
54
|
deleteUPhoneImage(request?: DeleteUPhoneImageRequest): Promise<DeleteUPhoneImageResponse>;
|
|
43
55
|
/**
|
|
44
|
-
* DeleteUPhoneServer - 删除云手机服务器。
|
|
56
|
+
* DeleteUPhoneServer - 删除云手机服务器。
|
|
45
57
|
*
|
|
46
58
|
* See also: https://docs.ucloud.cn/api/uphone-api/delete_u_phone_server
|
|
47
59
|
*/
|
|
@@ -83,7 +95,7 @@ export default class UPhoneClient extends Client {
|
|
|
83
95
|
*/
|
|
84
96
|
describeUPhoneImage(request?: DescribeUPhoneImageRequest): Promise<DescribeUPhoneImageResponse>;
|
|
85
97
|
/**
|
|
86
|
-
* DescribeUPhoneIpRegions -
|
|
98
|
+
* DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表
|
|
87
99
|
*
|
|
88
100
|
* See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_ip_regions
|
|
89
101
|
*/
|
|
@@ -95,7 +107,7 @@ export default class UPhoneClient extends Client {
|
|
|
95
107
|
*/
|
|
96
108
|
describeUPhoneJob(request?: DescribeUPhoneJobRequest): Promise<DescribeUPhoneJobResponse>;
|
|
97
109
|
/**
|
|
98
|
-
* DescribeUPhoneModel -
|
|
110
|
+
* DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
|
|
99
111
|
*
|
|
100
112
|
* See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model
|
|
101
113
|
*/
|
|
@@ -112,6 +124,24 @@ export default class UPhoneClient extends Client {
|
|
|
112
124
|
* See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model
|
|
113
125
|
*/
|
|
114
126
|
describeUPhoneServerModel(request?: DescribeUPhoneServerModelRequest): Promise<DescribeUPhoneServerModelResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* GetUPhoneAllowance - 获取云手机创建余量
|
|
129
|
+
*
|
|
130
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_allowance
|
|
131
|
+
*/
|
|
132
|
+
getUPhoneAllowance(request?: GetUPhoneAllowanceRequest): Promise<GetUPhoneAllowanceResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* GetUPhonePrice - 根据云手机规格名称,获取UPhone实例的价格。
|
|
135
|
+
*
|
|
136
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_price
|
|
137
|
+
*/
|
|
138
|
+
getUPhonePrice(request?: GetUPhonePriceRequest): Promise<GetUPhonePriceResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* GetUPhoneRenewPrice - 获取云手机续费价格,不包括独立ip价格。
|
|
141
|
+
*
|
|
142
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_renew_price
|
|
143
|
+
*/
|
|
144
|
+
getUPhoneRenewPrice(request?: GetUPhoneRenewPriceRequest): Promise<GetUPhoneRenewPriceResponse>;
|
|
115
145
|
/**
|
|
116
146
|
* GetUPhoneScreenCapture - 云手机截屏
|
|
117
147
|
*
|
|
@@ -132,6 +162,12 @@ export default class UPhoneClient extends Client {
|
|
|
132
162
|
* See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_server_renew_price
|
|
133
163
|
*/
|
|
134
164
|
getUPhoneServerRenewPrice(request?: GetUPhoneServerRenewPriceRequest): Promise<GetUPhoneServerRenewPriceResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* ImportFile - 上传文件到云手机目录/sdcard/Download/并自动安装APK文件
|
|
167
|
+
*
|
|
168
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/import_file
|
|
169
|
+
*/
|
|
170
|
+
importFile(request?: ImportFileRequest): Promise<ImportFileResponse>;
|
|
135
171
|
/**
|
|
136
172
|
* InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
|
|
137
173
|
*
|
|
@@ -180,6 +216,12 @@ export default class UPhoneClient extends Client {
|
|
|
180
216
|
* See also: https://docs.ucloud.cn/api/uphone-api/reboot_u_phone
|
|
181
217
|
*/
|
|
182
218
|
rebootUPhone(request?: RebootUPhoneRequest): Promise<RebootUPhoneResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* RenewUPhone - 修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果
|
|
221
|
+
*
|
|
222
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/renew_u_phone
|
|
223
|
+
*/
|
|
224
|
+
renewUPhone(request?: RenewUPhoneRequest): Promise<RenewUPhoneResponse>;
|
|
183
225
|
/**
|
|
184
226
|
* ResetUPhone - 将云手机恢复为创建时的状态。
|
|
185
227
|
*
|
|
@@ -198,6 +240,12 @@ export default class UPhoneClient extends Client {
|
|
|
198
240
|
* See also: https://docs.ucloud.cn/api/uphone-api/run_sync_command
|
|
199
241
|
*/
|
|
200
242
|
runSyncCommand(request?: RunSyncCommandRequest): Promise<RunSyncCommandResponse>;
|
|
243
|
+
/**
|
|
244
|
+
* SetUPhoneCallback - 设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调
|
|
245
|
+
*
|
|
246
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_callback
|
|
247
|
+
*/
|
|
248
|
+
setUPhoneCallback(request?: SetUPhoneCallbackRequest): Promise<SetUPhoneCallbackResponse>;
|
|
201
249
|
/**
|
|
202
250
|
* SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
|
|
203
251
|
*
|
|
@@ -216,12 +264,24 @@ export default class UPhoneClient extends Client {
|
|
|
216
264
|
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_manager_mode
|
|
217
265
|
*/
|
|
218
266
|
setUPhoneManagerMode(request?: SetUPhoneManagerModeRequest): Promise<SetUPhoneManagerModeResponse>;
|
|
267
|
+
/**
|
|
268
|
+
* SetUPhoneRootMode - 设置云手机Root模式
|
|
269
|
+
*
|
|
270
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_root_mode
|
|
271
|
+
*/
|
|
272
|
+
setUPhoneRootMode(request?: SetUPhoneRootModeRequest): Promise<SetUPhoneRootModeResponse>;
|
|
219
273
|
/**
|
|
220
274
|
* SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
|
|
221
275
|
*
|
|
222
276
|
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_splash_screen
|
|
223
277
|
*/
|
|
224
278
|
setUPhoneSplashScreen(request?: SetUPhoneSplashScreenRequest): Promise<SetUPhoneSplashScreenResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
|
|
281
|
+
*
|
|
282
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
|
|
283
|
+
*/
|
|
284
|
+
setUPhoneToken(request?: SetUPhoneTokenRequest): Promise<SetUPhoneTokenResponse>;
|
|
225
285
|
/**
|
|
226
286
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
227
287
|
*
|
|
@@ -235,6 +295,76 @@ export default class UPhoneClient extends Client {
|
|
|
235
295
|
*/
|
|
236
296
|
updateUPhoneImage(request?: UpdateUPhoneImageRequest): Promise<UpdateUPhoneImageResponse>;
|
|
237
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* CreateUPhone - 创建云手机
|
|
300
|
+
*/
|
|
301
|
+
export interface CreateUPhoneRequest {
|
|
302
|
+
/**
|
|
303
|
+
* 云手机实例名称,默认:UPhone。如果同时创建多个,则增加数字后缀,如UPhone-1
|
|
304
|
+
*/
|
|
305
|
+
Name: string;
|
|
306
|
+
/**
|
|
307
|
+
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
|
|
308
|
+
*/
|
|
309
|
+
UPhoneModelName: string;
|
|
310
|
+
/**
|
|
311
|
+
* 云手机画面带宽,默认2M
|
|
312
|
+
*/
|
|
313
|
+
MediaBandwidth: number;
|
|
314
|
+
/**
|
|
315
|
+
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
|
|
316
|
+
*/
|
|
317
|
+
ImageId: string;
|
|
318
|
+
/**
|
|
319
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
320
|
+
*/
|
|
321
|
+
CityId: string;
|
|
322
|
+
/**
|
|
323
|
+
* 创建云手机的个数
|
|
324
|
+
*/
|
|
325
|
+
UPhoneCount: number;
|
|
326
|
+
/**
|
|
327
|
+
* 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付
|
|
328
|
+
*/
|
|
329
|
+
ChargeType?: string;
|
|
330
|
+
/**
|
|
331
|
+
* 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。
|
|
332
|
+
*/
|
|
333
|
+
Quantity?: string;
|
|
334
|
+
/**
|
|
335
|
+
* 购买独立IP必须有此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
336
|
+
*/
|
|
337
|
+
IpDestRegion?: string;
|
|
338
|
+
/**
|
|
339
|
+
* 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。
|
|
340
|
+
*/
|
|
341
|
+
Tag?: string;
|
|
342
|
+
/**
|
|
343
|
+
* 绑定独立IP
|
|
344
|
+
*/
|
|
345
|
+
BindIp?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* 独立IP带宽
|
|
348
|
+
*/
|
|
349
|
+
Bandwidth?: number;
|
|
350
|
+
/**
|
|
351
|
+
* 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。
|
|
352
|
+
*/
|
|
353
|
+
IpProportion?: number;
|
|
354
|
+
/**
|
|
355
|
+
* 云手机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机计费
|
|
356
|
+
*/
|
|
357
|
+
CouponId?: string;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* CreateUPhone - 创建云手机
|
|
361
|
+
*/
|
|
362
|
+
export interface CreateUPhoneResponse {
|
|
363
|
+
/**
|
|
364
|
+
* 任务ID,用来查询创建云手机任务状态
|
|
365
|
+
*/
|
|
366
|
+
JobId: string;
|
|
367
|
+
}
|
|
238
368
|
/**
|
|
239
369
|
* CreateUPhoneApp - 一个 app 对应多个 app_version。
|
|
240
370
|
*/
|
|
@@ -247,6 +377,10 @@ export interface CreateUPhoneAppRequest {
|
|
|
247
377
|
* 应用描述。
|
|
248
378
|
*/
|
|
249
379
|
Description?: string;
|
|
380
|
+
/**
|
|
381
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
382
|
+
*/
|
|
383
|
+
ProductType?: string;
|
|
250
384
|
}
|
|
251
385
|
/**
|
|
252
386
|
* CreateUPhoneApp - 一个 app 对应多个 app_version。
|
|
@@ -278,6 +412,10 @@ export interface CreateUPhoneAppVersionRequest {
|
|
|
278
412
|
* 应用版本描述。
|
|
279
413
|
*/
|
|
280
414
|
Description?: string;
|
|
415
|
+
/**
|
|
416
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
417
|
+
*/
|
|
418
|
+
ProductType?: string;
|
|
281
419
|
}
|
|
282
420
|
/**
|
|
283
421
|
* CreateUPhoneAppVersion - 创建云手机应用版本。
|
|
@@ -294,7 +432,7 @@ export interface CreateUPhoneAppVersionResponse {
|
|
|
294
432
|
*/
|
|
295
433
|
export interface CreateUPhoneImageRequest {
|
|
296
434
|
/**
|
|
297
|
-
* 城市Id,通过[获取城市列表](
|
|
435
|
+
* 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
|
|
298
436
|
*/
|
|
299
437
|
CityId: string;
|
|
300
438
|
/**
|
|
@@ -309,6 +447,10 @@ export interface CreateUPhoneImageRequest {
|
|
|
309
447
|
* 镜像的描述信息。长度为2~256个英文或中文字符
|
|
310
448
|
*/
|
|
311
449
|
Description?: string;
|
|
450
|
+
/**
|
|
451
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
452
|
+
*/
|
|
453
|
+
ProductType?: string;
|
|
312
454
|
}
|
|
313
455
|
/**
|
|
314
456
|
* CreateUPhoneImage - 创建云手机镜像。
|
|
@@ -318,6 +460,10 @@ export interface CreateUPhoneImageResponse {
|
|
|
318
460
|
* 云手机自定义镜像资源 ID
|
|
319
461
|
*/
|
|
320
462
|
ImageId?: string;
|
|
463
|
+
/**
|
|
464
|
+
* 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
|
|
465
|
+
*/
|
|
466
|
+
JobId?: string;
|
|
321
467
|
}
|
|
322
468
|
/**
|
|
323
469
|
* CreateUPhoneServer - 创建云手机服务器
|
|
@@ -328,19 +474,19 @@ export interface CreateUPhoneServerRequest {
|
|
|
328
474
|
*/
|
|
329
475
|
Name: string;
|
|
330
476
|
/**
|
|
331
|
-
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表]()查询支持的云手机服务器规格。
|
|
477
|
+
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。
|
|
332
478
|
*/
|
|
333
479
|
ServerModelName: string;
|
|
334
480
|
/**
|
|
335
|
-
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
|
|
481
|
+
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。
|
|
336
482
|
*/
|
|
337
483
|
UPhoneModelName: string;
|
|
338
484
|
/**
|
|
339
|
-
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
|
|
485
|
+
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。
|
|
340
486
|
*/
|
|
341
487
|
ImageId: string;
|
|
342
488
|
/**
|
|
343
|
-
* 城市Id,通过[获取城市列表](
|
|
489
|
+
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
|
|
344
490
|
*/
|
|
345
491
|
CityId: string;
|
|
346
492
|
/**
|
|
@@ -385,6 +531,32 @@ export interface CreateUPhoneServerResponse {
|
|
|
385
531
|
*/
|
|
386
532
|
ServerId: string;
|
|
387
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
* DeleteUPhone - 删除云手机
|
|
536
|
+
*/
|
|
537
|
+
export interface DeleteUPhoneRequest {
|
|
538
|
+
/**
|
|
539
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
540
|
+
*/
|
|
541
|
+
CityId: string;
|
|
542
|
+
/**
|
|
543
|
+
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId
|
|
544
|
+
*/
|
|
545
|
+
UPhoneIds: string[];
|
|
546
|
+
/**
|
|
547
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
548
|
+
*/
|
|
549
|
+
ProductType?: string;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* DeleteUPhone - 删除云手机
|
|
553
|
+
*/
|
|
554
|
+
export interface DeleteUPhoneResponse {
|
|
555
|
+
/**
|
|
556
|
+
* 任务ID,用来查询删除云手机任务状态
|
|
557
|
+
*/
|
|
558
|
+
JobId: string;
|
|
559
|
+
}
|
|
388
560
|
/**
|
|
389
561
|
* DeleteUPhoneImage - 删除自制云手机镜像。
|
|
390
562
|
*/
|
|
@@ -404,7 +576,7 @@ export interface DeleteUPhoneImageResponse {
|
|
|
404
576
|
ImageId: string;
|
|
405
577
|
}
|
|
406
578
|
/**
|
|
407
|
-
* DeleteUPhoneServer - 删除云手机服务器。
|
|
579
|
+
* DeleteUPhoneServer - 删除云手机服务器。
|
|
408
580
|
*/
|
|
409
581
|
export interface DeleteUPhoneServerRequest {
|
|
410
582
|
/**
|
|
@@ -425,7 +597,7 @@ export interface DeleteUPhoneServerRequest {
|
|
|
425
597
|
ReleaseUDisk?: boolean;
|
|
426
598
|
}
|
|
427
599
|
/**
|
|
428
|
-
* DeleteUPhoneServer - 删除云手机服务器。
|
|
600
|
+
* DeleteUPhoneServer - 删除云手机服务器。
|
|
429
601
|
*/
|
|
430
602
|
export interface DeleteUPhoneServerResponse {
|
|
431
603
|
}
|
|
@@ -450,7 +622,7 @@ export interface DescribeUPhoneRequest {
|
|
|
450
622
|
*/
|
|
451
623
|
Offset?: number;
|
|
452
624
|
/**
|
|
453
|
-
* 返回数据长度,默认为
|
|
625
|
+
* 返回数据长度,默认为200,最大200
|
|
454
626
|
*/
|
|
455
627
|
Limit?: number;
|
|
456
628
|
/**
|
|
@@ -461,6 +633,10 @@ export interface DescribeUPhoneRequest {
|
|
|
461
633
|
* 是否返回全部。如果有此参数,分页不生效。
|
|
462
634
|
*/
|
|
463
635
|
IsAll?: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
638
|
+
*/
|
|
639
|
+
ProductType?: string;
|
|
464
640
|
}
|
|
465
641
|
/**
|
|
466
642
|
* DescribeUPhone - 获取云手机列表信息。
|
|
@@ -550,6 +726,22 @@ export interface DescribeUPhoneResponse {
|
|
|
550
726
|
* 备注
|
|
551
727
|
*/
|
|
552
728
|
Remark?: string;
|
|
729
|
+
/**
|
|
730
|
+
* 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付
|
|
731
|
+
*/
|
|
732
|
+
ChargeType?: string;
|
|
733
|
+
/**
|
|
734
|
+
* 到期时间;格式为Unix时间戳
|
|
735
|
+
*/
|
|
736
|
+
ExpireTime?: number;
|
|
737
|
+
/**
|
|
738
|
+
* IP所属地域Id,eg: hk,th-bkk
|
|
739
|
+
*/
|
|
740
|
+
IpRegion?: string;
|
|
741
|
+
/**
|
|
742
|
+
* 云手机IP地址
|
|
743
|
+
*/
|
|
744
|
+
Ip?: string;
|
|
553
745
|
}[];
|
|
554
746
|
}
|
|
555
747
|
/**
|
|
@@ -568,6 +760,10 @@ export interface DescribeUPhoneAppRequest {
|
|
|
568
760
|
* 返回数据长度,默认为20,最大100
|
|
569
761
|
*/
|
|
570
762
|
Limit?: number;
|
|
763
|
+
/**
|
|
764
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
765
|
+
*/
|
|
766
|
+
ProductType?: string;
|
|
571
767
|
}
|
|
572
768
|
/**
|
|
573
769
|
* DescribeUPhoneApp - 获取应用列表。
|
|
@@ -627,6 +823,10 @@ export interface DescribeUPhoneAppVersionRequest {
|
|
|
627
823
|
* 列表起始位置偏移量,默认为0
|
|
628
824
|
*/
|
|
629
825
|
Offset?: number;
|
|
826
|
+
/**
|
|
827
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
828
|
+
*/
|
|
829
|
+
ProductType?: string;
|
|
630
830
|
}
|
|
631
831
|
/**
|
|
632
832
|
* DescribeUPhoneAppVersion - 获取应用版本列表。
|
|
@@ -678,6 +878,10 @@ export interface DescribeUPhoneAppVersionResponse {
|
|
|
678
878
|
* DescribeUPhoneCities - 获取云手机提供服务的城市列表
|
|
679
879
|
*/
|
|
680
880
|
export interface DescribeUPhoneCitiesRequest {
|
|
881
|
+
/**
|
|
882
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
883
|
+
*/
|
|
884
|
+
ProductType?: string;
|
|
681
885
|
}
|
|
682
886
|
/**
|
|
683
887
|
* DescribeUPhoneCities - 获取云手机提供服务的城市列表
|
|
@@ -729,6 +933,10 @@ export interface DescribeUPhoneDetailByAppRequest {
|
|
|
729
933
|
* 返回数据长度,默认为20,最大100
|
|
730
934
|
*/
|
|
731
935
|
Limit?: number;
|
|
936
|
+
/**
|
|
937
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
938
|
+
*/
|
|
939
|
+
ProductType?: string;
|
|
732
940
|
}
|
|
733
941
|
/**
|
|
734
942
|
* DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息
|
|
@@ -747,9 +955,13 @@ export interface DescribeUPhoneDetailByAppResponse {
|
|
|
747
955
|
*/
|
|
748
956
|
UPhoneName?: string;
|
|
749
957
|
/**
|
|
750
|
-
*
|
|
958
|
+
* 云手机的唯一标识,不超过32个字节。
|
|
751
959
|
*/
|
|
752
960
|
UPhoneId?: string;
|
|
961
|
+
/**
|
|
962
|
+
* 云手机规格名称
|
|
963
|
+
*/
|
|
964
|
+
UPhoneModelName?: string;
|
|
753
965
|
/**
|
|
754
966
|
* 虚拟CPU核数。
|
|
755
967
|
*/
|
|
@@ -861,6 +1073,10 @@ export interface DescribeUPhoneImageRequest {
|
|
|
861
1073
|
* 最大返回镜像数量,默认为20,最大100
|
|
862
1074
|
*/
|
|
863
1075
|
Limit?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1078
|
+
*/
|
|
1079
|
+
ProductType?: string;
|
|
864
1080
|
}
|
|
865
1081
|
/**
|
|
866
1082
|
* DescribeUPhoneImage - 获取云手机镜像信息列表。
|
|
@@ -950,16 +1166,20 @@ export interface DescribeUPhoneImageResponse {
|
|
|
950
1166
|
TotalCount?: number;
|
|
951
1167
|
}
|
|
952
1168
|
/**
|
|
953
|
-
* DescribeUPhoneIpRegions -
|
|
1169
|
+
* DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表
|
|
954
1170
|
*/
|
|
955
1171
|
export interface DescribeUPhoneIpRegionsRequest {
|
|
956
1172
|
/**
|
|
957
|
-
* 城市Id
|
|
1173
|
+
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
|
|
958
1174
|
*/
|
|
959
1175
|
CityId: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1178
|
+
*/
|
|
1179
|
+
ProductType?: string;
|
|
960
1180
|
}
|
|
961
1181
|
/**
|
|
962
|
-
* DescribeUPhoneIpRegions -
|
|
1182
|
+
* DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表
|
|
963
1183
|
*/
|
|
964
1184
|
export interface DescribeUPhoneIpRegionsResponse {
|
|
965
1185
|
/**
|
|
@@ -989,7 +1209,7 @@ export interface DescribeUPhoneJobRequest {
|
|
|
989
1209
|
*/
|
|
990
1210
|
CityId: string;
|
|
991
1211
|
/**
|
|
992
|
-
* 【数组】Job 的唯一标识 Id,调用方式举例:
|
|
1212
|
+
* 【数组】Job 的唯一标识 Id,调用方式举例:JobIds.0=希望查询状态的 Job1,JobIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。
|
|
993
1213
|
*/
|
|
994
1214
|
JobIds?: string[];
|
|
995
1215
|
/**
|
|
@@ -1008,6 +1228,10 @@ export interface DescribeUPhoneJobRequest {
|
|
|
1008
1228
|
* 【数组】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
|
|
1009
1229
|
*/
|
|
1010
1230
|
Types?: string[];
|
|
1231
|
+
/**
|
|
1232
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1233
|
+
*/
|
|
1234
|
+
ProductType?: string;
|
|
1011
1235
|
}
|
|
1012
1236
|
/**
|
|
1013
1237
|
* DescribeUPhoneJob - 查询Job的执行状态。
|
|
@@ -1093,7 +1317,7 @@ export interface DescribeUPhoneJobResponse {
|
|
|
1093
1317
|
TotalCount?: number;
|
|
1094
1318
|
}
|
|
1095
1319
|
/**
|
|
1096
|
-
* DescribeUPhoneModel -
|
|
1320
|
+
* DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
|
|
1097
1321
|
*/
|
|
1098
1322
|
export interface DescribeUPhoneModelRequest {
|
|
1099
1323
|
/**
|
|
@@ -1108,9 +1332,13 @@ export interface DescribeUPhoneModelRequest {
|
|
|
1108
1332
|
* 返回数据长度,默认为20,最大100
|
|
1109
1333
|
*/
|
|
1110
1334
|
Limit?: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1337
|
+
*/
|
|
1338
|
+
ProductType?: string;
|
|
1111
1339
|
}
|
|
1112
1340
|
/**
|
|
1113
|
-
* DescribeUPhoneModel -
|
|
1341
|
+
* DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
|
|
1114
1342
|
*/
|
|
1115
1343
|
export interface DescribeUPhoneModelResponse {
|
|
1116
1344
|
/**
|
|
@@ -1145,6 +1373,14 @@ export interface DescribeUPhoneModelResponse {
|
|
|
1145
1373
|
* 刷新率
|
|
1146
1374
|
*/
|
|
1147
1375
|
Refresh: number;
|
|
1376
|
+
/**
|
|
1377
|
+
* DPI
|
|
1378
|
+
*/
|
|
1379
|
+
Dpi?: number;
|
|
1380
|
+
/**
|
|
1381
|
+
* 型号描述信息
|
|
1382
|
+
*/
|
|
1383
|
+
Description?: string;
|
|
1148
1384
|
}[];
|
|
1149
1385
|
}
|
|
1150
1386
|
/**
|
|
@@ -1339,10 +1575,23 @@ export interface DescribeUPhoneServerModelResponse {
|
|
|
1339
1575
|
* ServerModelInstance总数
|
|
1340
1576
|
*/
|
|
1341
1577
|
TotalCount: number;
|
|
1578
|
+
/**
|
|
1579
|
+
* 服务器model的库存
|
|
1580
|
+
*/
|
|
1581
|
+
Stock?: {
|
|
1582
|
+
/**
|
|
1583
|
+
* ServerModel名称
|
|
1584
|
+
*/
|
|
1585
|
+
ModelName?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* 资源余量
|
|
1588
|
+
*/
|
|
1589
|
+
StockCount?: number;
|
|
1590
|
+
}[];
|
|
1342
1591
|
/**
|
|
1343
1592
|
* ServerModel实例列表,每项参数可见数据模型 ServerModelInstance
|
|
1344
1593
|
*/
|
|
1345
|
-
ServerModels
|
|
1594
|
+
ServerModels?: {
|
|
1346
1595
|
/**
|
|
1347
1596
|
* ServerModel名称
|
|
1348
1597
|
*/
|
|
@@ -1399,6 +1648,143 @@ export interface DescribeUPhoneServerModelResponse {
|
|
|
1399
1648
|
ServerModelState?: string;
|
|
1400
1649
|
}[];
|
|
1401
1650
|
}
|
|
1651
|
+
/**
|
|
1652
|
+
* GetUPhoneAllowance - 获取云手机创建余量
|
|
1653
|
+
*/
|
|
1654
|
+
export interface GetUPhoneAllowanceRequest {
|
|
1655
|
+
/**
|
|
1656
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1657
|
+
*/
|
|
1658
|
+
CityId: string;
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* GetUPhoneAllowance - 获取云手机创建余量
|
|
1662
|
+
*/
|
|
1663
|
+
export interface GetUPhoneAllowanceResponse {
|
|
1664
|
+
/**
|
|
1665
|
+
* 手机型号以及可创建数量
|
|
1666
|
+
*/
|
|
1667
|
+
UPhoneAllowance: {
|
|
1668
|
+
/**
|
|
1669
|
+
* 枚举值,云手机型号名称,取值:UPhone X,UPhone Plus,UPhone Pro
|
|
1670
|
+
*/
|
|
1671
|
+
ModelName: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* 可创建云手机个数
|
|
1674
|
+
*/
|
|
1675
|
+
Allowance: number;
|
|
1676
|
+
}[];
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* GetUPhonePrice - 根据云手机规格名称,获取UPhone实例的价格。
|
|
1680
|
+
*/
|
|
1681
|
+
export interface GetUPhonePriceRequest {
|
|
1682
|
+
/**
|
|
1683
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1684
|
+
*/
|
|
1685
|
+
CityId: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* 云手机规格名称
|
|
1688
|
+
*/
|
|
1689
|
+
UPhoneModelName?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* 云手机画面带宽值,画面带宽和手机强绑定关系,必须和手机数量对应。
|
|
1692
|
+
*/
|
|
1693
|
+
MediaBandwidth?: number;
|
|
1694
|
+
/**
|
|
1695
|
+
* 云手机个数
|
|
1696
|
+
*/
|
|
1697
|
+
UPhoneCount?: number;
|
|
1698
|
+
/**
|
|
1699
|
+
* 计费模式。枚举值为: > Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。
|
|
1700
|
+
*/
|
|
1701
|
+
ChargeType?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。
|
|
1704
|
+
*/
|
|
1705
|
+
Quantity?: number;
|
|
1706
|
+
/**
|
|
1707
|
+
* 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
1708
|
+
*/
|
|
1709
|
+
IpDestRegion?: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* 购买独立IP需要此参数,其中一个ip的带宽值。
|
|
1712
|
+
*/
|
|
1713
|
+
INetBandwidth?: number;
|
|
1714
|
+
/**
|
|
1715
|
+
* 购买独立IP需要此参数。需要的eip数量。
|
|
1716
|
+
*/
|
|
1717
|
+
IpCount?: number;
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* GetUPhonePrice - 根据云手机规格名称,获取UPhone实例的价格。
|
|
1721
|
+
*/
|
|
1722
|
+
export interface GetUPhonePriceResponse {
|
|
1723
|
+
/**
|
|
1724
|
+
* 价格列表,每项参数见UPhonePriceSet
|
|
1725
|
+
*/
|
|
1726
|
+
PriceSet: {
|
|
1727
|
+
/**
|
|
1728
|
+
* 计费类型,枚举值:Year,Month,Dynamic
|
|
1729
|
+
*/
|
|
1730
|
+
ChargeType: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* 价格,单位: 元,保留小数点后两位有效数字
|
|
1733
|
+
*/
|
|
1734
|
+
Price: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* 限时优惠的折前原价(即列表价乘以商务折扣后的单价)
|
|
1737
|
+
*/
|
|
1738
|
+
OriginalPrice: number;
|
|
1739
|
+
/**
|
|
1740
|
+
* 产品列表价
|
|
1741
|
+
*/
|
|
1742
|
+
ListPrice?: number;
|
|
1743
|
+
}[];
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* GetUPhoneRenewPrice - 获取云手机续费价格,不包括独立ip价格。
|
|
1747
|
+
*/
|
|
1748
|
+
export interface GetUPhoneRenewPriceRequest {
|
|
1749
|
+
/**
|
|
1750
|
+
* 云手机的唯一标识,可通过[查询云手机列表]获取。
|
|
1751
|
+
*/
|
|
1752
|
+
UPhoneId: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1755
|
+
*/
|
|
1756
|
+
CityId: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* 计费模式。枚举值为: > Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格
|
|
1759
|
+
*/
|
|
1760
|
+
ChargeType?: string;
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* GetUPhoneRenewPrice - 获取云手机续费价格,不包括独立ip价格。
|
|
1764
|
+
*/
|
|
1765
|
+
export interface GetUPhoneRenewPriceResponse {
|
|
1766
|
+
/**
|
|
1767
|
+
* 价格列表,具体参数见UPhonePriceSet
|
|
1768
|
+
*/
|
|
1769
|
+
PriceSet: {
|
|
1770
|
+
/**
|
|
1771
|
+
* 计费类型,枚举值:Year,Month,Dynamic
|
|
1772
|
+
*/
|
|
1773
|
+
ChargeType: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* 价格,单位: 元,保留小数点后两位有效数字
|
|
1776
|
+
*/
|
|
1777
|
+
Price: number;
|
|
1778
|
+
/**
|
|
1779
|
+
* 限时优惠的折前原价(即列表价乘以商务折扣后的单价)
|
|
1780
|
+
*/
|
|
1781
|
+
OriginalPrice: number;
|
|
1782
|
+
/**
|
|
1783
|
+
* 产品列表价
|
|
1784
|
+
*/
|
|
1785
|
+
ListPrice?: number;
|
|
1786
|
+
}[];
|
|
1787
|
+
}
|
|
1402
1788
|
/**
|
|
1403
1789
|
* GetUPhoneScreenCapture - 云手机截屏
|
|
1404
1790
|
*/
|
|
@@ -1408,9 +1794,13 @@ export interface GetUPhoneScreenCaptureRequest {
|
|
|
1408
1794
|
*/
|
|
1409
1795
|
UPhoneID: string;
|
|
1410
1796
|
/**
|
|
1411
|
-
* 城市Id,通过[获取城市列表](
|
|
1797
|
+
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
|
|
1412
1798
|
*/
|
|
1413
1799
|
CityId: string;
|
|
1800
|
+
/**
|
|
1801
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1802
|
+
*/
|
|
1803
|
+
ProductType?: string;
|
|
1414
1804
|
}
|
|
1415
1805
|
/**
|
|
1416
1806
|
* GetUPhoneScreenCapture - 云手机截屏
|
|
@@ -1463,7 +1853,7 @@ export interface GetUPhoneServerPriceResponse {
|
|
|
1463
1853
|
*/
|
|
1464
1854
|
PriceSet: {
|
|
1465
1855
|
/**
|
|
1466
|
-
* 计费类型,枚举值:Year,Month
|
|
1856
|
+
* 计费类型,枚举值:Year,Month, Dynamic
|
|
1467
1857
|
*/
|
|
1468
1858
|
ChargeType: string;
|
|
1469
1859
|
/**
|
|
@@ -1510,7 +1900,7 @@ export interface GetUPhoneServerRenewPriceResponse {
|
|
|
1510
1900
|
*/
|
|
1511
1901
|
PriceSet: {
|
|
1512
1902
|
/**
|
|
1513
|
-
* 计费类型,枚举值:Year,Month
|
|
1903
|
+
* 计费类型,枚举值:Year,Month, Dynamic
|
|
1514
1904
|
*/
|
|
1515
1905
|
ChargeType: string;
|
|
1516
1906
|
/**
|
|
@@ -1527,6 +1917,40 @@ export interface GetUPhoneServerRenewPriceResponse {
|
|
|
1527
1917
|
ListPrice?: number;
|
|
1528
1918
|
}[];
|
|
1529
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* ImportFile - 上传文件到云手机目录/sdcard/Download/并自动安装APK文件
|
|
1922
|
+
*/
|
|
1923
|
+
export interface ImportFileRequest {
|
|
1924
|
+
/**
|
|
1925
|
+
* 云手机ID
|
|
1926
|
+
*/
|
|
1927
|
+
UPhoneIds: string[];
|
|
1928
|
+
/**
|
|
1929
|
+
* 文件名
|
|
1930
|
+
*/
|
|
1931
|
+
FileName: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* 城市。 参见 [云手机城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)
|
|
1934
|
+
*/
|
|
1935
|
+
CityId: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* 文件下载链接
|
|
1938
|
+
*/
|
|
1939
|
+
URL: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1942
|
+
*/
|
|
1943
|
+
ProductType?: string;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* ImportFile - 上传文件到云手机目录/sdcard/Download/并自动安装APK文件
|
|
1947
|
+
*/
|
|
1948
|
+
export interface ImportFileResponse {
|
|
1949
|
+
/**
|
|
1950
|
+
* 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
|
|
1951
|
+
*/
|
|
1952
|
+
JobId: string;
|
|
1953
|
+
}
|
|
1530
1954
|
/**
|
|
1531
1955
|
* InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
|
|
1532
1956
|
*/
|
|
@@ -1543,6 +1967,10 @@ export interface InstallUPhoneAppVersionRequest {
|
|
|
1543
1967
|
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望安装应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1544
1968
|
*/
|
|
1545
1969
|
UPhoneIds: string[];
|
|
1970
|
+
/**
|
|
1971
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
1972
|
+
*/
|
|
1973
|
+
ProductType?: string;
|
|
1546
1974
|
}
|
|
1547
1975
|
/**
|
|
1548
1976
|
* InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
|
|
@@ -1669,6 +2097,10 @@ export interface PoweroffUPhoneRequest {
|
|
|
1669
2097
|
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1670
2098
|
*/
|
|
1671
2099
|
CityId: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2102
|
+
*/
|
|
2103
|
+
ProductType?: string;
|
|
1672
2104
|
}
|
|
1673
2105
|
/**
|
|
1674
2106
|
* PoweroffUPhone - 关闭处于运行状态的云手机实例
|
|
@@ -1687,6 +2119,10 @@ export interface PoweronUPhoneRequest {
|
|
|
1687
2119
|
* 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。
|
|
1688
2120
|
*/
|
|
1689
2121
|
UPhoneIds: string[];
|
|
2122
|
+
/**
|
|
2123
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2124
|
+
*/
|
|
2125
|
+
ProductType?: string;
|
|
1690
2126
|
}
|
|
1691
2127
|
/**
|
|
1692
2128
|
* PoweronUPhone - 启动处于关闭状态的云手机实例
|
|
@@ -1705,11 +2141,141 @@ export interface RebootUPhoneRequest {
|
|
|
1705
2141
|
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1706
2142
|
*/
|
|
1707
2143
|
CityId: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2146
|
+
*/
|
|
2147
|
+
ProductType?: string;
|
|
1708
2148
|
}
|
|
1709
2149
|
/**
|
|
1710
2150
|
* RebootUPhone - 重新启动云手机实例
|
|
1711
2151
|
*/
|
|
1712
2152
|
export interface RebootUPhoneResponse {
|
|
2153
|
+
/**
|
|
2154
|
+
* 异步请求成功后返回JobId,用以查询Job状态
|
|
2155
|
+
*/
|
|
2156
|
+
JobId?: string;
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* RenewUPhone - 修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果
|
|
2160
|
+
*/
|
|
2161
|
+
export interface RenewUPhoneRequest {
|
|
2162
|
+
/**
|
|
2163
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
2164
|
+
*/
|
|
2165
|
+
CityId: string;
|
|
2166
|
+
/**
|
|
2167
|
+
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
2168
|
+
*/
|
|
2169
|
+
UPhoneIds: string[];
|
|
2170
|
+
/**
|
|
2171
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2172
|
+
*/
|
|
2173
|
+
ProductType?: string;
|
|
2174
|
+
/**
|
|
2175
|
+
* 自定义设备参数设置的开关,true时会读取用户设置的下列设备参数信息;false时随机读取ucloud内置设备参数。默认false
|
|
2176
|
+
*/
|
|
2177
|
+
Customize?: boolean;
|
|
2178
|
+
/**
|
|
2179
|
+
* 品牌
|
|
2180
|
+
*/
|
|
2181
|
+
Brand?: string;
|
|
2182
|
+
/**
|
|
2183
|
+
* 设备型号
|
|
2184
|
+
*/
|
|
2185
|
+
Model?: string;
|
|
2186
|
+
/**
|
|
2187
|
+
* 厂商
|
|
2188
|
+
*/
|
|
2189
|
+
Manufacture?: string;
|
|
2190
|
+
/**
|
|
2191
|
+
* 序列号
|
|
2192
|
+
*/
|
|
2193
|
+
SerialNumber?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* 基带版本
|
|
2196
|
+
*/
|
|
2197
|
+
BaseBand?: string;
|
|
2198
|
+
/**
|
|
2199
|
+
* 主板名
|
|
2200
|
+
*/
|
|
2201
|
+
Board?: string;
|
|
2202
|
+
/**
|
|
2203
|
+
* 显示的版本号
|
|
2204
|
+
*/
|
|
2205
|
+
DisplayID?: string;
|
|
2206
|
+
/**
|
|
2207
|
+
* 设备名
|
|
2208
|
+
*/
|
|
2209
|
+
Device?: string;
|
|
2210
|
+
/**
|
|
2211
|
+
* 系统指纹
|
|
2212
|
+
*/
|
|
2213
|
+
FingerPrint?: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* 产品名称
|
|
2216
|
+
*/
|
|
2217
|
+
ProductName?: string;
|
|
2218
|
+
/**
|
|
2219
|
+
* build的版本号
|
|
2220
|
+
*/
|
|
2221
|
+
BuildID?: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* 固件编译主机
|
|
2224
|
+
*/
|
|
2225
|
+
BuildHost?: string;
|
|
2226
|
+
/**
|
|
2227
|
+
* bootloader版本号
|
|
2228
|
+
*/
|
|
2229
|
+
BootLoader?: string;
|
|
2230
|
+
/**
|
|
2231
|
+
* 系统标记
|
|
2232
|
+
*/
|
|
2233
|
+
BuildTags?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* 版本增加说明
|
|
2236
|
+
*/
|
|
2237
|
+
BuildVersionInc?: string;
|
|
2238
|
+
/**
|
|
2239
|
+
* 串号
|
|
2240
|
+
*/
|
|
2241
|
+
IMEI?: string;
|
|
2242
|
+
/**
|
|
2243
|
+
* 手机号码
|
|
2244
|
+
*/
|
|
2245
|
+
PhoneNumber?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* SIM卡唯一标识
|
|
2248
|
+
*/
|
|
2249
|
+
ICCID?: string;
|
|
2250
|
+
/**
|
|
2251
|
+
* 移动识别码
|
|
2252
|
+
*/
|
|
2253
|
+
IMSI?: string;
|
|
2254
|
+
/**
|
|
2255
|
+
* 移动设备标识码软件
|
|
2256
|
+
*/
|
|
2257
|
+
IMEISV?: string;
|
|
2258
|
+
/**
|
|
2259
|
+
* 移动网络mac地址
|
|
2260
|
+
*/
|
|
2261
|
+
RadioMac?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* 当前连接Wi-Fi名称
|
|
2264
|
+
*/
|
|
2265
|
+
WiFiName?: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* Wi-Fi 物理地址
|
|
2268
|
+
*/
|
|
2269
|
+
BSSID?: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* AOSP唯一标识
|
|
2272
|
+
*/
|
|
2273
|
+
AndroidID?: string;
|
|
2274
|
+
}
|
|
2275
|
+
/**
|
|
2276
|
+
* RenewUPhone - 修改UPhone的device_id、imei、meid 以及其他相关配置,达到一键新机的效果
|
|
2277
|
+
*/
|
|
2278
|
+
export interface RenewUPhoneResponse {
|
|
1713
2279
|
}
|
|
1714
2280
|
/**
|
|
1715
2281
|
* ResetUPhone - 将云手机恢复为创建时的状态。
|
|
@@ -1723,11 +2289,19 @@ export interface ResetUPhoneRequest {
|
|
|
1723
2289
|
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1724
2290
|
*/
|
|
1725
2291
|
UPhoneIds: string[];
|
|
2292
|
+
/**
|
|
2293
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2294
|
+
*/
|
|
2295
|
+
ProductType?: string;
|
|
1726
2296
|
}
|
|
1727
2297
|
/**
|
|
1728
2298
|
* ResetUPhone - 将云手机恢复为创建时的状态。
|
|
1729
2299
|
*/
|
|
1730
2300
|
export interface ResetUPhoneResponse {
|
|
2301
|
+
/**
|
|
2302
|
+
* 异步请求成功后返回JobId,用以查询Job状态
|
|
2303
|
+
*/
|
|
2304
|
+
JobId?: string;
|
|
1731
2305
|
}
|
|
1732
2306
|
/**
|
|
1733
2307
|
* RunAsyncCommand - 在云手机中执行异步shell命令。
|
|
@@ -1745,6 +2319,10 @@ export interface RunAsyncCommandRequest {
|
|
|
1745
2319
|
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1746
2320
|
*/
|
|
1747
2321
|
UPhoneIds: string[];
|
|
2322
|
+
/**
|
|
2323
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2324
|
+
*/
|
|
2325
|
+
ProductType?: string;
|
|
1748
2326
|
}
|
|
1749
2327
|
/**
|
|
1750
2328
|
* RunAsyncCommand - 在云手机中执行异步shell命令。
|
|
@@ -1771,6 +2349,10 @@ export interface RunSyncCommandRequest {
|
|
|
1771
2349
|
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1772
2350
|
*/
|
|
1773
2351
|
UPhoneIds: string[];
|
|
2352
|
+
/**
|
|
2353
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2354
|
+
*/
|
|
2355
|
+
ProductType?: string;
|
|
1774
2356
|
}
|
|
1775
2357
|
/**
|
|
1776
2358
|
* RunSyncCommand - 在云手机中执行同步shell命令。
|
|
@@ -1790,6 +2372,32 @@ export interface RunSyncCommandResponse {
|
|
|
1790
2372
|
ExecuteMsg?: string;
|
|
1791
2373
|
}[];
|
|
1792
2374
|
}
|
|
2375
|
+
/**
|
|
2376
|
+
* SetUPhoneCallback - 设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调
|
|
2377
|
+
*/
|
|
2378
|
+
export interface SetUPhoneCallbackRequest {
|
|
2379
|
+
/**
|
|
2380
|
+
* 城市ID
|
|
2381
|
+
*/
|
|
2382
|
+
CityId: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* 云手机ID。
|
|
2385
|
+
*/
|
|
2386
|
+
UPhoneId: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* 接收POST请求的http接口。Content-Type:application/json; charset=UTF-8,Accept:application/json。
|
|
2389
|
+
*/
|
|
2390
|
+
URL: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2393
|
+
*/
|
|
2394
|
+
ProductType?: string;
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* SetUPhoneCallback - 设置云手机异步操作以及状态更新回调,支持云手机重置,安装应用,卸载应用,设备占用状态回调
|
|
2398
|
+
*/
|
|
2399
|
+
export interface SetUPhoneCallbackResponse {
|
|
2400
|
+
}
|
|
1793
2401
|
/**
|
|
1794
2402
|
* SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
|
|
1795
2403
|
*/
|
|
@@ -1799,7 +2407,7 @@ export interface SetUPhoneConfigRequest {
|
|
|
1799
2407
|
*/
|
|
1800
2408
|
CityId: string;
|
|
1801
2409
|
/**
|
|
1802
|
-
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0
|
|
2410
|
+
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1803
2411
|
*/
|
|
1804
2412
|
UPhoneIds: string[];
|
|
1805
2413
|
/**
|
|
@@ -1811,7 +2419,7 @@ export interface SetUPhoneConfigRequest {
|
|
|
1811
2419
|
*/
|
|
1812
2420
|
Refresh?: string;
|
|
1813
2421
|
/**
|
|
1814
|
-
* 云手机画面传输码率(例,8000)取值范围[100,
|
|
2422
|
+
* 云手机画面传输码率(例,8000)取值范围[100,50000]
|
|
1815
2423
|
*/
|
|
1816
2424
|
Bitrate?: string;
|
|
1817
2425
|
/**
|
|
@@ -1822,6 +2430,10 @@ export interface SetUPhoneConfigRequest {
|
|
|
1822
2430
|
* 云手机dpi,取值范围[100,1000]
|
|
1823
2431
|
*/
|
|
1824
2432
|
Dpi?: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2435
|
+
*/
|
|
2436
|
+
ProductType?: string;
|
|
1825
2437
|
}
|
|
1826
2438
|
/**
|
|
1827
2439
|
* SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
|
|
@@ -1878,6 +2490,10 @@ export interface SetUPhoneGPSRequest {
|
|
|
1878
2490
|
*/
|
|
1879
2491
|
Altitude?: number;
|
|
1880
2492
|
}[];
|
|
2493
|
+
/**
|
|
2494
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2495
|
+
*/
|
|
2496
|
+
ProductType?: string;
|
|
1881
2497
|
}
|
|
1882
2498
|
/**
|
|
1883
2499
|
* SetUPhoneGPS - 设置云手机GPS信息
|
|
@@ -1904,12 +2520,46 @@ export interface SetUPhoneManagerModeRequest {
|
|
|
1904
2520
|
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1905
2521
|
*/
|
|
1906
2522
|
CityId: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2525
|
+
*/
|
|
2526
|
+
ProductType?: string;
|
|
1907
2527
|
}
|
|
1908
2528
|
/**
|
|
1909
2529
|
* SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面
|
|
1910
2530
|
*/
|
|
1911
2531
|
export interface SetUPhoneManagerModeResponse {
|
|
1912
2532
|
}
|
|
2533
|
+
/**
|
|
2534
|
+
* SetUPhoneRootMode - 设置云手机Root模式
|
|
2535
|
+
*/
|
|
2536
|
+
export interface SetUPhoneRootModeRequest {
|
|
2537
|
+
/**
|
|
2538
|
+
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
2539
|
+
*/
|
|
2540
|
+
CityId: string;
|
|
2541
|
+
/**
|
|
2542
|
+
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
2543
|
+
*/
|
|
2544
|
+
UPhoneIds: string[];
|
|
2545
|
+
/**
|
|
2546
|
+
* true则打开Root权限;false则关闭Root权限
|
|
2547
|
+
*/
|
|
2548
|
+
Root: boolean;
|
|
2549
|
+
/**
|
|
2550
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2551
|
+
*/
|
|
2552
|
+
ProductType?: string;
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* SetUPhoneRootMode - 设置云手机Root模式
|
|
2556
|
+
*/
|
|
2557
|
+
export interface SetUPhoneRootModeResponse {
|
|
2558
|
+
/**
|
|
2559
|
+
* 异步请求成功后返回JobId,用以查询Job状态
|
|
2560
|
+
*/
|
|
2561
|
+
JobId: string;
|
|
2562
|
+
}
|
|
1913
2563
|
/**
|
|
1914
2564
|
* SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
|
|
1915
2565
|
*/
|
|
@@ -1926,12 +2576,42 @@ export interface SetUPhoneSplashScreenRequest {
|
|
|
1926
2576
|
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
|
|
1927
2577
|
*/
|
|
1928
2578
|
CityId: string;
|
|
2579
|
+
/**
|
|
2580
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2581
|
+
*/
|
|
2582
|
+
ProductType?: string;
|
|
1929
2583
|
}
|
|
1930
2584
|
/**
|
|
1931
2585
|
* SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
|
|
1932
2586
|
*/
|
|
1933
2587
|
export interface SetUPhoneSplashScreenResponse {
|
|
1934
2588
|
}
|
|
2589
|
+
/**
|
|
2590
|
+
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
|
|
2591
|
+
*/
|
|
2592
|
+
export interface SetUPhoneTokenRequest {
|
|
2593
|
+
/**
|
|
2594
|
+
* 云手机ID
|
|
2595
|
+
*/
|
|
2596
|
+
UPhoneId: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
|
|
2599
|
+
*/
|
|
2600
|
+
CityId: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* RTC连接Token,为空表示清空Token
|
|
2603
|
+
*/
|
|
2604
|
+
Token?: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2607
|
+
*/
|
|
2608
|
+
ProductType?: string;
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
|
|
2612
|
+
*/
|
|
2613
|
+
export interface SetUPhoneTokenResponse {
|
|
2614
|
+
}
|
|
1935
2615
|
/**
|
|
1936
2616
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
1937
2617
|
*/
|
|
@@ -1948,6 +2628,10 @@ export interface UnInstallUPhoneAppVersionRequest {
|
|
|
1948
2628
|
* 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望卸载应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
|
|
1949
2629
|
*/
|
|
1950
2630
|
UPhoneIds: string[];
|
|
2631
|
+
/**
|
|
2632
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2633
|
+
*/
|
|
2634
|
+
ProductType?: string;
|
|
1951
2635
|
}
|
|
1952
2636
|
/**
|
|
1953
2637
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
@@ -1974,6 +2658,10 @@ export interface UpdateUPhoneImageRequest {
|
|
|
1974
2658
|
* 镜像的描述信息。长度为2~256个英文或中文字符
|
|
1975
2659
|
*/
|
|
1976
2660
|
Description?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
|
|
2663
|
+
*/
|
|
2664
|
+
ProductType?: string;
|
|
1977
2665
|
}
|
|
1978
2666
|
/**
|
|
1979
2667
|
* UpdateUPhoneImage - 更新云手机镜像信息。
|