@huaweicloud/huaweicloud-sdk-cfw 3.1.129 → 3.1.130

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/package.json +2 -2
  2. package/v1/CfwClient.d.ts +690 -0
  3. package/v1/CfwClient.d.ts.map +1 -1
  4. package/v1/CfwClient.js +2093 -256
  5. package/v1/CfwClient.js.map +1 -1
  6. package/v1/model/AdvancedIpsRuleDto.d.ts +22 -0
  7. package/v1/model/AdvancedIpsRuleDto.d.ts.map +1 -0
  8. package/v1/model/AdvancedIpsRuleDto.js +51 -0
  9. package/v1/model/AdvancedIpsRuleDto.js.map +1 -0
  10. package/v1/model/AdvancedIpsRuleListVo.d.ts +11 -0
  11. package/v1/model/AdvancedIpsRuleListVo.d.ts.map +1 -0
  12. package/v1/model/AdvancedIpsRuleListVo.js +23 -0
  13. package/v1/model/AdvancedIpsRuleListVo.js.map +1 -0
  14. package/v1/model/AdvancedIpsRuleVo.d.ts +18 -0
  15. package/v1/model/AdvancedIpsRuleVo.d.ts.map +1 -0
  16. package/v1/model/AdvancedIpsRuleVo.js +41 -0
  17. package/v1/model/AdvancedIpsRuleVo.js.map +1 -0
  18. package/v1/model/AlarmConfig.d.ts +44 -0
  19. package/v1/model/AlarmConfig.d.ts.map +1 -0
  20. package/v1/model/AlarmConfig.js +105 -0
  21. package/v1/model/AlarmConfig.js.map +1 -0
  22. package/v1/model/AntiVirusRuleDto.d.ts +13 -0
  23. package/v1/model/AntiVirusRuleDto.d.ts.map +1 -0
  24. package/v1/model/AntiVirusRuleDto.js +29 -0
  25. package/v1/model/AntiVirusRuleDto.js.map +1 -0
  26. package/v1/model/AntiVirusRuleVO.d.ts +15 -0
  27. package/v1/model/AntiVirusRuleVO.d.ts.map +1 -0
  28. package/v1/model/AntiVirusRuleVO.js +31 -0
  29. package/v1/model/AntiVirusRuleVO.js.map +1 -0
  30. package/v1/model/AntiVirusSwitchDto.d.ts +12 -0
  31. package/v1/model/AntiVirusSwitchDto.d.ts.map +1 -0
  32. package/v1/model/AntiVirusSwitchDto.js +29 -0
  33. package/v1/model/AntiVirusSwitchDto.js.map +1 -0
  34. package/v1/model/AntiVirusVO.d.ts +12 -0
  35. package/v1/model/AntiVirusVO.d.ts.map +1 -0
  36. package/v1/model/AntiVirusVO.js +27 -0
  37. package/v1/model/AntiVirusVO.js.map +1 -0
  38. package/v1/model/BatchDeleteDomainSetRequest.d.ts +19 -0
  39. package/v1/model/BatchDeleteDomainSetRequest.d.ts.map +1 -0
  40. package/v1/model/BatchDeleteDomainSetRequest.js +44 -0
  41. package/v1/model/BatchDeleteDomainSetRequest.js.map +1 -0
  42. package/v1/model/BatchDeleteDomainSetResponse.d.ts +12 -0
  43. package/v1/model/BatchDeleteDomainSetResponse.d.ts.map +1 -0
  44. package/v1/model/BatchDeleteDomainSetResponse.js +15 -0
  45. package/v1/model/BatchDeleteDomainSetResponse.js.map +1 -0
  46. package/v1/model/BatchDeleteDomainSetsDto.d.ts +12 -0
  47. package/v1/model/BatchDeleteDomainSetsDto.d.ts.map +1 -0
  48. package/v1/model/BatchDeleteDomainSetsDto.js +29 -0
  49. package/v1/model/BatchDeleteDomainSetsDto.js.map +1 -0
  50. package/v1/model/ChangeIpsRuleModeRequest.d.ts +15 -0
  51. package/v1/model/ChangeIpsRuleModeRequest.d.ts.map +1 -0
  52. package/v1/model/ChangeIpsRuleModeRequest.js +34 -0
  53. package/v1/model/ChangeIpsRuleModeRequest.js.map +1 -0
  54. package/v1/model/ChangeIpsRuleModeResponse.d.ts +8 -0
  55. package/v1/model/ChangeIpsRuleModeResponse.d.ts.map +1 -0
  56. package/v1/model/ChangeIpsRuleModeResponse.js +15 -0
  57. package/v1/model/ChangeIpsRuleModeResponse.js.map +1 -0
  58. package/v1/model/CustomerIpsListVO.d.ts +58 -0
  59. package/v1/model/CustomerIpsListVO.d.ts.map +1 -0
  60. package/v1/model/CustomerIpsListVO.js +139 -0
  61. package/v1/model/CustomerIpsListVO.js.map +1 -0
  62. package/v1/model/FirewallStatusVO.d.ts +30 -0
  63. package/v1/model/FirewallStatusVO.d.ts.map +1 -0
  64. package/v1/model/FirewallStatusVO.js +73 -0
  65. package/v1/model/FirewallStatusVO.js.map +1 -0
  66. package/v1/model/IpsRuleChangeDto.d.ts +25 -0
  67. package/v1/model/IpsRuleChangeDto.d.ts.map +1 -0
  68. package/v1/model/IpsRuleChangeDto.js +45 -0
  69. package/v1/model/IpsRuleChangeDto.js.map +1 -0
  70. package/v1/model/IpsRuleChangeRespBody.d.ts +24 -0
  71. package/v1/model/IpsRuleChangeRespBody.d.ts.map +1 -0
  72. package/v1/model/IpsRuleChangeRespBody.js +57 -0
  73. package/v1/model/IpsRuleChangeRespBody.js.map +1 -0
  74. package/v1/model/IpsRuleListVO.d.ts +21 -0
  75. package/v1/model/IpsRuleListVO.d.ts.map +1 -0
  76. package/v1/model/IpsRuleListVO.js +45 -0
  77. package/v1/model/IpsRuleListVO.js.map +1 -0
  78. package/v1/model/IpsRuleUpdateTimeVO.d.ts +16 -0
  79. package/v1/model/IpsRuleUpdateTimeVO.d.ts.map +1 -0
  80. package/v1/model/IpsRuleUpdateTimeVO.js +39 -0
  81. package/v1/model/IpsRuleUpdateTimeVO.js.map +1 -0
  82. package/v1/model/IpsRuleVO.d.ts +87 -0
  83. package/v1/model/IpsRuleVO.d.ts.map +1 -0
  84. package/v1/model/IpsRuleVO.js +156 -0
  85. package/v1/model/IpsRuleVO.js.map +1 -0
  86. package/v1/model/ListAlarmWhitelistRequest.d.ts +24 -0
  87. package/v1/model/ListAlarmWhitelistRequest.d.ts.map +1 -0
  88. package/v1/model/ListAlarmWhitelistRequest.js +61 -0
  89. package/v1/model/ListAlarmWhitelistRequest.js.map +1 -0
  90. package/v1/model/ListAlarmWhitelistResponse.d.ts +8 -0
  91. package/v1/model/ListAlarmWhitelistResponse.d.ts.map +1 -0
  92. package/v1/model/ListAlarmWhitelistResponse.js +15 -0
  93. package/v1/model/ListAlarmWhitelistResponse.js.map +1 -0
  94. package/v1/model/ListCustomerIpsRequest.d.ts +46 -0
  95. package/v1/model/ListCustomerIpsRequest.d.ts.map +1 -0
  96. package/v1/model/ListCustomerIpsRequest.js +114 -0
  97. package/v1/model/ListCustomerIpsRequest.js.map +1 -0
  98. package/v1/model/ListCustomerIpsResponse.d.ts +8 -0
  99. package/v1/model/ListCustomerIpsResponse.d.ts.map +1 -0
  100. package/v1/model/ListCustomerIpsResponse.js +15 -0
  101. package/v1/model/ListCustomerIpsResponse.js.map +1 -0
  102. package/v1/model/ListDomainParseIpRequest.d.ts +28 -0
  103. package/v1/model/ListDomainParseIpRequest.d.ts.map +1 -0
  104. package/v1/model/ListDomainParseIpRequest.js +73 -0
  105. package/v1/model/ListDomainParseIpRequest.js.map +1 -0
  106. package/v1/model/ListDomainParseIpResponse.d.ts +7 -0
  107. package/v1/model/ListDomainParseIpResponse.d.ts.map +1 -0
  108. package/v1/model/ListDomainParseIpResponse.js +15 -0
  109. package/v1/model/ListDomainParseIpResponse.js.map +1 -0
  110. package/v1/model/ListIpsRules1Request.d.ts +64 -0
  111. package/v1/model/ListIpsRules1Request.d.ts.map +1 -0
  112. package/v1/model/ListIpsRules1Request.js +161 -0
  113. package/v1/model/ListIpsRules1Request.js.map +1 -0
  114. package/v1/model/ListIpsRules1Response.d.ts +8 -0
  115. package/v1/model/ListIpsRules1Response.d.ts.map +1 -0
  116. package/v1/model/ListIpsRules1Response.js +15 -0
  117. package/v1/model/ListIpsRules1Response.js.map +1 -0
  118. package/v1/model/ListIpsRulesRequest.d.ts +16 -0
  119. package/v1/model/ListIpsRulesRequest.d.ts.map +1 -0
  120. package/v1/model/ListIpsRulesRequest.js +41 -0
  121. package/v1/model/ListIpsRulesRequest.js.map +1 -0
  122. package/v1/model/ListIpsRulesResponse.d.ts +8 -0
  123. package/v1/model/ListIpsRulesResponse.d.ts.map +1 -0
  124. package/v1/model/ListIpsRulesResponse.js +15 -0
  125. package/v1/model/ListIpsRulesResponse.js.map +1 -0
  126. package/v1/model/ListProjectTagsRequest.d.ts +16 -0
  127. package/v1/model/ListProjectTagsRequest.d.ts.map +1 -0
  128. package/v1/model/ListProjectTagsRequest.js +40 -0
  129. package/v1/model/ListProjectTagsRequest.js.map +1 -0
  130. package/v1/model/ListProjectTagsResponse.d.ts +8 -0
  131. package/v1/model/ListProjectTagsResponse.d.ts.map +1 -0
  132. package/v1/model/ListProjectTagsResponse.js +15 -0
  133. package/v1/model/ListProjectTagsResponse.js.map +1 -0
  134. package/v1/model/ListRegionsRequest.d.ts +16 -0
  135. package/v1/model/ListRegionsRequest.d.ts.map +1 -0
  136. package/v1/model/ListRegionsRequest.js +41 -0
  137. package/v1/model/ListRegionsRequest.js.map +1 -0
  138. package/v1/model/ListRegionsResponse.d.ts +7 -0
  139. package/v1/model/ListRegionsResponse.d.ts.map +1 -0
  140. package/v1/model/ListRegionsResponse.js +15 -0
  141. package/v1/model/ListRegionsResponse.js.map +1 -0
  142. package/v1/model/ListResourceTagsRequest.d.ts +16 -0
  143. package/v1/model/ListResourceTagsRequest.d.ts.map +1 -0
  144. package/v1/model/ListResourceTagsRequest.js +41 -0
  145. package/v1/model/ListResourceTagsRequest.js.map +1 -0
  146. package/v1/model/ListResourceTagsResponse.d.ts +14 -0
  147. package/v1/model/ListResourceTagsResponse.d.ts.map +1 -0
  148. package/v1/model/ListResourceTagsResponse.js +29 -0
  149. package/v1/model/ListResourceTagsResponse.js.map +1 -0
  150. package/v1/model/Mapstringstring.d.ts +4 -0
  151. package/v1/model/Mapstringstring.d.ts.map +1 -0
  152. package/v1/model/Mapstringstring.js +9 -0
  153. package/v1/model/Mapstringstring.js.map +1 -0
  154. package/v1/model/PageInfo.d.ts +40 -0
  155. package/v1/model/PageInfo.d.ts.map +1 -0
  156. package/v1/model/PageInfo.js +81 -0
  157. package/v1/model/PageInfo.js.map +1 -0
  158. package/v1/model/PageInfoCustomerIpsListVO.d.ts +13 -0
  159. package/v1/model/PageInfoCustomerIpsListVO.d.ts.map +1 -0
  160. package/v1/model/PageInfoCustomerIpsListVO.js +25 -0
  161. package/v1/model/PageInfoCustomerIpsListVO.js.map +1 -0
  162. package/v1/model/ResponseData.d.ts +6 -0
  163. package/v1/model/ResponseData.d.ts.map +1 -0
  164. package/v1/model/ResponseData.js +13 -0
  165. package/v1/model/ResponseData.js.map +1 -0
  166. package/v1/model/SaveTagsRequest.d.ts +19 -0
  167. package/v1/model/SaveTagsRequest.d.ts.map +1 -0
  168. package/v1/model/SaveTagsRequest.js +45 -0
  169. package/v1/model/SaveTagsRequest.js.map +1 -0
  170. package/v1/model/SaveTagsResponse.d.ts +7 -0
  171. package/v1/model/SaveTagsResponse.d.ts.map +1 -0
  172. package/v1/model/SaveTagsResponse.js +15 -0
  173. package/v1/model/SaveTagsResponse.js.map +1 -0
  174. package/v1/model/ScanProtocolConfig.d.ts +10 -0
  175. package/v1/model/ScanProtocolConfig.d.ts.map +1 -0
  176. package/v1/model/ScanProtocolConfig.js +23 -0
  177. package/v1/model/ScanProtocolConfig.js.map +1 -0
  178. package/v1/model/ShowAlarmConfigRequest.d.ts +16 -0
  179. package/v1/model/ShowAlarmConfigRequest.d.ts.map +1 -0
  180. package/v1/model/ShowAlarmConfigRequest.js +41 -0
  181. package/v1/model/ShowAlarmConfigRequest.js.map +1 -0
  182. package/v1/model/ShowAlarmConfigResponse.d.ts +12 -0
  183. package/v1/model/ShowAlarmConfigResponse.d.ts.map +1 -0
  184. package/v1/model/ShowAlarmConfigResponse.js +25 -0
  185. package/v1/model/ShowAlarmConfigResponse.js.map +1 -0
  186. package/v1/model/ShowAntiVirusRuleRequest.d.ts +24 -0
  187. package/v1/model/ShowAntiVirusRuleRequest.d.ts.map +1 -0
  188. package/v1/model/ShowAntiVirusRuleRequest.js +62 -0
  189. package/v1/model/ShowAntiVirusRuleRequest.js.map +1 -0
  190. package/v1/model/ShowAntiVirusRuleResponse.d.ts +8 -0
  191. package/v1/model/ShowAntiVirusRuleResponse.d.ts.map +1 -0
  192. package/v1/model/ShowAntiVirusRuleResponse.js +15 -0
  193. package/v1/model/ShowAntiVirusRuleResponse.js.map +1 -0
  194. package/v1/model/ShowAntiVirusSwitchRequest.d.ts +16 -0
  195. package/v1/model/ShowAntiVirusSwitchRequest.d.ts.map +1 -0
  196. package/v1/model/ShowAntiVirusSwitchRequest.js +41 -0
  197. package/v1/model/ShowAntiVirusSwitchRequest.js.map +1 -0
  198. package/v1/model/ShowAntiVirusSwitchResponse.d.ts +8 -0
  199. package/v1/model/ShowAntiVirusSwitchResponse.d.ts.map +1 -0
  200. package/v1/model/ShowAntiVirusSwitchResponse.js +15 -0
  201. package/v1/model/ShowAntiVirusSwitchResponse.js.map +1 -0
  202. package/v1/model/ShowAutoProtectStatusRequest.d.ts +16 -0
  203. package/v1/model/ShowAutoProtectStatusRequest.d.ts.map +1 -0
  204. package/v1/model/ShowAutoProtectStatusRequest.js +41 -0
  205. package/v1/model/ShowAutoProtectStatusRequest.js.map +1 -0
  206. package/v1/model/ShowAutoProtectStatusResponse.d.ts +8 -0
  207. package/v1/model/ShowAutoProtectStatusResponse.d.ts.map +1 -0
  208. package/v1/model/ShowAutoProtectStatusResponse.js +15 -0
  209. package/v1/model/ShowAutoProtectStatusResponse.js.map +1 -0
  210. package/v1/model/ShowDomainSetDetailRequest.d.ts +20 -0
  211. package/v1/model/ShowDomainSetDetailRequest.d.ts.map +1 -0
  212. package/v1/model/ShowDomainSetDetailRequest.js +52 -0
  213. package/v1/model/ShowDomainSetDetailRequest.js.map +1 -0
  214. package/v1/model/ShowDomainSetDetailResponse.d.ts +8 -0
  215. package/v1/model/ShowDomainSetDetailResponse.d.ts.map +1 -0
  216. package/v1/model/ShowDomainSetDetailResponse.js +15 -0
  217. package/v1/model/ShowDomainSetDetailResponse.js.map +1 -0
  218. package/v1/model/ShowImportStatusRequest.d.ts +16 -0
  219. package/v1/model/ShowImportStatusRequest.d.ts.map +1 -0
  220. package/v1/model/ShowImportStatusRequest.js +41 -0
  221. package/v1/model/ShowImportStatusRequest.js.map +1 -0
  222. package/v1/model/ShowImportStatusResponse.d.ts +7 -0
  223. package/v1/model/ShowImportStatusResponse.d.ts.map +1 -0
  224. package/v1/model/ShowImportStatusResponse.js +15 -0
  225. package/v1/model/ShowImportStatusResponse.js.map +1 -0
  226. package/v1/model/ShowIpsUpdateTimeRequest.d.ts +16 -0
  227. package/v1/model/ShowIpsUpdateTimeRequest.d.ts.map +1 -0
  228. package/v1/model/ShowIpsUpdateTimeRequest.js +41 -0
  229. package/v1/model/ShowIpsUpdateTimeRequest.js.map +1 -0
  230. package/v1/model/ShowIpsUpdateTimeResponse.d.ts +32 -0
  231. package/v1/model/ShowIpsUpdateTimeResponse.d.ts.map +1 -0
  232. package/v1/model/ShowIpsUpdateTimeResponse.js +75 -0
  233. package/v1/model/ShowIpsUpdateTimeResponse.js.map +1 -0
  234. package/v1/model/SwitchAutoProtectStatusRequest.d.ts +15 -0
  235. package/v1/model/SwitchAutoProtectStatusRequest.d.ts.map +1 -0
  236. package/v1/model/SwitchAutoProtectStatusRequest.js +34 -0
  237. package/v1/model/SwitchAutoProtectStatusRequest.js.map +1 -0
  238. package/v1/model/SwitchAutoProtectStatusResponse.d.ts +7 -0
  239. package/v1/model/SwitchAutoProtectStatusResponse.d.ts.map +1 -0
  240. package/v1/model/SwitchAutoProtectStatusResponse.js +15 -0
  241. package/v1/model/SwitchAutoProtectStatusResponse.js.map +1 -0
  242. package/v1/model/SwitchEipStatusDto.d.ts +14 -0
  243. package/v1/model/SwitchEipStatusDto.d.ts.map +1 -0
  244. package/v1/model/SwitchEipStatusDto.js +33 -0
  245. package/v1/model/SwitchEipStatusDto.js.map +1 -0
  246. package/v1/model/TagValue.d.ts +8 -0
  247. package/v1/model/TagValue.d.ts.map +1 -0
  248. package/v1/model/TagValue.js +17 -0
  249. package/v1/model/TagValue.js.map +1 -0
  250. package/v1/model/UpdateAdvancedIpsRuleRequest.d.ts +19 -0
  251. package/v1/model/UpdateAdvancedIpsRuleRequest.d.ts.map +1 -0
  252. package/v1/model/UpdateAdvancedIpsRuleRequest.js +44 -0
  253. package/v1/model/UpdateAdvancedIpsRuleRequest.js.map +1 -0
  254. package/v1/model/UpdateAdvancedIpsRuleResponse.d.ts +8 -0
  255. package/v1/model/UpdateAdvancedIpsRuleResponse.d.ts.map +1 -0
  256. package/v1/model/UpdateAdvancedIpsRuleResponse.js +15 -0
  257. package/v1/model/UpdateAdvancedIpsRuleResponse.js.map +1 -0
  258. package/v1/model/UpdateAlarmConfigRequest.d.ts +19 -0
  259. package/v1/model/UpdateAlarmConfigRequest.d.ts.map +1 -0
  260. package/v1/model/UpdateAlarmConfigRequest.js +45 -0
  261. package/v1/model/UpdateAlarmConfigRequest.js.map +1 -0
  262. package/v1/model/UpdateAlarmConfigResponse.d.ts +8 -0
  263. package/v1/model/UpdateAlarmConfigResponse.d.ts.map +1 -0
  264. package/v1/model/UpdateAlarmConfigResponse.js +15 -0
  265. package/v1/model/UpdateAlarmConfigResponse.js.map +1 -0
  266. package/v1/model/UpdateAntiVirusRuleRequest.d.ts +15 -0
  267. package/v1/model/UpdateAntiVirusRuleRequest.d.ts.map +1 -0
  268. package/v1/model/UpdateAntiVirusRuleRequest.js +34 -0
  269. package/v1/model/UpdateAntiVirusRuleRequest.js.map +1 -0
  270. package/v1/model/UpdateAntiVirusRuleResponse.d.ts +8 -0
  271. package/v1/model/UpdateAntiVirusRuleResponse.d.ts.map +1 -0
  272. package/v1/model/UpdateAntiVirusRuleResponse.js +15 -0
  273. package/v1/model/UpdateAntiVirusRuleResponse.js.map +1 -0
  274. package/v1/model/UpdateAntiVirusSwitchRequest.d.ts +15 -0
  275. package/v1/model/UpdateAntiVirusSwitchRequest.d.ts.map +1 -0
  276. package/v1/model/UpdateAntiVirusSwitchRequest.js +34 -0
  277. package/v1/model/UpdateAntiVirusSwitchRequest.js.map +1 -0
  278. package/v1/model/UpdateAntiVirusSwitchResponse.d.ts +8 -0
  279. package/v1/model/UpdateAntiVirusSwitchResponse.d.ts.map +1 -0
  280. package/v1/model/UpdateAntiVirusSwitchResponse.js +15 -0
  281. package/v1/model/UpdateAntiVirusSwitchResponse.js.map +1 -0
  282. package/v1/model/UpdateAttackLogAlarmConfigDto.d.ts +42 -0
  283. package/v1/model/UpdateAttackLogAlarmConfigDto.d.ts.map +1 -0
  284. package/v1/model/UpdateAttackLogAlarmConfigDto.js +101 -0
  285. package/v1/model/UpdateAttackLogAlarmConfigDto.js.map +1 -0
  286. package/v1/public-api.d.ts +70 -0
  287. package/v1/public-api.d.ts.map +1 -1
  288. package/v1/public-api.js +70 -0
  289. package/v1/public-api.js.map +1 -1
