tencentcloud-sdk-nodejs 4.0.362 → 4.0.363

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 (54) hide show
  1. package/CHANGELOG.md +194 -0
  2. package/SERVICE_CHANGELOG.md +305 -237
  3. package/package.json +1 -1
  4. package/products.md +9 -8
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ams/v20201229/ams_models.ts +7 -1
  7. package/src/services/cat/v20180409/cat_models.ts +1 -1
  8. package/src/services/ciam/v20220331/ciam_client.ts +48 -5
  9. package/src/services/ciam/v20220331/ciam_models.ts +434 -46
  10. package/src/services/dlc/v20210125/dlc_models.ts +1 -1
  11. package/src/services/index.ts +1 -0
  12. package/src/services/ocr/v20181119/ocr_client.ts +1 -1
  13. package/src/services/ocr/v20181119/ocr_models.ts +5 -0
  14. package/src/services/tcbr/index.ts +5 -0
  15. package/src/services/tcbr/v20220217/index.ts +6 -0
  16. package/src/services/tcbr/v20220217/tcbr_client.ts +130 -0
  17. package/src/services/tcbr/v20220217/tcbr_models.ts +876 -0
  18. package/src/services/teo/v20220106/teo_client.ts +25 -1
  19. package/src/services/teo/v20220106/teo_models.ts +141 -14
  20. package/src/services/vm/v20201229/vm_models.ts +7 -1
  21. package/src/services/vod/v20180717/vod_client.ts +27 -0
  22. package/src/services/vod/v20180717/vod_models.ts +232 -158
  23. package/tencentcloud/common/sdk_version.d.ts +1 -1
  24. package/tencentcloud/common/sdk_version.js +1 -1
  25. package/tencentcloud/services/ams/v20201229/ams_models.d.ts +6 -1
  26. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +1 -1
  27. package/tencentcloud/services/ciam/v20220331/ciam_client.d.ts +13 -1
  28. package/tencentcloud/services/ciam/v20220331/ciam_client.js +18 -0
  29. package/tencentcloud/services/ciam/v20220331/ciam_models.d.ts +370 -39
  30. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +1 -1
  31. package/tencentcloud/services/index.d.ts +1 -0
  32. package/tencentcloud/services/index.js +2 -0
  33. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -1
  34. package/tencentcloud/services/ocr/v20181119/ocr_client.js +1 -1
  35. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -0
  36. package/tencentcloud/services/tcbr/index.d.ts +6 -0
  37. package/tencentcloud/services/tcbr/index.js +7 -0
  38. package/tencentcloud/services/tcbr/v20220217/index.d.ts +6 -0
  39. package/tencentcloud/services/tcbr/v20220217/index.js +9 -0
  40. package/tencentcloud/services/tcbr/v20220217/tcbr_client.d.ts +38 -0
  41. package/tencentcloud/services/tcbr/v20220217/tcbr_client.js +73 -0
  42. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +723 -0
  43. package/tencentcloud/services/tcbr/v20220217/tcbr_models.js +18 -0
  44. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +9 -1
  45. package/tencentcloud/services/teo/v20220106/teo_client.js +12 -0
  46. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +118 -12
  47. package/tencentcloud/services/vm/v20201229/vm_models.d.ts +6 -1
  48. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +12 -1
  49. package/tencentcloud/services/vod/v20180717/vod_client.js +15 -0
  50. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +200 -136
  51. package/test/ciam.v20220331.test.js +30 -0
  52. package/test/tcbr.v20220217.test.js +91 -0
  53. package/test/teo.v20220106.test.js +20 -0
  54. package/test/vod.v20180717.test.js +20 -0
