tencentcloud-sdk-nodejs-cfw 4.0.1042 → 4.1.7
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 +27 -5
- package/es/index.js +1 -0
- package/es/services/cfw/index.js +4 -0
- package/es/services/cfw/v20190904/cfw_client.js +342 -0
- package/es/services/cfw/v20190904/cfw_models.js +0 -0
- package/es/services/cfw/v20190904/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +26 -8
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +2 -1
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/cfw/v20190904/index.js +2 -1
- 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/cfw/index.ts +0 -5
- package/src/services/cfw/v20190904/cfw_client.ts +0 -1448
- package/src/services/cfw/v20190904/cfw_models.ts +0 -7331
- package/src/services/cfw/v20190904/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
1. clone 代码到本地:
|
|
64
|
+
```
|
|
65
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
67
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
68
|
+
```
|
|
69
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
70
|
+
```
|
|
71
|
+
npm install && npm run build
|
|
72
|
+
```
|
|
73
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
74
|
+
```
|
|
75
|
+
npm pack
|
|
76
|
+
```
|
|
77
|
+
4. 安装包到你的项目里:
|
|
78
|
+
```
|
|
79
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
80
|
+
```
|
|
59
81
|
|
|
60
82
|
# 示例
|
|
61
83
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("cfw.tencentcloudapi.com", "2019-09-04", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async RemoveVpcAcRule(req, cb) {
|
|
7
|
+
return this.request("RemoveVpcAcRule", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DeleteBlockIgnoreRuleNew(req, cb) {
|
|
10
|
+
return this.request("DeleteBlockIgnoreRuleNew", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async DescribeVpcFwGroupSwitch(req, cb) {
|
|
13
|
+
return this.request("DescribeVpcFwGroupSwitch", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async ModifyEWRuleStatus(req, cb) {
|
|
16
|
+
return this.request("ModifyEWRuleStatus", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async StopSecurityGroupRuleDispatch(req, cb) {
|
|
19
|
+
return this.request("StopSecurityGroupRuleDispatch", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async ModifyResourceGroup(req, cb) {
|
|
22
|
+
return this.request("ModifyResourceGroup", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async DescribeResourceGroupNew(req, cb) {
|
|
25
|
+
return this.request("DescribeResourceGroupNew", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async ModifyVpcFwGroup(req, cb) {
|
|
28
|
+
return this.request("ModifyVpcFwGroup", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async ModifyAssetSync(req, cb) {
|
|
31
|
+
return this.request("ModifyAssetSync", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DeleteVpcFwGroup(req, cb) {
|
|
34
|
+
return this.request("DeleteVpcFwGroup", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async AddVpcAcRule(req, cb) {
|
|
37
|
+
return this.request("AddVpcAcRule", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async AddEnterpriseSecurityGroupRules(req, cb) {
|
|
40
|
+
return this.request("AddEnterpriseSecurityGroupRules", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeTableStatus(req, cb) {
|
|
43
|
+
return this.request("DescribeTableStatus", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async ModifySecurityGroupSequenceRules(req, cb) {
|
|
46
|
+
return this.request("ModifySecurityGroupSequenceRules", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async RemoveEnterpriseSecurityGroupRule(req, cb) {
|
|
49
|
+
return this.request("RemoveEnterpriseSecurityGroupRule", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async ModifyNatSequenceRules(req, cb) {
|
|
52
|
+
return this.request("ModifyNatSequenceRules", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async DescribeUnHandleEventTabList(req, cb) {
|
|
55
|
+
return this.request("DescribeUnHandleEventTabList", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async CreateNatFwInstance(req, cb) {
|
|
58
|
+
return this.request("CreateNatFwInstance", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async ModifyBlockTop(req, cb) {
|
|
61
|
+
return this.request("ModifyBlockTop", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DeleteRemoteAccessDomain(req, cb) {
|
|
64
|
+
return this.request("DeleteRemoteAccessDomain", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async RemoveAclRule(req, cb) {
|
|
67
|
+
return this.request("RemoveAclRule", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async DeleteNatFwInstance(req, cb) {
|
|
70
|
+
return this.request("DeleteNatFwInstance", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async CreateBlockIgnoreRuleList(req, cb) {
|
|
73
|
+
return this.request("CreateBlockIgnoreRuleList", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async ModifyBlockIgnoreRuleNew(req, cb) {
|
|
76
|
+
return this.request("ModifyBlockIgnoreRuleNew", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async ModifyEdgeIpSwitch(req, cb) {
|
|
79
|
+
return this.request("ModifyEdgeIpSwitch", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DescribeBlockByIpTimesList(req, cb) {
|
|
82
|
+
return this.request("DescribeBlockByIpTimesList", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async DescribeNatFwDnatRule(req, cb) {
|
|
85
|
+
return this.request("DescribeNatFwDnatRule", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeEnterpriseSGRuleProgress(req, cb) {
|
|
88
|
+
return this.request("DescribeEnterpriseSGRuleProgress", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async DescribeNatFwInfoCount(req, cb) {
|
|
91
|
+
return this.request("DescribeNatFwInfoCount", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async DescribeNatFwVpcDnsLst(req, cb) {
|
|
94
|
+
return this.request("DescribeNatFwVpcDnsLst", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async ModifyBlockIgnoreRule(req, cb) {
|
|
97
|
+
return this.request("ModifyBlockIgnoreRule", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async DescribeAclRule(req, cb) {
|
|
100
|
+
return this.request("DescribeAclRule", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async ModifySecurityGroupRule(req, cb) {
|
|
103
|
+
return this.request("ModifySecurityGroupRule", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DeleteAllAccessControlRule(req, cb) {
|
|
106
|
+
return this.request("DeleteAllAccessControlRule", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async DescribeSecurityGroupList(req, cb) {
|
|
109
|
+
return this.request("DescribeSecurityGroupList", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async ModifyVpcAcRule(req, cb) {
|
|
112
|
+
return this.request("ModifyVpcAcRule", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async DescribeAssetSync(req, cb) {
|
|
115
|
+
return this.request("DescribeAssetSync", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async CreateSecurityGroupRules(req, cb) {
|
|
118
|
+
return this.request("CreateSecurityGroupRules", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async DescribeDefenseSwitch(req, cb) {
|
|
121
|
+
return this.request("DescribeDefenseSwitch", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async DescribeFwGroupInstanceInfo(req, cb) {
|
|
124
|
+
return this.request("DescribeFwGroupInstanceInfo", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async ModifyNatFwVpcDnsSwitch(req, cb) {
|
|
127
|
+
return this.request("ModifyNatFwVpcDnsSwitch", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async ModifySecurityGroupItemRuleStatus(req, cb) {
|
|
130
|
+
return this.request("ModifySecurityGroupItemRuleStatus", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async DescribeNatFwInstanceWithRegion(req, cb) {
|
|
133
|
+
return this.request("DescribeNatFwInstanceWithRegion", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async DeleteIdsWhiteRule(req, cb) {
|
|
136
|
+
return this.request("DeleteIdsWhiteRule", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async CreateBlockIgnoreRuleNew(req, cb) {
|
|
139
|
+
return this.request("CreateBlockIgnoreRuleNew", req, cb);
|
|
140
|
+
}
|
|
141
|
+
async DescribeSourceAsset(req, cb) {
|
|
142
|
+
return this.request("DescribeSourceAsset", req, cb);
|
|
143
|
+
}
|
|
144
|
+
async DeleteResourceGroup(req, cb) {
|
|
145
|
+
return this.request("DeleteResourceGroup", req, cb);
|
|
146
|
+
}
|
|
147
|
+
async RemoveAcRule(req, cb) {
|
|
148
|
+
return this.request("RemoveAcRule", req, cb);
|
|
149
|
+
}
|
|
150
|
+
async ModifyVpcFwSequenceRules(req, cb) {
|
|
151
|
+
return this.request("ModifyVpcFwSequenceRules", req, cb);
|
|
152
|
+
}
|
|
153
|
+
async CreateAlertCenterOmit(req, cb) {
|
|
154
|
+
return this.request("CreateAlertCenterOmit", req, cb);
|
|
155
|
+
}
|
|
156
|
+
async CreateIdsWhiteRule(req, cb) {
|
|
157
|
+
return this.request("CreateIdsWhiteRule", req, cb);
|
|
158
|
+
}
|
|
159
|
+
async DescribeVpcAcRule(req, cb) {
|
|
160
|
+
return this.request("DescribeVpcAcRule", req, cb);
|
|
161
|
+
}
|
|
162
|
+
async ModifyEnterpriseSecurityGroupRule(req, cb) {
|
|
163
|
+
return this.request("ModifyEnterpriseSecurityGroupRule", req, cb);
|
|
164
|
+
}
|
|
165
|
+
async AddAclRule(req, cb) {
|
|
166
|
+
return this.request("AddAclRule", req, cb);
|
|
167
|
+
}
|
|
168
|
+
async ModifyNatAcRule(req, cb) {
|
|
169
|
+
return this.request("ModifyNatAcRule", req, cb);
|
|
170
|
+
}
|
|
171
|
+
async DeleteSecurityGroupRule(req, cb) {
|
|
172
|
+
return this.request("DeleteSecurityGroupRule", req, cb);
|
|
173
|
+
}
|
|
174
|
+
async ModifyAddressTemplate(req, cb) {
|
|
175
|
+
return this.request("ModifyAddressTemplate", req, cb);
|
|
176
|
+
}
|
|
177
|
+
async DescribeSwitchLists(req, cb) {
|
|
178
|
+
return this.request("DescribeSwitchLists", req, cb);
|
|
179
|
+
}
|
|
180
|
+
async ModifyTableStatus(req, cb) {
|
|
181
|
+
return this.request("ModifyTableStatus", req, cb);
|
|
182
|
+
}
|
|
183
|
+
async CreateAlertCenterIsolate(req, cb) {
|
|
184
|
+
return this.request("CreateAlertCenterIsolate", req, cb);
|
|
185
|
+
}
|
|
186
|
+
async ModifyBlockIgnoreList(req, cb) {
|
|
187
|
+
return this.request("ModifyBlockIgnoreList", req, cb);
|
|
188
|
+
}
|
|
189
|
+
async CreateChooseVpcs(req, cb) {
|
|
190
|
+
return this.request("CreateChooseVpcs", req, cb);
|
|
191
|
+
}
|
|
192
|
+
async ModifyAssetScan(req, cb) {
|
|
193
|
+
return this.request("ModifyAssetScan", req, cb);
|
|
194
|
+
}
|
|
195
|
+
async DeleteAddressTemplate(req, cb) {
|
|
196
|
+
return this.request("DeleteAddressTemplate", req, cb);
|
|
197
|
+
}
|
|
198
|
+
async ModifySequenceRules(req, cb) {
|
|
199
|
+
return this.request("ModifySequenceRules", req, cb);
|
|
200
|
+
}
|
|
201
|
+
async ModifySequenceAclRules(req, cb) {
|
|
202
|
+
return this.request("ModifySequenceAclRules", req, cb);
|
|
203
|
+
}
|
|
204
|
+
async DescribeRuleOverview(req, cb) {
|
|
205
|
+
return this.request("DescribeRuleOverview", req, cb);
|
|
206
|
+
}
|
|
207
|
+
async DescribeIPStatusList(req, cb) {
|
|
208
|
+
return this.request("DescribeIPStatusList", req, cb);
|
|
209
|
+
}
|
|
210
|
+
async DescribeEnterpriseSecurityGroupRule(req, cb) {
|
|
211
|
+
return this.request("DescribeEnterpriseSecurityGroupRule", req, cb);
|
|
212
|
+
}
|
|
213
|
+
async ModifyFwGroupSwitch(req, cb) {
|
|
214
|
+
return this.request("ModifyFwGroupSwitch", req, cb);
|
|
215
|
+
}
|
|
216
|
+
async DescribeLogs(req, cb) {
|
|
217
|
+
return this.request("DescribeLogs", req, cb);
|
|
218
|
+
}
|
|
219
|
+
async SetNatFwDnatRule(req, cb) {
|
|
220
|
+
return this.request("SetNatFwDnatRule", req, cb);
|
|
221
|
+
}
|
|
222
|
+
async ModifyAllRuleStatus(req, cb) {
|
|
223
|
+
return this.request("ModifyAllRuleStatus", req, cb);
|
|
224
|
+
}
|
|
225
|
+
async DeleteBlockIgnoreRuleList(req, cb) {
|
|
226
|
+
return this.request("DeleteBlockIgnoreRuleList", req, cb);
|
|
227
|
+
}
|
|
228
|
+
async SetNatFwEip(req, cb) {
|
|
229
|
+
return this.request("SetNatFwEip", req, cb);
|
|
230
|
+
}
|
|
231
|
+
async CreateAlertCenterRule(req, cb) {
|
|
232
|
+
return this.request("CreateAlertCenterRule", req, cb);
|
|
233
|
+
}
|
|
234
|
+
async ModifyAclRule(req, cb) {
|
|
235
|
+
return this.request("ModifyAclRule", req, cb);
|
|
236
|
+
}
|
|
237
|
+
async DescribeEnterpriseSecurityGroupRuleList(req, cb) {
|
|
238
|
+
return this.request("DescribeEnterpriseSecurityGroupRuleList", req, cb);
|
|
239
|
+
}
|
|
240
|
+
async DescribeCfwEips(req, cb) {
|
|
241
|
+
return this.request("DescribeCfwEips", req, cb);
|
|
242
|
+
}
|
|
243
|
+
async DescribeBlockIgnoreList(req, cb) {
|
|
244
|
+
return this.request("DescribeBlockIgnoreList", req, cb);
|
|
245
|
+
}
|
|
246
|
+
async RemoveNatAcRule(req, cb) {
|
|
247
|
+
return this.request("RemoveNatAcRule", req, cb);
|
|
248
|
+
}
|
|
249
|
+
async DescribeAcLists(req, cb) {
|
|
250
|
+
return this.request("DescribeAcLists", req, cb);
|
|
251
|
+
}
|
|
252
|
+
async ExpandCfwVertical(req, cb) {
|
|
253
|
+
return this.request("ExpandCfwVertical", req, cb);
|
|
254
|
+
}
|
|
255
|
+
async CreateVpcFwGroup(req, cb) {
|
|
256
|
+
return this.request("CreateVpcFwGroup", req, cb);
|
|
257
|
+
}
|
|
258
|
+
async ModifyAllPublicIPSwitchStatus(req, cb) {
|
|
259
|
+
return this.request("ModifyAllPublicIPSwitchStatus", req, cb);
|
|
260
|
+
}
|
|
261
|
+
async DescribeAssociatedInstanceList(req, cb) {
|
|
262
|
+
return this.request("DescribeAssociatedInstanceList", req, cb);
|
|
263
|
+
}
|
|
264
|
+
async ModifyNatInstance(req, cb) {
|
|
265
|
+
return this.request("ModifyNatInstance", req, cb);
|
|
266
|
+
}
|
|
267
|
+
async DeleteAcRule(req, cb) {
|
|
268
|
+
return this.request("DeleteAcRule", req, cb);
|
|
269
|
+
}
|
|
270
|
+
async DescribeNatAcRule(req, cb) {
|
|
271
|
+
return this.request("DescribeNatAcRule", req, cb);
|
|
272
|
+
}
|
|
273
|
+
async DescribeFwSyncStatus(req, cb) {
|
|
274
|
+
return this.request("DescribeFwSyncStatus", req, cb);
|
|
275
|
+
}
|
|
276
|
+
async DescribeNatFwInstance(req, cb) {
|
|
277
|
+
return this.request("DescribeNatFwInstance", req, cb);
|
|
278
|
+
}
|
|
279
|
+
async CreateDatabaseWhiteListRules(req, cb) {
|
|
280
|
+
return this.request("CreateDatabaseWhiteListRules", req, cb);
|
|
281
|
+
}
|
|
282
|
+
async CreateNatFwInstanceWithDomain(req, cb) {
|
|
283
|
+
return this.request("CreateNatFwInstanceWithDomain", req, cb);
|
|
284
|
+
}
|
|
285
|
+
async CreateAcRules(req, cb) {
|
|
286
|
+
return this.request("CreateAcRules", req, cb);
|
|
287
|
+
}
|
|
288
|
+
async ModifyEnterpriseSecurityDispatchStatus(req, cb) {
|
|
289
|
+
return this.request("ModifyEnterpriseSecurityDispatchStatus", req, cb);
|
|
290
|
+
}
|
|
291
|
+
async DescribeTLogInfo(req, cb) {
|
|
292
|
+
return this.request("DescribeTLogInfo", req, cb);
|
|
293
|
+
}
|
|
294
|
+
async ModifyRunSyncAsset(req, cb) {
|
|
295
|
+
return this.request("ModifyRunSyncAsset", req, cb);
|
|
296
|
+
}
|
|
297
|
+
async DescribeGuideScanInfo(req, cb) {
|
|
298
|
+
return this.request("DescribeGuideScanInfo", req, cb);
|
|
299
|
+
}
|
|
300
|
+
async DescribeAddressTemplateList(req, cb) {
|
|
301
|
+
return this.request("DescribeAddressTemplateList", req, cb);
|
|
302
|
+
}
|
|
303
|
+
async DescribeNatFwInstancesInfo(req, cb) {
|
|
304
|
+
return this.request("DescribeNatFwInstancesInfo", req, cb);
|
|
305
|
+
}
|
|
306
|
+
async ModifyNatFwReSelect(req, cb) {
|
|
307
|
+
return this.request("ModifyNatFwReSelect", req, cb);
|
|
308
|
+
}
|
|
309
|
+
async ModifyStorageSetting(req, cb) {
|
|
310
|
+
return this.request("ModifyStorageSetting", req, cb);
|
|
311
|
+
}
|
|
312
|
+
async DescribeResourceGroup(req, cb) {
|
|
313
|
+
return this.request("DescribeResourceGroup", req, cb);
|
|
314
|
+
}
|
|
315
|
+
async SyncFwOperate(req, cb) {
|
|
316
|
+
return this.request("SyncFwOperate", req, cb);
|
|
317
|
+
}
|
|
318
|
+
async ModifyAcRule(req, cb) {
|
|
319
|
+
return this.request("ModifyAcRule", req, cb);
|
|
320
|
+
}
|
|
321
|
+
async DescribeFwEdgeIps(req, cb) {
|
|
322
|
+
return this.request("DescribeFwEdgeIps", req, cb);
|
|
323
|
+
}
|
|
324
|
+
async ModifyNatFwSwitch(req, cb) {
|
|
325
|
+
return this.request("ModifyNatFwSwitch", req, cb);
|
|
326
|
+
}
|
|
327
|
+
async DescribeTLogIpList(req, cb) {
|
|
328
|
+
return this.request("DescribeTLogIpList", req, cb);
|
|
329
|
+
}
|
|
330
|
+
async CreateAddressTemplate(req, cb) {
|
|
331
|
+
return this.request("CreateAddressTemplate", req, cb);
|
|
332
|
+
}
|
|
333
|
+
async AddNatAcRule(req, cb) {
|
|
334
|
+
return this.request("AddNatAcRule", req, cb);
|
|
335
|
+
}
|
|
336
|
+
async DescribeBlockStaticList(req, cb) {
|
|
337
|
+
return this.request("DescribeBlockStaticList", req, cb);
|
|
338
|
+
}
|
|
339
|
+
async DescribeIdsWhiteRule(req, cb) {
|
|
340
|
+
return this.request("DescribeIdsWhiteRule", req, cb);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cfw } from "./cfw";
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-cfw",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.7",
|
|
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
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
14
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
+
"clean": "rimraf tencentcloud es"
|
|
10
16
|
},
|
|
11
17
|
"engines": {
|
|
12
18
|
"node": ">=10"
|
|
13
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"tencentcloud",
|
|
22
|
+
"es"
|
|
23
|
+
],
|
|
14
24
|
"keywords": [
|
|
15
25
|
"tencentcloudapi",
|
|
16
26
|
"tencentcloud",
|
|
@@ -22,7 +32,7 @@
|
|
|
22
32
|
"author": "tencentcloudapi",
|
|
23
33
|
"license": "Apache-2.0",
|
|
24
34
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
35
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
36
|
"tslib": "1.13.0"
|
|
27
37
|
},
|
|
28
38
|
"directories": {
|
|
@@ -35,14 +45,22 @@
|
|
|
35
45
|
},
|
|
36
46
|
"devDependencies": {
|
|
37
47
|
"@types/form-data": "^2.5.0",
|
|
48
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
49
|
"@types/node": "^14.0.26",
|
|
39
50
|
"@types/node-fetch": "^2.5.7",
|
|
51
|
+
"@types/uuid": "^9.0.8",
|
|
40
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
53
|
"@typescript-eslint/parser": "^2.34.0",
|
|
54
|
+
"babel-eslint": "^10.0.2",
|
|
42
55
|
"chai": "^4.2.0",
|
|
56
|
+
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
43
58
|
"eslint": "^6.8.0",
|
|
44
|
-
"
|
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
|
60
|
+
"mocha": "^8.4.0",
|
|
61
|
+
"prettier": "^2.3.0",
|
|
62
|
+
"rimraf": "^5.0.10",
|
|
45
63
|
"ts-node": "^8.10.2",
|
|
46
64
|
"typescript": "^3.9.7"
|
|
47
65
|
}
|
|
48
|
-
}
|
|
66
|
+
}
|
|
@@ -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
|
* cfw client
|
|
24
25
|
* @class
|
|
@@ -29,7 +29,7 @@ export declare type DescribeNatFwInstanceWithRegionRequest = null;
|
|
|
29
29
|
export interface DescribeLogsRequest {
|
|
30
30
|
/**
|
|
31
31
|
* 日志类型标识
|
|
32
|
-
流量日志:互联网边界防火墙netflow_border,NAT边界防火墙netflow_nat,VPC间防火墙vpcnetflow,内网流量日志netflow_fl
|
|
32
|
+
流量日志:互联网边界防火墙netflow_border,NAT边界防火墙netflow_nat,VPC间防火墙vpcnetflow,内网流量日志netflow_fl,流量分析日志netflow_nta
|
|
33
33
|
入侵防御日志rule_threatinfo
|
|
34
34
|
访问控制日志:互联网边界规则rule_acl,NAT边界规则rule_acl,内网间规则rule_vpcacl,企业安全组rule_sg
|
|
35
35
|
操作日志:防火墙开关-开关操作operate_switch,防火墙开关-实例配置operate_instance,资产中心操作operate_assetgroup,访问控制操作operate_acl,零信任防护操作operate_identity,入侵防御操作-入侵防御operate_ids,入侵防御操作-安全基线operate_baseline,常用工具操作operate_tool,网络蜜罐操作operate_honeypot,日志投递操作operate_logdelivery,通用设置操作operate_logstorage,登录日志operate_login
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20190904 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./cfw_models"));
|
|
5
6
|
const cfw_client_1 = require("./cfw_client");
|
|
6
7
|
exports.v20190904 = {
|
|
7
8
|
Client: cfw_client_1.Client,
|
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"
|