tencentcloud-sdk-nodejs 4.0.697 → 4.0.698

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/SERVICE_CHANGELOG.md +103 -185
  3. package/package.json +1 -1
  4. package/products.md +4 -3
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdwpg/index.ts +5 -0
  7. package/src/services/cdwpg/v20201230/cdwpg_client.ts +59 -0
  8. package/src/services/cdwpg/v20201230/cdwpg_models.ts +187 -0
  9. package/src/services/cdwpg/v20201230/index.ts +6 -0
  10. package/src/services/dbbrain/v20210527/dbbrain_client.ts +53 -12
  11. package/src/services/dbbrain/v20210527/dbbrain_models.ts +372 -82
  12. package/src/services/index.ts +1 -0
  13. package/src/services/teo/v20220901/teo_client.ts +2 -0
  14. package/src/services/teo/v20220901/teo_models.ts +62 -0
  15. package/tencentcloud/common/sdk_version.d.ts +1 -1
  16. package/tencentcloud/common/sdk_version.js +1 -1
  17. package/tencentcloud/services/cdwpg/index.d.ts +6 -0
  18. package/tencentcloud/services/cdwpg/index.js +7 -0
  19. package/tencentcloud/services/cdwpg/v20201230/cdwpg_client.d.ts +18 -0
  20. package/tencentcloud/services/cdwpg/v20201230/cdwpg_client.js +43 -0
  21. package/tencentcloud/services/cdwpg/v20201230/cdwpg_models.d.ts +163 -0
  22. package/tencentcloud/services/cdwpg/v20201230/cdwpg_models.js +18 -0
  23. package/tencentcloud/services/cdwpg/v20201230/index.d.ts +6 -0
  24. package/tencentcloud/services/cdwpg/v20201230/index.js +9 -0
  25. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +15 -3
  26. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +21 -3
  27. package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +361 -82
  28. package/tencentcloud/services/index.d.ts +1 -0
  29. package/tencentcloud/services/index.js +2 -0
  30. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +60 -0
  31. package/test/cdwpg.v20201230.test.js +41 -0
  32. package/test/dbbrain.v20210527.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.cdwpg.v20201230.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("cdwpg.v20201230.test.js", function () {
20
+
21
+ it("cdwpg.v20201230.DestroyInstanceByApi", async function () {
22
+ try {
23
+ const data = await client.DestroyInstanceByApi({})
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("cdwpg.v20201230.CreateInstanceByApi", async function () {
32
+ try {
33
+ const data = await client.CreateInstanceByApi({})
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
+ })
@@ -188,6 +188,16 @@ it("dbbrain.v20210527.DescribeAuditInstanceList", async function () {
188
188
  }
189
189
  })
190
190
 
191
+ it("dbbrain.v20210527.DescribeTopSpaceSchemaTimeSeries", async function () {
192
+ try {
193
+ const data = await client.DescribeTopSpaceSchemaTimeSeries({})
194
+ expect(data).to.be.ok
195
+ } catch(error) {
196
+ expect(error.requestId).to.be.ok
197
+ expect(error.code).to.be.ok
198
+ }
199
+ })
200
+
191
201
  it("dbbrain.v20210527.DescribeSlowLogTimeSeriesStats", async function () {
192
202
  try {
193
203
  const data = await client.DescribeSlowLogTimeSeriesStats({})
@@ -198,6 +208,16 @@ it("dbbrain.v20210527.DescribeSlowLogTimeSeriesStats", async function () {
198
208
  }
199
209
  })
200
210
 
211
+ it("dbbrain.v20210527.DescribeRedisProcessList", async function () {
212
+ try {
213
+ const data = await client.DescribeRedisProcessList({})
214
+ expect(data).to.be.ok
215
+ } catch(error) {
216
+ expect(error.requestId).to.be.ok
217
+ expect(error.code).to.be.ok
218
+ }
219
+ })
220
+
201
221
  it("dbbrain.v20210527.DescribeSlowLogUserHostStats", async function () {
202
222
  try {
203
223
  const data = await client.DescribeSlowLogUserHostStats({})
@@ -478,9 +498,19 @@ it("dbbrain.v20210527.AddUserContact", async function () {
478
498
  }
479
499
  })
480
500
 
481
- it("dbbrain.v20210527.DescribeTopSpaceSchemaTimeSeries", async function () {
501
+ it("dbbrain.v20210527.DescribeIndexRecommendInfo", async function () {
482
502
  try {
483
- const data = await client.DescribeTopSpaceSchemaTimeSeries({})
503
+ const data = await client.DescribeIndexRecommendInfo({})
504
+ expect(data).to.be.ok
505
+ } catch(error) {
506
+ expect(error.requestId).to.be.ok
507
+ expect(error.code).to.be.ok
508
+ }
509
+ })
510
+
511
+ it("dbbrain.v20210527.DescribeIndexRecommendAggregationSlowLogs", async function () {
512
+ try {
513
+ const data = await client.DescribeIndexRecommendAggregationSlowLogs({})
484
514
  expect(data).to.be.ok
485
515
  } catch(error) {
486
516
  expect(error.requestId).to.be.ok