tencentcloud-sdk-nodejs 4.0.568 → 4.0.570

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 (94) hide show
  1. package/CHANGELOG.md +391 -0
  2. package/SERVICE_CHANGELOG.md +417 -91
  3. package/package.json +1 -1
  4. package/products.md +190 -190
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/billing/v20180709/billing_models.ts +4 -4
  7. package/src/services/bma/v20221115/bma_models.ts +5 -0
  8. package/src/services/cdn/v20180606/cdn_models.ts +7 -7
  9. package/src/services/cfs/v20190719/cfs_models.ts +9 -3
  10. package/src/services/ckafka/v20190819/ckafka_client.ts +18 -6
  11. package/src/services/ckafka/v20190819/ckafka_models.ts +46 -1
  12. package/src/services/cwp/v20180228/cwp_client.ts +26 -13
  13. package/src/services/cwp/v20180228/cwp_models.ts +261 -72
  14. package/src/services/dcdb/v20180411/dcdb_models.ts +55 -49
  15. package/src/services/ess/v20201111/ess_client.ts +2 -1
  16. package/src/services/ess/v20201111/ess_models.ts +34 -4
  17. package/src/services/live/v20180801/live_models.ts +1 -1
  18. package/src/services/mariadb/v20170312/mariadb_models.ts +60 -54
  19. package/src/services/mongodb/v20190725/mongodb_client.ts +1 -1
  20. package/src/services/mongodb/v20190725/mongodb_models.ts +7 -7
  21. package/src/services/monitor/v20180724/monitor_client.ts +3 -1
  22. package/src/services/ocr/v20181119/ocr_models.ts +11 -1
  23. package/src/services/region/v20220627/region_models.ts +14 -4
  24. package/src/services/ssl/v20191205/ssl_models.ts +52 -47
  25. package/src/services/tcb/v20180608/tcb_models.ts +57 -47
  26. package/src/services/tcr/v20190924/tcr_client.ts +8 -4
  27. package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
  28. package/src/services/thpc/index.ts +2 -0
  29. package/src/services/thpc/v20230321/index.ts +6 -0
  30. package/src/services/thpc/v20230321/thpc_client.ts +250 -0
  31. package/src/services/thpc/v20230321/thpc_models.ts +1558 -0
  32. package/src/services/tiw/v20190919/tiw_client.ts +31 -17
  33. package/src/services/tiw/v20190919/tiw_models.ts +151 -21
  34. package/src/services/trtc/v20190722/trtc_client.ts +3 -3
  35. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  36. package/src/services/tse/v20201207/tse_models.ts +30 -0
  37. package/src/services/tts/v20190823/tts_models.ts +10 -4
  38. package/src/services/vod/v20180717/vod_client.ts +2 -0
  39. package/src/services/vod/v20180717/vod_models.ts +22 -2
  40. package/src/services/vpc/v20170312/vpc_client.ts +1 -1
  41. package/tencentcloud/common/sdk_version.d.ts +1 -1
  42. package/tencentcloud/common/sdk_version.js +1 -1
  43. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -4
  44. package/tencentcloud/services/bma/v20221115/bma_models.d.ts +4 -0
  45. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +7 -7
  46. package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +8 -2
  47. package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +7 -3
  48. package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +9 -3
  49. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +39 -1
  50. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +9 -5
  51. package/tencentcloud/services/cwp/v20180228/cwp_client.js +12 -6
  52. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +228 -72
  53. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +54 -49
  54. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
  55. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +30 -4
  56. package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -1
  57. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +59 -54
  58. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +1 -1
  59. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +1 -1
  60. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +7 -7
  61. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +3 -1
  62. package/tencentcloud/services/monitor/v20180724/monitor_client.js +3 -1
  63. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +10 -1
  64. package/tencentcloud/services/region/v20220627/region_models.d.ts +12 -4
  65. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +51 -47
  66. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +55 -47
  67. package/tencentcloud/services/tcr/v20190924/tcr_client.d.ts +6 -2
  68. package/tencentcloud/services/tcr/v20190924/tcr_client.js +6 -2
  69. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
  70. package/tencentcloud/services/thpc/index.d.ts +4 -0
  71. package/tencentcloud/services/thpc/index.js +2 -0
  72. package/tencentcloud/services/thpc/v20230321/index.d.ts +6 -0
  73. package/tencentcloud/services/thpc/v20230321/index.js +9 -0
  74. package/tencentcloud/services/thpc/v20230321/thpc_client.d.ts +77 -0
  75. package/tencentcloud/services/thpc/v20230321/thpc_client.js +128 -0
  76. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +1314 -0
  77. package/tencentcloud/services/thpc/v20230321/thpc_models.js +18 -0
  78. package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +11 -7
  79. package/tencentcloud/services/tiw/v20190919/tiw_client.js +15 -9
  80. package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +127 -19
  81. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +3 -3
  82. package/tencentcloud/services/trtc/v20190722/trtc_client.js +3 -3
  83. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  84. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +25 -0
  85. package/tencentcloud/services/tts/v20190823/tts_models.d.ts +9 -4
  86. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +2 -0
  87. package/tencentcloud/services/vod/v20180717/vod_client.js +2 -0
  88. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +20 -2
  89. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
  90. package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
  91. package/test/ckafka.v20190819.test.js +12 -2
  92. package/test/cwp.v20180228.test.js +14 -4
  93. package/test/thpc.v20230321.test.js +171 -0
  94. package/test/tiw.v20190919.test.js +22 -12
