@ucloud-sdks/ucloud-sdk-js 0.2.15 → 0.2.17
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,196 @@
|
|
|
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 **ugn** service
|
|
10
|
+
*/
|
|
11
|
+
class UGNClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* AddRoutePolicy - 新增路由策略
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/add_route_policy
|
|
19
|
+
*/
|
|
20
|
+
addRoutePolicy(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'AddRoutePolicy' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* AttachUGNNetworks - 批量关联网络实例
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/attach_ugn_networks
|
|
28
|
+
*/
|
|
29
|
+
attachUGNNetworks(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'AttachUGNNetworks' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* CreateSimpleUGNBwPackage - 云联网简洁版创建带宽包
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/create_simple_ugn_bw_package
|
|
37
|
+
*/
|
|
38
|
+
createSimpleUGNBwPackage(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'CreateSimpleUGNBwPackage' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* CreateUGN - 创建云联网
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/create_ugn
|
|
46
|
+
*/
|
|
47
|
+
createUGN(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'CreateUGN' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DelUGN - 删除云联网,仅云联网内无带宽包或网络实例时才可以被删除
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/del_ugn
|
|
55
|
+
*/
|
|
56
|
+
delUGN(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DelUGN' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* DeleteRoutePolicy - 删除路由策略
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/delete_route_policy
|
|
64
|
+
*/
|
|
65
|
+
deleteRoutePolicy(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DeleteRoutePolicy' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* DeleteUGNBwPackage - 删除带宽包,互通地域仅保留默认带宽包
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/delete_ugn_bw_package
|
|
73
|
+
*/
|
|
74
|
+
deleteUGNBwPackage(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'DeleteUGNBwPackage' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DescribeSimpleUGN - 获取简洁版UGN详情
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/describe_simple_ugn
|
|
82
|
+
*/
|
|
83
|
+
describeSimpleUGN(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DescribeSimpleUGN' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* DetachUGNNetworks - 批量解除关联网络实例
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/detach_ugn_networks
|
|
91
|
+
*/
|
|
92
|
+
detachUGNNetworks(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'DetachUGNNetworks' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* EnableRoutePolicy - 启用\停用路由策略
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/enable_route_policy
|
|
100
|
+
*/
|
|
101
|
+
enableRoutePolicy(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'EnableRoutePolicy' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* GetSimpleBuyBwPrice - 获取简洁版带宽包价格
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/get_simple_buy_bw_price
|
|
109
|
+
*/
|
|
110
|
+
getSimpleBuyBwPrice(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'GetSimpleBuyBwPrice' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* GetSimpleUGNBwPackages - 获取指定云联网内的带宽包
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/get_simple_ugn_bw_packages
|
|
118
|
+
*/
|
|
119
|
+
getSimpleUGNBwPackages(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'GetSimpleUGNBwPackages' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* GetSwitchableBillingModes - 获取带宽包可以切换的计费类型
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/get_switchable_billing_modes
|
|
127
|
+
*/
|
|
128
|
+
getSwitchableBillingModes(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'GetSwitchableBillingModes' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* GetUGNRouteTable - 获取云联网路由表
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/get_ugn_route_table
|
|
136
|
+
*/
|
|
137
|
+
getUGNRouteTable(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'GetUGNRouteTable' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* ListSimpleBwPackage - 获取当前项目下的带宽包列表
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/list_simple_bw_package
|
|
145
|
+
*/
|
|
146
|
+
listSimpleBwPackage(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'ListSimpleBwPackage' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* ListUGN - 获取当前项目下所有云联网资源
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/list_ugn
|
|
154
|
+
*/
|
|
155
|
+
listUGN(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'ListUGN' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* ListUGNRegions - 获取UGN的可加入地域列表
|
|
161
|
+
*
|
|
162
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/list_ugn_regions
|
|
163
|
+
*/
|
|
164
|
+
listUGNRegions(request) {
|
|
165
|
+
const args = Object.assign({ Action: 'ListUGNRegions' }, (request || {}));
|
|
166
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* ModifyUGNBandwidth - 修改云联网带宽大小
|
|
170
|
+
*
|
|
171
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/modify_ugn_bandwidth
|
|
172
|
+
*/
|
|
173
|
+
modifyUGNBandwidth(request) {
|
|
174
|
+
const args = Object.assign({ Action: 'ModifyUGNBandwidth' }, (request || {}));
|
|
175
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* SendUGNApplyNetwork - 跨账号网络实例申请加入 UGN
|
|
179
|
+
*
|
|
180
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/send_ugn_apply_network
|
|
181
|
+
*/
|
|
182
|
+
sendUGNApplyNetwork(request) {
|
|
183
|
+
const args = Object.assign({ Action: 'SendUGNApplyNetwork' }, (request || {}));
|
|
184
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* UpdateRoutePolicy - 修改路由策略
|
|
188
|
+
*
|
|
189
|
+
* See also: https://docs.ucloud.cn/api/ugn-api/update_route_policy
|
|
190
|
+
*/
|
|
191
|
+
updateRoutePolicy(request) {
|
|
192
|
+
const args = Object.assign({ Action: 'UpdateRoutePolicy' }, (request || {}));
|
|
193
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.default = UGNClient;
|