@ucloud-sdks/ucloud-sdk-js 0.2.2 → 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.
@@ -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 - 获取云手机支持绑定独立IP的城市列表
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,6 +264,12 @@ 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
  *
@@ -241,6 +295,76 @@ export default class UPhoneClient extends Client {
241
295
  */
242
296
  updateUPhoneImage(request?: UpdateUPhoneImageRequest): Promise<UpdateUPhoneImageResponse>;
243
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
+ }
244
368
  /**
245
369
  * CreateUPhoneApp - 一个 app 对应多个 app_version。
246
370
  */
@@ -253,6 +377,10 @@ export interface CreateUPhoneAppRequest {
253
377
  * 应用描述。
254
378
  */
255
379
  Description?: string;
380
+ /**
381
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
382
+ */
383
+ ProductType?: string;
256
384
  }
257
385
  /**
258
386
  * CreateUPhoneApp - 一个 app 对应多个 app_version。
@@ -284,6 +412,10 @@ export interface CreateUPhoneAppVersionRequest {
284
412
  * 应用版本描述。
285
413
  */
286
414
  Description?: string;
415
+ /**
416
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
417
+ */
418
+ ProductType?: string;
287
419
  }
288
420
  /**
289
421
  * CreateUPhoneAppVersion - 创建云手机应用版本。
@@ -300,7 +432,7 @@ export interface CreateUPhoneAppVersionResponse {
300
432
  */
301
433
  export interface CreateUPhoneImageRequest {
302
434
  /**
303
- * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
435
+ * 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
304
436
  */
305
437
  CityId: string;
306
438
  /**
@@ -315,6 +447,10 @@ export interface CreateUPhoneImageRequest {
315
447
  * 镜像的描述信息。长度为2~256个英文或中文字符
316
448
  */
317
449
  Description?: string;
450
+ /**
451
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
452
+ */
453
+ ProductType?: string;
318
454
  }
319
455
  /**
320
456
  * CreateUPhoneImage - 创建云手机镜像。
@@ -324,6 +460,10 @@ export interface CreateUPhoneImageResponse {
324
460
  * 云手机自定义镜像资源 ID
325
461
  */
326
462
  ImageId?: string;
463
+ /**
464
+ * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
465
+ */
466
+ JobId?: string;
327
467
  }
328
468
  /**
329
469
  * CreateUPhoneServer - 创建云手机服务器
@@ -391,6 +531,32 @@ export interface CreateUPhoneServerResponse {
391
531
  */
392
532
  ServerId: string;
393
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
+ }
394
560
  /**
395
561
  * DeleteUPhoneImage - 删除自制云手机镜像。
396
562
  */
@@ -410,7 +576,7 @@ export interface DeleteUPhoneImageResponse {
410
576
  ImageId: string;
411
577
  }
412
578
  /**
413
- * DeleteUPhoneServer - 删除云手机服务器。 注:关机状态下才能执行删除操作。
579
+ * DeleteUPhoneServer - 删除云手机服务器。
414
580
  */
415
581
  export interface DeleteUPhoneServerRequest {
416
582
  /**
@@ -431,7 +597,7 @@ export interface DeleteUPhoneServerRequest {
431
597
  ReleaseUDisk?: boolean;
432
598
  }
433
599
  /**
434
- * DeleteUPhoneServer - 删除云手机服务器。 注:关机状态下才能执行删除操作。
600
+ * DeleteUPhoneServer - 删除云手机服务器。
435
601
  */
436
602
  export interface DeleteUPhoneServerResponse {
437
603
  }
@@ -467,6 +633,10 @@ export interface DescribeUPhoneRequest {
467
633
  * 是否返回全部。如果有此参数,分页不生效。
468
634
  */
469
635
  IsAll?: boolean;
636
+ /**
637
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
638
+ */
639
+ ProductType?: string;
470
640
  }
471
641
  /**
472
642
  * DescribeUPhone - 获取云手机列表信息。
@@ -556,6 +726,22 @@ export interface DescribeUPhoneResponse {
556
726
  * 备注
557
727
  */
558
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;
559
745
  }[];
