tencentcloud-sdk-nodejs 4.0.326 → 4.0.327

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 (46) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/SERVICE_CHANGELOG.md +219 -69
  3. package/package.json +1 -1
  4. package/products.md +9 -9
  5. package/src/common/abstract_client.ts +9 -6
  6. package/src/common/http/http_connection.ts +7 -3
  7. package/src/common/interface.ts +6 -0
  8. package/src/common/sdk_version.ts +1 -1
  9. package/src/services/antiddos/v20200309/antiddos_models.ts +55 -45
  10. package/src/services/cdb/v20170320/cdb_models.ts +66 -6
  11. package/src/services/cdn/v20180606/cdn_models.ts +12 -0
  12. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -5
  13. package/src/services/cls/v20201016/cls_client.ts +1 -1
  14. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +13 -1
  15. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +46 -6
  16. package/src/services/ssa/v20180608/ssa_client.ts +15 -1
  17. package/src/services/ssa/v20180608/ssa_models.ts +181 -44
  18. package/src/services/thpc/v20211109/thpc_models.ts +2 -2
  19. package/src/services/waf/v20180125/waf_client.ts +271 -80
  20. package/src/services/waf/v20180125/waf_models.ts +973 -103
  21. package/tencentcloud/common/abstract_client.d.ts +3 -3
  22. package/tencentcloud/common/abstract_client.js +5 -3
  23. package/tencentcloud/common/http/http_connection.d.ts +4 -2
  24. package/tencentcloud/common/http/http_connection.js +5 -5
  25. package/tencentcloud/common/interface.d.ts +6 -0
  26. package/tencentcloud/common/sdk_version.d.ts +1 -1
  27. package/tencentcloud/common/sdk_version.js +1 -1
  28. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +52 -44
  29. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +54 -6
  30. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +10 -0
  31. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -4
  32. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  33. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  34. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +5 -1
  35. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +6 -0
  36. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +40 -6
  37. package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +5 -1
  38. package/tencentcloud/services/ssa/v20180608/ssa_client.js +6 -0
  39. package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +152 -38
  40. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -2
  41. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +91 -27
  42. package/tencentcloud/services/waf/v20180125/waf_client.js +133 -39
  43. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +810 -77
  44. package/test/iotexplorer.v20190423.test.js +10 -0
  45. package/test/ssa.v20180608.test.js +10 -0
  46. package/test/waf.v20180125.test.js +176 -26
@@ -428,6 +428,16 @@ it("iotexplorer.v20190423.DescribeTopicRule", async function () {
428
428
  }
429
429
  })
430
430
 
431
+ it("iotexplorer.v20190423.PublishBroadcastMessage", async function () {
432
+ try {
433
+ const data = await client.PublishBroadcastMessage({})
434
+ expect(data).to.be.ok
435
+ } catch(error) {
436
+ expect(error.requestId).to.be.ok
437
+ expect(error.code).to.be.ok
438
+ }
439
+ })
440
+
431
441
  it("iotexplorer.v20190423.UnbindProducts", async function () {
432
442
  try {
433
443
  const data = await client.UnbindProducts({})
@@ -218,4 +218,14 @@ it("ssa.v20180608.DescribeVulDetail", async function () {
218
218
  }
219
219
  })
220
220
 
221
+ it("ssa.v20180608.DescribeSocCheckResultList", async function () {
222
+ try {
223
+ const data = await client.DescribeSocCheckResultList({})
224
+ expect(data).to.be.ok
225
+ } catch(error) {
226
+ expect(error.requestId).to.be.ok
227
+ expect(error.code).to.be.ok
228
+ }
229
+ })
230
+
221
231
  })
@@ -18,9 +18,19 @@ const client = new tencentcloud.waf.v20180125.Client({
18
18
  })
