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.
- package/CHANGELOG.md +147 -0
- package/SERVICE_CHANGELOG.md +219 -69
- package/package.json +1 -1
- package/products.md +9 -9
- package/src/common/abstract_client.ts +9 -6
- package/src/common/http/http_connection.ts +7 -3
- package/src/common/interface.ts +6 -0
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +55 -45
- package/src/services/cdb/v20170320/cdb_models.ts +66 -6
- package/src/services/cdn/v20180606/cdn_models.ts +12 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +6 -5
- package/src/services/cls/v20201016/cls_client.ts +1 -1
- package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +13 -1
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +46 -6
- package/src/services/ssa/v20180608/ssa_client.ts +15 -1
- package/src/services/ssa/v20180608/ssa_models.ts +181 -44
- package/src/services/thpc/v20211109/thpc_models.ts +2 -2
- package/src/services/waf/v20180125/waf_client.ts +271 -80
- package/src/services/waf/v20180125/waf_models.ts +973 -103
- package/tencentcloud/common/abstract_client.d.ts +3 -3
- package/tencentcloud/common/abstract_client.js +5 -3
- package/tencentcloud/common/http/http_connection.d.ts +4 -2
- package/tencentcloud/common/http/http_connection.js +5 -5
- package/tencentcloud/common/interface.d.ts +6 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +52 -44
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +54 -6
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +10 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -4
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +5 -1
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +6 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +40 -6
- package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +5 -1
- package/tencentcloud/services/ssa/v20180608/ssa_client.js +6 -0
- package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +152 -38
- package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -2
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +91 -27
- package/tencentcloud/services/waf/v20180125/waf_client.js +133 -39
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +810 -77
- package/test/iotexplorer.v20190423.test.js +10 -0
- package/test/ssa.v20180608.test.js +10 -0
- 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.
|
|
21
|
+
it("waf.v20180125.DescribeAccessExports", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
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.
|
|
51
|
+
it("waf.v20180125.DeleteAccessExport", async function () {
|
|
42
52
|
try {
|
|
43
|
-
const data = await client.
|
|
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.
|
|
61
|
+
it("waf.v20180125.DeleteDomainWhiteRules", async function () {
|
|
52
62
|
try {
|
|
53
|
-
const data = await client.
|
|
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.
|
|
71
|
+
it("waf.v20180125.DescribeAccessIndex", async function () {
|
|
62
72
|
try {
|
|
63
|
-
const data = await client.
|
|
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.
|
|
191
|
+
it("waf.v20180125.DescribeIpAccessControl", async function () {
|
|
82
192
|
try {
|
|
83
|
-
const data = await client.
|
|
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.
|
|
201
|
+
it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
|
|
92
202
|
try {
|
|
93
|
-
const data = await client.
|
|
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.
|
|
211
|
+
it("waf.v20180125.ModifyWafAutoDenyRules", async function () {
|
|
102
212
|
try {
|
|
103
|
-
const data = await client.
|
|
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.
|
|
231
|
+
it("waf.v20180125.DeleteAttackDownloadRecord", async function () {
|
|
122
232
|
try {
|
|
123
|
-
const data = await client.
|
|
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.
|
|
241
|
+
it("waf.v20180125.DescribeWafAutoDenyRules", async function () {
|
|
132
242
|
try {
|
|
133
|
-
const data = await client.
|
|
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.
|
|
251
|
+
it("waf.v20180125.DeleteDownloadRecord", async function () {
|
|
142
252
|
try {
|
|
143
|
-
const data = await client.
|
|
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.
|
|
261
|
+
it("waf.v20180125.DeleteSession", async function () {
|
|
152
262
|
try {
|
|
153
|
-
const data = await client.
|
|
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.
|
|
271
|
+
it("waf.v20180125.DescribeDomainWhiteRules", async function () {
|
|
162
272
|
try {
|
|
163
|
-
const data = await client.
|
|
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.
|
|
281
|
+
it("waf.v20180125.DescribeWafThreatenIntelligence", async function () {
|
|
172
282
|
try {
|
|
173
|
-
const data = await client.
|
|
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
|