@@ -0,0 +1,171 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.thpc.v20230321.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("thpc.v20230321.test.js", function () {
20
+
21
+ it("thpc.v20230321.DescribeClusterStorageOption", async function () {
22
+ try {
23
+ const data = await client.DescribeClusterStorageOption({})
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("thpc.v20230321.DeleteNodes", async function () {
32
+ try {
33
+ const data = await client.DeleteNodes({})
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("thpc.v20230321.CreateCluster", async function () {
42
+ try {
43
+ const data = await client.CreateCluster({})
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("thpc.v20230321.AddClusterStorageOption", async function () {
52
+ try {
53
+ const data = await client.AddClusterStorageOption({})
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("thpc.v20230321.SetAutoScalingConfiguration", async function () {
62
+ try {
63
+ const data = await client.SetAutoScalingConfiguration({})
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("thpc.v20230321.AddQueue", async function () {
72
+ try {
73
+ const data = await client.AddQueue({})
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("thpc.v20230321.DescribeNodes", async function () {
82
+ try {
83
+ const data = await client.DescribeNodes({})
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("thpc.v20230321.DeleteQueue", async function () {
92
+ try {
93
+ const data = await client.DeleteQueue({})
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("thpc.v20230321.DeleteClusterStorageOption", async function () {
102
+ try {
103
+ const data = await client.DeleteClusterStorageOption({})
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
+ it("thpc.v20230321.AddNodes", async function () {
112
+ try {
113
+ const data = await client.AddNodes({})
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("thpc.v20230321.DescribeAutoScalingConfiguration", async function () {
122
+ try {
123
+ const data = await client.DescribeAutoScalingConfiguration({})
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
+
131
+ it("thpc.v20230321.DescribeClusters", async function () {
132
+ try {
133
+ const data = await client.DescribeClusters({})
134
+ expect(data).to.be.ok
135
+ } catch(error) {
136
+ expect(error.requestId).to.be.ok
137
+ expect(error.code).to.be.ok
138
+ }
139
+ })
140
+
141
+ it("thpc.v20230321.DeleteCluster", async function () {
142
+ try {
143
+ const data = await client.DeleteCluster({})
144
+ expect(data).to.be.ok
145
+ } catch(error) {
146
+ expect(error.requestId).to.be.ok
147
+ expect(error.code).to.be.ok
148
+ }
149
+ })
150
+
151
+ it("thpc.v20230321.DescribeClusterActivities", async function () {
152
+ try {
153
+ const data = await client.DescribeClusterActivities({})
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
+
161
+ it("thpc.v20230321.DescribeQueues", async function () {
162
+ try {
163
+ const data = await client.DescribeQueues({})
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
+
171
+ })
@@ -78,6 +78,16 @@ it("tiw.v20190919.SetVideoGenerationTaskCallback", async function () {
78
78
  }
79
79
  })
80
80
 
81
+ it("tiw.v20190919.DescribeRecordSearch", async function () {
82
+ try {
83
+ const data = await client.DescribeRecordSearch({})
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
+
81
91
  it("tiw.v20190919.CreateVideoGenerationTask", async function () {
82
92
  try {
83
93
  const data = await client.CreateVideoGenerationTask({})
@@ -248,16 +258,6 @@ it("tiw.v20190919.DescribeTranscodeCallback", async function () {
248
258
  }
249
259
  })
250
260
 
251
- it("tiw.v20190919.CreateApplication", async function () {
252
- try {
253
- const data = await client.CreateApplication({})
254
- expect(data).to.be.ok
255
- } catch(error) {
256
- expect(error.requestId).to.be.ok
257
- expect(error.code).to.be.ok
258
- }
259
- })
260
-
261
261
  it("tiw.v20190919.DescribeAPIService", async function () {
262
262
  try {
263
263
  const data = await client.DescribeAPIService({})
@@ -358,6 +358,16 @@ it("tiw.v20190919.DescribeOfflineRecordCallback", async function () {
358
358
  }
359
359
  })
360
360
 
361
+ it("tiw.v20190919.DescribeTranscode", async function () {
362
+ try {
363
+ const data = await client.DescribeTranscode({})
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("tiw.v20190919.CreateOfflineRecord", async function () {
362
372
  try {
363
373
  const data = await client.CreateOfflineRecord({})
@@ -408,9 +418,9 @@ it("tiw.v20190919.DescribeVideoGenerationTask", async function () {
408
418
  }
409
419
  })
410
420
 
411
- it("tiw.v20190919.DescribeTranscode", async function () {
421
+ it("tiw.v20190919.CreateApplication", async function () {
412
422
  try {
413
- const data = await client.DescribeTranscode({})
423
+ const data = await client.CreateApplication({})
414
424
  expect(data).to.be.ok
415
425
  } catch(error) {
416
426
  expect(error.requestId).to.be.ok