19
19
  describe("waf.v20180125.test.js", function () {
20
20
 
21
- it("waf.v20180125.DeleteAttackDownloadRecord", async function () {
21
+ it("waf.v20180125.DescribeAccessExports", async function () {
22
22
  try {
23
- const data = await client.DeleteAttackDownloadRecord({})
23
+ const data = await client.DescribeAccessExports({})
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("waf.v20180125.DescribeCustomRules", async function () {
32
+ try {
33
+ const data = await client.DescribeCustomRules({})
24
34
  expect(data).to.be.ok
25
35
  } catch(error) {
26
36
  expect(error.requestId).to.be.ok
@@ -38,9 +48,9 @@ it("waf.v20180125.ModifyCustomRuleStatus", async function () {
38
48
  }
39
49
  })
40
50
 
41
- it("waf.v20180125.DescribeAccessExports", async function () {
51
+ it("waf.v20180125.DeleteAccessExport", async function () {
42
52
  try {
43
- const data = await client.DescribeAccessExports({})
53
+ const data = await client.DeleteAccessExport({})
44
54
  expect(data).to.be.ok
45
55
  } catch(error) {
46
56
  expect(error.requestId).to.be.ok
@@ -48,9 +58,9 @@ it("waf.v20180125.DescribeAccessExports", async function () {
48
58
  }
49
59
  })
50
60
 
51
- it("waf.v20180125.DescribeCustomRules", async function () {
61
+ it("waf.v20180125.DeleteDomainWhiteRules", async function () {
52
62
  try {
53
- const data = await client.DescribeCustomRules({})
63
+ const data = await client.DeleteDomainWhiteRules({})
54
64
  expect(data).to.be.ok
55
65
  } catch(error) {
56
66
  expect(error.requestId).to.be.ok
@@ -58,9 +68,109 @@ it("waf.v20180125.DescribeCustomRules", async function () {
58
68
  }
59
69
  })
60
70
 
61
- it("waf.v20180125.DeleteDownloadRecord", async function () {
71
+ it("waf.v20180125.DescribeAccessIndex", async function () {
62
72
  try {
63
- const data = await client.DeleteDownloadRecord({})
73
+ const data = await client.DescribeAccessIndex({})
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("waf.v20180125.CreateAccessExport", async function () {
82
+ try {
83
+ const data = await client.CreateAccessExport({})
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("waf.v20180125.DeleteIpAccessControl", async function () {
92
+ try {
93
+ const data = await client.DeleteIpAccessControl({})
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("waf.v20180125.ModifyWafAutoDenyStatus", async function () {
102
+ try {
103
+ const data = await client.ModifyWafAutoDenyStatus({})
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("waf.v20180125.ModifyAccessPeriod", async function () {
112
+ try {
113
+ const data = await client.ModifyAccessPeriod({})
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("waf.v20180125.DescribeFlowTrend", async function () {
122
+ try {
123
+ const data = await client.DescribeFlowTrend({})
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("waf.v20180125.CreateAttackDownloadTask", async function () {
132
+ try {
133
+ const data = await client.CreateAttackDownloadTask({})
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("waf.v20180125.ModifyDomainWhiteRule", async function () {
142
+ try {
143
+ const data = await client.ModifyDomainWhiteRule({})
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("waf.v20180125.DescribeAccessFastAnalysis", async function () {
152
+ try {
153
+ const data = await client.DescribeAccessFastAnalysis({})
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("waf.v20180125.DescribeAutoDenyIP", async function () {
162
+ try {
163
+ const data = await client.DescribeAutoDenyIP({})
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
+ it("waf.v20180125.DescribeWafAutoDenyStatus", async function () {
172
+ try {
173
+ const data = await client.DescribeWafAutoDenyStatus({})
64
174
  expect(data).to.be.ok
65
175
  } catch(error) {
66
176
  expect(error.requestId).to.be.ok
@@ -78,9 +188,9 @@ it("waf.v20180125.AddCustomRule", async function () {
78
188
  }
79
189
  })
80
190
 
81
- it("waf.v20180125.DeleteSession", async function () {
191
+ it("waf.v20180125.DescribeIpAccessControl", async function () {
82
192
  try {
83
- const data = await client.DeleteSession({})
193
+ const data = await client.DescribeIpAccessControl({})
84
194
  expect(data).to.be.ok
85
195
  } catch(error) {
86
196
  expect(error.requestId).to.be.ok
@@ -88,9 +198,9 @@ it("waf.v20180125.DeleteSession", async function () {
88
198
  }
89
199
  })
90
200
 
91
- it("waf.v20180125.SearchAccessLog", async function () {
201
+ it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
92
202
  try {
93
- const data = await client.SearchAccessLog({})
203
+ const data = await client.ModifyWafThreatenIntelligence({})
94
204
  expect(data).to.be.ok
95
205
  } catch(error) {
96
206
  expect(error.requestId).to.be.ok
@@ -98,9 +208,9 @@ it("waf.v20180125.SearchAccessLog", async function () {
98
208
  }
99
209
  })
100
210
 
101
- it("waf.v20180125.DeleteAccessExport", async function () {
211
+ it("waf.v20180125.ModifyWafAutoDenyRules", async function () {
102
212
  try {
103
- const data = await client.DeleteAccessExport({})
213
+ const data = await client.ModifyWafAutoDenyRules({})
104
214
  expect(data).to.be.ok
105
215
  } catch(error) {
106
216
  expect(error.requestId).to.be.ok
@@ -118,9 +228,9 @@ it("waf.v20180125.DescribeUserClbWafRegions", async function () {
118
228
  }
119
229
  })
120
230
 
121
- it("waf.v20180125.ModifyAccessPeriod", async function () {
231
+ it("waf.v20180125.DeleteAttackDownloadRecord", async function () {
122
232
  try {
123
- const data = await client.ModifyAccessPeriod({})
233
+ const data = await client.DeleteAttackDownloadRecord({})
124
234
  expect(data).to.be.ok
125
235
  } catch(error) {
126
236
  expect(error.requestId).to.be.ok
@@ -128,9 +238,9 @@ it("waf.v20180125.ModifyAccessPeriod", async function () {
128
238
  }
129
239
  })
130
240
 
131
- it("waf.v20180125.DescribeFlowTrend", async function () {
241
+ it("waf.v20180125.DescribeWafAutoDenyRules", async function () {
132
242
  try {
133
- const data = await client.DescribeFlowTrend({})
243
+ const data = await client.DescribeWafAutoDenyRules({})
134
244
  expect(data).to.be.ok
135
245
  } catch(error) {
136
246
  expect(error.requestId).to.be.ok
@@ -138,9 +248,9 @@ it("waf.v20180125.DescribeFlowTrend", async function () {
138
248
  }
139
249
  })
140
250
 
141
- it("waf.v20180125.DescribeAccessFastAnalysis", async function () {
251
+ it("waf.v20180125.DeleteDownloadRecord", async function () {
142
252
  try {
143
- const data = await client.DescribeAccessFastAnalysis({})
253
+ const data = await client.DeleteDownloadRecord({})
144
254
  expect(data).to.be.ok
145
255
  } catch(error) {
146
256
  expect(error.requestId).to.be.ok
@@ -148,9 +258,9 @@ it("waf.v20180125.DescribeAccessFastAnalysis", async function () {
148
258
  }
149
259
  })
150
260
 
151
- it("waf.v20180125.DescribeAccessIndex", async function () {
261
+ it("waf.v20180125.DeleteSession", async function () {
152
262
  try {
153
- const data = await client.DescribeAccessIndex({})
263
+ const data = await client.DeleteSession({})
154
264
  expect(data).to.be.ok
155
265
  } catch(error) {
156
266
  expect(error.requestId).to.be.ok
@@ -158,9 +268,9 @@ it("waf.v20180125.DescribeAccessIndex", async function () {
158
268
  }
159
269
  })
160
270
 
161
- it("waf.v20180125.CreateAccessExport", async function () {
271
+ it("waf.v20180125.DescribeDomainWhiteRules", async function () {
162
272
  try {
163
- const data = await client.CreateAccessExport({})
273
+ const data = await client.DescribeDomainWhiteRules({})
164
274
  expect(data).to.be.ok
165
275
  } catch(error) {
166
276
  expect(error.requestId).to.be.ok
@@ -168,9 +278,49 @@ it("waf.v20180125.CreateAccessExport", async function () {
168
278
  }
169
279
  })
170
280
 
171
- it("waf.v20180125.CreateAttackDownloadTask", async function () {
281
+ it("waf.v20180125.DescribeWafThreatenIntelligence", async function () {
172
282
  try {
173
- const data = await client.CreateAttackDownloadTask({})
283
+ const data = await client.DescribeWafThreatenIntelligence({})
284
+ expect(data).to.be.ok
285
+ } catch(error) {
286
+ expect(error.requestId).to.be.ok
287
+ expect(error.code).to.be.ok
288
+ }
289
+ })
290
+
291
+ it("waf.v20180125.SearchAccessLog", async function () {
292
+ try {
293
+ const data = await client.SearchAccessLog({})
294
+ expect(data).to.be.ok
295
+ } catch(error) {
296
+ expect(error.requestId).to.be.ok
297
+ expect(error.code).to.be.ok
298
+ }
299
+ })
300
+
301
+ it("waf.v20180125.DescribeIpHitItems", async function () {
302
+ try {
303
+ const data = await client.DescribeIpHitItems({})
304
+ expect(data).to.be.ok
305
+ } catch(error) {
306
+ expect(error.requestId).to.be.ok
307
+ expect(error.code).to.be.ok
308
+ }
309
+ })
310
+
311
+ it("waf.v20180125.AddDomainWhiteRule", async function () {
312
+ try {
313
+ const data = await client.AddDomainWhiteRule({})
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
+
321
+ it("waf.v20180125.UpsertIpAccessControl", async function () {
322
+ try {
323
+ const data = await client.UpsertIpAccessControl({})
174
324
  expect(data).to.be.ok
175
325
  } catch(error) {
176
326
  expect(error.requestId).to.be.ok