560
746
  }
561
747
  /**
@@ -574,6 +760,10 @@ export interface DescribeUPhoneAppRequest {
574
760
  * 返回数据长度,默认为20,最大100
575
761
  */
576
762
  Limit?: number;
763
+ /**
764
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
765
+ */
766
+ ProductType?: string;
577
767
  }
578
768
  /**
579
769
  * DescribeUPhoneApp - 获取应用列表。
@@ -633,6 +823,10 @@ export interface DescribeUPhoneAppVersionRequest {
633
823
  * 列表起始位置偏移量,默认为0
634
824
  */
635
825
  Offset?: number;
826
+ /**
827
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
828
+ */
829
+ ProductType?: string;
636
830
  }
637
831
  /**
638
832
  * DescribeUPhoneAppVersion - 获取应用版本列表。
@@ -684,6 +878,10 @@ export interface DescribeUPhoneAppVersionResponse {
684
878
  * DescribeUPhoneCities - 获取云手机提供服务的城市列表
685
879
  */
686
880
  export interface DescribeUPhoneCitiesRequest {
881
+ /**
882
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
883
+ */
884
+ ProductType?: string;
687
885
  }
688
886
  /**
689
887
  * DescribeUPhoneCities - 获取云手机提供服务的城市列表
@@ -735,6 +933,10 @@ export interface DescribeUPhoneDetailByAppRequest {
735
933
  * 返回数据长度,默认为20,最大100
736
934
  */
737
935
  Limit?: number;
936
+ /**
937
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
938
+ */
939
+ ProductType?: string;
738
940
  }
739
941
  /**
740
942
  * DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息
@@ -753,9 +955,13 @@ export interface DescribeUPhoneDetailByAppResponse {
753
955
  */
754
956
  UPhoneName?: string;
755
957
  /**
756
- * 云手机规格名称
958
+ * 云手机的唯一标识,不超过32个字节。
757
959
  */
758
960
  UPhoneId?: string;
961
+ /**
962
+ * 云手机规格名称
963
+ */
964
+ UPhoneModelName?: string;
759
965
  /**
760
966
  * 虚拟CPU核数。
761
967
  */
@@ -867,6 +1073,10 @@ export interface DescribeUPhoneImageRequest {
867
1073
  * 最大返回镜像数量,默认为20,最大100
868
1074
  */
869
1075
  Limit?: string;
1076
+ /**
1077
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1078
+ */
1079
+ ProductType?: string;
870
1080
  }
871
1081
  /**
872
1082
  * DescribeUPhoneImage - 获取云手机镜像信息列表。
@@ -956,16 +1166,20 @@ export interface DescribeUPhoneImageResponse {
956
1166
  TotalCount?: number;
957
1167
  }
958
1168
  /**
959
- * DescribeUPhoneIpRegions - 获取云手机支持绑定独立IP的城市列表
1169
+ * DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表
960
1170
  */
961
1171
  export interface DescribeUPhoneIpRegionsRequest {
962
1172
  /**
963
- * 城市Id,eg: cn-shanghai, cn-hangzhou
1173
+ * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
964
1174
  */
965
1175
  CityId: string;
1176
+ /**
1177
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1178
+ */
1179
+ ProductType?: string;
966
1180
  }
967
1181
  /**
968
- * DescribeUPhoneIpRegions - 获取云手机支持绑定独立IP的城市列表
1182
+ * DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表
969
1183
  */
970
1184
  export interface DescribeUPhoneIpRegionsResponse {
971
1185
  /**
@@ -995,7 +1209,7 @@ export interface DescribeUPhoneJobRequest {
995
1209
  */
996
1210
  CityId: string;
997
1211
  /**
998
- * 【数组】Job 的唯一标识 Id,调用方式举例:ServerIds.0=希望查询状态的 Job1,ServerIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。
1212
+ * 【数组】Job 的唯一标识 Id,调用方式举例:JobIds.0=希望查询状态的 Job1,JobIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。
999
1213
  */
1000
1214
  JobIds?: string[];
1001
1215
  /**
@@ -1014,6 +1228,10 @@ export interface DescribeUPhoneJobRequest {
1014
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
1015
1229
  */
1016
1230
  Types?: string[];
1231
+ /**
1232
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1233
+ */
1234
+ ProductType?: string;
1017
1235
  }
