@ucloud-sdks/ucloud-sdk-js 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +63 -14
- package/lib/services/uhost/index.d.ts +1 -1
- package/lib/services/ulb/index.d.ts +2 -2
- package/lib/services/ulight_host/index.d.ts +824 -0
- package/lib/services/ulight_host/index.js +151 -0
- package/lib/services/unet/index.d.ts +6 -2
- package/lib/services/uphone/index.d.ts +680 -20
- package/lib/services/uphone/index.js +84 -3
- package/lib/services/uvms/index.d.ts +8 -4
- package/lib/services/vpc/index.d.ts +239 -22
- package/lib/services/vpc/index.js +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_1 = __importDefault(require("../../core/client"));
|
|
7
|
+
const request_1 = __importDefault(require("../../core/request"));
|
|
8
|
+
/**
|
|
9
|
+
* This client is used to call actions of **ulight_host** service
|
|
10
|
+
*/
|
|
11
|
+
class ULightHostClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CheckULHostResourceCapacity - 检查轻量应用云主机资源余量
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/check_ul_host_resource_capacity
|
|
19
|
+
*/
|
|
20
|
+
checkULHostResourceCapacity(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'CheckULHostResourceCapacity' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CreateULHostInstance - 创建轻量应用云主机
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/create_ul_host_instance
|
|
28
|
+
*/
|
|
29
|
+
createULHostInstance(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'CreateULHostInstance' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* DescribeULHostBundles - 获取轻量应用云主机套餐列表
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/describe_ul_host_bundles
|
|
37
|
+
*/
|
|
38
|
+
describeULHostBundles(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'DescribeULHostBundles' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* DescribeULHostImage - 获取指定数据中心镜像列表
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/describe_ul_host_image
|
|
46
|
+
*/
|
|
47
|
+
describeULHostImage(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'DescribeULHostImage' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DescribeULHostInstance - 获取轻量应用云主机列表
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/describe_ul_host_instance
|
|
55
|
+
*/
|
|
56
|
+
describeULHostInstance(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DescribeULHostInstance' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GetULHostInstancePrice - 获取轻量应用云主机套餐价格
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/get_ul_host_instance_price
|
|
64
|
+
*/
|
|
65
|
+
getULHostInstancePrice(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'GetULHostInstancePrice' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* GetULHostRenewPrice - 获取主机续费价格
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/get_ul_host_renew_price
|
|
73
|
+
*/
|
|
74
|
+
getULHostRenewPrice(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'GetULHostRenewPrice' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* ModifyULHostAttribute - 修改指定ULHost实例属性信息,包含名称和备注
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/modify_ul_host_attribute
|
|
82
|
+
*/
|
|
83
|
+
modifyULHostAttribute(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'ModifyULHostAttribute' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* PoweroffULHostInstance - 直接关闭UHost实例电源,无需等待实例正常关闭。
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/poweroff_ul_host_instance
|
|
91
|
+
*/
|
|
92
|
+
poweroffULHostInstance(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'PoweroffULHostInstance' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* RebootULHostInstance - 重新启动UHost实例。
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/reboot_ul_host_instance
|
|
100
|
+
*/
|
|
101
|
+
rebootULHostInstance(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'RebootULHostInstance' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* ReinstallULHostInstance - 重装轻量应用云主机
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/reinstall_ul_host_instance
|
|
109
|
+
*/
|
|
110
|
+
reinstallULHostInstance(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'ReinstallULHostInstance' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* ResetULHostInstancePassword - 重置轻量应用云主机管理员密码。
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/reset_ul_host_instance_password
|
|
118
|
+
*/
|
|
119
|
+
resetULHostInstancePassword(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'ResetULHostInstancePassword' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* StartULHostInstance - 启动处于关闭状态的UHost实例。
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/start_ul_host_instance
|
|
127
|
+
*/
|
|
128
|
+
startULHostInstance(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'StartULHostInstance' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* StopULHostInstance - 指停止处于运行状态的ULHost实例
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/stop_ul_host_instance
|
|
136
|
+
*/
|
|
137
|
+
stopULHostInstance(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'StopULHostInstance' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* TerminateULHostInstance - 删除指定数据中心的ULHost实例。
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/ulighthost-api/terminate_ul_host_instance
|
|
145
|
+
*/
|
|
146
|
+
terminateULHostInstance(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'TerminateULHostInstance' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.default = ULightHostClient;
|
|
@@ -274,7 +274,7 @@ export interface AllocateEIPResponse {
|
|
|
274
274
|
*/
|
|
275
275
|
EIPAddr?: {
|
|
276
276
|
/**
|
|
277
|
-
* 运营商信息如: 国际: International, BGP:
|
|
277
|
+
* 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
|
|
278
278
|
*/
|
|
279
279
|
OperatorName?: string;
|
|
280
280
|
/**
|
|
@@ -356,6 +356,10 @@ export interface BindEIPRequest {
|
|
|
356
356
|
* 弹性IP请求绑定的资源ID
|
|
357
357
|
*/
|
|
358
358
|
ResourceId: string;
|
|
359
|
+
/**
|
|
360
|
+
* EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP
|
|
361
|
+
*/
|
|
362
|
+
PrivateIP?: string;
|
|
359
363
|
}
|
|
360
364
|
/**
|
|
361
365
|
* BindEIP - 将尚未使用的弹性IP绑定到指定的资源
|
|
@@ -668,7 +672,7 @@ export interface DescribeEIPResponse {
|
|
|
668
672
|
*/
|
|
669
673
|
EIPAddr?: {
|
|
670
674
|
/**
|
|
671
|
-
* 运营商信息如: 国际: International, BGP:
|
|
675
|
+
* 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
|
|
672
676
|
*/
|
|
673
677
|
OperatorName?: string;
|
|
674
678
|
/**
|