tencentcloud-sdk-nodejs-waf 4.0.1053 → 4.1.1
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/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/waf/index.js +4 -0
- package/es/services/waf/v20180125/index.js +6 -0
- package/es/services/waf/v20180125/waf_client.js +468 -0
- package/es/services/waf/v20180125/waf_models.js +0 -0
- package/package.json +24 -8
- package/tencentcloud/services/waf/v20180125/index.js +2 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +2 -1
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +4 -0
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/waf/index.ts +0 -5
- package/src/services/waf/v20180125/index.ts +0 -6
- package/src/services/waf/v20180125/waf_client.ts +0 -1992
- package/src/services/waf/v20180125/waf_models.ts +0 -10912
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
52
52
|
|
|
53
53
|
## 通过源码包安装
|
|
54
54
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
1. clone 代码到本地:
|
|
56
|
+
```
|
|
57
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
58
|
+
# 或者
|
|
59
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
60
|
+
```
|
|
61
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
62
|
+
```
|
|
63
|
+
npm install && npm run build
|
|
64
|
+
```
|
|
65
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
66
|
+
```
|
|
67
|
+
npm pack
|
|
68
|
+
```
|
|
69
|
+
4. 安装包到你的项目里:
|
|
70
|
+
```
|
|
71
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
72
|
+
```
|
|
59
73
|
|
|
60
74
|
# 示例
|
|
61
75
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { waf } from "./waf";
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("waf.tencentcloudapi.com", "2018-01-25", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeAttackType(req, cb) {
|
|
7
|
+
return this.request("DescribeAttackType", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DescribeDomainDetailsClb(req, cb) {
|
|
10
|
+
return this.request("DescribeDomainDetailsClb", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async DescribeDomains(req, cb) {
|
|
13
|
+
return this.request("DescribeDomains", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DescribeAccessIndex(req, cb) {
|
|
16
|
+
return this.request("DescribeAccessIndex", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async GetAttackTotalCount(req, cb) {
|
|
19
|
+
return this.request("GetAttackTotalCount", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async ImportIpAccessControl(req, cb) {
|
|
22
|
+
return this.request("ImportIpAccessControl", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async AddCustomWhiteRule(req, cb) {
|
|
25
|
+
return this.request("AddCustomWhiteRule", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DeleteIpAccessControl(req, cb) {
|
|
28
|
+
return this.request("DeleteIpAccessControl", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DescribeAreaBanAreas(req, cb) {
|
|
31
|
+
return this.request("DescribeAreaBanAreas", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async ModifyCustomRule(req, cb) {
|
|
34
|
+
return this.request("ModifyCustomRule", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async ModifyHostFlowMode(req, cb) {
|
|
37
|
+
return this.request("ModifyHostFlowMode", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async ModifyInstanceQpsLimit(req, cb) {
|
|
40
|
+
return this.request("ModifyInstanceQpsLimit", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeApiListVersionTwo(req, cb) {
|
|
43
|
+
return this.request("DescribeApiListVersionTwo", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeSpartaProtectionInfo(req, cb) {
|
|
46
|
+
return this.request("DescribeSpartaProtectionInfo", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async DescribeAutoDenyIP(req, cb) {
|
|
49
|
+
return this.request("DescribeAutoDenyIP", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async DeleteCustomWhiteRule(req, cb) {
|
|
52
|
+
return this.request("DeleteCustomWhiteRule", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async GetAttackDownloadRecords(req, cb) {
|
|
55
|
+
return this.request("GetAttackDownloadRecords", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeApiDetail(req, cb) {
|
|
58
|
+
return this.request("DescribeApiDetail", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async DescribeScanIp(req, cb) {
|
|
61
|
+
return this.request("DescribeScanIp", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DeleteCustomRule(req, cb) {
|
|
64
|
+
return this.request("DeleteCustomRule", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async ModifyAntiFakeUrl(req, cb) {
|
|
67
|
+
return this.request("ModifyAntiFakeUrl", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async ModifySpartaProtection(req, cb) {
|
|
70
|
+
return this.request("ModifySpartaProtection", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async ModifyInstanceElasticMode(req, cb) {
|
|
73
|
+
return this.request("ModifyInstanceElasticMode", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async ModifyApiAnalyzeStatus(req, cb) {
|
|
76
|
+
return this.request("ModifyApiAnalyzeStatus", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async ModifyWafAutoDenyRules(req, cb) {
|
|
79
|
+
return this.request("ModifyWafAutoDenyRules", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DescribeUserDomainInfo(req, cb) {
|
|
82
|
+
return this.request("DescribeUserDomainInfo", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async DescribeProtectionModes(req, cb) {
|
|
85
|
+
return this.request("DescribeProtectionModes", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeAntiInfoLeakageRules(req, cb) {
|
|
88
|
+
return this.request("DescribeAntiInfoLeakageRules", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async SearchAccessLog(req, cb) {
|
|
91
|
+
return this.request("SearchAccessLog", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async DescribeWafThreatenIntelligence(req, cb) {
|
|
94
|
+
return this.request("DescribeWafThreatenIntelligence", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async DescribeIpHitItems(req, cb) {
|
|
97
|
+
return this.request("DescribeIpHitItems", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DeleteSession(req, cb) {
|
|
100
|
+
return this.request("DeleteSession", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async DescribeHistogram(req, cb) {
|
|
103
|
+
return this.request("DescribeHistogram", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DescribeWebshellStatus(req, cb) {
|
|
106
|
+
return this.request("DescribeWebshellStatus", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async GenerateDealsAndPayNew(req, cb) {
|
|
109
|
+
return this.request("GenerateDealsAndPayNew", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async DeleteAntiInfoLeakRule(req, cb) {
|
|
112
|
+
return this.request("DeleteAntiInfoLeakRule", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async CreateAreaBanRule(req, cb) {
|
|
115
|
+
return this.request("CreateAreaBanRule", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async ModifyAreaBanAreas(req, cb) {
|
|
118
|
+
return this.request("ModifyAreaBanAreas", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async CreateDeals(req, cb) {
|
|
121
|
+
return this.request("CreateDeals", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async DescribeAreaBanSupportAreas(req, cb) {
|
|
124
|
+
return this.request("DescribeAreaBanSupportAreas", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async UpsertCCAutoStatus(req, cb) {
|
|
127
|
+
return this.request("UpsertCCAutoStatus", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async DescribeRuleLimit(req, cb) {
|
|
130
|
+
return this.request("DescribeRuleLimit", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async AddAntiInfoLeakRules(req, cb) {
|
|
133
|
+
return this.request("AddAntiInfoLeakRules", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async ModifyHostStatus(req, cb) {
|
|
136
|
+
return this.request("ModifyHostStatus", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DescribeModuleStatus(req, cb) {
|
|
139
|
+
return this.request("DescribeModuleStatus", req, cb);
|
|
140
|
+
}
|
|
141
|
+
async UpsertIpAccessControl(req, cb) {
|
|
142
|
+
return this.request("UpsertIpAccessControl", req, cb);
|
|
143
|
+
}
|
|
144
|
+
async CreatePostCLSFlow(req, cb) {
|
|
145
|
+
return this.request("CreatePostCLSFlow", req, cb);
|
|
146
|
+
}
|
|
147
|
+
async GetAttackHistogram(req, cb) {
|
|
148
|
+
return this.request("GetAttackHistogram", req, cb);
|
|
149
|
+
}
|
|
150
|
+
async ModifyDomainsCLSStatus(req, cb) {
|
|
151
|
+
return this.request("ModifyDomainsCLSStatus", req, cb);
|
|
152
|
+
}
|
|
153
|
+
async DescribeUserSignatureRuleV2(req, cb) {
|
|
154
|
+
return this.request("DescribeUserSignatureRuleV2", req, cb);
|
|
155
|
+
}
|
|
156
|
+
async DescribeVipInfo(req, cb) {
|
|
157
|
+
return this.request("DescribeVipInfo", req, cb);
|
|
158
|
+
}
|
|
159
|
+
async DeleteHost(req, cb) {
|
|
160
|
+
return this.request("DeleteHost", req, cb);
|
|
161
|
+
}
|
|
162
|
+
async DescribeAccessFastAnalysis(req, cb) {
|
|
163
|
+
return this.request("DescribeAccessFastAnalysis", req, cb);
|
|
164
|
+
}
|
|
165
|
+
async DescribePeakPoints(req, cb) {
|
|
166
|
+
return this.request("DescribePeakPoints", req, cb);
|
|
167
|
+
}
|
|
168
|
+
async ModifyCustomWhiteRule(req, cb) {
|
|
169
|
+
return this.request("ModifyCustomWhiteRule", req, cb);
|
|
170
|
+
}
|
|
171
|
+
async DescribeCertificateVerifyResult(req, cb) {
|
|
172
|
+
return this.request("DescribeCertificateVerifyResult", req, cb);
|
|
173
|
+
}
|
|
174
|
+
async DeleteIpAccessControlV2(req, cb) {
|
|
175
|
+
return this.request("DeleteIpAccessControlV2", req, cb);
|
|
176
|
+
}
|
|
177
|
+
async SwitchElasticMode(req, cb) {
|
|
178
|
+
return this.request("SwitchElasticMode", req, cb);
|
|
179
|
+
}
|
|
180
|
+
async ModifyInstanceRenewFlag(req, cb) {
|
|
181
|
+
return this.request("ModifyInstanceRenewFlag", req, cb);
|
|
182
|
+
}
|
|
183
|
+
async DescribeUserLevel(req, cb) {
|
|
184
|
+
return this.request("DescribeUserLevel", req, cb);
|
|
185
|
+
}
|
|
186
|
+
async DescribeCCRule(req, cb) {
|
|
187
|
+
return this.request("DescribeCCRule", req, cb);
|
|
188
|
+
}
|
|
189
|
+
async DescribePeakValue(req, cb) {
|
|
190
|
+
return this.request("DescribePeakValue", req, cb);
|
|
191
|
+
}
|
|
192
|
+
async ModifyWafThreatenIntelligence(req, cb) {
|
|
193
|
+
return this.request("ModifyWafThreatenIntelligence", req, cb);
|
|
194
|
+
}
|
|
195
|
+
async ModifySpartaProtectionMode(req, cb) {
|
|
196
|
+
return this.request("ModifySpartaProtectionMode", req, cb);
|
|
197
|
+
}
|
|
198
|
+
async DeleteAttackDownloadRecord(req, cb) {
|
|
199
|
+
return this.request("DeleteAttackDownloadRecord", req, cb);
|
|
200
|
+
}
|
|
201
|
+
async DescribeCustomRuleList(req, cb) {
|
|
202
|
+
return this.request("DescribeCustomRuleList", req, cb);
|
|
203
|
+
}
|
|
204
|
+
async DescribeAttackOverview(req, cb) {
|
|
205
|
+
return this.request("DescribeAttackOverview", req, cb);
|
|
206
|
+
}
|
|
207
|
+
async DescribeAttackWhiteRule(req, cb) {
|
|
208
|
+
return this.request("DescribeAttackWhiteRule", req, cb);
|
|
209
|
+
}
|
|
210
|
+
async DescribeHosts(req, cb) {
|
|
211
|
+
return this.request("DescribeHosts", req, cb);
|
|
212
|
+
}
|
|
213
|
+
async AddSpartaProtection(req, cb) {
|
|
214
|
+
return this.request("AddSpartaProtection", req, cb);
|
|
215
|
+
}
|
|
216
|
+
async DescribePolicyStatus(req, cb) {
|
|
217
|
+
return this.request("DescribePolicyStatus", req, cb);
|
|
218
|
+
}
|
|
219
|
+
async DescribeSession(req, cb) {
|
|
220
|
+
return this.request("DescribeSession", req, cb);
|
|
221
|
+
}
|
|
222
|
+
async DescribeTopAttackDomain(req, cb) {
|
|
223
|
+
return this.request("DescribeTopAttackDomain", req, cb);
|
|
224
|
+
}
|
|
225
|
+
async ModifyHost(req, cb) {
|
|
226
|
+
return this.request("ModifyHost", req, cb);
|
|
227
|
+
}
|
|
228
|
+
async DescribeUserSignatureClass(req, cb) {
|
|
229
|
+
return this.request("DescribeUserSignatureClass", req, cb);
|
|
230
|
+
}
|
|
231
|
+
async ModifyBotStatus(req, cb) {
|
|
232
|
+
return this.request("ModifyBotStatus", req, cb);
|
|
233
|
+
}
|
|
234
|
+
async ModifyProtectionStatus(req, cb) {
|
|
235
|
+
return this.request("ModifyProtectionStatus", req, cb);
|
|
236
|
+
}
|
|
237
|
+
async DescribeCiphersDetail(req, cb) {
|
|
238
|
+
return this.request("DescribeCiphersDetail", req, cb);
|
|
239
|
+
}
|
|
240
|
+
async ModifyAreaBanStatus(req, cb) {
|
|
241
|
+
return this.request("ModifyAreaBanStatus", req, cb);
|
|
242
|
+
}
|
|
243
|
+
async ModifyIpAccessControl(req, cb) {
|
|
244
|
+
return this.request("ModifyIpAccessControl", req, cb);
|
|
245
|
+
}
|
|
246
|
+
async DescribeAntiFakeRules(req, cb) {
|
|
247
|
+
return this.request("DescribeAntiFakeRules", req, cb);
|
|
248
|
+
}
|
|
249
|
+
async DescribeFindDomainList(req, cb) {
|
|
250
|
+
return this.request("DescribeFindDomainList", req, cb);
|
|
251
|
+
}
|
|
252
|
+
async DescribePostCLSFlows(req, cb) {
|
|
253
|
+
return this.request("DescribePostCLSFlows", req, cb);
|
|
254
|
+
}
|
|
255
|
+
async ModifyAntiFakeUrlStatus(req, cb) {
|
|
256
|
+
return this.request("ModifyAntiFakeUrlStatus", req, cb);
|
|
257
|
+
}
|
|
258
|
+
async DescribeAccessHistogram(req, cb) {
|
|
259
|
+
return this.request("DescribeAccessHistogram", req, cb);
|
|
260
|
+
}
|
|
261
|
+
async DescribeTlsVersion(req, cb) {
|
|
262
|
+
return this.request("DescribeTlsVersion", req, cb);
|
|
263
|
+
}
|
|
264
|
+
async ModifyAntiInfoLeakRules(req, cb) {
|
|
265
|
+
return this.request("ModifyAntiInfoLeakRules", req, cb);
|
|
266
|
+
}
|
|
267
|
+
async CreateIpAccessControl(req, cb) {
|
|
268
|
+
return this.request("CreateIpAccessControl", req, cb);
|
|
269
|
+
}
|
|
270
|
+
async AddAntiFakeUrl(req, cb) {
|
|
271
|
+
return this.request("AddAntiFakeUrl", req, cb);
|
|
272
|
+
}
|
|
273
|
+
async DescribeFlowTrend(req, cb) {
|
|
274
|
+
return this.request("DescribeFlowTrend", req, cb);
|
|
275
|
+
}
|
|
276
|
+
async DescribeObjects(req, cb) {
|
|
277
|
+
return this.request("DescribeObjects", req, cb);
|
|
278
|
+
}
|
|
279
|
+
async ModifyDomainWhiteRule(req, cb) {
|
|
280
|
+
return this.request("ModifyDomainWhiteRule", req, cb);
|
|
281
|
+
}
|
|
282
|
+
async ModifyCustomRuleStatus(req, cb) {
|
|
283
|
+
return this.request("ModifyCustomRuleStatus", req, cb);
|
|
284
|
+
}
|
|
285
|
+
async DeleteAttackWhiteRule(req, cb) {
|
|
286
|
+
return this.request("DeleteAttackWhiteRule", req, cb);
|
|
287
|
+
}
|
|
288
|
+
async DescribeIpAccessControl(req, cb) {
|
|
289
|
+
return this.request("DescribeIpAccessControl", req, cb);
|
|
290
|
+
}
|
|
291
|
+
async AddAttackWhiteRule(req, cb) {
|
|
292
|
+
return this.request("AddAttackWhiteRule", req, cb);
|
|
293
|
+
}
|
|
294
|
+
async AddAreaBanAreas(req, cb) {
|
|
295
|
+
return this.request("AddAreaBanAreas", req, cb);
|
|
296
|
+
}
|
|
297
|
+
async DescribeDomainCountInfo(req, cb) {
|
|
298
|
+
return this.request("DescribeDomainCountInfo", req, cb);
|
|
299
|
+
}
|
|
300
|
+
async DeleteSpartaProtection(req, cb) {
|
|
301
|
+
return this.request("DeleteSpartaProtection", req, cb);
|
|
302
|
+
}
|
|
303
|
+
async SwitchDomainRules(req, cb) {
|
|
304
|
+
return this.request("SwitchDomainRules", req, cb);
|
|
305
|
+
}
|
|
306
|
+
async DestroyPostCLSFlow(req, cb) {
|
|
307
|
+
return this.request("DestroyPostCLSFlow", req, cb);
|
|
308
|
+
}
|
|
309
|
+
async DescribeBatchIpAccessControl(req, cb) {
|
|
310
|
+
return this.request("DescribeBatchIpAccessControl", req, cb);
|
|
311
|
+
}
|
|
312
|
+
async DescribeWafAutoDenyRules(req, cb) {
|
|
313
|
+
return this.request("DescribeWafAutoDenyRules", req, cb);
|
|
314
|
+
}
|
|
315
|
+
async AddCustomRule(req, cb) {
|
|
316
|
+
return this.request("AddCustomRule", req, cb);
|
|
317
|
+
}
|
|
318
|
+
async DescribeDomainWhiteRules(req, cb) {
|
|
319
|
+
return this.request("DescribeDomainWhiteRules", req, cb);
|
|
320
|
+
}
|
|
321
|
+
async ModifyWebshellStatus(req, cb) {
|
|
322
|
+
return this.request("ModifyWebshellStatus", req, cb);
|
|
323
|
+
}
|
|
324
|
+
async ModifyAntiInfoLeakRuleStatus(req, cb) {
|
|
325
|
+
return this.request("ModifyAntiInfoLeakRuleStatus", req, cb);
|
|
326
|
+
}
|
|
327
|
+
async RefreshAccessCheckResult(req, cb) {
|
|
328
|
+
return this.request("RefreshAccessCheckResult", req, cb);
|
|
329
|
+
}
|
|
330
|
+
async PostAttackDownloadTask(req, cb) {
|
|
331
|
+
return this.request("PostAttackDownloadTask", req, cb);
|
|
332
|
+
}
|
|
333
|
+
async DescribeCustomWhiteRule(req, cb) {
|
|
334
|
+
return this.request("DescribeCustomWhiteRule", req, cb);
|
|
335
|
+
}
|
|
336
|
+
async DescribeHost(req, cb) {
|
|
337
|
+
return this.request("DescribeHost", req, cb);
|
|
338
|
+
}
|
|
339
|
+
async ModifyUserSignatureRuleV2(req, cb) {
|
|
340
|
+
return this.request("ModifyUserSignatureRuleV2", req, cb);
|
|
341
|
+
}
|
|
342
|
+
async DescribeAccessExports(req, cb) {
|
|
343
|
+
return this.request("DescribeAccessExports", req, cb);
|
|
344
|
+
}
|
|
345
|
+
async DescribeHostLimit(req, cb) {
|
|
346
|
+
return this.request("DescribeHostLimit", req, cb);
|
|
347
|
+
}
|
|
348
|
+
async GetInstanceQpsLimit(req, cb) {
|
|
349
|
+
return this.request("GetInstanceQpsLimit", req, cb);
|
|
350
|
+
}
|
|
351
|
+
async DescribeAreaBanRule(req, cb) {
|
|
352
|
+
return this.request("DescribeAreaBanRule", req, cb);
|
|
353
|
+
}
|
|
354
|
+
async DeleteAccessExport(req, cb) {
|
|
355
|
+
return this.request("DeleteAccessExport", req, cb);
|
|
356
|
+
}
|
|
357
|
+
async DeleteDomainWhiteRules(req, cb) {
|
|
358
|
+
return this.request("DeleteDomainWhiteRules", req, cb);
|
|
359
|
+
}
|
|
360
|
+
async DescribeDomainVerifyResult(req, cb) {
|
|
361
|
+
return this.request("DescribeDomainVerifyResult", req, cb);
|
|
362
|
+
}
|
|
363
|
+
async CreateAccessExport(req, cb) {
|
|
364
|
+
return this.request("CreateAccessExport", req, cb);
|
|
365
|
+
}
|
|
366
|
+
async SearchAttackLog(req, cb) {
|
|
367
|
+
return this.request("SearchAttackLog", req, cb);
|
|
368
|
+
}
|
|
369
|
+
async DescribeInstances(req, cb) {
|
|
370
|
+
return this.request("DescribeInstances", req, cb);
|
|
371
|
+
}
|
|
372
|
+
async ModifyAttackWhiteRule(req, cb) {
|
|
373
|
+
return this.request("ModifyAttackWhiteRule", req, cb);
|
|
374
|
+
}
|
|
375
|
+
async DescribeDomainDetailsSaas(req, cb) {
|
|
376
|
+
return this.request("DescribeDomainDetailsSaas", req, cb);
|
|
377
|
+
}
|
|
378
|
+
async ModifyUserSignatureRule(req, cb) {
|
|
379
|
+
return this.request("ModifyUserSignatureRule", req, cb);
|
|
380
|
+
}
|
|
381
|
+
async ModifyGenerateDeals(req, cb) {
|
|
382
|
+
return this.request("ModifyGenerateDeals", req, cb);
|
|
383
|
+
}
|
|
384
|
+
async ModifyInstanceName(req, cb) {
|
|
385
|
+
return this.request("ModifyInstanceName", req, cb);
|
|
386
|
+
}
|
|
387
|
+
async ModifyModuleStatus(req, cb) {
|
|
388
|
+
return this.request("ModifyModuleStatus", req, cb);
|
|
389
|
+
}
|
|
390
|
+
async DescribeUserCdcClbWafRegions(req, cb) {
|
|
391
|
+
return this.request("DescribeUserCdcClbWafRegions", req, cb);
|
|
392
|
+
}
|
|
393
|
+
async ModifyAreaBanRule(req, cb) {
|
|
394
|
+
return this.request("ModifyAreaBanRule", req, cb);
|
|
395
|
+
}
|
|
396
|
+
async DescribeWafAutoDenyStatus(req, cb) {
|
|
397
|
+
return this.request("DescribeWafAutoDenyStatus", req, cb);
|
|
398
|
+
}
|
|
399
|
+
async ModifyCustomWhiteRuleStatus(req, cb) {
|
|
400
|
+
return this.request("ModifyCustomWhiteRuleStatus", req, cb);
|
|
401
|
+
}
|
|
402
|
+
async DescribePorts(req, cb) {
|
|
403
|
+
return this.request("DescribePorts", req, cb);
|
|
404
|
+
}
|
|
405
|
+
async ModifyHostMode(req, cb) {
|
|
406
|
+
return this.request("ModifyHostMode", req, cb);
|
|
407
|
+
}
|
|
408
|
+
async ModifyDomainPostAction(req, cb) {
|
|
409
|
+
return this.request("ModifyDomainPostAction", req, cb);
|
|
410
|
+
}
|
|
411
|
+
async DescribeUserClbWafRegions(req, cb) {
|
|
412
|
+
return this.request("DescribeUserClbWafRegions", req, cb);
|
|
413
|
+
}
|
|
414
|
+
async UpsertCCRule(req, cb) {
|
|
415
|
+
return this.request("UpsertCCRule", req, cb);
|
|
416
|
+
}
|
|
417
|
+
async ModifyObject(req, cb) {
|
|
418
|
+
return this.request("ModifyObject", req, cb);
|
|
419
|
+
}
|
|
420
|
+
async DeleteAntiFakeUrl(req, cb) {
|
|
421
|
+
return this.request("DeleteAntiFakeUrl", req, cb);
|
|
422
|
+
}
|
|
423
|
+
async DescribeCCRuleList(req, cb) {
|
|
424
|
+
return this.request("DescribeCCRuleList", req, cb);
|
|
425
|
+
}
|
|
426
|
+
async DeleteCCRule(req, cb) {
|
|
427
|
+
return this.request("DeleteCCRule", req, cb);
|
|
428
|
+
}
|
|
429
|
+
async CreateHost(req, cb) {
|
|
430
|
+
return this.request("CreateHost", req, cb);
|
|
431
|
+
}
|
|
432
|
+
async UpsertSession(req, cb) {
|
|
433
|
+
return this.request("UpsertSession", req, cb);
|
|
434
|
+
}
|
|
435
|
+
async DescribeCCAutoStatus(req, cb) {
|
|
436
|
+
return this.request("DescribeCCAutoStatus", req, cb);
|
|
437
|
+
}
|
|
438
|
+
async DescribeUserSignatureRule(req, cb) {
|
|
439
|
+
return this.request("DescribeUserSignatureRule", req, cb);
|
|
440
|
+
}
|
|
441
|
+
async BatchOperateUserSignatureRules(req, cb) {
|
|
442
|
+
return this.request("BatchOperateUserSignatureRules", req, cb);
|
|
443
|
+
}
|
|
444
|
+
async FreshAntiFakeUrl(req, cb) {
|
|
445
|
+
return this.request("FreshAntiFakeUrl", req, cb);
|
|
446
|
+
}
|
|
447
|
+
async DescribeDomainRules(req, cb) {
|
|
448
|
+
return this.request("DescribeDomainRules", req, cb);
|
|
449
|
+
}
|
|
450
|
+
async ModifyApiSecEventChange(req, cb) {
|
|
451
|
+
return this.request("ModifyApiSecEventChange", req, cb);
|
|
452
|
+
}
|
|
453
|
+
async ModifyUserSignatureClass(req, cb) {
|
|
454
|
+
return this.request("ModifyUserSignatureClass", req, cb);
|
|
455
|
+
}
|
|
456
|
+
async AddDomainWhiteRule(req, cb) {
|
|
457
|
+
return this.request("AddDomainWhiteRule", req, cb);
|
|
458
|
+
}
|
|
459
|
+
async ModifyDomainIpv6Status(req, cb) {
|
|
460
|
+
return this.request("ModifyDomainIpv6Status", req, cb);
|
|
461
|
+
}
|
|
462
|
+
async UpdateProtectionModes(req, cb) {
|
|
463
|
+
return this.request("UpdateProtectionModes", req, cb);
|
|
464
|
+
}
|
|
465
|
+
async ModifyUserLevel(req, cb) {
|
|
466
|
+
return this.request("ModifyUserLevel", req, cb);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-waf",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.1",
|
|
4
|
+
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
+
"main": "./tencentcloud/index.js",
|
|
6
|
+
"module": "./es/index.js",
|
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "mocha -t 10000",
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
|
+
"clean": "rimraf tencentcloud es"
|
|
10
15
|
},
|
|
11
16
|
"engines": {
|
|
12
17
|
"node": ">=10"
|
|
13
18
|
},
|
|
19
|
+
"files": [
|
|
20
|
+
"tencentcloud",
|
|
21
|
+
"es"
|
|
22
|
+
],
|
|
14
23
|
"keywords": [
|
|
15
24
|
"tencentcloudapi",
|
|
16
25
|
"tencentcloud",
|
|
@@ -22,7 +31,7 @@
|
|
|
22
31
|
"author": "tencentcloudapi",
|
|
23
32
|
"license": "Apache-2.0",
|
|
24
33
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
34
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
35
|
"tslib": "1.13.0"
|
|
27
36
|
},
|
|
28
37
|
"directories": {
|
|
@@ -35,14 +44,21 @@
|
|
|
35
44
|
},
|
|
36
45
|
"devDependencies": {
|
|
37
46
|
"@types/form-data": "^2.5.0",
|
|
47
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
48
|
"@types/node": "^14.0.26",
|
|
39
49
|
"@types/node-fetch": "^2.5.7",
|
|
50
|
+
"@types/uuid": "^9.0.8",
|
|
40
51
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
52
|
"@typescript-eslint/parser": "^2.34.0",
|
|
53
|
+
"babel-eslint": "^10.0.2",
|
|
42
54
|
"chai": "^4.2.0",
|
|
55
|
+
"concurrently": "^6.5.1",
|
|
43
56
|
"eslint": "^6.8.0",
|
|
44
|
-
"
|
|
57
|
+
"eslint-plugin-react": "^7.17.0",
|
|
58
|
+
"mocha": "^8.4.0",
|
|
59
|
+
"prettier": "^2.3.0",
|
|
60
|
+
"rimraf": "^5.0.10",
|
|
45
61
|
"ts-node": "^8.10.2",
|
|
46
62
|
"typescript": "^3.9.7"
|
|
47
63
|
}
|
|
48
|
-
}
|
|
64
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20180125 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./waf_models"));
|
|
5
6
|
const waf_client_1 = require("./waf_client");
|
|
6
7
|
exports.v20180125 = {
|
|
7
8
|
Client: waf_client_1.Client,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* waf client
|
|
24
25
|
* @class
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|
package/src/services/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { waf } from "./waf"
|