package/v1/CfwClient.js CHANGED
@@ -13,12 +13,14 @@ const AddServiceItemsRequest_1 = require("./model/AddServiceItemsRequest");
13
13
  const AddServiceSetRequest_1 = require("./model/AddServiceSetRequest");
14
14
  const BatchDeleteAclRulesRequest_1 = require("./model/BatchDeleteAclRulesRequest");
15
15
  const BatchDeleteAddressItemsRequest_1 = require("./model/BatchDeleteAddressItemsRequest");
16
+ const BatchDeleteDomainSetRequest_1 = require("./model/BatchDeleteDomainSetRequest");
16
17
  const BatchDeleteServiceItemsRequest_1 = require("./model/BatchDeleteServiceItemsRequest");
17
18
  const BatchUpdateAclRuleActionsRequest_1 = require("./model/BatchUpdateAclRuleActionsRequest");
18
19
  const CancelCaptureTaskRequest_1 = require("./model/CancelCaptureTaskRequest");
19
20
  const ChangeEastWestFirewallStatusRequest_1 = require("./model/ChangeEastWestFirewallStatusRequest");
20
21
  const ChangeEipStatusRequest_1 = require("./model/ChangeEipStatusRequest");
21
22
  const ChangeIpsProtectModeRequest_1 = require("./model/ChangeIpsProtectModeRequest");
23
+ const ChangeIpsRuleModeRequest_1 = require("./model/ChangeIpsRuleModeRequest");
22
24
  const ChangeIpsSwitchStatusRequest_1 = require("./model/ChangeIpsSwitchStatusRequest");
23
25
  const CreateCaptureTaskRequest_1 = require("./model/CreateCaptureTaskRequest");
24
26
  const CreateEastWestFirewallRequest_1 = require("./model/CreateEastWestFirewallRequest");
@@ -42,12 +44,15 @@ const ListAclRulesRequest_1 = require("./model/ListAclRulesRequest");
42
44
  const ListAddressItemsRequest_1 = require("./model/ListAddressItemsRequest");
43
45
  const ListAddressSetDetailRequest_1 = require("./model/ListAddressSetDetailRequest");
44
46
  const ListAddressSetsRequest_1 = require("./model/ListAddressSetsRequest");
47
+ const ListAlarmWhitelistRequest_1 = require("./model/ListAlarmWhitelistRequest");
45
48
  const ListAttackLogsRequest_1 = require("./model/ListAttackLogsRequest");
46
49
  const ListBlackWhiteListsRequest_1 = require("./model/ListBlackWhiteListsRequest");
47
50
  const ListCaptureResultRequest_1 = require("./model/ListCaptureResultRequest");
48
51
  const ListCaptureTaskRequest_1 = require("./model/ListCaptureTaskRequest");
52
+ const ListCustomerIpsRequest_1 = require("./model/ListCustomerIpsRequest");
49
53
  const ListDnsServersRequest_1 = require("./model/ListDnsServersRequest");
50
54
  const ListDomainParseDetailRequest_1 = require("./model/ListDomainParseDetailRequest");
55
+ const ListDomainParseIpRequest_1 = require("./model/ListDomainParseIpRequest");
51
56
  const ListDomainSetsRequest_1 = require("./model/ListDomainSetsRequest");
52
57
  const ListDomainsRequest_1 = require("./model/ListDomainsRequest");
53
58
  const ListEastWestFirewallRequest_1 = require("./model/ListEastWestFirewallRequest");
@@ -57,17 +62,35 @@ const ListFirewallDetailRequest_1 = require("./model/ListFirewallDetailRequest")
57
62
  const ListFirewallListRequest_1 = require("./model/ListFirewallListRequest");
58
63
  const ListFlowLogsRequest_1 = require("./model/ListFlowLogsRequest");
59
64
  const ListIpsProtectModeRequest_1 = require("./model/ListIpsProtectModeRequest");
65
+ const ListIpsRules1Request_1 = require("./model/ListIpsRules1Request");
66
+ const ListIpsRulesRequest_1 = require("./model/ListIpsRulesRequest");
60
67
  const ListIpsSwitchStatusRequest_1 = require("./model/ListIpsSwitchStatusRequest");
61
68
  const ListJobRequest_1 = require("./model/ListJobRequest");
62
69
  const ListLogConfigRequest_1 = require("./model/ListLogConfigRequest");
70
+ const ListProjectTagsRequest_1 = require("./model/ListProjectTagsRequest");
63
71
  const ListProtectedVpcsRequest_1 = require("./model/ListProtectedVpcsRequest");
72
+ const ListRegionsRequest_1 = require("./model/ListRegionsRequest");
73
+ const ListResourceTagsRequest_1 = require("./model/ListResourceTagsRequest");
64
74
  const ListRuleAclTagsRequest_1 = require("./model/ListRuleAclTagsRequest");
65
75
  const ListServiceItemsRequest_1 = require("./model/ListServiceItemsRequest");
66
76
  const ListServiceSetDetailRequest_1 = require("./model/ListServiceSetDetailRequest");
67
77
  const ListServiceSetsRequest_1 = require("./model/ListServiceSetsRequest");
78
+ const SaveTagsRequest_1 = require("./model/SaveTagsRequest");
79
+ const ShowAlarmConfigRequest_1 = require("./model/ShowAlarmConfigRequest");
80
+ const ShowAntiVirusRuleRequest_1 = require("./model/ShowAntiVirusRuleRequest");
81
+ const ShowAntiVirusSwitchRequest_1 = require("./model/ShowAntiVirusSwitchRequest");
82
+ const ShowAutoProtectStatusRequest_1 = require("./model/ShowAutoProtectStatusRequest");
83
+ const ShowDomainSetDetailRequest_1 = require("./model/ShowDomainSetDetailRequest");
84
+ const ShowImportStatusRequest_1 = require("./model/ShowImportStatusRequest");
85
+ const ShowIpsUpdateTimeRequest_1 = require("./model/ShowIpsUpdateTimeRequest");
86
+ const SwitchAutoProtectStatusRequest_1 = require("./model/SwitchAutoProtectStatusRequest");
68
87
  const UpdateAclRuleOrderRequest_1 = require("./model/UpdateAclRuleOrderRequest");
69
88
  const UpdateAclRuleRequest_1 = require("./model/UpdateAclRuleRequest");
70
89
  const UpdateAddressSetRequest_1 = require("./model/UpdateAddressSetRequest");
90
+ const UpdateAdvancedIpsRuleRequest_1 = require("./model/UpdateAdvancedIpsRuleRequest");
91
+ const UpdateAlarmConfigRequest_1 = require("./model/UpdateAlarmConfigRequest");
92
+ const UpdateAntiVirusRuleRequest_1 = require("./model/UpdateAntiVirusRuleRequest");
93
+ const UpdateAntiVirusSwitchRequest_1 = require("./model/UpdateAntiVirusSwitchRequest");
71
94
  const UpdateBlackWhiteListRequest_1 = require("./model/UpdateBlackWhiteListRequest");
72
95
  const UpdateDnsServersRequest_1 = require("./model/UpdateDnsServersRequest");
73
96
  const UpdateDomainSetRequest_1 = require("./model/UpdateDomainSetRequest");
@@ -256,6 +279,25 @@ class CfwClient {
256
279
  options['responseHeaders'] = [''];
257
280
  return this.hcClient.sendRequest(options);
258
281
  }
