@ucloud-sdks/ucloud-sdk-js 0.2.1 → 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.
|
@@ -335,7 +335,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
335
335
|
*/
|
|
336
336
|
Type: string;
|
|
337
337
|
/**
|
|
338
|
-
* 磁盘大小,单位GB
|
|
338
|
+
* 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
|
|
339
339
|
*/
|
|
340
340
|
Size: number;
|
|
341
341
|
/**
|
|
@@ -354,6 +354,10 @@ export interface CreateUHostInstanceRequest {
|
|
|
354
354
|
* 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
|
|
355
355
|
*/
|
|
356
356
|
CouponId?: string;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
360
|
+
CustomBackup?: object;
|
|
357
361
|
}[];
|
|
358
362
|
/**
|
|
359
363
|
* 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。
|
|
@@ -400,7 +404,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
400
404
|
*/
|
|
401
405
|
GPU?: number;
|
|
402
406
|
/**
|
|
403
|
-
* 网络增强特性。枚举值:Normal
|
|
407
|
+
* 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档)
|
|
404
408
|
*/
|
|
405
409
|
NetCapability?: string;
|
|
406
410
|
/**
|
|
@@ -494,7 +498,7 @@ export interface CreateUHostInstanceRequest {
|
|
|
494
498
|
*/
|
|
495
499
|
Volumes?: object[];
|
|
496
500
|
/**
|
|
497
|
-
* KeypairId 密钥对ID,LoginMode为KeyPair
|
|
501
|
+
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须。
|
|
498
502
|
*/
|
|
499
503
|
KeyPairId?: string;
|
|
500
504
|
/**
|
|
@@ -506,6 +510,10 @@ export interface CreateUHostInstanceRequest {
|
|
|
506
510
|
*/
|
|
507
511
|
UNI?: boolean;
|
|
508
512
|
};
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
*/
|
|
516
|
+
SecGroupId?: object[];
|
|
509
517
|
/**
|
|
510
518
|
* 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
|
|
511
519
|
*/
|
|
@@ -222,6 +222,12 @@ export default class UPhoneClient extends Client {
|
|
|
222
222
|
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_splash_screen
|
|
223
223
|
*/
|
|
224
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>;
|
|
225
231
|
/**
|
|
226
232
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
227
233
|
*
|
|
@@ -328,19 +334,19 @@ export interface CreateUPhoneServerRequest {
|
|
|
328
334
|
*/
|
|
329
335
|
Name: string;
|
|
330
336
|
/**
|
|
331
|
-
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表]()查询支持的云手机服务器规格。
|
|
337
|
+
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。
|
|
332
338
|
*/
|
|
333
339
|
ServerModelName: string;
|
|
334
340
|
/**
|
|
335
|
-
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
|
|
341
|
+
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。
|
|
336
342
|
*/
|
|
337
343
|
UPhoneModelName: string;
|
|
338
344
|
/**
|
|
339
|
-
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
|
|
345
|
+
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。
|
|
340
346
|
*/
|
|
341
347
|
ImageId: string;
|
|
342
348
|
/**
|
|
343
|
-
* 城市Id,通过[获取城市列表](
|
|
349
|
+
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
|
|
344
350
|
*/
|
|
345
351
|
CityId: string;
|
|
346
352
|
/**
|
|
@@ -1932,6 +1938,28 @@ export interface SetUPhoneSplashScreenRequest {
|
|
|
1932
1938
|
*/
|
|
1933
1939
|
export interface SetUPhoneSplashScreenResponse {
|
|
1934
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
|
+
}
|
|
1935
1963
|
/**
|
|
1936
1964
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
1937
1965
|
*/
|
|
@@ -330,6 +330,15 @@ class UPhoneClient extends client_1.default {
|
|
|
330
330
|
const args = Object.assign({ Action: 'SetUPhoneSplashScreen' }, (request || {}));
|
|
331
331
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
332
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
|
|
335
|
+
*
|
|
336
|
+
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
|
|
337
|
+
*/
|
|
338
|
+
setUPhoneToken(request) {
|
|
339
|
+
const args = Object.assign({ Action: 'SetUPhoneToken' }, (request || {}));
|
|
340
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
341
|
+
}
|
|
333
342
|
/**
|
|
334
343
|
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
|
|
335
344
|
*
|