Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto code generation #9

Merged
merged 1 commit into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions lib/services/uhost/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export interface CreateUHostInstanceRequest {
*/
Type: string;
/**
* 磁盘大小,单位GB,必须是10GB的整数倍。请参考[[api:uhost-api:disk_type|磁盘类型]]。
* 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
*/
Size: number;
/**
Expand All @@ -354,6 +354,10 @@ export interface CreateUHostInstanceRequest {
* 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
*/
CouponId?: string;
/**
*
*/
CustomBackup?: object;
}[];
/**
* 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。
Expand Down Expand Up @@ -400,7 +404,7 @@ export interface CreateUHostInstanceRequest {
*/
GPU?: number;
/**
* 网络增强特性。枚举值:Normal(默认),不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(仅支持部分可用区,请参考控制台
* 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档
*/
NetCapability?: string;
/**
Expand Down Expand Up @@ -494,7 +498,7 @@ export interface CreateUHostInstanceRequest {
*/
Volumes?: object[];
/**
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须
*/
KeyPairId?: string;
/**
Expand All @@ -506,6 +510,10 @@ export interface CreateUHostInstanceRequest {
*/
UNI?: boolean;
};
/**
*
*/
SecGroupId?: object[];
/**
* 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
*/
Expand Down
36 changes: 32 additions & 4 deletions lib/services/uphone/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ export default class UPhoneClient extends Client {
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_splash_screen
*/
setUPhoneSplashScreen(request?: SetUPhoneSplashScreenRequest): Promise<SetUPhoneSplashScreenResponse>;
/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
*/
setUPhoneToken(request?: SetUPhoneTokenRequest): Promise<SetUPhoneTokenResponse>;
/**
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
*
Expand Down Expand Up @@ -328,19 +334,19 @@ export interface CreateUPhoneServerRequest {
*/
Name: string;
/**
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表]()查询支持的云手机服务器规格。
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。
*/
ServerModelName: string;
/**
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。
*/
UPhoneModelName: string;
/**
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。
*/
ImageId: string;
/**
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
*/
CityId: string;
/**
Expand Down Expand Up @@ -1932,6 +1938,28 @@ export interface SetUPhoneSplashScreenRequest {
*/
export interface SetUPhoneSplashScreenResponse {
}
/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*/
export interface SetUPhoneTokenRequest {
/**
* 云手机ID
*/
UPhoneId: string;
/**
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
*/
CityId: string;
/**
* RTC连接Token,为空表示清空Token
*/
Token?: string;
}
/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*/
export interface SetUPhoneTokenResponse {
}
/**
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
*/
Expand Down
9 changes: 9 additions & 0 deletions lib/services/uphone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,15 @@ class UPhoneClient extends client_1.default {
const args = Object.assign({ Action: 'SetUPhoneSplashScreen' }, (request || {}));
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
}
/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
*/
setUPhoneToken(request) {
const args = Object.assign({ Action: 'SetUPhoneToken' }, (request || {}));
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
}
/**
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
*
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ucloud-sdks/ucloud-sdk-js",
"description": "ucloud-sdk-js",
"version": "0.2.1",
"version": "0.2.2",
"author": "[email protected]",
"license": "MIT",
"private": false,
Expand Down
14 changes: 11 additions & 3 deletions src/services/uhost/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export interface CreateUHostInstanceRequest {
*/
Type: string;
/**
* 磁盘大小,单位GB,必须是10GB的整数倍。请参考[[api:uhost-api:disk_type|磁盘类型]]。
* 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
*/
Size: number;
/**
Expand All @@ -651,6 +651,10 @@ export interface CreateUHostInstanceRequest {
* 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
*/
CouponId?: string;
/**
*
*/
CustomBackup?: object;
}[];
/**
* 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。
Expand Down Expand Up @@ -697,7 +701,7 @@ export interface CreateUHostInstanceRequest {
*/
GPU?: number;
/**
* 网络增强特性。枚举值:Normal(默认),不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(仅支持部分可用区,请参考控制台
* 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档
*/
NetCapability?: string;
/**
Expand Down Expand Up @@ -791,7 +795,7 @@ export interface CreateUHostInstanceRequest {
*/
Volumes?: object[];
/**
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须
* KeypairId 密钥对ID,LoginMode为KeyPair时此项必须
*/
KeyPairId?: string;
/**
Expand All @@ -803,6 +807,10 @@ export interface CreateUHostInstanceRequest {
*/
UNI?: boolean;
};
/**
*
*/
SecGroupId?: object[];
/**
* 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
*/
Expand Down
45 changes: 41 additions & 4 deletions src/services/uphone/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,20 @@ export default class UPhoneClient extends Client {
);
}

/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*
* See also: https://docs.ucloud.cn/api/uphone-api/set_u_phone_token
*/
setUPhoneToken(
request?: SetUPhoneTokenRequest
): Promise<SetUPhoneTokenResponse> {
const args = { Action: 'SetUPhoneToken', ...(request || {}) };
return this.invoke(new Request(args)).then(
(resp) => resp.toObject() as SetUPhoneTokenResponse
);
}

/**
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
*
Expand Down Expand Up @@ -632,19 +646,19 @@ export interface CreateUPhoneServerRequest {
*/
Name: string;
/**
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表]()查询支持的云手机服务器规格。
* 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model)查询支持的云手机服务器规格。
*/
ServerModelName: string;
/**
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。
* 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model)查询支持的云手机规格。
*/
UPhoneModelName: string;
/**
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。
* 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。
*/
ImageId: string;
/**
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
* 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
*/
CityId: string;
/**
Expand Down Expand Up @@ -2292,6 +2306,29 @@ export interface SetUPhoneSplashScreenRequest {
*/
export interface SetUPhoneSplashScreenResponse {}

/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*/
export interface SetUPhoneTokenRequest {
/**
* 云手机ID
*/
UPhoneId: string;
/**
* 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
*/
CityId: string;
/**
* RTC连接Token,为空表示清空Token
*/
Token?: string;
}

/**
* SetUPhoneToken - 设置云手机RTC连接Token提高安全性
*/
export interface SetUPhoneTokenResponse {}

/**
* UnInstallUPhoneAppVersion - 传入应用版本Id,在云手机中根据应用版本的PackageName卸载相关应用。一次只支持卸载一个应用。
*/
Expand Down