@huaweicloud/huaweicloud-sdk-cfw 3.1.64 → 3.1.66

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/package.json +2 -2
  2. package/v1/CfwClient.d.ts +135 -2
  3. package/v1/CfwClient.d.ts.map +1 -1
  4. package/v1/CfwClient.js +321 -2
  5. package/v1/CfwClient.js.map +1 -1
  6. package/v1/CfwRegion.d.ts +1 -0
  7. package/v1/CfwRegion.d.ts.map +1 -1
  8. package/v1/CfwRegion.js +3 -1
  9. package/v1/CfwRegion.js.map +1 -1
  10. package/v1/model/AddLogConfigRequest.d.ts +19 -0
  11. package/v1/model/AddLogConfigRequest.d.ts.map +1 -0
  12. package/v1/model/AddLogConfigRequest.js +45 -0
  13. package/v1/model/AddLogConfigRequest.js.map +1 -0
  14. package/v1/model/AddLogConfigResponse.d.ts +7 -0
  15. package/v1/model/AddLogConfigResponse.d.ts.map +1 -0
  16. package/v1/model/AddLogConfigResponse.js +15 -0
  17. package/v1/model/AddLogConfigResponse.js.map +1 -0
  18. package/v1/model/ChangeIpsSwitchStatusRequest.d.ts +4 -0
  19. package/v1/model/ChangeIpsSwitchStatusRequest.d.ts.map +1 -1
  20. package/v1/model/ChangeIpsSwitchStatusRequest.js +10 -0
  21. package/v1/model/ChangeIpsSwitchStatusRequest.js.map +1 -1
  22. package/v1/model/CreateEastWestFirewallRequest.d.ts +19 -0
  23. package/v1/model/CreateEastWestFirewallRequest.d.ts.map +1 -0
  24. package/v1/model/CreateEastWestFirewallRequest.js +45 -0
  25. package/v1/model/CreateEastWestFirewallRequest.js.map +1 -0
  26. package/v1/model/CreateEastWestFirewallRequestBody.d.ts +14 -0
  27. package/v1/model/CreateEastWestFirewallRequestBody.d.ts.map +1 -0
  28. package/v1/model/CreateEastWestFirewallRequestBody.js +35 -0
  29. package/v1/model/CreateEastWestFirewallRequestBody.js.map +1 -0
  30. package/v1/model/CreateEastWestFirewallResponse.d.ts +8 -0
  31. package/v1/model/CreateEastWestFirewallResponse.d.ts.map +1 -0
  32. package/v1/model/CreateEastWestFirewallResponse.js +15 -0
  33. package/v1/model/CreateEastWestFirewallResponse.js.map +1 -0
  34. package/v1/model/HttpQueryCfwAccessControllerLogsResponseDTODataRecords.d.ts +6 -6
  35. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts +8 -9
  36. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.d.ts.map +1 -1
  37. package/v1/model/HttpQueryCfwAttackLogsResponseDTODataRecords.js.map +1 -1
  38. package/v1/model/HttpQueryCfwFlowLogsResponseDTODataRecords.d.ts +6 -6
  39. package/v1/model/ListLogConfigRequest.d.ts +16 -0
  40. package/v1/model/ListLogConfigRequest.d.ts.map +1 -0
  41. package/v1/model/ListLogConfigRequest.js +41 -0
  42. package/v1/model/ListLogConfigRequest.js.map +1 -0
  43. package/v1/model/ListLogConfigResponse.d.ts +8 -0
  44. package/v1/model/ListLogConfigResponse.d.ts.map +1 -0
  45. package/v1/model/ListLogConfigResponse.js +15 -0
  46. package/v1/model/ListLogConfigResponse.js.map +1 -0
  47. package/v1/model/LogConfigDto.d.ts +40 -0
  48. package/v1/model/LogConfigDto.d.ts.map +1 -0
  49. package/v1/model/LogConfigDto.js +105 -0
  50. package/v1/model/LogConfigDto.js.map +1 -0
  51. package/v1/model/UpdateLogConfigRequest.d.ts +19 -0
  52. package/v1/model/UpdateLogConfigRequest.d.ts.map +1 -0
  53. package/v1/model/UpdateLogConfigRequest.js +45 -0
  54. package/v1/model/UpdateLogConfigRequest.js.map +1 -0
  55. package/v1/model/UpdateLogConfigResponse.d.ts +7 -0
  56. package/v1/model/UpdateLogConfigResponse.d.ts.map +1 -0
  57. package/v1/model/UpdateLogConfigResponse.js +15 -0
  58. package/v1/model/UpdateLogConfigResponse.js.map +1 -0
  59. package/v1/public-api.d.ts +10 -1
  60. package/v1/public-api.d.ts.map +1 -1
  61. package/v1/public-api.js +10 -1
  62. package/v1/public-api.js.map +1 -1
  63. package/v1/model/Packet.d.ts +0 -14
  64. package/v1/model/Packet.d.ts.map +0 -1
  65. package/v1/model/Packet.js +0 -33
  66. package/v1/model/Packet.js.map +0 -1
