tencentcloud-sdk-nodejs 4.0.296 → 4.0.299
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/CHANGELOG.md +434 -0
- package/SERVICE_CHANGELOG.md +477 -40
- package/package.json +1 -1
- package/products.md +25 -23
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ame/v20190916/ame_models.ts +10 -2
- package/src/services/antiddos/v20200309/antiddos_client.ts +127 -53
- package/src/services/antiddos/v20200309/antiddos_models.ts +361 -31
- package/src/services/apigateway/v20180808/apigateway_client.ts +75 -6
- package/src/services/apigateway/v20180808/apigateway_models.ts +617 -45
- package/src/services/as/v20180419/as_models.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +12 -0
- package/src/services/cam/v20190116/cam_client.ts +12 -0
- package/src/services/cam/v20190116/cam_models.ts +31 -1
- package/src/services/cdb/v20170320/cdb_models.ts +1 -1
- package/src/services/clb/v20180317/clb_client.ts +0 -3
- package/src/services/cloudaudit/v20190319/cloudaudit_client.ts +43 -7
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +109 -64
- package/src/services/cls/v20201016/cls_client.ts +1 -1
- package/src/services/cls/v20201016/cls_models.ts +38 -27
- package/src/services/dcdb/v20180411/dcdb_client.ts +36 -12
- package/src/services/dcdb/v20180411/dcdb_models.ts +60 -0
- package/src/services/ess/index.ts +5 -0
- package/src/services/ess/v20201111/ess_client.ts +148 -0
- package/src/services/ess/v20201111/ess_models.ts +857 -0
- package/src/services/ess/v20201111/index.ts +6 -0
- package/src/services/gme/v20180711/gme_client.ts +36 -0
- package/src/services/gme/v20180711/gme_models.ts +126 -0
- package/src/services/index.ts +2 -0
- package/src/services/mariadb/v20170312/mariadb_client.ts +31 -7
- package/src/services/mariadb/v20170312/mariadb_models.ts +233 -173
- package/src/services/monitor/v20180724/monitor_client.ts +1 -1
- package/src/services/monitor/v20180724/monitor_models.ts +1 -1
- package/src/services/rum/v20210622/rum_models.ts +1 -1
- package/src/services/tcss/v20201101/tcss_models.ts +26 -0
- package/src/services/tdcpg/index.ts +5 -0
- package/src/services/tdcpg/v20211118/index.ts +6 -0
- package/src/services/tdcpg/v20211118/tdcpg_client.ts +345 -0
- package/src/services/tdcpg/v20211118/tdcpg_models.ts +1320 -0
- package/src/services/tdid/v20210519/tdid_client.ts +64 -14
- package/src/services/tdid/v20210519/tdid_models.ts +205 -17
- package/src/services/tem/v20210701/tem_models.ts +5 -0
- package/src/services/tsf/v20180326/tsf_client.ts +128 -15
- package/src/services/tsf/v20180326/tsf_models.ts +1116 -112
- package/src/services/vpc/v20170312/vpc_models.ts +3 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ame/v20190916/ame_models.d.ts +9 -2
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +41 -17
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +60 -24
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +307 -29
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +21 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +30 -0
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +520 -41
- package/tencentcloud/services/as/v20180419/as_models.d.ts +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +10 -0
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +5 -1
- package/tencentcloud/services/cam/v20190116/cam_client.js +6 -0
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +26 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +0 -3
- package/tencentcloud/services/clb/v20180317/clb_client.js +0 -3
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.d.ts +15 -3
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.js +21 -3
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +91 -52
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +35 -24
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +13 -5
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +18 -6
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +52 -0
- package/tencentcloud/services/ess/index.d.ts +6 -0
- package/tencentcloud/services/ess/index.js +7 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +46 -0
- package/tencentcloud/services/ess/v20201111/ess_client.js +85 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +707 -0
- package/tencentcloud/services/ess/v20201111/ess_models.js +18 -0
- package/tencentcloud/services/ess/v20201111/index.d.ts +6 -0
- package/tencentcloud/services/ess/v20201111/index.js +9 -0
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +13 -1
- package/tencentcloud/services/gme/v20180711/gme_client.js +18 -0
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +107 -0
- package/tencentcloud/services/index.d.ts +2 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +9 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +12 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +198 -146
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +1 -1
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +1 -1
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +21 -0
- package/tencentcloud/services/tdcpg/index.d.ts +6 -0
- package/tencentcloud/services/tdcpg/index.js +7 -0
- package/tencentcloud/services/tdcpg/v20211118/index.d.ts +6 -0
- package/tencentcloud/services/tdcpg/v20211118/index.js +9 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.d.ts +116 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.js +187 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.d.ts +1111 -0
- package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.js +18 -0
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +22 -5
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +31 -6
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +175 -15
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +4 -0
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +37 -5
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +54 -6
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +934 -86
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -0
- package/test/antiddos.v20200309.test.js +76 -16
- package/test/apigateway.v20180808.test.js +50 -0
- package/test/cam.v20190116.test.js +10 -0
- package/test/cloudaudit.v20190319.test.js +32 -2
- package/test/dcdb.v20180411.test.js +24 -4
- package/test/ess.v20201111.test.js +111 -0
- package/test/gme.v20180711.test.js +30 -0
- package/test/mariadb.v20170312.test.js +20 -0
- package/test/tdcpg.v20211118.test.js +271 -0
- package/test/tdid.v20210519.test.js +44 -4
- package/test/tsf.v20180326.test.js +84 -4
|
@@ -18,9 +18,9 @@ const client = new tencentcloud.antiddos.v20200309.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("antiddos.v20200309.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("antiddos.v20200309.
|
|
21
|
+
it("antiddos.v20200309.ModifyCCLevelPolicy", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
23
|
+
const data = await client.ModifyCCLevelPolicy({})
|
|
24
24
|
expect(data).to.be.ok
|
|
25
25
|
} catch(error) {
|
|
26
26
|
expect(error.requestId).to.be.ok
|
|
@@ -58,9 +58,19 @@ it("antiddos.v20200309.DescribeListWaterPrintConfig", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
-
it("antiddos.v20200309.
|
|
61
|
+
it("antiddos.v20200309.ModifyNewDomainRules", async function () {
|
|
62
62
|
try {
|
|
63
|
-
const data = await client.
|
|
63
|
+
const data = await client.ModifyNewDomainRules({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("antiddos.v20200309.CreateCcBlackWhiteIpList", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateCcBlackWhiteIpList({})
|
|
64
74
|
expect(data).to.be.ok
|
|
65
75
|
} catch(error) {
|
|
66
76
|
expect(error.requestId).to.be.ok
|
|
@@ -188,6 +198,16 @@ it("antiddos.v20200309.DescribeDDoSTrend", async function () {
|
|
|
188
198
|
}
|
|
189
199
|
})
|
|
190
200
|
|
|
201
|
+
it("antiddos.v20200309.DeleteDDoSBlackWhiteIpList", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DeleteDDoSBlackWhiteIpList({})
|
|
204
|
+
expect(data).to.be.ok
|
|
205
|
+
} catch(error) {
|
|
206
|
+
expect(error.requestId).to.be.ok
|
|
207
|
+
expect(error.code).to.be.ok
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
191
211
|
it("antiddos.v20200309.DescribeDefaultAlarmThreshold", async function () {
|
|
192
212
|
try {
|
|
193
213
|
const data = await client.DescribeDefaultAlarmThreshold({})
|
|
@@ -208,9 +228,9 @@ it("antiddos.v20200309.DescribeListBlackWhiteIpList", async function () {
|
|
|
208
228
|
}
|
|
209
229
|
})
|
|
210
230
|
|
|
211
|
-
it("antiddos.v20200309.
|
|
231
|
+
it("antiddos.v20200309.DeleteCCThresholdPolicy", async function () {
|
|
212
232
|
try {
|
|
213
|
-
const data = await client.
|
|
233
|
+
const data = await client.DeleteCCThresholdPolicy({})
|
|
214
234
|
expect(data).to.be.ok
|
|
215
235
|
} catch(error) {
|
|
216
236
|
expect(error.requestId).to.be.ok
|
|
@@ -248,9 +268,9 @@ it("antiddos.v20200309.DisassociateDDoSEipAddress", async function () {
|
|
|
248
268
|
}
|
|
249
269
|
})
|
|
250
270
|
|
|
251
|
-
it("antiddos.v20200309.
|
|
271
|
+
it("antiddos.v20200309.DescribeCCLevelPolicy", async function () {
|
|
252
272
|
try {
|
|
253
|
-
const data = await client.
|
|
273
|
+
const data = await client.DescribeCCLevelPolicy({})
|
|
254
274
|
expect(data).to.be.ok
|
|
255
275
|
} catch(error) {
|
|
256
276
|
expect(error.requestId).to.be.ok
|
|
@@ -288,6 +308,16 @@ it("antiddos.v20200309.CreateBoundIP", async function () {
|
|
|
288
308
|
}
|
|
289
309
|
})
|
|
290
310
|
|
|
311
|
+
it("antiddos.v20200309.ModifyCcBlackWhiteIpList", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.ModifyCcBlackWhiteIpList({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
291
321
|
it("antiddos.v20200309.DeleteCcGeoIPBlockConfig", async function () {
|
|
292
322
|
try {
|
|
293
323
|
const data = await client.DeleteCcGeoIPBlockConfig({})
|
|
@@ -338,6 +368,16 @@ it("antiddos.v20200309.DescribeBlackWhiteIpList", async function () {
|
|
|
338
368
|
}
|
|
339
369
|
})
|
|
340
370
|
|
|
371
|
+
it("antiddos.v20200309.DescribeCCLevelList", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.DescribeCCLevelList({})
|
|
374
|
+
expect(data).to.be.ok
|
|
375
|
+
} catch(error) {
|
|
376
|
+
expect(error.requestId).to.be.ok
|
|
377
|
+
expect(error.code).to.be.ok
|
|
378
|
+
}
|
|
379
|
+
})
|
|
380
|
+
|
|
341
381
|
it("antiddos.v20200309.ModifyDDoSBlackWhiteIpList", async function () {
|
|
342
382
|
try {
|
|
343
383
|
const data = await client.ModifyDDoSBlackWhiteIpList({})
|
|
@@ -378,9 +418,9 @@ it("antiddos.v20200309.CreateDDoSBlackWhiteIpList", async function () {
|
|
|
378
418
|
}
|
|
379
419
|
})
|
|
380
420
|
|
|
381
|
-
it("antiddos.v20200309.
|
|
421
|
+
it("antiddos.v20200309.DescribeCCThresholdList", async function () {
|
|
382
422
|
try {
|
|
383
|
-
const data = await client.
|
|
423
|
+
const data = await client.DescribeCCThresholdList({})
|
|
384
424
|
expect(data).to.be.ok
|
|
385
425
|
} catch(error) {
|
|
386
426
|
expect(error.requestId).to.be.ok
|
|
@@ -398,6 +438,16 @@ it("antiddos.v20200309.ModifyCCPrecisionPolicy", async function () {
|
|
|
398
438
|
}
|
|
399
439
|
})
|
|
400
440
|
|
|
441
|
+
it("antiddos.v20200309.ModifyL7RulesEdge", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.ModifyL7RulesEdge({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
401
451
|
it("antiddos.v20200309.CreateIPAlarmThresholdConfig", async function () {
|
|
402
452
|
try {
|
|
403
453
|
const data = await client.CreateIPAlarmThresholdConfig({})
|
|
@@ -408,9 +458,9 @@ it("antiddos.v20200309.CreateIPAlarmThresholdConfig", async function () {
|
|
|
408
458
|
}
|
|
409
459
|
})
|
|
410
460
|
|
|
411
|
-
it("antiddos.v20200309.
|
|
461
|
+
it("antiddos.v20200309.DeleteCCLevelPolicy", async function () {
|
|
412
462
|
try {
|
|
413
|
-
const data = await client.
|
|
463
|
+
const data = await client.DeleteCCLevelPolicy({})
|
|
414
464
|
expect(data).to.be.ok
|
|
415
465
|
} catch(error) {
|
|
416
466
|
expect(error.requestId).to.be.ok
|
|
@@ -608,9 +658,9 @@ it("antiddos.v20200309.DeleteWaterPrintConfig", async function () {
|
|
|
608
658
|
}
|
|
609
659
|
})
|
|
610
660
|
|
|
611
|
-
it("antiddos.v20200309.
|
|
661
|
+
it("antiddos.v20200309.DescribeCcGeoIPBlockConfigList", async function () {
|
|
612
662
|
try {
|
|
613
|
-
const data = await client.
|
|
663
|
+
const data = await client.DescribeCcGeoIPBlockConfigList({})
|
|
614
664
|
expect(data).to.be.ok
|
|
615
665
|
} catch(error) {
|
|
616
666
|
expect(error.requestId).to.be.ok
|
|
@@ -688,9 +738,9 @@ it("antiddos.v20200309.DescribeDDoSBlackWhiteIpList", async function () {
|
|
|
688
738
|
}
|
|
689
739
|
})
|
|
690
740
|
|
|
691
|
-
it("antiddos.v20200309.
|
|
741
|
+
it("antiddos.v20200309.DescribeCCTrend", async function () {
|
|
692
742
|
try {
|
|
693
|
-
const data = await client.
|
|
743
|
+
const data = await client.DescribeCCTrend({})
|
|
694
744
|
expect(data).to.be.ok
|
|
695
745
|
} catch(error) {
|
|
696
746
|
expect(error.requestId).to.be.ok
|
|
@@ -748,6 +798,16 @@ it("antiddos.v20200309.DescribeListPortAclList", async function () {
|
|
|
748
798
|
}
|
|
749
799
|
})
|
|
750
800
|
|
|
801
|
+
it("antiddos.v20200309.DescribeDDoSConnectLimitList", async function () {
|
|
802
|
+
try {
|
|
803
|
+
const data = await client.DescribeDDoSConnectLimitList({})
|
|
804
|
+
expect(data).to.be.ok
|
|
805
|
+
} catch(error) {
|
|
806
|
+
expect(error.requestId).to.be.ok
|
|
807
|
+
expect(error.code).to.be.ok
|
|
808
|
+
}
|
|
809
|
+
})
|
|
810
|
+
|
|
751
811
|
it("antiddos.v20200309.CreateCcGeoIPBlockConfig", async function () {
|
|
752
812
|
try {
|
|
753
813
|
const data = await client.CreateCcGeoIPBlockConfig({})
|
|
@@ -228,6 +228,16 @@ it("apigateway.v20180808.DescribeApiApp", async function () {
|
|
|
228
228
|
}
|
|
229
229
|
})
|
|
230
230
|
|
|
231
|
+
it("apigateway.v20180808.DescribeUpstreams", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.DescribeUpstreams({})
|
|
234
|
+
expect(data).to.be.ok
|
|
235
|
+
} catch(error) {
|
|
236
|
+
expect(error.requestId).to.be.ok
|
|
237
|
+
expect(error.code).to.be.ok
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
|
|
231
241
|
it("apigateway.v20180808.DescribeApi", async function () {
|
|
232
242
|
try {
|
|
233
243
|
const data = await client.DescribeApi({})
|
|
@@ -398,6 +408,16 @@ it("apigateway.v20180808.DescribeIPStrategy", async function () {
|
|
|
398
408
|
}
|
|
399
409
|
})
|
|
400
410
|
|
|
411
|
+
it("apigateway.v20180808.ModifyUpstream", async function () {
|
|
412
|
+
try {
|
|
413
|
+
const data = await client.ModifyUpstream({})
|
|
414
|
+
expect(data).to.be.ok
|
|
415
|
+
} catch(error) {
|
|
416
|
+
expect(error.requestId).to.be.ok
|
|
417
|
+
expect(error.code).to.be.ok
|
|
418
|
+
}
|
|
419
|
+
})
|
|
420
|
+
|
|
401
421
|
it("apigateway.v20180808.DescribeServiceReleaseVersion", async function () {
|
|
402
422
|
try {
|
|
403
423
|
const data = await client.DescribeServiceReleaseVersion({})
|
|
@@ -628,6 +648,16 @@ it("apigateway.v20180808.ModifyExclusiveInstance", async function () {
|
|
|
628
648
|
}
|
|
629
649
|
})
|
|
630
650
|
|
|
651
|
+
it("apigateway.v20180808.CreateUpstream", async function () {
|
|
652
|
+
try {
|
|
653
|
+
const data = await client.CreateUpstream({})
|
|
654
|
+
expect(data).to.be.ok
|
|
655
|
+
} catch(error) {
|
|
656
|
+
expect(error.requestId).to.be.ok
|
|
657
|
+
expect(error.code).to.be.ok
|
|
658
|
+
}
|
|
659
|
+
})
|
|
660
|
+
|
|
631
661
|
it("apigateway.v20180808.DescribeUsagePlanEnvironments", async function () {
|
|
632
662
|
try {
|
|
633
663
|
const data = await client.DescribeUsagePlanEnvironments({})
|
|
@@ -668,6 +698,16 @@ it("apigateway.v20180808.DescribeServiceEnvironmentList", async function () {
|
|
|
668
698
|
}
|
|
669
699
|
})
|
|
670
700
|
|
|
701
|
+
it("apigateway.v20180808.DeleteUpstream", async function () {
|
|
702
|
+
try {
|
|
703
|
+
const data = await client.DeleteUpstream({})
|
|
704
|
+
expect(data).to.be.ok
|
|
705
|
+
} catch(error) {
|
|
706
|
+
expect(error.requestId).to.be.ok
|
|
707
|
+
expect(error.code).to.be.ok
|
|
708
|
+
}
|
|
709
|
+
})
|
|
710
|
+
|
|
671
711
|
it("apigateway.v20180808.UnBindSubDomain", async function () {
|
|
672
712
|
try {
|
|
673
713
|
const data = await client.UnBindSubDomain({})
|
|
@@ -708,6 +748,16 @@ it("apigateway.v20180808.DescribeApiKey", async function () {
|
|
|
708
748
|
}
|
|
709
749
|
})
|
|
710
750
|
|
|
751
|
+
it("apigateway.v20180808.DescribeUpstreamBindApis", async function () {
|
|
752
|
+
try {
|
|
753
|
+
const data = await client.DescribeUpstreamBindApis({})
|
|
754
|
+
expect(data).to.be.ok
|
|
755
|
+
} catch(error) {
|
|
756
|
+
expect(error.requestId).to.be.ok
|
|
757
|
+
expect(error.code).to.be.ok
|
|
758
|
+
}
|
|
759
|
+
})
|
|
760
|
+
|
|
711
761
|
it("apigateway.v20180808.ReleaseService", async function () {
|
|
712
762
|
try {
|
|
713
763
|
const data = await client.ReleaseService({})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.cam.v20190116.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("cam.v20190116.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("cam.v20190116.GetUserAppId", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.GetUserAppId({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
21
31
|
it("cam.v20190116.SetMfaFlag", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.SetMfaFlag({})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.cloudaudit.v20190319.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("cloudaudit.v20190319.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("cloudaudit.v20190319.ModifyAuditTrack", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.ModifyAuditTrack({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
21
31
|
it("cloudaudit.v20190319.StartLogging", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.StartLogging({})
|
|
@@ -28,6 +38,16 @@ it("cloudaudit.v20190319.StartLogging", async function () {
|
|
|
28
38
|
}
|
|
29
39
|
})
|
|
30
40
|
|
|
41
|
+
it("cloudaudit.v20190319.ListCosEnableRegion", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ListCosEnableRegion({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
31
51
|
it("cloudaudit.v20190319.GetAttributeKey", async function () {
|
|
32
52
|
try {
|
|
33
53
|
const data = await client.GetAttributeKey({})
|
|
@@ -38,6 +58,16 @@ it("cloudaudit.v20190319.GetAttributeKey", async function () {
|
|
|
38
58
|
}
|
|
39
59
|
})
|
|
40
60
|
|
|
61
|
+
it("cloudaudit.v20190319.CreateAuditTrack", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.CreateAuditTrack({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
41
71
|
it("cloudaudit.v20190319.ListCmqEnableRegion", async function () {
|
|
42
72
|
try {
|
|
43
73
|
const data = await client.ListCmqEnableRegion({})
|
|
@@ -138,9 +168,9 @@ it("cloudaudit.v20190319.CreateAudit", async function () {
|
|
|
138
168
|
}
|
|
139
169
|
})
|
|
140
170
|
|
|
141
|
-
it("cloudaudit.v20190319.
|
|
171
|
+
it("cloudaudit.v20190319.DeleteAuditTrack", async function () {
|
|
142
172
|
try {
|
|
143
|
-
const data = await client.
|
|
173
|
+
const data = await client.DeleteAuditTrack({})
|
|
144
174
|
expect(data).to.be.ok
|
|
145
175
|
} catch(error) {
|
|
146
176
|
expect(error.requestId).to.be.ok
|
|
@@ -28,9 +28,9 @@ it("dcdb.v20180411.DescribeAccountPrivileges", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
it("dcdb.v20180411.
|
|
31
|
+
it("dcdb.v20180411.ActiveHourDCDBInstance", async function () {
|
|
32
32
|
try {
|
|
33
|
-
const data = await client.
|
|
33
|
+
const data = await client.ActiveHourDCDBInstance({})
|
|
34
34
|
expect(data).to.be.ok
|
|
35
35
|
} catch(error) {
|
|
36
36
|
expect(error.requestId).to.be.ok
|
|
@@ -118,6 +118,16 @@ it("dcdb.v20180411.ModifyAccountDescription", async function () {
|
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
+
it("dcdb.v20180411.DescribeOrders", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeOrders({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
121
131
|
it("dcdb.v20180411.DescribeUserTasks", async function () {
|
|
122
132
|
try {
|
|
123
133
|
const data = await client.DescribeUserTasks({})
|
|
@@ -268,9 +278,9 @@ it("dcdb.v20180411.DescribeDBLogFiles", async function () {
|
|
|
268
278
|
}
|
|
269
279
|
})
|
|
270
280
|
|
|
271
|
-
it("dcdb.v20180411.
|
|
281
|
+
it("dcdb.v20180411.IsolateHourDCDBInstance", async function () {
|
|
272
282
|
try {
|
|
273
|
-
const data = await client.
|
|
283
|
+
const data = await client.IsolateHourDCDBInstance({})
|
|
274
284
|
expect(data).to.be.ok
|
|
275
285
|
} catch(error) {
|
|
276
286
|
expect(error.requestId).to.be.ok
|
|
@@ -538,6 +548,16 @@ it("dcdb.v20180411.DisassociateSecurityGroups", async function () {
|
|
|
538
548
|
}
|
|
539
549
|
})
|
|
540
550
|
|
|
551
|
+
it("dcdb.v20180411.UpgradeDCDBInstance", async function () {
|
|
552
|
+
try {
|
|
553
|
+
const data = await client.UpgradeDCDBInstance({})
|
|
554
|
+
expect(data).to.be.ok
|
|
555
|
+
} catch(error) {
|
|
556
|
+
expect(error.requestId).to.be.ok
|
|
557
|
+
expect(error.code).to.be.ok
|
|
558
|
+
}
|
|
559
|
+
})
|
|
560
|
+
|
|
541
561
|
it("dcdb.v20180411.DescribeDCDBRenewalPrice", async function () {
|
|
542
562
|
try {
|
|
543
563
|
const data = await client.DescribeDCDBRenewalPrice({})
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.ess.v20201111.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("ess.v20201111.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("ess.v20201111.StartFlow", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.StartFlow({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("ess.v20201111.CancelFlow", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.CancelFlow({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("ess.v20201111.CreateDocument", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.CreateDocument({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("ess.v20201111.DescribeFileUrls", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeFileUrls({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("ess.v20201111.CreateFlow", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.CreateFlow({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("ess.v20201111.CreateSchemeUrl", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateSchemeUrl({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("ess.v20201111.DescribeThirdPartyAuthCode", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeThirdPartyAuthCode({})
|
|
84
|
+
expect(data).to.be.ok
|
|
85
|
+
} catch(error) {
|
|
86
|
+
expect(error.requestId).to.be.ok
|
|
87
|
+
expect(error.code).to.be.ok
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it("ess.v20201111.DescribeFlowBriefs", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DescribeFlowBriefs({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it("ess.v20201111.CreateFlowByFiles", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.CreateFlowByFiles({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
})
|
|
@@ -28,6 +28,16 @@ it("gme.v20180711.DescribeFilterResult", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("gme.v20180711.UpdateScanRooms", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.UpdateScanRooms({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
31
41
|
it("gme.v20180711.CreateApp", async function () {
|
|
32
42
|
try {
|
|
33
43
|
const data = await client.CreateApp({})
|
|
@@ -78,6 +88,16 @@ it("gme.v20180711.DescribeFilterResultList", async function () {
|
|
|
78
88
|
}
|
|
79
89
|
})
|
|
80
90
|
|
|
91
|
+
it("gme.v20180711.UpdateScanUsers", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.UpdateScanUsers({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
81
101
|
it("gme.v20180711.DescribeAppStatistics", async function () {
|
|
82
102
|
try {
|
|
83
103
|
const data = await client.DescribeAppStatistics({})
|
|
@@ -128,6 +148,16 @@ it("gme.v20180711.ModifyAppStatus", async function () {
|
|
|
128
148
|
}
|
|
129
149
|
})
|
|
130
150
|
|
|
151
|
+
it("gme.v20180711.DescribeRealtimeScanConfig", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.DescribeRealtimeScanConfig({})
|
|
154
|
+
expect(data).to.be.ok
|
|
155
|
+
} catch(error) {
|
|
156
|
+
expect(error.requestId).to.be.ok
|
|
157
|
+
expect(error.code).to.be.ok
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
131
161
|
it("gme.v20180711.DescribeUserInAndOutTime", async function () {
|
|
132
162
|
try {
|
|
133
163
|
const data = await client.DescribeUserInAndOutTime({})
|
|
@@ -158,6 +158,16 @@ it("mariadb.v20170312.DescribeDBResourceUsageDetails", async function () {
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
|
|
161
|
+
it("mariadb.v20170312.ActivateHourDBInstance", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.ActivateHourDBInstance({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
161
171
|
it("mariadb.v20170312.ResetAccountPassword", async function () {
|
|
162
172
|
try {
|
|
163
173
|
const data = await client.ResetAccountPassword({})
|
|
@@ -518,6 +528,16 @@ it("mariadb.v20170312.CopyAccountPrivileges", async function () {
|
|
|
518
528
|
}
|
|
519
529
|
})
|
|
520
530
|
|
|
531
|
+
it("mariadb.v20170312.IsolateHourDBInstance", async function () {
|
|
532
|
+
try {
|
|
533
|
+
const data = await client.IsolateHourDBInstance({})
|
|
534
|
+
expect(data).to.be.ok
|
|
535
|
+
} catch(error) {
|
|
536
|
+
expect(error.requestId).to.be.ok
|
|
537
|
+
expect(error.code).to.be.ok
|
|
538
|
+
}
|
|
539
|
+
})
|
|
540
|
+
|
|
521
541
|
it("mariadb.v20170312.DescribeDatabases", async function () {
|
|
522
542
|
try {
|
|
523
543
|
const data = await client.DescribeDatabases({})
|