@ucloud-sdks/ucloud-sdk-js 0.1.0 → 0.2.2

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.
@@ -0,0 +1,2014 @@
1
+ import Client from '../../core/client';
2
+ import { ConfigOptions } from '../../core/config';
3
+ import { CredentialOptions } from '../../core/credential';
4
+ /**
5
+ * This client is used to call actions of **uphone** service
6
+ */
7
+ export default class UPhoneClient extends Client {
8
+ constructor({ config, credential, }: {
9
+ config: ConfigOptions;
10
+ credential: CredentialOptions;
11
+ });
12
+ /**
13
+ * CreateUPhoneApp - 一个 app 对应多个 app_version。
14
+ *
15
+ * See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone_app
16
+ */
17
+ createUPhoneApp(request?: CreateUPhoneAppRequest): Promise<CreateUPhoneAppResponse>;
18
+ /**
19
+ * CreateUPhoneAppVersion - 创建云手机应用版本。
20
+ 注:一个 app 对应多个 app_version。
21
+ *
22
+ * See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone_app_version
23
+ */
24
+ createUPhoneAppVersion(request?: CreateUPhoneAppVersionRequest): Promise<CreateUPhoneAppVersionResponse>;
25
+ /**
26
+ * CreateUPhoneImage - 创建云手机镜像。
27
+ *
28
+ * See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone_image
29
+ */
30
+ createUPhoneImage(request?: CreateUPhoneImageRequest): Promise<CreateUPhoneImageResponse>;
31
+ /**
32
+ * CreateUPhoneServer - 创建云手机服务器
33
+ *
34
+ * See also: https://docs.ucloud.cn/api/uphone-api/create_u_phone_server
35
+ */
36
+ createUPhoneServer(request?: CreateUPhoneServerRequest): Promise<CreateUPhoneServerResponse>;
37
+ /**
38
+ * DeleteUPhoneImage - 删除自制云手机镜像。
39
+ *
40
+ * See also: https://docs.ucloud.cn/api/uphone-api/delete_u_phone_image
41
+ */
42
+ deleteUPhoneImage(request?: DeleteUPhoneImageRequest): Promise<DeleteUPhoneImageResponse>;
43
+ /**
44
+ * DeleteUPhoneServer - 删除云手机服务器。 注:关机状态下才能执行删除操作。
45
+ *
46
+ * See also: https://docs.ucloud.cn/api/uphone-api/delete_u_phone_server
47
+ */
48
+ deleteUPhoneServer(request?: DeleteUPhoneServerRequest): Promise<DeleteUPhoneServerResponse>;
49
+ /**
50
+ * DescribeUPhone - 获取云手机列表信息。
51
+ *
52
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone
53
+ */
54
+ describeUPhone(request?: DescribeUPhoneRequest): Promise<DescribeUPhoneResponse>;
55
+ /**
56
+ * DescribeUPhoneApp - 获取应用列表。
57
+ *
58
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_app
59
+ */
60
+ describeUPhoneApp(request?: DescribeUPhoneAppRequest): Promise<DescribeUPhoneAppResponse>;
61
+ /**
62
+ * DescribeUPhoneAppVersion - 获取应用版本列表。
63
+ *
64
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_app_version
65
+ */
66
+ describeUPhoneAppVersion(request?: DescribeUPhoneAppVersionRequest): Promise<DescribeUPhoneAppVersionResponse>;
67
+ /**
68
+ * DescribeUPhoneCities - 获取云手机提供服务的城市列表
69
+ *
70
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities
71
+ */
72
+ describeUPhoneCities(request?: DescribeUPhoneCitiesRequest): Promise<DescribeUPhoneCitiesResponse>;
73
+ /**
74
+ * DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息
75
+ *
76
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_detail_by_app
77
+ */
78
+ describeUPhoneDetailByApp(request?: DescribeUPhoneDetailByAppRequest): Promise<DescribeUPhoneDetailByAppResponse>;
79
+ /**
80
+ * DescribeUPhoneImage - 获取云手机镜像信息列表。
81
+ *
82
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image
83
+ */
84
+ describeUPhoneImage(request?: DescribeUPhoneImageRequest): Promise<DescribeUPhoneImageResponse>;
85
+ /**
86
+ * DescribeUPhoneIpRegions - 获取云手机支持绑定独立IP的城市列表
87
+ *
88
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_ip_regions
89
+ */
90
+ describeUPhoneIpRegions(request?: DescribeUPhoneIpRegionsRequest): Promise<DescribeUPhoneIpRegionsResponse>;
91
+ /**
92
+ * DescribeUPhoneJob - 查询Job的执行状态。
93
+ *
94
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_job
95
+ */
96
+ describeUPhoneJob(request?: DescribeUPhoneJobRequest): Promise<DescribeUPhoneJobResponse>;
97
+ /**
98
+ * DescribeUPhoneModel -
99
+ *
100
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model
101
+ */
102
+ describeUPhoneModel(request?: DescribeUPhoneModelRequest): Promise<DescribeUPhoneModelResponse>;
103
+ /**
104
+ * DescribeUPhoneServer - 获取云手机服务器列表信息。
105
+ *
106
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server
107
+ */
108
+ describeUPhoneServer(request?: DescribeUPhoneServerRequest): Promise<DescribeUPhoneServerResponse>;
109
+ /**
110
+ * DescribeUPhoneServerModel - 获取ServerModel列表。
111
+ *
112
+ * See also: https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model
113
+ */
114
+ describeUPhoneServerModel(request?: DescribeUPhoneServerModelRequest): Promise<DescribeUPhoneServerModelResponse>;
115
+ /**
116
+ * GetUPhoneScreenCapture - 云手机截屏
117
+ *
118
+ * See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_screen_capture
119
+ */
120
+ getUPhoneScreenCapture(request?: GetUPhoneScreenCaptureRequest): Promise<GetUPhoneScreenCaptureResponse>;
121
+ /**
122
+ * GetUPhoneServerPrice - 根据服务器规格名称,获取UPhoneServer实例的价格。
123
+ *
124
+ * See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_server_price
125
+ */
126
+ getUPhoneServerPrice(request?: GetUPhoneServerPriceRequest): Promise<GetUPhoneServerPriceResponse>;
127
+ /**
128
+ * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格
129
+
130
+ 提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
131
+ *
132
+ * See also: https://docs.ucloud.cn/api/uphone-api/get_u_phone_server_renew_price
133
+ */
134
+ getUPhoneServerRenewPrice(request?: GetUPhoneServerRenewPriceRequest): Promise<GetUPhoneServerRenewPriceResponse>;
135
+ /**
136
+ * InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
137
+ *
138
+ * See also: https://docs.ucloud.cn/api/uphone-api/install_u_phone_app_version
139
+ */
140
+ installUPhoneAppVersion(request?: InstallUPhoneAppVersionRequest): Promise<InstallUPhoneAppVersionResponse>;
141
+ /**
142
+ * ModifyUPhoneName - 修改指定云手机实例名称。
143
+ *
144
+ * See also: https://docs.ucloud.cn/api/uphone-api/modify_u_phone_name
145
+ */
146
+ modifyUPhoneName(request?: ModifyUPhoneNameRequest): Promise<ModifyUPhoneNameResponse>;
147
+ /**
148
+ * ModifyUPhoneRemark - 修改指定云手机实例备注信息。
149
+ *
150
+ * See also: https://docs.ucloud.cn/api/uphone-api/modify_u_phone_remark
151
+ */
152
+ modifyUPhoneRemark(request?: ModifyUPhoneRemarkRequest): Promise<ModifyUPhoneRemarkResponse>;
153
+ /**
154
+ * ModifyUPhoneServerName - 修改指定云手机服务器实例名称。
155
+ *
156
+ * See also: https://docs.ucloud.cn/api/uphone-api/modify_u_phone_server_name
157
+ */
158
+ modifyUPhoneServerName(request?: ModifyUPhoneServerNameRequest): Promise<ModifyUPhoneServerNameResponse>;
159
+ /**
160
+ * ModifyUPhoneServerRemark - 修改指定云手机实例备注信息。
161
+ *
162
+ * See also: https://docs.ucloud.cn/api/uphone-api/modify_u_phone_server_remark
163
+ */
164
+ modifyUPhoneServerRemark(request?: ModifyUPhoneServerRemarkRequest): Promise<ModifyUPhoneServerRemarkResponse>;
165
+ /**
166
+ * PoweroffUPhone - 关闭处于运行状态的云手机实例
167
+ *
168
+ * See also: https://docs.ucloud.cn/api/uphone-api/poweroff_u_phone
169
+ */
170
+ poweroffUPhone(request?: PoweroffUPhoneRequest): Promise<PoweroffUPhoneResponse>;
171
+ /**
172
+ * PoweronUPhone - 启动处于关闭状态的云手机实例
173
+ *
174
+ * See also: https://docs.ucloud.cn/api/uphone-api/poweron_u_phone
175
+ */
176
+ poweronUPhone(request?: PoweronUPhoneRequest): Promise<PoweronUPhoneResponse>;
177
+ /**
178
+ * RebootUPhone - 重新启动云手机实例
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/uphone-api/reboot_u_phone
181
+ */
182
+ rebootUPhone(request?: RebootUPhoneRequest): Promise<RebootUPhoneResponse>;
183
+ /**
184
+ * ResetUPhone - 将云手机恢复为创建时的状态。
185
+ *
186
+ * See also: https://docs.ucloud.cn/api/uphone-api/reset_u_phone
187
+ */
188
+ resetUPhone(request?: ResetUPhoneRequest): Promise<ResetUPhoneResponse>;
189
+ /**
190
+ * RunAsyncCommand - 在云手机中执行异步shell命令。
191
+ *
192
+ * See also: https://docs.ucloud.cn/api/uphone-api/run_async_command
193
+ */
194
+ runAsyncCommand(request?: RunAsyncCommandRequest): Promise<RunAsyncCommandResponse>;
195
+ /**
196
+ * RunSyncCommand - 在云手机中执行同步shell命令。
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/uphone-api/run_sync_command
199
+ */
200
+ runSyncCommand(request?: RunSyncCommandRequest): Promise<RunSyncCommandResponse>;
201
+ /**
202
+ * SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
203
+ *
204
+ * See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_config
205
+ */
206
+ setUPhoneConfig(request?: SetUPhoneConfigRequest): Promise<SetUPhoneConfigResponse>;
207
+ /**
208
+ * SetUPhoneGPS - 设置云手机GPS信息
209
+ *
210
+ * See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_gps
211
+ */
212
+ setUPhoneGPS(request?: SetUPhoneGPSRequest): Promise<SetUPhoneGPSResponse>;
213
+ /**
214
+ * SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面
215
+ *
216
+ * See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_manager_mode
217
+ */
218
+ setUPhoneManagerMode(request?: SetUPhoneManagerModeRequest): Promise<SetUPhoneManagerModeResponse>;
219
+ /**
220
+ * SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
221
+ *
222
+ * See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_splash_screen
223
+ */
224
+ setUPhoneSplashScreen(request?: SetUPhoneSplashScreenRequest): Promise<SetUPhoneSplashScreenResponse>;
225
+ /**
226
+ * SetUPhoneToken - 设置云手机RTC连接Token提高安全性
227
+ *
228
+ * See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
229
+ */
230
+ setUPhoneToken(request?: SetUPhoneTokenRequest): Promise<SetUPhoneTokenResponse>;
231
+ /**
232
+ * UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
233
+ *
234
+ * See also: https://docs.ucloud.cn/api/uphone-api/un_install_u_phone_app_version
235
+ */
236
+ unInstallUPhoneAppVersion(request?: UnInstallUPhoneAppVersionRequest): Promise<UnInstallUPhoneAppVersionResponse>;
237
+ /**
238
+ * UpdateUPhoneImage - 更新云手机镜像信息。
239
+ *
240
+ * See also: https://docs.ucloud.cn/api/uphone-api/update_u_phone_image
241
+ */
242
+ updateUPhoneImage(request?: UpdateUPhoneImageRequest): Promise<UpdateUPhoneImageResponse>;
243
+ }
244
+ /**
245
+ * CreateUPhoneApp - 一个 app 对应多个 app_version。
246
+ */
247
+ export interface CreateUPhoneAppRequest {
248
+ /**
249
+ * 应用名称。
250
+ */
251
+ Name: string;
252
+ /**
253
+ * 应用描述。
254
+ */
255
+ Description?: string;
256
+ }
257
+ /**
258
+ * CreateUPhoneApp - 一个 app 对应多个 app_version。
259
+ */
260
+ export interface CreateUPhoneAppResponse {
261
+ /**
262
+ * 应用的唯一标识ID
263
+ */
264
+ AppId: string;
265
+ }
266
+ /**
267
+ * CreateUPhoneAppVersion - 创建云手机应用版本。
268
+ 注:一个 app 对应多个 app_version。
269
+ */
270
+ export interface CreateUPhoneAppVersionRequest {
271
+ /**
272
+ * 应用版本名称,最大字符长度为255。
273
+ */
274
+ Name: string;
275
+ /**
276
+ * 应用的唯一标识ID。
277
+ */
278
+ AppId: string;
279
+ /**
280
+ * 应用版本相关的Apk文件存放的公网URL地址。
281
+ */
282
+ URL: string;
283
+ /**
284
+ * 应用版本描述。
285
+ */
286
+ Description?: string;
287
+ }
288
+ /**
289
+ * CreateUPhoneAppVersion - 创建云手机应用版本。
290
+ 注:一个 app 对应多个 app_version。
291
+ */
292
+ export interface CreateUPhoneAppVersionResponse {
293
+ /**
294
+ * 应用版本的唯一标识ID
295
+ */
296
+ AppVersionId: string;
297
+ }
298
+ /**
299
+ * CreateUPhoneImage - 创建云手机镜像。
300
+ */
301
+ export interface CreateUPhoneImageRequest {
302
+ /**
303
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
304
+ */
305
+ CityId: string;
306
+ /**
307
+ * 手机实例的资源ID
308
+ */
309
+ UPhoneId: string;
310
+ /**
311
+ * 镜像名称。长度为2~128个英文或中文字符。
312
+ */
313
+ Name?: string;
314
+ /**
315
+ * 镜像的描述信息。长度为2~256个英文或中文字符
316
+ */
317
+ Description?: string;
318
+ }
319
+ /**
320
+ * CreateUPhoneImage - 创建云手机镜像。
321
+ */
322
+ export interface CreateUPhoneImageResponse {
323
+ /**
324
+ * 云手机自定义镜像资源 ID
325
+ */
326
+ ImageId?: string;
327
+ }
328
+ /**
329
+ * CreateUPhoneServer - 创建云手机服务器
330
+ */
331
+ export interface CreateUPhoneServerRequest {
332
+ /**
333
+ * 云手机服务器实例名称。默认:UPhone。请遵照字段规范设定实例名称。
334
+ */
335
+ Name: string;
336
+ /**
337
+ * 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。
338
+ */
339
+ ServerModelName: string;
340
+ /**
341
+ * 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。
342
+ */
343
+ UPhoneModelName: string;
344
+ /**
345
+ * 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。
346
+ */
347
+ ImageId: string;
348
+ /**
349
+ * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
350
+ */
351
+ CityId: string;
352
+ /**
353
+ * 计费模式。枚举值为:> 年 Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费;默认为月付
354
+ */
355
+ ChargeType?: string;
356
+ /**
357
+ * 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。
358
+ */
359
+ Quantity?: string;
360
+ /**
361
+ *
362
+ */
363
+ NetworkInterface?: object[];
364
+ /**
365
+ * 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
366
+ */
367
+ IpDestRegion?: string;
368
+ /**
369
+ * 独立IP参数。共享带宽值大小。传此参数需要和IpProportion同时传。
370
+ */
371
+ ShareBandwidth?: number;
372
+ /**
373
+ * 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。
374
+ */
375
+ IpProportion?: number;
376
+ /**
377
+ * 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。
378
+ */
379
+ Tag?: string;
380
+ /**
381
+ * 云手机服务器代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机服务器计费
382
+ */
383
+ CouponId?: string;
384
+ }
385
+ /**
386
+ * CreateUPhoneServer - 创建云手机服务器
387
+ */
388
+ export interface CreateUPhoneServerResponse {
389
+ /**
390
+ * 云手机服务器的实例 ID
391
+ */
392
+ ServerId: string;
393
+ }
394
+ /**
395
+ * DeleteUPhoneImage - 删除自制云手机镜像。
396
+ */
397
+ export interface DeleteUPhoneImageRequest {
398
+ /**
399
+ * 云手机自定义镜像资源ID
400
+ */
401
+ ImageId: string;
402
+ }
403
+ /**
404
+ * DeleteUPhoneImage - 删除自制云手机镜像。
405
+ */
406
+ export interface DeleteUPhoneImageResponse {
407
+ /**
408
+ * 云手机自定义镜像资源ID
409
+ */
410
+ ImageId: string;
411
+ }
412
+ /**
413
+ * DeleteUPhoneServer - 删除云手机服务器。 注:关机状态下才能执行删除操作。
414
+ */
415
+ export interface DeleteUPhoneServerRequest {
416
+ /**
417
+ * 云手机服务器的实例ID 可通过 [DescribeUPhoneServer]()获取
418
+ */
419
+ ServerId: string;
420
+ /**
421
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
422
+ */
423
+ CityId: string;
424
+ /**
425
+ * 删除云手机服务器时是否释放绑定的EIP。默认为false。
426
+ */
427
+ ReleaseEIP?: boolean;
428
+ /**
429
+ * 删除云手机服务器时是否同时删除挂载的数据盘。默认为false。
430
+ */
431
+ ReleaseUDisk?: boolean;
432
+ }
433
+ /**
434
+ * DeleteUPhoneServer - 删除云手机服务器。 注:关机状态下才能执行删除操作。
435
+ */
436
+ export interface DeleteUPhoneServerResponse {
437
+ }
438
+ /**
439
+ * DescribeUPhone - 获取云手机列表信息。
440
+ */
441
+ export interface DescribeUPhoneRequest {
442
+ /**
443
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
444
+ */
445
+ CityId: string;
446
+ /**
447
+ * 云手机服务器的资源ID。
448
+ */
449
+ ServerId?: string;
450
+ /**
451
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
452
+ */
453
+ UPhoneIds?: string[];
454
+ /**
455
+ * 列表起始位置偏移量,默认为0
456
+ */
457
+ Offset?: number;
458
+ /**
459
+ * 返回数据长度,默认为200,最大200
460
+ */
461
+ Limit?: number;
462
+ /**
463
+ * 要查询的业务组名称
464
+ */
465
+ Tag?: string;
466
+ /**
467
+ * 是否返回全部。如果有此参数,分页不生效。
468
+ */
469
+ IsAll?: boolean;
470
+ }
471
+ /**
472
+ * DescribeUPhone - 获取云手机列表信息。
473
+ */
474
+ export interface DescribeUPhoneResponse {
475
+ /**
476
+ * UPhoneInstance总数
477
+ */
478
+ TotalCount: number;
479
+ /**
480
+ * 云手机实例列表,每项参数可见数据模型 [UPhoneInstance](#UPhoneInstance)
481
+ */
482
+ UPhones: {
483
+ /**
484
+ * 云手机的名称,不超过65个字符。
485
+ */
486
+ UPhoneName: string;
487
+ /**
488
+ * 云手机的唯一标识,不超过32个字节。
489
+ */
490
+ UPhoneId: string;
491
+ /**
492
+ * 云手机规格名称
493
+ */
494
+ UPhoneModelName: string;
495
+ /**
496
+ * 虚拟CPU核数。
497
+ */
498
+ CPU: number;
499
+ /**
500
+ * 内存大小。单位MB
501
+ */
502
+ Memory: number;
503
+ /**
504
+ * 磁盘大小,单位: GB
505
+ */
506
+ DiskSize: number;
507
+ /**
508
+ * 分辨率
509
+ */
510
+ Resolution: string;
511
+ /**
512
+ * 刷新率
513
+ */
514
+ Refresh: number;
515
+ /**
516
+ * 云手机所在的服务器ID,不超过32个字节。
517
+ */
518
+ ServerId: string;
519
+ /**
520
+ * 云手机镜像ID,不超过32个字节。
521
+ */
522
+ ImageId: string;
523
+ /**
524
+ * 云手机镜像系统,如"Android armv8"
525
+ */
526
+ OsType: string;
527
+ /**
528
+ * 云手机状态<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或""
529
+ */
530
+ State: string;
531
+ /**
532
+ * 城市Id,eg: cn-shanghai, cn-jinan
533
+ */
534
+ CityId: string;
535
+ /**
536
+ * 城市名称,eg:上海二、济南市
537
+ */
538
+ CityName: string;
539
+ /**
540
+ * 创建时间,格式为Unix时间戳。
541
+ */
542
+ CreateTime: number;
543
+ /**
544
+ * 业务组名称
545
+ */
546
+ Tag: string;
547
+ /**
548
+ * 云手机启动图片URL链接
549
+ */
550
+ SplashScreen: string;
551
+ /**
552
+ * 云手机异步任务回调
553
+ */
554
+ Callback: string;
555
+ /**
556
+ * 备注
557
+ */
558
+ Remark?: string;
559
+ }[];
560
+ }
561
+ /**
562
+ * DescribeUPhoneApp - 获取应用列表。
563
+ */
564
+ export interface DescribeUPhoneAppRequest {
565
+ /**
566
+ * 数组】应用的唯一标识 ID,调用方式举例:AppIds.0=希望获取应用信息的应用 1,AppIds.1=应用 2。 如果不传入,则返回当前 城市 所有符合条件的应用列表。
567
+ */
568
+ AppIds?: string[];
569
+ /**
570
+ * 列表起始位置偏移量,默认为0
571
+ */
572
+ Offset?: number;
573
+ /**
574
+ * 返回数据长度,默认为20,最大100
575
+ */
576
+ Limit?: number;
577
+ }
578
+ /**
579
+ * DescribeUPhoneApp - 获取应用列表。
580
+ */
581
+ export interface DescribeUPhoneAppResponse {
582
+ /**
583
+ * AppInstance总数
584
+ */
585
+ TotalCount: number;
586
+ /**
587
+ * 云手机应用实例列表,每项参数可见数据模型 [AppInstance](#appInstance)
588
+ */
589
+ Apps?: {
590
+ /**
591
+ * 应用的唯一标识ID
592
+ */
593
+ AppId: string;
594
+ /**
595
+ * 应用名称。
596
+ */
597
+ AppName: string;
598
+ /**
599
+ * 创建时间,格式为Unix时间戳。
600
+ */
601
+ CreateTime: number;
602
+ /**
603
+ * 修改时间,格式为Unix时间戳。
604
+ */
605
+ ModifyTime: number;
606
+ /**
607
+ * 应用描述。
608
+ */
609
+ Description?: string;
610
+ }[];
611
+ }
612
+ /**
613
+ * DescribeUPhoneAppVersion - 获取应用版本列表。
614
+ */
615
+ export interface DescribeUPhoneAppVersionRequest {
616
+ /**
617
+ * 【数组】应用版本的唯一标识 ID,调用方式举例:AppVersionIds.0=希望获取应用版本信息的应用版本 1,AppVersionIds.1=应用版本 2。 如果不传入,则返回当前 城市 所有符合条件的应用版本列表。
618
+ */
619
+ AppVersionIds?: string[];
620
+ /**
621
+ * 应用的唯一标识ID
622
+ */
623
+ AppId?: string;
624
+ /**
625
+ * 云手机Id。此参数表示查询手机上所安装的应用版本。
626
+ */
627
+ UPhoneId?: string;
628
+ /**
629
+ * 返回数据长度,默认为20,最大100
630
+ */
631
+ Limit?: number;
632
+ /**
633
+ * 列表起始位置偏移量,默认为0
634
+ */
635
+ Offset?: number;
636
+ }
637
+ /**
638
+ * DescribeUPhoneAppVersion - 获取应用版本列表。
639
+ */
640
+ export interface DescribeUPhoneAppVersionResponse {
641
+ /**
642
+ * AppVersionInstance总数
643
+ */
644
+ TotalCount: number;
645
+ /**
646
+ * 云手机应用版本实例列表,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance)
647
+ */
648
+ AppVersions: {
649
+ /**
650
+ * 应用的唯一标识ID
651
+ */
652
+ AppId: string;
653
+ /**
654
+ * 应用版本的唯一标识ID
655
+ */
656
+ AppVersionId: string;
657
+ /**
658
+ * 应用版本名。
659
+ */
660
+ AppVersionName: string;
661
+ /**
662
+ * 应用包名。
663
+ */
664
+ PackageName: string;
665
+ /**
666
+ * 应用版本相关的Apk文件存放的公网URL地址。
667
+ */
668
+ URL: string;
669
+ /**
670
+ * 创建时间,格式为Unix时间戳。
671
+ */
672
+ CreateTime: number;
673
+ /**
674
+ * 修改时间,格式为Unix时间戳。
675
+ */
676
+ ModifyTime: number;
677
+ /**
678
+ * 应用版本描述。
679
+ */
680
+ Description?: string;
681
+ }[];
682
+ }
683
+ /**
684
+ * DescribeUPhoneCities - 获取云手机提供服务的城市列表
685
+ */
686
+ export interface DescribeUPhoneCitiesRequest {
687
+ }
688
+ /**
689
+ * DescribeUPhoneCities - 获取云手机提供服务的城市列表
690
+ */
691
+ export interface DescribeUPhoneCitiesResponse {
692
+ /**
693
+ * 云手机城市实例列表,每项参数可见数据模型 [CityInstance](#CityInstance)
694
+ */
695
+ UPhoneCities: {
696
+ /**
697
+ * 城市Id,eg: cn-shanghai, cn-jinan
698
+ */
699
+ CityId?: string;
700
+ /**
701
+ * 城市名称,eg:上海二、济南市
702
+ */
703
+ CityName?: string;
704
+ /**
705
+ * 表示该城市资源是否售罄
706
+ */
707
+ IsSoldOut?: boolean;
708
+ /**
709
+ * 城市类型。枚举值: <br /> * CENTER,中心城市 <br />* EDGE,边缘计算城市
710
+ */
711
+ CityType?: string;
712
+ /**
713
+ * 城市别名。如cn-sh2
714
+ */
715
+ CityAlias?: string;
716
+ }[];
717
+ }
718
+ /**
719
+ * DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息
720
+ */
721
+ export interface DescribeUPhoneDetailByAppRequest {
722
+ /**
723
+ * 应用的唯一标识ID
724
+ */
725
+ AppId: string;
726
+ /**
727
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
728
+ */
729
+ CityId: string;
730
+ /**
731
+ * 列表起始位置偏移量,默认为0
732
+ */
733
+ Offset?: number;
734
+ /**
735
+ * 返回数据长度,默认为20,最大100
736
+ */
737
+ Limit?: number;
738
+ }
739
+ /**
740
+ * DescribeUPhoneDetailByApp - 根据AppId,查询安装该应用的云手机以及相关的应用版本信息
741
+ */
742
+ export interface DescribeUPhoneDetailByAppResponse {
743
+ /**
744
+ * UPhoneWithAppVersion总数
745
+ */
746
+ TotalCount: number;
747
+ /**
748
+ * 带有应用版本的云手机实例,具体参数见数据模型 [UPhoneDetailInstanc](#UPhoneDetailInstanc)
749
+ */
750
+ UPhoneDetails: {
751
+ /**
752
+ * 云手机的名称,不超过65个字符。
753
+ */
754
+ UPhoneName?: string;
755
+ /**
756
+ * 云手机规格名称
757
+ */
758
+ UPhoneId?: string;
759
+ /**
760
+ * 虚拟CPU核数。
761
+ */
762
+ CPU?: number;
763
+ /**
764
+ * 内存大小。单位MB
765
+ */
766
+ Memory?: number;
767
+ /**
768
+ * 磁盘大小,单位: GB
769
+ */
770
+ DiskSize?: number;
771
+ /**
772
+ * 分辨率
773
+ */
774
+ Resolution?: string;
775
+ /**
776
+ * 刷新率
777
+ */
778
+ Refresh?: number;
779
+ /**
780
+ * 云手机所在的服务器ID,不超过32个字节。
781
+ */
782
+ ServerId?: string;
783
+ /**
784
+ * 云手机镜像ID,不超过32个字节。
785
+ */
786
+ ImageId?: string;
787
+ /**
788
+ * 云手机镜像系统,如"Android armv8"
789
+ */
790
+ OsType?: string;
791
+ /**
792
+ * 云手机状态<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或""
793
+ */
794
+ State?: string;
795
+ /**
796
+ * 城市Id,eg: cn-shanghai, cn-jinan
797
+ */
798
+ CityId?: string;
799
+ /**
800
+ * 城市名称,eg:上海二、济南市
801
+ */
802
+ CityName?: string;
803
+ /**
804
+ * 创建时间,格式为Unix时间戳。
805
+ */
806
+ CreateTime?: number;
807
+ /**
808
+ * 备注
809
+ */
810
+ Remark?: string;
811
+ /**
812
+ * 应用版本实例,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance)
813
+ */
814
+ AppVersion?: {
815
+ /**
816
+ * 应用的唯一标识ID
817
+ */
818
+ AppId: string;
819
+ /**
820
+ * 应用版本的唯一标识ID
821
+ */
822
+ AppVersionId: string;
823
+ /**
824
+ * 应用版本名。
825
+ */
826
+ AppVersionName: string;
827
+ /**
828
+ * 应用包名。
829
+ */
830
+ PackageName: string;
831
+ /**
832
+ * 应用版本相关的Apk文件存放的公网URL地址。
833
+ */
834
+ URL: string;
835
+ /**
836
+ * 创建时间,格式为Unix时间戳。
837
+ */
838
+ CreateTime: number;
839
+ /**
840
+ * 修改时间,格式为Unix时间戳。
841
+ */
842
+ ModifyTime: number;
843
+ /**
844
+ * 应用版本描述。
845
+ */
846
+ Description?: string;
847
+ };
848
+ }[];
849
+ }
850
+ /**
851
+ * DescribeUPhoneImage - 获取云手机镜像信息列表。
852
+ */
853
+ export interface DescribeUPhoneImageRequest {
854
+ /**
855
+ * 希望获取的镜像类型,枚举值,不传则返回全部类型的镜像: <br /> >标准镜像: BASE; <br />>自制镜像: CUSTOM; <br />
856
+ */
857
+ Type?: string;
858
+ /**
859
+ * 【数组】云手机镜像资源 ID,调用方式举例:ImageIds.0=希望获取信息的云手机镜像 1,ImageIds.1=云手机镜像 2。 如果不传入,则返回当前 城市 所有符合条件的云手机镜像。
860
+ */
861
+ ImageIds?: string[];
862
+ /**
863
+ * 列表起始位置偏移量,默认为0
864
+ */
865
+ Offset?: string;
866
+ /**
867
+ * 最大返回镜像数量,默认为20,最大100
868
+ */
869
+ Limit?: string;
870
+ }
871
+ /**
872
+ * DescribeUPhoneImage - 获取云手机镜像信息列表。
873
+ */
874
+ export interface DescribeUPhoneImageResponse {
875
+ /**
876
+ * 云手机镜像实例列表,具体参数见 [UPhoneImageInstance](#uphoneimageinstance)
877
+ */
878
+ Images: {
879
+ /**
880
+ * 云手机镜像资源Id
881
+ */
882
+ ImageId: string;
883
+ /**
884
+ * 云手机镜像名称
885
+ */
886
+ ImageName: string;
887
+ /**
888
+ * 云手机镜像系统
889
+ */
890
+ OsType: string;
891
+ /**
892
+ * 云手机镜像类型,枚举值:<br />> 用户自制镜像: CUSTOM; <br />> 标准镜像: BASE;;
893
+ */
894
+ ImageType: string;
895
+ /**
896
+ * 创建时间,格式为Unix时间戳。
897
+ */
898
+ CreateTime: number;
899
+ /**
900
+ * 修改时间,格式为Unix时间戳。
901
+ */
902
+ ModifyTime: number;
903
+ /**
904
+ * 云手机镜像状态<br />* 制作中: 制作中; <br />* 可用的: CREATING; <br />* 制作失败: CREATE_FAILED; <br />* 上传中: UPLOADING <br />* 上传失败: UPLOAD_FAILED; <br />* 未知状态:UNDEFINED或""
905
+ */
906
+ ImageState: string;
907
+ /**
908
+ * 云手机镜像描述信息
909
+ */
910
+ Description?: string;
911
+ /**
912
+ * 云手机镜像创建时所属云手机资源 Id
913
+ */
914
+ UPhoneId?: string;
915
+ /**
916
+ * 云手机镜像所安装的应用版本列表,具体参数见 [AppVersionInstance](#appversioninstance)
917
+ */
918
+ AppVersions?: {
919
+ /**
920
+ * 应用的唯一标识ID
921
+ */
922
+ AppId: string;
923
+ /**
924
+ * 应用版本的唯一标识ID
925
+ */
926
+ AppVersionId: string;
927
+ /**
928
+ * 应用版本名。
929
+ */
930
+ AppVersionName: string;
931
+ /**
932
+ * 应用包名。
933
+ */
934
+ PackageName: string;
935
+ /**
936
+ * 应用版本相关的Apk文件存放的公网URL地址。
937
+ */
938
+ URL: string;
939
+ /**
940
+ * 创建时间,格式为Unix时间戳。
941
+ */
942
+ CreateTime: number;
943
+ /**
944
+ * 修改时间,格式为Unix时间戳。
945
+ */
946
+ ModifyTime: number;
947
+ /**
948
+ * 应用版本描述。
949
+ */
950
+ Description?: string;
951
+ }[];
952
+ }[];
953
+ /**
954
+ * UPhoneImageInstance总数
955
+ */
956
+ TotalCount?: number;
957
+ }
958
+ /**
959
+ * DescribeUPhoneIpRegions - 获取云手机支持绑定独立IP的城市列表
960
+ */
961
+ export interface DescribeUPhoneIpRegionsRequest {
962
+ /**
963
+ * 城市Id,eg: cn-shanghai, cn-hangzhou
964
+ */
965
+ CityId: string;
966
+ }
967
+ /**
968
+ * DescribeUPhoneIpRegions - 获取云手机支持绑定独立IP的城市列表
969
+ */
970
+ export interface DescribeUPhoneIpRegionsResponse {
971
+ /**
972
+ * 独立IP地域信息。
973
+ */
974
+ Regions: {
975
+ /**
976
+ * 已开通地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
977
+ */
978
+ Id: string;
979
+ /**
980
+ * 库存状态。枚举值:有库存:Available;无库存:SoldOut
981
+ */
982
+ StockStatus: string;
983
+ }[];
984
+ /**
985
+ * 总数量
986
+ */
987
+ TotalCount?: number;
988
+ }
989
+ /**
990
+ * DescribeUPhoneJob - 查询Job的执行状态。
991
+ */
992
+ export interface DescribeUPhoneJobRequest {
993
+ /**
994
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
995
+ */
996
+ CityId: string;
997
+ /**
998
+ * 【数组】Job 的唯一标识 Id,调用方式举例:ServerIds.0=希望查询状态的 Job1,ServerIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。
999
+ */
1000
+ JobIds?: string[];
1001
+ /**
1002
+ * 列表起始位置偏移量,默认为0
1003
+ */
1004
+ Offset?: number;
1005
+ /**
1006
+ * 返回数据长度,默认为20,最大100
1007
+ */
1008
+ Limit?: number;
1009
+ /**
1010
+ * Job状态,枚举值:* 等待状态: PENDING;* 运行状态: RUNNING;* 成功状态: SUCCESS* 失败状态: FAILED* 部分成功状态:PARTIAL_SUCCESS
1011
+ */
1012
+ State?: string;
1013
+ /**
1014
+ * 【数组】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
+ */
1016
+ Types?: string[];
1017
+ }
1018
+ /**
1019
+ * DescribeUPhoneJob - 查询Job的执行状态。
1020
+ */
1021
+ export interface DescribeUPhoneJobResponse {
1022
+ /**
1023
+ * Job信息,详情见数据结构Job(如果Status为等待中,此字段为空)
1024
+ */
1025
+ Jobs?: {
1026
+ /**
1027
+ * Job的唯一标识Id
1028
+ */
1029
+ JobId?: string;
1030
+ /**
1031
+ * Job创建时间,格式为Unix时间戳。
1032
+ */
1033
+ CreateTime?: number;
1034
+ /**
1035
+ * Job处理开始时间,格式为Unix时间戳。
1036
+ */
1037
+ BeginTime?: number;
1038
+ /**
1039
+ * Job处理结束时间,格式为Unix时间戳。
1040
+ */
1041
+ EndTime?: number;
1042
+ /**
1043
+ * 任务状态* 等待中:PENDING* 运行中:RUNNING* 成功:SUCCESS* 部分成功:PARTIAL_SUCCESS* 失败:FAILED
1044
+ */
1045
+ State?: string;
1046
+ /**
1047
+ * Job类型,仅支持INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND。
1048
+ */
1049
+ JobType?: string;
1050
+ /**
1051
+ * Task信息,详情见数据结构Task(如果State为PENDING,此字段为空)
1052
+ */
1053
+ Tasks?: {
1054
+ /**
1055
+ * Task的唯一标识
1056
+ */
1057
+ TaskId: string;
1058
+ /**
1059
+ * 任务处理开始时间,格式为Unix时间戳。
1060
+ */
1061
+ BeginTime: number;
1062
+ /**
1063
+ * 任务处理结束时间,格式为Unix时间戳。
1064
+ */
1065
+ EndTime: number;
1066
+ /**
1067
+ * 任务状态* 等待中:PENDING* 运行中:RUNNING* 成功:SUCCESS* 失败:FAILED
1068
+ */
1069
+ State: string;
1070
+ /**
1071
+ * Task错误信息
1072
+ */
1073
+ ErrorMsg: string;
1074
+ /**
1075
+ * 异步任务执行结果
1076
+ */
1077
+ ExecuteMsg?: string;
1078
+ /**
1079
+ * 云手机的唯一标识,云手机相关任务包含此字段。
1080
+ */
1081
+ UPhoneId?: string;
1082
+ /**
1083
+ * 安装/卸载任务相关的应用版本唯一标识ID
1084
+ */
1085
+ AppVersionId?: string;
1086
+ }[];
1087
+ /**
1088
+ * 安装/卸载Job相关的应用版本唯一标识
1089
+ */
1090
+ AppVersionId?: string;
1091
+ /**
1092
+ * 此Job相关的云手机唯一标识
1093
+ */
1094
+ UPhoneIds?: string[];
1095
+ }[];
1096
+ /**
1097
+ * Job总数
1098
+ */
1099
+ TotalCount?: number;
1100
+ }
1101
+ /**
1102
+ * DescribeUPhoneModel -
1103
+ */
1104
+ export interface DescribeUPhoneModelRequest {
1105
+ /**
1106
+ * 【数组】要获得信息的 UPhoneModel 名称。调用方式举例:UPhoneModelNames.0=希望获取信息的 UPhoneModel1,UPhoneModelNames.1=UPhoneModel2。 如果不传入,则返回当前 城市 所有符合条件的 UPhoneModel。
1107
+ */
1108
+ UPhoneModelNames?: string[];
1109
+ /**
1110
+ * 列表起始位置偏移量,默认为0
1111
+ */
1112
+ Offset?: number;
1113
+ /**
1114
+ * 返回数据长度,默认为20,最大100
1115
+ */
1116
+ Limit?: number;
1117
+ }
1118
+ /**
1119
+ * DescribeUPhoneModel -
1120
+ */
1121
+ export interface DescribeUPhoneModelResponse {
1122
+ /**
1123
+ * UPhoneModelInstance总数
1124
+ */
1125
+ TotalCount: number;
1126
+ /**
1127
+ * UPhoneModel实例列表,具体参数可见 UPhoneModelInstance
1128
+ */
1129
+ UPhoneModels: {
1130
+ /**
1131
+ * UPhoneModel名称
1132
+ */
1133
+ UPhoneModelName: string;
1134
+ /**
1135
+ * 虚拟CPU核数。
1136
+ */
1137
+ CPU: number;
1138
+ /**
1139
+ * 内存大小。单位MB
1140
+ */
1141
+ Memory: number;
1142
+ /**
1143
+ * 磁盘大小,单位: GB
1144
+ */
1145
+ DiskSize: number;
1146
+ /**
1147
+ * 分辨率
1148
+ */
1149
+ Resolution: string;
1150
+ /**
1151
+ * 刷新率
1152
+ */
1153
+ Refresh: number;
1154
+ }[];
1155
+ }
1156
+ /**
1157
+ * DescribeUPhoneServer - 获取云手机服务器列表信息。
1158
+ */
1159
+ export interface DescribeUPhoneServerRequest {
1160
+ /**
1161
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1162
+ */
1163
+ CityId: string;
1164
+ /**
1165
+ * 【数组】云手机服务器的资源 ID,调用方式举例:ServerIds.0=希望获取信息的服务器 1,ServerIds.1=服务器 2。 如果不传入,则返回当前 城市 所有符合条件的云手机服务器。
1166
+ */
1167
+ ServerIds?: string[];
1168
+ /**
1169
+ * 列表起始位置偏移量,默认为0
1170
+ */
1171
+ Offset?: number;
1172
+ /**
1173
+ * 返回数据长度,默认为20,最大100
1174
+ */
1175
+ Limit?: number;
1176
+ }
1177
+ /**
1178
+ * DescribeUPhoneServer - 获取云手机服务器列表信息。
1179
+ */
1180
+ export interface DescribeUPhoneServerResponse {
1181
+ /**
1182
+ * ServerInstance总数
1183
+ */
1184
+ TotalCount: number;
1185
+ /**
1186
+ * 云手机服务器列表,每项参数可见数据模型 [ServerInstance](#ServerInstance)
1187
+ */
1188
+ Servers: {
1189
+ /**
1190
+ * 云手机服务器的唯一标识。
1191
+ */
1192
+ ServerId: string;
1193
+ /**
1194
+ * 云手机服务器名称。
1195
+ */
1196
+ ServerName: string;
1197
+ /**
1198
+ * 云服务器规格。
1199
+ */
1200
+ ServerModel: {
1201
+ /**
1202
+ * ServerModel名称
1203
+ */
1204
+ ServerModelName?: string;
1205
+ /**
1206
+ * 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。
1207
+ */
1208
+ CPU?: number;
1209
+ /**
1210
+ * 内存大小。单位:MB。
1211
+ */
1212
+ Memory?: number;
1213
+ /**
1214
+ * 磁盘信息见 UPhoneDiskSet
1215
+ */
1216
+ DiskSet?: {
1217
+ /**
1218
+ * 磁盘类型。请参考磁盘类型。
1219
+ */
1220
+ DiskType: string;
1221
+ /**
1222
+ * 是否是系统盘。枚举值:> True,是系统盘> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
1223
+ */
1224
+ IsBoot: boolean;
1225
+ /**
1226
+ * 磁盘大小,单位: GB
1227
+ */
1228
+ Size: number;
1229
+ }[];
1230
+ /**
1231
+ * GPU类型
1232
+ */
1233
+ GPUType?: string;
1234
+ /**
1235
+ * GPU个数
1236
+ */
1237
+ GPU?: number;
1238
+ /**
1239
+ * 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec)
1240
+ */
1241
+ UPhoneSpecs?: {
1242
+ /**
1243
+ * 手机规格名
1244
+ */
1245
+ UPhoneModelName?: string;
1246
+ /**
1247
+ * 手机开数,即该服务器规格能生成对应手机规格的云手机个数
1248
+ */
1249
+ UPhoneCount?: number;
1250
+ }[];
1251
+ /**
1252
+ * 表示该机型是否上线,用于前端判断是否开放给用户。枚举值:>AVAILABLE,开放>UNAVAILABLE, 不开放
1253
+ */
1254
+ ServerModelState?: string;
1255
+ };
1256
+ /**
1257
+ * 云手机规格名称。
1258
+ */
1259
+ UPhoneModelName: string;
1260
+ /**
1261
+ * 创建时间,格式为Unix时间戳。
1262
+ */
1263
+ CreateTime: number;
1264
+ /**
1265
+ * 修改时间,格式为Unix时间戳。
1266
+ */
1267
+ ModifyTime: number;
1268
+ /**
1269
+ * 到期时间,格式为Unix时间戳。
1270
+ */
1271
+ ExpireTime: number;
1272
+ /**
1273
+ * 计费模式。枚举值为:<br /> *Year,按年付费;<br />* Month,按月付费;<br />默认为月付
1274
+ */
1275
+ ChargeType: string;
1276
+ /**
1277
+ * 城市Id,eg: cn-shanghai, cn-jinan
1278
+ */
1279
+ CityId: string;
1280
+ /**
1281
+ * 城市名称,eg:上海二、济南市
1282
+ */
1283
+ CityName: string;
1284
+ /**
1285
+ * 云服务器备注。
1286
+ */
1287
+ Remark?: string;
1288
+ /**
1289
+ * 云手机开数。
1290
+ */
1291
+ UPhoneCount?: number;
1292
+ /**
1293
+ * 实例状态,枚举值: * 初始化: Initializing; * 云手机创建中: UPhoneCreating;* 运行中: Running; * 删除中: Deleting; * 创建失败: CreateFailed * 未知(空字符串,获取状态超时或出错):""
1294
+ */
1295
+ State?: string;
1296
+ /**
1297
+ * 服务器IP信息
1298
+ */
1299
+ IpSet?: {
1300
+ /**
1301
+ * IP地址
1302
+ */
1303
+ Ip?: string;
1304
+ /**
1305
+ * ipv4或者ipv6
1306
+ */
1307
+ IpMode?: string;
1308
+ /**
1309
+ * 共有或私有
1310
+ */
1311
+ IpType?: string;
1312
+ /**
1313
+ * 运营商
1314
+ */
1315
+ Isp?: string;
1316
+ }[];
1317
+ }[];
1318
+ }
1319
+ /**
1320
+ * DescribeUPhoneServerModel - 获取ServerModel列表。
1321
+ */
1322
+ export interface DescribeUPhoneServerModelRequest {
1323
+ /**
1324
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1325
+ */
1326
+ CityId: string;
1327
+ /**
1328
+ * 【数组】要获得信息的 ServerModel 名称。调用方式举例:ServerModelNames.0=希望获取信息的 ServerModel1,ServerModelNames.1=ServerModel2。 如果不传入,则返回当前 城市 所有符合条件的 ServerModel。
1329
+ */
1330
+ ServerModelNames?: string[];
1331
+ /**
1332
+ * 列表起始位置偏移量,默认为0
1333
+ */
1334
+ Offset?: number;
1335
+ /**
1336
+ * 返回数据长度,默认为20,最大100
1337
+ */
1338
+ Limit?: number;
1339
+ }
1340
+ /**
1341
+ * DescribeUPhoneServerModel - 获取ServerModel列表。
1342
+ */
1343
+ export interface DescribeUPhoneServerModelResponse {
1344
+ /**
1345
+ * ServerModelInstance总数
1346
+ */
1347
+ TotalCount: number;
1348
+ /**
1349
+ * ServerModel实例列表,每项参数可见数据模型 ServerModelInstance
1350
+ */
1351
+ ServerModels: {
1352
+ /**
1353
+ * ServerModel名称
1354
+ */
1355
+ ServerModelName?: string;
1356
+ /**
1357
+ * 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。
1358
+ */
1359
+ CPU?: number;
1360
+ /**
1361
+ * 内存大小。单位:MB。
1362
+ */
1363
+ Memory?: number;
1364
+ /**
1365
+ * 磁盘信息见 UPhoneDiskSet
1366
+ */
1367
+ DiskSet?: {
1368
+ /**
1369
+ * 磁盘类型。请参考磁盘类型。
1370
+ */
1371
+ DiskType: string;
1372
+ /**
1373
+ * 是否是系统盘。枚举值:> True,是系统盘> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
1374
+ */
1375
+ IsBoot: boolean;
1376
+ /**
1377
+ * 磁盘大小,单位: GB
1378
+ */
1379
+ Size: number;
1380
+ }[];
1381
+ /**
1382
+ * GPU类型
1383
+ */
1384
+ GPUType?: string;
1385
+ /**
1386
+ * GPU个数
1387
+ */
1388
+ GPU?: number;
1389
+ /**
1390
+ * 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec)
1391
+ */
1392
+ UPhoneSpecs?: {
1393
+ /**
1394
+ * 手机规格名
1395
+ */
1396
+ UPhoneModelName?: string;
1397
+ /**
1398
+ * 手机开数,即该服务器规格能生成对应手机规格的云手机个数
1399
+ */
1400
+ UPhoneCount?: number;
1401
+ }[];
1402
+ /**
1403
+ * 表示该机型是否上线,用于前端判断是否开放给用户。枚举值:>AVAILABLE,开放>UNAVAILABLE, 不开放
1404
+ */
1405
+ ServerModelState?: string;
1406
+ }[];
1407
+ }
1408
+ /**
1409
+ * GetUPhoneScreenCapture - 云手机截屏
1410
+ */
1411
+ export interface GetUPhoneScreenCaptureRequest {
1412
+ /**
1413
+ * 云手机ID
1414
+ */
1415
+ UPhoneID: string;
1416
+ /**
1417
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1418
+ */
1419
+ CityId: string;
1420
+ }
1421
+ /**
1422
+ * GetUPhoneScreenCapture - 云手机截屏
1423
+ */
1424
+ export interface GetUPhoneScreenCaptureResponse {
1425
+ /**
1426
+ * 云手机截图URL
1427
+ */
1428
+ URL: string;
1429
+ }
1430
+ /**
1431
+ * GetUPhoneServerPrice - 根据服务器规格名称,获取UPhoneServer实例的价格。
1432
+ */
1433
+ export interface GetUPhoneServerPriceRequest {
1434
+ /**
1435
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1436
+ */
1437
+ CityId: string;
1438
+ /**
1439
+ * 服务器规格名称
1440
+ */
1441
+ ServerModelName: string;
1442
+ /**
1443
+ * 计费模式。枚举值为:> Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。
1444
+ */
1445
+ ChargeType?: string;
1446
+ /**
1447
+ * 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。
1448
+ */
1449
+ Quantity?: number;
1450
+ /**
1451
+ * 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1452
+ */
1453
+ IpDestRegion?: string;
1454
+ /**
1455
+ * 购买独立IP需要此参数。共享带宽总值。
1456
+ */
1457
+ Bandwidth?: number;
1458
+ /**
1459
+ * 购买独立IP需要此参数。需要的eip数量。
1460
+ */
1461
+ IpCount?: number;
1462
+ }
1463
+ /**
1464
+ * GetUPhoneServerPrice - 根据服务器规格名称,获取UPhoneServer实例的价格。
1465
+ */
1466
+ export interface GetUPhoneServerPriceResponse {
1467
+ /**
1468
+ * 价格列表,每项参数见UPhoneServerPriceSet
1469
+ */
1470
+ PriceSet: {
1471
+ /**
1472
+ * 计费类型,枚举值:Year,Month
1473
+ */
1474
+ ChargeType: string;
1475
+ /**
1476
+ * 价格,单位: 元,保留小数点后两位有效数字
1477
+ */
1478
+ Price: number;
1479
+ /**
1480
+ * 限时优惠的折前原价(即列表价乘以商务折扣后的单价)
1481
+ */
1482
+ OriginalPrice: number;
1483
+ /**
1484
+ * 产品列表价
1485
+ */
1486
+ ListPrice?: number;
1487
+ }[];
1488
+ }
1489
+ /**
1490
+ * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格
1491
+
1492
+ 提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
1493
+ */
1494
+ export interface GetUPhoneServerRenewPriceRequest {
1495
+ /**
1496
+ * 云手机服务器的唯一标识,可通过[查询云手机服务器列表]()获取。
1497
+ */
1498
+ ServerId: string;
1499
+ /**
1500
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1501
+ */
1502
+ CityId: string;
1503
+ /**
1504
+ * 计费模式。枚举值为:> Year,按年付费;> Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格
1505
+ */
1506
+ ChargeType?: string;
1507
+ }
1508
+ /**
1509
+ * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格
1510
+
1511
+ 提示信息: 须按照控制台服务器模型配置创建服务器。详情请参考控制台。
1512
+ */
1513
+ export interface GetUPhoneServerRenewPriceResponse {
1514
+ /**
1515
+ * 价格列表,具体参数见UPhoneServerPriceSet
1516
+ */
1517
+ PriceSet: {
1518
+ /**
1519
+ * 计费类型,枚举值:Year,Month
1520
+ */
1521
+ ChargeType: string;
1522
+ /**
1523
+ * 价格,单位: 元,保留小数点后两位有效数字
1524
+ */
1525
+ Price: number;
1526
+ /**
1527
+ * 限时优惠的折前原价(即列表价乘以商务折扣后的单价)
1528
+ */
1529
+ OriginalPrice: number;
1530
+ /**
1531
+ * 产品列表价
1532
+ */
1533
+ ListPrice?: number;
1534
+ }[];
1535
+ }
1536
+ /**
1537
+ * InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
1538
+ */
1539
+ export interface InstallUPhoneAppVersionRequest {
1540
+ /**
1541
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1542
+ */
1543
+ CityId: string;
1544
+ /**
1545
+ * 应用版本的唯一标识ID
1546
+ */
1547
+ AppVersionId: string;
1548
+ /**
1549
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望安装应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1550
+ */
1551
+ UPhoneIds: string[];
1552
+ }
1553
+ /**
1554
+ * InstallUPhoneAppVersion - 在云手机中安装应用版本相关的Apk文件。系统会根据AppVersionId将对应的Apk文件下载后安装到云手机中。一次只支持安装一个Apk。
1555
+ */
1556
+ export interface InstallUPhoneAppVersionResponse {
1557
+ /**
1558
+ * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
1559
+ */
1560
+ JobId: string;
1561
+ }
1562
+ /**
1563
+ * ModifyUPhoneName - 修改指定云手机实例名称。
1564
+ */
1565
+ export interface ModifyUPhoneNameRequest {
1566
+ /**
1567
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1568
+ */
1569
+ CityId: string;
1570
+ /**
1571
+ * 云手机实例的资源ID
1572
+ */
1573
+ UPhoneId: string;
1574
+ /**
1575
+ * 云手机实例名称
1576
+ */
1577
+ Name: string;
1578
+ }
1579
+ /**
1580
+ * ModifyUPhoneName - 修改指定云手机实例名称。
1581
+ */
1582
+ export interface ModifyUPhoneNameResponse {
1583
+ /**
1584
+ * 云手机实例的资源ID
1585
+ */
1586
+ UPhoneId: string;
1587
+ }
1588
+ /**
1589
+ * ModifyUPhoneRemark - 修改指定云手机实例备注信息。
1590
+ */
1591
+ export interface ModifyUPhoneRemarkRequest {
1592
+ /**
1593
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1594
+ */
1595
+ CityId: string;
1596
+ /**
1597
+ * 云手机实例的资源ID
1598
+ */
1599
+ UPhoneId: string;
1600
+ /**
1601
+ * 备注
1602
+ */
1603
+ Remark?: string;
1604
+ }
1605
+ /**
1606
+ * ModifyUPhoneRemark - 修改指定云手机实例备注信息。
1607
+ */
1608
+ export interface ModifyUPhoneRemarkResponse {
1609
+ /**
1610
+ * 云手机实例的资源ID
1611
+ */
1612
+ UPhoneId: string;
1613
+ }
1614
+ /**
1615
+ * ModifyUPhoneServerName - 修改指定云手机服务器实例名称。
1616
+ */
1617
+ export interface ModifyUPhoneServerNameRequest {
1618
+ /**
1619
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1620
+ */
1621
+ CityId: string;
1622
+ /**
1623
+ * 云手机服务器的唯一标识
1624
+ */
1625
+ ServerId: string;
1626
+ /**
1627
+ * 云手机服务器实例名称
1628
+ */
1629
+ Name?: string;
1630
+ }
1631
+ /**
1632
+ * ModifyUPhoneServerName - 修改指定云手机服务器实例名称。
1633
+ */
1634
+ export interface ModifyUPhoneServerNameResponse {
1635
+ /**
1636
+ * 云手机服务器的唯一标识
1637
+ */
1638
+ ServerId: string;
1639
+ }
1640
+ /**
1641
+ * ModifyUPhoneServerRemark - 修改指定云手机实例备注信息。
1642
+ */
1643
+ export interface ModifyUPhoneServerRemarkRequest {
1644
+ /**
1645
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1646
+ */
1647
+ CityId: string;
1648
+ /**
1649
+ * 云手机服务器的唯一标识
1650
+ */
1651
+ ServerId: string;
1652
+ /**
1653
+ * 备注
1654
+ */
1655
+ Remark?: string;
1656
+ }
1657
+ /**
1658
+ * ModifyUPhoneServerRemark - 修改指定云手机实例备注信息。
1659
+ */
1660
+ export interface ModifyUPhoneServerRemarkResponse {
1661
+ /**
1662
+ * 云手机服务器的唯一标识
1663
+ */
1664
+ ServerId: string;
1665
+ }
1666
+ /**
1667
+ * PoweroffUPhone - 关闭处于运行状态的云手机实例
1668
+ */
1669
+ export interface PoweroffUPhoneRequest {
1670
+ /**
1671
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望关闭的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1672
+ */
1673
+ UPhoneIds: string[];
1674
+ /**
1675
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1676
+ */
1677
+ CityId: string;
1678
+ }
1679
+ /**
1680
+ * PoweroffUPhone - 关闭处于运行状态的云手机实例
1681
+ */
1682
+ export interface PoweroffUPhoneResponse {
1683
+ }
1684
+ /**
1685
+ * PoweronUPhone - 启动处于关闭状态的云手机实例
1686
+ */
1687
+ export interface PoweronUPhoneRequest {
1688
+ /**
1689
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1690
+ */
1691
+ CityId: string;
1692
+ /**
1693
+ * 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。
1694
+ */
1695
+ UPhoneIds: string[];
1696
+ }
1697
+ /**
1698
+ * PoweronUPhone - 启动处于关闭状态的云手机实例
1699
+ */
1700
+ export interface PoweronUPhoneResponse {
1701
+ }
1702
+ /**
1703
+ * RebootUPhone - 重新启动云手机实例
1704
+ */
1705
+ export interface RebootUPhoneRequest {
1706
+ /**
1707
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1708
+ */
1709
+ UPhoneIds: string[];
1710
+ /**
1711
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1712
+ */
1713
+ CityId: string;
1714
+ }
1715
+ /**
1716
+ * RebootUPhone - 重新启动云手机实例
1717
+ */
1718
+ export interface RebootUPhoneResponse {
1719
+ }
1720
+ /**
1721
+ * ResetUPhone - 将云手机恢复为创建时的状态。
1722
+ */
1723
+ export interface ResetUPhoneRequest {
1724
+ /**
1725
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1726
+ */
1727
+ CityId: string;
1728
+ /**
1729
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1730
+ */
1731
+ UPhoneIds: string[];
1732
+ }
1733
+ /**
1734
+ * ResetUPhone - 将云手机恢复为创建时的状态。
1735
+ */
1736
+ export interface ResetUPhoneResponse {
1737
+ }
1738
+ /**
1739
+ * RunAsyncCommand - 在云手机中执行异步shell命令。
1740
+ */
1741
+ export interface RunAsyncCommandRequest {
1742
+ /**
1743
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1744
+ */
1745
+ CityId: string;
1746
+ /**
1747
+ * 待执行的命令。
1748
+ */
1749
+ Content: string;
1750
+ /**
1751
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1752
+ */
1753
+ UPhoneIds: string[];
1754
+ }
1755
+ /**
1756
+ * RunAsyncCommand - 在云手机中执行异步shell命令。
1757
+ */
1758
+ export interface RunAsyncCommandResponse {
1759
+ /**
1760
+ * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
1761
+ */
1762
+ JobId: string;
1763
+ }
1764
+ /**
1765
+ * RunSyncCommand - 在云手机中执行同步shell命令。
1766
+ */
1767
+ export interface RunSyncCommandRequest {
1768
+ /**
1769
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1770
+ */
1771
+ CityId: string;
1772
+ /**
1773
+ * 待执行的命令。
1774
+ */
1775
+ Content: string;
1776
+ /**
1777
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1778
+ */
1779
+ UPhoneIds: string[];
1780
+ }
1781
+ /**
1782
+ * RunSyncCommand - 在云手机中执行同步shell命令。
1783
+ */
1784
+ export interface RunSyncCommandResponse {
1785
+ /**
1786
+ * 云主机实例列表,每项参数可见数据模型 [UPhoneCommandResult](#UPhoneCommandResult)
1787
+ */
1788
+ Results: {
1789
+ /**
1790
+ * 云手机实例的资源ID。
1791
+ */
1792
+ UPhoneId?: string;
1793
+ /**
1794
+ * 同步shell命令的执行结果。
1795
+ */
1796
+ ExecuteMsg?: string;
1797
+ }[];
1798
+ }
1799
+ /**
1800
+ * SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
1801
+ */
1802
+ export interface SetUPhoneConfigRequest {
1803
+ /**
1804
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1805
+ */
1806
+ CityId: string;
1807
+ /**
1808
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1809
+ */
1810
+ UPhoneIds: string[];
1811
+ /**
1812
+ * 云手机画面分辨率(宽x高) (例,1920x1080,中间是字母x)宽和高的取值范围[100,5000]
1813
+ */
1814
+ Resolution?: string;
1815
+ /**
1816
+ * 云手机画面刷新率,即帧率(例,30)取值范围[1,200]
1817
+ */
1818
+ Refresh?: string;
1819
+ /**
1820
+ * 云手机画面传输码率(例,8000)取值范围[100,5000]
1821
+ */
1822
+ Bitrate?: string;
1823
+ /**
1824
+ * 异步请求开关,只有为1的时候才是异步,不填或者其他数值为同步
1825
+ */
1826
+ Async?: string;
1827
+ /**
1828
+ * 云手机dpi,取值范围[100,1000]
1829
+ */
1830
+ Dpi?: string;
1831
+ }
1832
+ /**
1833
+ * SetUPhoneConfig - 设置云手机画面参数(分辨率、DPI、帧率、码率)
1834
+ */
1835
+ export interface SetUPhoneConfigResponse {
1836
+ /**
1837
+ * request_uuid,唯一值,用于区分request
1838
+ */
1839
+ RequestId: string;
1840
+ /**
1841
+ * 异步请求成功后返回JobId,用以查询Job状态
1842
+ */
1843
+ JobId?: string;
1844
+ /**
1845
+ * 同步请求会返回命令行结果,异步请求该参数为空
1846
+ */
1847
+ Results?: {
1848
+ /**
1849
+ *
1850
+ */
1851
+ ExecuteMsg?: string;
1852
+ /**
1853
+ *
1854
+ */
1855
+ UPhoneId?: string;
1856
+ }[];
1857
+ }
1858
+ /**
1859
+ * SetUPhoneGPS - 设置云手机GPS信息
1860
+ */
1861
+ export interface SetUPhoneGPSRequest {
1862
+ /**
1863
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1864
+ */
1865
+ CityId: string;
1866
+ /**
1867
+ *
1868
+ */
1869
+ UPhoneGPSs?: {
1870
+ /**
1871
+ * 云手机ID
1872
+ */
1873
+ UPhoneId?: string;
1874
+ /**
1875
+ * 经度:-180~180
1876
+ */
1877
+ Longitude?: number;
1878
+ /**
1879
+ * 纬度:-90~90
1880
+ */
1881
+ Latitude?: number;
1882
+ /**
1883
+ * 海拔
1884
+ */
1885
+ Altitude?: number;
1886
+ }[];
1887
+ }
1888
+ /**
1889
+ * SetUPhoneGPS - 设置云手机GPS信息
1890
+ */
1891
+ export interface SetUPhoneGPSResponse {
1892
+ /**
1893
+ * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
1894
+ */
1895
+ JobId?: string;
1896
+ }
1897
+ /**
1898
+ * SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面
1899
+ */
1900
+ export interface SetUPhoneManagerModeRequest {
1901
+ /**
1902
+ * 云手机实例的资源ID
1903
+ */
1904
+ UPhoneId: string;
1905
+ /**
1906
+ * 管理模式:管理员admin,普通用户user
1907
+ */
1908
+ Mode: string;
1909
+ /**
1910
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1911
+ */
1912
+ CityId: string;
1913
+ }
1914
+ /**
1915
+ * SetUPhoneManagerMode - 管理员模式支持所有按键,普通用户模式禁用返回桌面
1916
+ */
1917
+ export interface SetUPhoneManagerModeResponse {
1918
+ }
1919
+ /**
1920
+ * SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
1921
+ */
1922
+ export interface SetUPhoneSplashScreenRequest {
1923
+ /**
1924
+ * 启动画面下载地址
1925
+ */
1926
+ URL: string;
1927
+ /**
1928
+ * 云手机ID
1929
+ */
1930
+ UPhoneId: string;
1931
+ /**
1932
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1933
+ */
1934
+ CityId: string;
1935
+ }
1936
+ /**
1937
+ * SetUPhoneSplashScreen - 设置云手机启动画面,通过DescribeUPhone接口可以查询该地址
1938
+ */
1939
+ export interface SetUPhoneSplashScreenResponse {
1940
+ }
1941
+ /**
1942
+ * SetUPhoneToken - 设置云手机RTC连接Token提高安全性
1943
+ */
1944
+ export interface SetUPhoneTokenRequest {
1945
+ /**
1946
+ * 云手机ID
1947
+ */
1948
+ UPhoneId: string;
1949
+ /**
1950
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1951
+ */
1952
+ CityId: string;
1953
+ /**
1954
+ * RTC连接Token,为空表示清空Token
1955
+ */
1956
+ Token?: string;
1957
+ }
1958
+ /**
1959
+ * SetUPhoneToken - 设置云手机RTC连接Token提高安全性
1960
+ */
1961
+ export interface SetUPhoneTokenResponse {
1962
+ }
1963
+ /**
1964
+ * UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
1965
+ */
1966
+ export interface UnInstallUPhoneAppVersionRequest {
1967
+ /**
1968
+ * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
1969
+ */
1970
+ CityId: string;
1971
+ /**
1972
+ * 应用版本的唯一标识ID
1973
+ */
1974
+ AppVersionId: string;
1975
+ /**
1976
+ * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望卸载应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
1977
+ */
1978
+ UPhoneIds: string[];
1979
+ }
1980
+ /**
1981
+ * UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
1982
+ */
1983
+ export interface UnInstallUPhoneAppVersionResponse {
1984
+ /**
1985
+ * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
1986
+ */
1987
+ JobId: string;
1988
+ }
1989
+ /**
1990
+ * UpdateUPhoneImage - 更新云手机镜像信息。
1991
+ */
1992
+ export interface UpdateUPhoneImageRequest {
1993
+ /**
1994
+ * 云手机自定义镜像资源ID
1995
+ */
1996
+ ImageId: string;
1997
+ /**
1998
+ * 镜像名称。长度为2~128个英文或中文字符。
1999
+ */
2000
+ Name?: string;
2001
+ /**
2002
+ * 镜像的描述信息。长度为2~256个英文或中文字符
2003
+ */
2004
+ Description?: string;
2005
+ }
2006
+ /**
2007
+ * UpdateUPhoneImage - 更新云手机镜像信息。
2008
+ */
2009
+ export interface UpdateUPhoneImageResponse {
2010
+ /**
2011
+ * 云手机自定义镜像资源ID
2012
+ */
2013
+ ImageId: string;
2014
+ }