282
+ /**
283
+ * 批量删除域名组
284
+ *
285
+ * Please refer to HUAWEI cloud API Explorer for details.
286
+ *
287
+ * @summary 批量删除域名组
288
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
289
+ * @param {BatchDeleteDomainSetsDto} batchDeleteDomainSetsDto 批量删除域名组请求体
290
+ * @param {string} [fwInstanceId] 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
291
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ batchDeleteDomainSet(batchDeleteDomainSetRequest) {
296
+ const options = (0, exports.ParamCreater)().batchDeleteDomainSet(batchDeleteDomainSetRequest);
297
+ // @ts-ignore
298
+ options['responseHeaders'] = [''];
299
+ return this.hcClient.sendRequest(options);
300
+ }
259
301
  /**
260
302
  * 批量删除服务组成员信息
261
303
  *
@@ -836,6 +878,27 @@ class CfwClient {
836
878
  options['responseHeaders'] = [''];
837
879
  return this.hcClient.sendRequest(options);
838
880
  }
881
+ /**
882
+ * 获取域名地址解析结果
883
+ *
884
+ * Please refer to HUAWEI cloud API Explorer for details.
885
+ *
886
+ * @summary 获取域名地址解析结果
887
+ * @param {string} domainAddressId 域名id,域名id可通过[获取域名组下域名列表接口](ListDomains.xml)查询获得,通过返回值中的data.records.domain_address_id(.表示各对象之间层级的区分)获取
888
+ * @param {string} domainSetId 域名组ID,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获取
889
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
890
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
891
+ * @param {number} [addressType] 地址类型,0 ipv4,1 ipv6
892
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ listDomainParseIp(listDomainParseIpRequest) {
897
+ const options = (0, exports.ParamCreater)().listDomainParseIp(listDomainParseIpRequest);
898
+ // @ts-ignore
899
+ options['responseHeaders'] = [''];
900
+ return this.hcClient.sendRequest(options);
901
+ }
839
902
  /**
840
903
  * 查询域名组列表
841
904
  *
@@ -1017,6 +1080,25 @@ class CfwClient {
1017
1080
  options['responseHeaders'] = [''];
1018
1081
  return this.hcClient.sendRequest(options);
1019
1082
  }
1083
+ /**
1084
+ * 查询标签信息
1085
+ *
1086
+ * Please refer to HUAWEI cloud API Explorer for details.
1087
+ *
1088
+ * @summary 查询标签信息
1089
+ * @param {number} limit 分页查询数据限制
1090
+ * @param {number} offset 查询偏移量
1091
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1092
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ listProjectTags(listProjectTagsRequest) {
1097
+ const options = (0, exports.ParamCreater)().listProjectTags(listProjectTagsRequest);
1098
+ // @ts-ignore
1099
+ options['responseHeaders'] = [''];
1100
+ return this.hcClient.sendRequest(options);
1101
+ }
1020
1102
  /**
1021
1103
  * 查询防护vpc信息
1022
1104
  *
@@ -1036,6 +1118,24 @@ class CfwClient {
1036
1118
  options['responseHeaders'] = [''];
1037
1119
  return this.hcClient.sendRequest(options);
1038
1120
  }
1121
+ /**
1122
+ * 查询资源标签信息
1123
+ *
1124
+ * Please refer to HUAWEI cloud API Explorer for details.
1125
+ *
1126
+ * @summary 查询资源标签信息
1127
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1128
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1129
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ listResourceTags(listResourceTagsRequest) {
1134
+ const options = (0, exports.ParamCreater)().listResourceTags(listResourceTagsRequest);
1135
+ // @ts-ignore
1136
+ options['responseHeaders'] = [''];
1137
+ return this.hcClient.sendRequest(options);
1138
+ }
1039
1139
  /**
1040
1140
  * 查询服务组成员列表
1041
1141
  *
@@ -1102,6 +1202,101 @@ class CfwClient {
1102
1202
  options['responseHeaders'] = [''];
1103
1203
  return this.hcClient.sendRequest(options);
1104
1204
  }
1205
+ /**
1206
+ * 保存资源标签接口
1207
+ *
1208
+ * Please refer to HUAWEI cloud API Explorer for details.
1209
+ *
1210
+ * @summary 保存资源标签接口
1211
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1212
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1213
+ * @param {CreateTagsDto} createTagsDto 标签对象
1214
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1215
+ * @param {*} [options] Override http request option.
1216
+ * @throws {RequiredError}
1217
+ */
1218
+ saveTags(saveTagsRequest) {
1219
+ const options = (0, exports.ParamCreater)().saveTags(saveTagsRequest);
1220
+ // @ts-ignore
1221
+ options['responseHeaders'] = [''];
1222
+ return this.hcClient.sendRequest(options);
1223
+ }
1224
+ /**
1225
+ * 获取告警配置信息
1226
+ *
1227
+ * Please refer to HUAWEI cloud API Explorer for details.
1228
+ *
1229
+ * @summary 获取告警配置信息
1230
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1231
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1232
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ showAlarmConfig(showAlarmConfigRequest) {
1237
+ const options = (0, exports.ParamCreater)().showAlarmConfig(showAlarmConfigRequest);
1238
+ // @ts-ignore
1239
+ options['responseHeaders'] = [''];
1240
+ return this.hcClient.sendRequest(options);
1241
+ }
1242
+ /**
1243
+ * 获取防火墙反病毒规则信息
1244
+ *
1245
+ * Please refer to HUAWEI cloud API Explorer for details.
1246
+ *
1247
+ * @summary 获取防火墙反病毒规则信息
1248
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1249
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1250
+ * @param {number} engineType 防火墙类型
1251
+ * @param {number} limit 每页显示的数据量
1252
+ * @param {number} offset 查询偏移量
1253
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1254
+ * @param {*} [options] Override http request option.
1255
+ * @throws {RequiredError}
1256
+ */
1257
+ showAntiVirusRule(showAntiVirusRuleRequest) {
1258
+ const options = (0, exports.ParamCreater)().showAntiVirusRule(showAntiVirusRuleRequest);
1259
+ // @ts-ignore
1260
+ options['responseHeaders'] = [''];
1261
+ return this.hcClient.sendRequest(options);
1262
+ }
1263
+ /**
1264
+ * 查看反病毒开关
1265
+ *
1266
+ * Please refer to HUAWEI cloud API Explorer for details.
1267
+ *
1268
+ * @summary 查看反病毒开关
1269
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1270
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1271
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1272
+ * @param {*} [options] Override http request option.
1273
+ * @throws {RequiredError}
1274
+ */
1275
+ showAntiVirusSwitch(showAntiVirusSwitchRequest) {
1276
+ const options = (0, exports.ParamCreater)().showAntiVirusSwitch(showAntiVirusSwitchRequest);
1277
+ // @ts-ignore
1278
+ options['responseHeaders'] = [''];
1279
+ return this.hcClient.sendRequest(options);
1280
+ }
1281
+ /**
1282
+ * 查看域名组详情
1283
+ *
1284
+ * Please refer to HUAWEI cloud API Explorer for details.
1285
+ *
1286
+ * @summary 查看域名组详情
1287
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1288
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1289
+ * @param {string} domainSetId 域名组ID,可通过[查询域名组列表接口](ListDomainSets.xml)查询获得,通过返回值中的data.records.set_id(.表示各对象之间层级的区分)获取
1290
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ showDomainSetDetail(showDomainSetDetailRequest) {
1295
+ const options = (0, exports.ParamCreater)().showDomainSetDetail(showDomainSetDetailRequest);
1296
+ // @ts-ignore
1297
+ options['responseHeaders'] = [''];
1298
+ return this.hcClient.sendRequest(options);
1299
+ }
1105
1300
  /**
1106
1301
  * 更新地址组信息
1107
1302
  *
@@ -1122,6 +1317,61 @@ class CfwClient {
1122
1317
  options['responseHeaders'] = [''];
1123
1318
  return this.hcClient.sendRequest(options);
1124
1319
  }
1320
+ /**
1321
+ * 修改告警配置接口
1322
+ *
1323
+ * Please refer to HUAWEI cloud API Explorer for details.
1324
+ *
1325
+ * @summary 修改告警配置接口
1326
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1327
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1328
+ * @param {UpdateAttackLogAlarmConfigDto} updateAttackLogAlarmConfigDto 告警配置对象
1329
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ updateAlarmConfig(updateAlarmConfigRequest) {
1334
+ const options = (0, exports.ParamCreater)().updateAlarmConfig(updateAlarmConfigRequest);
1335
+ // @ts-ignore
1336
+ options['responseHeaders'] = [''];
1337
+ return this.hcClient.sendRequest(options);
1338
+ }
1339
+ /**
1340
+ * 修改反病毒规则
1341
+ *
1342
+ * Please refer to HUAWEI cloud API Explorer for details.
1343
+ *
1344
+ * @summary 修改反病毒规则
1345
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1346
+ * @param {AntiVirusRuleDto} antiVirusRuleDto 反病毒规则对象
1347
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ updateAntiVirusRule(updateAntiVirusRuleRequest) {
1352
+ const options = (0, exports.ParamCreater)().updateAntiVirusRule(updateAntiVirusRuleRequest);
1353
+ // @ts-ignore
1354
+ options['responseHeaders'] = [''];
1355
+ return this.hcClient.sendRequest(options);
1356
+ }
1357
+ /**
1358
+ * 修改反病毒开关
1359
+ *
1360
+ * Please refer to HUAWEI cloud API Explorer for details.
1361
+ *
1362
+ * @summary 修改反病毒开关
1363
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1364
+ * @param {AntiVirusSwitchDto} antiVirusSwitchDto 反病毒开关对象
1365
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ */
1369
+ updateAntiVirusSwitch(updateAntiVirusSwitchRequest) {
1370
+ const options = (0, exports.ParamCreater)().updateAntiVirusSwitch(updateAntiVirusSwitchRequest);
1371
+ // @ts-ignore
1372
+ options['responseHeaders'] = [''];
1373
+ return this.hcClient.sendRequest(options);
1374
+ }
1125
1375
  /**
1126
1376
  * 更新黑白名单列表
1127
1377
  *
@@ -1367,6 +1617,24 @@ class CfwClient {
1367
1617
  options['responseHeaders'] = [''];
1368
1618
  return this.hcClient.sendRequest(options);
1369
1619
  }
1620
+ /**
1621
+ * 查看region列表
1622
+ *
1623
+ * Please refer to HUAWEI cloud API Explorer for details.
1624
+ *
1625
+ * @summary 查看region列表
1626
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1627
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1628
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1629
+ * @param {*} [options] Override http request option.
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ listRegions(listRegionsRequest) {
1633
+ const options = (0, exports.ParamCreater)().listRegions(listRegionsRequest);
1634
+ // @ts-ignore
1635
+ options['responseHeaders'] = [''];
1636
+ return this.hcClient.sendRequest(options);
1637
+ }
1370
1638
  /**
1371
1639
  * 查询规则标签
1372
1640
  *
@@ -1387,6 +1655,24 @@ class CfwClient {
1387
1655
  options['responseHeaders'] = [''];
1388
1656
  return this.hcClient.sendRequest(options);
1389
1657
  }
1658
+ /**
1659
+ * 查看导入状态接口
1660
+ *
1661
+ * Please refer to HUAWEI cloud API Explorer for details.
1662
+ *
1663
+ * @summary 查看导入状态接口
1664
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1665
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1666
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1667
+ * @param {*} [options] Override http request option.
1668
+ * @throws {RequiredError}
1669
+ */
1670
+ showImportStatus(showImportStatusRequest) {
1671
+ const options = (0, exports.ParamCreater)().showImportStatus(showImportStatusRequest);
1672
+ // @ts-ignore
1673
+ options['responseHeaders'] = [''];
1674
+ return this.hcClient.sendRequest(options);
1675
+ }
1390
1676
  /**
1391
1677
  * 更新ACL规则
1392
1678
  *
@@ -1446,6 +1732,27 @@ class CfwClient {
1446
1732
  options['responseHeaders'] = [''];
1447
1733
  return this.hcClient.sendRequest(options);
1448
1734
  }
1735
+ /**
1736
+ * 查看eip告警白名单
1737
+ *
1738
+ * Please refer to HUAWEI cloud API Explorer for details.
1739
+ *
1740
+ * @summary 查看eip告警白名单
1741
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1742
+ * @param {number} limit 分页查询数据量限制
1743
+ * @param {number} offset 查询偏移量
1744
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1745
+ * @param {string} [ipAddress] IP地址
1746
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1747
+ * @param {*} [options] Override http request option.
1748
+ * @throws {RequiredError}
1749
+ */
1750
+ listAlarmWhitelist(listAlarmWhitelistRequest) {
1751
+ const options = (0, exports.ParamCreater)().listAlarmWhitelist(listAlarmWhitelistRequest);
1752
+ // @ts-ignore
1753
+ options['responseHeaders'] = [''];
1754
+ return this.hcClient.sendRequest(options);
1755
+ }
1449
1756
  /**
1450
1757
  * 查询Eip个数
1451
1758
  *
@@ -1494,6 +1801,42 @@ class CfwClient {
1494
1801
  options['responseHeaders'] = [''];
1495
1802
  return this.hcClient.sendRequest(options);
1496
1803
  }
1804
+ /**
1805
+ * 获取eip自动防护状态信息
1806
+ *
1807
+ * Please refer to HUAWEI cloud API Explorer for details.
1808
+ *
1809
+ * @summary 获取eip自动防护状态信息
1810
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1811
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1812
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1813
+ * @param {*} [options] Override http request option.
1814
+ * @throws {RequiredError}
1815
+ */
1816
+ showAutoProtectStatus(showAutoProtectStatusRequest) {
1817
+ const options = (0, exports.ParamCreater)().showAutoProtectStatus(showAutoProtectStatusRequest);
1818
+ // @ts-ignore
1819
+ options['responseHeaders'] = [''];
1820
+ return this.hcClient.sendRequest(options);
1821
+ }
1822
+ /**
1823
+ * 修改eip自动防护开关
1824
+ *
1825
+ * Please refer to HUAWEI cloud API Explorer for details.
1826
+ *
1827
+ * @summary 修改eip自动防护开关
1828
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1829
+ * @param {SwitchEipStatusDto} switchEipStatusDto eip状态对象
1830
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1831
+ * @param {*} [options] Override http request option.
1832
+ * @throws {RequiredError}
1833
+ */
1834
+ switchAutoProtectStatus(switchAutoProtectStatusRequest) {
1835
+ const options = (0, exports.ParamCreater)().switchAutoProtectStatus(switchAutoProtectStatusRequest);
1836
+ // @ts-ignore
1837
+ options['responseHeaders'] = [''];
1838
+ return this.hcClient.sendRequest(options);
1839
+ }
1497
1840
  /**
1498
1841
  * 切换防护模式
1499
1842
  *
@@ -1513,6 +1856,24 @@ class CfwClient {
1513
1856
  options['responseHeaders'] = [''];
1514
1857
  return this.hcClient.sendRequest(options);
1515
1858
  }
1859
+ /**
1860
+ * 改变ips规则模式
1861
+ *
1862
+ * Please refer to HUAWEI cloud API Explorer for details.
1863
+ *
1864
+ * @summary 改变ips规则模式
1865
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1866
+ * @param {IpsRuleChangeDto} ipsRuleChangeDto ips规则对象
1867
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1868
+ * @param {*} [options] Override http request option.
1869
+ * @throws {RequiredError}
1870
+ */
1871
+ changeIpsRuleMode(changeIpsRuleModeRequest) {
1872
+ const options = (0, exports.ParamCreater)().changeIpsRuleMode(changeIpsRuleModeRequest);
1873
+ // @ts-ignore
1874
+ options['responseHeaders'] = [''];
1875
+ return this.hcClient.sendRequest(options);
1876
+ }
1516
1877
  /**
1517
1878
  * 切换开关状态
1518
1879
  *
@@ -1532,6 +1893,34 @@ class CfwClient {
1532
1893
  options['responseHeaders'] = [''];
1533
1894
  return this.hcClient.sendRequest(options);
1534
1895
  }
1896
+ /**
1897
+ * 获取自定义ips规则
1898
+ *
1899
+ * Please refer to HUAWEI cloud API Explorer for details.
1900
+ *
1901
+ * @summary 获取自定义ips规则
1902
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1903
+ * @param {number} limit 分页查询数据量限制
1904
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1905
+ * @param {number} offset 查询偏移量
1906
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1907
+ * @param {number} [actionType] 动作(0:只记录日志,1:重置/拦截)
1908
+ * @param {number} [affectedOs] 操作系统
1909
+ * @param {number} [attackType] 攻击类型
1910
+ * @param {string} [ipsName] ips规则名称
1911
+ * @param {number} [protocol] 协议
1912
+ * @param {number} [severity] 严重程度(critical:致命,high:高危,medium:中危,low:低危)
1913
+ * @param {number} [software] 影响软件
1914
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1915
+ * @param {*} [options] Override http request option.
1916
+ * @throws {RequiredError}
1917
+ */
1918
+ listCustomerIps(listCustomerIpsRequest) {
1919
+ const options = (0, exports.ParamCreater)().listCustomerIps(listCustomerIpsRequest);
1920
+ // @ts-ignore
1921
+ options['responseHeaders'] = [''];
1922
+ return this.hcClient.sendRequest(options);
1923
+ }
1535
1924
  /**
1536
1925
  * 查询防护模式
1537
1926
  *
@@ -1551,6 +1940,55 @@ class CfwClient {
1551
1940
  options['responseHeaders'] = [''];
1552
1941
  return this.hcClient.sendRequest(options);
1553
1942
  }
1943
+ /**
1944
+ * 查询频率ips规则信息
1945
+ *
1946
+ * Please refer to HUAWEI cloud API Explorer for details.
1947
+ *
1948
+ * @summary 查询频率ips规则信息
1949
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1950
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1951
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1952
+ * @param {*} [options] Override http request option.
1953
+ * @throws {RequiredError}
1954
+ */
1955
+ listIpsRules(listIpsRulesRequest) {
1956
+ const options = (0, exports.ParamCreater)().listIpsRules(listIpsRulesRequest);
1957
+ // @ts-ignore
1958
+ options['responseHeaders'] = [''];
1959
+ return this.hcClient.sendRequest(options);
1960
+ }
1961
+ /**
1962
+ * 获取ips规则列表
1963
+ *
1964
+ * Please refer to HUAWEI cloud API Explorer for details.
1965
+ *
1966
+ * @summary 获取ips规则列表
1967
+ * @param {number} limit 分页查询数据量限制
1968
+ * @param {string} objectId 防护对象ID,是创建云防火墙后用于区分互联网边界防护和VPC边界防护的标志id,可通过调用[查询防火墙实例接口](ListFirewallDetail.xml)获得,通过返回值中的data.records.protect_objects.object_id(.表示各对象之间层级的区分)获得,注意type为0的为互联网边界防护对象id,type为1的为VPC边界防护对象id。此处仅取type为1的防护对象id,可通过data.records.protect_objects.type(.表示各对象之间层级的区分)获得。
1969
+ * @param {number} offset 查询偏移量
1970
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
1971
+ * @param {number} [affectedApplicationLike] 攻击对象
1972
+ * @param {number} [createTime] 创建时间
1973
+ * @param {string} [fwInstanceId] 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
1974
+ * @param {number} [ipsCveLike] cve
1975
+ * @param {number} [ipsGroup] ips组
1976
+ * @param {string} [ipsId] ips规则id
1977
+ * @param {number} [ipsLevel] ips等级
1978
+ * @param {string} [ipsNameLike] ips规则名称
1979
+ * @param {number} [ipsRulesTypeLike] ips规则类型
1980
+ * @param {string} [ipsStatus] ips规则状态
1981
+ * @param {boolean} [isUpdatedIpsRuleQueried] 是否查新更新规则
1982
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
1983
+ * @param {*} [options] Override http request option.
1984
+ * @throws {RequiredError}
1985
+ */
1986
+ listIpsRules1(listIpsRules1Request) {
1987
+ const options = (0, exports.ParamCreater)().listIpsRules1(listIpsRules1Request);
1988
+ // @ts-ignore
1989
+ options['responseHeaders'] = [''];
1990
+ return this.hcClient.sendRequest(options);
1991
+ }
1554
1992
  /**
1555
1993
  * 查询IPS特性开关状态
1556
1994
  *
@@ -1570,9 +2008,46 @@ class CfwClient {
1570
2008
  options['responseHeaders'] = [''];
1571
2009
  return this.hcClient.sendRequest(options);
1572
2010
  }
1573
- }
1574
- exports.CfwClient = CfwClient;
1575
- const ParamCreater = function () {
2011
+ /**
2012
+ * 获取ips规则细节
2013
+ *
2014
+ * Please refer to HUAWEI cloud API Explorer for details.
2015
+ *
2016
+ * @summary 获取ips规则细节
2017
+ * @param {string} fwInstanceId 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
2018
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
2019
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ showIpsUpdateTime(showIpsUpdateTimeRequest) {
2024
+ const options = (0, exports.ParamCreater)().showIpsUpdateTime(showIpsUpdateTimeRequest);
2025
+ // @ts-ignore
2026
+ options['responseHeaders'] = [''];
2027
+ return this.hcClient.sendRequest(options);
2028
+ }
2029
+ /**
2030
+ * 创建频率ips规则
2031
+ *
2032
+ * Please refer to HUAWEI cloud API Explorer for details.
2033
+ *
2034
+ * @summary 创建频率ips规则
2035
+ * @param {string} projectId 项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
2036
+ * @param {AdvancedIpsRuleDto} advancedIpsRuleDto advancedIpsRuleDto
2037
+ * @param {string} [fwInstanceId] 防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
2038
+ * @param {string} [enterpriseProjectId] 企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
2039
+ * @param {*} [options] Override http request option.
2040
+ * @throws {RequiredError}
2041
+ */
2042
+ updateAdvancedIpsRule(updateAdvancedIpsRuleRequest) {
2043
+ const options = (0, exports.ParamCreater)().updateAdvancedIpsRule(updateAdvancedIpsRuleRequest);
2044
+ // @ts-ignore
2045
+ options['responseHeaders'] = [''];
2046
+ return this.hcClient.sendRequest(options);
2047
+ }
2048
+ }
2049
+ exports.CfwClient = CfwClient;
2050
+ const ParamCreater = function () {
1576
2051
  return {
1577
2052
  /**
1578
2053
  * 添加地址组成员
@@ -2072,6 +2547,60 @@ const ParamCreater = function () {
2072
2547
  options.headers = localVarHeaderParameter;
2073
2548
  return options;
2074
2549
  },
2550
+ /**
2551
+ * 批量删除域名组
2552
+ *
2553
+ * Please refer to HUAWEI cloud API Explorer for details.
2554
+ */
2555
+ batchDeleteDomainSet(batchDeleteDomainSetRequest) {
2556
+ const options = {
2557
+ method: "POST",
2558
+ url: "/v1/{project_id}/domain-sets/batch-delete",
2559
+ contentType: "application/json",
2560
+ queryParams: {},
2561
+ pathParams: {},
2562
+ headers: {},
2563
+ data: {}
2564
+ };
2565
+ const localVarHeaderParameter = {};
2566
+ const localVarQueryParameter = {};
2567
+ let body;
2568
+ let projectId;
2569
+ let fwInstanceId;
2570
+ let enterpriseProjectId;
2571
+ if (batchDeleteDomainSetRequest !== null && batchDeleteDomainSetRequest !== undefined) {
2572
+ if (batchDeleteDomainSetRequest instanceof BatchDeleteDomainSetRequest_1.BatchDeleteDomainSetRequest) {
2573
+ projectId = batchDeleteDomainSetRequest.projectId;
2574
+ body = batchDeleteDomainSetRequest.body;
2575
+ fwInstanceId = batchDeleteDomainSetRequest.fwInstanceId;
2576
+ enterpriseProjectId = batchDeleteDomainSetRequest.enterpriseProjectId;
2577
+ }
2578
+ else {
2579
+ projectId = batchDeleteDomainSetRequest['project_id'];
2580
+ body = batchDeleteDomainSetRequest['body'];
2581
+ fwInstanceId = batchDeleteDomainSetRequest['fw_instance_id'];
2582
+ enterpriseProjectId = batchDeleteDomainSetRequest['enterprise_project_id'];
2583
+ }
2584
+ }
2585
+ if (projectId === null || projectId === undefined) {
2586
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling batchDeleteDomainSet.');
2587
+ }
2588
+ if (body === null || body === undefined) {
2589
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2590
+ }
2591
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
2592
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
2593
+ }
2594
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2595
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
2596
+ }
2597
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2598
+ options.data = body !== undefined ? body : {};
2599
+ options.queryParams = localVarQueryParameter;
2600
+ options.pathParams = { 'project_id': projectId, };
2601
+ options.headers = localVarHeaderParameter;
2602
+ return options;
2603
+ },
2075
2604
  /**
2076
2605
  * 批量删除服务组成员信息
2077
2606
  *
@@ -3948,6 +4477,75 @@ const ParamCreater = function () {
3948
4477
  options.headers = localVarHeaderParameter;
3949
4478
  return options;
3950
4479
  },
4480
+ /**
4481
+ * 获取域名地址解析结果
4482
+ *
4483
+ * Please refer to HUAWEI cloud API Explorer for details.
4484
+ */
4485
+ listDomainParseIp(listDomainParseIpRequest) {
4486
+ const options = {
4487
+ method: "GET",
4488
+ url: "/v1/{project_id}/domain/parse-ip-list/{domain_address_id}",
4489
+ contentType: "application/json",
4490
+ queryParams: {},
4491
+ pathParams: {},
4492
+ headers: {}
4493
+ };
4494
+ const localVarHeaderParameter = {};
4495
+ const localVarQueryParameter = {};
4496
+ let domainAddressId;
4497
+ let domainSetId;
4498
+ let projectId;
4499
+ let fwInstanceId;
4500
+ let addressType;
4501
+ let enterpriseProjectId;
4502
+ if (listDomainParseIpRequest !== null && listDomainParseIpRequest !== undefined) {
4503
+ if (listDomainParseIpRequest instanceof ListDomainParseIpRequest_1.ListDomainParseIpRequest) {
4504
+ domainAddressId = listDomainParseIpRequest.domainAddressId;
4505
+ domainSetId = listDomainParseIpRequest.domainSetId;
4506
+ projectId = listDomainParseIpRequest.projectId;
4507
+ fwInstanceId = listDomainParseIpRequest.fwInstanceId;
4508
+ addressType = listDomainParseIpRequest.addressType;
4509
+ enterpriseProjectId = listDomainParseIpRequest.enterpriseProjectId;
4510
+ }
4511
+ else {
4512
+ domainAddressId = listDomainParseIpRequest['domain_address_id'];
4513
+ domainSetId = listDomainParseIpRequest['domain_set_id'];
4514
+ projectId = listDomainParseIpRequest['project_id'];
4515
+ fwInstanceId = listDomainParseIpRequest['fw_instance_id'];
4516
+ addressType = listDomainParseIpRequest['address_type'];
4517
+ enterpriseProjectId = listDomainParseIpRequest['enterprise_project_id'];
4518
+ }
4519
+ }
4520
+ if (domainAddressId === null || domainAddressId === undefined) {
4521
+ throw new RequiredError('domainAddressId', 'Required parameter domainAddressId was null or undefined when calling listDomainParseIp.');
4522
+ }
4523
+ if (domainSetId === null || domainSetId === undefined) {
4524
+ throw new RequiredError('domainSetId', 'Required parameter domainSetId was null or undefined when calling listDomainParseIp.');
4525
+ }
4526
+ if (domainSetId !== null && domainSetId !== undefined) {
4527
+ localVarQueryParameter['domain_set_id'] = domainSetId;
4528
+ }
4529
+ if (projectId === null || projectId === undefined) {
4530
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listDomainParseIp.');
4531
+ }
4532
+ if (fwInstanceId === null || fwInstanceId === undefined) {
4533
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listDomainParseIp.');
4534
+ }
4535
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
4536
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4537
+ }
4538
+ if (addressType !== null && addressType !== undefined) {
4539
+ localVarQueryParameter['address_type'] = addressType;
4540
+ }
4541
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4542
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4543
+ }
4544
+ options.queryParams = localVarQueryParameter;
4545
+ options.pathParams = { 'domain_address_id': domainAddressId, 'project_id': projectId, };
4546
+ options.headers = localVarHeaderParameter;
4547
+ return options;
4548
+ },
3951
4549
  /**
3952
4550
  * 查询域名组列表
3953
4551
  *
@@ -4585,6 +5183,63 @@ const ParamCreater = function () {
4585
5183
  options.headers = localVarHeaderParameter;
4586
5184
  return options;
4587
5185
  },
5186
+ /**
5187
+ * 查询标签信息
5188
+ *
5189
+ * Please refer to HUAWEI cloud API Explorer for details.
5190
+ */
5191
+ listProjectTags(listProjectTagsRequest) {
5192
+ const options = {
5193
+ method: "GET",
5194
+ url: "/v2/{project_id}/cfw-cfw/tags",
5195
+ contentType: "application/json",
5196
+ queryParams: {},
5197
+ pathParams: {},
5198
+ headers: {}
5199
+ };
5200
+ const localVarHeaderParameter = {};
5201
+ const localVarQueryParameter = {};
5202
+ let limit;
5203
+ let offset;
5204
+ let projectId;
5205
+ let enterpriseProjectId;
5206
+ if (listProjectTagsRequest !== null && listProjectTagsRequest !== undefined) {
5207
+ if (listProjectTagsRequest instanceof ListProjectTagsRequest_1.ListProjectTagsRequest) {
5208
+ limit = listProjectTagsRequest.limit;
5209
+ offset = listProjectTagsRequest.offset;
5210
+ projectId = listProjectTagsRequest.projectId;
5211
+ enterpriseProjectId = listProjectTagsRequest.enterpriseProjectId;
5212
+ }
5213
+ else {
5214
+ limit = listProjectTagsRequest['limit'];
5215
+ offset = listProjectTagsRequest['offset'];
5216
+ projectId = listProjectTagsRequest['project_id'];
5217
+ enterpriseProjectId = listProjectTagsRequest['enterprise_project_id'];
5218
+ }
5219
+ }
5220
+ if (limit === null || limit === undefined) {
5221
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listProjectTags.');
5222
+ }
5223
+ if (limit !== null && limit !== undefined) {
5224
+ localVarQueryParameter['limit'] = limit;
5225
+ }
5226
+ if (offset === null || offset === undefined) {
5227
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listProjectTags.');
5228
+ }
5229
+ if (offset !== null && offset !== undefined) {
5230
+ localVarQueryParameter['offset'] = offset;
5231
+ }
5232
+ if (projectId === null || projectId === undefined) {
5233
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listProjectTags.');
5234
+ }
5235
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5236
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5237
+ }
5238
+ options.queryParams = localVarQueryParameter;
5239
+ options.pathParams = { 'project_id': projectId, };
5240
+ options.headers = localVarHeaderParameter;
5241
+ return options;
5242
+ },
4588
5243
  /**
4589
5244
  * 查询防护vpc信息
4590
5245
  *
@@ -4639,6 +5294,51 @@ const ParamCreater = function () {
4639
5294
  options.headers = localVarHeaderParameter;
4640
5295
  return options;
4641
5296
  },
5297
+ /**
5298
+ * 查询资源标签信息
5299
+ *
5300
+ * Please refer to HUAWEI cloud API Explorer for details.
5301
+ */
5302
+ listResourceTags(listResourceTagsRequest) {
5303
+ const options = {
5304
+ method: "GET",
5305
+ url: "/v2/{project_id}/cfw-cfw/{fw_instance_id}/tags",
5306
+ contentType: "application/json",
5307
+ queryParams: {},
5308
+ pathParams: {},
5309
+ headers: {}
5310
+ };
5311
+ const localVarHeaderParameter = {};
5312
+ const localVarQueryParameter = {};
5313
+ let fwInstanceId;
5314
+ let projectId;
5315
+ let enterpriseProjectId;
5316
+ if (listResourceTagsRequest !== null && listResourceTagsRequest !== undefined) {
5317
+ if (listResourceTagsRequest instanceof ListResourceTagsRequest_1.ListResourceTagsRequest) {
5318
+ fwInstanceId = listResourceTagsRequest.fwInstanceId;
5319
+ projectId = listResourceTagsRequest.projectId;
5320
+ enterpriseProjectId = listResourceTagsRequest.enterpriseProjectId;
5321
+ }
5322
+ else {
5323
+ fwInstanceId = listResourceTagsRequest['fw_instance_id'];
5324
+ projectId = listResourceTagsRequest['project_id'];
5325
+ enterpriseProjectId = listResourceTagsRequest['enterprise_project_id'];
5326
+ }
5327
+ }
5328
+ if (fwInstanceId === null || fwInstanceId === undefined) {
5329
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listResourceTags.');
5330
+ }
5331
+ if (projectId === null || projectId === undefined) {
5332
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listResourceTags.');
5333
+ }
5334
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5335
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5336
+ }
5337
+ options.queryParams = localVarQueryParameter;
5338
+ options.pathParams = { 'fw_instance_id': fwInstanceId, 'project_id': projectId, };
5339
+ options.headers = localVarHeaderParameter;
5340
+ return options;
5341
+ },
4642
5342
  /**
4643
5343
  * 查询服务组成员列表
4644
5344
  *
@@ -4865,14 +5565,14 @@ const ParamCreater = function () {
4865
5565
  return options;
4866
5566
  },
4867
5567
  /**
4868
- * 更新地址组信息
5568
+ * 保存资源标签接口
4869
5569
  *
4870
5570
  * Please refer to HUAWEI cloud API Explorer for details.
4871
5571
  */