package/v1/CfwClient.js CHANGED
@@ -8,6 +8,7 @@ const AddAddressSetRequest_1 = require("./model/AddAddressSetRequest");
8
8
  const AddBlackWhiteListRequest_1 = require("./model/AddBlackWhiteListRequest");
9
9
  const AddDomainSetRequest_1 = require("./model/AddDomainSetRequest");
10
10
  const AddDomainsRequest_1 = require("./model/AddDomainsRequest");
11
+ const AddLogConfigRequest_1 = require("./model/AddLogConfigRequest");
11
12
  const AddServiceItemsRequest_1 = require("./model/AddServiceItemsRequest");
12
13
  const AddServiceSetRequest_1 = require("./model/AddServiceSetRequest");
13
14
  const BatchDeleteAclRulesRequest_1 = require("./model/BatchDeleteAclRulesRequest");
@@ -18,6 +19,7 @@ const ChangeEastWestFirewallStatusRequest_1 = require("./model/ChangeEastWestFir
18
19
  const ChangeEipStatusRequest_1 = require("./model/ChangeEipStatusRequest");
19
20
  const ChangeIpsProtectModeRequest_1 = require("./model/ChangeIpsProtectModeRequest");
20
21
  const ChangeIpsSwitchStatusRequest_1 = require("./model/ChangeIpsSwitchStatusRequest");
22
+ const CreateEastWestFirewallRequest_1 = require("./model/CreateEastWestFirewallRequest");
21
23
  const DeleteAclRuleHitCountRequest_1 = require("./model/DeleteAclRuleHitCountRequest");
22
24
  const DeleteAclRuleRequest_1 = require("./model/DeleteAclRuleRequest");
23
25
  const DeleteAddressItemRequest_1 = require("./model/DeleteAddressItemRequest");
@@ -47,6 +49,7 @@ const ListFirewallListRequest_1 = require("./model/ListFirewallListRequest");
47
49
  const ListFlowLogsRequest_1 = require("./model/ListFlowLogsRequest");
48
50
  const ListIpsProtectModeRequest_1 = require("./model/ListIpsProtectModeRequest");
49
51
  const ListIpsSwitchStatusRequest_1 = require("./model/ListIpsSwitchStatusRequest");
52
+ const ListLogConfigRequest_1 = require("./model/ListLogConfigRequest");
50
53
  const ListProtectedVpcsRequest_1 = require("./model/ListProtectedVpcsRequest");
51
54
  const ListRuleAclTagsRequest_1 = require("./model/ListRuleAclTagsRequest");
52
55
  const ListServiceItemsRequest_1 = require("./model/ListServiceItemsRequest");
@@ -58,6 +61,7 @@ const UpdateAddressSetRequest_1 = require("./model/UpdateAddressSetRequest");
58
61
  const UpdateBlackWhiteListRequest_1 = require("./model/UpdateBlackWhiteListRequest");
59
62
  const UpdateDnsServersRequest_1 = require("./model/UpdateDnsServersRequest");
60
63
  const UpdateDomainSetRequest_1 = require("./model/UpdateDomainSetRequest");
64
+ const UpdateLogConfigRequest_1 = require("./model/UpdateLogConfigRequest");
61
65
  const UpdateServiceSetRequest_1 = require("./model/UpdateServiceSetRequest");
62
66
  class CfwClient {
63
67
  static newBuilder() {
@@ -127,6 +131,7 @@ class CfwClient {
127
131
  return this.hcClient.sendRequest(options);
128
132
  }
129
133
  /**
134
+ * 添加域名组
130
135
  *
131
136
  * Please refer to HUAWEI cloud API Explorer for details.
132
137
  *
@@ -164,6 +169,25 @@ class CfwClient {
164
169
  options['responseHeaders'] = [''];
165
170
  return this.hcClient.sendRequest(options);
166
171
  }
172
+ /**
173
+ * 创建日志配置
174
+ *
175
+ * Please refer to HUAWEI cloud API Explorer for details.
176
+ *
177
+ * @summary 创建日志配置
178
+ * @param {string} projectId 租户项目id
179
+ * @param {string} fwInstanceId 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。
180
+ * @param {LogConfigDto} logConfigDto 日志配置Dto
181
+ * @param {string} [enterpriseProjectId] 企业项目id,用户支持企业项目后,由企业项目生成的id。
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ addLogConfig(addLogConfigRequest) {
186
+ const options = (0, exports.ParamCreater)().addLogConfig(addLogConfigRequest);
187
+ // @ts-ignore
188
+ options['responseHeaders'] = [''];
189
+ return this.hcClient.sendRequest(options);
190
+ }
167
191
  /**
168
192
  * 批量添加服务组成员
169
193
  *
@@ -203,6 +227,7 @@ class CfwClient {
203
227
  return this.hcClient.sendRequest(options);
204
228
  }
205
229
  /**
230
+ * 批量删除地址组成员
206
231
  *
207
232
  * Please refer to HUAWEI cloud API Explorer for details.
208
233
  *
@@ -221,6 +246,7 @@ class CfwClient {
221
246
  return this.hcClient.sendRequest(options);
222
247
  }
223
248
  /**
249
+ * 批量删除服务组成员信息
224
250
  *
225
251
  * Please refer to HUAWEI cloud API Explorer for details.
226
252
  *
@@ -257,6 +283,25 @@ class CfwClient {
257
283
  options['responseHeaders'] = [''];
258
284
  return this.hcClient.sendRequest(options);
259
285
  }
286
+ /**
287
+ * 创建东西向防火墙
288
+ *
289
+ * Please refer to HUAWEI cloud API Explorer for details.
290
+ *
291
+ * @summary 创建东西向防火墙
292
+ * @param {string} projectId 租户项目id
293
+ * @param {string} fwInstanceId 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。
294
+ * @param {CreateEastWestFirewallRequestBody} createEastWestFirewallRequestBody CreateEastWestFirewallRequestBody
295
+ * @param {string} [enterpriseProjectId] 企业项目id,用户支持企业项目后,由企业项目生成的id。
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ createEastWestFirewall(createEastWestFirewallRequest) {
300
+ const options = (0, exports.ParamCreater)().createEastWestFirewall(createEastWestFirewallRequest);
301
+ // @ts-ignore
302
+ options['responseHeaders'] = [''];
303
+ return this.hcClient.sendRequest(options);
304
+ }
260
305
  /**
261
306
  * 删除地址组成员
262
307
  *
@@ -315,6 +360,7 @@ class CfwClient {
315
360
  return this.hcClient.sendRequest(options);
316
361
  }
317
362
  /**
363
+ * 删除域名组
318
364
  *
319
365
  * Please refer to HUAWEI cloud API Explorer for details.
320
366
  *
@@ -734,6 +780,24 @@ class CfwClient {
734
780
  options['responseHeaders'] = [''];
735
781
  return this.hcClient.sendRequest(options);
736
782
  }
783
+ /**
784
+ * 获取日志配置
785
+ *
786
+ * Please refer to HUAWEI cloud API Explorer for details.
787
+ *
788
+ * @summary 获取日志配置
789
+ * @param {string} projectId 租户项目id
790
+ * @param {string} fwInstanceId 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。
791
+ * @param {string} [enterpriseProjectId] 企业项目id,用户支持企业项目后,由企业项目生成的id。
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ listLogConfig(listLogConfigRequest) {
796
+ const options = (0, exports.ParamCreater)().listLogConfig(listLogConfigRequest);
797
+ // @ts-ignore
798
+ options['responseHeaders'] = [''];
799
+ return this.hcClient.sendRequest(options);
800
+ }
737
801
  /**
738
802
  * 查询防护vpc信息
739
803
  *
@@ -876,6 +940,7 @@ class CfwClient {
876
940
  return this.hcClient.sendRequest(options);
877
941
  }
878
942
  /**
943
+ * 更新域名组
879
944
  *
880
945
  * Please refer to HUAWEI cloud API Explorer for details.
881
946
  *
@@ -894,6 +959,25 @@ class CfwClient {
894
959
  options['responseHeaders'] = [''];
895
960
  return this.hcClient.sendRequest(options);
896
961
  }
962
+ /**
963
+ * 更新日志配置
964
+ *
965
+ * Please refer to HUAWEI cloud API Explorer for details.
966
+ *
967
+ * @summary 更新日志配置
968
+ * @param {string} projectId 租户项目id
969
+ * @param {string} fwInstanceId 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。
970
+ * @param {LogConfigDto} logConfigDto 日志配置DTO
971
+ * @param {string} [enterpriseProjectId] 企业项目id,用户支持企业项目后,由企业项目生成的id。
972
+ * @param {*} [options] Override http request option.
973
+ * @throws {RequiredError}
974
+ */
975
+ updateLogConfig(updateLogConfigRequest) {
976
+ const options = (0, exports.ParamCreater)().updateLogConfig(updateLogConfigRequest);
977
+ // @ts-ignore
978
+ options['responseHeaders'] = [''];
979
+ return this.hcClient.sendRequest(options);
980
+ }
897
981
  /**
898
982
  * 更新服务组
899
983
  *
@@ -953,6 +1037,7 @@ class CfwClient {
953
1037
  return this.hcClient.sendRequest(options);
954
1038
  }
955
1039
  /**
1040
+ * 批量更新规则动作
956
1041
  *
957
1042
  * Please refer to HUAWEI cloud API Explorer for details.
958
1043
  *
@@ -1060,6 +1145,7 @@ class CfwClient {
1060
1145
  return this.hcClient.sendRequest(options);
1061
1146
  }
1062
1147
  /**
1148
+ * 查询规则标签
1063
1149
  *
1064
1150
  * Please refer to HUAWEI cloud API Explorer for details.
1065
1151
  *
@@ -1119,7 +1205,7 @@ class CfwClient {
1119
1205
  return this.hcClient.sendRequest(options);
1120
1206
  }
1121
1207
  /**
1122
- * 开启关闭EIP,客户购买EIP后首次开启EIP防护前需使用ListEips同步EIP资产,sync字段设置为1。
1208
+ * 开启关闭EIP,客户购买EIP后首次开启EIP防护前需使用ListEips同步EIP资产,sync字段设置为1。
1123
1209
  *
1124
1210
  * Please refer to HUAWEI cloud API Explorer for details.
1125
1211
  *
@@ -1214,6 +1300,7 @@ class CfwClient {
1214
1300
  * @param {IpsSwitchDTO} changeIpsSwitchUsingPOSTRequestBody ChangeIpsSwitchUsingPOSTRequestBody
1215
1301
  * @param {string} [enterpriseProjectId] 企业项目id,用户支持企业项目后,由企业项目生成的id。
1216
1302
  * @param {string} [fwInstanceId] 防火墙实例id,创建云防火墙后用于标志防火墙由系统自动生成的标志id,可通过调用查询防火墙实例接口获得。具体可参考APIExlorer和帮助中心FAQ。默认情况下,fw_instance_Id为空时,返回帐号下第一个墙的信息;fw_instance_Id非空时,返回与fw_instance_Id对应墙的信息。
1303
+ * @param {string} [xLanguage] 语言头部,默认为zh-cn,如需使用英文,请选择en-us
1217
1304
  * @param {*} [options] Override http request option.
1218
1305
  * @throws {RequiredError}
1219
1306
  */
@@ -1428,6 +1515,7 @@ const ParamCreater = function () {
1428
1515
  return options;
1429
1516
  },
1430
1517
  /**
1518
+ * 添加域名组
1431
1519
  *
1432
1520
  * Please refer to HUAWEI cloud API Explorer for details.
1433
1521
  */
@@ -1540,6 +1628,63 @@ const ParamCreater = function () {
1540
1628
  options.headers = localVarHeaderParameter;
1541
1629
  return options;
1542
1630
  },
1631
+ /**
1632
+ * 创建日志配置
1633
+ *
1634
+ * Please refer to HUAWEI cloud API Explorer for details.
1635
+ */
1636
+ addLogConfig(addLogConfigRequest) {
1637
+ const options = {
1638
+ method: "POST",
1639
+ url: "/v1/{project_id}/cfw/logs/configuration",
1640
+ contentType: "application/json",
1641
+ queryParams: {},
1642
+ pathParams: {},
1643
+ headers: {},
1644
+ data: {}
1645
+ };
1646
+ const localVarHeaderParameter = {};
1647
+ const localVarQueryParameter = {};
1648
+ let body;
1649
+ let projectId;
1650
+ let fwInstanceId;
1651
+ let enterpriseProjectId;
1652
+ if (addLogConfigRequest !== null && addLogConfigRequest !== undefined) {
1653
+ if (addLogConfigRequest instanceof AddLogConfigRequest_1.AddLogConfigRequest) {
1654
+ projectId = addLogConfigRequest.projectId;
1655
+ fwInstanceId = addLogConfigRequest.fwInstanceId;
1656
+ body = addLogConfigRequest.body;
1657
+ enterpriseProjectId = addLogConfigRequest.enterpriseProjectId;
1658
+ }
1659
+ else {
1660
+ projectId = addLogConfigRequest['project_id'];
1661
+ fwInstanceId = addLogConfigRequest['fw_instance_id'];
1662
+ body = addLogConfigRequest['body'];
1663
+ enterpriseProjectId = addLogConfigRequest['enterprise_project_id'];
1664
+ }
1665
+ }
1666
+ if (projectId === null || projectId === undefined) {
1667
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addLogConfig.');
1668
+ }
1669
+ if (fwInstanceId === null || fwInstanceId === undefined) {
1670
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling addLogConfig.');
1671
+ }
1672
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
1673
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
1674
+ }
1675
+ if (body === null || body === undefined) {
1676
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1677
+ }
1678
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1679
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1680
+ }
1681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1682
+ options.data = body !== undefined ? body : {};
1683
+ options.queryParams = localVarQueryParameter;
1684
+ options.pathParams = { 'project_id': projectId, };
1685
+ options.headers = localVarHeaderParameter;
1686
+ return options;
1687
+ },
1543
1688
  /**
1544
1689
  * 批量添加服务组成员
1545
1690
  *
@@ -1649,6 +1794,7 @@ const ParamCreater = function () {
1649
1794
  return options;
1650
1795
  },
1651
1796
  /**
1797
+ * 批量删除地址组成员
1652
1798
  *
1653
1799
  * Please refer to HUAWEI cloud API Explorer for details.
1654
1800
  */
@@ -1702,6 +1848,7 @@ const ParamCreater = function () {
1702
1848
  return options;
1703
1849
  },
1704
1850
  /**
1851
+ * 批量删除服务组成员信息
1705
1852
  *
1706
1853
  * Please refer to HUAWEI cloud API Explorer for details.
1707
1854
  */
@@ -1808,6 +1955,63 @@ const ParamCreater = function () {
1808
1955
  options.headers = localVarHeaderParameter;
1809
1956
  return options;
1810
1957
  },
1958
+ /**
1959
+ * 创建东西向防火墙
1960
+ *
1961
+ * Please refer to HUAWEI cloud API Explorer for details.
1962
+ */
1963
+ createEastWestFirewall(createEastWestFirewallRequest) {
1964
+ const options = {
1965
+ method: "POST",
1966
+ url: "/v1/{project_id}/firewall/east-west",
1967
+ contentType: "application/json",
1968
+ queryParams: {},
1969
+ pathParams: {},
1970
+ headers: {},
1971
+ data: {}
1972
+ };
1973
+ const localVarHeaderParameter = {};
1974
+ const localVarQueryParameter = {};
1975
+ let body;
1976
+ let projectId;
1977
+ let fwInstanceId;
1978
+ let enterpriseProjectId;
1979
+ if (createEastWestFirewallRequest !== null && createEastWestFirewallRequest !== undefined) {
1980
+ if (createEastWestFirewallRequest instanceof CreateEastWestFirewallRequest_1.CreateEastWestFirewallRequest) {
1981
+ projectId = createEastWestFirewallRequest.projectId;
1982
+ fwInstanceId = createEastWestFirewallRequest.fwInstanceId;
1983
+ body = createEastWestFirewallRequest.body;
1984
+ enterpriseProjectId = createEastWestFirewallRequest.enterpriseProjectId;
1985
+ }
1986
+ else {
1987
+ projectId = createEastWestFirewallRequest['project_id'];
1988
+ fwInstanceId = createEastWestFirewallRequest['fw_instance_id'];
1989
+ body = createEastWestFirewallRequest['body'];
1990
+ enterpriseProjectId = createEastWestFirewallRequest['enterprise_project_id'];
1991
+ }
1992
+ }
1993
+ if (projectId === null || projectId === undefined) {
1994
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling createEastWestFirewall.');
1995
+ }
1996
+ if (fwInstanceId === null || fwInstanceId === undefined) {
1997
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling createEastWestFirewall.');
1998
+ }
1999
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
2000
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
2001
+ }
2002
+ if (body === null || body === undefined) {
2003
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2004
+ }
2005
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2006
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2007
+ }
2008
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2009
+ options.data = body !== undefined ? body : {};
2010
+ options.queryParams = localVarQueryParameter;
2011
+ options.pathParams = { 'project_id': projectId, };
2012
+ options.headers = localVarHeaderParameter;
2013
+ return options;
2014
+ },
1811
2015
  /**
1812
2016
  * 删除地址组成员
1813
2017
  *
@@ -1962,6 +2166,7 @@ const ParamCreater = function () {
1962
2166
  return options;
1963
2167
  },
1964
2168
  /**
2169
+ * 删除域名组
1965
2170
  *
1966
2171
  * Please refer to HUAWEI cloud API Explorer for details.
1967
2172
  */