1018
1236
  /**
1019
1237
  * DescribeUPhoneJob - 查询Job的执行状态。
@@ -1099,7 +1317,7 @@ export interface DescribeUPhoneJobResponse {
1099
1317
  TotalCount?: number;
1100
1318
  }
1101
1319
  /**
1102
- * DescribeUPhoneModel -
1320
+ * DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
1103
1321
  */
1104
1322
  export interface DescribeUPhoneModelRequest {
1105
1323
  /**
@@ -1114,9 +1332,13 @@ export interface DescribeUPhoneModelRequest {
1114
1332
  * 返回数据长度,默认为20,最大100
1115
1333
  */
1116
1334
  Limit?: number;
1335
+ /**
1336
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1337
+ */
1338
+ ProductType?: string;
1117
1339
  }
1118
1340
  /**
1119
- * DescribeUPhoneModel -
1341
+ * DescribeUPhoneModel - 获取云手机规格列表。两种类型:uphone代表单云手机场景、uphone-server代表云手机服务器场景。
1120
1342
  */
1121
1343
  export interface DescribeUPhoneModelResponse {
1122
1344
  /**
@@ -1151,6 +1373,14 @@ export interface DescribeUPhoneModelResponse {
1151
1373
  * 刷新率
1152
1374
  */
1153
1375
  Refresh: number;
1376
+ /**
1377
+ * DPI
1378
+ */
1379
+ Dpi?: number;
1380
+ /**
1381
+ * 型号描述信息
1382
+ */
1383
+ Description?: string;
1154
1384
  }[];
1155
1385
  }
1156
1386
  /**
@@ -1345,10 +1575,23 @@ export interface DescribeUPhoneServerModelResponse {
1345
1575
  * ServerModelInstance总数
1346
1576
  */
1347
1577
  TotalCount: number;
1578
+ /**
1579
+ * 服务器model的库存
1580
+ */
1581
+ Stock?: {
1582
+ /**
1583
+ * ServerModel名称
1584
+ */
1585
+ ModelName?: string;
1586
+ /**
1587
+ * 资源余量
1588
+ */
1589
+ StockCount?: number;
1590
+ }[];
1348
1591
  /**
1349
1592
  * ServerModel实例列表,每项参数可见数据模型 ServerModelInstance
1350
1593
  */