4872
- updateAddressSet(updateAddressSetRequest) {
5572
+ saveTags(saveTagsRequest) {
4873
5573
  const options = {
4874
5574
  method: "PUT",
4875
- url: "/v1/{project_id}/address-sets/{set_id}",
5575
+ url: "/v2/{project_id}/cfw-cfw/{fw_instance_id}/tags/save",
4876
5576
  contentType: "application/json",
4877
5577
  queryParams: {},
4878
5578
  pathParams: {},
@@ -4882,31 +5582,28 @@ const ParamCreater = function () {
4882
5582
  const localVarHeaderParameter = {};
4883
5583
  const localVarQueryParameter = {};
4884
5584
  let body;
5585
+ let fwInstanceId;
4885
5586
  let projectId;
4886
- let setId;
4887
5587
  let enterpriseProjectId;
4888
- let fwInstanceId;
4889
- if (updateAddressSetRequest !== null && updateAddressSetRequest !== undefined) {
4890
- if (updateAddressSetRequest instanceof UpdateAddressSetRequest_1.UpdateAddressSetRequest) {
4891
- projectId = updateAddressSetRequest.projectId;
4892
- setId = updateAddressSetRequest.setId;
4893
- body = updateAddressSetRequest.body;
4894
- enterpriseProjectId = updateAddressSetRequest.enterpriseProjectId;
4895
- fwInstanceId = updateAddressSetRequest.fwInstanceId;
5588
+ if (saveTagsRequest !== null && saveTagsRequest !== undefined) {
5589
+ if (saveTagsRequest instanceof SaveTagsRequest_1.SaveTagsRequest) {
5590
+ fwInstanceId = saveTagsRequest.fwInstanceId;
5591
+ projectId = saveTagsRequest.projectId;
5592
+ body = saveTagsRequest.body;
5593
+ enterpriseProjectId = saveTagsRequest.enterpriseProjectId;
4896
5594
  }
4897
5595
  else {
4898
- projectId = updateAddressSetRequest['project_id'];
4899
- setId = updateAddressSetRequest['set_id'];
4900
- body = updateAddressSetRequest['body'];
4901
- enterpriseProjectId = updateAddressSetRequest['enterprise_project_id'];
4902
- fwInstanceId = updateAddressSetRequest['fw_instance_id'];
5596
+ fwInstanceId = saveTagsRequest['fw_instance_id'];
5597
+ projectId = saveTagsRequest['project_id'];
5598
+ body = saveTagsRequest['body'];
5599
+ enterpriseProjectId = saveTagsRequest['enterprise_project_id'];
4903
5600
  }
4904
5601
  }
4905
- if (projectId === null || projectId === undefined) {
4906
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAddressSet.');
5602
+ if (fwInstanceId === null || fwInstanceId === undefined) {
5603
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling saveTags.');
4907
5604
  }
4908
- if (setId === null || setId === undefined) {
4909
- throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateAddressSet.');
5605
+ if (projectId === null || projectId === undefined) {
5606
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling saveTags.');
4910
5607
  }
4911
5608
  if (body === null || body === undefined) {
4912
5609
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -4914,262 +5611,247 @@ const ParamCreater = function () {
4914
5611
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4915
5612
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4916
5613
  }
4917
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
4918
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4919
- }
4920
5614
  localVarHeaderParameter['Content-Type'] = 'application/json';
4921
5615
  options.data = body !== undefined ? body : {};
4922
5616
  options.queryParams = localVarQueryParameter;
4923
- options.pathParams = { 'project_id': projectId, 'set_id': setId, };
5617
+ options.pathParams = { 'fw_instance_id': fwInstanceId, 'project_id': projectId, };
4924
5618
  options.headers = localVarHeaderParameter;
4925
5619
  return options;
4926
5620
  },
4927
5621
  /**
4928
- * 更新黑白名单列表
5622
+ * 获取告警配置信息
4929
5623
  *
4930
5624
  * Please refer to HUAWEI cloud API Explorer for details.
4931
5625
  */
4932
- updateBlackWhiteList(updateBlackWhiteListRequest) {
5626
+ showAlarmConfig(showAlarmConfigRequest) {
4933
5627
  const options = {
4934
- method: "PUT",
4935
- url: "/v1/{project_id}/black-white-list/{list_id}",
5628
+ method: "GET",
5629
+ url: "/v1/{project_id}/cfw/alarm/config",
4936
5630
  contentType: "application/json",
4937
5631
  queryParams: {},
4938
5632
  pathParams: {},
4939
- headers: {},
4940
- data: {}
5633
+ headers: {}
4941
5634
  };
4942
5635
  const localVarHeaderParameter = {};
4943
5636
  const localVarQueryParameter = {};
4944
- let body;
5637
+ let fwInstanceId;
4945
5638
  let projectId;
4946
- let listId;
4947
5639
  let enterpriseProjectId;
4948
- let fwInstanceId;
4949
- if (updateBlackWhiteListRequest !== null && updateBlackWhiteListRequest !== undefined) {
4950
- if (updateBlackWhiteListRequest instanceof UpdateBlackWhiteListRequest_1.UpdateBlackWhiteListRequest) {
4951
- projectId = updateBlackWhiteListRequest.projectId;
4952
- listId = updateBlackWhiteListRequest.listId;
4953
- body = updateBlackWhiteListRequest.body;
4954
- enterpriseProjectId = updateBlackWhiteListRequest.enterpriseProjectId;
4955
- fwInstanceId = updateBlackWhiteListRequest.fwInstanceId;
5640
+ if (showAlarmConfigRequest !== null && showAlarmConfigRequest !== undefined) {
5641
+ if (showAlarmConfigRequest instanceof ShowAlarmConfigRequest_1.ShowAlarmConfigRequest) {
5642
+ fwInstanceId = showAlarmConfigRequest.fwInstanceId;
5643
+ projectId = showAlarmConfigRequest.projectId;
5644
+ enterpriseProjectId = showAlarmConfigRequest.enterpriseProjectId;
4956
5645
  }
4957
5646
  else {
4958
- projectId = updateBlackWhiteListRequest['project_id'];
4959
- listId = updateBlackWhiteListRequest['list_id'];
4960
- body = updateBlackWhiteListRequest['body'];
4961
- enterpriseProjectId = updateBlackWhiteListRequest['enterprise_project_id'];
4962
- fwInstanceId = updateBlackWhiteListRequest['fw_instance_id'];
5647
+ fwInstanceId = showAlarmConfigRequest['fw_instance_id'];
5648
+ projectId = showAlarmConfigRequest['project_id'];
5649
+ enterpriseProjectId = showAlarmConfigRequest['enterprise_project_id'];
4963
5650
  }
4964
5651
  }
4965
- if (projectId === null || projectId === undefined) {
4966
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateBlackWhiteList.');
5652
+ if (fwInstanceId === null || fwInstanceId === undefined) {
5653
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showAlarmConfig.');
4967
5654
  }
4968
- if (listId === null || listId === undefined) {
4969
- throw new RequiredError('listId', 'Required parameter listId was null or undefined when calling updateBlackWhiteList.');
5655
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
5656
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4970
5657
  }
4971
- if (body === null || body === undefined) {
4972
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5658
+ if (projectId === null || projectId === undefined) {
5659
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAlarmConfig.');
4973
5660
  }
4974
5661
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4975
5662
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4976
5663
  }
4977
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
4978
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
4979
- }
4980
- localVarHeaderParameter['Content-Type'] = 'application/json';
4981
- options.data = body !== undefined ? body : {};
4982
5664
  options.queryParams = localVarQueryParameter;
4983
- options.pathParams = { 'project_id': projectId, 'list_id': listId, };
5665
+ options.pathParams = { 'project_id': projectId, };
4984
5666
  options.headers = localVarHeaderParameter;
4985
5667
  return options;
4986
5668
  },
4987
5669
  /**
4988
- * 更新dns服务器列表
5670
+ * 获取防火墙反病毒规则信息
4989
5671
  *
4990
5672
  * Please refer to HUAWEI cloud API Explorer for details.
4991
5673
  */
4992
- updateDnsServers(updateDnsServersRequest) {
5674
+ showAntiVirusRule(showAntiVirusRuleRequest) {
4993
5675
  const options = {
4994
- method: "PUT",
4995
- url: "/v1/{project_id}/dns/servers",
5676
+ method: "GET",
5677
+ url: "/v1/{project_id}/anti-virus/rule",
4996
5678
  contentType: "application/json",
4997
5679
  queryParams: {},
4998
5680
  pathParams: {},
4999
- headers: {},
5000
- data: {}
5681
+ headers: {}
5001
5682
  };
5002
5683
  const localVarHeaderParameter = {};
5003
5684
  const localVarQueryParameter = {};
5004
- let body;
5005
5685
  let projectId;
5006
- let fwInstanceId;
5686
+ let objectId;
5687
+ let engineType;
5688
+ let limit;
5689
+ let offset;
5007
5690
  let enterpriseProjectId;
5008
- if (updateDnsServersRequest !== null && updateDnsServersRequest !== undefined) {
5009
- if (updateDnsServersRequest instanceof UpdateDnsServersRequest_1.UpdateDnsServersRequest) {
5010
- projectId = updateDnsServersRequest.projectId;
5011
- fwInstanceId = updateDnsServersRequest.fwInstanceId;
5012
- body = updateDnsServersRequest.body;
5013
- enterpriseProjectId = updateDnsServersRequest.enterpriseProjectId;
5691
+ if (showAntiVirusRuleRequest !== null && showAntiVirusRuleRequest !== undefined) {
5692
+ if (showAntiVirusRuleRequest instanceof ShowAntiVirusRuleRequest_1.ShowAntiVirusRuleRequest) {
5693
+ projectId = showAntiVirusRuleRequest.projectId;
5694
+ objectId = showAntiVirusRuleRequest.objectId;
5695
+ engineType = showAntiVirusRuleRequest.engineType;
5696
+ limit = showAntiVirusRuleRequest.limit;
5697
+ offset = showAntiVirusRuleRequest.offset;
5698
+ enterpriseProjectId = showAntiVirusRuleRequest.enterpriseProjectId;
5014
5699
  }
5015
5700
  else {
5016
- projectId = updateDnsServersRequest['project_id'];
5017
- fwInstanceId = updateDnsServersRequest['fw_instance_id'];
5018
- body = updateDnsServersRequest['body'];
5019
- enterpriseProjectId = updateDnsServersRequest['enterprise_project_id'];
5701
+ projectId = showAntiVirusRuleRequest['project_id'];
5702
+ objectId = showAntiVirusRuleRequest['object_id'];
5703
+ engineType = showAntiVirusRuleRequest['engine_type'];
5704
+ limit = showAntiVirusRuleRequest['limit'];
5705
+ offset = showAntiVirusRuleRequest['offset'];
5706
+ enterpriseProjectId = showAntiVirusRuleRequest['enterprise_project_id'];
5020
5707
  }
5021
5708
  }
5022
5709
  if (projectId === null || projectId === undefined) {
5023
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateDnsServers.');
5710
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAntiVirusRule.');
5024
5711
  }
5025
- if (fwInstanceId === null || fwInstanceId === undefined) {
5026
- throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateDnsServers.');
5712
+ if (objectId === null || objectId === undefined) {
5713
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling showAntiVirusRule.');
5027
5714
  }
5028
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
5029
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5715
+ if (objectId !== null && objectId !== undefined) {
5716
+ localVarQueryParameter['object_id'] = objectId;
5030
5717
  }
5031
- if (body === null || body === undefined) {
5032
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5718
+ if (engineType === null || engineType === undefined) {
5719
+ throw new RequiredError('engineType', 'Required parameter engineType was null or undefined when calling showAntiVirusRule.');
5720
+ }
5721
+ if (engineType !== null && engineType !== undefined) {
5722
+ localVarQueryParameter['engine_type'] = engineType;
5723
+ }
5724
+ if (limit === null || limit === undefined) {
5725
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling showAntiVirusRule.');
5726
+ }
5727
+ if (limit !== null && limit !== undefined) {
5728
+ localVarQueryParameter['limit'] = limit;
5729
+ }
5730
+ if (offset === null || offset === undefined) {
5731
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling showAntiVirusRule.');
5732
+ }
5733
+ if (offset !== null && offset !== undefined) {
5734
+ localVarQueryParameter['offset'] = offset;
5033
5735
  }
5034
5736
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5035
5737
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5036
5738
  }
5037
- localVarHeaderParameter['Content-Type'] = 'application/json';
5038
- options.data = body !== undefined ? body : {};
5039
5739
  options.queryParams = localVarQueryParameter;
5040
5740
  options.pathParams = { 'project_id': projectId, };
5041
5741
  options.headers = localVarHeaderParameter;
5042
5742
  return options;
5043
5743
  },
5044
5744
  /**
5045
- * 更新域名组
5745
+ * 查看反病毒开关
5046
5746
  *
5047
5747
  * Please refer to HUAWEI cloud API Explorer for details.
5048
5748
  */
5049
- updateDomainSet(updateDomainSetRequest) {
5749
+ showAntiVirusSwitch(showAntiVirusSwitchRequest) {
5050
5750
  const options = {
5051
- method: "PUT",
5052
- url: "/v1/{project_id}/domain-set/{set_id}",
5751
+ method: "GET",
5752
+ url: "/v1/{project_id}/anti-virus/switch",
5053
5753
  contentType: "application/json",
5054
5754
  queryParams: {},
5055
5755
  pathParams: {},
5056
- headers: {},
5057
- data: {}
5756
+ headers: {}
5058
5757
  };
5059
5758
  const localVarHeaderParameter = {};
5060
5759
  const localVarQueryParameter = {};
5061
- let body;
5062
5760
  let projectId;
5063
- let setId;
5064
- let fwInstanceId;
5761
+ let objectId;
5065
5762
  let enterpriseProjectId;
5066
- if (updateDomainSetRequest !== null && updateDomainSetRequest !== undefined) {
5067
- if (updateDomainSetRequest instanceof UpdateDomainSetRequest_1.UpdateDomainSetRequest) {
5068
- projectId = updateDomainSetRequest.projectId;
5069
- setId = updateDomainSetRequest.setId;
5070
- fwInstanceId = updateDomainSetRequest.fwInstanceId;
5071
- body = updateDomainSetRequest.body;
5072
- enterpriseProjectId = updateDomainSetRequest.enterpriseProjectId;
5763
+ if (showAntiVirusSwitchRequest !== null && showAntiVirusSwitchRequest !== undefined) {
5764
+ if (showAntiVirusSwitchRequest instanceof ShowAntiVirusSwitchRequest_1.ShowAntiVirusSwitchRequest) {
5765
+ projectId = showAntiVirusSwitchRequest.projectId;
5766
+ objectId = showAntiVirusSwitchRequest.objectId;
5767
+ enterpriseProjectId = showAntiVirusSwitchRequest.enterpriseProjectId;
5073
5768
  }
5074
5769
  else {
5075
- projectId = updateDomainSetRequest['project_id'];
5076
- setId = updateDomainSetRequest['set_id'];
5077
- fwInstanceId = updateDomainSetRequest['fw_instance_id'];
5078
- body = updateDomainSetRequest['body'];
5079
- enterpriseProjectId = updateDomainSetRequest['enterprise_project_id'];
5770
+ projectId = showAntiVirusSwitchRequest['project_id'];
5771
+ objectId = showAntiVirusSwitchRequest['object_id'];
5772
+ enterpriseProjectId = showAntiVirusSwitchRequest['enterprise_project_id'];
5080
5773
  }
5081
5774
  }
5082
5775
  if (projectId === null || projectId === undefined) {
5083
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateDomainSet.');
5084
- }
5085
- if (setId === null || setId === undefined) {
5086
- throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateDomainSet.');
5087
- }
5088
- if (fwInstanceId === null || fwInstanceId === undefined) {
5089
- throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateDomainSet.');
5776
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAntiVirusSwitch.');
5090
5777
  }
5091
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
5092
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5778
+ if (objectId === null || objectId === undefined) {
5779
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling showAntiVirusSwitch.');
5093
5780
  }
5094
- if (body === null || body === undefined) {
5095
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5781
+ if (objectId !== null && objectId !== undefined) {
5782
+ localVarQueryParameter['object_id'] = objectId;
5096
5783
  }
5097
5784
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5098
5785
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5099
5786
  }
5100
- localVarHeaderParameter['Content-Type'] = 'application/json';
5101
- options.data = body !== undefined ? body : {};
5102
5787
  options.queryParams = localVarQueryParameter;
5103
- options.pathParams = { 'project_id': projectId, 'set_id': setId, };
5788
+ options.pathParams = { 'project_id': projectId, };
5104
5789
  options.headers = localVarHeaderParameter;
5105
5790
  return options;
5106
5791
  },
5107
5792
  /**
5108
- * 更新日志配置
5793
+ * 查看域名组详情
5109
5794
  *
5110
5795
  * Please refer to HUAWEI cloud API Explorer for details.
5111
5796
  */
5112
- updateLogConfig(updateLogConfigRequest) {
5797
+ showDomainSetDetail(showDomainSetDetailRequest) {
5113
5798
  const options = {
5114
- method: "PUT",
5115
- url: "/v1/{project_id}/cfw/logs/configuration",
5799
+ method: "GET",
5800
+ url: "/v1/{project_id}/domain-set/{domain_set_id}",
5116
5801
  contentType: "application/json",
5117
5802
  queryParams: {},
5118
5803
  pathParams: {},
5119
- headers: {},
5120
- data: {}
5804
+ headers: {}
5121
5805
  };
5122
5806
  const localVarHeaderParameter = {};
5123
5807
  const localVarQueryParameter = {};
5124
- let body;
5125
5808
  let projectId;
5126
5809
  let fwInstanceId;
5810
+ let domainSetId;
5127
5811
  let enterpriseProjectId;
5128
- if (updateLogConfigRequest !== null && updateLogConfigRequest !== undefined) {
5129
- if (updateLogConfigRequest instanceof UpdateLogConfigRequest_1.UpdateLogConfigRequest) {
5130
- projectId = updateLogConfigRequest.projectId;
5131
- fwInstanceId = updateLogConfigRequest.fwInstanceId;
5132
- body = updateLogConfigRequest.body;
5133
- enterpriseProjectId = updateLogConfigRequest.enterpriseProjectId;
5812
+ if (showDomainSetDetailRequest !== null && showDomainSetDetailRequest !== undefined) {
5813
+ if (showDomainSetDetailRequest instanceof ShowDomainSetDetailRequest_1.ShowDomainSetDetailRequest) {
5814
+ projectId = showDomainSetDetailRequest.projectId;
5815
+ fwInstanceId = showDomainSetDetailRequest.fwInstanceId;
5816
+ domainSetId = showDomainSetDetailRequest.domainSetId;
5817
+ enterpriseProjectId = showDomainSetDetailRequest.enterpriseProjectId;
5134
5818
  }
5135
5819
  else {
5136
- projectId = updateLogConfigRequest['project_id'];
5137
- fwInstanceId = updateLogConfigRequest['fw_instance_id'];
5138
- body = updateLogConfigRequest['body'];
5139
- enterpriseProjectId = updateLogConfigRequest['enterprise_project_id'];
5820
+ projectId = showDomainSetDetailRequest['project_id'];
5821
+ fwInstanceId = showDomainSetDetailRequest['fw_instance_id'];
5822
+ domainSetId = showDomainSetDetailRequest['domain_set_id'];
5823
+ enterpriseProjectId = showDomainSetDetailRequest['enterprise_project_id'];
5140
5824
  }
5141
5825
  }
5142
5826
  if (projectId === null || projectId === undefined) {
5143
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateLogConfig.');
5827
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showDomainSetDetail.');
5144
5828
  }
5145
5829
  if (fwInstanceId === null || fwInstanceId === undefined) {
5146
- throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateLogConfig.');
5830
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showDomainSetDetail.');
5147
5831
  }
5148
5832
  if (fwInstanceId !== null && fwInstanceId !== undefined) {
5149
5833
  localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5150
5834
  }
5151
- if (body === null || body === undefined) {
5152
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5835
+ if (domainSetId === null || domainSetId === undefined) {
5836
+ throw new RequiredError('domainSetId', 'Required parameter domainSetId was null or undefined when calling showDomainSetDetail.');
5153
5837
  }
5154
5838
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5155
5839
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5156
5840
  }
5157
- localVarHeaderParameter['Content-Type'] = 'application/json';
5158
- options.data = body !== undefined ? body : {};
5159
5841
  options.queryParams = localVarQueryParameter;
5160
- options.pathParams = { 'project_id': projectId, };
5842
+ options.pathParams = { 'project_id': projectId, 'domain_set_id': domainSetId, };
5161
5843
  options.headers = localVarHeaderParameter;
5162
5844
  return options;
5163
5845
  },
5164
5846
  /**
5165
- * 更新服务组
5847
+ * 更新地址组信息
5166
5848
  *
5167
5849
  * Please refer to HUAWEI cloud API Explorer for details.
5168
5850
  */
5169
- updateServiceSet(updateServiceSetRequest) {
5851
+ updateAddressSet(updateAddressSetRequest) {
5170
5852
  const options = {
5171
5853
  method: "PUT",
5172
- url: "/v1/{project_id}/service-sets/{set_id}",
5854
+ url: "/v1/{project_id}/address-sets/{set_id}",
5173
5855
  contentType: "application/json",
5174
5856
  queryParams: {},
5175
5857
  pathParams: {},
@@ -5183,27 +5865,27 @@ const ParamCreater = function () {
5183
5865
  let setId;
5184
5866
  let enterpriseProjectId;
5185
5867
  let fwInstanceId;
5186
- if (updateServiceSetRequest !== null && updateServiceSetRequest !== undefined) {
5187
- if (updateServiceSetRequest instanceof UpdateServiceSetRequest_1.UpdateServiceSetRequest) {
5188
- projectId = updateServiceSetRequest.projectId;
5189
- setId = updateServiceSetRequest.setId;
5190
- body = updateServiceSetRequest.body;
5191
- enterpriseProjectId = updateServiceSetRequest.enterpriseProjectId;
5192
- fwInstanceId = updateServiceSetRequest.fwInstanceId;
5868
+ if (updateAddressSetRequest !== null && updateAddressSetRequest !== undefined) {
5869
+ if (updateAddressSetRequest instanceof UpdateAddressSetRequest_1.UpdateAddressSetRequest) {
5870
+ projectId = updateAddressSetRequest.projectId;
5871
+ setId = updateAddressSetRequest.setId;
5872
+ body = updateAddressSetRequest.body;
5873
+ enterpriseProjectId = updateAddressSetRequest.enterpriseProjectId;
5874
+ fwInstanceId = updateAddressSetRequest.fwInstanceId;
5193
5875
  }
5194
5876
  else {
5195
- projectId = updateServiceSetRequest['project_id'];
5196
- setId = updateServiceSetRequest['set_id'];
5197
- body = updateServiceSetRequest['body'];
5198
- enterpriseProjectId = updateServiceSetRequest['enterprise_project_id'];
5199
- fwInstanceId = updateServiceSetRequest['fw_instance_id'];
5877
+ projectId = updateAddressSetRequest['project_id'];
5878
+ setId = updateAddressSetRequest['set_id'];
5879
+ body = updateAddressSetRequest['body'];
5880
+ enterpriseProjectId = updateAddressSetRequest['enterprise_project_id'];
5881
+ fwInstanceId = updateAddressSetRequest['fw_instance_id'];
5200
5882
  }
5201
5883
  }
5202
5884
  if (projectId === null || projectId === undefined) {
5203
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateServiceSet.');
5885
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAddressSet.');
5204
5886
  }
5205
5887
  if (setId === null || setId === undefined) {
5206
- throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateServiceSet.');
5888
+ throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateAddressSet.');
5207
5889
  }
5208
5890
  if (body === null || body === undefined) {
5209
5891
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -5222,14 +5904,14 @@ const ParamCreater = function () {
5222
5904
  return options;
5223
5905
  },
5224
5906
  /**
5225
- * 创建ACL规则
5907
+ * 修改告警配置接口
5226
5908
  *
5227
5909
  * Please refer to HUAWEI cloud API Explorer for details.
5228
5910
  */
5229
- addAclRule(addAclRuleRequest) {
5911
+ updateAlarmConfig(updateAlarmConfigRequest) {
5230
5912
  const options = {
5231
- method: "POST",
5232
- url: "/v1/{project_id}/acl-rule",
5913
+ method: "PUT",
5914
+ url: "/v1/{project_id}/cfw/alarm/config",
5233
5915
  contentType: "application/json",
5234
5916
  queryParams: {},
5235
5917
  pathParams: {},
@@ -5239,25 +5921,31 @@ const ParamCreater = function () {
5239
5921
  const localVarHeaderParameter = {};
5240
5922
  const localVarQueryParameter = {};
5241
5923
  let body;
5924
+ let fwInstanceId;
5242
5925
  let projectId;
5243
5926
  let enterpriseProjectId;
5244
- let fwInstanceId;
5245
- if (addAclRuleRequest !== null && addAclRuleRequest !== undefined) {
5246
- if (addAclRuleRequest instanceof AddAclRuleRequest_1.AddAclRuleRequest) {
5247
- projectId = addAclRuleRequest.projectId;
5248
- body = addAclRuleRequest.body;
5249
- enterpriseProjectId = addAclRuleRequest.enterpriseProjectId;
5250
- fwInstanceId = addAclRuleRequest.fwInstanceId;
5927
+ if (updateAlarmConfigRequest !== null && updateAlarmConfigRequest !== undefined) {
5928
+ if (updateAlarmConfigRequest instanceof UpdateAlarmConfigRequest_1.UpdateAlarmConfigRequest) {
5929
+ fwInstanceId = updateAlarmConfigRequest.fwInstanceId;
5930
+ projectId = updateAlarmConfigRequest.projectId;
5931
+ body = updateAlarmConfigRequest.body;
5932
+ enterpriseProjectId = updateAlarmConfigRequest.enterpriseProjectId;
5251
5933
  }
5252
5934
  else {
5253
- projectId = addAclRuleRequest['project_id'];
5254
- body = addAclRuleRequest['body'];
5255
- enterpriseProjectId = addAclRuleRequest['enterprise_project_id'];
5256
- fwInstanceId = addAclRuleRequest['fw_instance_id'];
5935
+ fwInstanceId = updateAlarmConfigRequest['fw_instance_id'];
5936
+ projectId = updateAlarmConfigRequest['project_id'];
5937
+ body = updateAlarmConfigRequest['body'];
5938
+ enterpriseProjectId = updateAlarmConfigRequest['enterprise_project_id'];
5257
5939
  }
5258
5940
  }
5941
+ if (fwInstanceId === null || fwInstanceId === undefined) {
5942
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateAlarmConfig.');
5943
+ }
5944
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
5945
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5946
+ }
5259
5947
  if (projectId === null || projectId === undefined) {
5260
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addAclRule.');
5948
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAlarmConfig.');
5261
5949
  }
5262
5950
  if (body === null || body === undefined) {
5263
5951
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -5265,9 +5953,6 @@ const ParamCreater = function () {
5265
5953
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5266
5954
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5267
5955
  }
5268
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
5269
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5270
- }
5271
5956
  localVarHeaderParameter['Content-Type'] = 'application/json';
5272
5957
  options.data = body !== undefined ? body : {};
5273
5958
  options.queryParams = localVarQueryParameter;
@@ -5276,14 +5961,14 @@ const ParamCreater = function () {
5276
5961
  return options;
5277
5962
  },
5278
5963
  /**
5279
- * 批量删除Acl规则
5964
+ * 修改反病毒规则
5280
5965
  *
5281
5966
  * Please refer to HUAWEI cloud API Explorer for details.
5282
5967
  */
5283
- batchDeleteAclRules(batchDeleteAclRulesRequest) {
5968
+ updateAntiVirusRule(updateAntiVirusRuleRequest) {
5284
5969
  const options = {
5285
- method: "DELETE",
5286
- url: "/v1/{project_id}/acl-rule",
5970
+ method: "PUT",
5971
+ url: "/v1/{project_id}/anti-virus/rule",
5287
5972
  contentType: "application/json",
5288
5973
  queryParams: {},
5289
5974
  pathParams: {},
@@ -5295,23 +5980,20 @@ const ParamCreater = function () {
5295
5980
  let body;
5296
5981
  let projectId;
5297
5982
  let enterpriseProjectId;
5298
- let fwInstanceId;
5299
- if (batchDeleteAclRulesRequest !== null && batchDeleteAclRulesRequest !== undefined) {
5300
- if (batchDeleteAclRulesRequest instanceof BatchDeleteAclRulesRequest_1.BatchDeleteAclRulesRequest) {
5301
- projectId = batchDeleteAclRulesRequest.projectId;
5302
- body = batchDeleteAclRulesRequest.body;
5303
- enterpriseProjectId = batchDeleteAclRulesRequest.enterpriseProjectId;
5304
- fwInstanceId = batchDeleteAclRulesRequest.fwInstanceId;
5983
+ if (updateAntiVirusRuleRequest !== null && updateAntiVirusRuleRequest !== undefined) {
5984
+ if (updateAntiVirusRuleRequest instanceof UpdateAntiVirusRuleRequest_1.UpdateAntiVirusRuleRequest) {
5985
+ projectId = updateAntiVirusRuleRequest.projectId;
5986
+ body = updateAntiVirusRuleRequest.body;
5987
+ enterpriseProjectId = updateAntiVirusRuleRequest.enterpriseProjectId;
5305
5988
  }
5306
5989
  else {
5307
- projectId = batchDeleteAclRulesRequest['project_id'];
5308
- body = batchDeleteAclRulesRequest['body'];
5309
- enterpriseProjectId = batchDeleteAclRulesRequest['enterprise_project_id'];
5310
- fwInstanceId = batchDeleteAclRulesRequest['fw_instance_id'];
5990
+ projectId = updateAntiVirusRuleRequest['project_id'];
5991
+ body = updateAntiVirusRuleRequest['body'];
5992
+ enterpriseProjectId = updateAntiVirusRuleRequest['enterprise_project_id'];
5311
5993
  }
5312
5994
  }
5313
5995
  if (projectId === null || projectId === undefined) {
5314
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling batchDeleteAclRules.');
5996
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAntiVirusRule.');
5315
5997
  }
5316
5998
  if (body === null || body === undefined) {
5317
5999
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -5319,9 +6001,6 @@ const ParamCreater = function () {
5319
6001
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5320
6002
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5321
6003
  }
5322
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
5323
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5324
- }
5325
6004
  localVarHeaderParameter['Content-Type'] = 'application/json';
5326
6005
  options.data = body !== undefined ? body : {};
5327
6006
  options.queryParams = localVarQueryParameter;
@@ -5330,14 +6009,14 @@ const ParamCreater = function () {
5330
6009
  return options;
5331
6010
  },
5332
6011
  /**
5333
- * 批量更新规则动作
6012
+ * 修改反病毒开关
5334
6013
  *
5335
6014
  * Please refer to HUAWEI cloud API Explorer for details.
5336
6015
  */
5337
- batchUpdateAclRuleActions(batchUpdateAclRuleActionsRequest) {
6016
+ updateAntiVirusSwitch(updateAntiVirusSwitchRequest) {
5338
6017
  const options = {
5339
6018
  method: "PUT",
5340
- url: "/v1/{project_id}/acl-rule/action",
6019
+ url: "/v1/{project_id}/anti-virus/switch",
5341
6020
  contentType: "application/json",
5342
6021
  queryParams: {},
5343
6022
  pathParams: {},
@@ -5349,23 +6028,20 @@ const ParamCreater = function () {
5349
6028
  let body;
5350
6029
  let projectId;
5351
6030
  let enterpriseProjectId;
5352
- let fwInstanceId;
5353
- if (batchUpdateAclRuleActionsRequest !== null && batchUpdateAclRuleActionsRequest !== undefined) {
5354
- if (batchUpdateAclRuleActionsRequest instanceof BatchUpdateAclRuleActionsRequest_1.BatchUpdateAclRuleActionsRequest) {
5355
- projectId = batchUpdateAclRuleActionsRequest.projectId;
5356
- body = batchUpdateAclRuleActionsRequest.body;
5357
- enterpriseProjectId = batchUpdateAclRuleActionsRequest.enterpriseProjectId;
5358
- fwInstanceId = batchUpdateAclRuleActionsRequest.fwInstanceId;
6031
+ if (updateAntiVirusSwitchRequest !== null && updateAntiVirusSwitchRequest !== undefined) {
6032
+ if (updateAntiVirusSwitchRequest instanceof UpdateAntiVirusSwitchRequest_1.UpdateAntiVirusSwitchRequest) {
6033
+ projectId = updateAntiVirusSwitchRequest.projectId;
6034
+ body = updateAntiVirusSwitchRequest.body;
6035
+ enterpriseProjectId = updateAntiVirusSwitchRequest.enterpriseProjectId;
5359
6036
  }
5360
6037
  else {
5361
- projectId = batchUpdateAclRuleActionsRequest['project_id'];
5362
- body = batchUpdateAclRuleActionsRequest['body'];
5363
- enterpriseProjectId = batchUpdateAclRuleActionsRequest['enterprise_project_id'];
5364
- fwInstanceId = batchUpdateAclRuleActionsRequest['fw_instance_id'];
6038
+ projectId = updateAntiVirusSwitchRequest['project_id'];
6039
+ body = updateAntiVirusSwitchRequest['body'];
6040
+ enterpriseProjectId = updateAntiVirusSwitchRequest['enterprise_project_id'];
5365
6041
  }
5366
6042
  }
5367
6043
  if (projectId === null || projectId === undefined) {
5368
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling batchUpdateAclRuleActions.');
6044
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAntiVirusSwitch.');
5369
6045
  }
5370
6046
  if (body === null || body === undefined) {
5371
6047
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -5373,9 +6049,6 @@ const ParamCreater = function () {
5373
6049
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5374
6050
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5375
6051
  }
5376
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
5377
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5378
- }
5379
6052
  localVarHeaderParameter['Content-Type'] = 'application/json';
5380
6053
  options.data = body !== undefined ? body : {};
5381
6054
  options.queryParams = localVarQueryParameter;
@@ -5384,44 +6057,51 @@ const ParamCreater = function () {
5384
6057
  return options;
5385
6058
  },
5386
6059
  /**
5387
- * 删除ACL规则组
6060
+ * 更新黑白名单列表
5388
6061
  *
5389
6062
  * Please refer to HUAWEI cloud API Explorer for details.
5390
6063
  */
5391
- deleteAclRule(deleteAclRuleRequest) {
6064
+ updateBlackWhiteList(updateBlackWhiteListRequest) {
5392
6065
  const options = {
5393
- method: "DELETE",
5394
- url: "/v1/{project_id}/acl-rule/{acl_rule_id}",
6066
+ method: "PUT",
6067
+ url: "/v1/{project_id}/black-white-list/{list_id}",
5395
6068
  contentType: "application/json",
5396
6069
  queryParams: {},
5397
6070
  pathParams: {},
5398
- headers: {}
6071
+ headers: {},
6072
+ data: {}
5399
6073
  };
5400
6074
  const localVarHeaderParameter = {};
5401
6075
  const localVarQueryParameter = {};
6076
+ let body;
5402
6077
  let projectId;
5403
- let aclRuleId;
6078
+ let listId;
5404
6079
  let enterpriseProjectId;
5405
6080
  let fwInstanceId;
5406
- if (deleteAclRuleRequest !== null && deleteAclRuleRequest !== undefined) {
5407
- if (deleteAclRuleRequest instanceof DeleteAclRuleRequest_1.DeleteAclRuleRequest) {
5408
- projectId = deleteAclRuleRequest.projectId;
5409
- aclRuleId = deleteAclRuleRequest.aclRuleId;
5410
- enterpriseProjectId = deleteAclRuleRequest.enterpriseProjectId;
5411
- fwInstanceId = deleteAclRuleRequest.fwInstanceId;
6081
+ if (updateBlackWhiteListRequest !== null && updateBlackWhiteListRequest !== undefined) {
6082
+ if (updateBlackWhiteListRequest instanceof UpdateBlackWhiteListRequest_1.UpdateBlackWhiteListRequest) {
6083
+ projectId = updateBlackWhiteListRequest.projectId;
6084
+ listId = updateBlackWhiteListRequest.listId;
6085
+ body = updateBlackWhiteListRequest.body;
6086
+ enterpriseProjectId = updateBlackWhiteListRequest.enterpriseProjectId;
6087
+ fwInstanceId = updateBlackWhiteListRequest.fwInstanceId;
5412
6088
  }
5413
6089
  else {
5414
- projectId = deleteAclRuleRequest['project_id'];
5415
- aclRuleId = deleteAclRuleRequest['acl_rule_id'];
5416
- enterpriseProjectId = deleteAclRuleRequest['enterprise_project_id'];
5417
- fwInstanceId = deleteAclRuleRequest['fw_instance_id'];
6090
+ projectId = updateBlackWhiteListRequest['project_id'];
6091
+ listId = updateBlackWhiteListRequest['list_id'];
6092
+ body = updateBlackWhiteListRequest['body'];
6093
+ enterpriseProjectId = updateBlackWhiteListRequest['enterprise_project_id'];
6094
+ fwInstanceId = updateBlackWhiteListRequest['fw_instance_id'];
5418
6095
  }
5419
6096
  }
5420
6097
  if (projectId === null || projectId === undefined) {
5421
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAclRule.');
6098
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateBlackWhiteList.');
5422
6099
  }
5423
- if (aclRuleId === null || aclRuleId === undefined) {
5424
- throw new RequiredError('aclRuleId', 'Required parameter aclRuleId was null or undefined when calling deleteAclRule.');
6100
+ if (listId === null || listId === undefined) {
6101
+ throw new RequiredError('listId', 'Required parameter listId was null or undefined when calling updateBlackWhiteList.');
6102
+ }
6103
+ if (body === null || body === undefined) {
6104
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5425
6105
  }
5426
6106
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5427
6107
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
@@ -5429,7 +6109,459 @@ const ParamCreater = function () {
5429
6109
  if (fwInstanceId !== null && fwInstanceId !== undefined) {
5430
6110
  localVarQueryParameter['fw_instance_id'] = fwInstanceId;
5431
6111
  }
5432
- options.queryParams = localVarQueryParameter;
6112
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6113
+ options.data = body !== undefined ? body : {};
6114
+ options.queryParams = localVarQueryParameter;
6115
+ options.pathParams = { 'project_id': projectId, 'list_id': listId, };
6116
+ options.headers = localVarHeaderParameter;
6117
+ return options;
6118
+ },
6119
+ /**
6120
+ * 更新dns服务器列表
6121
+ *
6122
+ * Please refer to HUAWEI cloud API Explorer for details.
6123
+ */
6124
+ updateDnsServers(updateDnsServersRequest) {
6125
+ const options = {
6126
+ method: "PUT",
6127
+ url: "/v1/{project_id}/dns/servers",
6128
+ contentType: "application/json",
6129
+ queryParams: {},
6130
+ pathParams: {},
6131
+ headers: {},
6132
+ data: {}
6133
+ };
6134
+ const localVarHeaderParameter = {};
6135
+ const localVarQueryParameter = {};
6136
+ let body;
6137
+ let projectId;
6138
+ let fwInstanceId;
6139
+ let enterpriseProjectId;
6140
+ if (updateDnsServersRequest !== null && updateDnsServersRequest !== undefined) {
6141
+ if (updateDnsServersRequest instanceof UpdateDnsServersRequest_1.UpdateDnsServersRequest) {
6142
+ projectId = updateDnsServersRequest.projectId;
6143
+ fwInstanceId = updateDnsServersRequest.fwInstanceId;
6144
+ body = updateDnsServersRequest.body;
6145
+ enterpriseProjectId = updateDnsServersRequest.enterpriseProjectId;
6146
+ }
6147
+ else {
6148
+ projectId = updateDnsServersRequest['project_id'];
6149
+ fwInstanceId = updateDnsServersRequest['fw_instance_id'];
6150
+ body = updateDnsServersRequest['body'];
6151
+ enterpriseProjectId = updateDnsServersRequest['enterprise_project_id'];
6152
+ }
6153
+ }
6154
+ if (projectId === null || projectId === undefined) {
6155
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateDnsServers.');
6156
+ }
6157
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6158
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateDnsServers.');
6159
+ }
6160
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6161
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6162
+ }
6163
+ if (body === null || body === undefined) {
6164
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6165
+ }
6166
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6167
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6168
+ }
6169
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6170
+ options.data = body !== undefined ? body : {};
6171
+ options.queryParams = localVarQueryParameter;
6172
+ options.pathParams = { 'project_id': projectId, };
6173
+ options.headers = localVarHeaderParameter;
6174
+ return options;
6175
+ },
6176
+ /**
6177
+ * 更新域名组
6178
+ *
6179
+ * Please refer to HUAWEI cloud API Explorer for details.
6180
+ */
6181
+ updateDomainSet(updateDomainSetRequest) {
6182
+ const options = {
6183
+ method: "PUT",
6184
+ url: "/v1/{project_id}/domain-set/{set_id}",
6185
+ contentType: "application/json",
6186
+ queryParams: {},
6187
+ pathParams: {},
6188
+ headers: {},
6189
+ data: {}
6190
+ };
6191
+ const localVarHeaderParameter = {};
6192
+ const localVarQueryParameter = {};
6193
+ let body;
6194
+ let projectId;
6195
+ let setId;
6196
+ let fwInstanceId;
6197
+ let enterpriseProjectId;
6198
+ if (updateDomainSetRequest !== null && updateDomainSetRequest !== undefined) {
6199
+ if (updateDomainSetRequest instanceof UpdateDomainSetRequest_1.UpdateDomainSetRequest) {
6200
+ projectId = updateDomainSetRequest.projectId;
6201
+ setId = updateDomainSetRequest.setId;
6202
+ fwInstanceId = updateDomainSetRequest.fwInstanceId;
6203
+ body = updateDomainSetRequest.body;
6204
+ enterpriseProjectId = updateDomainSetRequest.enterpriseProjectId;
6205
+ }
6206
+ else {
6207
+ projectId = updateDomainSetRequest['project_id'];
6208
+ setId = updateDomainSetRequest['set_id'];
6209
+ fwInstanceId = updateDomainSetRequest['fw_instance_id'];
6210
+ body = updateDomainSetRequest['body'];
6211
+ enterpriseProjectId = updateDomainSetRequest['enterprise_project_id'];
6212
+ }
6213
+ }
6214
+ if (projectId === null || projectId === undefined) {
6215
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateDomainSet.');
6216
+ }
6217
+ if (setId === null || setId === undefined) {
6218
+ throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateDomainSet.');
6219
+ }
6220
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6221
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateDomainSet.');
6222
+ }
6223
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6224
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6225
+ }
6226
+ if (body === null || body === undefined) {
6227
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6228
+ }
6229
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6230
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6231
+ }
6232
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6233
+ options.data = body !== undefined ? body : {};
6234
+ options.queryParams = localVarQueryParameter;
6235
+ options.pathParams = { 'project_id': projectId, 'set_id': setId, };
6236
+ options.headers = localVarHeaderParameter;
6237
+ return options;
6238
+ },
6239
+ /**
6240
+ * 更新日志配置
6241
+ *
6242
+ * Please refer to HUAWEI cloud API Explorer for details.
6243
+ */
6244
+ updateLogConfig(updateLogConfigRequest) {
6245
+ const options = {
6246
+ method: "PUT",
6247
+ url: "/v1/{project_id}/cfw/logs/configuration",
6248
+ contentType: "application/json",
6249
+ queryParams: {},
6250
+ pathParams: {},
6251
+ headers: {},
6252
+ data: {}
6253
+ };
6254
+ const localVarHeaderParameter = {};
6255
+ const localVarQueryParameter = {};
6256
+ let body;
6257
+ let projectId;
6258
+ let fwInstanceId;
6259
+ let enterpriseProjectId;
6260
+ if (updateLogConfigRequest !== null && updateLogConfigRequest !== undefined) {
6261
+ if (updateLogConfigRequest instanceof UpdateLogConfigRequest_1.UpdateLogConfigRequest) {
6262
+ projectId = updateLogConfigRequest.projectId;
6263
+ fwInstanceId = updateLogConfigRequest.fwInstanceId;
6264
+ body = updateLogConfigRequest.body;
6265
+ enterpriseProjectId = updateLogConfigRequest.enterpriseProjectId;
6266
+ }
6267
+ else {
6268
+ projectId = updateLogConfigRequest['project_id'];
6269
+ fwInstanceId = updateLogConfigRequest['fw_instance_id'];
6270
+ body = updateLogConfigRequest['body'];
6271
+ enterpriseProjectId = updateLogConfigRequest['enterprise_project_id'];
6272
+ }
6273
+ }
6274
+ if (projectId === null || projectId === undefined) {
6275
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateLogConfig.');
6276
+ }
6277
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6278
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling updateLogConfig.');
6279
+ }
6280
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6281
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6282
+ }
6283
+ if (body === null || body === undefined) {
6284
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6285
+ }
6286
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6287
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6288
+ }
6289
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6290
+ options.data = body !== undefined ? body : {};
6291
+ options.queryParams = localVarQueryParameter;
6292
+ options.pathParams = { 'project_id': projectId, };
6293
+ options.headers = localVarHeaderParameter;
6294
+ return options;
6295
+ },
6296
+ /**
6297
+ * 更新服务组
6298
+ *
6299
+ * Please refer to HUAWEI cloud API Explorer for details.
6300
+ */
6301
+ updateServiceSet(updateServiceSetRequest) {
6302
+ const options = {
6303
+ method: "PUT",
6304
+ url: "/v1/{project_id}/service-sets/{set_id}",
6305
+ contentType: "application/json",
6306
+ queryParams: {},
6307
+ pathParams: {},
6308
+ headers: {},
6309
+ data: {}
6310
+ };
6311
+ const localVarHeaderParameter = {};
6312
+ const localVarQueryParameter = {};
6313
+ let body;
6314
+ let projectId;
6315
+ let setId;
6316
+ let enterpriseProjectId;
6317
+ let fwInstanceId;
6318
+ if (updateServiceSetRequest !== null && updateServiceSetRequest !== undefined) {
6319
+ if (updateServiceSetRequest instanceof UpdateServiceSetRequest_1.UpdateServiceSetRequest) {
6320
+ projectId = updateServiceSetRequest.projectId;
6321
+ setId = updateServiceSetRequest.setId;
6322
+ body = updateServiceSetRequest.body;
6323
+ enterpriseProjectId = updateServiceSetRequest.enterpriseProjectId;
6324
+ fwInstanceId = updateServiceSetRequest.fwInstanceId;
6325
+ }
6326
+ else {
6327
+ projectId = updateServiceSetRequest['project_id'];
6328
+ setId = updateServiceSetRequest['set_id'];
6329
+ body = updateServiceSetRequest['body'];
6330
+ enterpriseProjectId = updateServiceSetRequest['enterprise_project_id'];
6331
+ fwInstanceId = updateServiceSetRequest['fw_instance_id'];
6332
+ }
6333
+ }
6334
+ if (projectId === null || projectId === undefined) {
6335
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateServiceSet.');
6336
+ }
6337
+ if (setId === null || setId === undefined) {
6338
+ throw new RequiredError('setId', 'Required parameter setId was null or undefined when calling updateServiceSet.');
6339
+ }
6340
+ if (body === null || body === undefined) {
6341
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6342
+ }
6343
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6344
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6345
+ }
6346
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6347
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6348
+ }
6349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6350
+ options.data = body !== undefined ? body : {};
6351
+ options.queryParams = localVarQueryParameter;
6352
+ options.pathParams = { 'project_id': projectId, 'set_id': setId, };
6353
+ options.headers = localVarHeaderParameter;
6354
+ return options;
6355
+ },
6356
+ /**
6357
+ * 创建ACL规则
6358
+ *
6359
+ * Please refer to HUAWEI cloud API Explorer for details.
6360
+ */
6361
+ addAclRule(addAclRuleRequest) {
6362
+ const options = {
6363
+ method: "POST",
6364
+ url: "/v1/{project_id}/acl-rule",
6365
+ contentType: "application/json",
6366
+ queryParams: {},
6367
+ pathParams: {},
6368
+ headers: {},
6369
+ data: {}
6370
+ };
6371
+ const localVarHeaderParameter = {};
6372
+ const localVarQueryParameter = {};
6373
+ let body;
6374
+ let projectId;
6375
+ let enterpriseProjectId;
6376
+ let fwInstanceId;
6377
+ if (addAclRuleRequest !== null && addAclRuleRequest !== undefined) {
6378
+ if (addAclRuleRequest instanceof AddAclRuleRequest_1.AddAclRuleRequest) {
6379
+ projectId = addAclRuleRequest.projectId;
6380
+ body = addAclRuleRequest.body;
6381
+ enterpriseProjectId = addAclRuleRequest.enterpriseProjectId;
6382
+ fwInstanceId = addAclRuleRequest.fwInstanceId;
6383
+ }
6384
+ else {
6385
+ projectId = addAclRuleRequest['project_id'];
6386
+ body = addAclRuleRequest['body'];
6387
+ enterpriseProjectId = addAclRuleRequest['enterprise_project_id'];
6388
+ fwInstanceId = addAclRuleRequest['fw_instance_id'];
6389
+ }
6390
+ }
6391
+ if (projectId === null || projectId === undefined) {
6392
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling addAclRule.');
6393
+ }
6394
+ if (body === null || body === undefined) {
6395
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6396
+ }
6397
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6398
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6399
+ }
6400
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6401
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6402
+ }
6403
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6404
+ options.data = body !== undefined ? body : {};
6405
+ options.queryParams = localVarQueryParameter;
6406
+ options.pathParams = { 'project_id': projectId, };
6407
+ options.headers = localVarHeaderParameter;
6408
+ return options;
6409
+ },
6410
+ /**
6411
+ * 批量删除Acl规则
6412
+ *
6413
+ * Please refer to HUAWEI cloud API Explorer for details.
6414
+ */
6415
+ batchDeleteAclRules(batchDeleteAclRulesRequest) {
6416
+ const options = {
6417
+ method: "DELETE",
6418
+ url: "/v1/{project_id}/acl-rule",
6419
+ contentType: "application/json",
6420
+ queryParams: {},
6421
+ pathParams: {},
6422
+ headers: {},
6423
+ data: {}
6424
+ };
6425
+ const localVarHeaderParameter = {};
6426
+ const localVarQueryParameter = {};
6427
+ let body;
6428
+ let projectId;
6429
+ let enterpriseProjectId;
6430
+ let fwInstanceId;
6431
+ if (batchDeleteAclRulesRequest !== null && batchDeleteAclRulesRequest !== undefined) {
6432
+ if (batchDeleteAclRulesRequest instanceof BatchDeleteAclRulesRequest_1.BatchDeleteAclRulesRequest) {
6433
+ projectId = batchDeleteAclRulesRequest.projectId;
6434
+ body = batchDeleteAclRulesRequest.body;
6435
+ enterpriseProjectId = batchDeleteAclRulesRequest.enterpriseProjectId;
6436
+ fwInstanceId = batchDeleteAclRulesRequest.fwInstanceId;
6437
+ }
6438
+ else {
6439
+ projectId = batchDeleteAclRulesRequest['project_id'];
6440
+ body = batchDeleteAclRulesRequest['body'];
6441
+ enterpriseProjectId = batchDeleteAclRulesRequest['enterprise_project_id'];
6442
+ fwInstanceId = batchDeleteAclRulesRequest['fw_instance_id'];
6443
+ }
6444
+ }
6445
+ if (projectId === null || projectId === undefined) {
6446
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling batchDeleteAclRules.');
6447
+ }
6448
+ if (body === null || body === undefined) {
6449
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6450
+ }
6451
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6452
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6453
+ }
6454
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6455
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6456
+ }
6457
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6458
+ options.data = body !== undefined ? body : {};
6459
+ options.queryParams = localVarQueryParameter;
6460
+ options.pathParams = { 'project_id': projectId, };
6461
+ options.headers = localVarHeaderParameter;
6462
+ return options;
6463
+ },
6464
+ /**
6465
+ * 批量更新规则动作
6466
+ *
6467
+ * Please refer to HUAWEI cloud API Explorer for details.
6468
+ */
6469
+ batchUpdateAclRuleActions(batchUpdateAclRuleActionsRequest) {
6470
+ const options = {
6471
+ method: "PUT",
6472
+ url: "/v1/{project_id}/acl-rule/action",
6473
+ contentType: "application/json",
6474
+ queryParams: {},
6475
+ pathParams: {},
6476
+ headers: {},
6477
+ data: {}
6478
+ };
6479
+ const localVarHeaderParameter = {};
6480
+ const localVarQueryParameter = {};
6481
+ let body;
6482
+ let projectId;
6483
+ let enterpriseProjectId;
6484
+ let fwInstanceId;
6485
+ if (batchUpdateAclRuleActionsRequest !== null && batchUpdateAclRuleActionsRequest !== undefined) {
6486
+ if (batchUpdateAclRuleActionsRequest instanceof BatchUpdateAclRuleActionsRequest_1.BatchUpdateAclRuleActionsRequest) {
6487
+ projectId = batchUpdateAclRuleActionsRequest.projectId;
6488
+ body = batchUpdateAclRuleActionsRequest.body;
6489
+ enterpriseProjectId = batchUpdateAclRuleActionsRequest.enterpriseProjectId;
6490
+ fwInstanceId = batchUpdateAclRuleActionsRequest.fwInstanceId;
6491
+ }
6492
+ else {
6493
+ projectId = batchUpdateAclRuleActionsRequest['project_id'];
6494
+ body = batchUpdateAclRuleActionsRequest['body'];
6495
+ enterpriseProjectId = batchUpdateAclRuleActionsRequest['enterprise_project_id'];
6496
+ fwInstanceId = batchUpdateAclRuleActionsRequest['fw_instance_id'];
6497
+ }
6498
+ }
6499
+ if (projectId === null || projectId === undefined) {
6500
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling batchUpdateAclRuleActions.');
6501
+ }
6502
+ if (body === null || body === undefined) {
6503
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6504
+ }
6505
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6506
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6507
+ }
6508
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6509
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6510
+ }
6511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6512
+ options.data = body !== undefined ? body : {};
6513
+ options.queryParams = localVarQueryParameter;
6514
+ options.pathParams = { 'project_id': projectId, };
6515
+ options.headers = localVarHeaderParameter;
6516
+ return options;
6517
+ },
6518
+ /**
6519
+ * 删除ACL规则组
6520
+ *
6521
+ * Please refer to HUAWEI cloud API Explorer for details.
6522
+ */
6523
+ deleteAclRule(deleteAclRuleRequest) {
6524
+ const options = {
6525
+ method: "DELETE",
6526
+ url: "/v1/{project_id}/acl-rule/{acl_rule_id}",
6527
+ contentType: "application/json",
6528
+ queryParams: {},
6529
+ pathParams: {},
6530
+ headers: {}
6531
+ };
6532
+ const localVarHeaderParameter = {};
6533
+ const localVarQueryParameter = {};
6534
+ let projectId;
6535
+ let aclRuleId;
6536
+ let enterpriseProjectId;
6537
+ let fwInstanceId;
6538
+ if (deleteAclRuleRequest !== null && deleteAclRuleRequest !== undefined) {
6539
+ if (deleteAclRuleRequest instanceof DeleteAclRuleRequest_1.DeleteAclRuleRequest) {
6540
+ projectId = deleteAclRuleRequest.projectId;
6541
+ aclRuleId = deleteAclRuleRequest.aclRuleId;
6542
+ enterpriseProjectId = deleteAclRuleRequest.enterpriseProjectId;
6543
+ fwInstanceId = deleteAclRuleRequest.fwInstanceId;
6544
+ }
6545
+ else {
6546
+ projectId = deleteAclRuleRequest['project_id'];
6547
+ aclRuleId = deleteAclRuleRequest['acl_rule_id'];
6548
+ enterpriseProjectId = deleteAclRuleRequest['enterprise_project_id'];
6549
+ fwInstanceId = deleteAclRuleRequest['fw_instance_id'];
6550
+ }
6551
+ }
6552
+ if (projectId === null || projectId === undefined) {
6553
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAclRule.');
6554
+ }
6555
+ if (aclRuleId === null || aclRuleId === undefined) {
6556
+ throw new RequiredError('aclRuleId', 'Required parameter aclRuleId was null or undefined when calling deleteAclRule.');
6557
+ }
6558
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6559
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6560
+ }
6561
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6562
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6563
+ }
6564
+ options.queryParams = localVarQueryParameter;
5433
6565
  options.pathParams = { 'project_id': projectId, 'acl_rule_id': aclRuleId, };
5434
6566
  options.headers = localVarHeaderParameter;
5435
6567
  return options;
@@ -5683,6 +6815,54 @@ const ParamCreater = function () {
5683
6815
  options.headers = localVarHeaderParameter;
5684
6816
  return options;
5685
6817
  },
6818
+ /**
6819
+ * 查看region列表
6820
+ *
6821
+ * Please refer to HUAWEI cloud API Explorer for details.
6822
+ */
6823
+ listRegions(listRegionsRequest) {
6824
+ const options = {
6825
+ method: "GET",
6826
+ url: "/v1/{project_id}/regions",
6827
+ contentType: "application/json",
6828
+ queryParams: {},
6829
+ pathParams: {},
6830
+ headers: {}
6831
+ };
6832
+ const localVarHeaderParameter = {};
6833
+ const localVarQueryParameter = {};
6834
+ let projectId;
6835
+ let fwInstanceId;
6836
+ let enterpriseProjectId;
6837
+ if (listRegionsRequest !== null && listRegionsRequest !== undefined) {
6838
+ if (listRegionsRequest instanceof ListRegionsRequest_1.ListRegionsRequest) {
6839
+ projectId = listRegionsRequest.projectId;
6840
+ fwInstanceId = listRegionsRequest.fwInstanceId;
6841
+ enterpriseProjectId = listRegionsRequest.enterpriseProjectId;
6842
+ }
6843
+ else {
6844
+ projectId = listRegionsRequest['project_id'];
6845
+ fwInstanceId = listRegionsRequest['fw_instance_id'];
6846
+ enterpriseProjectId = listRegionsRequest['enterprise_project_id'];
6847
+ }
6848
+ }
6849
+ if (projectId === null || projectId === undefined) {
6850
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listRegions.');
6851
+ }
6852
+ if (fwInstanceId === null || fwInstanceId === undefined) {
6853
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listRegions.');
6854
+ }
6855
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
6856
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6857
+ }
6858
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6859
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6860
+ }
6861
+ options.queryParams = localVarQueryParameter;
6862
+ options.pathParams = { 'project_id': projectId, };
6863
+ options.headers = localVarHeaderParameter;
6864
+ return options;
6865
+ },
5686
6866
  /**
5687
6867
  * 查询规则标签
5688
6868
  *
@@ -5749,6 +6929,54 @@ const ParamCreater = function () {
5749
6929
  options.headers = localVarHeaderParameter;
5750
6930
  return options;
5751
6931
  },
6932
+ /**
6933
+ * 查看导入状态接口
6934
+ *
6935
+ * Please refer to HUAWEI cloud API Explorer for details.
6936
+ */
6937
+ showImportStatus(showImportStatusRequest) {
6938
+ const options = {
6939
+ method: "GET",
6940
+ url: "/v1/{project_id}/acl-rule/import-status",
6941
+ contentType: "application/json",
6942
+ queryParams: {},
6943
+ pathParams: {},
6944
+ headers: {}
6945
+ };
6946
+ const localVarHeaderParameter = {};
6947
+ const localVarQueryParameter = {};
6948
+ let objectId;
6949
+ let projectId;
6950
+ let enterpriseProjectId;
6951
+ if (showImportStatusRequest !== null && showImportStatusRequest !== undefined) {
6952
+ if (showImportStatusRequest instanceof ShowImportStatusRequest_1.ShowImportStatusRequest) {
6953
+ objectId = showImportStatusRequest.objectId;
6954
+ projectId = showImportStatusRequest.projectId;
6955
+ enterpriseProjectId = showImportStatusRequest.enterpriseProjectId;
6956
+ }
6957
+ else {
6958
+ objectId = showImportStatusRequest['object_id'];
6959
+ projectId = showImportStatusRequest['project_id'];
6960
+ enterpriseProjectId = showImportStatusRequest['enterprise_project_id'];
6961
+ }
6962
+ }
6963
+ if (objectId === null || objectId === undefined) {
6964
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling showImportStatus.');
6965
+ }
6966
+ if (objectId !== null && objectId !== undefined) {
6967
+ localVarQueryParameter['object_id'] = objectId;
6968
+ }
6969
+ if (projectId === null || projectId === undefined) {
6970
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showImportStatus.');
6971
+ }
6972
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6973
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6974
+ }
6975
+ options.queryParams = localVarQueryParameter;
6976
+ options.pathParams = { 'project_id': projectId, };
6977
+ options.headers = localVarHeaderParameter;
6978
+ return options;
6979
+ },
5752
6980
  /**
5753
6981
  * 更新ACL规则
5754
6982
  *
@@ -5923,6 +7151,75 @@ const ParamCreater = function () {
5923
7151
  options.headers = localVarHeaderParameter;
5924
7152
  return options;
5925
7153
  },
7154
+ /**
7155
+ * 查看eip告警白名单
7156
+ *
7157
+ * Please refer to HUAWEI cloud API Explorer for details.
7158
+ */
7159
+ listAlarmWhitelist(listAlarmWhitelistRequest) {
7160
+ const options = {
7161
+ method: "GET",
7162
+ url: "/v1/{project_id}/eip/alarm-whitelist/{fw_instance_id}",
7163
+ contentType: "application/json",
7164
+ queryParams: {},
7165
+ pathParams: {},
7166
+ headers: {}
7167
+ };
7168
+ const localVarHeaderParameter = {};
7169
+ const localVarQueryParameter = {};
7170
+ let fwInstanceId;
7171
+ let limit;
7172
+ let offset;
7173
+ let projectId;
7174
+ let ipAddress;
7175
+ let enterpriseProjectId;
7176
+ if (listAlarmWhitelistRequest !== null && listAlarmWhitelistRequest !== undefined) {
7177
+ if (listAlarmWhitelistRequest instanceof ListAlarmWhitelistRequest_1.ListAlarmWhitelistRequest) {
7178
+ fwInstanceId = listAlarmWhitelistRequest.fwInstanceId;
7179
+ limit = listAlarmWhitelistRequest.limit;
7180
+ offset = listAlarmWhitelistRequest.offset;
7181
+ projectId = listAlarmWhitelistRequest.projectId;
7182
+ ipAddress = listAlarmWhitelistRequest.ipAddress;
7183
+ enterpriseProjectId = listAlarmWhitelistRequest.enterpriseProjectId;
7184
+ }
7185
+ else {
7186
+ fwInstanceId = listAlarmWhitelistRequest['fw_instance_id'];
7187
+ limit = listAlarmWhitelistRequest['limit'];
7188
+ offset = listAlarmWhitelistRequest['offset'];
7189
+ projectId = listAlarmWhitelistRequest['project_id'];
7190
+ ipAddress = listAlarmWhitelistRequest['ip_address'];
7191
+ enterpriseProjectId = listAlarmWhitelistRequest['enterprise_project_id'];
7192
+ }
7193
+ }
7194
+ if (fwInstanceId === null || fwInstanceId === undefined) {
7195
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listAlarmWhitelist.');
7196
+ }
7197
+ if (limit === null || limit === undefined) {
7198
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listAlarmWhitelist.');
7199
+ }
7200
+ if (limit !== null && limit !== undefined) {
7201
+ localVarQueryParameter['limit'] = limit;
7202
+ }
7203
+ if (offset === null || offset === undefined) {
7204
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listAlarmWhitelist.');
7205
+ }
7206
+ if (offset !== null && offset !== undefined) {
7207
+ localVarQueryParameter['offset'] = offset;
7208
+ }
7209
+ if (projectId === null || projectId === undefined) {
7210
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAlarmWhitelist.');
7211
+ }
7212
+ if (ipAddress !== null && ipAddress !== undefined) {
7213
+ localVarQueryParameter['ip_address'] = ipAddress;
7214
+ }
7215
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7216
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7217
+ }
7218
+ options.queryParams = localVarQueryParameter;
7219
+ options.pathParams = { 'fw_instance_id': fwInstanceId, 'project_id': projectId, };
7220
+ options.headers = localVarHeaderParameter;
7221
+ return options;
7222
+ },
5926
7223
  /**
5927
7224
  * 查询Eip个数
5928
7225
  *
@@ -6094,6 +7391,99 @@ const ParamCreater = function () {
6094
7391
  options.headers = localVarHeaderParameter;
6095
7392
  return options;
6096
7393
  },
7394
+ /**
7395
+ * 获取eip自动防护状态信息
7396
+ *
7397
+ * Please refer to HUAWEI cloud API Explorer for details.
7398
+ */
7399
+ showAutoProtectStatus(showAutoProtectStatusRequest) {
7400
+ const options = {
7401
+ method: "GET",
7402
+ url: "/v1/{project_id}/eip/auto-protect-status/{object_id}",
7403
+ contentType: "application/json",
7404
+ queryParams: {},
7405
+ pathParams: {},
7406
+ headers: {}
7407
+ };
7408
+ const localVarHeaderParameter = {};
7409
+ const localVarQueryParameter = {};
7410
+ let objectId;
7411
+ let projectId;
7412
+ let enterpriseProjectId;
7413
+ if (showAutoProtectStatusRequest !== null && showAutoProtectStatusRequest !== undefined) {
7414
+ if (showAutoProtectStatusRequest instanceof ShowAutoProtectStatusRequest_1.ShowAutoProtectStatusRequest) {
7415
+ objectId = showAutoProtectStatusRequest.objectId;
7416
+ projectId = showAutoProtectStatusRequest.projectId;
7417
+ enterpriseProjectId = showAutoProtectStatusRequest.enterpriseProjectId;
7418
+ }
7419
+ else {
7420
+ objectId = showAutoProtectStatusRequest['object_id'];
7421
+ projectId = showAutoProtectStatusRequest['project_id'];
7422
+ enterpriseProjectId = showAutoProtectStatusRequest['enterprise_project_id'];
7423
+ }
7424
+ }
7425
+ if (objectId === null || objectId === undefined) {
7426
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling showAutoProtectStatus.');
7427
+ }
7428
+ if (projectId === null || projectId === undefined) {
7429
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showAutoProtectStatus.');
7430
+ }
7431
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7432
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7433
+ }
7434
+ options.queryParams = localVarQueryParameter;
7435
+ options.pathParams = { 'object_id': objectId, 'project_id': projectId, };
7436
+ options.headers = localVarHeaderParameter;
7437
+ return options;
7438
+ },
7439
+ /**
7440
+ * 修改eip自动防护开关
7441
+ *
7442
+ * Please refer to HUAWEI cloud API Explorer for details.
7443
+ */
7444
+ switchAutoProtectStatus(switchAutoProtectStatusRequest) {
7445
+ const options = {
7446
+ method: "POST",
7447
+ url: "/v1/{project_id}/eip/auto-protect-status/switch",
7448
+ contentType: "application/json",
7449
+ queryParams: {},
7450
+ pathParams: {},
7451
+ headers: {},
7452
+ data: {}
7453
+ };
7454
+ const localVarHeaderParameter = {};
7455
+ const localVarQueryParameter = {};
7456
+ let body;
7457
+ let projectId;
7458
+ let enterpriseProjectId;
7459
+ if (switchAutoProtectStatusRequest !== null && switchAutoProtectStatusRequest !== undefined) {
7460
+ if (switchAutoProtectStatusRequest instanceof SwitchAutoProtectStatusRequest_1.SwitchAutoProtectStatusRequest) {
7461
+ projectId = switchAutoProtectStatusRequest.projectId;
7462
+ body = switchAutoProtectStatusRequest.body;
7463
+ enterpriseProjectId = switchAutoProtectStatusRequest.enterpriseProjectId;
7464
+ }
7465
+ else {
7466
+ projectId = switchAutoProtectStatusRequest['project_id'];
7467
+ body = switchAutoProtectStatusRequest['body'];
7468
+ enterpriseProjectId = switchAutoProtectStatusRequest['enterprise_project_id'];
7469
+ }
7470
+ }
7471
+ if (projectId === null || projectId === undefined) {
7472
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling switchAutoProtectStatus.');
7473
+ }
7474
+ if (body === null || body === undefined) {
7475
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
7476
+ }
7477
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7478
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7479
+ }
7480
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7481
+ options.data = body !== undefined ? body : {};
7482
+ options.queryParams = localVarQueryParameter;
7483
+ options.pathParams = { 'project_id': projectId, };
7484
+ options.headers = localVarHeaderParameter;
7485
+ return options;
7486
+ },
6097
7487
  /**
6098
7488
  * 切换防护模式
6099
7489
  *
@@ -6102,7 +7492,61 @@ const ParamCreater = function () {
6102
7492
  changeIpsProtectMode(changeIpsProtectModeRequest) {
6103
7493
  const options = {
6104
7494
  method: "POST",
6105
- url: "/v1/{project_id}/ips/protect",
7495
+ url: "/v1/{project_id}/ips/protect",
7496
+ contentType: "application/json",
7497
+ queryParams: {},
7498
+ pathParams: {},
7499
+ headers: {},
7500
+ data: {}
7501
+ };
7502
+ const localVarHeaderParameter = {};
7503
+ const localVarQueryParameter = {};
7504
+ let body;
7505
+ let projectId;
7506
+ let enterpriseProjectId;
7507
+ let fwInstanceId;
7508
+ if (changeIpsProtectModeRequest !== null && changeIpsProtectModeRequest !== undefined) {
7509
+ if (changeIpsProtectModeRequest instanceof ChangeIpsProtectModeRequest_1.ChangeIpsProtectModeRequest) {
7510
+ projectId = changeIpsProtectModeRequest.projectId;
7511
+ body = changeIpsProtectModeRequest.body;
7512
+ enterpriseProjectId = changeIpsProtectModeRequest.enterpriseProjectId;
7513
+ fwInstanceId = changeIpsProtectModeRequest.fwInstanceId;
7514
+ }
7515
+ else {
7516
+ projectId = changeIpsProtectModeRequest['project_id'];
7517
+ body = changeIpsProtectModeRequest['body'];
7518
+ enterpriseProjectId = changeIpsProtectModeRequest['enterprise_project_id'];
7519
+ fwInstanceId = changeIpsProtectModeRequest['fw_instance_id'];
7520
+ }
7521
+ }
7522
+ if (projectId === null || projectId === undefined) {
7523
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeIpsProtectMode.');
7524
+ }
7525
+ if (body === null || body === undefined) {
7526
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
7527
+ }
7528
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7529
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7530
+ }
7531
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
7532
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
7533
+ }
7534
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7535
+ options.data = body !== undefined ? body : {};
7536
+ options.queryParams = localVarQueryParameter;
7537
+ options.pathParams = { 'project_id': projectId, };
7538
+ options.headers = localVarHeaderParameter;
7539
+ return options;
7540
+ },
7541
+ /**
7542
+ * 改变ips规则模式
7543
+ *
7544
+ * Please refer to HUAWEI cloud API Explorer for details.
7545
+ */
7546
+ changeIpsRuleMode(changeIpsRuleModeRequest) {
7547
+ const options = {
7548
+ method: "POST",
7549
+ url: "/v1/{project_id}/ips-rule/mode",
6106
7550
  contentType: "application/json",
6107
7551
  queryParams: {},
6108
7552
  pathParams: {},
@@ -6114,23 +7558,20 @@ const ParamCreater = function () {
6114
7558
  let body;
6115
7559
  let projectId;
6116
7560
  let enterpriseProjectId;
6117
- let fwInstanceId;
6118
- if (changeIpsProtectModeRequest !== null && changeIpsProtectModeRequest !== undefined) {
6119
- if (changeIpsProtectModeRequest instanceof ChangeIpsProtectModeRequest_1.ChangeIpsProtectModeRequest) {
6120
- projectId = changeIpsProtectModeRequest.projectId;
6121
- body = changeIpsProtectModeRequest.body;
6122
- enterpriseProjectId = changeIpsProtectModeRequest.enterpriseProjectId;
6123
- fwInstanceId = changeIpsProtectModeRequest.fwInstanceId;
7561
+ if (changeIpsRuleModeRequest !== null && changeIpsRuleModeRequest !== undefined) {
7562
+ if (changeIpsRuleModeRequest instanceof ChangeIpsRuleModeRequest_1.ChangeIpsRuleModeRequest) {
7563
+ projectId = changeIpsRuleModeRequest.projectId;
7564
+ body = changeIpsRuleModeRequest.body;
7565
+ enterpriseProjectId = changeIpsRuleModeRequest.enterpriseProjectId;
6124
7566
  }
6125
7567
  else {
6126
- projectId = changeIpsProtectModeRequest['project_id'];
6127
- body = changeIpsProtectModeRequest['body'];
6128
- enterpriseProjectId = changeIpsProtectModeRequest['enterprise_project_id'];
6129
- fwInstanceId = changeIpsProtectModeRequest['fw_instance_id'];
7568
+ projectId = changeIpsRuleModeRequest['project_id'];
7569
+ body = changeIpsRuleModeRequest['body'];
7570
+ enterpriseProjectId = changeIpsRuleModeRequest['enterprise_project_id'];
6130
7571
  }
6131
7572
  }
6132
7573
  if (projectId === null || projectId === undefined) {
6133
- throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeIpsProtectMode.');
7574
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling changeIpsRuleMode.');
6134
7575
  }
6135
7576
  if (body === null || body === undefined) {
6136
7577
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -6138,9 +7579,6 @@ const ParamCreater = function () {
6138
7579
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6139
7580
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6140
7581
  }
6141
- if (fwInstanceId !== null && fwInstanceId !== undefined) {
6142
- localVarQueryParameter['fw_instance_id'] = fwInstanceId;
6143
- }
6144
7582
  localVarHeaderParameter['Content-Type'] = 'application/json';
6145
7583
  options.data = body !== undefined ? body : {};
6146
7584
  options.queryParams = localVarQueryParameter;
@@ -6202,6 +7640,123 @@ const ParamCreater = function () {
6202
7640
  options.headers = localVarHeaderParameter;
6203
7641
  return options;
6204
7642
  },
7643
+ /**
7644
+ * 获取自定义ips规则
7645
+ *
7646
+ * Please refer to HUAWEI cloud API Explorer for details.
7647
+ */
7648
+ listCustomerIps(listCustomerIpsRequest) {
7649
+ const options = {
7650
+ method: "GET",
7651
+ url: "/v1/{project_id}/ips/custom-rule",
7652
+ contentType: "application/json",
7653
+ queryParams: {},
7654
+ pathParams: {},
7655
+ headers: {}
7656
+ };
7657
+ const localVarHeaderParameter = {};
7658
+ const localVarQueryParameter = {};
7659
+ let fwInstanceId;
7660
+ let limit;
7661
+ let objectId;
7662
+ let offset;
7663
+ let projectId;
7664
+ let actionType;
7665
+ let affectedOs;
7666
+ let attackType;
7667
+ let ipsName;
7668
+ let protocol;
7669
+ let severity;
7670
+ let software;
7671
+ let enterpriseProjectId;
7672
+ if (listCustomerIpsRequest !== null && listCustomerIpsRequest !== undefined) {
7673
+ if (listCustomerIpsRequest instanceof ListCustomerIpsRequest_1.ListCustomerIpsRequest) {
7674
+ fwInstanceId = listCustomerIpsRequest.fwInstanceId;
7675
+ limit = listCustomerIpsRequest.limit;
7676
+ objectId = listCustomerIpsRequest.objectId;
7677
+ offset = listCustomerIpsRequest.offset;
7678
+ projectId = listCustomerIpsRequest.projectId;
7679
+ actionType = listCustomerIpsRequest.actionType;
7680
+ affectedOs = listCustomerIpsRequest.affectedOs;
7681
+ attackType = listCustomerIpsRequest.attackType;
7682
+ ipsName = listCustomerIpsRequest.ipsName;
7683
+ protocol = listCustomerIpsRequest.protocol;
7684
+ severity = listCustomerIpsRequest.severity;
7685
+ software = listCustomerIpsRequest.software;
7686
+ enterpriseProjectId = listCustomerIpsRequest.enterpriseProjectId;
7687
+ }
7688
+ else {
7689
+ fwInstanceId = listCustomerIpsRequest['fw_instance_id'];
7690
+ limit = listCustomerIpsRequest['limit'];
7691
+ objectId = listCustomerIpsRequest['object_id'];
7692
+ offset = listCustomerIpsRequest['offset'];
7693
+ projectId = listCustomerIpsRequest['project_id'];
7694
+ actionType = listCustomerIpsRequest['action_type'];
7695
+ affectedOs = listCustomerIpsRequest['affected_os'];
7696
+ attackType = listCustomerIpsRequest['attack_type'];
7697
+ ipsName = listCustomerIpsRequest['ips_name'];
7698
+ protocol = listCustomerIpsRequest['protocol'];
7699
+ severity = listCustomerIpsRequest['severity'];
7700
+ software = listCustomerIpsRequest['software'];
7701
+ enterpriseProjectId = listCustomerIpsRequest['enterprise_project_id'];
7702
+ }
7703
+ }
7704
+ if (fwInstanceId === null || fwInstanceId === undefined) {
7705
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling listCustomerIps.');
7706
+ }
7707
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
7708
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
7709
+ }
7710
+ if (limit === null || limit === undefined) {
7711
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listCustomerIps.');
7712
+ }
7713
+ if (limit !== null && limit !== undefined) {
7714
+ localVarQueryParameter['limit'] = limit;
7715
+ }
7716
+ if (objectId === null || objectId === undefined) {
7717
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listCustomerIps.');
7718
+ }
7719
+ if (objectId !== null && objectId !== undefined) {
7720
+ localVarQueryParameter['object_id'] = objectId;
7721
+ }
7722
+ if (offset === null || offset === undefined) {
7723
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listCustomerIps.');
7724
+ }
7725
+ if (offset !== null && offset !== undefined) {
7726
+ localVarQueryParameter['offset'] = offset;
7727
+ }
7728
+ if (projectId === null || projectId === undefined) {
7729
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listCustomerIps.');
7730
+ }
7731
+ if (actionType !== null && actionType !== undefined) {
7732
+ localVarQueryParameter['action_type'] = actionType;
7733
+ }
7734
+ if (affectedOs !== null && affectedOs !== undefined) {
7735
+ localVarQueryParameter['affected_os'] = affectedOs;
7736
+ }
7737
+ if (attackType !== null && attackType !== undefined) {
7738
+ localVarQueryParameter['attack_type'] = attackType;
7739
+ }
7740
+ if (ipsName !== null && ipsName !== undefined) {
7741
+ localVarQueryParameter['ips_name'] = ipsName;
7742
+ }
7743
+ if (protocol !== null && protocol !== undefined) {
7744
+ localVarQueryParameter['protocol'] = protocol;
7745
+ }
7746
+ if (severity !== null && severity !== undefined) {
7747
+ localVarQueryParameter['severity'] = severity;
7748
+ }
7749
+ if (software !== null && software !== undefined) {
7750
+ localVarQueryParameter['software'] = software;
7751
+ }
7752
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7753
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7754
+ }
7755
+ options.queryParams = localVarQueryParameter;
7756
+ options.pathParams = { 'project_id': projectId, };
7757
+ options.headers = localVarHeaderParameter;
7758
+ return options;
7759
+ },
6205
7760
  /**
6206
7761
  * 查询防护模式
6207
7762
  *
@@ -6256,6 +7811,186 @@ const ParamCreater = function () {
6256
7811
  options.headers = localVarHeaderParameter;
6257
7812
  return options;
6258
7813
  },
7814
+ /**
7815
+ * 查询频率ips规则信息
7816
+ *
7817
+ * Please refer to HUAWEI cloud API Explorer for details.
7818
+ */
7819
+ listIpsRules(listIpsRulesRequest) {
7820
+ const options = {
7821
+ method: "GET",
7822
+ url: "/v1/{project_id}/advanced-ips-rules",
7823
+ contentType: "application/json",
7824
+ queryParams: {},
7825
+ pathParams: {},
7826
+ headers: {}
7827
+ };
7828
+ const localVarHeaderParameter = {};
7829
+ const localVarQueryParameter = {};
7830
+ let objectId;
7831
+ let projectId;
7832
+ let enterpriseProjectId;
7833
+ if (listIpsRulesRequest !== null && listIpsRulesRequest !== undefined) {
7834
+ if (listIpsRulesRequest instanceof ListIpsRulesRequest_1.ListIpsRulesRequest) {
7835
+ objectId = listIpsRulesRequest.objectId;
7836
+ projectId = listIpsRulesRequest.projectId;
7837
+ enterpriseProjectId = listIpsRulesRequest.enterpriseProjectId;
7838
+ }
7839
+ else {
7840
+ objectId = listIpsRulesRequest['object_id'];
7841
+ projectId = listIpsRulesRequest['project_id'];
7842
+ enterpriseProjectId = listIpsRulesRequest['enterprise_project_id'];
7843
+ }
7844
+ }
7845
+ if (objectId === null || objectId === undefined) {
7846
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listIpsRules.');
7847
+ }
7848
+ if (objectId !== null && objectId !== undefined) {
7849
+ localVarQueryParameter['object_id'] = objectId;
7850
+ }
7851
+ if (projectId === null || projectId === undefined) {
7852
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listIpsRules.');
7853
+ }
7854
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7855
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7856
+ }
7857
+ options.queryParams = localVarQueryParameter;
7858
+ options.pathParams = { 'project_id': projectId, };
7859
+ options.headers = localVarHeaderParameter;
7860
+ return options;
7861
+ },
7862
+ /**
7863
+ * 获取ips规则列表
7864
+ *
7865
+ * Please refer to HUAWEI cloud API Explorer for details.
7866
+ */
7867
+ listIpsRules1(listIpsRules1Request) {
7868
+ const options = {
7869
+ method: "GET",
7870
+ url: "/v1/{project_id}/ips-rule",
7871
+ contentType: "application/json",
7872
+ queryParams: {},
7873
+ pathParams: {},
7874
+ headers: {}
7875
+ };
7876
+ const localVarHeaderParameter = {};
7877
+ const localVarQueryParameter = {};
7878
+ let limit;
7879
+ let objectId;
7880
+ let offset;
7881
+ let projectId;
7882
+ let affectedApplicationLike;
7883
+ let createTime;
7884
+ let fwInstanceId;
7885
+ let ipsCveLike;
7886
+ let ipsGroup;
7887
+ let ipsId;
7888
+ let ipsLevel;
7889
+ let ipsNameLike;
7890
+ let ipsRulesTypeLike;
7891
+ let ipsStatus;
7892
+ let isUpdatedIpsRuleQueried;
7893
+ let enterpriseProjectId;
7894
+ if (listIpsRules1Request !== null && listIpsRules1Request !== undefined) {
7895
+ if (listIpsRules1Request instanceof ListIpsRules1Request_1.ListIpsRules1Request) {
7896
+ limit = listIpsRules1Request.limit;
7897
+ objectId = listIpsRules1Request.objectId;
7898
+ offset = listIpsRules1Request.offset;
7899
+ projectId = listIpsRules1Request.projectId;
7900
+ affectedApplicationLike = listIpsRules1Request.affectedApplicationLike;
7901
+ createTime = listIpsRules1Request.createTime;
7902
+ fwInstanceId = listIpsRules1Request.fwInstanceId;
7903
+ ipsCveLike = listIpsRules1Request.ipsCveLike;
7904
+ ipsGroup = listIpsRules1Request.ipsGroup;
7905
+ ipsId = listIpsRules1Request.ipsId;
7906
+ ipsLevel = listIpsRules1Request.ipsLevel;
7907
+ ipsNameLike = listIpsRules1Request.ipsNameLike;
7908
+ ipsRulesTypeLike = listIpsRules1Request.ipsRulesTypeLike;
7909
+ ipsStatus = listIpsRules1Request.ipsStatus;
7910
+ isUpdatedIpsRuleQueried = listIpsRules1Request.isUpdatedIpsRuleQueried;
7911
+ enterpriseProjectId = listIpsRules1Request.enterpriseProjectId;
7912
+ }
7913
+ else {
7914
+ limit = listIpsRules1Request['limit'];
7915
+ objectId = listIpsRules1Request['object_id'];
7916
+ offset = listIpsRules1Request['offset'];
7917
+ projectId = listIpsRules1Request['project_id'];
7918
+ affectedApplicationLike = listIpsRules1Request['affected_application_like'];
7919
+ createTime = listIpsRules1Request['create_time'];
7920
+ fwInstanceId = listIpsRules1Request['fw_instance_id'];
7921
+ ipsCveLike = listIpsRules1Request['ips_cve_like'];
7922
+ ipsGroup = listIpsRules1Request['ips_group'];
7923
+ ipsId = listIpsRules1Request['ips_id'];
7924
+ ipsLevel = listIpsRules1Request['ips_level'];
7925
+ ipsNameLike = listIpsRules1Request['ips_name_like'];
7926
+ ipsRulesTypeLike = listIpsRules1Request['ips_rules_type_like'];
7927
+ ipsStatus = listIpsRules1Request['ips_status'];
7928
+ isUpdatedIpsRuleQueried = listIpsRules1Request['is_updated_ips_rule_queried'];
7929
+ enterpriseProjectId = listIpsRules1Request['enterprise_project_id'];
7930
+ }
7931
+ }
7932
+ if (limit === null || limit === undefined) {
7933
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listIpsRules1.');
7934
+ }
7935
+ if (limit !== null && limit !== undefined) {
7936
+ localVarQueryParameter['limit'] = limit;
7937
+ }
7938
+ if (objectId === null || objectId === undefined) {
7939
+ throw new RequiredError('objectId', 'Required parameter objectId was null or undefined when calling listIpsRules1.');
7940
+ }
7941
+ if (objectId !== null && objectId !== undefined) {
7942
+ localVarQueryParameter['object_id'] = objectId;
7943
+ }
7944
+ if (offset === null || offset === undefined) {
7945
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listIpsRules1.');
7946
+ }
7947
+ if (offset !== null && offset !== undefined) {
7948
+ localVarQueryParameter['offset'] = offset;
7949
+ }
7950
+ if (projectId === null || projectId === undefined) {
7951
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listIpsRules1.');
7952
+ }
7953
+ if (affectedApplicationLike !== null && affectedApplicationLike !== undefined) {
7954
+ localVarQueryParameter['affected_application_like'] = affectedApplicationLike;
7955
+ }
7956
+ if (createTime !== null && createTime !== undefined) {
7957
+ localVarQueryParameter['create_time'] = createTime;
7958
+ }
7959
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
7960
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
7961
+ }
7962
+ if (ipsCveLike !== null && ipsCveLike !== undefined) {
7963
+ localVarQueryParameter['ips_cve_like'] = ipsCveLike;
7964
+ }
7965
+ if (ipsGroup !== null && ipsGroup !== undefined) {
7966
+ localVarQueryParameter['ips_group'] = ipsGroup;
7967
+ }
7968
+ if (ipsId !== null && ipsId !== undefined) {
7969
+ localVarQueryParameter['ips_id'] = ipsId;
7970
+ }
7971
+ if (ipsLevel !== null && ipsLevel !== undefined) {
7972
+ localVarQueryParameter['ips_level'] = ipsLevel;
7973
+ }
7974
+ if (ipsNameLike !== null && ipsNameLike !== undefined) {
7975
+ localVarQueryParameter['ips_name_like'] = ipsNameLike;
7976
+ }
7977
+ if (ipsRulesTypeLike !== null && ipsRulesTypeLike !== undefined) {
7978
+ localVarQueryParameter['ips_rules_type_like'] = ipsRulesTypeLike;
7979
+ }
7980
+ if (ipsStatus !== null && ipsStatus !== undefined) {
7981
+ localVarQueryParameter['ips_status'] = ipsStatus;
7982
+ }
7983
+ if (isUpdatedIpsRuleQueried !== null && isUpdatedIpsRuleQueried !== undefined) {
7984
+ localVarQueryParameter['is_updated_ips_rule_queried'] = isUpdatedIpsRuleQueried;
7985
+ }
7986
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7987
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7988
+ }
7989
+ options.queryParams = localVarQueryParameter;
7990
+ options.pathParams = { 'project_id': projectId, };
7991
+ options.headers = localVarHeaderParameter;
7992
+ return options;
7993
+ },
6259
7994
  /**
6260
7995
  * 查询IPS特性开关状态
6261
7996
  *
@@ -6310,6 +8045,108 @@ const ParamCreater = function () {
6310
8045
  options.headers = localVarHeaderParameter;
6311
8046
  return options;
6312
8047
  },
8048
+ /**
8049
+ * 获取ips规则细节
8050
+ *
8051
+ * Please refer to HUAWEI cloud API Explorer for details.
8052
+ */
8053
+ showIpsUpdateTime(showIpsUpdateTimeRequest) {
8054
+ const options = {
8055
+ method: "GET",
8056
+ url: "/v1/{project_id}/ips-rule/detail",
8057
+ contentType: "application/json",
8058
+ queryParams: {},
8059
+ pathParams: {},
8060
+ headers: {}
8061
+ };
8062
+ const localVarHeaderParameter = {};
8063
+ const localVarQueryParameter = {};
8064
+ let fwInstanceId;
8065
+ let projectId;
8066
+ let enterpriseProjectId;
8067
+ if (showIpsUpdateTimeRequest !== null && showIpsUpdateTimeRequest !== undefined) {
8068
+ if (showIpsUpdateTimeRequest instanceof ShowIpsUpdateTimeRequest_1.ShowIpsUpdateTimeRequest) {
8069
+ fwInstanceId = showIpsUpdateTimeRequest.fwInstanceId;
8070
+ projectId = showIpsUpdateTimeRequest.projectId;
8071
+ enterpriseProjectId = showIpsUpdateTimeRequest.enterpriseProjectId;
8072
+ }
8073
+ else {
8074
+ fwInstanceId = showIpsUpdateTimeRequest['fw_instance_id'];
8075
+ projectId = showIpsUpdateTimeRequest['project_id'];
8076
+ enterpriseProjectId = showIpsUpdateTimeRequest['enterprise_project_id'];
8077
+ }
8078
+ }
8079
+ if (fwInstanceId === null || fwInstanceId === undefined) {
8080
+ throw new RequiredError('fwInstanceId', 'Required parameter fwInstanceId was null or undefined when calling showIpsUpdateTime.');
8081
+ }
8082
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
8083
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
8084
+ }
8085
+ if (projectId === null || projectId === undefined) {
8086
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showIpsUpdateTime.');
8087
+ }
8088
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
8089
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
8090
+ }
8091
+ options.queryParams = localVarQueryParameter;
8092
+ options.pathParams = { 'project_id': projectId, };
8093
+ options.headers = localVarHeaderParameter;
8094
+ return options;
8095
+ },
8096
+ /**
8097
+ * 创建频率ips规则
8098
+ *
8099
+ * Please refer to HUAWEI cloud API Explorer for details.
8100
+ */
8101
+ updateAdvancedIpsRule(updateAdvancedIpsRuleRequest) {
8102
+ const options = {
8103
+ method: "POST",
8104
+ url: "/v1/{project_id}/advanced-ips-rule",
8105
+ contentType: "application/json",
8106
+ queryParams: {},
8107
+ pathParams: {},
8108
+ headers: {},
8109
+ data: {}
8110
+ };
8111
+ const localVarHeaderParameter = {};
8112
+ const localVarQueryParameter = {};
8113
+ let body;
8114
+ let projectId;
8115
+ let fwInstanceId;
8116
+ let enterpriseProjectId;
8117
+ if (updateAdvancedIpsRuleRequest !== null && updateAdvancedIpsRuleRequest !== undefined) {
8118
+ if (updateAdvancedIpsRuleRequest instanceof UpdateAdvancedIpsRuleRequest_1.UpdateAdvancedIpsRuleRequest) {
8119
+ projectId = updateAdvancedIpsRuleRequest.projectId;
8120
+ body = updateAdvancedIpsRuleRequest.body;
8121
+ fwInstanceId = updateAdvancedIpsRuleRequest.fwInstanceId;
8122
+ enterpriseProjectId = updateAdvancedIpsRuleRequest.enterpriseProjectId;
8123
+ }
8124
+ else {
8125
+ projectId = updateAdvancedIpsRuleRequest['project_id'];
8126
+ body = updateAdvancedIpsRuleRequest['body'];
8127
+ fwInstanceId = updateAdvancedIpsRuleRequest['fw_instance_id'];
8128
+ enterpriseProjectId = updateAdvancedIpsRuleRequest['enterprise_project_id'];
8129
+ }
8130
+ }
8131
+ if (projectId === null || projectId === undefined) {
8132
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAdvancedIpsRule.');
8133
+ }
8134
+ if (body === null || body === undefined) {
8135
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
8136
+ }
8137
+ if (fwInstanceId !== null && fwInstanceId !== undefined) {
8138
+ localVarQueryParameter['fw_instance_id'] = fwInstanceId;
8139
+ }
8140
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
8141
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
8142
+ }
8143
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8144
+ options.data = body !== undefined ? body : {};
8145
+ options.queryParams = localVarQueryParameter;
8146
+ options.pathParams = { 'project_id': projectId, };
8147
+ options.headers = localVarHeaderParameter;
8148
+ return options;
8149
+ },
6313
8150
  };
6314
8151
  };
6315
8152
  exports.ParamCreater = ParamCreater;