tencentcloud-sdk-nodejs 4.0.739 → 4.0.740
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 +224 -0
- package/SERVICE_CHANGELOG.md +314 -314
- package/package.json +1 -1
- package/products.md +11 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_client.ts +168 -54
- package/src/services/cdb/v20170320/cdb_models.ts +716 -135
- package/src/services/cfg/v20210820/cfg_client.ts +32 -7
- package/src/services/cfg/v20210820/cfg_models.ts +108 -3
- package/src/services/config/index.ts +5 -0
- package/src/services/config/v20220802/config_client.ts +62 -0
- package/src/services/config/v20220802/config_models.ts +424 -0
- package/src/services/config/v20220802/index.ts +6 -0
- package/src/services/hai/v20230812/hai_models.ts +5 -0
- package/src/services/index.ts +1 -0
- package/src/services/tdmq/v20200217/tdmq_models.ts +38 -28
- package/src/services/teo/v20220901/teo_client.ts +3 -3
- package/src/services/teo/v20220901/teo_models.ts +34 -33
- package/src/services/tke/v20180525/tke_models.ts +11 -6
- package/src/services/tse/v20201207/tse_client.ts +43 -7
- package/src/services/tse/v20201207/tse_models.ts +96 -8
- package/src/services/vod/v20180717/vod_client.ts +4 -1
- package/src/services/vod/v20180717/vod_models.ts +129 -19
- package/src/services/waf/v20180125/waf_models.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +59 -23
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +82 -28
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +680 -123
- package/tencentcloud/services/cfg/v20210820/cfg_client.d.ts +11 -3
- package/tencentcloud/services/cfg/v20210820/cfg_client.js +15 -3
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +103 -3
- package/tencentcloud/services/config/index.d.ts +6 -0
- package/tencentcloud/services/config/index.js +7 -0
- package/tencentcloud/services/config/v20220802/config_client.d.ts +18 -0
- package/tencentcloud/services/config/v20220802/config_client.js +43 -0
- package/tencentcloud/services/config/v20220802/config_models.d.ts +397 -0
- package/tencentcloud/services/config/v20220802/config_models.js +18 -0
- package/tencentcloud/services/config/v20220802/index.d.ts +6 -0
- package/tencentcloud/services/config/v20220802/index.js +9 -0
- package/tencentcloud/services/hai/v20230812/hai_models.d.ts +5 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +38 -28
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +3 -3
- package/tencentcloud/services/teo/v20220901/teo_client.js +3 -3
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +34 -33
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +11 -6
- package/tencentcloud/services/tse/v20201207/tse_client.d.ts +15 -3
- package/tencentcloud/services/tse/v20201207/tse_client.js +21 -3
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +90 -8
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +126 -19
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +2 -2
- package/test/cdb.v20170320.test.js +102 -12
- package/test/cfg.v20210820.test.js +22 -2
- package/test/config.v20220802.test.js +41 -0
- package/test/tse.v20201207.test.js +32 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.config.v20220802.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("config.v20220802.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("config.v20220802.ListConfigRules", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.ListConfigRules({})
|
|
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("config.v20220802.ListAggregateConfigRules", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ListAggregateConfigRules({})
|
|
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
|
+
})
|
|
@@ -38,6 +38,16 @@ it("tse.v20201207.DescribeUpstreamHealthCheckConfig", async function () {
|
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
+
it("tse.v20201207.DescribeZookeeperReplicas", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeZookeeperReplicas({})
|
|
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
|
+
|
|
41
51
|
it("tse.v20201207.ModifyNativeGatewayServerGroup", async function () {
|
|
42
52
|
try {
|
|
43
53
|
const data = await client.ModifyNativeGatewayServerGroup({})
|
|
@@ -68,6 +78,16 @@ it("tse.v20201207.DeleteCloudNativeAPIGatewayServiceRateLimit", async function (
|
|
|
68
78
|
}
|
|
69
79
|
})
|
|
70
80
|
|
|
81
|
+
it("tse.v20201207.CreateWafDomains", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.CreateWafDomains({})
|
|
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
|
+
|
|
71
91
|
it("tse.v20201207.DescribeZookeeperServerInterfaces", async function () {
|
|
72
92
|
try {
|
|
73
93
|
const data = await client.DescribeZookeeperServerInterfaces({})
|
|
@@ -278,9 +298,9 @@ it("tse.v20201207.ModifyCloudNativeAPIGatewayRoute", async function () {
|
|
|
278
298
|
}
|
|
279
299
|
})
|
|
280
300
|
|
|
281
|
-
it("tse.v20201207.
|
|
301
|
+
it("tse.v20201207.CloseWafProtection", async function () {
|
|
282
302
|
try {
|
|
283
|
-
const data = await client.
|
|
303
|
+
const data = await client.CloseWafProtection({})
|
|
284
304
|
expect(data).to.be.ok
|
|
285
305
|
} catch(error) {
|
|
286
306
|
expect(error.requestId).to.be.ok
|
|
@@ -378,6 +398,16 @@ it("tse.v20201207.UpdateEngineInternetAccess", async function () {
|
|
|
378
398
|
}
|
|
379
399
|
})
|
|
380
400
|
|
|
401
|
+
it("tse.v20201207.OpenWafProtection", async function () {
|
|
402
|
+
try {
|
|
403
|
+
const data = await client.OpenWafProtection({})
|
|
404
|
+
expect(data).to.be.ok
|
|
405
|
+
} catch(error) {
|
|
406
|
+
expect(error.requestId).to.be.ok
|
|
407
|
+
expect(error.code).to.be.ok
|
|
408
|
+
}
|
|
409
|
+
})
|
|
410
|
+
|
|
381
411
|
it("tse.v20201207.ModifyCloudNativeAPIGateway", async function () {
|
|
382
412
|
try {
|
|
383
413
|
const data = await client.ModifyCloudNativeAPIGateway({})
|