1351
- ServerModels: {
1594
+ ServerModels?: {
1352
1595
  /**
1353
1596
  * ServerModel名称
1354
1597
  */
@@ -1405,6 +1648,143 @@ export interface DescribeUPhoneServerModelResponse {
1405
1648
  ServerModelState?: string;
1406
1649
  }[];
1407
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
+ }
1408
1788
  /**
1409
1789
  * GetUPhoneScreenCapture - 云手机截屏
1410
1790
  */
@@ -1414,9 +1794,13 @@ export interface GetUPhoneScreenCaptureRequest {
1414
1794
  */
1415
1795
  UPhoneID: string;
1416
1796
  /**
1417
- * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1797
+ * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
1418
1798
  */
1419
1799
  CityId: string;
1800
+ /**
1801
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1802
+ */
1803
+ ProductType?: string;
1420
1804
  }
1421
1805
  /**
1422
1806
  * GetUPhoneScreenCapture - 云手机截屏
@@ -1469,7 +1853,7 @@ export interface GetUPhoneServerPriceResponse {
1469
1853
  */
1470
1854
  PriceSet: {
1471
1855
  /**
1472
- * 计费类型,枚举值:Year,Month
1856
+ * 计费类型,枚举值:Year,Month, Dynamic
1473
1857
  */
1474
1858
  ChargeType: string;
1475
1859
  /**
@@ -1516,7 +1900,7 @@ export interface GetUPhoneServerRenewPriceResponse {
1516
1900
  */
1517
1901
  PriceSet: {
1518
1902
  /**
1519
- * 计费类型,枚举值:Year,Month
1903
+ * 计费类型,枚举值:Year,Month, Dynamic
1520
1904
  */
1521
1905
  ChargeType: string;
1522
1906
  /**
@@ -1533,6 +1917,40 @@ export interface GetUPhoneServerRenewPriceResponse {
1533
1917
  ListPrice?: number;
1534
1918
  }[];
1535
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
+ }
1536
1954
  /**
1537
1955
  * InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
1538
1956
  */
@@ -1549,6 +1967,10 @@ export interface InstallUPhoneAppVersionRequest {
1549
1967
  * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望安装应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1550
1968
  */
1551
1969
  UPhoneIds: string[];
1970
+ /**
1971
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
1972
+ */
1973
+ ProductType?: string;
1552
1974
  }
1553
1975
  /**
1554
1976
  * InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
@@ -1675,6 +2097,10 @@ export interface PoweroffUPhoneRequest {
1675
2097
  * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1676
2098
  */
1677
2099
  CityId: string;
2100
+ /**
2101
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2102
+ */
2103
+ ProductType?: string;
1678
2104
  }
1679
2105
  /**
1680
2106
  * PoweroffUPhone - 关闭处于运行状态的云手机实例
@@ -1693,6 +2119,10 @@ export interface PoweronUPhoneRequest {
1693
2119
  * 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。
1694
2120
  */
1695
2121
  UPhoneIds: string[];
2122
+ /**
2123
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2124
+ */
2125
+ ProductType?: string;
1696
2126
  }
1697
2127
  /**
1698
2128
  * PoweronUPhone - 启动处于关闭状态的云手机实例
@@ -1711,11 +2141,141 @@ export interface RebootUPhoneRequest {
1711
2141
  * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1712
2142
  */
1713
2143
  CityId: string;
2144
+ /**
2145
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2146
+ */
2147
+ ProductType?: string;
1714
2148
  }
1715
2149
  /**
1716
2150
  * RebootUPhone - 重新启动云手机实例
1717
2151
  */
1718
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 {
1719
2279
  }
1720
2280
  /**
1721
2281
  * ResetUPhone - 将云手机恢复为创建时的状态。
@@ -1729,11 +2289,19 @@ export interface ResetUPhoneRequest {
1729
2289
  * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1730
2290
  */
1731
2291
  UPhoneIds: string[];
2292
+ /**
2293
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2294
+ */
2295
+ ProductType?: string;
1732
2296
  }
1733
2297
  /**
1734
2298
  * ResetUPhone - 将云手机恢复为创建时的状态。
1735
2299
  */
1736
2300
  export interface ResetUPhoneResponse {
2301
+ /**
2302
+ * 异步请求成功后返回JobId,用以查询Job状态
2303
+ */
2304
+ JobId?: string;
1737
2305
  }
1738
2306
  /**
1739
2307
  * RunAsyncCommand - 在云手机中执行异步shell命令。
@@ -1751,6 +2319,10 @@ export interface RunAsyncCommandRequest {
1751
2319
  * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1752
2320
  */
1753
2321
  UPhoneIds: string[];
2322
+ /**
2323
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2324
+ */
2325
+ ProductType?: string;
1754
2326
  }
1755
2327
  /**
1756
2328
  * RunAsyncCommand - 在云手机中执行异步shell命令。
@@ -1777,6 +2349,10 @@ export interface RunSyncCommandRequest {
1777
2349
  * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1778
2350
  */
1779
2351
  UPhoneIds: string[];
2352
+ /**
2353
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2354
+ */
2355
+ ProductType?: string;
1780
2356
  }
1781
2357
  /**
1782
2358
  * RunSyncCommand - 在云手机中执行同步shell命令。
@@ -1796,6 +2372,32 @@ export interface RunSyncCommandResponse {
1796
2372
  ExecuteMsg?: string;
1797
2373
  }[];
1798
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
+ }
1799
2401
  /**
1800
2402
  * SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
1801
2403
  */