@@ -3460,6 +3665,54 @@ const ParamCreater = function () {
3460
3665
  options.headers = localVarHeaderParameter;
3461
3666
  return options;
3462
3667
  },
3668
+ /**
3669
+ * 获取日志配置
3670
+ *
3671
+ * Please refer to HUAWEI cloud API Explorer for details.
3672
+ */
3673
+ listLogConfig(listLogConfigRequest) {
3674
+ const options = {
3675
+ method: "GET",
3676
+ url: "/v1/{project_id}/cfw/logs/configuration",
3677
+ contentType: "application/json",
3678
+ queryParams: {},
3679
+ pathParams: {},
3680
+ headers: {}
3681
+ };
3682
+ const localVarHeaderParameter = {};
3683
+ const localVarQueryParameter = {};
3684
+ let projectId;
3685
+ let fwInstanceId;
3686
+ let enterpriseProjectId;
3687
+ if (listLogConfigRequest !== null && listLogConfigRequest !== undefined) {
3688
+ if (listLogConfigRequest instanceof ListLogConfigRequest_1.ListLogConfigRequest) {
3689
+ projectId = listLogConfigRequest.projectId;
3690
+ fwInstanceId = listLogConfigRequest.fwInstanceId;
3691
+ enterpriseProjectId = listLogConfigRequest.enterpriseProjectId;
3692
+ }
3693
+ else {
3694
+ projectId = listLogConfigRequest['project_id'];
3695
+ fwInstanceId = listLogConfigRequest['fw_instance_id'];
3696
+ enterpriseProjectId = listLogConfigRequest['enterprise_project_id'];
3697
+ }
3698
+ }
3699
+ if (projectId === null || projectId === undefined) {
3700
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listLogConfig.');
3701
+ }
3702
+ if (fwInstanceId === null || fwInstanceId === undefined) {
3703
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listLogConfig.');
3704
+ }
3705
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
3706
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
3707
+ }
3708
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3709
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3710
+ }
3711
+ options.queryParams = localVarQueryParameter;
3712
+ options.pathParams = { 'project_id': projectId, };
3713
+ options.headers = localVarHeaderParameter;
3714
+ return options;
3715
+ },
3463
3716
  /**
3464
3717
  * 查询防护vpc信息
3465
3718
  *
@@ -3896,6 +4149,7 @@ const ParamCreater = function () {
3896
4149
  return options;
3897
4150
  },
3898
4151
  /**
4152
+ * 更新域名组
3899
4153
  *
3900
4154
  * Please refer to HUAWEI cloud API Explorer for details.
3901
4155
  */