@@ -28,6 +28,16 @@ it("ciam.v20220331.DeleteUsers", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("ciam.v20220331.ListJobs", async function () {
32
+ try {
33
+ const data = await client.ListJobs({})
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("ciam.v20220331.UpdateUser", async function () {
32
42
  try {
33
43
  const data = await client.UpdateUser({})
@@ -98,6 +108,26 @@ it("ciam.v20220331.SetPassword", async function () {
98
108
  }
99
109
  })
100
110
 
111
+ it("ciam.v20220331.CreateFileExportUserJob", async function () {
112
+ try {
113
+ const data = await client.CreateFileExportUserJob({})
114
+ expect(data).to.be.ok
115
+ } catch(error) {
116
+ expect(error.requestId).to.be.ok
117
+ expect(error.code).to.be.ok
118
+ }
119
+ })
120
+
121
+ it("ciam.v20220331.CreateApiImportUserJob", async function () {
122
+ try {
123
+ const data = await client.CreateApiImportUserJob({})
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
+
101
131
  it("ciam.v20220331.LinkAccount", async function () {
102
132
  try {
103
133
  const data = await client.LinkAccount({})
@@ -0,0 +1,91 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.tcbr.v20220217.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("tcbr.v20220217.test.js", function () {
20
+
21
+ it("tcbr.v20220217.CreateCloudRunServer", async function () {
22
+ try {
23
+ const data = await client.CreateCloudRunServer({})
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("tcbr.v20220217.UpdateCloudRunServer", async function () {
32
+ try {
33
+ const data = await client.UpdateCloudRunServer({})
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("tcbr.v20220217.DescribeEnvBaseInfo", async function () {
42
+ try {
43
+ const data = await client.DescribeEnvBaseInfo({})
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("tcbr.v20220217.DescribeCloudRunServers", async function () {
52
+ try {
53
+ const data = await client.DescribeCloudRunServers({})
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("tcbr.v20220217.CreateCloudRunEnv", async function () {
62
+ try {
63
+ const data = await client.CreateCloudRunEnv({})
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("tcbr.v20220217.DescribeCloudRunEnvs", async function () {
72
+ try {
73
+ const data = await client.DescribeCloudRunEnvs({})
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("tcbr.v20220217.DescribeCloudRunServerDetail", async function () {
82
+ try {
83
+ const data = await client.DescribeCloudRunServerDetail({})
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
+ })
@@ -358,6 +358,16 @@ it("teo.v20220106.DescribeDDosAttackEventDetail", async function () {
358
358
  }
359
359
  })
360
360
 
361
+ it("teo.v20220106.DescribeTimingL7CacheData", async function () {
362
+ try {
363
+ const data = await client.DescribeTimingL7CacheData({})
364
+ expect(data).to.be.ok
365
+ } catch(error) {
366
+ expect(error.requestId).to.be.ok
367
+ expect(error.code).to.be.ok
368
+ }
369
+ })
370
+
361
371
  it("teo.v20220106.DescribeLoadBalancing", async function () {
362
372
  try {
363
373
  const data = await client.DescribeLoadBalancing({})
@@ -388,6 +398,16 @@ it("teo.v20220106.DescribeTimingL4Data", async function () {
388
398
  }
389
399
  })
390
400
 
401
+ it("teo.v20220106.DescribeTopL7CacheData", async function () {
402
+ try {
403
+ const data = await client.DescribeTopL7CacheData({})
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
+
391
411
  it("teo.v20220106.ScanDnsRecords", async function () {
392
412
  try {
393
413
  const data = await client.ScanDnsRecords({})
@@ -658,6 +658,16 @@ it("vod.v20180717.DescribeStorageRegions", async function () {
658
658
  }
659
659
  })
660
660
 
661
+ it("vod.v20180717.RefreshUrlCache", async function () {
662
+ try {
663
+ const data = await client.RefreshUrlCache({})
664
+ expect(data).to.be.ok
665
+ } catch(error) {
666
+ expect(error.requestId).to.be.ok
667
+ expect(error.code).to.be.ok
668
+ }
669
+ })
670
+
661
671
  it("vod.v20180717.DescribeEventsState", async function () {
662
672
  try {
663
673
  const data = await client.DescribeEventsState({})
@@ -1278,4 +1288,14 @@ it("vod.v20180717.DeleteImageSpriteTemplate", async function () {
1278
1288
  }
1279
1289
  })
1280
1290
 
1291
+ it("vod.v20180717.RestoreMedia", async function () {
1292
+ try {
1293
+ const data = await client.RestoreMedia({})
1294
+ expect(data).to.be.ok
1295
+ } catch(error) {
1296
+ expect(error.requestId).to.be.ok
1297
+ expect(error.code).to.be.ok
1298
+ }
1299
+ })
1300
+
1281
1301
  })