@ucloud-sdks/ucloud-sdk-js 0.2.11 → 0.2.13
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
CHANGED
package/lib/services/index.js
CHANGED
|
@@ -31,6 +31,7 @@ const UPhoneClient = require('./uphone').default;
|
|
|
31
31
|
const UPHostClient = require('./uphost').default;
|
|
32
32
|
const USMSClient = require('./usms').default;
|
|
33
33
|
const UVMSClient = require('./uvms').default;
|
|
34
|
+
const UWSCClient = require('./uwsc').default;
|
|
34
35
|
const VPCClient = require('./vpc').default;
|
|
35
36
|
class Client extends BaseClient {
|
|
36
37
|
constructor({ config, credential, }) {
|
|
@@ -210,6 +211,12 @@ class Client extends BaseClient {
|
|
|
210
211
|
credential: this.credential,
|
|
211
212
|
});
|
|
212
213
|
}
|
|
214
|
+
uwsc() {
|
|
215
|
+
return new UWSCClient({
|
|
216
|
+
config: this.config,
|
|
217
|
+
credential: this.credential,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
213
220
|
vpc() {
|
|
214
221
|
return new VPCClient({
|
|
215
222
|
config: this.config,
|
|
@@ -126,14 +126,6 @@ export interface CreateUKafkaInstanceRequest {
|
|
|
126
126
|
* kafka版本,支持的版本可通过ListUKafkaFrameworkVersion 接口返回字段的FrameworkVersions获取
|
|
127
127
|
*/
|
|
128
128
|
FrameworkVersion: string;
|
|
129
|
-
/**
|
|
130
|
-
* VPCID
|
|
131
|
-
*/
|
|
132
|
-
VPCId: string;
|
|
133
|
-
/**
|
|
134
|
-
* 子网 ID
|
|
135
|
-
*/
|
|
136
|
-
SubnetId: string;
|
|
137
129
|
/**
|
|
138
130
|
* 付费方式
|
|
139
131
|
*/
|
|
@@ -150,6 +142,14 @@ export interface CreateUKafkaInstanceRequest {
|
|
|
150
142
|
* 实例名,可自定义。只能包含中英文、数字以及- _ .
|
|
151
143
|
*/
|
|
152
144
|
InstanceName: string;
|
|
145
|
+
/**
|
|
146
|
+
* VPCID,不填时为默认VPCID
|
|
147
|
+
*/
|
|
148
|
+
VPCId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 子网 ID,不填时为默认子网 ID
|
|
151
|
+
*/
|
|
152
|
+
SubnetId?: string;
|
|
153
153
|
/**
|
|
154
154
|
* 业务组,默认Default
|
|
155
155
|
*/
|
|
@@ -0,0 +1,544 @@
|
|
|
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 **uwsc** service
|
|
6
|
+
*/
|
|
7
|
+
export default class UWSCClient extends Client {
|
|
8
|
+
constructor({ config, credential, }: {
|
|
9
|
+
config: ConfigOptions;
|
|
10
|
+
credential: CredentialOptions;
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* AddExportLineRules - 添加加速规则
|
|
14
|
+
*
|
|
15
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/add_export_line_rules
|
|
16
|
+
*/
|
|
17
|
+
addExportLineRules(request?: AddExportLineRulesRequest): Promise<AddExportLineRulesResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* BindCPE - 绑定 CPE
|
|
20
|
+
*
|
|
21
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/bind_cpe
|
|
22
|
+
*/
|
|
23
|
+
bindCPE(request?: BindCPERequest): Promise<BindCPEResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* CreateCPE - 创建 CPE
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/create_cpe
|
|
28
|
+
*/
|
|
29
|
+
createCPE(request?: CreateCPERequest): Promise<CreateCPEResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* CreateExportLine - 创建加速线路
|
|
32
|
+
*
|
|
33
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/create_export_line
|
|
34
|
+
*/
|
|
35
|
+
createExportLine(request?: CreateExportLineRequest): Promise<CreateExportLineResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* DeleteExportLine - 删除加速线路
|
|
38
|
+
*
|
|
39
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/delete_export_line
|
|
40
|
+
*/
|
|
41
|
+
deleteExportLine(request?: DeleteExportLineRequest): Promise<DeleteExportLineResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* DeleteExportLineRules - 删除加速规则
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/delete_export_line_rules
|
|
46
|
+
*/
|
|
47
|
+
deleteExportLineRules(request?: DeleteExportLineRulesRequest): Promise<DeleteExportLineRulesResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* DescribeCPE - 查询 CPE 信息
|
|
50
|
+
*
|
|
51
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_cpe
|
|
52
|
+
*/
|
|
53
|
+
describeCPE(request?: DescribeCPERequest): Promise<DescribeCPEResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* DescribeExportLine - 查询CPE绑定的加速线路信息
|
|
56
|
+
*
|
|
57
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_export_line
|
|
58
|
+
*/
|
|
59
|
+
describeExportLine(request?: DescribeExportLineRequest): Promise<DescribeExportLineResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* DescribeExportLineRules - 查询白名单
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_export_line_rules
|
|
64
|
+
*/
|
|
65
|
+
describeExportLineRules(request?: DescribeExportLineRulesRequest): Promise<DescribeExportLineRulesResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* UpdateExportLine - 修改加速线路
|
|
68
|
+
*
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/update_export_line
|
|
70
|
+
*/
|
|
71
|
+
updateExportLine(request?: UpdateExportLineRequest): Promise<UpdateExportLineResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* UpgradeExportLine - 升级加速线路
|
|
74
|
+
*
|
|
75
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/upgrade_export_line
|
|
76
|
+
*/
|
|
77
|
+
upgradeExportLine(request?: UpgradeExportLineRequest): Promise<UpgradeExportLineResponse>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* AddExportLineRules - 添加加速规则
|
|
81
|
+
*/
|
|
82
|
+
export interface AddExportLineRulesRequest {
|
|
83
|
+
/**
|
|
84
|
+
* UReach资源ID
|
|
85
|
+
*/
|
|
86
|
+
ResourceId: string;
|
|
87
|
+
/**
|
|
88
|
+
* 白名单类型:Developer、CrossBorder
|
|
89
|
+
*/
|
|
90
|
+
RuleTypes: string[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* AddExportLineRules - 添加加速规则
|
|
94
|
+
*/
|
|
95
|
+
export interface AddExportLineRulesResponse {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* BindCPE - 绑定 CPE
|
|
99
|
+
*/
|
|
100
|
+
export interface BindCPERequest {
|
|
101
|
+
/**
|
|
102
|
+
* cpe id
|
|
103
|
+
*/
|
|
104
|
+
CPEId: string;
|
|
105
|
+
/**
|
|
106
|
+
* sn id
|
|
107
|
+
*/
|
|
108
|
+
Sn: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* BindCPE - 绑定 CPE
|
|
112
|
+
*/
|
|
113
|
+
export interface BindCPEResponse {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* CreateCPE - 创建 CPE
|
|
117
|
+
*/
|
|
118
|
+
export interface CreateCPERequest {
|
|
119
|
+
/**
|
|
120
|
+
* cpe 名称
|
|
121
|
+
*/
|
|
122
|
+
Name: string;
|
|
123
|
+
/**
|
|
124
|
+
* cpe 备注
|
|
125
|
+
*/
|
|
126
|
+
Remark: string;
|
|
127
|
+
/**
|
|
128
|
+
* 设备型号,枚举值: UCPE3600、UCPE3601
|
|
129
|
+
*/
|
|
130
|
+
DeviceType: string;
|
|
131
|
+
/**
|
|
132
|
+
* 标签:UReach智能网关:Access
|
|
133
|
+
*/
|
|
134
|
+
Label?: string;
|
|
135
|
+
/**
|
|
136
|
+
* 结构体,详见UserInfo模型
|
|
137
|
+
*/
|
|
138
|
+
UserInfo?: string;
|
|
139
|
+
/**
|
|
140
|
+
* 数量,默认为1
|
|
141
|
+
*/
|
|
142
|
+
Count?: number;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* CreateCPE - 创建 CPE
|
|
146
|
+
*/
|
|
147
|
+
export interface CreateCPEResponse {
|
|
148
|
+
/**
|
|
149
|
+
* cpe id
|
|
150
|
+
*/
|
|
151
|
+
CPEId: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* CreateExportLine - 创建加速线路
|
|
155
|
+
*/
|
|
156
|
+
export interface CreateExportLineRequest {
|
|
157
|
+
/**
|
|
158
|
+
* 本端地域
|
|
159
|
+
*/
|
|
160
|
+
FromRegion: string;
|
|
161
|
+
/**
|
|
162
|
+
* 目标地域
|
|
163
|
+
*/
|
|
164
|
+
ToRegion: string;
|
|
165
|
+
/**
|
|
166
|
+
* IP类型:International、BGP、Native、Resident
|
|
167
|
+
*/
|
|
168
|
+
IpType: string;
|
|
169
|
+
/**
|
|
170
|
+
* CPE Id
|
|
171
|
+
*/
|
|
172
|
+
CPEId: string;
|
|
173
|
+
/**
|
|
174
|
+
* 套餐类型:2M-Entry、5M-Basic、10M-Enterprise
|
|
175
|
+
*/
|
|
176
|
+
PkgType?: string;
|
|
177
|
+
/**
|
|
178
|
+
* 带宽大小
|
|
179
|
+
*/
|
|
180
|
+
Bandwidth?: number;
|
|
181
|
+
/**
|
|
182
|
+
* 资源名称
|
|
183
|
+
*/
|
|
184
|
+
Name?: string;
|
|
185
|
+
/**
|
|
186
|
+
* 业务组名称, 默认为 "Default"
|
|
187
|
+
*/
|
|
188
|
+
Tag?: string;
|
|
189
|
+
/**
|
|
190
|
+
* 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
|
|
191
|
+
*/
|
|
192
|
+
ChargeType?: string;
|
|
193
|
+
/**
|
|
194
|
+
* 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
|
|
195
|
+
*/
|
|
196
|
+
Quantity?: number;
|
|
197
|
+
/**
|
|
198
|
+
* 备注
|
|
199
|
+
*/
|
|
200
|
+
Remark?: string;
|
|
201
|
+
/**
|
|
202
|
+
* 计费类型:fixed-bw,固定带宽;traffic,流量计费
|
|
203
|
+
*/
|
|
204
|
+
PayMode?: string;
|
|
205
|
+
/**
|
|
206
|
+
* 代金券ID。请登录用户中心查看
|
|
207
|
+
*/
|
|
208
|
+
CouponId?: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* CreateExportLine - 创建加速线路
|
|
212
|
+
*/
|
|
213
|
+
export interface CreateExportLineResponse {
|
|
214
|
+
/**
|
|
215
|
+
* 资源ID
|
|
216
|
+
*/
|
|
217
|
+
ResourceId: string;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* DeleteExportLine - 删除加速线路
|
|
221
|
+
*/
|
|
222
|
+
export interface DeleteExportLineRequest {
|
|
223
|
+
/**
|
|
224
|
+
* UReach资源ID
|
|
225
|
+
*/
|
|
226
|
+
ResourceId: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* DeleteExportLine - 删除加速线路
|
|
230
|
+
*/
|
|
231
|
+
export interface DeleteExportLineResponse {
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* DeleteExportLineRules - 删除加速规则
|
|
235
|
+
*/
|
|
236
|
+
export interface DeleteExportLineRulesRequest {
|
|
237
|
+
/**
|
|
238
|
+
* UReach资源ID
|
|
239
|
+
*/
|
|
240
|
+
ResourceId: string;
|
|
241
|
+
/**
|
|
242
|
+
* 白名单类型:Developer、CrossBorder
|
|
243
|
+
*/
|
|
244
|
+
RuleTypes: string[];
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* DeleteExportLineRules - 删除加速规则
|
|
248
|
+
*/
|
|
249
|
+
export interface DeleteExportLineRulesResponse {
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* DescribeCPE - 查询 CPE 信息
|
|
253
|
+
*/
|
|
254
|
+
export interface DescribeCPERequest {
|
|
255
|
+
/**
|
|
256
|
+
* cpe id
|
|
257
|
+
*/
|
|
258
|
+
CPEId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* 标签:Access、Network
|
|
261
|
+
*/
|
|
262
|
+
Label?: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* DescribeCPE - 查询 CPE 信息
|
|
266
|
+
*/
|
|
267
|
+
export interface DescribeCPEResponse {
|
|
268
|
+
/**
|
|
269
|
+
* cpe 详情
|
|
270
|
+
*/
|
|
271
|
+
CPEInfos?: {
|
|
272
|
+
/**
|
|
273
|
+
* 资源ID
|
|
274
|
+
*/
|
|
275
|
+
CPEId?: string;
|
|
276
|
+
/**
|
|
277
|
+
* 资源名称
|
|
278
|
+
*/
|
|
279
|
+
CPEName?: string;
|
|
280
|
+
/**
|
|
281
|
+
* 备注
|
|
282
|
+
*/
|
|
283
|
+
Remark?: string;
|
|
284
|
+
/**
|
|
285
|
+
* 设备型号
|
|
286
|
+
*/
|
|
287
|
+
DeviceTypeName?: string;
|
|
288
|
+
/**
|
|
289
|
+
* 供应商
|
|
290
|
+
*/
|
|
291
|
+
Vendor?: string;
|
|
292
|
+
/**
|
|
293
|
+
* 绑定的UWAN资源ID
|
|
294
|
+
*/
|
|
295
|
+
PopGwId?: string[];
|
|
296
|
+
/**
|
|
297
|
+
* 设备SN
|
|
298
|
+
*/
|
|
299
|
+
Sn?: string;
|
|
300
|
+
/**
|
|
301
|
+
* 状态
|
|
302
|
+
*/
|
|
303
|
+
Status?: number;
|
|
304
|
+
/**
|
|
305
|
+
* 配置更新时间
|
|
306
|
+
*/
|
|
307
|
+
ConfUpdateTime?: number;
|
|
308
|
+
/**
|
|
309
|
+
* 端口
|
|
310
|
+
*/
|
|
311
|
+
Ports?: string[];
|
|
312
|
+
/**
|
|
313
|
+
* 链路数量
|
|
314
|
+
*/
|
|
315
|
+
LinkNum?: number;
|
|
316
|
+
/**
|
|
317
|
+
* 创建时间
|
|
318
|
+
*/
|
|
319
|
+
CreateTime?: number;
|
|
320
|
+
/**
|
|
321
|
+
* 是否与线路绑定
|
|
322
|
+
*/
|
|
323
|
+
LineStatus?: string;
|
|
324
|
+
/**
|
|
325
|
+
* 绑定的UReach线路资源ID
|
|
326
|
+
*/
|
|
327
|
+
ResourceIds?: string[];
|
|
328
|
+
/**
|
|
329
|
+
* 有效使用时间(天)
|
|
330
|
+
*/
|
|
331
|
+
UseTime?: number;
|
|
332
|
+
}[];
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* DescribeExportLine - 查询CPE绑定的加速线路信息
|
|
336
|
+
*/
|
|
337
|
+
export interface DescribeExportLineRequest {
|
|
338
|
+
/**
|
|
339
|
+
* CPE资源ID
|
|
340
|
+
*/
|
|
341
|
+
CPEId?: string;
|
|
342
|
+
/**
|
|
343
|
+
* UReach资源ID
|
|
344
|
+
*/
|
|
345
|
+
ResourceId?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* DescribeExportLine - 查询CPE绑定的加速线路信息
|
|
349
|
+
*/
|
|
350
|
+
export interface DescribeExportLineResponse {
|
|
351
|
+
/**
|
|
352
|
+
* 线路信息
|
|
353
|
+
*/
|
|
354
|
+
LineInfos?: {
|
|
355
|
+
/**
|
|
356
|
+
* 名称
|
|
357
|
+
*/
|
|
358
|
+
Name?: string;
|
|
359
|
+
/**
|
|
360
|
+
* 备注
|
|
361
|
+
*/
|
|
362
|
+
Remark?: string;
|
|
363
|
+
/**
|
|
364
|
+
* 线路资源ID
|
|
365
|
+
*/
|
|
366
|
+
ResourceId?: string;
|
|
367
|
+
/**
|
|
368
|
+
* 线路资源ID对应的加速线路ID
|
|
369
|
+
*/
|
|
370
|
+
InstanceId?: string;
|
|
371
|
+
/**
|
|
372
|
+
* 带宽大小(Mbps)
|
|
373
|
+
*/
|
|
374
|
+
Bandwidth?: number;
|
|
375
|
+
/**
|
|
376
|
+
* 付费方式(按月、按年等)
|
|
377
|
+
*/
|
|
378
|
+
ChargeType?: string;
|
|
379
|
+
/**
|
|
380
|
+
* 计费方式(固定带宽: fixed-bw;流量计费:traffic)
|
|
381
|
+
*/
|
|
382
|
+
PayMode?: string;
|
|
383
|
+
/**
|
|
384
|
+
* 入口地域
|
|
385
|
+
*/
|
|
386
|
+
FromRegion?: string;
|
|
387
|
+
/**
|
|
388
|
+
* 入口地域名称
|
|
389
|
+
*/
|
|
390
|
+
FromRegionName?: string;
|
|
391
|
+
/**
|
|
392
|
+
* 出口地域
|
|
393
|
+
*/
|
|
394
|
+
ToRegion?: string;
|
|
395
|
+
/**
|
|
396
|
+
* 出口地域名称
|
|
397
|
+
*/
|
|
398
|
+
ToRegionName?: string;
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
*/
|
|
402
|
+
IP?: string[];
|
|
403
|
+
/**
|
|
404
|
+
* 线路是否绑定CPE;"1":已绑定;"0"未绑定
|
|
405
|
+
*/
|
|
406
|
+
Status?: string;
|
|
407
|
+
/**
|
|
408
|
+
* 创建时间
|
|
409
|
+
*/
|
|
410
|
+
CreateTime?: number;
|
|
411
|
+
/**
|
|
412
|
+
* 到期时间
|
|
413
|
+
*/
|
|
414
|
+
ExpireTime?: number;
|
|
415
|
+
/**
|
|
416
|
+
* 线路绑定的CPE资源ID
|
|
417
|
+
*/
|
|
418
|
+
CPEIds?: string[];
|
|
419
|
+
/**
|
|
420
|
+
* 套餐类型
|
|
421
|
+
*/
|
|
422
|
+
PkgType?: string;
|
|
423
|
+
/**
|
|
424
|
+
* IP类型
|
|
425
|
+
*/
|
|
426
|
+
IpType?: string;
|
|
427
|
+
/**
|
|
428
|
+
* 是否过期(normal/expire)
|
|
429
|
+
*/
|
|
430
|
+
InstanceStatus?: string;
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
*/
|
|
434
|
+
Socks?: {
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
Addr?: string;
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
*/
|
|
442
|
+
Port?: number;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
*/
|
|
446
|
+
Account?: string;
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* 源IP地址
|
|
450
|
+
*/
|
|
451
|
+
Source?: string[];
|
|
452
|
+
}[];
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* DescribeExportLineRules - 查询白名单
|
|
456
|
+
*/
|
|
457
|
+
export interface DescribeExportLineRulesRequest {
|
|
458
|
+
/**
|
|
459
|
+
* UReach资源ID
|
|
460
|
+
*/
|
|
461
|
+
ResourceId?: string;
|
|
462
|
+
/**
|
|
463
|
+
* 白名单类型
|
|
464
|
+
*/
|
|
465
|
+
RuleType?: string;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* DescribeExportLineRules - 查询白名单
|
|
469
|
+
*/
|
|
470
|
+
export interface DescribeExportLineRulesResponse {
|
|
471
|
+
/**
|
|
472
|
+
* 白名单信息
|
|
473
|
+
*/
|
|
474
|
+
WhiteListInfos: {
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
*/
|
|
478
|
+
RuleType?: string;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
*/
|
|
482
|
+
Name?: string;
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
*/
|
|
486
|
+
Remark?: string;
|
|
487
|
+
}[];
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* UpdateExportLine - 修改加速线路
|
|
491
|
+
*/
|
|
492
|
+
export interface UpdateExportLineRequest {
|
|
493
|
+
/**
|
|
494
|
+
* UReach资源ID
|
|
495
|
+
*/
|
|
496
|
+
ResourceId: string;
|
|
497
|
+
/**
|
|
498
|
+
* 带宽大小(仅自定义套餐支持修改)
|
|
499
|
+
*/
|
|
500
|
+
Bandwidth: string;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* UpdateExportLine - 修改加速线路
|
|
504
|
+
*/
|
|
505
|
+
export interface UpdateExportLineResponse {
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* UpgradeExportLine - 升级加速线路
|
|
509
|
+
*/
|
|
510
|
+
export interface UpgradeExportLineRequest {
|
|
511
|
+
/**
|
|
512
|
+
* UReach资源ID
|
|
513
|
+
*/
|
|
514
|
+
ResourceId: string;
|
|
515
|
+
/**
|
|
516
|
+
* 目标套餐类型:2M-Entry、5M-Basic、10M-Enterprise
|
|
517
|
+
*/
|
|
518
|
+
PkgType: string;
|
|
519
|
+
/**
|
|
520
|
+
* 原IP类型:International、BGP、Native、Resident
|
|
521
|
+
*/
|
|
522
|
+
IpType: string;
|
|
523
|
+
/**
|
|
524
|
+
* 带宽大小
|
|
525
|
+
*/
|
|
526
|
+
Bandwidth?: number;
|
|
527
|
+
/**
|
|
528
|
+
* 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
|
|
529
|
+
*/
|
|
530
|
+
ChargeType?: string;
|
|
531
|
+
/**
|
|
532
|
+
* 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
|
|
533
|
+
*/
|
|
534
|
+
Quantity?: number;
|
|
535
|
+
/**
|
|
536
|
+
* 代金券ID。请登录用户中心查看
|
|
537
|
+
*/
|
|
538
|
+
CouponId?: number;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* UpgradeExportLine - 升级加速线路
|
|
542
|
+
*/
|
|
543
|
+
export interface UpgradeExportLineResponse {
|
|
544
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 **uwsc** service
|
|
10
|
+
*/
|
|
11
|
+
class UWSCClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* AddExportLineRules - 添加加速规则
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/add_export_line_rules
|
|
19
|
+
*/
|
|
20
|
+
addExportLineRules(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'AddExportLineRules' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* BindCPE - 绑定 CPE
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/bind_cpe
|
|
28
|
+
*/
|
|
29
|
+
bindCPE(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'BindCPE' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* CreateCPE - 创建 CPE
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/create_cpe
|
|
37
|
+
*/
|
|
38
|
+
createCPE(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'CreateCPE' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* CreateExportLine - 创建加速线路
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/create_export_line
|
|
46
|
+
*/
|
|
47
|
+
createExportLine(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'CreateExportLine' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* DeleteExportLine - 删除加速线路
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/delete_export_line
|
|
55
|
+
*/
|
|
56
|
+
deleteExportLine(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'DeleteExportLine' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* DeleteExportLineRules - 删除加速规则
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/delete_export_line_rules
|
|
64
|
+
*/
|
|
65
|
+
deleteExportLineRules(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DeleteExportLineRules' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* DescribeCPE - 查询 CPE 信息
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_cpe
|
|
73
|
+
*/
|
|
74
|
+
describeCPE(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'DescribeCPE' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DescribeExportLine - 查询CPE绑定的加速线路信息
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_export_line
|
|
82
|
+
*/
|
|
83
|
+
describeExportLine(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DescribeExportLine' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* DescribeExportLineRules - 查询白名单
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/describe_export_line_rules
|
|
91
|
+
*/
|
|
92
|
+
describeExportLineRules(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'DescribeExportLineRules' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* UpdateExportLine - 修改加速线路
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/update_export_line
|
|
100
|
+
*/
|
|
101
|
+
updateExportLine(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'UpdateExportLine' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* UpgradeExportLine - 升级加速线路
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/uwsc-api/upgrade_export_line
|
|
109
|
+
*/
|
|
110
|
+
upgradeExportLine(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'UpgradeExportLine' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.default = UWSCClient;
|