@huaweicloud/huaweicloud-sdk-waf 3.1.176 → 3.1.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +773 -121
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +1562 -157
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/model/AnticrawlerRule.d.ts +10 -2
  7. package/v1/model/AnticrawlerRule.d.ts.map +1 -1
  8. package/v1/model/AnticrawlerRule.js +10 -1
  9. package/v1/model/AnticrawlerRule.js.map +1 -1
  10. package/v1/model/AsyncJobReqBody.d.ts +42 -0
  11. package/v1/model/AsyncJobReqBody.d.ts.map +1 -0
  12. package/v1/model/AsyncJobReqBody.js +89 -0
  13. package/v1/model/AsyncJobReqBody.js.map +1 -0
  14. package/v1/model/BatchDeleteCompositeHostsRequest.d.ts +15 -0
  15. package/v1/model/BatchDeleteCompositeHostsRequest.d.ts.map +1 -0
  16. package/v1/model/BatchDeleteCompositeHostsRequest.js +34 -0
  17. package/v1/model/BatchDeleteCompositeHostsRequest.js.map +1 -0
  18. package/v1/model/BatchDeleteCompositeHostsRequestBody.d.ts +12 -0
  19. package/v1/model/BatchDeleteCompositeHostsRequestBody.d.ts.map +1 -0
  20. package/v1/model/BatchDeleteCompositeHostsRequestBody.js +29 -0
  21. package/v1/model/BatchDeleteCompositeHostsRequestBody.js.map +1 -0
  22. package/v1/model/BatchDeleteCompositeHostsResponse.d.ts +9 -0
  23. package/v1/model/BatchDeleteCompositeHostsResponse.d.ts.map +1 -0
  24. package/v1/model/BatchDeleteCompositeHostsResponse.js +21 -0
  25. package/v1/model/BatchDeleteCompositeHostsResponse.js.map +1 -0
  26. package/v1/model/BatchDeleteRulesRequest.d.ts +15 -0
  27. package/v1/model/BatchDeleteRulesRequest.d.ts.map +1 -0
  28. package/v1/model/BatchDeleteRulesRequest.js +35 -0
  29. package/v1/model/BatchDeleteRulesRequest.js.map +1 -0
  30. package/v1/model/BatchDeleteRulesResponse.d.ts +10 -0
  31. package/v1/model/BatchDeleteRulesResponse.d.ts.map +1 -0
  32. package/v1/model/BatchDeleteRulesResponse.js +21 -0
  33. package/v1/model/BatchDeleteRulesResponse.js.map +1 -0
  34. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.d.ts +15 -0
  35. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.d.ts.map +1 -0
  36. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.js +34 -0
  37. package/v1/model/BatchUpdateAntiTamperRulesRequestBody.js.map +1 -0
  38. package/v1/model/BatchUpdateAntileakageRuleRequestBody.d.ts +28 -0
  39. package/v1/model/BatchUpdateAntileakageRuleRequestBody.d.ts.map +1 -0
  40. package/v1/model/BatchUpdateAntileakageRuleRequestBody.js +51 -0
  41. package/v1/model/BatchUpdateAntileakageRuleRequestBody.js.map +1 -0
  42. package/v1/model/BatchUpdateAntileakageRulesRequest.d.ts +11 -0
  43. package/v1/model/BatchUpdateAntileakageRulesRequest.d.ts.map +1 -0
  44. package/v1/model/BatchUpdateAntileakageRulesRequest.js +24 -0
  45. package/v1/model/BatchUpdateAntileakageRulesRequest.js.map +1 -0
  46. package/v1/model/BatchUpdateAntileakageRulesResponse.d.ts +10 -0
  47. package/v1/model/BatchUpdateAntileakageRulesResponse.d.ts.map +1 -0
  48. package/v1/model/BatchUpdateAntileakageRulesResponse.js +21 -0
  49. package/v1/model/BatchUpdateAntileakageRulesResponse.js.map +1 -0
  50. package/v1/model/BatchUpdateAntitamperRulesRequest.d.ts +11 -0
  51. package/v1/model/BatchUpdateAntitamperRulesRequest.d.ts.map +1 -0
  52. package/v1/model/BatchUpdateAntitamperRulesRequest.js +24 -0
  53. package/v1/model/BatchUpdateAntitamperRulesRequest.js.map +1 -0
  54. package/v1/model/BatchUpdateAntitamperRulesResponse.d.ts +10 -0
  55. package/v1/model/BatchUpdateAntitamperRulesResponse.d.ts.map +1 -0
  56. package/v1/model/BatchUpdateAntitamperRulesResponse.js +21 -0
  57. package/v1/model/BatchUpdateAntitamperRulesResponse.js.map +1 -0
  58. package/v1/model/BatchUpdateCcRulesRequest.d.ts +11 -0
  59. package/v1/model/BatchUpdateCcRulesRequest.d.ts.map +1 -0
  60. package/v1/model/BatchUpdateCcRulesRequest.js +24 -0
  61. package/v1/model/BatchUpdateCcRulesRequest.js.map +1 -0
  62. package/v1/model/BatchUpdateCcRulesRequestBody.d.ts +73 -0
  63. package/v1/model/BatchUpdateCcRulesRequestBody.d.ts.map +1 -0
  64. package/v1/model/BatchUpdateCcRulesRequestBody.js +153 -0
  65. package/v1/model/BatchUpdateCcRulesRequestBody.js.map +1 -0
  66. package/v1/model/BatchUpdateCcRulesResponse.d.ts +10 -0
  67. package/v1/model/BatchUpdateCcRulesResponse.d.ts.map +1 -0
  68. package/v1/model/BatchUpdateCcRulesResponse.js +21 -0
  69. package/v1/model/BatchUpdateCcRulesResponse.js.map +1 -0
  70. package/v1/model/BatchUpdateCustomRuleRequestBody.d.ts +39 -0
  71. package/v1/model/BatchUpdateCustomRuleRequestBody.d.ts.map +1 -0
  72. package/v1/model/BatchUpdateCustomRuleRequestBody.js +77 -0
  73. package/v1/model/BatchUpdateCustomRuleRequestBody.js.map +1 -0
  74. package/v1/model/BatchUpdateCustomRulesRequest.d.ts +11 -0
  75. package/v1/model/BatchUpdateCustomRulesRequest.d.ts.map +1 -0
  76. package/v1/model/BatchUpdateCustomRulesRequest.js +24 -0
  77. package/v1/model/BatchUpdateCustomRulesRequest.js.map +1 -0
  78. package/v1/model/BatchUpdateCustomRulesResponse.d.ts +10 -0
  79. package/v1/model/BatchUpdateCustomRulesResponse.d.ts.map +1 -0
  80. package/v1/model/BatchUpdateCustomRulesResponse.js +21 -0
  81. package/v1/model/BatchUpdateCustomRulesResponse.js.map +1 -0
  82. package/v1/model/BatchUpdateGeoipRulesRequest.d.ts +11 -0
  83. package/v1/model/BatchUpdateGeoipRulesRequest.d.ts.map +1 -0
  84. package/v1/model/BatchUpdateGeoipRulesRequest.js +24 -0
  85. package/v1/model/BatchUpdateGeoipRulesRequest.js.map +1 -0
  86. package/v1/model/BatchUpdateGeoipRulesRequestBody.d.ts +17 -0
  87. package/v1/model/BatchUpdateGeoipRulesRequestBody.d.ts.map +1 -0
  88. package/v1/model/BatchUpdateGeoipRulesRequestBody.js +35 -0
  89. package/v1/model/BatchUpdateGeoipRulesRequestBody.js.map +1 -0
  90. package/v1/model/BatchUpdateGeoipRulesResponse.d.ts +10 -0
  91. package/v1/model/BatchUpdateGeoipRulesResponse.d.ts.map +1 -0
  92. package/v1/model/BatchUpdateGeoipRulesResponse.js +21 -0
  93. package/v1/model/BatchUpdateGeoipRulesResponse.js.map +1 -0
  94. package/v1/model/BatchUpdateIgnoreRuleRequestBody.d.ts +23 -0
  95. package/v1/model/BatchUpdateIgnoreRuleRequestBody.d.ts.map +1 -0
  96. package/v1/model/BatchUpdateIgnoreRuleRequestBody.js +47 -0
  97. package/v1/model/BatchUpdateIgnoreRuleRequestBody.js.map +1 -0
  98. package/v1/model/BatchUpdateIgnoreRulesRequest.d.ts +11 -0
  99. package/v1/model/BatchUpdateIgnoreRulesRequest.d.ts.map +1 -0
  100. package/v1/model/BatchUpdateIgnoreRulesRequest.js +24 -0
  101. package/v1/model/BatchUpdateIgnoreRulesRequest.js.map +1 -0
  102. package/v1/model/BatchUpdateIgnoreRulesResponse.d.ts +10 -0
  103. package/v1/model/BatchUpdateIgnoreRulesResponse.d.ts.map +1 -0
  104. package/v1/model/BatchUpdateIgnoreRulesResponse.js +21 -0
  105. package/v1/model/BatchUpdateIgnoreRulesResponse.js.map +1 -0
  106. package/v1/model/BatchUpdateIpReputationRuleRequestBody.d.ts +22 -0
  107. package/v1/model/BatchUpdateIpReputationRuleRequestBody.d.ts.map +1 -0
  108. package/v1/model/BatchUpdateIpReputationRuleRequestBody.js +47 -0
  109. package/v1/model/BatchUpdateIpReputationRuleRequestBody.js.map +1 -0
  110. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.d.ts +6 -0
  111. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.d.ts.map +1 -0
  112. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.js +13 -0
  113. package/v1/model/BatchUpdateIpReputationRuleRequestBodyAction.js.map +1 -0
  114. package/v1/model/BatchUpdateIpReputationRulesRequest.d.ts +11 -0
  115. package/v1/model/BatchUpdateIpReputationRulesRequest.d.ts.map +1 -0
  116. package/v1/model/BatchUpdateIpReputationRulesRequest.js +24 -0
  117. package/v1/model/BatchUpdateIpReputationRulesRequest.js.map +1 -0
  118. package/v1/model/BatchUpdateIpReputationRulesResponse.d.ts +10 -0
  119. package/v1/model/BatchUpdateIpReputationRulesResponse.d.ts.map +1 -0
  120. package/v1/model/BatchUpdateIpReputationRulesResponse.js +21 -0
  121. package/v1/model/BatchUpdateIpReputationRulesResponse.js.map +1 -0
  122. package/v1/model/BatchUpdatePrivacyRuleRequestBody.d.ts +27 -0
  123. package/v1/model/BatchUpdatePrivacyRuleRequestBody.d.ts.map +1 -0
  124. package/v1/model/BatchUpdatePrivacyRuleRequestBody.js +49 -0
  125. package/v1/model/BatchUpdatePrivacyRuleRequestBody.js.map +1 -0
  126. package/v1/model/BatchUpdatePrivacyRulesRequest.d.ts +11 -0
  127. package/v1/model/BatchUpdatePrivacyRulesRequest.d.ts.map +1 -0
  128. package/v1/model/BatchUpdatePrivacyRulesRequest.js +24 -0
  129. package/v1/model/BatchUpdatePrivacyRulesRequest.js.map +1 -0
  130. package/v1/model/BatchUpdatePrivacyRulesResponse.d.ts +10 -0
  131. package/v1/model/BatchUpdatePrivacyRulesResponse.d.ts.map +1 -0
  132. package/v1/model/BatchUpdatePrivacyRulesResponse.js +21 -0
  133. package/v1/model/BatchUpdatePrivacyRulesResponse.js.map +1 -0
  134. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.d.ts +29 -0
  135. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.d.ts.map +1 -0
  136. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.js +65 -0
  137. package/v1/model/BatchUpdateWhiteBlackIpRuleRequestBody.js.map +1 -0
  138. package/v1/model/BatchUpdateWhiteblackipRulesRequest.d.ts +11 -0
  139. package/v1/model/BatchUpdateWhiteblackipRulesRequest.d.ts.map +1 -0
  140. package/v1/model/BatchUpdateWhiteblackipRulesRequest.js +24 -0
  141. package/v1/model/BatchUpdateWhiteblackipRulesRequest.js.map +1 -0
  142. package/v1/model/BatchUpdateWhiteblackipRulesResponse.d.ts +10 -0
  143. package/v1/model/BatchUpdateWhiteblackipRulesResponse.d.ts.map +1 -0
  144. package/v1/model/BatchUpdateWhiteblackipRulesResponse.js +21 -0
  145. package/v1/model/BatchUpdateWhiteblackipRulesResponse.js.map +1 -0
  146. package/v1/model/CloudWafHostItem.d.ts +11 -3
  147. package/v1/model/CloudWafHostItem.d.ts.map +1 -1
  148. package/v1/model/CloudWafHostItem.js +10 -1
  149. package/v1/model/CloudWafHostItem.js.map +1 -1
  150. package/v1/model/CompositeHostResponse.d.ts +11 -3
  151. package/v1/model/CompositeHostResponse.d.ts.map +1 -1
  152. package/v1/model/CompositeHostResponse.js +10 -1
  153. package/v1/model/CompositeHostResponse.js.map +1 -1
  154. package/v1/model/ConfirmDnsDomainRequest.d.ts +12 -0
  155. package/v1/model/ConfirmDnsDomainRequest.d.ts.map +1 -0
  156. package/v1/model/ConfirmDnsDomainRequest.js +30 -0
  157. package/v1/model/ConfirmDnsDomainRequest.js.map +1 -0
  158. package/v1/model/ConfirmDnsDomainResponse.d.ts +12 -0
  159. package/v1/model/ConfirmDnsDomainResponse.d.ts.map +1 -0
  160. package/v1/model/ConfirmDnsDomainResponse.js +25 -0
  161. package/v1/model/ConfirmDnsDomainResponse.js.map +1 -0
  162. package/v1/model/CopyPolicyByIdRequest.d.ts +20 -0
  163. package/v1/model/CopyPolicyByIdRequest.d.ts.map +1 -0
  164. package/v1/model/CopyPolicyByIdRequest.js +52 -0
  165. package/v1/model/CopyPolicyByIdRequest.js.map +1 -0
  166. package/v1/model/CopyPolicyByIdResponse.d.ts +51 -0
  167. package/v1/model/CopyPolicyByIdResponse.d.ts.map +1 -0
  168. package/v1/model/CopyPolicyByIdResponse.js +83 -0
  169. package/v1/model/CopyPolicyByIdResponse.js.map +1 -0
  170. package/v1/model/CreateAnticrawlerRuleRequestbody.d.ts +10 -2
  171. package/v1/model/CreateAnticrawlerRuleRequestbody.d.ts.map +1 -1
  172. package/v1/model/CreateAnticrawlerRuleRequestbody.js +10 -1
  173. package/v1/model/CreateAnticrawlerRuleRequestbody.js.map +1 -1
  174. package/v1/model/CreateAnticrawlerRuleResponse.d.ts +10 -2
  175. package/v1/model/CreateAnticrawlerRuleResponse.d.ts.map +1 -1
  176. package/v1/model/CreateAnticrawlerRuleResponse.js +10 -1
  177. package/v1/model/CreateAnticrawlerRuleResponse.js.map +1 -1
  178. package/v1/model/CreateEventExportJobRequest.d.ts +11 -0
  179. package/v1/model/CreateEventExportJobRequest.d.ts.map +1 -0
  180. package/v1/model/CreateEventExportJobRequest.js +24 -0
  181. package/v1/model/CreateEventExportJobRequest.js.map +1 -0
  182. package/v1/model/CreateEventExportJobResponse.d.ts +13 -0
  183. package/v1/model/CreateEventExportJobResponse.d.ts.map +1 -0
  184. package/v1/model/CreateEventExportJobResponse.js +29 -0
  185. package/v1/model/CreateEventExportJobResponse.js.map +1 -0
  186. package/v1/model/CreateHostRequestBody.d.ts +11 -3
  187. package/v1/model/CreateHostRequestBody.d.ts.map +1 -1
  188. package/v1/model/CreateHostRequestBody.js +10 -1
  189. package/v1/model/CreateHostRequestBody.js.map +1 -1
  190. package/v1/model/CreateSecurityReportSubscriptionRequest.d.ts +11 -0
  191. package/v1/model/CreateSecurityReportSubscriptionRequest.d.ts.map +1 -0
  192. package/v1/model/CreateSecurityReportSubscriptionRequest.js +24 -0
  193. package/v1/model/CreateSecurityReportSubscriptionRequest.js.map +1 -0
  194. package/v1/model/CreateSecurityReportSubscriptionRequestBody.d.ts +38 -0
  195. package/v1/model/CreateSecurityReportSubscriptionRequestBody.d.ts.map +1 -0
  196. package/v1/model/CreateSecurityReportSubscriptionRequestBody.js +89 -0
  197. package/v1/model/CreateSecurityReportSubscriptionRequestBody.js.map +1 -0
  198. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.d.ts +52 -0
  199. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.d.ts.map +1 -0
  200. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.js +129 -0
  201. package/v1/model/CreateSecurityReportSubscriptionRequestBodyReportContentSubscription.js.map +1 -0
  202. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.d.ts +12 -0
  203. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.d.ts.map +1 -0
  204. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.js +29 -0
  205. package/v1/model/CreateSecurityReportSubscriptionRequestBodyStatPeriod.js.map +1 -0
  206. package/v1/model/CreateSecurityReportSubscriptionResponse.d.ts +47 -0
  207. package/v1/model/CreateSecurityReportSubscriptionResponse.d.ts.map +1 -0
  208. package/v1/model/CreateSecurityReportSubscriptionResponse.js +111 -0
  209. package/v1/model/CreateSecurityReportSubscriptionResponse.js.map +1 -0
  210. package/v1/model/CreateValueListResponse.d.ts +18 -2
  211. package/v1/model/CreateValueListResponse.d.ts.map +1 -1
  212. package/v1/model/CreateValueListResponse.js +18 -1
  213. package/v1/model/CreateValueListResponse.js.map +1 -1
  214. package/v1/model/CustomPage.d.ts +12 -3
  215. package/v1/model/CustomPage.d.ts.map +1 -1
  216. package/v1/model/CustomPage.js +11 -1
  217. package/v1/model/CustomPage.js.map +1 -1
  218. package/v1/model/DeleteAlertNoticeConfigRequest.d.ts +16 -0
  219. package/v1/model/DeleteAlertNoticeConfigRequest.d.ts.map +1 -0
  220. package/v1/model/DeleteAlertNoticeConfigRequest.js +42 -0
  221. package/v1/model/DeleteAlertNoticeConfigRequest.js.map +1 -0
  222. package/v1/model/DeleteAlertNoticeConfigResponse.d.ts +47 -0
  223. package/v1/model/DeleteAlertNoticeConfigResponse.d.ts.map +1 -0
  224. package/v1/model/DeleteAlertNoticeConfigResponse.js +109 -0
  225. package/v1/model/DeleteAlertNoticeConfigResponse.js.map +1 -0
  226. package/v1/model/DeleteAnticrawlerRuleResponse.d.ts +10 -2
  227. package/v1/model/DeleteAnticrawlerRuleResponse.d.ts.map +1 -1
  228. package/v1/model/DeleteAnticrawlerRuleResponse.js +10 -1
  229. package/v1/model/DeleteAnticrawlerRuleResponse.js.map +1 -1
  230. package/v1/model/DeleteHostResponse.d.ts +11 -3
  231. package/v1/model/DeleteHostResponse.d.ts.map +1 -1
  232. package/v1/model/DeleteHostResponse.js +10 -1
  233. package/v1/model/DeleteHostResponse.js.map +1 -1
  234. package/v1/model/DeleteInstanceResponse.d.ts +40 -8
  235. package/v1/model/DeleteInstanceResponse.d.ts.map +1 -1
  236. package/v1/model/DeleteInstanceResponse.js +36 -1
  237. package/v1/model/DeleteInstanceResponse.js.map +1 -1
  238. package/v1/model/DeleteIpReputationRuleRequest.d.ts +20 -0
  239. package/v1/model/DeleteIpReputationRuleRequest.d.ts.map +1 -0
  240. package/v1/model/DeleteIpReputationRuleRequest.js +52 -0
  241. package/v1/model/DeleteIpReputationRuleRequest.js.map +1 -0
  242. package/v1/model/DeleteIpReputationRuleResponse.d.ts +24 -0
  243. package/v1/model/DeleteIpReputationRuleResponse.d.ts.map +1 -0
  244. package/v1/model/DeleteIpReputationRuleResponse.js +47 -0
  245. package/v1/model/DeleteIpReputationRuleResponse.js.map +1 -0
  246. package/v1/model/DeleteIpReputationRuleResponseBodyAction.d.ts +6 -0
  247. package/v1/model/DeleteIpReputationRuleResponseBodyAction.d.ts.map +1 -0
  248. package/v1/model/DeleteIpReputationRuleResponseBodyAction.js +13 -0
  249. package/v1/model/DeleteIpReputationRuleResponseBodyAction.js.map +1 -0
  250. package/v1/model/DeletePremiumHostResponse.d.ts +23 -6
  251. package/v1/model/DeletePremiumHostResponse.d.ts.map +1 -1
  252. package/v1/model/DeletePremiumHostResponse.js +20 -1
  253. package/v1/model/DeletePremiumHostResponse.js.map +1 -1
  254. package/v1/model/DeleteSecurityReportSubscriptionRequest.d.ts +12 -0
  255. package/v1/model/DeleteSecurityReportSubscriptionRequest.d.ts.map +1 -0
  256. package/v1/model/DeleteSecurityReportSubscriptionRequest.js +31 -0
  257. package/v1/model/DeleteSecurityReportSubscriptionRequest.js.map +1 -0
  258. package/v1/model/DeleteSecurityReportSubscriptionResponse.d.ts +47 -0
  259. package/v1/model/DeleteSecurityReportSubscriptionResponse.d.ts.map +1 -0
  260. package/v1/model/DeleteSecurityReportSubscriptionResponse.js +111 -0
  261. package/v1/model/DeleteSecurityReportSubscriptionResponse.js.map +1 -0
  262. package/v1/model/DeleteValueListResponse.d.ts +18 -2
  263. package/v1/model/DeleteValueListResponse.d.ts.map +1 -1
  264. package/v1/model/DeleteValueListResponse.js +18 -1
  265. package/v1/model/DeleteValueListResponse.js.map +1 -1
  266. package/v1/model/DnsDomain.d.ts +15 -0
  267. package/v1/model/DnsDomain.d.ts.map +1 -0
  268. package/v1/model/DnsDomain.js +31 -0
  269. package/v1/model/DnsDomain.js.map +1 -0
  270. package/v1/model/ListAnticrawlerRulesRequest.d.ts +10 -2
  271. package/v1/model/ListAnticrawlerRulesRequest.d.ts.map +1 -1
  272. package/v1/model/ListAnticrawlerRulesRequest.js +10 -1
  273. package/v1/model/ListAnticrawlerRulesRequest.js.map +1 -1
  274. package/v1/model/ListCcRulesRequest.d.ts +16 -3
  275. package/v1/model/ListCcRulesRequest.d.ts.map +1 -1
  276. package/v1/model/ListCcRulesRequest.js +15 -1
  277. package/v1/model/ListCcRulesRequest.js.map +1 -1
  278. package/v1/model/ListCertificatesRequest.d.ts +12 -3
  279. package/v1/model/ListCertificatesRequest.d.ts.map +1 -1
  280. package/v1/model/ListCertificatesRequest.js +11 -1
  281. package/v1/model/ListCertificatesRequest.js.map +1 -1
  282. package/v1/model/ListCompositeHostsRequest.d.ts +12 -3
  283. package/v1/model/ListCompositeHostsRequest.d.ts.map +1 -1
  284. package/v1/model/ListCompositeHostsRequest.js +11 -1
  285. package/v1/model/ListCompositeHostsRequest.js.map +1 -1
  286. package/v1/model/ListInstance.d.ts +40 -8
  287. package/v1/model/ListInstance.d.ts.map +1 -1
  288. package/v1/model/ListInstance.js +36 -1
  289. package/v1/model/ListInstance.js.map +1 -1
  290. package/v1/model/ListPremiumHostRequest.d.ts +12 -3
  291. package/v1/model/ListPremiumHostRequest.d.ts.map +1 -1
  292. package/v1/model/ListPremiumHostRequest.js +11 -1
  293. package/v1/model/ListPremiumHostRequest.js.map +1 -1
  294. package/v1/model/ListSourceIpTop5Request.d.ts +12 -0
  295. package/v1/model/ListSourceIpTop5Request.d.ts.map +1 -0
  296. package/v1/model/ListSourceIpTop5Request.js +30 -0
  297. package/v1/model/ListSourceIpTop5Request.js.map +1 -0
  298. package/v1/model/ListSourceIpTop5Response.d.ts +10 -0
  299. package/v1/model/ListSourceIpTop5Response.d.ts.map +1 -0
  300. package/v1/model/ListSourceIpTop5Response.js +19 -0
  301. package/v1/model/ListSourceIpTop5Response.js.map +1 -0
  302. package/v1/model/ListThreatsRequest.d.ts +12 -0
  303. package/v1/model/ListThreatsRequest.d.ts.map +1 -0
  304. package/v1/model/ListThreatsRequest.js +29 -0
  305. package/v1/model/ListThreatsRequest.js.map +1 -0
  306. package/v1/model/ListThreatsResponse.d.ts +29 -0
  307. package/v1/model/ListThreatsResponse.d.ts.map +1 -0
  308. package/v1/model/ListThreatsResponse.js +59 -0
  309. package/v1/model/ListThreatsResponse.js.map +1 -0
  310. package/v1/model/ListUrlRequest.d.ts +20 -0
  311. package/v1/model/ListUrlRequest.d.ts.map +1 -0
  312. package/v1/model/ListUrlRequest.js +45 -0
  313. package/v1/model/ListUrlRequest.js.map +1 -0
  314. package/v1/model/ListUrlResponse.d.ts +7 -0
  315. package/v1/model/ListUrlResponse.d.ts.map +1 -0
  316. package/v1/model/ListUrlResponse.js +15 -0
  317. package/v1/model/ListUrlResponse.js.map +1 -0
  318. package/v1/model/PolicyRuleIdRequestBody.d.ts +9 -0
  319. package/v1/model/PolicyRuleIdRequestBody.d.ts.map +1 -0
  320. package/v1/model/PolicyRuleIdRequestBody.js +19 -0
  321. package/v1/model/PolicyRuleIdRequestBody.js.map +1 -0
  322. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.d.ts +12 -0
  323. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.d.ts.map +1 -0
  324. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.js +29 -0
  325. package/v1/model/PolicyRuleIdRequestBodyPolicyRuleIds.js.map +1 -0
  326. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.d.ts +12 -0
  327. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.d.ts.map +1 -0
  328. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.js +29 -0
  329. package/v1/model/PolicyRuleIdResponseBodyPolicyRuleIds.js.map +1 -0
  330. package/v1/model/RenameInstanceResponse.d.ts +40 -8
  331. package/v1/model/RenameInstanceResponse.d.ts.map +1 -1
  332. package/v1/model/RenameInstanceResponse.js +36 -1
  333. package/v1/model/RenameInstanceResponse.js.map +1 -1
  334. package/v1/model/Server.d.ts +8 -0
  335. package/v1/model/Server.d.ts.map +1 -0
  336. package/v1/model/Server.js +17 -0
  337. package/v1/model/Server.js.map +1 -0
  338. package/v1/model/ShowAnticrawlerRuleResponse.d.ts +10 -2
  339. package/v1/model/ShowAnticrawlerRuleResponse.d.ts.map +1 -1
  340. package/v1/model/ShowAnticrawlerRuleResponse.js +10 -1
  341. package/v1/model/ShowAnticrawlerRuleResponse.js.map +1 -1
  342. package/v1/model/ShowCompositeHostResponse.d.ts +11 -3
  343. package/v1/model/ShowCompositeHostResponse.d.ts.map +1 -1
  344. package/v1/model/ShowCompositeHostResponse.js +10 -1
  345. package/v1/model/ShowCompositeHostResponse.js.map +1 -1
  346. package/v1/model/ShowInstanceResponse.d.ts +40 -8
  347. package/v1/model/ShowInstanceResponse.d.ts.map +1 -1
  348. package/v1/model/ShowInstanceResponse.js +36 -1
  349. package/v1/model/ShowInstanceResponse.js.map +1 -1
  350. package/v1/model/ShowPremiumHostResponse.d.ts +23 -6
  351. package/v1/model/ShowPremiumHostResponse.d.ts.map +1 -1
  352. package/v1/model/ShowPremiumHostResponse.js +20 -1
  353. package/v1/model/ShowPremiumHostResponse.js.map +1 -1
  354. package/v1/model/ShowValueListResponse.d.ts +18 -2
  355. package/v1/model/ShowValueListResponse.d.ts.map +1 -1
  356. package/v1/model/ShowValueListResponse.js +18 -1
  357. package/v1/model/ShowValueListResponse.js.map +1 -1
  358. package/v1/model/SourceIpTopListInfoItems.d.ts +8 -0
  359. package/v1/model/SourceIpTopListInfoItems.d.ts.map +1 -0
  360. package/v1/model/SourceIpTopListInfoItems.js +17 -0
  361. package/v1/model/SourceIpTopListInfoItems.js.map +1 -0
  362. package/v1/model/StatisticsTimelineItem.d.ts +14 -2
  363. package/v1/model/StatisticsTimelineItem.d.ts.map +1 -1
  364. package/v1/model/StatisticsTimelineItem.js +14 -1
  365. package/v1/model/StatisticsTimelineItem.js.map +1 -1
  366. package/v1/model/UpdateAnticrawlerRuleRequestBody.d.ts +10 -2
  367. package/v1/model/UpdateAnticrawlerRuleRequestBody.d.ts.map +1 -1
  368. package/v1/model/UpdateAnticrawlerRuleRequestBody.js +10 -1
  369. package/v1/model/UpdateAnticrawlerRuleRequestBody.js.map +1 -1
  370. package/v1/model/UpdateAnticrawlerRuleResponse.d.ts +10 -2
  371. package/v1/model/UpdateAnticrawlerRuleResponse.d.ts.map +1 -1
  372. package/v1/model/UpdateAnticrawlerRuleResponse.js +10 -1
  373. package/v1/model/UpdateAnticrawlerRuleResponse.js.map +1 -1
  374. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.d.ts +11 -3
  375. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.d.ts.map +1 -1
  376. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.js +10 -1
  377. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.js.map +1 -1
  378. package/v1/model/UpdateAnticrawlerRuleTypeResponse.d.ts +11 -3
  379. package/v1/model/UpdateAnticrawlerRuleTypeResponse.d.ts.map +1 -1
  380. package/v1/model/UpdateAnticrawlerRuleTypeResponse.js +10 -1
  381. package/v1/model/UpdateAnticrawlerRuleTypeResponse.js.map +1 -1
  382. package/v1/model/UpdateHostRequestBody.d.ts +11 -3
  383. package/v1/model/UpdateHostRequestBody.d.ts.map +1 -1
  384. package/v1/model/UpdateHostRequestBody.js +10 -1
  385. package/v1/model/UpdateHostRequestBody.js.map +1 -1
  386. package/v1/model/UpdatePremiumHostRequestBody.d.ts +23 -6
  387. package/v1/model/UpdatePremiumHostRequestBody.d.ts.map +1 -1
  388. package/v1/model/UpdatePremiumHostRequestBody.js +20 -1
  389. package/v1/model/UpdatePremiumHostRequestBody.js.map +1 -1
  390. package/v1/model/UpdatePremiumHostResponse.d.ts +23 -6
  391. package/v1/model/UpdatePremiumHostResponse.d.ts.map +1 -1
  392. package/v1/model/UpdatePremiumHostResponse.js +20 -1
  393. package/v1/model/UpdatePremiumHostResponse.js.map +1 -1
  394. package/v1/model/UpdatePremiumInstanceProgressRequest.d.ts +15 -0
  395. package/v1/model/UpdatePremiumInstanceProgressRequest.d.ts.map +1 -0
  396. package/v1/model/UpdatePremiumInstanceProgressRequest.js +35 -0
  397. package/v1/model/UpdatePremiumInstanceProgressRequest.js.map +1 -0
  398. package/v1/model/UpdatePremiumInstanceProgressResponse.d.ts +9 -0
  399. package/v1/model/UpdatePremiumInstanceProgressResponse.d.ts.map +1 -0
  400. package/v1/model/UpdatePremiumInstanceProgressResponse.js +19 -0
  401. package/v1/model/UpdatePremiumInstanceProgressResponse.js.map +1 -0
  402. package/v1/model/UpdatePremiumInstanceResponse.d.ts +50 -10
  403. package/v1/model/UpdatePremiumInstanceResponse.d.ts.map +1 -1
  404. package/v1/model/UpdatePremiumInstanceResponse.js +45 -1
  405. package/v1/model/UpdatePremiumInstanceResponse.js.map +1 -1
  406. package/v1/model/UpdatePrivacyRuleResponse.d.ts +10 -2
  407. package/v1/model/UpdatePrivacyRuleResponse.d.ts.map +1 -1
  408. package/v1/model/UpdatePrivacyRuleResponse.js +10 -1
  409. package/v1/model/UpdatePrivacyRuleResponse.js.map +1 -1
  410. package/v1/model/UpdateSecurityReportSubscriptionRequest.d.ts +15 -0
  411. package/v1/model/UpdateSecurityReportSubscriptionRequest.d.ts.map +1 -0
  412. package/v1/model/UpdateSecurityReportSubscriptionRequest.js +35 -0
  413. package/v1/model/UpdateSecurityReportSubscriptionRequest.js.map +1 -0
  414. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.d.ts +46 -0
  415. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.d.ts.map +1 -0
  416. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.js +114 -0
  417. package/v1/model/UpdateSecurityReportSubscriptionRequestBody.js.map +1 -0
  418. package/v1/model/UpdateSecurityReportSubscriptionResponse.d.ts +47 -0
  419. package/v1/model/UpdateSecurityReportSubscriptionResponse.d.ts.map +1 -0
  420. package/v1/model/UpdateSecurityReportSubscriptionResponse.js +111 -0
  421. package/v1/model/UpdateSecurityReportSubscriptionResponse.js.map +1 -0
  422. package/v1/model/UpdateValueListResponse.d.ts +18 -2
  423. package/v1/model/UpdateValueListResponse.d.ts.map +1 -1
  424. package/v1/model/UpdateValueListResponse.js +18 -1
  425. package/v1/model/UpdateValueListResponse.js.map +1 -1
  426. package/v1/model/WafProductInfo.d.ts +11 -3
  427. package/v1/model/WafProductInfo.d.ts.map +1 -1
  428. package/v1/model/WafProductInfo.js +10 -1
  429. package/v1/model/WafProductInfo.js.map +1 -1
  430. package/v1/public-api.d.ts +69 -0
  431. package/v1/public-api.d.ts.map +1 -1
  432. package/v1/public-api.js +69 -0
  433. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -13,11 +13,23 @@ const BatchCreateIpReputationRuleRequest_1 = require("./model/BatchCreateIpReput
13
13
  const BatchCreatePrivacyRuleRequest_1 = require("./model/BatchCreatePrivacyRuleRequest");
14
14
  const BatchCreateWhiteblackipRuleRequest_1 = require("./model/BatchCreateWhiteblackipRuleRequest");
15
15
  const BatchDeleteAlertNoticeConfigRequest_1 = require("./model/BatchDeleteAlertNoticeConfigRequest");
16
+ const BatchDeleteCompositeHostsRequest_1 = require("./model/BatchDeleteCompositeHostsRequest");
16
17
  const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
18
+ const BatchDeleteRulesRequest_1 = require("./model/BatchDeleteRulesRequest");
19
+ const BatchUpdateAntileakageRulesRequest_1 = require("./model/BatchUpdateAntileakageRulesRequest");
20
+ const BatchUpdateAntitamperRulesRequest_1 = require("./model/BatchUpdateAntitamperRulesRequest");
21
+ const BatchUpdateCcRulesRequest_1 = require("./model/BatchUpdateCcRulesRequest");
22
+ const BatchUpdateCustomRulesRequest_1 = require("./model/BatchUpdateCustomRulesRequest");
23
+ const BatchUpdateGeoipRulesRequest_1 = require("./model/BatchUpdateGeoipRulesRequest");
24
+ const BatchUpdateIgnoreRulesRequest_1 = require("./model/BatchUpdateIgnoreRulesRequest");
25
+ const BatchUpdateIpReputationRulesRequest_1 = require("./model/BatchUpdateIpReputationRulesRequest");
26
+ const BatchUpdatePrivacyRulesRequest_1 = require("./model/BatchUpdatePrivacyRulesRequest");
27
+ const BatchUpdateWhiteblackipRulesRequest_1 = require("./model/BatchUpdateWhiteblackipRulesRequest");
17
28
  const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
18
29
  const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
19
30
  const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
20
31
  const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
32
+ const ConfirmDnsDomainRequest_1 = require("./model/ConfirmDnsDomainRequest");
21
33
  const ConfirmIpReputationRuleRequest_1 = require("./model/ConfirmIpReputationRuleRequest");
22
34
  const ConfirmPolicyAntileakageMapRequest_1 = require("./model/ConfirmPolicyAntileakageMapRequest");
23
35
  const ConfirmPolicyIpReputationMapRequest_1 = require("./model/ConfirmPolicyIpReputationMapRequest");
@@ -25,6 +37,7 @@ const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesR
25
37
  const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
26
38
  const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
27
39
  const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
40
+ const CopyPolicyByIdRequest_1 = require("./model/CopyPolicyByIdRequest");
28
41
  const CreateAgencyRequest_1 = require("./model/CreateAgencyRequest");
29
42
  const CreateAlertNoticeConfigRequest_1 = require("./model/CreateAlertNoticeConfigRequest");
30
43
  const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
@@ -34,6 +47,7 @@ const CreateCcRuleRequest_1 = require("./model/CreateCcRuleRequest");
34
47
  const CreateCertificateRequest_1 = require("./model/CreateCertificateRequest");
35
48
  const CreateCloudWafPostPaidResourceRequest_1 = require("./model/CreateCloudWafPostPaidResourceRequest");
36
49
  const CreateCustomRuleRequest_1 = require("./model/CreateCustomRuleRequest");
50
+ const CreateEventExportJobRequest_1 = require("./model/CreateEventExportJobRequest");
37
51
  const CreateGeoipRuleRequest_1 = require("./model/CreateGeoipRuleRequest");
38
52
  const CreateHostRequest_1 = require("./model/CreateHostRequest");
39
53
  const CreateIgnoreRuleRequest_1 = require("./model/CreateIgnoreRuleRequest");
@@ -46,9 +60,11 @@ const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafReq
46
60
  const CreatePrivacyRuleRequest_1 = require("./model/CreatePrivacyRuleRequest");
47
61
  const CreatePunishmentRuleRequest_1 = require("./model/CreatePunishmentRuleRequest");
48
62
  const CreateQuickAccessDomainRequest_1 = require("./model/CreateQuickAccessDomainRequest");
63
+ const CreateSecurityReportSubscriptionRequest_1 = require("./model/CreateSecurityReportSubscriptionRequest");
49
64
  const CreateValueListRequest_1 = require("./model/CreateValueListRequest");
50
65
  const CreateWhiteblackipRuleRequest_1 = require("./model/CreateWhiteblackipRuleRequest");
51
66
  const DeleteAgencyRequest_1 = require("./model/DeleteAgencyRequest");
67
+ const DeleteAlertNoticeConfigRequest_1 = require("./model/DeleteAlertNoticeConfigRequest");
52
68
  const DeleteAnticrawlerRuleRequest_1 = require("./model/DeleteAnticrawlerRuleRequest");
53
69
  const DeleteAntileakageRuleRequest_1 = require("./model/DeleteAntileakageRuleRequest");
54
70
  const DeleteAntitamperRuleRequest_1 = require("./model/DeleteAntitamperRuleRequest");
@@ -61,10 +77,12 @@ const DeleteHostRequest_1 = require("./model/DeleteHostRequest");
61
77
  const DeleteIgnoreRuleRequest_1 = require("./model/DeleteIgnoreRuleRequest");
62
78
  const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
63
79
  const DeleteIpGroupRequest_1 = require("./model/DeleteIpGroupRequest");
80
+ const DeleteIpReputationRuleRequest_1 = require("./model/DeleteIpReputationRuleRequest");
64
81
  const DeletePolicyRequest_1 = require("./model/DeletePolicyRequest");
65
82
  const DeletePremiumHostRequest_1 = require("./model/DeletePremiumHostRequest");
66
83
  const DeletePrivacyRuleRequest_1 = require("./model/DeletePrivacyRuleRequest");
67
84
  const DeletePunishmentRuleRequest_1 = require("./model/DeletePunishmentRuleRequest");
85
+ const DeleteSecurityReportSubscriptionRequest_1 = require("./model/DeleteSecurityReportSubscriptionRequest");
68
86
  const DeleteValueListRequest_1 = require("./model/DeleteValueListRequest");
69
87
  const DeleteWhiteBlackIpRuleRequest_1 = require("./model/DeleteWhiteBlackIpRuleRequest");
70
88
  const ListAntiTamperPolicyRulesRequest_1 = require("./model/ListAntiTamperPolicyRulesRequest");
@@ -107,11 +125,14 @@ const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimel
107
125
  const ListSecurityReportHistoryPeriodsRequest_1 = require("./model/ListSecurityReportHistoryPeriodsRequest");
108
126
  const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
109
127
  const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
128
+ const ListSourceIpTop5Request_1 = require("./model/ListSourceIpTop5Request");
110
129
  const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
130
+ const ListThreatsRequest_1 = require("./model/ListThreatsRequest");
111
131
  const ListTopAbnormalRequest_1 = require("./model/ListTopAbnormalRequest");
112
132
  const ListTopDomainsRequest_1 = require("./model/ListTopDomainsRequest");
113
133
  const ListTopIpRequest_1 = require("./model/ListTopIpRequest");
114
134
  const ListTopUrlRequest_1 = require("./model/ListTopUrlRequest");
135
+ const ListUrlRequest_1 = require("./model/ListUrlRequest");
115
136
  const ListValueListRequest_1 = require("./model/ListValueListRequest");
116
137
  const ListWebBasicProtectionRulesRequest_1 = require("./model/ListWebBasicProtectionRulesRequest");
117
138
  const ListWhiteblackipPolicyRulesRequest_1 = require("./model/ListWhiteblackipPolicyRulesRequest");
@@ -170,9 +191,11 @@ const UpdatePolicyRuleStatusRequest_1 = require("./model/UpdatePolicyRuleStatusR
170
191
  const UpdatePremiumHostAccessStatusRequest_1 = require("./model/UpdatePremiumHostAccessStatusRequest");
171
192
  const UpdatePremiumHostProtectStatusRequest_1 = require("./model/UpdatePremiumHostProtectStatusRequest");
172
193
  const UpdatePremiumHostRequest_1 = require("./model/UpdatePremiumHostRequest");
194
+ const UpdatePremiumInstanceProgressRequest_1 = require("./model/UpdatePremiumInstanceProgressRequest");
173
195
  const UpdatePremiumInstanceRequest_1 = require("./model/UpdatePremiumInstanceRequest");
174
196
  const UpdatePrivacyRuleRequest_1 = require("./model/UpdatePrivacyRuleRequest");
175
197
  const UpdatePunishmentRuleRequest_1 = require("./model/UpdatePunishmentRuleRequest");
198
+ const UpdateSecurityReportSubscriptionRequest_1 = require("./model/UpdateSecurityReportSubscriptionRequest");
176
199
  const UpdateValueListRequest_1 = require("./model/UpdateValueListRequest");
177
200
  const UpdateWhiteblackipRuleRequest_1 = require("./model/UpdateWhiteblackipRuleRequest");
178
201
  class WafClient {
@@ -394,13 +417,31 @@ class WafClient {
394
417
  options['responseHeaders'] = [''];
395
418
  return this.hcClient.sendRequest(options);
396
419
  }
420
+ /**
421
+ * 批量删除租户域名
422
+ *
423
+ * Please refer to HUAWEI cloud API Explorer for details.
424
+ *
425
+ * @summary 批量删除租户域名
426
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
427
+ * @param {BatchDeleteCompositeHostsRequestBody} batchDeleteCompositeHostsRequestBody 批量删除域名body
428
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest) {
433
+ const options = (0, exports.ParamCreater)().batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest);
434
+ // @ts-ignore
435
+ options['responseHeaders'] = [''];
436
+ return this.hcClient.sendRequest(options);
437
+ }
397
438
  /**
398
439
  * 批量删除防护策略
399
440
  *
400
441
  * Please refer to HUAWEI cloud API Explorer for details.
401
442
  *
402
443
  * @summary 批量删除防护策略
403
- * @param {string} contentType 内容类型
444
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
404
445
  * @param {BatchDeletePoliciesRequestBody} batchDeletePoliciesRequestBody 批量删除防护策略body
405
446
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id
406
447
  * @param {*} [options] Override http request option.
@@ -412,11 +453,182 @@ class WafClient {
412
453
  options['responseHeaders'] = [''];
413
454
  return this.hcClient.sendRequest(options);
414
455
  }
456
+ /**
457
+ * 批量删除规则
458
+ *
459
+ * Please refer to HUAWEI cloud API Explorer for details.
460
+ *
461
+ * @summary 批量删除规则
462
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
463
+ * @param {string} ruleType **参数解释:** 需要删除的规则类型,目前支持cc,custom,whiteblackip,geoip,ip-reputation,antitamper,antileakage,ignore,privacy **约束限制:** 不涉及 **取值范围:** - cc - custom - whiteblackip - geoip - ip-reputation - antitamper - antileakage - ignore - privacy **默认取值:** 不涉及
464
+ * @param {PolicyRuleIdRequestBody} [batchDeleteRulesRequestBody] **参数解释:** 批量删除防护规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ batchDeleteRules(batchDeleteRulesRequest) {
469
+ const options = (0, exports.ParamCreater)().batchDeleteRules(batchDeleteRulesRequest);
470
+ // @ts-ignore
471
+ options['responseHeaders'] = [''];
472
+ return this.hcClient.sendRequest(options);
473
+ }
474
+ /**
475
+ * 批量修改防敏感信息泄露规则
476
+ *
477
+ * Please refer to HUAWEI cloud API Explorer for details.
478
+ *
479
+ * @summary 批量更新防敏感信息泄露规则
480
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
481
+ * @param {BatchUpdateAntileakageRuleRequestBody} [batchUpdateAntileakageRuleRequestBody] **参数解释:** 批量修改防敏感信息泄露规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest) {
486
+ const options = (0, exports.ParamCreater)().batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest);
487
+ // @ts-ignore
488
+ options['responseHeaders'] = [''];
489
+ return this.hcClient.sendRequest(options);
490
+ }
491
+ /**
492
+ * 批量修改地理位置访问控制规则
493
+ *
494
+ * Please refer to HUAWEI cloud API Explorer for details.
495
+ *
496
+ * @summary 批量更新网页防篡改规则
497
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
498
+ * @param {BatchUpdateAntiTamperRulesRequestBody} [batchUpdateAntiTamperRulesRequestBody] **参数解释:** 批量修改网页防篡改规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest) {
503
+ const options = (0, exports.ParamCreater)().batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest);
504
+ // @ts-ignore
505
+ options['responseHeaders'] = [''];
506
+ return this.hcClient.sendRequest(options);
507
+ }
508
+ /**
509
+ * 批量修改地理位置访问控制规则
510
+ *
511
+ * Please refer to HUAWEI cloud API Explorer for details.
512
+ *
513
+ * @summary 批量修改CC防护规则
514
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
515
+ * @param {BatchUpdateCcRulesRequestBody} [batchUpdateCcRulesRequestBody] **参数解释:** 批量修CC准防护问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ batchUpdateCcRules(batchUpdateCcRulesRequest) {
520
+ const options = (0, exports.ParamCreater)().batchUpdateCcRules(batchUpdateCcRulesRequest);
521
+ // @ts-ignore
522
+ options['responseHeaders'] = [''];
523
+ return this.hcClient.sendRequest(options);
524
+ }
525
+ /**
526
+ * 批量修改地理位置访问控制规则
527
+ *
528
+ * Please refer to HUAWEI cloud API Explorer for details.
529
+ *
530
+ * @summary 批量更新精准防护规则
531
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
532
+ * @param {BatchUpdateCustomRuleRequestBody} [batchUpdateCustomRuleResponseBody] **参数解释:** 批量修改精准防护控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ batchUpdateCustomRules(batchUpdateCustomRulesRequest) {
537
+ const options = (0, exports.ParamCreater)().batchUpdateCustomRules(batchUpdateCustomRulesRequest);
538
+ // @ts-ignore
539
+ options['responseHeaders'] = [''];
540
+ return this.hcClient.sendRequest(options);
541
+ }
542
+ /**
543
+ * 批量修改地理位置访问控制规则
544
+ *
545
+ * Please refer to HUAWEI cloud API Explorer for details.
546
+ *
547
+ * @summary 批量修改地理位置访问控制规则
548
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
549
+ * @param {BatchUpdateGeoipRulesRequestBody} [batchUpdateGeoipRulesRequestBody] **参数解释:** 批量修改地理位置访问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ batchUpdateGeoipRules(batchUpdateGeoipRulesRequest) {
554
+ const options = (0, exports.ParamCreater)().batchUpdateGeoipRules(batchUpdateGeoipRulesRequest);
555
+ // @ts-ignore
556
+ options['responseHeaders'] = [''];
557
+ return this.hcClient.sendRequest(options);
558
+ }
559
+ /**
560
+ * 批量修改全局白名单规则
561
+ *
562
+ * Please refer to HUAWEI cloud API Explorer for details.
563
+ *
564
+ * @summary 批量更新全局白名单规则
565
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
566
+ * @param {BatchUpdateIgnoreRuleRequestBody} [batchUpdateIgnoreRuleRequestBody] **参数解释:** 批量修改全局白名单规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest) {
571
+ const options = (0, exports.ParamCreater)().batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest);
572
+ // @ts-ignore
573
+ options['responseHeaders'] = [''];
574
+ return this.hcClient.sendRequest(options);
575
+ }
576
+ /**
577
+ * 批量修改地理位置访问控制规则
578
+ *
579
+ * Please refer to HUAWEI cloud API Explorer for details.
580
+ *
581
+ * @summary 批量更新威胁情报规则
582
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
583
+ * @param {BatchUpdateIpReputationRuleRequestBody} [batchUpdateIpReputationRuleRequestBody] **参数解释:** 批量修改威胁情报访问控制规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest) {
588
+ const options = (0, exports.ParamCreater)().batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest);
589
+ // @ts-ignore
590
+ options['responseHeaders'] = [''];
591
+ return this.hcClient.sendRequest(options);
592
+ }
593
+ /**
594
+ * 批量修改全局白名单规则
595
+ *
596
+ * Please refer to HUAWEI cloud API Explorer for details.
597
+ *
598
+ * @summary 批量更新隐私屏蔽规则
599
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
600
+ * @param {BatchUpdatePrivacyRuleRequestBody} [batchUpdatePrivacyRuleRequestBody] **参数解释:** 批量修改隐私屏蔽规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest) {
605
+ const options = (0, exports.ParamCreater)().batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest);
606
+ // @ts-ignore
607
+ options['responseHeaders'] = [''];
608
+ return this.hcClient.sendRequest(options);
609
+ }
610
+ /**
611
+ * 批量修改地理位置访问控制规则
612
+ *
613
+ * Please refer to HUAWEI cloud API Explorer for details.
614
+ *
615
+ * @summary 批量更新黑白名单设置规则
616
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
617
+ * @param {BatchUpdateWhiteBlackIpRuleRequestBody} [batchUpdateWhiteBlackIpRuleRequestBody] **参数解释:** 批量修改黑白名单设置规则body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest) {
622
+ const options = (0, exports.ParamCreater)().batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest);
623
+ // @ts-ignore
624
+ options['responseHeaders'] = [''];
625
+ return this.hcClient.sendRequest(options);
626
+ }
415
627
  /**
416
628
  * 变更包周期云模式waf规格。注:
417
- * - 1.变更某产品规格的前提是必须已购买该产品
418
- * - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
419
- * - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
629
+ * - 变更某产品规格的前提是必须已购买该产品
630
+ * - 云模式支持版本降配,扩展包支持减少数量,最少可以到0
631
+ * - 不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
420
632
  *
421
633
  * Please refer to HUAWEI cloud API Explorer for details.
422
634
  *
@@ -528,7 +740,7 @@ class WafClient {
528
740
  * @summary 查询威胁情报控制防护选项的详细信息
529
741
  * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
530
742
  * @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
531
- * @param {string} type **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
743
+ * @param {string} type **参数解释:** 防护选项的详细信息的类型,当前仅支持“idc”。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
532
744
  * @param {*} [options] Override http request option.
533
745
  * @throws {RequiredError}
534
746
  */
@@ -607,6 +819,25 @@ class WafClient {
607
819
  options['responseHeaders'] = [''];
608
820
  return this.hcClient.sendRequest(options);
609
821
  }
822
+ /**
823
+ * 根据Id复制防护策略
824
+ *
825
+ * Please refer to HUAWEI cloud API Explorer for details.
826
+ *
827
+ * @summary 根据Id复制防护策略
828
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
829
+ * @param {string} srcPolicyId **参数解释:** 源策略id,可以通过 查询 防护策略列表(ListPolicy)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
830
+ * @param {string} destPolicyName **参数解释:** 复制出的新策略名称,用于标识复制后的防护策略,需符合命名规范(如无特殊字符、长度限制等)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
831
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ copyPolicyById(copyPolicyByIdRequest) {
836
+ const options = (0, exports.ParamCreater)().copyPolicyById(copyPolicyByIdRequest);
837
+ // @ts-ignore
838
+ options['responseHeaders'] = [''];
839
+ return this.hcClient.sendRequest(options);
840
+ }
610
841
  /**
611
842
  * 创建独享引擎的代理
612
843
  *
@@ -668,7 +899,7 @@ class WafClient {
668
899
  * Please refer to HUAWEI cloud API Explorer for details.
669
900
  *
670
901
  * @summary 创建JS脚本反爬虫规则
671
- * @param {string} contentType 内容类型
902
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
672
903
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
673
904
  * @param {CreateAnticrawlerRuleRequestbody} createAnticrawlerRuleRequestBody 创建JS脚本反爬虫规则请求体
674
905
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -687,7 +918,7 @@ class WafClient {
687
918
  * Please refer to HUAWEI cloud API Explorer for details.
688
919
  *
689
920
  * @summary 创建防敏感信息泄露规则
690
- * @param {string} contentType 内容类型
921
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
691
922
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
692
923
  * @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄露规则请求参数
693
924
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -763,7 +994,7 @@ class WafClient {
763
994
  * Please refer to HUAWEI cloud API Explorer for details.
764
995
  *
765
996
  * @summary 创建精准防护规则
766
- * @param {string} contentType 内容类型
997
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
767
998
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
768
999
  * @param {CreateCustomRuleRequestBody} createCustomRuleRequestBody CreateCustomRuleRequestBody
769
1000
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -776,6 +1007,23 @@ class WafClient {
776
1007
  options['responseHeaders'] = [''];
777
1008
  return this.hcClient.sendRequest(options);
778
1009
  }
1010
+ /**
1011
+ * 下发自定义导出攻击事件的异步任务
1012
+ *
1013
+ * Please refer to HUAWEI cloud API Explorer for details.
1014
+ *
1015
+ * @summary 下发自定义导出攻击事件的异步任务
1016
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1017
+ * @param {AsyncJobReqBody} asyncJobReqBody **参数解释:** 下发自定义导出攻击事件的异步任务的请求体 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1018
+ * @param {*} [options] Override http request option.
1019
+ * @throws {RequiredError}
1020
+ */
1021
+ createEventExportJob(createEventExportJobRequest) {
1022
+ const options = (0, exports.ParamCreater)().createEventExportJob(createEventExportJobRequest);
1023
+ // @ts-ignore
1024
+ options['responseHeaders'] = [''];
1025
+ return this.hcClient.sendRequest(options);
1026
+ }
779
1027
  /**
780
1028
  * 创建地理位置控制规则
781
1029
  *
@@ -819,7 +1067,7 @@ class WafClient {
819
1067
  * Please refer to HUAWEI cloud API Explorer for details.
820
1068
  *
821
1069
  * @summary 创建全局白名单(原误报屏蔽)规则
822
- * @param {string} contentType 内容类型
1070
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
823
1071
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
824
1072
  * @param {CreateIgnoreRuleRequestBody} createIgnoreRuleRequestBody 创建误报屏蔽规则请求体
825
1073
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -838,7 +1086,7 @@ class WafClient {
838
1086
  * Please refer to HUAWEI cloud API Explorer for details.
839
1087
  *
840
1088
  * @summary 创建WAF独享引擎实例
841
- * @param {string} contentType 内容类型
1089
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
842
1090
  * @param {CreateInstanceRequestBody} createInstanceRequestBody 待创建的独享引擎信息
843
1091
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
844
1092
  * @param {*} [options] Override http request option.
@@ -856,7 +1104,7 @@ class WafClient {
856
1104
  * Please refer to HUAWEI cloud API Explorer for details.
857
1105
  *
858
1106
  * @summary 创建ip地址组
859
- * @param {string} contentType 内容类型
1107
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
860
1108
  * @param {CreateIpGroupRequestBody} createIpGroupRequestBody 创建ip地址组请求体
861
1109
  * @param {string} [enterpriseProjectId] 企业项目id
862
1110
  * @param {*} [options] Override http request option.
@@ -966,7 +1214,7 @@ class WafClient {
966
1214
  * Please refer to HUAWEI cloud API Explorer for details.
967
1215
  *
968
1216
  * @summary 创建攻击惩罚规则
969
- * @param {string} contentType 内容类型
1217
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
970
1218
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
971
1219
  * @param {CreatePunishmentRuleRequestBody} createPunishmentRuleRequestBody 创建攻击惩罚规则请求参数
972
1220
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -979,6 +1227,23 @@ class WafClient {
979
1227
  options['responseHeaders'] = [''];
980
1228
  return this.hcClient.sendRequest(options);
981
1229
  }
1230
+ /**
1231
+ * 创建安全报告订阅
1232
+ *
1233
+ * Please refer to HUAWEI cloud API Explorer for details.
1234
+ *
1235
+ * @summary 创建安全报告订阅
1236
+ * @param {string} contentType content-type
1237
+ * @param {CreateSecurityReportSubscriptionRequestBody} createSecurityReportSubscriptionRequest 创建安全报告订阅
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ createSecurityReportSubscription(createSecurityReportSubscriptionRequest) {
1242
+ const options = (0, exports.ParamCreater)().createSecurityReportSubscription(createSecurityReportSubscriptionRequest);
1243
+ // @ts-ignore
1244
+ options['responseHeaders'] = [''];
1245
+ return this.hcClient.sendRequest(options);
1246
+ }
982
1247
  /**
983
1248
  * 创建引用表,引用表能够被CC攻击防护规则和精准访问防护中的规则所引用。
984
1249
  *
@@ -1034,13 +1299,31 @@ class WafClient {
1034
1299
  options['responseHeaders'] = [''];
1035
1300
  return this.hcClient.sendRequest(options);
1036
1301
  }
1302
+ /**
1303
+ * 删除告警通知配置
1304
+ *
1305
+ * Please refer to HUAWEI cloud API Explorer for details.
1306
+ *
1307
+ * @summary 删除告警通知配置
1308
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1309
+ * @param {string} xLanguage **参数解释:** zh-cn/en-us **约束限制:** 不涉及 **取值范围:** - zh-cn - en-us **默认取值:** 不涉及
1310
+ * @param {string} alertId **参数解释:** 告警通知id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest) {
1315
+ const options = (0, exports.ParamCreater)().deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest);
1316
+ // @ts-ignore
1317
+ options['responseHeaders'] = [''];
1318
+ return this.hcClient.sendRequest(options);
1319
+ }
1037
1320
  /**
1038
1321
  * 删除JS脚本反爬虫防护规则
1039
1322
  *
1040
1323
  * Please refer to HUAWEI cloud API Explorer for details.
1041
1324
  *
1042
1325
  * @summary 删除JS脚本反爬虫防护规则
1043
- * @param {string} contentType 内容类型
1326
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1044
1327
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1045
1328
  * @param {string} ruleId 规则id
1046
1329
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1059,7 +1342,7 @@ class WafClient {
1059
1342
  * Please refer to HUAWEI cloud API Explorer for details.
1060
1343
  *
1061
1344
  * @summary 删除防敏感信息泄露防护规则
1062
- * @param {string} contentType 内容类型
1345
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1063
1346
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1064
1347
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
1065
1348
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1152,7 +1435,7 @@ class WafClient {
1152
1435
  * Please refer to HUAWEI cloud API Explorer for details.
1153
1436
  *
1154
1437
  * @summary 删除精准防护规则
1155
- * @param {string} contentType 内容类型
1438
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1156
1439
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1157
1440
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
1158
1441
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1208,7 +1491,7 @@ class WafClient {
1208
1491
  * Please refer to HUAWEI cloud API Explorer for details.
1209
1492
  *
1210
1493
  * @summary 删除全局白名单(原误报屏蔽)防护规则
1211
- * @param {string} contentType 内容类型
1494
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1212
1495
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1213
1496
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
1214
1497
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1227,7 +1510,7 @@ class WafClient {
1227
1510
  * Please refer to HUAWEI cloud API Explorer for details.
1228
1511
  *
1229
1512
  * @summary 删除WAF独享引擎信息
1230
- * @param {string} contentType 内容类型
1513
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1231
1514
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
1232
1515
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1233
1516
  * @param {*} [options] Override http request option.
@@ -1257,6 +1540,25 @@ class WafClient {
1257
1540
  options['responseHeaders'] = [''];
1258
1541
  return this.hcClient.sendRequest(options);
1259
1542
  }
1543
+ /**
1544
+ * 删除IP情报防护规则
1545
+ *
1546
+ * Please refer to HUAWEI cloud API Explorer for details.
1547
+ *
1548
+ * @summary 删除机房IP情报防护规则
1549
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1550
+ * @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1551
+ * @param {string} ruleId **参数解释:** 机房IP情报访问控制规则id,通过\"查询威胁情报规则列表\"接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1552
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ deleteIpReputationRule(deleteIpReputationRuleRequest) {
1557
+ const options = (0, exports.ParamCreater)().deleteIpReputationRule(deleteIpReputationRuleRequest);
1558
+ // @ts-ignore
1559
+ options['responseHeaders'] = [''];
1560
+ return this.hcClient.sendRequest(options);
1561
+ }
1260
1562
  /**
1261
1563
  * 删除防护策略,若策略正在使用,则需要先接解除域名与策略的绑定关系才能删除策略。
1262
1564
  *
@@ -1319,7 +1621,7 @@ class WafClient {
1319
1621
  * Please refer to HUAWEI cloud API Explorer for details.
1320
1622
  *
1321
1623
  * @summary 删除攻击惩罚规则
1322
- * @param {string} contentType 内容类型
1624
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1323
1625
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1324
1626
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
1325
1627
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1332,6 +1634,23 @@ class WafClient {
1332
1634
  options['responseHeaders'] = [''];
1333
1635
  return this.hcClient.sendRequest(options);
1334
1636
  }
1637
+ /**
1638
+ * 删除安全报告订阅
1639
+ *
1640
+ * Please refer to HUAWEI cloud API Explorer for details.
1641
+ *
1642
+ * @summary 删除安全报告订阅
1643
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1644
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1645
+ * @param {*} [options] Override http request option.
1646
+ * @throws {RequiredError}
1647
+ */
1648
+ deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest) {
1649
+ const options = (0, exports.ParamCreater)().deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest);
1650
+ // @ts-ignore
1651
+ options['responseHeaders'] = [''];
1652
+ return this.hcClient.sendRequest(options);
1653
+ }
1335
1654
  /**
1336
1655
  * 删除引用表
1337
1656
  *
@@ -1395,12 +1714,12 @@ class WafClient {
1395
1714
  * Please refer to HUAWEI cloud API Explorer for details.
1396
1715
  *
1397
1716
  * @summary 查询JS脚本反爬虫规则列表
1398
- * @param {string} contentType 内容类型
1717
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1399
1718
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1400
1719
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1401
1720
  * @param {number} limit 查询返回记录的数量限制。
1402
1721
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1403
- * @param {string} [type] JS脚本反爬虫规则防护模式 - anticrawler_except_url: 防护所有路径模式,在该模式下,查询的JS脚本反爬虫规则为排除的防护路径规则 - anticrawler_specific_url: 防护指定路径模式,在该模式下,查询的JS脚本反爬虫规则为指定要防护的路径规则 - 默认值:anticrawler_except_url
1722
+ * @param {'anticrawler_except_url' | 'anticrawler_specific_url'} [type] **参数解释:** JS脚本反爬虫规则防护模式 **约束限制:** 不涉及 **取值范围:** - anticrawler_except_url: 防护所有路径模式,在该模式下,查询的JS脚本反爬虫规则为排除的防护路径规则 - anticrawler_specific_url: 防护指定路径模式,在该模式下,查询的JS脚本反爬虫规则为指定要防护的路径规则 **默认取值:** anticrawler_except_url
1404
1723
  * @param {*} [options] Override http request option.
1405
1724
  * @throws {RequiredError}
1406
1725
  */
@@ -1436,7 +1755,7 @@ class WafClient {
1436
1755
  * Please refer to HUAWEI cloud API Explorer for details.
1437
1756
  *
1438
1757
  * @summary 查询防敏感信息泄露规则列表
1439
- * @param {string} contentType 内容类型
1758
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1440
1759
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防敏感信息泄露规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1441
1760
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1442
1761
  * @param {number} limit 查询返回记录的数量限制。
@@ -1495,7 +1814,7 @@ class WafClient {
1495
1814
  * Please refer to HUAWEI cloud API Explorer for details.
1496
1815
  *
1497
1816
  * @summary 查询安全统计带宽数据
1498
- * @param {string} contentType 内容类型
1817
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1499
1818
  * @param {number} from 查询的带宽统计数据的起始时间(13位毫秒时间戳),需要和to同时使用
1500
1819
  * @param {number} to 查询的带宽统计数据的结束时间(13位毫秒时间戳),需要和from同时使用
1501
1820
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -1546,7 +1865,7 @@ class WafClient {
1546
1865
  * @param {string} [name] 规则名称
1547
1866
  * @param {number} [status] 规则的开启状态,1表示开启,0表示关闭
1548
1867
  * @param {string} [category] **参数解释:** 防护动作 **取值范围:** - block: 拦截,表示超过“限速频率”将直接拦截。 - log:仅记录,表示超过“限速频率”将只记录不拦截。 - captcha:表示超过“限速频率”后弹出验证码,进行人机验证,完成验证后,请求将不受访问限制。人机验证目前支持英文。 - dynamic_block:上一个限速周期内,请求频率超过“限速频率”将被拦截,那么在下一个限速周期内,请求频率超过“放行频率”将被拦截。 - advanced_captcha:高阶人机验证,表示超过“限速频率”后弹出验证码,进行人机验证。 - js_challenge:要求客户端完成一段脚本的执行或验证,从而验证请求来源的合法性。
1549
- * @param {string} [tagType] 限速模式: - ip:IP限速,根据IP区分单个Web访问者。 - cookie:用户限速,根据Cookie键值区分单个Web访问者。 - header:用户限速,根据Header区分单个Web访问者。 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。 - policy: 策略限速 - domain: 域名限速 - url: url限速
1868
+ * @param {'ip' | 'cookie' | 'header' | 'other' | 'policy' | 'domain' | 'url'} [tagType] **参数解释:** 限速模式标识,用于指定区分单个Web访问者的判断依据 **约束限制:** 不涉及 **取值范围:** - ip:IP限速,根据IP区分单个Web访问者 - cookie:用户限速,根据Cookie键值区分单个Web访问者 - header:用户限速,根据Header区分单个Web访问者 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者 - policy:策略限速 - domain:域名限速 - urlurl限速 **默认取值:** 不涉及
1550
1869
  * @param {*} [options] Override http request option.
1551
1870
  * @throws {RequiredError}
1552
1871
  */
@@ -1568,7 +1887,7 @@ class WafClient {
1568
1887
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
1569
1888
  * @param {string} [name] 证书名称
1570
1889
  * @param {boolean} [host] 是否获取证书关联的域名,默认为false -true:获取已关联域名的证书 -false:获取未关联域名的证书
1571
- * @param {number} [expStatus] 证书过期状态,0-未过期,1-已过期,2-即将过期(证书将在一个月内过期)
1890
+ * @param {0 | 1 | 2} [expStatus] **参数解释:** 证书过期状态 **约束限制:** 不涉及 **取值范围:** - 0:未过期 - 1:已过期 - 2:即将过期(证书将在一个月内过期) **默认取值:** 不涉及
1572
1891
  * @param {boolean} [queryScm] 查询结果的证书来源服务是否包括SCM服务,值为true或者false。
1573
1892
  * @param {*} [options] Override http request option.
1574
1893
  * @throws {RequiredError}
@@ -1591,7 +1910,7 @@ class WafClient {
1591
1910
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
1592
1911
  * @param {string} [hostname] 域名名称
1593
1912
  * @param {string} [policyname] 防护策略名称
1594
- * @param {number} [protectStatus] 域名防护状态: - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测
1913
+ * @param {-1 | 0 | 1} [protectStatus] **参数解释:** 域名防护状态标识,用于指定域名在WAF中的防护运行状态 **约束限制:** 不涉及 **取值范围:** - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测 **默认取值:** 不涉及
1595
1914
  * @param {string} [wafType] 域名所属WAF模式
1596
1915
  * @param {boolean} [isHttps] 域名是否使用HTTPS
1597
1916
  * @param {*} [options] Override http request option.
@@ -1629,7 +1948,7 @@ class WafClient {
1629
1948
  * Please refer to HUAWEI cloud API Explorer for details.
1630
1949
  *
1631
1950
  * @summary 查询精准防护规则列表
1632
- * @param {string} contentType 内容类型
1951
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1633
1952
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1634
1953
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1635
1954
  * @param {number} limit 查询返回记录的数量限制。
@@ -1652,10 +1971,10 @@ class WafClient {
1652
1971
  * @param {string} contentType 内容类型
1653
1972
  * @param {string} [xLanguage] 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
1654
1973
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1655
- * @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
1974
+ * @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] **参数解释:** 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准 **约束限制:** 不涉及 **取值范围:** - yesterday:昨天 - today:今天 - 3days:命令注入攻击 - 1week:XSS攻击 - 1month:恶意爬虫 **默认取值:** 不涉及
1656
1975
  * @param {number} [from] 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
1657
1976
  * @param {number} [to] 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
1658
- * @param {Array<string>} [attacks] **参数解释:** 攻击类型 **约束限制:** 不涉及 **取值范围:** - sqli:sql注入攻击 - lfi:本地文件包含 - cmdi:命令注入攻击 - xss:XSS攻击 - robot:恶意爬虫 - rfi:远程文件包含 - custom_custom:精准防护 - cc: cc攻击 - webshell:网站木马 - custom_whiteblackip:黑白名单拦截 - custom_geoip:地理访问控制拦截 - antitamper:防篡改 - anticrawler:反爬虫 - leakage:网站信息防泄漏 - illegal:非法请求 - antiscan_high_freq_scan:高频扫描封禁 - antiscan_dir_traversal:目录遍历防护 - vuln:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
1977
+ * @param {Array<string>} [attacks] **参数解释:** 攻击类型 **约束限制:** 不涉及 **取值范围:** - sqli:sql注入攻击 - lfi:本地文件包含 - cmdi:命令注入攻击 - xss:XSS攻击 - robot:恶意爬虫 - rfi:远程文件包含 - custom_custom:精准防护 - cc: cc攻击 - webshell:网站木马 - custom_whiteblackip:黑白名单拦截 - custom_geoip:地理访问控制拦截 - antitamper:防篡改 - anticrawler:反爬虫 - leakage:网站信息防泄漏 - illegal:非法请求 - antiscan_high_freq_scan:高频扫描封禁 - antiscan_dir_traversal:目录遍历防护 - vuln:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
1659
1978
  * @param {Array<string>} [hosts] 域名id,从获取防护网站列表(ListHost)接口获取域名id
1660
1979
  * @param {Array<string>} [sips] 源ip,Web访问者的IP地址(攻击者IP地址)
1661
1980
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
@@ -1675,7 +1994,7 @@ class WafClient {
1675
1994
  * Please refer to HUAWEI cloud API Explorer for details.
1676
1995
  *
1677
1996
  * @summary 查询事件日志下载的url
1678
- * @param {string} contentType 内容类型
1997
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1679
1998
  * @param {number} [page] 页数
1680
1999
  * @param {number} [pagesize] 单页显示数
1681
2000
  * @param {*} [options] Override http request option.
@@ -1792,7 +2111,7 @@ class WafClient {
1792
2111
  * Please refer to HUAWEI cloud API Explorer for details.
1793
2112
  *
1794
2113
  * @summary 查询全局白名单(原误报屏蔽)规则列表
1795
- * @param {string} contentType 内容类型
2114
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1796
2115
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的全局白名单规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1797
2116
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1798
2117
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
@@ -1812,7 +2131,7 @@ class WafClient {
1812
2131
  * Please refer to HUAWEI cloud API Explorer for details.
1813
2132
  *
1814
2133
  * @summary 查询WAF独享引擎列表
1815
- * @param {string} contentType 内容类型
2134
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1816
2135
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1817
2136
  * @param {number} [page] 分页查询参数,第page页,默认值为1
1818
2137
  * @param {number} [pagesize] 分页查询参数,每页pagesize条记录,默认值为10
@@ -1928,7 +2247,7 @@ class WafClient {
1928
2247
  * Please refer to HUAWEI cloud API Explorer for details.
1929
2248
  *
1930
2249
  * @summary 查询安全总览分类统计top信息
1931
- * @param {string} contentType 内容类型
2250
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1932
2251
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
1933
2252
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
1934
2253
  * @param {string} [xLanguage] 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
@@ -1977,7 +2296,7 @@ class WafClient {
1977
2296
  * @param {string} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
1978
2297
  * @param {string} [hostname] 域名
1979
2298
  * @param {string} [policyname] 策略名称
1980
- * @param {number} [protectStatus] 域名防护状态: - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测
2299
+ * @param {-1 | 0 | 1} [protectStatus] **参数解释:** 域名防护状态标识,用于指定域名在WAF中的防护运行状态 **约束限制:** 不涉及 **取值范围:** - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测 **默认取值:** 不涉及
1981
2300
  * @param {*} [options] Override http request option.
1982
2301
  * @throws {RequiredError}
1983
2302
  */
@@ -2052,7 +2371,7 @@ class WafClient {
2052
2371
  * Please refer to HUAWEI cloud API Explorer for details.
2053
2372
  *
2054
2373
  * @summary 查询攻击惩罚规则列表
2055
- * @param {string} contentType 内容类型
2374
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2056
2375
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的攻击惩罚规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2057
2376
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
2058
2377
  * @param {number} limit 查询返回记录的数量限制。
@@ -2072,7 +2391,7 @@ class WafClient {
2072
2391
  * Please refer to HUAWEI cloud API Explorer for details.
2073
2392
  *
2074
2393
  * @summary 查询安全统计qps次数
2075
- * @param {string} contentType 内容类型
2394
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2076
2395
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2077
2396
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2078
2397
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2094,7 +2413,7 @@ class WafClient {
2094
2413
  * Please refer to HUAWEI cloud API Explorer for details.
2095
2414
  *
2096
2415
  * @summary 查询安全总览中请求次数时间线统计数据
2097
- * @param {string} contentType 内容类型
2416
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2098
2417
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2099
2418
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2100
2419
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2194,13 +2513,31 @@ class WafClient {
2194
2513
  options['responseHeaders'] = [''];
2195
2514
  return this.hcClient.sendRequest(options);
2196
2515
  }
2516
+ /**
2517
+ * 查询攻击源ip
2518
+ *
2519
+ * Please refer to HUAWEI cloud API Explorer for details.
2520
+ *
2521
+ * @summary 查询攻击源ip
2522
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2523
+ * @param {string} recent **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2524
+ * @param {Array<string>} hosts 要查询事件域名id列表
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ listSourceIpTop5(listSourceIpTop5Request) {
2529
+ const options = (0, exports.ParamCreater)().listSourceIpTop5(listSourceIpTop5Request);
2530
+ // @ts-ignore
2531
+ options['responseHeaders'] = [''];
2532
+ return this.hcClient.sendRequest(options);
2533
+ }
2197
2534
  /**
2198
2535
  * 查询安全总览请求与攻击数量。
2199
2536
  *
2200
2537
  * Please refer to HUAWEI cloud API Explorer for details.
2201
2538
  *
2202
2539
  * @summary 查询安全总览请求与攻击数量
2203
- * @param {string} contentType 内容类型
2540
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2204
2541
  * @param {number} from 起始时间(13位时间戳),需要和to同时使用
2205
2542
  * @param {number} to 结束时间(13位时间戳),需要和from同时使用
2206
2543
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2215,13 +2552,31 @@ class WafClient {
2215
2552
  options['responseHeaders'] = [''];
2216
2553
  return this.hcClient.sendRequest(options);
2217
2554
  }
2555
+ /**
2556
+ * 查询攻击事件分布类型。
2557
+ *
2558
+ * Please refer to HUAWEI cloud API Explorer for details.
2559
+ *
2560
+ * @summary 查询攻击事件分布类型
2561
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2562
+ * @param {string} recent **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2563
+ * @param {Array<string>} [hosts] 要查询事件的域名列表
2564
+ * @param {*} [options] Override http request option.
2565
+ * @throws {RequiredError}
2566
+ */
2567
+ listThreats(listThreatsRequest) {
2568
+ const options = (0, exports.ParamCreater)().listThreats(listThreatsRequest);
2569
+ // @ts-ignore
2570
+ options['responseHeaders'] = [''];
2571
+ return this.hcClient.sendRequest(options);
2572
+ }
2218
2573
  /**
2219
2574
  * 查询业务异常TOP统计信息。
2220
2575
  *
2221
2576
  * Please refer to HUAWEI cloud API Explorer for details.
2222
2577
  *
2223
2578
  * @summary 查询业务异常数量
2224
- * @param {string} contentType 内容类型
2579
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2225
2580
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2226
2581
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2227
2582
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2303,13 +2658,35 @@ class WafClient {
2303
2658
  options['responseHeaders'] = [''];
2304
2659
  return this.hcClient.sendRequest(options);
2305
2660
  }
2661
+ /**
2662
+ * 查询QPS。
2663
+ *
2664
+ * Please refer to HUAWEI cloud API Explorer for details.
2665
+ *
2666
+ * @summary 查询事件日志中的url
2667
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2668
+ * @param {number} top 受攻击次数最多的几条url
2669
+ * @param {string} [recent] **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2670
+ * @param {number} [from] **参数解释:** 开始时间,统计周期的起始时间戳(毫秒级)。不使用recent参数时需要填写 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2671
+ * @param {number} [to] **参数解释:** 结束时间,统计周期的终止时间戳(毫秒级)。不使用recent参数时需要填写 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2672
+ * @param {Array<string>} [hosts] 要查询事件的域名id列表
2673
+ * @param {Array<string>} [instances] 要查询事件的独享域名id列表
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ */
2677
+ listUrl(listUrlRequest) {
2678
+ const options = (0, exports.ParamCreater)().listUrl(listUrlRequest);
2679
+ // @ts-ignore
2680
+ options['responseHeaders'] = [''];
2681
+ return this.hcClient.sendRequest(options);
2682
+ }
2306
2683
  /**
2307
2684
  * 查询引用表列表
2308
2685
  *
2309
2686
  * Please refer to HUAWEI cloud API Explorer for details.
2310
2687
  *
2311
2688
  * @summary 查询引用表列表
2312
- * @param {string} contentType 内容类型
2689
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2313
2690
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
2314
2691
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
2315
2692
  * @param {string} [name] 引用表名称
@@ -2417,7 +2794,7 @@ class WafClient {
2417
2794
  * Please refer to HUAWEI cloud API Explorer for details.
2418
2795
  *
2419
2796
  * @summary 重命名WAF独享引擎
2420
- * @param {string} contentType 内容类型
2797
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2421
2798
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
2422
2799
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
2423
2800
  * @param {RenameInstanceRequestBody} [renameInstanceRequestBody] 独享引擎新名称
@@ -2436,7 +2813,7 @@ class WafClient {
2436
2813
  * Please refer to HUAWEI cloud API Explorer for details.
2437
2814
  *
2438
2815
  * @summary 查询JS脚本反爬虫防护规则
2439
- * @param {string} contentType 内容类型
2816
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2440
2817
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2441
2818
  * @param {string} ruleId 规则id
2442
2819
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2455,7 +2832,7 @@ class WafClient {
2455
2832
  * Please refer to HUAWEI cloud API Explorer for details.
2456
2833
  *
2457
2834
  * @summary 查询防敏感信息泄露防护规则
2458
- * @param {string} contentType 内容类型
2835
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2459
2836
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2460
2837
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
2461
2838
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2564,7 +2941,7 @@ class WafClient {
2564
2941
  * Please refer to HUAWEI cloud API Explorer for details.
2565
2942
  *
2566
2943
  * @summary 根据Id查询精准防护规则
2567
- * @param {string} contentType 内容类型
2944
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2568
2945
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2569
2946
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
2570
2947
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2656,7 +3033,7 @@ class WafClient {
2656
3033
  * Please refer to HUAWEI cloud API Explorer for details.
2657
3034
  *
2658
3035
  * @summary 查询全局白名单(原误报屏蔽)防护规则
2659
- * @param {string} contentType 内容类型
3036
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2660
3037
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2661
3038
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
2662
3039
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2675,7 +3052,7 @@ class WafClient {
2675
3052
  * Please refer to HUAWEI cloud API Explorer for details.
2676
3053
  *
2677
3054
  * @summary 查询WAF独享引擎信息
2678
- * @param {string} contentType 内容类型
3055
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2679
3056
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
2680
3057
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
2681
3058
  * @param {*} [options] Override http request option.
@@ -2800,7 +3177,7 @@ class WafClient {
2800
3177
  * Please refer to HUAWEI cloud API Explorer for details.
2801
3178
  *
2802
3179
  * @summary 根据Id查询攻击惩罚防护规则
2803
- * @param {string} contentType 内容类型
3180
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2804
3181
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2805
3182
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
2806
3183
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2854,7 +3231,7 @@ class WafClient {
2854
3231
  * Please refer to HUAWEI cloud API Explorer for details.
2855
3232
  *
2856
3233
  * @summary 查询WAF回源Ip信息
2857
- * @param {string} contentType 内容类型
3234
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2858
3235
  * @param {*} [options] Override http request option.
2859
3236
  * @throws {RequiredError}
2860
3237
  */
@@ -2979,7 +3356,7 @@ class WafClient {
2979
3356
  * Please refer to HUAWEI cloud API Explorer for details.
2980
3357
  *
2981
3358
  * @summary 更新JS脚本反爬虫防护规则
2982
- * @param {string} contentType 内容类型
3359
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2983
3360
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2984
3361
  * @param {string} ruleId 规则id
2985
3362
  * @param {UpdateAnticrawlerRuleRequestBody} updateAnticrawlerRuleRequestBody 更新反爬虫规则的请求体
@@ -2999,7 +3376,7 @@ class WafClient {
2999
3376
  * Please refer to HUAWEI cloud API Explorer for details.
3000
3377
  *
3001
3378
  * @summary 更新JS脚本反爬虫规则防护模式
3002
- * @param {string} contentType 内容类型
3379
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3003
3380
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3004
3381
  * @param {UpdateAnticrawlerRuleTypeRequestbody} updateAnticrawlerRuleTypeRequestbody 创建JS脚本反爬虫规则body
3005
3382
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -3018,7 +3395,7 @@ class WafClient {
3018
3395
  * Please refer to HUAWEI cloud API Explorer for details.
3019
3396
  *
3020
3397
  * @summary 更新防敏感信息泄露防护规则
3021
- * @param {string} contentType 内容类型
3398
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3022
3399
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3023
3400
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
3024
3401
  * @param {UpdateAntileakageRuleRequestBody} updateAntileakageRuleRequestBody UpdateAntileakageRuleRequestBody
@@ -3077,7 +3454,7 @@ class WafClient {
3077
3454
  * Please refer to HUAWEI cloud API Explorer for details.
3078
3455
  *
3079
3456
  * @summary 更新精准防护规则
3080
- * @param {string} contentType 内容类型
3457
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3081
3458
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3082
3459
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
3083
3460
  * @param {UpdateCustomRuleRequestBody} updateCustomRuleRequestBody UpdateCustomRuleRequestBody
@@ -3173,7 +3550,7 @@ class WafClient {
3173
3550
  * Please refer to HUAWEI cloud API Explorer for details.
3174
3551
  *
3175
3552
  * @summary 更新全局白名单(原误报屏蔽)防护规则
3176
- * @param {string} contentType 内容类型
3553
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3177
3554
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3178
3555
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
3179
3556
  * @param {UpdateIgnoreRuleRequestBody} updateRuleRequestBody 请求体
@@ -3310,7 +3687,7 @@ class WafClient {
3310
3687
  * @summary 修改单条规则的状态
3311
3688
  * @param {string} contentType 内容类型
3312
3689
  * @param {string} policyId 策略id(策略id从查询防护策略列表接口获取)
3313
- * @param {'whiteblackip' | 'geoip' | 'privacy' | 'antitamper' | 'custom' | 'ignore' | 'cc'} ruletype 策略类型
3690
+ * @param {'whiteblackip' | 'geoip' | 'privacy' | 'antitamper' | 'custom' | 'ignore' | 'cc'} ruletype **参数解释:** 策略类型 **约束限制:** 不涉及 **取值范围:** - custom:精准防护 - cc: cc攻击 - whiteblackip: 黑白名单 - geoip: 地理位置 - privacy: 私屏蔽防护 - antitamper: 防篡改规则 - ignore: 全局白名单 **默认取值:** 不涉及
3314
3691
  * @param {string} ruleId 规则id,根据不同的规则类型(ruletype)调用规则列表接口获取规则id,例如黑白名单(whiteblackip)规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取规则id
3315
3692
  * @param {UpdatePolicyRuleStatusRequestBody} updatePolicyRuleStatusRequestBody 修改规则状态入参
3316
3693
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -3395,6 +3772,24 @@ class WafClient {
3395
3772
  options['responseHeaders'] = [''];
3396
3773
  return this.hcClient.sendRequest(options);
3397
3774
  }
3775
+ /**
3776
+ * 返回独享接入进度
3777
+ *
3778
+ * Please refer to HUAWEI cloud API Explorer for details.
3779
+ *
3780
+ * @summary 修改独享域名接入进度
3781
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3782
+ * @param {string} hostId **参数解释:** 独享模式域名Id,通过 查询独享模式域名列表(ListPremiumHost) 接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3783
+ * @param {AccessProgress} body **参数解释:** 修改域名请求接入进度body **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3784
+ * @param {*} [options] Override http request option.
3785
+ * @throws {RequiredError}
3786
+ */
3787
+ updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest) {
3788
+ const options = (0, exports.ParamCreater)().updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest);
3789
+ // @ts-ignore
3790
+ options['responseHeaders'] = [''];
3791
+ return this.hcClient.sendRequest(options);
3792
+ }
3398
3793
  /**
3399
3794
  * 更新隐私屏蔽防护规则
3400
3795
  *
@@ -3421,7 +3816,7 @@ class WafClient {
3421
3816
  * Please refer to HUAWEI cloud API Explorer for details.
3422
3817
  *
3423
3818
  * @summary 更新攻击惩罚规则
3424
- * @param {string} contentType 内容类型
3819
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3425
3820
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3426
3821
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
3427
3822
  * @param {UpdatePunishmentRuleRequestBody} updatePunishmentRuleRequestBody 更新攻击惩罚规则的请求体
@@ -3435,6 +3830,24 @@ class WafClient {
3435
3830
  options['responseHeaders'] = [''];
3436
3831
  return this.hcClient.sendRequest(options);
3437
3832
  }
3833
+ /**
3834
+ * 修改安全报告的订阅
3835
+ *
3836
+ * Please refer to HUAWEI cloud API Explorer for details.
3837
+ *
3838
+ * @summary 修改安全报告的订阅
3839
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3840
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3841
+ * @param {UpdateSecurityReportSubscriptionRequestBody} updateDemoInfoRequestBody 修改安全报告订阅请求体
3842
+ * @param {*} [options] Override http request option.
3843
+ * @throws {RequiredError}
3844
+ */
3845
+ updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest) {
3846
+ const options = (0, exports.ParamCreater)().updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest);
3847
+ // @ts-ignore
3848
+ options['responseHeaders'] = [''];
3849
+ return this.hcClient.sendRequest(options);
3850
+ }
3438
3851
  /**
3439
3852
  * 修改引用表
3440
3853
  *
@@ -3474,6 +3887,23 @@ class WafClient {
3474
3887
  options['responseHeaders'] = [''];
3475
3888
  return this.hcClient.sendRequest(options);
3476
3889
  }
3890
+ /**
3891
+ * 查询用户托管在云解析上的域名
3892
+ *
3893
+ * Please refer to HUAWEI cloud API Explorer for details.
3894
+ *
3895
+ * @summary 查询用户托管在云解析上的域名
3896
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3897
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
3898
+ * @param {*} [options] Override http request option.
3899
+ * @throws {RequiredError}
3900
+ */
3901
+ confirmDnsDomain(confirmDnsDomainRequest) {
3902
+ const options = (0, exports.ParamCreater)().confirmDnsDomain(confirmDnsDomainRequest);
3903
+ // @ts-ignore
3904
+ options['responseHeaders'] = [''];
3905
+ return this.hcClient.sendRequest(options);
3906
+ }
3477
3907
  /**
3478
3908
  * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
3479
3909
  *
@@ -3949,49 +4379,511 @@ const ParamCreater = function () {
3949
4379
  const localVarQueryParameter = {};
3950
4380
  let body;
3951
4381
  let contentType;
3952
- let policyids;
3953
- let enterpriseProjectId;
3954
- if (batchCreatePrivacyRuleRequest !== null && batchCreatePrivacyRuleRequest !== undefined) {
3955
- if (batchCreatePrivacyRuleRequest instanceof BatchCreatePrivacyRuleRequest_1.BatchCreatePrivacyRuleRequest) {
3956
- contentType = batchCreatePrivacyRuleRequest.contentType;
3957
- body = batchCreatePrivacyRuleRequest.body;
3958
- policyids = batchCreatePrivacyRuleRequest.policyids;
3959
- enterpriseProjectId = batchCreatePrivacyRuleRequest.enterpriseProjectId;
4382
+ let policyids;
4383
+ let enterpriseProjectId;
4384
+ if (batchCreatePrivacyRuleRequest !== null && batchCreatePrivacyRuleRequest !== undefined) {
4385
+ if (batchCreatePrivacyRuleRequest instanceof BatchCreatePrivacyRuleRequest_1.BatchCreatePrivacyRuleRequest) {
4386
+ contentType = batchCreatePrivacyRuleRequest.contentType;
4387
+ body = batchCreatePrivacyRuleRequest.body;
4388
+ policyids = batchCreatePrivacyRuleRequest.policyids;
4389
+ enterpriseProjectId = batchCreatePrivacyRuleRequest.enterpriseProjectId;
4390
+ }
4391
+ else {
4392
+ contentType = batchCreatePrivacyRuleRequest['Content-Type'];
4393
+ body = batchCreatePrivacyRuleRequest['body'];
4394
+ policyids = batchCreatePrivacyRuleRequest['policyids'];
4395
+ enterpriseProjectId = batchCreatePrivacyRuleRequest['enterprise_project_id'];
4396
+ }
4397
+ }
4398
+ if (body === null || body === undefined) {
4399
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4400
+ }
4401
+ if (policyids !== null && policyids !== undefined) {
4402
+ localVarQueryParameter['policyids'] = policyids;
4403
+ }
4404
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4405
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4406
+ }
4407
+ if (contentType !== undefined && contentType !== null) {
4408
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4409
+ }
4410
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4411
+ options.data = body !== undefined ? body : {};
4412
+ options.queryParams = localVarQueryParameter;
4413
+ options.headers = localVarHeaderParameter;
4414
+ return options;
4415
+ },
4416
+ /**
4417
+ * 选中多个策略为这些策略批量添加黑白名单防护规则
4418
+ *
4419
+ * Please refer to HUAWEI cloud API Explorer for details.
4420
+ */
4421
+ batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
4422
+ const options = {
4423
+ method: "POST",
4424
+ url: "/v1/{project_id}/waf/rule/whiteblackip",
4425
+ contentType: "application/json",
4426
+ queryParams: {},
4427
+ pathParams: {},
4428
+ headers: {},
4429
+ data: {}
4430
+ };
4431
+ const localVarHeaderParameter = {};
4432
+ const localVarQueryParameter = {};
4433
+ let body;
4434
+ let contentType;
4435
+ let policyids;
4436
+ let enterpriseProjectId;
4437
+ if (batchCreateWhiteblackipRuleRequest !== null && batchCreateWhiteblackipRuleRequest !== undefined) {
4438
+ if (batchCreateWhiteblackipRuleRequest instanceof BatchCreateWhiteblackipRuleRequest_1.BatchCreateWhiteblackipRuleRequest) {
4439
+ contentType = batchCreateWhiteblackipRuleRequest.contentType;
4440
+ body = batchCreateWhiteblackipRuleRequest.body;
4441
+ policyids = batchCreateWhiteblackipRuleRequest.policyids;
4442
+ enterpriseProjectId = batchCreateWhiteblackipRuleRequest.enterpriseProjectId;
4443
+ }
4444
+ else {
4445
+ contentType = batchCreateWhiteblackipRuleRequest['Content-Type'];
4446
+ body = batchCreateWhiteblackipRuleRequest['body'];
4447
+ policyids = batchCreateWhiteblackipRuleRequest['policyids'];
4448
+ enterpriseProjectId = batchCreateWhiteblackipRuleRequest['enterprise_project_id'];
4449
+ }
4450
+ }
4451
+ if (body === null || body === undefined) {
4452
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4453
+ }
4454
+ if (policyids !== null && policyids !== undefined) {
4455
+ localVarQueryParameter['policyids'] = policyids;
4456
+ }
4457
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4458
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4459
+ }
4460
+ if (contentType !== undefined && contentType !== null) {
4461
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4462
+ }
4463
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4464
+ options.data = body !== undefined ? body : {};
4465
+ options.queryParams = localVarQueryParameter;
4466
+ options.headers = localVarHeaderParameter;
4467
+ return options;
4468
+ },
4469
+ /**
4470
+ * 批量删除告警通知
4471
+ *
4472
+ * Please refer to HUAWEI cloud API Explorer for details.
4473
+ */
4474
+ batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
4475
+ const options = {
4476
+ method: "POST",
4477
+ url: "/v2/{project_id}/waf/alert/batch-delete",
4478
+ contentType: "application/json",
4479
+ queryParams: {},
4480
+ pathParams: {},
4481
+ headers: {},
4482
+ data: {}
4483
+ };
4484
+ const localVarHeaderParameter = {};
4485
+ const localVarQueryParameter = {};
4486
+ let body;
4487
+ let enterpriseProjectId;
4488
+ let xLanguage;
4489
+ let contentType;
4490
+ if (batchDeleteAlertNoticeConfigRequest !== null && batchDeleteAlertNoticeConfigRequest !== undefined) {
4491
+ if (batchDeleteAlertNoticeConfigRequest instanceof BatchDeleteAlertNoticeConfigRequest_1.BatchDeleteAlertNoticeConfigRequest) {
4492
+ enterpriseProjectId = batchDeleteAlertNoticeConfigRequest.enterpriseProjectId;
4493
+ xLanguage = batchDeleteAlertNoticeConfigRequest.xLanguage;
4494
+ contentType = batchDeleteAlertNoticeConfigRequest.contentType;
4495
+ body = batchDeleteAlertNoticeConfigRequest.body;
4496
+ }
4497
+ else {
4498
+ enterpriseProjectId = batchDeleteAlertNoticeConfigRequest['enterpriseProjectId'];
4499
+ xLanguage = batchDeleteAlertNoticeConfigRequest['X-Language'];
4500
+ contentType = batchDeleteAlertNoticeConfigRequest['Content-Type'];
4501
+ body = batchDeleteAlertNoticeConfigRequest['body'];
4502
+ }
4503
+ }
4504
+ if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
4505
+ throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling batchDeleteAlertNoticeConfig.');
4506
+ }
4507
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4508
+ localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
4509
+ }
4510
+ if (body === null || body === undefined) {
4511
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4512
+ }
4513
+ if (xLanguage !== undefined && xLanguage !== null) {
4514
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
4515
+ }
4516
+ if (contentType !== undefined && contentType !== null) {
4517
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4518
+ }
4519
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4520
+ options.data = body !== undefined ? body : {};
4521
+ options.queryParams = localVarQueryParameter;
4522
+ options.headers = localVarHeaderParameter;
4523
+ return options;
4524
+ },
4525
+ /**
4526
+ * 批量删除租户域名
4527
+ *
4528
+ * Please refer to HUAWEI cloud API Explorer for details.
4529
+ */
4530
+ batchDeleteCompositeHosts(batchDeleteCompositeHostsRequest) {
4531
+ const options = {
4532
+ method: "POST",
4533
+ url: "/v1/{project_id}/composite-waf/hosts/batch-delete",
4534
+ contentType: "application/json",
4535
+ queryParams: {},
4536
+ pathParams: {},
4537
+ headers: {},
4538
+ data: {}
4539
+ };
4540
+ const localVarHeaderParameter = {};
4541
+ const localVarQueryParameter = {};
4542
+ let body;
4543
+ let contentType;
4544
+ let enterpriseProjectId;
4545
+ if (batchDeleteCompositeHostsRequest !== null && batchDeleteCompositeHostsRequest !== undefined) {
4546
+ if (batchDeleteCompositeHostsRequest instanceof BatchDeleteCompositeHostsRequest_1.BatchDeleteCompositeHostsRequest) {
4547
+ contentType = batchDeleteCompositeHostsRequest.contentType;
4548
+ body = batchDeleteCompositeHostsRequest.body;
4549
+ enterpriseProjectId = batchDeleteCompositeHostsRequest.enterpriseProjectId;
4550
+ }
4551
+ else {
4552
+ contentType = batchDeleteCompositeHostsRequest['Content-Type'];
4553
+ body = batchDeleteCompositeHostsRequest['body'];
4554
+ enterpriseProjectId = batchDeleteCompositeHostsRequest['enterprise_project_id'];
4555
+ }
4556
+ }
4557
+ if (body === null || body === undefined) {
4558
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4559
+ }
4560
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4561
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4562
+ }
4563
+ if (contentType !== undefined && contentType !== null) {
4564
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4565
+ }
4566
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4567
+ options.data = body !== undefined ? body : {};
4568
+ options.queryParams = localVarQueryParameter;
4569
+ options.headers = localVarHeaderParameter;
4570
+ return options;
4571
+ },
4572
+ /**
4573
+ * 批量删除防护策略
4574
+ *
4575
+ * Please refer to HUAWEI cloud API Explorer for details.
4576
+ */
4577
+ batchDeletePolicies(batchDeletePoliciesRequest) {
4578
+ const options = {
4579
+ method: "POST",
4580
+ url: "/v1/{project_id}/waf/policies/batch-delete",
4581
+ contentType: "application/json",
4582
+ queryParams: {},
4583
+ pathParams: {},
4584
+ headers: {},
4585
+ data: {}
4586
+ };
4587
+ const localVarHeaderParameter = {};
4588
+ const localVarQueryParameter = {};
4589
+ let body;
4590
+ let contentType;
4591
+ let enterpriseProjectId;
4592
+ if (batchDeletePoliciesRequest !== null && batchDeletePoliciesRequest !== undefined) {
4593
+ if (batchDeletePoliciesRequest instanceof BatchDeletePoliciesRequest_1.BatchDeletePoliciesRequest) {
4594
+ contentType = batchDeletePoliciesRequest.contentType;
4595
+ body = batchDeletePoliciesRequest.body;
4596
+ enterpriseProjectId = batchDeletePoliciesRequest.enterpriseProjectId;
4597
+ }
4598
+ else {
4599
+ contentType = batchDeletePoliciesRequest['Content-Type'];
4600
+ body = batchDeletePoliciesRequest['body'];
4601
+ enterpriseProjectId = batchDeletePoliciesRequest['enterprise_project_id'];
4602
+ }
4603
+ }
4604
+ if (body === null || body === undefined) {
4605
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4606
+ }
4607
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4608
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4609
+ }
4610
+ if (contentType !== undefined && contentType !== null) {
4611
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4612
+ }
4613
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4614
+ options.data = body !== undefined ? body : {};
4615
+ options.queryParams = localVarQueryParameter;
4616
+ options.headers = localVarHeaderParameter;
4617
+ return options;
4618
+ },
4619
+ /**
4620
+ * 批量删除规则
4621
+ *
4622
+ * Please refer to HUAWEI cloud API Explorer for details.
4623
+ */
4624
+ batchDeleteRules(batchDeleteRulesRequest) {
4625
+ const options = {
4626
+ method: "POST",
4627
+ url: "/v1/{project_id}/waf/rule/{rule_type}/batch-delete",
4628
+ contentType: "application/json",
4629
+ queryParams: {},
4630
+ pathParams: {},
4631
+ headers: {},
4632
+ data: {}
4633
+ };
4634
+ const localVarHeaderParameter = {};
4635
+ let body;
4636
+ let contentType;
4637
+ let ruleType;
4638
+ if (batchDeleteRulesRequest !== null && batchDeleteRulesRequest !== undefined) {
4639
+ if (batchDeleteRulesRequest instanceof BatchDeleteRulesRequest_1.BatchDeleteRulesRequest) {
4640
+ contentType = batchDeleteRulesRequest.contentType;
4641
+ ruleType = batchDeleteRulesRequest.ruleType;
4642
+ body = batchDeleteRulesRequest.body;
4643
+ }
4644
+ else {
4645
+ contentType = batchDeleteRulesRequest['Content-Type'];
4646
+ ruleType = batchDeleteRulesRequest['rule_type'];
4647
+ body = batchDeleteRulesRequest['body'];
4648
+ }
4649
+ }
4650
+ if (ruleType === null || ruleType === undefined) {
4651
+ throw new RequiredError('ruleType', 'Required parameter ruleType was null or undefined when calling batchDeleteRules.');
4652
+ }
4653
+ if (contentType !== undefined && contentType !== null) {
4654
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4655
+ }
4656
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4657
+ options.data = body !== undefined ? body : {};
4658
+ options.pathParams = { 'rule_type': ruleType, };
4659
+ options.headers = localVarHeaderParameter;
4660
+ return options;
4661
+ },
4662
+ /**
4663
+ * 批量修改防敏感信息泄露规则
4664
+ *
4665
+ * Please refer to HUAWEI cloud API Explorer for details.
4666
+ */
4667
+ batchUpdateAntileakageRules(batchUpdateAntileakageRulesRequest) {
4668
+ const options = {
4669
+ method: "POST",
4670
+ url: "/v1/{project_id}/waf/rule/antileakage/batch-update",
4671
+ contentType: "application/json",
4672
+ queryParams: {},
4673
+ pathParams: {},
4674
+ headers: {},
4675
+ data: {}
4676
+ };
4677
+ const localVarHeaderParameter = {};
4678
+ let body;
4679
+ let contentType;
4680
+ if (batchUpdateAntileakageRulesRequest !== null && batchUpdateAntileakageRulesRequest !== undefined) {
4681
+ if (batchUpdateAntileakageRulesRequest instanceof BatchUpdateAntileakageRulesRequest_1.BatchUpdateAntileakageRulesRequest) {
4682
+ contentType = batchUpdateAntileakageRulesRequest.contentType;
4683
+ body = batchUpdateAntileakageRulesRequest.body;
4684
+ }
4685
+ else {
4686
+ contentType = batchUpdateAntileakageRulesRequest['Content-Type'];
4687
+ body = batchUpdateAntileakageRulesRequest['body'];
4688
+ }
4689
+ }
4690
+ if (contentType !== undefined && contentType !== null) {
4691
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4692
+ }
4693
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4694
+ options.data = body !== undefined ? body : {};
4695
+ options.headers = localVarHeaderParameter;
4696
+ return options;
4697
+ },
4698
+ /**
4699
+ * 批量修改地理位置访问控制规则
4700
+ *
4701
+ * Please refer to HUAWEI cloud API Explorer for details.
4702
+ */
4703
+ batchUpdateAntitamperRules(batchUpdateAntitamperRulesRequest) {
4704
+ const options = {
4705
+ method: "POST",
4706
+ url: "/v1/{project_id}/waf/rule/antitamper/batch-update",
4707
+ contentType: "application/json",
4708
+ queryParams: {},
4709
+ pathParams: {},
4710
+ headers: {},
4711
+ data: {}
4712
+ };
4713
+ const localVarHeaderParameter = {};
4714
+ let body;
4715
+ let contentType;
4716
+ if (batchUpdateAntitamperRulesRequest !== null && batchUpdateAntitamperRulesRequest !== undefined) {
4717
+ if (batchUpdateAntitamperRulesRequest instanceof BatchUpdateAntitamperRulesRequest_1.BatchUpdateAntitamperRulesRequest) {
4718
+ contentType = batchUpdateAntitamperRulesRequest.contentType;
4719
+ body = batchUpdateAntitamperRulesRequest.body;
4720
+ }
4721
+ else {
4722
+ contentType = batchUpdateAntitamperRulesRequest['Content-Type'];
4723
+ body = batchUpdateAntitamperRulesRequest['body'];
4724
+ }
4725
+ }
4726
+ if (contentType !== undefined && contentType !== null) {
4727
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4728
+ }
4729
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4730
+ options.data = body !== undefined ? body : {};
4731
+ options.headers = localVarHeaderParameter;
4732
+ return options;
4733
+ },
4734
+ /**
4735
+ * 批量修改地理位置访问控制规则
4736
+ *
4737
+ * Please refer to HUAWEI cloud API Explorer for details.
4738
+ */
4739
+ batchUpdateCcRules(batchUpdateCcRulesRequest) {
4740
+ const options = {
4741
+ method: "POST",
4742
+ url: "/v1/{project_id}/waf/rule/cc/batch-update",
4743
+ contentType: "application/json",
4744
+ queryParams: {},
4745
+ pathParams: {},
4746
+ headers: {},
4747
+ data: {}
4748
+ };
4749
+ const localVarHeaderParameter = {};
4750
+ let body;
4751
+ let contentType;
4752
+ if (batchUpdateCcRulesRequest !== null && batchUpdateCcRulesRequest !== undefined) {
4753
+ if (batchUpdateCcRulesRequest instanceof BatchUpdateCcRulesRequest_1.BatchUpdateCcRulesRequest) {
4754
+ contentType = batchUpdateCcRulesRequest.contentType;
4755
+ body = batchUpdateCcRulesRequest.body;
4756
+ }
4757
+ else {
4758
+ contentType = batchUpdateCcRulesRequest['Content-Type'];
4759
+ body = batchUpdateCcRulesRequest['body'];
4760
+ }
4761
+ }
4762
+ if (contentType !== undefined && contentType !== null) {
4763
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4764
+ }
4765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4766
+ options.data = body !== undefined ? body : {};
4767
+ options.headers = localVarHeaderParameter;
4768
+ return options;
4769
+ },
4770
+ /**
4771
+ * 批量修改地理位置访问控制规则
4772
+ *
4773
+ * Please refer to HUAWEI cloud API Explorer for details.
4774
+ */
4775
+ batchUpdateCustomRules(batchUpdateCustomRulesRequest) {
4776
+ const options = {
4777
+ method: "POST",
4778
+ url: "/v1/{project_id}/waf/rule/custom/batch-update",
4779
+ contentType: "application/json",
4780
+ queryParams: {},
4781
+ pathParams: {},
4782
+ headers: {},
4783
+ data: {}
4784
+ };
4785
+ const localVarHeaderParameter = {};
4786
+ let body;
4787
+ let contentType;
4788
+ if (batchUpdateCustomRulesRequest !== null && batchUpdateCustomRulesRequest !== undefined) {
4789
+ if (batchUpdateCustomRulesRequest instanceof BatchUpdateCustomRulesRequest_1.BatchUpdateCustomRulesRequest) {
4790
+ contentType = batchUpdateCustomRulesRequest.contentType;
4791
+ body = batchUpdateCustomRulesRequest.body;
4792
+ }
4793
+ else {
4794
+ contentType = batchUpdateCustomRulesRequest['Content-Type'];
4795
+ body = batchUpdateCustomRulesRequest['body'];
4796
+ }
4797
+ }
4798
+ if (contentType !== undefined && contentType !== null) {
4799
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4800
+ }
4801
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4802
+ options.data = body !== undefined ? body : {};
4803
+ options.headers = localVarHeaderParameter;
4804
+ return options;
4805
+ },
4806
+ /**
4807
+ * 批量修改地理位置访问控制规则
4808
+ *
4809
+ * Please refer to HUAWEI cloud API Explorer for details.
4810
+ */
4811
+ batchUpdateGeoipRules(batchUpdateGeoipRulesRequest) {
4812
+ const options = {
4813
+ method: "POST",
4814
+ url: "/v1/{project_id}/waf/rule/geoip/batch-update",
4815
+ contentType: "application/json",
4816
+ queryParams: {},
4817
+ pathParams: {},
4818
+ headers: {},
4819
+ data: {}
4820
+ };
4821
+ const localVarHeaderParameter = {};
4822
+ let body;
4823
+ let contentType;
4824
+ if (batchUpdateGeoipRulesRequest !== null && batchUpdateGeoipRulesRequest !== undefined) {
4825
+ if (batchUpdateGeoipRulesRequest instanceof BatchUpdateGeoipRulesRequest_1.BatchUpdateGeoipRulesRequest) {
4826
+ contentType = batchUpdateGeoipRulesRequest.contentType;
4827
+ body = batchUpdateGeoipRulesRequest.body;
4828
+ }
4829
+ else {
4830
+ contentType = batchUpdateGeoipRulesRequest['Content-Type'];
4831
+ body = batchUpdateGeoipRulesRequest['body'];
4832
+ }
4833
+ }
4834
+ if (contentType !== undefined && contentType !== null) {
4835
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4836
+ }
4837
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4838
+ options.data = body !== undefined ? body : {};
4839
+ options.headers = localVarHeaderParameter;
4840
+ return options;
4841
+ },
4842
+ /**
4843
+ * 批量修改全局白名单规则
4844
+ *
4845
+ * Please refer to HUAWEI cloud API Explorer for details.
4846
+ */
4847
+ batchUpdateIgnoreRules(batchUpdateIgnoreRulesRequest) {
4848
+ const options = {
4849
+ method: "POST",
4850
+ url: "/v1/{project_id}/waf/rule/ignore/batch-update",
4851
+ contentType: "application/json",
4852
+ queryParams: {},
4853
+ pathParams: {},
4854
+ headers: {},
4855
+ data: {}
4856
+ };
4857
+ const localVarHeaderParameter = {};
4858
+ let body;
4859
+ let contentType;
4860
+ if (batchUpdateIgnoreRulesRequest !== null && batchUpdateIgnoreRulesRequest !== undefined) {
4861
+ if (batchUpdateIgnoreRulesRequest instanceof BatchUpdateIgnoreRulesRequest_1.BatchUpdateIgnoreRulesRequest) {
4862
+ contentType = batchUpdateIgnoreRulesRequest.contentType;
4863
+ body = batchUpdateIgnoreRulesRequest.body;
3960
4864
  }
3961
4865
  else {
3962
- contentType = batchCreatePrivacyRuleRequest['Content-Type'];
3963
- body = batchCreatePrivacyRuleRequest['body'];
3964
- policyids = batchCreatePrivacyRuleRequest['policyids'];
3965
- enterpriseProjectId = batchCreatePrivacyRuleRequest['enterprise_project_id'];
4866
+ contentType = batchUpdateIgnoreRulesRequest['Content-Type'];
4867
+ body = batchUpdateIgnoreRulesRequest['body'];
3966
4868
  }
3967
4869
  }
3968
- if (body === null || body === undefined) {
3969
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3970
- }
3971
- if (policyids !== null && policyids !== undefined) {
3972
- localVarQueryParameter['policyids'] = policyids;
3973
- }
3974
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3975
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3976
- }
3977
4870
  if (contentType !== undefined && contentType !== null) {
3978
4871
  localVarHeaderParameter['Content-Type'] = String(contentType);
3979
4872
  }
3980
4873
  localVarHeaderParameter['Content-Type'] = 'application/json';
3981
4874
  options.data = body !== undefined ? body : {};
3982
- options.queryParams = localVarQueryParameter;
3983
4875
  options.headers = localVarHeaderParameter;
3984
4876
  return options;
3985
4877
  },
3986
4878
  /**
3987
- * 选中多个策略为这些策略批量添加黑白名单防护规则
4879
+ * 批量修改地理位置访问控制规则
3988
4880
  *
3989
4881
  * Please refer to HUAWEI cloud API Explorer for details.
3990
4882
  */
3991
- batchCreateWhiteblackipRule(batchCreateWhiteblackipRuleRequest) {
4883
+ batchUpdateIpReputationRules(batchUpdateIpReputationRulesRequest) {
3992
4884
  const options = {
3993
4885
  method: "POST",
3994
- url: "/v1/{project_id}/waf/rule/whiteblackip",
4886
+ url: "/v1/{project_id}/waf/rule/ip-reputation/batch-update",
3995
4887
  contentType: "application/json",
3996
4888
  queryParams: {},
3997
4889
  pathParams: {},
@@ -3999,52 +4891,35 @@ const ParamCreater = function () {
3999
4891
  data: {}
4000
4892
  };
4001
4893
  const localVarHeaderParameter = {};
4002
- const localVarQueryParameter = {};
4003
4894
  let body;
4004
4895
  let contentType;
4005
- let policyids;
4006
- let enterpriseProjectId;
4007
- if (batchCreateWhiteblackipRuleRequest !== null && batchCreateWhiteblackipRuleRequest !== undefined) {
4008
- if (batchCreateWhiteblackipRuleRequest instanceof BatchCreateWhiteblackipRuleRequest_1.BatchCreateWhiteblackipRuleRequest) {
4009
- contentType = batchCreateWhiteblackipRuleRequest.contentType;
4010
- body = batchCreateWhiteblackipRuleRequest.body;
4011
- policyids = batchCreateWhiteblackipRuleRequest.policyids;
4012
- enterpriseProjectId = batchCreateWhiteblackipRuleRequest.enterpriseProjectId;
4896
+ if (batchUpdateIpReputationRulesRequest !== null && batchUpdateIpReputationRulesRequest !== undefined) {
4897
+ if (batchUpdateIpReputationRulesRequest instanceof BatchUpdateIpReputationRulesRequest_1.BatchUpdateIpReputationRulesRequest) {
4898
+ contentType = batchUpdateIpReputationRulesRequest.contentType;
4899
+ body = batchUpdateIpReputationRulesRequest.body;
4013
4900
  }
4014
4901
  else {
4015
- contentType = batchCreateWhiteblackipRuleRequest['Content-Type'];
4016
- body = batchCreateWhiteblackipRuleRequest['body'];
4017
- policyids = batchCreateWhiteblackipRuleRequest['policyids'];
4018
- enterpriseProjectId = batchCreateWhiteblackipRuleRequest['enterprise_project_id'];
4902
+ contentType = batchUpdateIpReputationRulesRequest['Content-Type'];
4903
+ body = batchUpdateIpReputationRulesRequest['body'];
4019
4904
  }
4020
4905
  }
4021
- if (body === null || body === undefined) {
4022
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4023
- }
4024
- if (policyids !== null && policyids !== undefined) {
4025
- localVarQueryParameter['policyids'] = policyids;
4026
- }
4027
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4028
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4029
- }
4030
4906
  if (contentType !== undefined && contentType !== null) {
4031
4907
  localVarHeaderParameter['Content-Type'] = String(contentType);
4032
4908
  }
4033
4909
  localVarHeaderParameter['Content-Type'] = 'application/json';
4034
4910
  options.data = body !== undefined ? body : {};
4035
- options.queryParams = localVarQueryParameter;
4036
4911
  options.headers = localVarHeaderParameter;
4037
4912
  return options;
4038
4913
  },
4039
4914
  /**
4040
- * 批量删除告警通知
4915
+ * 批量修改全局白名单规则
4041
4916
  *
4042
4917
  * Please refer to HUAWEI cloud API Explorer for details.
4043
4918
  */
4044
- batchDeleteAlertNoticeConfig(batchDeleteAlertNoticeConfigRequest) {
4919
+ batchUpdatePrivacyRules(batchUpdatePrivacyRulesRequest) {
4045
4920
  const options = {
4046
4921
  method: "POST",
4047
- url: "/v2/{project_id}/waf/alert/batch-delete",
4922
+ url: "/v1/{project_id}/waf/rule/privacy/batch-update",
4048
4923
  contentType: "application/json",
4049
4924
  queryParams: {},
4050
4925
  pathParams: {},
@@ -4052,55 +4927,35 @@ const ParamCreater = function () {
4052
4927
  data: {}
4053
4928
  };
4054
4929
  const localVarHeaderParameter = {};
4055
- const localVarQueryParameter = {};
4056
4930
  let body;
4057
- let enterpriseProjectId;
4058
- let xLanguage;
4059
4931
  let contentType;
4060
- if (batchDeleteAlertNoticeConfigRequest !== null && batchDeleteAlertNoticeConfigRequest !== undefined) {
4061
- if (batchDeleteAlertNoticeConfigRequest instanceof BatchDeleteAlertNoticeConfigRequest_1.BatchDeleteAlertNoticeConfigRequest) {
4062
- enterpriseProjectId = batchDeleteAlertNoticeConfigRequest.enterpriseProjectId;
4063
- xLanguage = batchDeleteAlertNoticeConfigRequest.xLanguage;
4064
- contentType = batchDeleteAlertNoticeConfigRequest.contentType;
4065
- body = batchDeleteAlertNoticeConfigRequest.body;
4932
+ if (batchUpdatePrivacyRulesRequest !== null && batchUpdatePrivacyRulesRequest !== undefined) {
4933
+ if (batchUpdatePrivacyRulesRequest instanceof BatchUpdatePrivacyRulesRequest_1.BatchUpdatePrivacyRulesRequest) {
4934
+ contentType = batchUpdatePrivacyRulesRequest.contentType;
4935
+ body = batchUpdatePrivacyRulesRequest.body;
4066
4936
  }
4067
4937
  else {
4068
- enterpriseProjectId = batchDeleteAlertNoticeConfigRequest['enterpriseProjectId'];
4069
- xLanguage = batchDeleteAlertNoticeConfigRequest['X-Language'];
4070
- contentType = batchDeleteAlertNoticeConfigRequest['Content-Type'];
4071
- body = batchDeleteAlertNoticeConfigRequest['body'];
4938
+ contentType = batchUpdatePrivacyRulesRequest['Content-Type'];
4939
+ body = batchUpdatePrivacyRulesRequest['body'];
4072
4940
  }
4073
4941
  }
4074
- if (enterpriseProjectId === null || enterpriseProjectId === undefined) {
4075
- throw new RequiredError('enterpriseProjectId', 'Required parameter enterpriseProjectId was null or undefined when calling batchDeleteAlertNoticeConfig.');
4076
- }
4077
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4078
- localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
4079
- }
4080
- if (body === null || body === undefined) {
4081
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4082
- }
4083
- if (xLanguage !== undefined && xLanguage !== null) {
4084
- localVarHeaderParameter['X-Language'] = String(xLanguage);
4085
- }
4086
4942
  if (contentType !== undefined && contentType !== null) {
4087
4943
  localVarHeaderParameter['Content-Type'] = String(contentType);
4088
4944
  }
4089
4945
  localVarHeaderParameter['Content-Type'] = 'application/json';
4090
4946
  options.data = body !== undefined ? body : {};
4091
- options.queryParams = localVarQueryParameter;
4092
4947
  options.headers = localVarHeaderParameter;
4093
4948
  return options;
4094
4949
  },
4095
4950
  /**
4096
- * 批量删除防护策略
4951
+ * 批量修改地理位置访问控制规则
4097
4952
  *
4098
4953
  * Please refer to HUAWEI cloud API Explorer for details.
4099
4954
  */
4100
- batchDeletePolicies(batchDeletePoliciesRequest) {
4955
+ batchUpdateWhiteblackipRules(batchUpdateWhiteblackipRulesRequest) {
4101
4956
  const options = {
4102
4957
  method: "POST",
4103
- url: "/v1/{project_id}/waf/policies/batch-delete",
4958
+ url: "/v1/{project_id}/waf/rule/whiteblackip/batch-update",
4104
4959
  contentType: "application/json",
4105
4960
  queryParams: {},
4106
4961
  pathParams: {},
@@ -4108,42 +4963,31 @@ const ParamCreater = function () {
4108
4963
  data: {}
4109
4964
  };
4110
4965
  const localVarHeaderParameter = {};
4111
- const localVarQueryParameter = {};
4112
4966
  let body;
4113
4967
  let contentType;
4114
- let enterpriseProjectId;
4115
- if (batchDeletePoliciesRequest !== null && batchDeletePoliciesRequest !== undefined) {
4116
- if (batchDeletePoliciesRequest instanceof BatchDeletePoliciesRequest_1.BatchDeletePoliciesRequest) {
4117
- contentType = batchDeletePoliciesRequest.contentType;
4118
- body = batchDeletePoliciesRequest.body;
4119
- enterpriseProjectId = batchDeletePoliciesRequest.enterpriseProjectId;
4968
+ if (batchUpdateWhiteblackipRulesRequest !== null && batchUpdateWhiteblackipRulesRequest !== undefined) {
4969
+ if (batchUpdateWhiteblackipRulesRequest instanceof BatchUpdateWhiteblackipRulesRequest_1.BatchUpdateWhiteblackipRulesRequest) {
4970
+ contentType = batchUpdateWhiteblackipRulesRequest.contentType;
4971
+ body = batchUpdateWhiteblackipRulesRequest.body;
4120
4972
  }
4121
4973
  else {
4122
- contentType = batchDeletePoliciesRequest['Content-Type'];
4123
- body = batchDeletePoliciesRequest['body'];
4124
- enterpriseProjectId = batchDeletePoliciesRequest['enterprise_project_id'];
4974
+ contentType = batchUpdateWhiteblackipRulesRequest['Content-Type'];
4975
+ body = batchUpdateWhiteblackipRulesRequest['body'];
4125
4976
  }
4126
4977
  }
4127
- if (body === null || body === undefined) {
4128
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4129
- }
4130
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4131
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4132
- }
4133
4978
  if (contentType !== undefined && contentType !== null) {
4134
4979
  localVarHeaderParameter['Content-Type'] = String(contentType);
4135
4980
  }
4136
4981
  localVarHeaderParameter['Content-Type'] = 'application/json';
4137
4982
  options.data = body !== undefined ? body : {};
4138
- options.queryParams = localVarQueryParameter;
4139
4983
  options.headers = localVarHeaderParameter;
4140
4984
  return options;
4141
4985
  },
4142
4986
  /**
4143
4987
  * 变更包周期云模式waf规格。注:
4144
- * - 1.变更某产品规格的前提是必须已购买该产品
4145
- * - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
4146
- * - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
4988
+ * - 变更某产品规格的前提是必须已购买该产品
4989
+ * - 云模式支持版本降配,扩展包支持减少数量,最少可以到0
4990
+ * - 不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
4147
4991
  *
4148
4992
  * Please refer to HUAWEI cloud API Explorer for details.
4149
4993
  */
@@ -4600,6 +5444,60 @@ const ParamCreater = function () {
4600
5444
  options.headers = localVarHeaderParameter;
4601
5445
  return options;
4602
5446
  },
5447
+ /**
5448
+ * 根据Id复制防护策略
5449
+ *
5450
+ * Please refer to HUAWEI cloud API Explorer for details.
5451
+ */
5452
+ copyPolicyById(copyPolicyByIdRequest) {
5453
+ const options = {
5454
+ method: "POST",
5455
+ url: "/v1/{project_id}/waf/policies/{src_policy_id}/copy",
5456
+ contentType: "application/json",
5457
+ queryParams: {},
5458
+ pathParams: {},
5459
+ headers: {}
5460
+ };
5461
+ const localVarHeaderParameter = {};
5462
+ const localVarQueryParameter = {};
5463
+ let contentType;
5464
+ let srcPolicyId;
5465
+ let destPolicyName;
5466
+ let enterpriseProjectId;
5467
+ if (copyPolicyByIdRequest !== null && copyPolicyByIdRequest !== undefined) {
5468
+ if (copyPolicyByIdRequest instanceof CopyPolicyByIdRequest_1.CopyPolicyByIdRequest) {
5469
+ contentType = copyPolicyByIdRequest.contentType;
5470
+ srcPolicyId = copyPolicyByIdRequest.srcPolicyId;
5471
+ destPolicyName = copyPolicyByIdRequest.destPolicyName;
5472
+ enterpriseProjectId = copyPolicyByIdRequest.enterpriseProjectId;
5473
+ }
5474
+ else {
5475
+ contentType = copyPolicyByIdRequest['Content-Type'];
5476
+ srcPolicyId = copyPolicyByIdRequest['src_policy_id'];
5477
+ destPolicyName = copyPolicyByIdRequest['dest_policy_name'];
5478
+ enterpriseProjectId = copyPolicyByIdRequest['enterprise_project_id'];
5479
+ }
5480
+ }
5481
+ if (srcPolicyId === null || srcPolicyId === undefined) {
5482
+ throw new RequiredError('srcPolicyId', 'Required parameter srcPolicyId was null or undefined when calling copyPolicyById.');
5483
+ }
5484
+ if (destPolicyName === null || destPolicyName === undefined) {
5485
+ throw new RequiredError('destPolicyName', 'Required parameter destPolicyName was null or undefined when calling copyPolicyById.');
5486
+ }
5487
+ if (destPolicyName !== null && destPolicyName !== undefined) {
5488
+ localVarQueryParameter['dest_policy_name'] = destPolicyName;
5489
+ }
5490
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5491
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5492
+ }
5493
+ if (contentType !== undefined && contentType !== null) {
5494
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5495
+ }
5496
+ options.queryParams = localVarQueryParameter;
5497
+ options.pathParams = { 'src_policy_id': srcPolicyId, };
5498
+ options.headers = localVarHeaderParameter;
5499
+ return options;
5500
+ },
4603
5501
  /**
4604
5502
  * 创建独享引擎的代理
4605
5503
  *
@@ -5068,6 +5966,45 @@ const ParamCreater = function () {
5068
5966
  options.headers = localVarHeaderParameter;
5069
5967
  return options;
5070
5968
  },
5969
+ /**
5970
+ * 下发自定义导出攻击事件的异步任务
5971
+ *
5972
+ * Please refer to HUAWEI cloud API Explorer for details.
5973
+ */
5974
+ createEventExportJob(createEventExportJobRequest) {
5975
+ const options = {
5976
+ method: "POST",
5977
+ url: "/v1/{project_id}/waf/event/job/export",
5978
+ contentType: "application/json",
5979
+ queryParams: {},
5980
+ pathParams: {},
5981
+ headers: {},
5982
+ data: {}
5983
+ };
5984
+ const localVarHeaderParameter = {};
5985
+ let body;
5986
+ let contentType;
5987
+ if (createEventExportJobRequest !== null && createEventExportJobRequest !== undefined) {
5988
+ if (createEventExportJobRequest instanceof CreateEventExportJobRequest_1.CreateEventExportJobRequest) {
5989
+ contentType = createEventExportJobRequest.contentType;
5990
+ body = createEventExportJobRequest.body;
5991
+ }
5992
+ else {
5993
+ contentType = createEventExportJobRequest['Content-Type'];
5994
+ body = createEventExportJobRequest['body'];
5995
+ }
5996
+ }
5997
+ if (body === null || body === undefined) {
5998
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5999
+ }
6000
+ if (contentType !== undefined && contentType !== null) {
6001
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6002
+ }
6003
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6004
+ options.data = body !== undefined ? body : {};
6005
+ options.headers = localVarHeaderParameter;
6006
+ return options;
6007
+ },
5071
6008
  /**
5072
6009
  * 创建地理位置控制规则
5073
6010
  *
@@ -5617,6 +6554,45 @@ const ParamCreater = function () {
5617
6554
  options.headers = localVarHeaderParameter;
5618
6555
  return options;
5619
6556
  },
6557
+ /**
6558
+ * 创建安全报告订阅
6559
+ *
6560
+ * Please refer to HUAWEI cloud API Explorer for details.
6561
+ */
6562
+ createSecurityReportSubscription(createSecurityReportSubscriptionRequest) {
6563
+ const options = {
6564
+ method: "POST",
6565
+ url: "/v1/{project_id}/waf/security-report/subscriptions",
6566
+ contentType: "application/json",
6567
+ queryParams: {},
6568
+ pathParams: {},
6569
+ headers: {},
6570
+ data: {}
6571
+ };
6572
+ const localVarHeaderParameter = {};
6573
+ let body;
6574
+ let contentType;
6575
+ if (createSecurityReportSubscriptionRequest !== null && createSecurityReportSubscriptionRequest !== undefined) {
6576
+ if (createSecurityReportSubscriptionRequest instanceof CreateSecurityReportSubscriptionRequest_1.CreateSecurityReportSubscriptionRequest) {
6577
+ contentType = createSecurityReportSubscriptionRequest.contentType;
6578
+ body = createSecurityReportSubscriptionRequest.body;
6579
+ }
6580
+ else {
6581
+ contentType = createSecurityReportSubscriptionRequest['Content-Type'];
6582
+ body = createSecurityReportSubscriptionRequest['body'];
6583
+ }
6584
+ }
6585
+ if (body === null || body === undefined) {
6586
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6587
+ }
6588
+ if (contentType !== undefined && contentType !== null) {
6589
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6590
+ }
6591
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6592
+ options.data = body !== undefined ? body : {};
6593
+ options.headers = localVarHeaderParameter;
6594
+ return options;
6595
+ },
5620
6596
  /**
5621
6597
  * 创建引用表,引用表能够被CC攻击防护规则和精准访问防护中的规则所引用。
5622
6598
  *
@@ -5762,6 +6738,49 @@ const ParamCreater = function () {
5762
6738
  options.headers = localVarHeaderParameter;
5763
6739
  return options;
5764
6740
  },
6741
+ /**
6742
+ * 删除告警通知配置
6743
+ *
6744
+ * Please refer to HUAWEI cloud API Explorer for details.
6745
+ */
6746
+ deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest) {
6747
+ const options = {
6748
+ method: "DELETE",
6749
+ url: "/v2/{project_id}/waf/alert/{alert_id}",
6750
+ contentType: "application/json",
6751
+ queryParams: {},
6752
+ pathParams: {},
6753
+ headers: {}
6754
+ };
6755
+ const localVarHeaderParameter = {};
6756
+ let contentType;
6757
+ let xLanguage;
6758
+ let alertId;
6759
+ if (deleteAlertNoticeConfigRequest !== null && deleteAlertNoticeConfigRequest !== undefined) {
6760
+ if (deleteAlertNoticeConfigRequest instanceof DeleteAlertNoticeConfigRequest_1.DeleteAlertNoticeConfigRequest) {
6761
+ contentType = deleteAlertNoticeConfigRequest.contentType;
6762
+ xLanguage = deleteAlertNoticeConfigRequest.xLanguage;
6763
+ alertId = deleteAlertNoticeConfigRequest.alertId;
6764
+ }
6765
+ else {
6766
+ contentType = deleteAlertNoticeConfigRequest['Content-Type'];
6767
+ xLanguage = deleteAlertNoticeConfigRequest['X-Language'];
6768
+ alertId = deleteAlertNoticeConfigRequest['alert_id'];
6769
+ }
6770
+ }
6771
+ if (alertId === null || alertId === undefined) {
6772
+ throw new RequiredError('alertId', 'Required parameter alertId was null or undefined when calling deleteAlertNoticeConfig.');
6773
+ }
6774
+ if (contentType !== undefined && contentType !== null) {
6775
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6776
+ }
6777
+ if (xLanguage !== undefined && xLanguage !== null) {
6778
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6779
+ }
6780
+ options.pathParams = { 'alert_id': alertId, };
6781
+ options.headers = localVarHeaderParameter;
6782
+ return options;
6783
+ },
5765
6784
  /**
5766
6785
  * 删除JS脚本反爬虫防护规则
5767
6786
  *
@@ -6329,8 +7348,59 @@ const ParamCreater = function () {
6329
7348
  enterpriseProjectId = deleteIpGroupRequest['enterprise_project_id'];
6330
7349
  }
6331
7350
  }
6332
- if (id === null || id === undefined) {
6333
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteIpGroup.');
7351
+ if (id === null || id === undefined) {
7352
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteIpGroup.');
7353
+ }
7354
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7355
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7356
+ }
7357
+ if (contentType !== undefined && contentType !== null) {
7358
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7359
+ }
7360
+ options.queryParams = localVarQueryParameter;
7361
+ options.pathParams = { 'id': id, };
7362
+ options.headers = localVarHeaderParameter;
7363
+ return options;
7364
+ },
7365
+ /**
7366
+ * 删除IP情报防护规则
7367
+ *
7368
+ * Please refer to HUAWEI cloud API Explorer for details.
7369
+ */
7370
+ deleteIpReputationRule(deleteIpReputationRuleRequest) {
7371
+ const options = {
7372
+ method: "DELETE",
7373
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
7374
+ contentType: "application/json",
7375
+ queryParams: {},
7376
+ pathParams: {},
7377
+ headers: {}
7378
+ };
7379
+ const localVarHeaderParameter = {};
7380
+ const localVarQueryParameter = {};
7381
+ let contentType;
7382
+ let policyId;
7383
+ let ruleId;
7384
+ let enterpriseProjectId;
7385
+ if (deleteIpReputationRuleRequest !== null && deleteIpReputationRuleRequest !== undefined) {
7386
+ if (deleteIpReputationRuleRequest instanceof DeleteIpReputationRuleRequest_1.DeleteIpReputationRuleRequest) {
7387
+ contentType = deleteIpReputationRuleRequest.contentType;
7388
+ policyId = deleteIpReputationRuleRequest.policyId;
7389
+ ruleId = deleteIpReputationRuleRequest.ruleId;
7390
+ enterpriseProjectId = deleteIpReputationRuleRequest.enterpriseProjectId;
7391
+ }
7392
+ else {
7393
+ contentType = deleteIpReputationRuleRequest['Content-Type'];
7394
+ policyId = deleteIpReputationRuleRequest['policy_id'];
7395
+ ruleId = deleteIpReputationRuleRequest['rule_id'];
7396
+ enterpriseProjectId = deleteIpReputationRuleRequest['enterprise_project_id'];
7397
+ }
7398
+ }
7399
+ if (policyId === null || policyId === undefined) {
7400
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling deleteIpReputationRule.');
7401
+ }
7402
+ if (ruleId === null || ruleId === undefined) {
7403
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling deleteIpReputationRule.');
6334
7404
  }
6335
7405
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6336
7406
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
@@ -6339,7 +7409,7 @@ const ParamCreater = function () {
6339
7409
  localVarHeaderParameter['Content-Type'] = String(contentType);
6340
7410
  }
6341
7411
  options.queryParams = localVarQueryParameter;
6342
- options.pathParams = { 'id': id, };
7412
+ options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
6343
7413
  options.headers = localVarHeaderParameter;
6344
7414
  return options;
6345
7415
  },
@@ -6541,6 +7611,43 @@ const ParamCreater = function () {
6541
7611
  options.headers = localVarHeaderParameter;
6542
7612
  return options;
6543
7613
  },
7614
+ /**
7615
+ * 删除安全报告订阅
7616
+ *
7617
+ * Please refer to HUAWEI cloud API Explorer for details.
7618
+ */
7619
+ deleteSecurityReportSubscription(deleteSecurityReportSubscriptionRequest) {
7620
+ const options = {
7621
+ method: "DELETE",
7622
+ url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
7623
+ contentType: "application/json",
7624
+ queryParams: {},
7625
+ pathParams: {},
7626
+ headers: {}
7627
+ };
7628
+ const localVarHeaderParameter = {};
7629
+ let subscriptionId;
7630
+ let contentType;
7631
+ if (deleteSecurityReportSubscriptionRequest !== null && deleteSecurityReportSubscriptionRequest !== undefined) {
7632
+ if (deleteSecurityReportSubscriptionRequest instanceof DeleteSecurityReportSubscriptionRequest_1.DeleteSecurityReportSubscriptionRequest) {
7633
+ subscriptionId = deleteSecurityReportSubscriptionRequest.subscriptionId;
7634
+ contentType = deleteSecurityReportSubscriptionRequest.contentType;
7635
+ }
7636
+ else {
7637
+ subscriptionId = deleteSecurityReportSubscriptionRequest['subscription_id'];
7638
+ contentType = deleteSecurityReportSubscriptionRequest['Content-Type'];
7639
+ }
7640
+ }
7641
+ if (subscriptionId === null || subscriptionId === undefined) {
7642
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling deleteSecurityReportSubscription.');
7643
+ }
7644
+ if (contentType !== undefined && contentType !== null) {
7645
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7646
+ }
7647
+ options.pathParams = { 'subscription_id': subscriptionId, };
7648
+ options.headers = localVarHeaderParameter;
7649
+ return options;
7650
+ },
6544
7651
  /**
6545
7652
  * 删除引用表
6546
7653
  *
@@ -9118,6 +10225,56 @@ const ParamCreater = function () {
9118
10225
  options.headers = localVarHeaderParameter;
9119
10226
  return options;
9120
10227
  },
10228
+ /**
10229
+ * 查询攻击源ip
10230
+ *
10231
+ * Please refer to HUAWEI cloud API Explorer for details.
10232
+ */
10233
+ listSourceIpTop5(listSourceIpTop5Request) {
10234
+ const options = {
10235
+ method: "GET",
10236
+ url: "/v1/{project_id}/waf/event/attack/source",
10237
+ contentType: "application/json",
10238
+ queryParams: {},
10239
+ pathParams: {},
10240
+ headers: {}
10241
+ };
10242
+ const localVarHeaderParameter = {};
10243
+ const localVarQueryParameter = {};
10244
+ let contentType;
10245
+ let recent;
10246
+ let hosts;
10247
+ if (listSourceIpTop5Request !== null && listSourceIpTop5Request !== undefined) {
10248
+ if (listSourceIpTop5Request instanceof ListSourceIpTop5Request_1.ListSourceIpTop5Request) {
10249
+ contentType = listSourceIpTop5Request.contentType;
10250
+ recent = listSourceIpTop5Request.recent;
10251
+ hosts = listSourceIpTop5Request.hosts;
10252
+ }
10253
+ else {
10254
+ contentType = listSourceIpTop5Request['Content-Type'];
10255
+ recent = listSourceIpTop5Request['recent'];
10256
+ hosts = listSourceIpTop5Request['hosts'];
10257
+ }
10258
+ }
10259
+ if (recent === null || recent === undefined) {
10260
+ throw new RequiredError('recent', 'Required parameter recent was null or undefined when calling listSourceIpTop5.');
10261
+ }
10262
+ if (recent !== null && recent !== undefined) {
10263
+ localVarQueryParameter['recent'] = recent;
10264
+ }
10265
+ if (hosts === null || hosts === undefined) {
10266
+ throw new RequiredError('hosts', 'Required parameter hosts was null or undefined when calling listSourceIpTop5.');
10267
+ }
10268
+ if (hosts !== null && hosts !== undefined) {
10269
+ localVarQueryParameter['hosts'] = hosts;
10270
+ }
10271
+ if (contentType !== undefined && contentType !== null) {
10272
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10273
+ }
10274
+ options.queryParams = localVarQueryParameter;
10275
+ options.headers = localVarHeaderParameter;
10276
+ return options;
10277
+ },
9121
10278
  /**
9122
10279
  * 查询安全总览请求与攻击数量。
9123
10280
  *
@@ -9186,6 +10343,53 @@ const ParamCreater = function () {
9186
10343
  options.headers = localVarHeaderParameter;
9187
10344
  return options;
9188
10345
  },
10346
+ /**
10347
+ * 查询攻击事件分布类型。
10348
+ *
10349
+ * Please refer to HUAWEI cloud API Explorer for details.
10350
+ */
10351
+ listThreats(listThreatsRequest) {
10352
+ const options = {
10353
+ method: "GET",
10354
+ url: "/v1/{project_id}/waf/event/attack/type",
10355
+ contentType: "application/json",
10356
+ queryParams: {},
10357
+ pathParams: {},
10358
+ headers: {}
10359
+ };
10360
+ const localVarHeaderParameter = {};
10361
+ const localVarQueryParameter = {};
10362
+ let contentType;
10363
+ let recent;
10364
+ let hosts;
10365
+ if (listThreatsRequest !== null && listThreatsRequest !== undefined) {
10366
+ if (listThreatsRequest instanceof ListThreatsRequest_1.ListThreatsRequest) {
10367
+ contentType = listThreatsRequest.contentType;
10368
+ recent = listThreatsRequest.recent;
10369
+ hosts = listThreatsRequest.hosts;
10370
+ }
10371
+ else {
10372
+ contentType = listThreatsRequest['Content-Type'];
10373
+ recent = listThreatsRequest['recent'];
10374
+ hosts = listThreatsRequest['hosts'];
10375
+ }
10376
+ }
10377
+ if (recent === null || recent === undefined) {
10378
+ throw new RequiredError('recent', 'Required parameter recent was null or undefined when calling listThreats.');
10379
+ }
10380
+ if (recent !== null && recent !== undefined) {
10381
+ localVarQueryParameter['recent'] = recent;
10382
+ }
10383
+ if (hosts !== null && hosts !== undefined) {
10384
+ localVarQueryParameter['hosts'] = hosts;
10385
+ }
10386
+ if (contentType !== undefined && contentType !== null) {
10387
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10388
+ }
10389
+ options.queryParams = localVarQueryParameter;
10390
+ options.headers = localVarHeaderParameter;
10391
+ return options;
10392
+ },
9189
10393
  /**
9190
10394
  * 查询业务异常TOP统计信息。
9191
10395
  *
@@ -9482,6 +10686,77 @@ const ParamCreater = function () {
9482
10686
  options.headers = localVarHeaderParameter;
9483
10687
  return options;
9484
10688
  },
10689
+ /**
10690
+ * 查询QPS。
10691
+ *
10692
+ * Please refer to HUAWEI cloud API Explorer for details.
10693
+ */
10694
+ listUrl(listUrlRequest) {
10695
+ const options = {
10696
+ method: "GET",
10697
+ url: "/v1/{project_id}/waf/event/url",
10698
+ contentType: "application/json",
10699
+ queryParams: {},
10700
+ pathParams: {},
10701
+ headers: {}
10702
+ };
10703
+ const localVarHeaderParameter = {};
10704
+ const localVarQueryParameter = {};
10705
+ let contentType;
10706
+ let top;
10707
+ let recent;
10708
+ let from;
10709
+ let to;
10710
+ let hosts;
10711
+ let instances;
10712
+ if (listUrlRequest !== null && listUrlRequest !== undefined) {
10713
+ if (listUrlRequest instanceof ListUrlRequest_1.ListUrlRequest) {
10714
+ contentType = listUrlRequest.contentType;
10715
+ top = listUrlRequest.top;
10716
+ recent = listUrlRequest.recent;
10717
+ from = listUrlRequest.from;
10718
+ to = listUrlRequest.to;
10719
+ hosts = listUrlRequest.hosts;
10720
+ instances = listUrlRequest.instances;
10721
+ }
10722
+ else {
10723
+ contentType = listUrlRequest['Content-Type'];
10724
+ top = listUrlRequest['top'];
10725
+ recent = listUrlRequest['recent'];
10726
+ from = listUrlRequest['from'];
10727
+ to = listUrlRequest['to'];
10728
+ hosts = listUrlRequest['hosts'];
10729
+ instances = listUrlRequest['instances'];
10730
+ }
10731
+ }
10732
+ if (top === null || top === undefined) {
10733
+ throw new RequiredError('top', 'Required parameter top was null or undefined when calling listUrl.');
10734
+ }
10735
+ if (top !== null && top !== undefined) {
10736
+ localVarQueryParameter['top'] = top;
10737
+ }
10738
+ if (recent !== null && recent !== undefined) {
10739
+ localVarQueryParameter['recent'] = recent;
10740
+ }
10741
+ if (from !== null && from !== undefined) {
10742
+ localVarQueryParameter['from'] = from;
10743
+ }
10744
+ if (to !== null && to !== undefined) {
10745
+ localVarQueryParameter['to'] = to;
10746
+ }
10747
+ if (hosts !== null && hosts !== undefined) {
10748
+ localVarQueryParameter['hosts'] = hosts;
10749
+ }
10750
+ if (instances !== null && instances !== undefined) {
10751
+ localVarQueryParameter['instances'] = instances;
10752
+ }
10753
+ if (contentType !== undefined && contentType !== null) {
10754
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10755
+ }
10756
+ options.queryParams = localVarQueryParameter;
10757
+ options.headers = localVarHeaderParameter;
10758
+ return options;
10759
+ },
9485
10760
  /**
9486
10761
  * 查询引用表列表
9487
10762
  *
@@ -12406,6 +13681,52 @@ const ParamCreater = function () {
12406
13681
  options.headers = localVarHeaderParameter;
12407
13682
  return options;
12408
13683
  },
13684
+ /**
13685
+ * 返回独享接入进度
13686
+ *
13687
+ * Please refer to HUAWEI cloud API Explorer for details.
13688
+ */
13689
+ updatePremiumInstanceProgress(updatePremiumInstanceProgressRequest) {
13690
+ const options = {
13691
+ method: "PUT",
13692
+ url: "/v1/{project_id}/premium-waf/host/{host_id}/access-progress",
13693
+ contentType: "application/json",
13694
+ queryParams: {},
13695
+ pathParams: {},
13696
+ headers: {},
13697
+ data: {}
13698
+ };
13699
+ const localVarHeaderParameter = {};
13700
+ let body;
13701
+ let contentType;
13702
+ let hostId;
13703
+ if (updatePremiumInstanceProgressRequest !== null && updatePremiumInstanceProgressRequest !== undefined) {
13704
+ if (updatePremiumInstanceProgressRequest instanceof UpdatePremiumInstanceProgressRequest_1.UpdatePremiumInstanceProgressRequest) {
13705
+ contentType = updatePremiumInstanceProgressRequest.contentType;
13706
+ hostId = updatePremiumInstanceProgressRequest.hostId;
13707
+ body = updatePremiumInstanceProgressRequest.body;
13708
+ }
13709
+ else {
13710
+ contentType = updatePremiumInstanceProgressRequest['Content-Type'];
13711
+ hostId = updatePremiumInstanceProgressRequest['host_id'];
13712
+ body = updatePremiumInstanceProgressRequest['body'];
13713
+ }
13714
+ }
13715
+ if (hostId === null || hostId === undefined) {
13716
+ throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling updatePremiumInstanceProgress.');
13717
+ }
13718
+ if (body === null || body === undefined) {
13719
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
13720
+ }
13721
+ if (contentType !== undefined && contentType !== null) {
13722
+ localVarHeaderParameter['Content-Type'] = String(contentType);
13723
+ }
13724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13725
+ options.data = body !== undefined ? body : {};
13726
+ options.pathParams = { 'host_id': hostId, };
13727
+ options.headers = localVarHeaderParameter;
13728
+ return options;
13729
+ },
12409
13730
  /**
12410
13731
  * 更新隐私屏蔽防护规则
12411
13732
  *
@@ -12526,6 +13847,52 @@ const ParamCreater = function () {
12526
13847
  options.headers = localVarHeaderParameter;
12527
13848
  return options;
12528
13849
  },
13850
+ /**
13851
+ * 修改安全报告的订阅
13852
+ *
13853
+ * Please refer to HUAWEI cloud API Explorer for details.
13854
+ */
13855
+ updateSecurityReportSubscription(updateSecurityReportSubscriptionRequest) {
13856
+ const options = {
13857
+ method: "PUT",
13858
+ url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
13859
+ contentType: "application/json",
13860
+ queryParams: {},
13861
+ pathParams: {},
13862
+ headers: {},
13863
+ data: {}
13864
+ };
13865
+ const localVarHeaderParameter = {};
13866
+ let body;
13867
+ let contentType;
13868
+ let subscriptionId;
13869
+ if (updateSecurityReportSubscriptionRequest !== null && updateSecurityReportSubscriptionRequest !== undefined) {
13870
+ if (updateSecurityReportSubscriptionRequest instanceof UpdateSecurityReportSubscriptionRequest_1.UpdateSecurityReportSubscriptionRequest) {
13871
+ contentType = updateSecurityReportSubscriptionRequest.contentType;
13872
+ subscriptionId = updateSecurityReportSubscriptionRequest.subscriptionId;
13873
+ body = updateSecurityReportSubscriptionRequest.body;
13874
+ }
13875
+ else {
13876
+ contentType = updateSecurityReportSubscriptionRequest['Content-Type'];
13877
+ subscriptionId = updateSecurityReportSubscriptionRequest['subscription_id'];
13878
+ body = updateSecurityReportSubscriptionRequest['body'];
13879
+ }
13880
+ }
13881
+ if (subscriptionId === null || subscriptionId === undefined) {
13882
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling updateSecurityReportSubscription.');
13883
+ }
13884
+ if (body === null || body === undefined) {
13885
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
13886
+ }
13887
+ if (contentType !== undefined && contentType !== null) {
13888
+ localVarHeaderParameter['Content-Type'] = String(contentType);
13889
+ }
13890
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13891
+ options.data = body !== undefined ? body : {};
13892
+ options.pathParams = { 'subscription_id': subscriptionId, };
13893
+ options.headers = localVarHeaderParameter;
13894
+ return options;
13895
+ },
12529
13896
  /**
12530
13897
  * 修改引用表
12531
13898
  *
@@ -12637,6 +14004,44 @@ const ParamCreater = function () {
12637
14004
  options.headers = localVarHeaderParameter;
12638
14005
  return options;
12639
14006
  },
14007
+ /**
14008
+ * 查询用户托管在云解析上的域名
14009
+ *
14010
+ * Please refer to HUAWEI cloud API Explorer for details.
14011
+ */
14012
+ confirmDnsDomain(confirmDnsDomainRequest) {
14013
+ const options = {
14014
+ method: "GET",
14015
+ url: "/v1/{project_id}/waf/dns-domain",
14016
+ contentType: "application/json",
14017
+ queryParams: {},
14018
+ pathParams: {},
14019
+ headers: {}
14020
+ };
14021
+ const localVarHeaderParameter = {};
14022
+ const localVarQueryParameter = {};
14023
+ let contentType;
14024
+ let enterpriseProjectId;
14025
+ if (confirmDnsDomainRequest !== null && confirmDnsDomainRequest !== undefined) {
14026
+ if (confirmDnsDomainRequest instanceof ConfirmDnsDomainRequest_1.ConfirmDnsDomainRequest) {
14027
+ contentType = confirmDnsDomainRequest.contentType;
14028
+ enterpriseProjectId = confirmDnsDomainRequest.enterpriseProjectId;
14029
+ }
14030
+ else {
14031
+ contentType = confirmDnsDomainRequest['Content-Type'];
14032
+ enterpriseProjectId = confirmDnsDomainRequest['enterprise_project_id'];
14033
+ }
14034
+ }
14035
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
14036
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
14037
+ }
14038
+ if (contentType !== undefined && contentType !== null) {
14039
+ localVarHeaderParameter['Content-Type'] = String(contentType);
14040
+ }
14041
+ options.queryParams = localVarQueryParameter;
14042
+ options.headers = localVarHeaderParameter;
14043
+ return options;
14044
+ },
12640
14045
  /**
12641
14046
  * 快速接入,直接去修改用户的DNS记录,使域名快速接入WAF
12642
14047
  *