@@ -3954,6 +4208,63 @@ const ParamCreater = function () {
3954
4208
  options.headers = localVarHeaderParameter;
3955
4209
  return options;
3956
4210
  },
4211
+ /**
4212
+ * 更新日志配置
4213
+ *
4214
+ * Please refer to HUAWEI cloud API Explorer for details.
4215
+ */
4216
+ updateLogConfig(updateLogConfigRequest) {
4217
+ const options = {
4218
+ method: "PUT",
4219
+ url: "/v1/{project_id}/cfw/logs/configuration",
4220
+ contentType: "application/json",
4221
+ queryParams: {},
4222
+ pathParams: {},
4223
+ headers: {},
4224
+ data: {}
4225
+ };
4226
+ const localVarHeaderParameter = {};
4227
+ const localVarQueryParameter = {};
4228
+ let body;
4229
+ let projectId;
4230
+ let fwInstanceId;
4231
+ let enterpriseProjectId;
4232
+ if (updateLogConfigRequest !== null && updateLogConfigRequest !== undefined) {
4233
+ if (updateLogConfigRequest instanceof UpdateLogConfigRequest_1.UpdateLogConfigRequest) {
4234
+ projectId = updateLogConfigRequest.projectId;
4235
+ fwInstanceId = updateLogConfigRequest.fwInstanceId;
4236
+ body = updateLogConfigRequest.body;
4237
+ enterpriseProjectId = updateLogConfigRequest.enterpriseProjectId;
4238
+ }
4239
+ else {
4240
+ projectId = updateLogConfigRequest['project_id'];
4241
+ fwInstanceId = updateLogConfigRequest['fw_instance_id'];
4242
+ body = updateLogConfigRequest['body'];
4243
+ enterpriseProjectId = updateLogConfigRequest['enterprise_project_id'];
4244
+ }
4245
+ }
4246
+ if (projectId === null || projectId === undefined) {
4247
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateLogConfig.');
4248
+ }
4249
+ if (fwInstanceId === null || fwInstanceId === undefined) {
4250
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateLogConfig.');
4251
+ }
4252
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
4253
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4254
+ }
4255
+ if (body === null || body === undefined) {
4256
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4257
+ }
4258
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4259
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4260
+ }
4261
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4262
+ options.data = body !== undefined ? body : {};
4263
+ options.queryParams = localVarQueryParameter;
4264
+ options.pathParams = { 'project_id': projectId, };
4265
+ options.headers = localVarHeaderParameter;
4266
+ return options;
4267
+ },
3957
4268
  /**
3958
4269
  * 更新服务组
3959
4270
  *
@@ -4123,6 +4434,7 @@ const ParamCreater = function () {
4123
4434
  return options;
4124
4435
  },
4125
4436
  /**
4437
+ * 批量更新规则动作
4126
4438
  *
4127
4439
  * Please refer to HUAWEI cloud API Explorer for details.
4128
4440
  */