@@ -1805,7 +2407,7 @@ export interface SetUPhoneConfigRequest {
1805
2407
  */
1806
2408
  CityId: string;
1807
2409
  /**
1808
- * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
2410
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1809
2411
  */
1810
2412
  UPhoneIds: string[];
1811
2413
  /**
@@ -1817,7 +2419,7 @@ export interface SetUPhoneConfigRequest {
1817
2419
  */
1818
2420
  Refresh?: string;
1819
2421
  /**
1820
- * 云手机画面传输码率(例,8000)取值范围[100,5000]
2422
+ * 云手机画面传输码率(例,8000)取值范围[100,50000]
1821
2423
  */
1822
2424
  Bitrate?: string;
1823
2425
  /**
@@ -1828,6 +2430,10 @@ export interface SetUPhoneConfigRequest {
1828
2430
  * 云手机dpi,取值范围[100,1000]
1829
2431
  */
1830
2432
  Dpi?: string;
2433
+ /**
2434
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2435
+ */
2436
+ ProductType?: string;
1831
2437
  }
1832
2438
  /**
1833
2439
  * SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
@@ -1884,6 +2490,10 @@ export interface SetUPhoneGPSRequest {
1884
2490
  */
1885
2491
  Altitude?: number;
1886
2492
  }[];
2493
+ /**
2494
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2495
+ */
2496
+ ProductType?: string;
1887
2497
  }
1888
2498
  /**
1889
2499
  * SetUPhoneGPS - 设置云手机GPS信息
@@ -1910,12 +2520,46 @@ export interface SetUPhoneManagerModeRequest {
1910
2520
  * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1911
2521
  */
1912
2522
  CityId: string;
2523
+ /**
2524
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2525
+ */
2526
+ ProductType?: string;
1913
2527
  }
1914
2528
  /**
1915
2529
  * SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面
1916
2530
  */
1917
2531
  export interface SetUPhoneManagerModeResponse {
1918
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
+ }
1919
2563
  /**
1920
2564
  * SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
1921
2565
  */
@@ -1932,6 +2576,10 @@ export interface SetUPhoneSplashScreenRequest {
1932
2576
  * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1933
2577
  */
1934
2578
  CityId: string;
2579
+ /**
2580
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2581
+ */
2582
+ ProductType?: string;
1935
2583
  }
1936
2584
  /**
1937
2585
  * SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
@@ -1947,13 +2595,17 @@ export interface SetUPhoneTokenRequest {
1947
2595
  */
1948
2596
  UPhoneId: string;
1949
2597
  /**
1950
- * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
2598
+ * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
1951
2599
  */
1952
2600
  CityId: string;
1953
2601
  /**
1954
2602
  * RTC连接Token,为空表示清空Token
1955
2603
  */
1956
2604
  Token?: string;
2605
+ /**
2606
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2607
+ */
2608
+ ProductType?: string;
1957
2609
  }
1958
2610
  /**
1959
2611
  * SetUPhoneToken - 设置云手机RTC连接Token提高安全性
@@ -1976,6 +2628,10 @@ export interface UnInstallUPhoneAppVersionRequest {
1976
2628
  * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望卸载应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1977
2629
  */
1978
2630
  UPhoneIds: string[];
2631
+ /**
2632
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2633
+ */
2634
+ ProductType?: string;
1979
2635
  }
1980
2636
  /**
1981
2637
  * UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
@@ -2002,6 +2658,10 @@ export interface UpdateUPhoneImageRequest {
2002
2658
  * 镜像的描述信息。长度为2~256个英文或中文字符
2003
2659
  */
2004
2660
  Description?: string;
2661
+ /**
2662
+ * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
2663
+ */
2664
+ ProductType?: string;
2005
2665
  }
2006
2666
  /**
2007
2667
  * UpdateUPhoneImage - 更新云手机镜像信息。