@@ -4470,6 +4782,7 @@ const ParamCreater = function () {
4470
4782
  return options;
4471
4783
  },
4472
4784
  /**
4785
+ * 查询规则标签
4473
4786
  *
4474
4787
  * Please refer to HUAWEI cloud API Explorer for details.
4475
4788
  */
@@ -4655,7 +4968,7 @@ const ParamCreater = function () {
4655
4968
  return options;
4656
4969
  },
4657
4970
  /**
4658
- * 开启关闭EIP,客户购买EIP后首次开启EIP防护前需使用ListEips同步EIP资产,sync字段设置为1。
4971
+ * 开启关闭EIP,客户购买EIP后首次开启EIP防护前需使用ListEips同步EIP资产,sync字段设置为1。
4659
4972
  *
4660
4973
  * Please refer to HUAWEI cloud API Explorer for details.
4661
4974
  */
@@ -4954,18 +5267,21 @@ const ParamCreater = function () {
4954
5267
  let projectId;
4955
5268
  let enterpriseProjectId;
4956
5269
  let fwInstanceId;
5270
+ let xLanguage;
4957
5271
  if (changeIpsSwitchStatusRequest !== null && changeIpsSwitchStatusRequest !== undefined) {
4958
5272
  if (changeIpsSwitchStatusRequest instanceof ChangeIpsSwitchStatusRequest_1.ChangeIpsSwitchStatusRequest) {
4959
5273
  projectId = changeIpsSwitchStatusRequest.projectId;
4960
5274
  body = changeIpsSwitchStatusRequest.body;
4961
5275
  enterpriseProjectId = changeIpsSwitchStatusRequest.enterpriseProjectId;
4962
5276
  fwInstanceId = changeIpsSwitchStatusRequest.fwInstanceId;
5277
+ xLanguage = changeIpsSwitchStatusRequest.xLanguage;
4963
5278
  }
4964
5279
  else {
4965
5280
  projectId = changeIpsSwitchStatusRequest['project_id'];
4966
5281
  body = changeIpsSwitchStatusRequest['body'];
4967
5282
  enterpriseProjectId = changeIpsSwitchStatusRequest['enterprise_project_id'];
4968
5283
  fwInstanceId = changeIpsSwitchStatusRequest['fw_instance_id'];
5284
+ xLanguage = changeIpsSwitchStatusRequest['X-Language'];
4969
5285
  }
4970
5286
  }
4971
5287
  if (projectId === null || projectId === undefined) {
@@ -4980,6 +5296,9 @@ const ParamCreater = function () {
4980
5296
  if (fwInstanceId !== null && fwInstanceId !== undefined) {
4981
5297
  localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4982
5298
  }
5299
+ if (xLanguage !== undefined && xLanguage !== null) {
5300
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
5301
+ }
4983
5302
  localVarHeaderParameter['Content-Type'] = 'application/json';
4984
5303
  options.data = body !== undefined ? body : {};
4985
5304
  options.queryParams = localVarQueryParameter;