@huaweicloud/huaweicloud-sdk-waf 3.1.173 → 3.1.175

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 (437) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +810 -60
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +2063 -202
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/WafRegion.d.ts +5 -0
  7. package/v1/WafRegion.d.ts.map +1 -1
  8. package/v1/WafRegion.js +11 -1
  9. package/v1/WafRegion.js.map +1 -1
  10. package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts +8 -0
  11. package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts.map +1 -0
  12. package/v1/model/AntileakageMapResponseBodyLeakagemap.js +17 -0
  13. package/v1/model/AntileakageMapResponseBodyLeakagemap.js.map +1 -0
  14. package/v1/model/AntileakageMapResponseBodyLocale.d.ts +18 -0
  15. package/v1/model/AntileakageMapResponseBodyLocale.d.ts.map +1 -0
  16. package/v1/model/AntileakageMapResponseBodyLocale.js +39 -0
  17. package/v1/model/AntileakageMapResponseBodyLocale.js.map +1 -0
  18. package/v1/model/CheckAgencyRequest.d.ts +8 -0
  19. package/v1/model/CheckAgencyRequest.d.ts.map +1 -0
  20. package/v1/model/CheckAgencyRequest.js +20 -0
  21. package/v1/model/CheckAgencyRequest.js.map +1 -0
  22. package/v1/model/CheckAgencyResponse.d.ts +21 -0
  23. package/v1/model/CheckAgencyResponse.d.ts.map +1 -0
  24. package/v1/model/CheckAgencyResponse.js +47 -0
  25. package/v1/model/CheckAgencyResponse.js.map +1 -0
  26. package/v1/model/ConfirmApplicationTypesRequest.d.ts +12 -0
  27. package/v1/model/ConfirmApplicationTypesRequest.d.ts.map +1 -0
  28. package/v1/model/ConfirmApplicationTypesRequest.js +28 -0
  29. package/v1/model/ConfirmApplicationTypesRequest.js.map +1 -0
  30. package/v1/model/ConfirmApplicationTypesResponse.d.ts +9 -0
  31. package/v1/model/ConfirmApplicationTypesResponse.d.ts.map +1 -0
  32. package/v1/model/ConfirmApplicationTypesResponse.js +19 -0
  33. package/v1/model/ConfirmApplicationTypesResponse.js.map +1 -0
  34. package/v1/model/ConfirmAsyncJobRequest.d.ts +14 -0
  35. package/v1/model/ConfirmAsyncJobRequest.d.ts.map +1 -0
  36. package/v1/model/ConfirmAsyncJobRequest.js +35 -0
  37. package/v1/model/ConfirmAsyncJobRequest.js.map +1 -0
  38. package/v1/model/ConfirmAsyncJobResponse.d.ts +13 -0
  39. package/v1/model/ConfirmAsyncJobResponse.d.ts.map +1 -0
  40. package/v1/model/ConfirmAsyncJobResponse.js +29 -0
  41. package/v1/model/ConfirmAsyncJobResponse.js.map +1 -0
  42. package/v1/model/ConfirmIpReputationRuleRequest.d.ts +16 -0
  43. package/v1/model/ConfirmIpReputationRuleRequest.d.ts.map +1 -0
  44. package/v1/model/ConfirmIpReputationRuleRequest.js +42 -0
  45. package/v1/model/ConfirmIpReputationRuleRequest.js.map +1 -0
  46. package/v1/model/ConfirmIpReputationRuleResponse.d.ts +24 -0
  47. package/v1/model/ConfirmIpReputationRuleResponse.d.ts.map +1 -0
  48. package/v1/model/ConfirmIpReputationRuleResponse.js +47 -0
  49. package/v1/model/ConfirmIpReputationRuleResponse.js.map +1 -0
  50. package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts +10 -0
  51. package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts.map +1 -0
  52. package/v1/model/ConfirmPolicyAntileakageMapRequest.js +25 -0
  53. package/v1/model/ConfirmPolicyAntileakageMapRequest.js.map +1 -0
  54. package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts +11 -0
  55. package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts.map +1 -0
  56. package/v1/model/ConfirmPolicyAntileakageMapResponse.js +19 -0
  57. package/v1/model/ConfirmPolicyAntileakageMapResponse.js.map +1 -0
  58. package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts +12 -0
  59. package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts.map +1 -0
  60. package/v1/model/ConfirmPolicyIpReputationMapRequest.js +30 -0
  61. package/v1/model/ConfirmPolicyIpReputationMapRequest.js.map +1 -0
  62. package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts +13 -0
  63. package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts.map +1 -0
  64. package/v1/model/ConfirmPolicyIpReputationMapResponse.js +25 -0
  65. package/v1/model/ConfirmPolicyIpReputationMapResponse.js.map +1 -0
  66. package/v1/model/ConfirmProtectionTypesRequest.d.ts +12 -0
  67. package/v1/model/ConfirmProtectionTypesRequest.d.ts.map +1 -0
  68. package/v1/model/ConfirmProtectionTypesRequest.js +28 -0
  69. package/v1/model/ConfirmProtectionTypesRequest.js.map +1 -0
  70. package/v1/model/ConfirmProtectionTypesResponse.d.ts +9 -0
  71. package/v1/model/ConfirmProtectionTypesResponse.d.ts.map +1 -0
  72. package/v1/model/ConfirmProtectionTypesResponse.js +19 -0
  73. package/v1/model/ConfirmProtectionTypesResponse.js.map +1 -0
  74. package/v1/model/ConfirmThreatMapRequest.d.ts +8 -0
  75. package/v1/model/ConfirmThreatMapRequest.d.ts.map +1 -0
  76. package/v1/model/ConfirmThreatMapRequest.js +20 -0
  77. package/v1/model/ConfirmThreatMapRequest.js.map +1 -0
  78. package/v1/model/ConfirmThreatMapResponse.d.ts +10 -0
  79. package/v1/model/ConfirmThreatMapResponse.d.ts.map +1 -0
  80. package/v1/model/ConfirmThreatMapResponse.js +19 -0
  81. package/v1/model/ConfirmThreatMapResponse.js.map +1 -0
  82. package/v1/model/CreateIpReputationRuleRequest.d.ts +19 -0
  83. package/v1/model/CreateIpReputationRuleRequest.d.ts.map +1 -0
  84. package/v1/model/CreateIpReputationRuleRequest.js +45 -0
  85. package/v1/model/CreateIpReputationRuleRequest.js.map +1 -0
  86. package/v1/model/CreateIpReputationRuleRequestBody.d.ts +19 -0
  87. package/v1/model/CreateIpReputationRuleRequestBody.d.ts.map +1 -0
  88. package/v1/model/CreateIpReputationRuleRequestBody.js +41 -0
  89. package/v1/model/CreateIpReputationRuleRequestBody.js.map +1 -0
  90. package/v1/model/CreateIpReputationRuleResponse.d.ts +26 -0
  91. package/v1/model/CreateIpReputationRuleResponse.d.ts.map +1 -0
  92. package/v1/model/CreateIpReputationRuleResponse.js +51 -0
  93. package/v1/model/CreateIpReputationRuleResponse.js.map +1 -0
  94. package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts +6 -0
  95. package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts.map +1 -0
  96. package/v1/model/CreateIpReputationRuleResponseBodyAction.js +13 -0
  97. package/v1/model/CreateIpReputationRuleResponseBodyAction.js.map +1 -0
  98. package/v1/model/CreatePremiumHostRequestBody.d.ts +1 -1
  99. package/v1/model/CreatePremiumHostRequestBody.d.ts.map +1 -1
  100. package/v1/model/CreatePremiumHostRequestBody.js +1 -2
  101. package/v1/model/CreatePremiumHostRequestBody.js.map +1 -1
  102. package/v1/model/EipInfo.d.ts +16 -0
  103. package/v1/model/EipInfo.d.ts.map +1 -0
  104. package/v1/model/EipInfo.js +39 -0
  105. package/v1/model/EipInfo.js.map +1 -0
  106. package/v1/model/InstanceTag.d.ts +8 -0
  107. package/v1/model/InstanceTag.d.ts.map +1 -0
  108. package/v1/model/InstanceTag.js +17 -0
  109. package/v1/model/InstanceTag.js.map +1 -0
  110. package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts +6 -0
  111. package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts.map +1 -0
  112. package/v1/model/IpReputationMapResponseBodyIpReputationMap.js +13 -0
  113. package/v1/model/IpReputationMapResponseBodyIpReputationMap.js.map +1 -0
  114. package/v1/model/IpReputationMapResponseBodyLocale.d.ts +40 -0
  115. package/v1/model/IpReputationMapResponseBodyLocale.d.ts.map +1 -0
  116. package/v1/model/IpReputationMapResponseBodyLocale.js +99 -0
  117. package/v1/model/IpReputationMapResponseBodyLocale.js.map +1 -0
  118. package/v1/model/IpReputationRulesListInfo.d.ts +21 -0
  119. package/v1/model/IpReputationRulesListInfo.d.ts.map +1 -0
  120. package/v1/model/IpReputationRulesListInfo.js +41 -0
  121. package/v1/model/IpReputationRulesListInfo.js.map +1 -0
  122. package/v1/model/IpReputationRulesListInfoAction.d.ts +15 -0
  123. package/v1/model/IpReputationRulesListInfoAction.d.ts.map +1 -0
  124. package/v1/model/IpReputationRulesListInfoAction.js +24 -0
  125. package/v1/model/IpReputationRulesListInfoAction.js.map +1 -0
  126. package/v1/model/LeakageListInfo.d.ts +2 -0
  127. package/v1/model/LeakageListInfo.d.ts.map +1 -1
  128. package/v1/model/LeakageListInfo.js +4 -0
  129. package/v1/model/LeakageListInfo.js.map +1 -1
  130. package/v1/model/ListAntiTamperPolicyRulesRequest.d.ts +18 -0
  131. package/v1/model/ListAntiTamperPolicyRulesRequest.d.ts.map +1 -0
  132. package/v1/model/ListAntiTamperPolicyRulesRequest.js +42 -0
  133. package/v1/model/ListAntiTamperPolicyRulesRequest.js.map +1 -0
  134. package/v1/model/ListAntiTamperPolicyRulesResponse.d.ts +10 -0
  135. package/v1/model/ListAntiTamperPolicyRulesResponse.d.ts.map +1 -0
  136. package/v1/model/ListAntiTamperPolicyRulesResponse.js +19 -0
  137. package/v1/model/ListAntiTamperPolicyRulesResponse.js.map +1 -0
  138. package/v1/model/ListAntileakagePolicyRulesRequest.d.ts +18 -0
  139. package/v1/model/ListAntileakagePolicyRulesRequest.d.ts.map +1 -0
  140. package/v1/model/ListAntileakagePolicyRulesRequest.js +42 -0
  141. package/v1/model/ListAntileakagePolicyRulesRequest.js.map +1 -0
  142. package/v1/model/ListAntileakagePolicyRulesResponse.d.ts +10 -0
  143. package/v1/model/ListAntileakagePolicyRulesResponse.d.ts.map +1 -0
  144. package/v1/model/ListAntileakagePolicyRulesResponse.js +19 -0
  145. package/v1/model/ListAntileakagePolicyRulesResponse.js.map +1 -0
  146. package/v1/model/ListCcPolicyRulesRequest.d.ts +18 -0
  147. package/v1/model/ListCcPolicyRulesRequest.d.ts.map +1 -0
  148. package/v1/model/ListCcPolicyRulesRequest.js +42 -0
  149. package/v1/model/ListCcPolicyRulesRequest.js.map +1 -0
  150. package/v1/model/ListCcPolicyRulesResponse.d.ts +10 -0
  151. package/v1/model/ListCcPolicyRulesResponse.d.ts.map +1 -0
  152. package/v1/model/ListCcPolicyRulesResponse.js +19 -0
  153. package/v1/model/ListCcPolicyRulesResponse.js.map +1 -0
  154. package/v1/model/ListCustomPolicyRulesRequest.d.ts +18 -0
  155. package/v1/model/ListCustomPolicyRulesRequest.d.ts.map +1 -0
  156. package/v1/model/ListCustomPolicyRulesRequest.js +42 -0
  157. package/v1/model/ListCustomPolicyRulesRequest.js.map +1 -0
  158. package/v1/model/ListCustomPolicyRulesResponse.d.ts +10 -0
  159. package/v1/model/ListCustomPolicyRulesResponse.d.ts.map +1 -0
  160. package/v1/model/ListCustomPolicyRulesResponse.js +19 -0
  161. package/v1/model/ListCustomPolicyRulesResponse.js.map +1 -0
  162. package/v1/model/ListGeoIpPolicyRulesRequest.d.ts +18 -0
  163. package/v1/model/ListGeoIpPolicyRulesRequest.d.ts.map +1 -0
  164. package/v1/model/ListGeoIpPolicyRulesRequest.js +42 -0
  165. package/v1/model/ListGeoIpPolicyRulesRequest.js.map +1 -0
  166. package/v1/model/ListGeoIpPolicyRulesResponse.d.ts +10 -0
  167. package/v1/model/ListGeoIpPolicyRulesResponse.d.ts.map +1 -0
  168. package/v1/model/ListGeoIpPolicyRulesResponse.js +19 -0
  169. package/v1/model/ListGeoIpPolicyRulesResponse.js.map +1 -0
  170. package/v1/model/ListIgnorePolicyRulesRequest.d.ts +18 -0
  171. package/v1/model/ListIgnorePolicyRulesRequest.d.ts.map +1 -0
  172. package/v1/model/ListIgnorePolicyRulesRequest.js +42 -0
  173. package/v1/model/ListIgnorePolicyRulesRequest.js.map +1 -0
  174. package/v1/model/ListIgnorePolicyRulesResponse.d.ts +10 -0
  175. package/v1/model/ListIgnorePolicyRulesResponse.d.ts.map +1 -0
  176. package/v1/model/ListIgnorePolicyRulesResponse.js +19 -0
  177. package/v1/model/ListIgnorePolicyRulesResponse.js.map +1 -0
  178. package/v1/model/ListInstanceTagsRequest.d.ts +14 -0
  179. package/v1/model/ListInstanceTagsRequest.d.ts.map +1 -0
  180. package/v1/model/ListInstanceTagsRequest.js +35 -0
  181. package/v1/model/ListInstanceTagsRequest.js.map +1 -0
  182. package/v1/model/ListInstanceTagsResponse.d.ts +8 -0
  183. package/v1/model/ListInstanceTagsResponse.d.ts.map +1 -0
  184. package/v1/model/ListInstanceTagsResponse.js +15 -0
  185. package/v1/model/ListInstanceTagsResponse.js.map +1 -0
  186. package/v1/model/ListIpReputationPolicyRulesRequest.d.ts +18 -0
  187. package/v1/model/ListIpReputationPolicyRulesRequest.d.ts.map +1 -0
  188. package/v1/model/ListIpReputationPolicyRulesRequest.js +42 -0
  189. package/v1/model/ListIpReputationPolicyRulesRequest.js.map +1 -0
  190. package/v1/model/ListIpReputationPolicyRulesResponse.d.ts +10 -0
  191. package/v1/model/ListIpReputationPolicyRulesResponse.d.ts.map +1 -0
  192. package/v1/model/ListIpReputationPolicyRulesResponse.js +19 -0
  193. package/v1/model/ListIpReputationPolicyRulesResponse.js.map +1 -0
  194. package/v1/model/ListIpReputationRulesRequest.d.ts +20 -0
  195. package/v1/model/ListIpReputationRulesRequest.d.ts.map +1 -0
  196. package/v1/model/ListIpReputationRulesRequest.js +51 -0
  197. package/v1/model/ListIpReputationRulesRequest.js.map +1 -0
  198. package/v1/model/ListIpReputationRulesResponse.d.ts +10 -0
  199. package/v1/model/ListIpReputationRulesResponse.d.ts.map +1 -0
  200. package/v1/model/ListIpReputationRulesResponse.js +19 -0
  201. package/v1/model/ListIpReputationRulesResponse.js.map +1 -0
  202. package/v1/model/ListPrivacyPolicyRulesRequest.d.ts +18 -0
  203. package/v1/model/ListPrivacyPolicyRulesRequest.d.ts.map +1 -0
  204. package/v1/model/ListPrivacyPolicyRulesRequest.js +42 -0
  205. package/v1/model/ListPrivacyPolicyRulesRequest.js.map +1 -0
  206. package/v1/model/ListPrivacyPolicyRulesResponse.d.ts +10 -0
  207. package/v1/model/ListPrivacyPolicyRulesResponse.d.ts.map +1 -0
  208. package/v1/model/ListPrivacyPolicyRulesResponse.js +19 -0
  209. package/v1/model/ListPrivacyPolicyRulesResponse.js.map +1 -0
  210. package/v1/model/ListProtectableResourcesRequest.d.ts +18 -0
  211. package/v1/model/ListProtectableResourcesRequest.d.ts.map +1 -0
  212. package/v1/model/ListProtectableResourcesRequest.js +45 -0
  213. package/v1/model/ListProtectableResourcesRequest.js.map +1 -0
  214. package/v1/model/ListProtectableResourcesResponse.d.ts +10 -0
  215. package/v1/model/ListProtectableResourcesResponse.d.ts.map +1 -0
  216. package/v1/model/ListProtectableResourcesResponse.js +19 -0
  217. package/v1/model/ListProtectableResourcesResponse.js.map +1 -0
  218. package/v1/model/ListResponseCodeTimelineRequest.d.ts +36 -0
  219. package/v1/model/ListResponseCodeTimelineRequest.d.ts.map +1 -0
  220. package/v1/model/ListResponseCodeTimelineRequest.js +77 -0
  221. package/v1/model/ListResponseCodeTimelineRequest.js.map +1 -0
  222. package/v1/model/ListResponseCodeTimelineResponse.d.ts +8 -0
  223. package/v1/model/ListResponseCodeTimelineResponse.d.ts.map +1 -0
  224. package/v1/model/ListResponseCodeTimelineResponse.js +15 -0
  225. package/v1/model/ListResponseCodeTimelineResponse.js.map +1 -0
  226. package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts +17 -0
  227. package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts.map +1 -0
  228. package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js +42 -0
  229. package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js.map +1 -0
  230. package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts +12 -0
  231. package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts.map +1 -0
  232. package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js +31 -0
  233. package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js.map +1 -0
  234. package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts +16 -0
  235. package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts.map +1 -0
  236. package/v1/model/ListSecurityReportHistoryPeriodsRequest.js +39 -0
  237. package/v1/model/ListSecurityReportHistoryPeriodsRequest.js.map +1 -0
  238. package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts +10 -0
  239. package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts.map +1 -0
  240. package/v1/model/ListSecurityReportHistoryPeriodsResponse.js +19 -0
  241. package/v1/model/ListSecurityReportHistoryPeriodsResponse.js.map +1 -0
  242. package/v1/model/ListSecurityReportSendingRecordResponseItems.d.ts +29 -0
  243. package/v1/model/ListSecurityReportSendingRecordResponseItems.d.ts.map +1 -0
  244. package/v1/model/ListSecurityReportSendingRecordResponseItems.js +75 -0
  245. package/v1/model/ListSecurityReportSendingRecordResponseItems.js.map +1 -0
  246. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.d.ts +12 -0
  247. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.d.ts.map +1 -0
  248. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.js +29 -0
  249. package/v1/model/ListSecurityReportSendingRecordResponseStatPeriod.js.map +1 -0
  250. package/v1/model/ListSecurityReportSendingRecordsRequest.d.ts +20 -0
  251. package/v1/model/ListSecurityReportSendingRecordsRequest.d.ts.map +1 -0
  252. package/v1/model/ListSecurityReportSendingRecordsRequest.js +48 -0
  253. package/v1/model/ListSecurityReportSendingRecordsRequest.js.map +1 -0
  254. package/v1/model/ListSecurityReportSendingRecordsResponse.d.ts +10 -0
  255. package/v1/model/ListSecurityReportSendingRecordsResponse.d.ts.map +1 -0
  256. package/v1/model/ListSecurityReportSendingRecordsResponse.js +19 -0
  257. package/v1/model/ListSecurityReportSendingRecordsResponse.js.map +1 -0
  258. package/v1/model/ListWhiteblackipPolicyRulesRequest.d.ts +18 -0
  259. package/v1/model/ListWhiteblackipPolicyRulesRequest.d.ts.map +1 -0
  260. package/v1/model/ListWhiteblackipPolicyRulesRequest.js +42 -0
  261. package/v1/model/ListWhiteblackipPolicyRulesRequest.js.map +1 -0
  262. package/v1/model/ListWhiteblackipPolicyRulesResponse.d.ts +12 -0
  263. package/v1/model/ListWhiteblackipPolicyRulesResponse.d.ts.map +1 -0
  264. package/v1/model/ListWhiteblackipPolicyRulesResponse.js +23 -0
  265. package/v1/model/ListWhiteblackipPolicyRulesResponse.js.map +1 -0
  266. package/v1/model/Listener.d.ts +14 -0
  267. package/v1/model/Listener.d.ts.map +1 -0
  268. package/v1/model/Listener.js +31 -0
  269. package/v1/model/Listener.js.map +1 -0
  270. package/v1/model/ProtectableResources.d.ts +26 -0
  271. package/v1/model/ProtectableResources.d.ts.map +1 -0
  272. package/v1/model/ProtectableResources.js +57 -0
  273. package/v1/model/ProtectableResources.js.map +1 -0
  274. package/v1/model/SecurityReportContentResponseReportContentInfo.d.ts +59 -0
  275. package/v1/model/SecurityReportContentResponseReportContentInfo.d.ts.map +1 -0
  276. package/v1/model/SecurityReportContentResponseReportContentInfo.js +119 -0
  277. package/v1/model/SecurityReportContentResponseReportContentInfo.js.map +1 -0
  278. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.d.ts +8 -0
  279. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.d.ts.map +1 -0
  280. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.js +17 -0
  281. package/v1/model/SecurityReportContentResponseReportContentInfoAttackTypeDistributionInfoList.js.map +1 -0
  282. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.d.ts +14 -0
  283. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.d.ts.map +1 -0
  284. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.js +29 -0
  285. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfo.js.map +1 -0
  286. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.d.ts +9 -0
  287. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.d.ts.map +1 -0
  288. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.js +17 -0
  289. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoAverageInfoList.js.map +1 -0
  290. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.d.ts +9 -0
  291. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.d.ts.map +1 -0
  292. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.js +17 -0
  293. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoPeakInfoList.js.map +1 -0
  294. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.d.ts +8 -0
  295. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.d.ts.map +1 -0
  296. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.js +17 -0
  297. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline.js.map +1 -0
  298. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.d.ts +8 -0
  299. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.d.ts.map +1 -0
  300. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.js +17 -0
  301. package/v1/model/SecurityReportContentResponseReportContentInfoBandwidthStatisticsInfoTimeline1.js.map +1 -0
  302. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.d.ts +13 -0
  303. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.d.ts.map +1 -0
  304. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.js +27 -0
  305. package/v1/model/SecurityReportContentResponseReportContentInfoOverviewStatisticsListInfo.js.map +1 -0
  306. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.d.ts +14 -0
  307. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.d.ts.map +1 -0
  308. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.js +29 -0
  309. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfo.js.map +1 -0
  310. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.d.ts +9 -0
  311. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.d.ts.map +1 -0
  312. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.js +17 -0
  313. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoAverageInfoList.js.map +1 -0
  314. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.d.ts +9 -0
  315. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.d.ts.map +1 -0
  316. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.js +17 -0
  317. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoPeakInfoList.js.map +1 -0
  318. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.d.ts +8 -0
  319. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.d.ts.map +1 -0
  320. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.js +17 -0
  321. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline.js.map +1 -0
  322. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.d.ts +8 -0
  323. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.d.ts.map +1 -0
  324. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.js +17 -0
  325. package/v1/model/SecurityReportContentResponseReportContentInfoQpsStatisticsInfoTimeline1.js.map +1 -0
  326. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.d.ts +9 -0
  327. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.d.ts.map +1 -0
  328. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.js +17 -0
  329. package/v1/model/SecurityReportContentResponseReportContentInfoRequestStatisticsInfoList.js.map +1 -0
  330. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.d.ts +14 -0
  331. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.d.ts.map +1 -0
  332. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.js +29 -0
  333. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfo.js.map +1 -0
  334. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.d.ts +9 -0
  335. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.d.ts.map +1 -0
  336. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.js +17 -0
  337. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceUpstreamInfoList.js.map +1 -0
  338. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.d.ts +9 -0
  339. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.d.ts.map +1 -0
  340. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.js +17 -0
  341. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoResponseSourceWafInfoList.js.map +1 -0
  342. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.d.ts +8 -0
  343. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.d.ts.map +1 -0
  344. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.js +17 -0
  345. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline.js.map +1 -0
  346. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.d.ts +8 -0
  347. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.d.ts.map +1 -0
  348. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.js +17 -0
  349. package/v1/model/SecurityReportContentResponseReportContentInfoResponseCodeStatisticsInfoTimeline1.js.map +1 -0
  350. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.d.ts +8 -0
  351. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.d.ts.map +1 -0
  352. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.js +17 -0
  353. package/v1/model/SecurityReportContentResponseReportContentInfoTimeline.js.map +1 -0
  354. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.d.ts +19 -0
  355. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.d.ts.map +1 -0
  356. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.js +39 -0
  357. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfo.js.map +1 -0
  358. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.d.ts +10 -0
  359. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.d.ts.map +1 -0
  360. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.js +21 -0
  361. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal404InfoList.js.map +1 -0
  362. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.d.ts +10 -0
  363. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.d.ts.map +1 -0
  364. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.js +21 -0
  365. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal500InfoList.js.map +1 -0
  366. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.d.ts +10 -0
  367. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.d.ts.map +1 -0
  368. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.js +21 -0
  369. package/v1/model/SecurityReportContentResponseReportContentInfoTopAbnormalUrlsInfoAbnormal502InfoList.js.map +1 -0
  370. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.d.ts +8 -0
  371. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.d.ts.map +1 -0
  372. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.js +17 -0
  373. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceIpsInfoList.js.map +1 -0
  374. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.d.ts +8 -0
  375. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.d.ts.map +1 -0
  376. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.js +17 -0
  377. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackSourceLocationsInfoList.js.map +1 -0
  378. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.d.ts +12 -0
  379. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.d.ts.map +1 -0
  380. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.js +27 -0
  381. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedDomainsInfoList.js.map +1 -0
  382. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.d.ts +10 -0
  383. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.d.ts.map +1 -0
  384. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.js +21 -0
  385. package/v1/model/SecurityReportContentResponseReportContentInfoTopAttackedUrlsInfoList.js.map +1 -0
  386. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.d.ts +8 -0
  387. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.d.ts.map +1 -0
  388. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.js +17 -0
  389. package/v1/model/SecurityReportContentResponseReportContentInfoTopDomains.js.map +1 -0
  390. package/v1/model/SecurityReportContentResponseStatPeriod.d.ts +12 -0
  391. package/v1/model/SecurityReportContentResponseStatPeriod.d.ts.map +1 -0
  392. package/v1/model/SecurityReportContentResponseStatPeriod.js +31 -0
  393. package/v1/model/SecurityReportContentResponseStatPeriod.js.map +1 -0
  394. package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts +52 -0
  395. package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts.map +1 -0
  396. package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js +129 -0
  397. package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js.map +1 -0
  398. package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts +12 -0
  399. package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts.map +1 -0
  400. package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js +29 -0
  401. package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js.map +1 -0
  402. package/v1/model/ShowSecurityReportContentRequest.d.ts +16 -0
  403. package/v1/model/ShowSecurityReportContentRequest.d.ts.map +1 -0
  404. package/v1/model/ShowSecurityReportContentRequest.js +42 -0
  405. package/v1/model/ShowSecurityReportContentRequest.js.map +1 -0
  406. package/v1/model/ShowSecurityReportContentResponse.d.ts +47 -0
  407. package/v1/model/ShowSecurityReportContentResponse.d.ts.map +1 -0
  408. package/v1/model/ShowSecurityReportContentResponse.js +111 -0
  409. package/v1/model/ShowSecurityReportContentResponse.js.map +1 -0
  410. package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts +12 -0
  411. package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts.map +1 -0
  412. package/v1/model/ShowSecurityReportSubscriptionRequest.js +31 -0
  413. package/v1/model/ShowSecurityReportSubscriptionRequest.js.map +1 -0
  414. package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts +47 -0
  415. package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts.map +1 -0
  416. package/v1/model/ShowSecurityReportSubscriptionResponse.js +111 -0
  417. package/v1/model/ShowSecurityReportSubscriptionResponse.js.map +1 -0
  418. package/v1/model/ShowWebProtectionRuleRequest.d.ts +12 -0
  419. package/v1/model/ShowWebProtectionRuleRequest.d.ts.map +1 -0
  420. package/v1/model/ShowWebProtectionRuleRequest.js +30 -0
  421. package/v1/model/ShowWebProtectionRuleRequest.js.map +1 -0
  422. package/v1/model/ShowWebProtectionRuleResponse.d.ts +38 -0
  423. package/v1/model/ShowWebProtectionRuleResponse.d.ts.map +1 -0
  424. package/v1/model/ShowWebProtectionRuleResponse.js +79 -0
  425. package/v1/model/ShowWebProtectionRuleResponse.js.map +1 -0
  426. package/v1/model/ThreatMapResponseBodyLocale.d.ts +76 -0
  427. package/v1/model/ThreatMapResponseBodyLocale.d.ts.map +1 -0
  428. package/v1/model/ThreatMapResponseBodyLocale.js +175 -0
  429. package/v1/model/ThreatMapResponseBodyLocale.js.map +1 -0
  430. package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts +6 -0
  431. package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts.map +1 -0
  432. package/v1/model/UpdateIpReputationRuleRequestBodyAction.js +13 -0
  433. package/v1/model/UpdateIpReputationRuleRequestBodyAction.js.map +1 -0
  434. package/v1/public-api.d.ts +104 -0
  435. package/v1/public-api.d.ts.map +1 -1
  436. package/v1/public-api.js +104 -0
  437. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -5,6 +5,14 @@ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder
5
5
  const ApplyCertificateToHostRequest_1 = require("./model/ApplyCertificateToHostRequest");
6
6
  const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
7
7
  const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
8
+ const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
9
+ const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
10
+ const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
11
+ const ConfirmIpReputationRuleRequest_1 = require("./model/ConfirmIpReputationRuleRequest");
12
+ const ConfirmPolicyAntileakageMapRequest_1 = require("./model/ConfirmPolicyAntileakageMapRequest");
13
+ const ConfirmPolicyIpReputationMapRequest_1 = require("./model/ConfirmPolicyIpReputationMapRequest");
14
+ const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesRequest");
15
+ const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
8
16
  const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
9
17
  const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
10
18
  const CreateAntiTamperRuleRequest_1 = require("./model/CreateAntiTamperRuleRequest");
@@ -19,6 +27,7 @@ const CreateHostRequest_1 = require("./model/CreateHostRequest");
19
27
  const CreateIgnoreRuleRequest_1 = require("./model/CreateIgnoreRuleRequest");
20
28
  const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
21
29
  const CreateIpGroupRequest_1 = require("./model/CreateIpGroupRequest");
30
+ const CreateIpReputationRuleRequest_1 = require("./model/CreateIpReputationRuleRequest");
22
31
  const CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
23
32
  const CreatePremiumHostRequest_1 = require("./model/CreatePremiumHostRequest");
24
33
  const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafRequest");
@@ -44,31 +53,45 @@ const DeletePrivacyRuleRequest_1 = require("./model/DeletePrivacyRuleRequest");
44
53
  const DeletePunishmentRuleRequest_1 = require("./model/DeletePunishmentRuleRequest");
45
54
  const DeleteValueListRequest_1 = require("./model/DeleteValueListRequest");
46
55
  const DeleteWhiteBlackIpRuleRequest_1 = require("./model/DeleteWhiteBlackIpRuleRequest");
56
+ const ListAntiTamperPolicyRulesRequest_1 = require("./model/ListAntiTamperPolicyRulesRequest");
47
57
  const ListAnticrawlerRulesRequest_1 = require("./model/ListAnticrawlerRulesRequest");
58
+ const ListAntileakagePolicyRulesRequest_1 = require("./model/ListAntileakagePolicyRulesRequest");
48
59
  const ListAntileakageRulesRequest_1 = require("./model/ListAntileakageRulesRequest");
49
60
  const ListAntitamperRuleRequest_1 = require("./model/ListAntitamperRuleRequest");
50
61
  const ListAttackActionTypesRequest_1 = require("./model/ListAttackActionTypesRequest");
51
62
  const ListBandwidthTimelineRequest_1 = require("./model/ListBandwidthTimelineRequest");
63
+ const ListCcPolicyRulesRequest_1 = require("./model/ListCcPolicyRulesRequest");
52
64
  const ListCcRulesRequest_1 = require("./model/ListCcRulesRequest");
53
65
  const ListCertificatesRequest_1 = require("./model/ListCertificatesRequest");
54
66
  const ListCompositeHostsRequest_1 = require("./model/ListCompositeHostsRequest");
67
+ const ListCustomPolicyRulesRequest_1 = require("./model/ListCustomPolicyRulesRequest");
55
68
  const ListCustomRulesRequest_1 = require("./model/ListCustomRulesRequest");
56
69
  const ListEventLogRequest_1 = require("./model/ListEventLogRequest");
57
70
  const ListEventRequest_1 = require("./model/ListEventRequest");
71
+ const ListGeoIpPolicyRulesRequest_1 = require("./model/ListGeoIpPolicyRulesRequest");
58
72
  const ListGeoipRuleRequest_1 = require("./model/ListGeoipRuleRequest");
59
73
  const ListHostRequest_1 = require("./model/ListHostRequest");
60
74
  const ListHostRouteRequest_1 = require("./model/ListHostRouteRequest");
75
+ const ListIgnorePolicyRulesRequest_1 = require("./model/ListIgnorePolicyRulesRequest");
61
76
  const ListIgnoreRuleRequest_1 = require("./model/ListIgnoreRuleRequest");
62
77
  const ListInstanceRequest_1 = require("./model/ListInstanceRequest");
78
+ const ListInstanceTagsRequest_1 = require("./model/ListInstanceTagsRequest");
63
79
  const ListIpGroupRequest_1 = require("./model/ListIpGroupRequest");
80
+ const ListIpReputationPolicyRulesRequest_1 = require("./model/ListIpReputationPolicyRulesRequest");
81
+ const ListIpReputationRulesRequest_1 = require("./model/ListIpReputationRulesRequest");
64
82
  const ListNoticeConfigsRequest_1 = require("./model/ListNoticeConfigsRequest");
65
83
  const ListOverviewsClassificationRequest_1 = require("./model/ListOverviewsClassificationRequest");
66
84
  const ListPolicyRequest_1 = require("./model/ListPolicyRequest");
67
85
  const ListPremiumHostRequest_1 = require("./model/ListPremiumHostRequest");
86
+ const ListPrivacyPolicyRulesRequest_1 = require("./model/ListPrivacyPolicyRulesRequest");
68
87
  const ListPrivacyRuleRequest_1 = require("./model/ListPrivacyRuleRequest");
88
+ const ListProtectableResourcesRequest_1 = require("./model/ListProtectableResourcesRequest");
69
89
  const ListPunishmentRulesRequest_1 = require("./model/ListPunishmentRulesRequest");
70
90
  const ListQpsTimelineRequest_1 = require("./model/ListQpsTimelineRequest");
71
91
  const ListRequestTimelineRequest_1 = require("./model/ListRequestTimelineRequest");
92
+ const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimelineRequest");
93
+ const ListSecurityReportHistoryPeriodsRequest_1 = require("./model/ListSecurityReportHistoryPeriodsRequest");
94
+ const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
72
95
  const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
73
96
  const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
74
97
  const ListTopAbnormalRequest_1 = require("./model/ListTopAbnormalRequest");
@@ -77,6 +100,7 @@ const ListTopIpRequest_1 = require("./model/ListTopIpRequest");
77
100
  const ListTopUrlRequest_1 = require("./model/ListTopUrlRequest");
78
101
  const ListValueListRequest_1 = require("./model/ListValueListRequest");
79
102
  const ListWebBasicProtectionRulesRequest_1 = require("./model/ListWebBasicProtectionRulesRequest");
103
+ const ListWhiteblackipPolicyRulesRequest_1 = require("./model/ListWhiteblackipPolicyRulesRequest");
80
104
  const ListWhiteblackipRuleRequest_1 = require("./model/ListWhiteblackipRuleRequest");
81
105
  const MigrateCompositeHostsRequest_1 = require("./model/MigrateCompositeHostsRequest");
82
106
  const RenameInstanceRequest_1 = require("./model/RenameInstanceRequest");
@@ -101,9 +125,12 @@ const ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
101
125
  const ShowPremiumHostRequest_1 = require("./model/ShowPremiumHostRequest");
102
126
  const ShowPrivacyRuleRequest_1 = require("./model/ShowPrivacyRuleRequest");
103
127
  const ShowPunishmentRuleRequest_1 = require("./model/ShowPunishmentRuleRequest");
128
+ const ShowSecurityReportContentRequest_1 = require("./model/ShowSecurityReportContentRequest");
129
+ const ShowSecurityReportSubscriptionRequest_1 = require("./model/ShowSecurityReportSubscriptionRequest");
104
130
  const ShowSourceIpRequest_1 = require("./model/ShowSourceIpRequest");
105
131
  const ShowSubscriptionInfoRequest_1 = require("./model/ShowSubscriptionInfoRequest");
106
132
  const ShowValueListRequest_1 = require("./model/ShowValueListRequest");
133
+ const ShowWebProtectionRuleRequest_1 = require("./model/ShowWebProtectionRuleRequest");
107
134
  const ShowWhiteBlackIpRuleRequest_1 = require("./model/ShowWhiteBlackIpRuleRequest");
108
135
  const UpdateAccessProgressRequest_1 = require("./model/UpdateAccessProgressRequest");
109
136
  const UpdateAlertNoticeConfigRequest_1 = require("./model/UpdateAlertNoticeConfigRequest");
@@ -201,6 +228,145 @@ class WafClient {
201
228
  options['responseHeaders'] = [''];
202
229
  return this.hcClient.sendRequest(options);
203
230
  }
231
+ /**
232
+ * 查询独享引擎的代理
233
+ *
234
+ * Please refer to HUAWEI cloud API Explorer for details.
235
+ *
236
+ * @summary 查询独享引擎代理
237
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ checkAgency(checkAgencyRequest) {
242
+ const options = (0, exports.ParamCreater)().checkAgency(checkAgencyRequest);
243
+ // @ts-ignore
244
+ options['responseHeaders'] = [''];
245
+ return this.hcClient.sendRequest(options);
246
+ }
247
+ /**
248
+ * 按application规则类型获取内置规则类型
249
+ *
250
+ * Please refer to HUAWEI cloud API Explorer for details.
251
+ *
252
+ * @summary 按application规则类型获取内置规则类型
253
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
254
+ * @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
255
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ confirmApplicationTypes(confirmApplicationTypesRequest) {
260
+ const options = (0, exports.ParamCreater)().confirmApplicationTypes(confirmApplicationTypesRequest);
261
+ // @ts-ignore
262
+ options['responseHeaders'] = [''];
263
+ return this.hcClient.sendRequest(options);
264
+ }
265
+ /**
266
+ * 查询异步任务的执行状态详情
267
+ *
268
+ * Please refer to HUAWEI cloud API Explorer for details.
269
+ *
270
+ * @summary 查询异步任务详情
271
+ * @param {string} jobId **参数解释:** 异步任务的任务id **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
272
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
273
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ confirmAsyncJob(confirmAsyncJobRequest) {
278
+ const options = (0, exports.ParamCreater)().confirmAsyncJob(confirmAsyncJobRequest);
279
+ // @ts-ignore
280
+ options['responseHeaders'] = [''];
281
+ return this.hcClient.sendRequest(options);
282
+ }
283
+ /**
284
+ * 根据Id查询机房IP情报防护规则
285
+ *
286
+ * Please refer to HUAWEI cloud API Explorer for details.
287
+ *
288
+ * @summary 根据Id查询机房IP情报防护规则
289
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
290
+ * @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
291
+ * @param {string} ruleId **参数解释:** 威胁情报规则ip,从接口 “查询威胁情报规则列表”(ListIpReputationRules)获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ confirmIpReputationRule(confirmIpReputationRuleRequest) {
296
+ const options = (0, exports.ParamCreater)().confirmIpReputationRule(confirmIpReputationRuleRequest);
297
+ // @ts-ignore
298
+ options['responseHeaders'] = [''];
299
+ return this.hcClient.sendRequest(options);
300
+ }
301
+ /**
302
+ * 查询敏感信息选项的详细信息
303
+ *
304
+ * Please refer to HUAWEI cloud API Explorer for details.
305
+ *
306
+ * @summary 查询敏感信息选项的详细信息
307
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
308
+ * @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
313
+ const options = (0, exports.ParamCreater)().confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest);
314
+ // @ts-ignore
315
+ options['responseHeaders'] = [''];
316
+ return this.hcClient.sendRequest(options);
317
+ }
318
+ /**
319
+ * 查询威胁情报控制防护选项的详细信息
320
+ *
321
+ * Please refer to HUAWEI cloud API Explorer for details.
322
+ *
323
+ * @summary 查询威胁情报控制防护选项的详细信息
324
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
325
+ * @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
326
+ * @param {string} type **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
331
+ const options = (0, exports.ParamCreater)().confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest);
332
+ // @ts-ignore
333
+ options['responseHeaders'] = [''];
334
+ return this.hcClient.sendRequest(options);
335
+ }
336
+ /**
337
+ * 按防护规则类型获取内置规则类型
338
+ *
339
+ * Please refer to HUAWEI cloud API Explorer for details.
340
+ *
341
+ * @summary 按防护规则类型获取内置规则类型
342
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
343
+ * @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
344
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ confirmProtectionTypes(confirmProtectionTypesRequest) {
349
+ const options = (0, exports.ParamCreater)().confirmProtectionTypes(confirmProtectionTypesRequest);
350
+ // @ts-ignore
351
+ options['responseHeaders'] = [''];
352
+ return this.hcClient.sendRequest(options);
353
+ }
354
+ /**
355
+ * 查询告警可选事件类型
356
+ *
357
+ * Please refer to HUAWEI cloud API Explorer for details.
358
+ *
359
+ * @summary SMN告警通知
360
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ confirmThreatMap(confirmThreatMapRequest) {
365
+ const options = (0, exports.ParamCreater)().confirmThreatMap(confirmThreatMapRequest);
366
+ // @ts-ignore
367
+ options['responseHeaders'] = [''];
368
+ return this.hcClient.sendRequest(options);
369
+ }
204
370
  /**
205
371
  * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
206
372
  *
@@ -282,7 +448,7 @@ class WafClient {
282
448
  * @summary 创建防敏感信息泄露规则
283
449
  * @param {string} contentType 内容类型
284
450
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
285
- * @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄漏规则请求参数
451
+ * @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄露规则请求参数
286
452
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
287
453
  * @param {*} [options] Override http request option.
288
454
  * @throws {RequiredError}
@@ -460,6 +626,25 @@ class WafClient {
460
626
  options['responseHeaders'] = [''];
461
627
  return this.hcClient.sendRequest(options);
462
628
  }
629
+ /**
630
+ * 创建IP情报规则
631
+ *
632
+ * Please refer to HUAWEI cloud API Explorer for details.
633
+ *
634
+ * @summary 创建机房IP情报规则
635
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
636
+ * @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
637
+ * @param {CreateIpReputationRuleRequestBody} createIpReputationRuleRequestBody **参数解释:** 创建地理访问控制请求体 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
638
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ createIpReputationRule(createIpReputationRuleRequest) {
643
+ const options = (0, exports.ParamCreater)().createIpReputationRule(createIpReputationRuleRequest);
644
+ // @ts-ignore
645
+ options['responseHeaders'] = [''];
646
+ return this.hcClient.sendRequest(options);
647
+ }
463
648
  /**
464
649
  * 创建防护策略,系统会在生成策略时配置一些默认的配置项,如果需要修改策略的默认配置项需要通过调用更新防护策略接口实现
465
650
  *
@@ -479,11 +664,11 @@ class WafClient {
479
664
  return this.hcClient.sendRequest(options);
480
665
  }
481
666
  /**
482
- * 创建独享模式域名
667
+ * 创建独享模式域名或者创建云模式ELB接入模式域名
483
668
  *
484
669
  * Please refer to HUAWEI cloud API Explorer for details.
485
670
  *
486
- * @summary 创建独享模式域名
671
+ * @summary 创建独享模式域名或者创建云模式ELB接入模式域名
487
672
  * @param {string} contentType 内容类型
488
673
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
489
674
  * @param {CreatePremiumHostRequestBody} [createPremiumHostRequestBody] 创建独享模式域名的请求体
@@ -924,6 +1109,26 @@ class WafClient {
924
1109
  options['responseHeaders'] = [''];
925
1110
  return this.hcClient.sendRequest(options);
926
1111
  }
1112
+ /**
1113
+ * 查询所有策略网页防篡改
1114
+ *
1115
+ * Please refer to HUAWEI cloud API Explorer for details.
1116
+ *
1117
+ * @summary 查询所有策略网页防篡改
1118
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1119
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1120
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1121
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1122
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ */
1126
+ listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest) {
1127
+ const options = (0, exports.ParamCreater)().listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest);
1128
+ // @ts-ignore
1129
+ options['responseHeaders'] = [''];
1130
+ return this.hcClient.sendRequest(options);
1131
+ }
927
1132
  /**
928
1133
  * 查询JS脚本反爬虫规则列表
929
1134
  *
@@ -945,6 +1150,26 @@ class WafClient {
945
1150
  options['responseHeaders'] = [''];
946
1151
  return this.hcClient.sendRequest(options);
947
1152
  }
1153
+ /**
1154
+ * 查询所有策略防敏感信息泄露规则
1155
+ *
1156
+ * Please refer to HUAWEI cloud API Explorer for details.
1157
+ *
1158
+ * @summary 查询所有策略防敏感信息泄露规则
1159
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1160
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1161
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1162
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1163
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ listAntileakagePolicyRules(listAntileakagePolicyRulesRequest) {
1168
+ const options = (0, exports.ParamCreater)().listAntileakagePolicyRules(listAntileakagePolicyRulesRequest);
1169
+ // @ts-ignore
1170
+ options['responseHeaders'] = [''];
1171
+ return this.hcClient.sendRequest(options);
1172
+ }
948
1173
  /**
949
1174
  * 查询防敏感信息泄露规则列表
950
1175
  *
@@ -1027,6 +1252,26 @@ class WafClient {
1027
1252
  options['responseHeaders'] = [''];
1028
1253
  return this.hcClient.sendRequest(options);
1029
1254
  }
1255
+ /**
1256
+ * 查询所有策略CC规则
1257
+ *
1258
+ * Please refer to HUAWEI cloud API Explorer for details.
1259
+ *
1260
+ * @summary 查询所有策略CC规则
1261
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1262
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1263
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1264
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1265
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1266
+ * @param {*} [options] Override http request option.
1267
+ * @throws {RequiredError}
1268
+ */
1269
+ listCcPolicyRules(listCcPolicyRulesRequest) {
1270
+ const options = (0, exports.ParamCreater)().listCcPolicyRules(listCcPolicyRulesRequest);
1271
+ // @ts-ignore
1272
+ options['responseHeaders'] = [''];
1273
+ return this.hcClient.sendRequest(options);
1274
+ }
1030
1275
  /**
1031
1276
  * 查询cc规则列表
1032
1277
  *
@@ -1094,6 +1339,26 @@ class WafClient {
1094
1339
  options['responseHeaders'] = [''];
1095
1340
  return this.hcClient.sendRequest(options);
1096
1341
  }
1342
+ /**
1343
+ * 查询所有策略精准防护规则
1344
+ *
1345
+ * Please refer to HUAWEI cloud API Explorer for details.
1346
+ *
1347
+ * @summary 查询所有策略精准防护规则
1348
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1349
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\"查询防护策略列表\"(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1350
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1351
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1352
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1353
+ * @param {*} [options] Override http request option.
1354
+ * @throws {RequiredError}
1355
+ */
1356
+ listCustomPolicyRules(listCustomPolicyRulesRequest) {
1357
+ const options = (0, exports.ParamCreater)().listCustomPolicyRules(listCustomPolicyRulesRequest);
1358
+ // @ts-ignore
1359
+ options['responseHeaders'] = [''];
1360
+ return this.hcClient.sendRequest(options);
1361
+ }
1097
1362
  /**
1098
1363
  * 查询精准防护规则列表
1099
1364
  *
@@ -1126,7 +1391,7 @@ class WafClient {
1126
1391
  * @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
1127
1392
  * @param {number} [from] 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
1128
1393
  * @param {number} [to] 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
1129
- * @param {Array<string>} [attacks] 攻击类型: - vuln:其它攻击类型 - 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:目录遍历防护
1394
+ * @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:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
1130
1395
  * @param {Array<string>} [hosts] 域名id,从获取防护网站列表(ListHost)接口获取域名id
1131
1396
  * @param {Array<string>} [sips] 源ip,Web访问者的IP地址(攻击者IP地址)
1132
1397
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
@@ -1158,6 +1423,26 @@ class WafClient {
1158
1423
  options['responseHeaders'] = [''];
1159
1424
  return this.hcClient.sendRequest(options);
1160
1425
  }
1426
+ /**
1427
+ * 查询所有策略地理位置访问控制
1428
+ *
1429
+ * Please refer to HUAWEI cloud API Explorer for details.
1430
+ *
1431
+ * @summary 查询所有策略地理位置访问控制
1432
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1433
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\&quot;查询防护策略列表\&quot;(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1434
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1435
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1436
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ */
1440
+ listGeoIpPolicyRules(listGeoIpPolicyRulesRequest) {
1441
+ const options = (0, exports.ParamCreater)().listGeoIpPolicyRules(listGeoIpPolicyRulesRequest);
1442
+ // @ts-ignore
1443
+ options['responseHeaders'] = [''];
1444
+ return this.hcClient.sendRequest(options);
1445
+ }
1161
1446
  /**
1162
1447
  * 查询地理位置访问控制规则列表
1163
1448
  *
@@ -1200,15 +1485,7 @@ class WafClient {
1200
1485
  return this.hcClient.sendRequest(options);
1201
1486
  }
1202
1487
  /**
1203
- * **参数解释:**
1204
- * 返回路由信息。
1205
- * &gt; 该API局点受限使用,后续将下线。
1206
- * **约束限制:**
1207
- * 不涉及
1208
- * **取值范围:**
1209
- * 不涉及
1210
- * **默认取值:**
1211
- * 不涉及
1488
+ * 返回路由信息。 &gt; 该API局点受限使用,后续将下线。
1212
1489
  *
1213
1490
  * Please refer to HUAWEI cloud API Explorer for details.
1214
1491
  *
@@ -1225,6 +1502,26 @@ class WafClient {
1225
1502
  options['responseHeaders'] = [''];
1226
1503
  return this.hcClient.sendRequest(options);
1227
1504
  }
1505
+ /**
1506
+ * 查询所有策略全局白名单
1507
+ *
1508
+ * Please refer to HUAWEI cloud API Explorer for details.
1509
+ *
1510
+ * @summary 查询所有策略全局白名单
1511
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1512
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1513
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1514
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1515
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ */
1519
+ listIgnorePolicyRules(listIgnorePolicyRulesRequest) {
1520
+ const options = (0, exports.ParamCreater)().listIgnorePolicyRules(listIgnorePolicyRulesRequest);
1521
+ // @ts-ignore
1522
+ options['responseHeaders'] = [''];
1523
+ return this.hcClient.sendRequest(options);
1524
+ }
1228
1525
  /**
1229
1526
  * 查询全局白名单(原误报屏蔽)规则列表
1230
1527
  *
@@ -1265,6 +1562,24 @@ class WafClient {
1265
1562
  options['responseHeaders'] = [''];
1266
1563
  return this.hcClient.sendRequest(options);
1267
1564
  }
1565
+ /**
1566
+ * 查询WAF独享引擎标签。独享模式只在部分局点支持,包括:华北-北京四、华东-上海一、华南-广州、华南-深圳 、中国-香港、亚太-曼谷、 亚太-新加坡。
1567
+ *
1568
+ * Please refer to HUAWEI cloud API Explorer for details.
1569
+ *
1570
+ * @summary 查询WAF独享引擎标签
1571
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1572
+ * @param {string} resourceid **参数解释:** 资源类型,目前支持waf和waf-instance **约束限制:** 不涉及 **取值范围:** - waf - waf-instance **默认取值:** 不涉及
1573
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1574
+ * @param {*} [options] Override http request option.
1575
+ * @throws {RequiredError}
1576
+ */
1577
+ listInstanceTags(listInstanceTagsRequest) {
1578
+ const options = (0, exports.ParamCreater)().listInstanceTags(listInstanceTagsRequest);
1579
+ // @ts-ignore
1580
+ options['responseHeaders'] = [''];
1581
+ return this.hcClient.sendRequest(options);
1582
+ }
1268
1583
  /**
1269
1584
  * 查询地址组列表
1270
1585
  *
@@ -1286,6 +1601,46 @@ class WafClient {
1286
1601
  options['responseHeaders'] = [''];
1287
1602
  return this.hcClient.sendRequest(options);
1288
1603
  }
1604
+ /**
1605
+ * 查询所有策略威胁情报控制规则
1606
+ *
1607
+ * Please refer to HUAWEI cloud API Explorer for details.
1608
+ *
1609
+ * @summary 查询所有策略威胁情报控制规则
1610
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1611
+ * @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1612
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1613
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1614
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1615
+ * @param {*} [options] Override http request option.
1616
+ * @throws {RequiredError}
1617
+ */
1618
+ listIpReputationPolicyRules(listIpReputationPolicyRulesRequest) {
1619
+ const options = (0, exports.ParamCreater)().listIpReputationPolicyRules(listIpReputationPolicyRulesRequest);
1620
+ // @ts-ignore
1621
+ options['responseHeaders'] = [''];
1622
+ return this.hcClient.sendRequest(options);
1623
+ }
1624
+ /**
1625
+ * 查询威胁情报规则列表
1626
+ *
1627
+ * Please refer to HUAWEI cloud API Explorer for details.
1628
+ *
1629
+ * @summary 查询威胁情报规则列表
1630
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1631
+ * @param {string} policyId **参数解释:** 策略id(策略id从查询防护策略列表接口获取) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1632
+ * @param {number} offset **参数解释:** 偏移量,表示查询该偏移量之后的记录。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1633
+ * @param {number} limit **参数解释:** 查询返回记录的数量限制。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1000
1634
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1635
+ * @param {*} [options] Override http request option.
1636
+ * @throws {RequiredError}
1637
+ */
1638
+ listIpReputationRules(listIpReputationRulesRequest) {
1639
+ const options = (0, exports.ParamCreater)().listIpReputationRules(listIpReputationRulesRequest);
1640
+ // @ts-ignore
1641
+ options['responseHeaders'] = [''];
1642
+ return this.hcClient.sendRequest(options);
1643
+ }
1289
1644
  /**
1290
1645
  * 查询告警通知配置
1291
1646
  *
@@ -1368,6 +1723,26 @@ class WafClient {
1368
1723
  options['responseHeaders'] = [''];
1369
1724
  return this.hcClient.sendRequest(options);
1370
1725
  }
1726
+ /**
1727
+ * 查询所有策略隐私屏蔽防护规则
1728
+ *
1729
+ * Please refer to HUAWEI cloud API Explorer for details.
1730
+ *
1731
+ * @summary 查询所有策略隐私屏蔽防护规则
1732
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1733
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\&quot;查询防护策略列表\&quot;(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
1734
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1735
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
1736
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
1737
+ * @param {*} [options] Override http request option.
1738
+ * @throws {RequiredError}
1739
+ */
1740
+ listPrivacyPolicyRules(listPrivacyPolicyRulesRequest) {
1741
+ const options = (0, exports.ParamCreater)().listPrivacyPolicyRules(listPrivacyPolicyRulesRequest);
1742
+ // @ts-ignore
1743
+ options['responseHeaders'] = [''];
1744
+ return this.hcClient.sendRequest(options);
1745
+ }
1371
1746
  /**
1372
1747
  * 查询隐私屏蔽防护规则列表
1373
1748
  *
@@ -1388,6 +1763,25 @@ class WafClient {
1388
1763
  options['responseHeaders'] = [''];
1389
1764
  return this.hcClient.sendRequest(options);
1390
1765
  }
1766
+ /**
1767
+ * 查询可防护的资源列表
1768
+ *
1769
+ * Please refer to HUAWEI cloud API Explorer for details.
1770
+ *
1771
+ * @summary 查询可防护的资源列表
1772
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1773
+ * @param {string} resourceType **参数解释:** 查询的防护资源类型,目前支持的资源类型为:elb **约束限制:** 不涉及 **取值范围:** - elb **默认取值:** elb
1774
+ * @param {string} [vpcId] **参数解释:** 负载均衡器所在VPC ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1775
+ * @param {string} [region] **参数解释:** 租户的regionId **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1776
+ * @param {*} [options] Override http request option.
1777
+ * @throws {RequiredError}
1778
+ */
1779
+ listProtectableResources(listProtectableResourcesRequest) {
1780
+ const options = (0, exports.ParamCreater)().listProtectableResources(listProtectableResourcesRequest);
1781
+ // @ts-ignore
1782
+ options['responseHeaders'] = [''];
1783
+ return this.hcClient.sendRequest(options);
1784
+ }
1391
1785
  /**
1392
1786
  * 查询攻击惩罚规则列表
1393
1787
  *
@@ -1453,11 +1847,73 @@ class WafClient {
1453
1847
  return this.hcClient.sendRequest(options);
1454
1848
  }
1455
1849
  /**
1456
- * 查询安全报告订阅列表
1850
+ * 查询安全统计响应码数据
1457
1851
  *
1458
1852
  * Please refer to HUAWEI cloud API Explorer for details.
1459
1853
  *
1460
- * @summary 查询安全报告订阅列表
1854
+ * @summary 查询安全统计响应码数据
1855
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1856
+ * @param {number} from **参数解释:** 起始时间(13位毫秒时间戳) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1857
+ * @param {number} to **参数解释:** 结束时间(13位毫秒时间戳) **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1858
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1859
+ * @param {Array<string>} [hosts] **参数解释:** 要查询的域名列表,通过 ”查询独享模式域名列表“(ListPremiumHost)或者 “查询云模式防护域名列表” (ListHost)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1860
+ * @param {Array<string>} [instances] **参数解释:** 要查询的实例列表,通过 “查询WAF独享引擎列表”(ListInstance)接口获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1861
+ * @param {'WAF' | 'UPSTREAM'} [responseSource] **参数解释:** 响应源 **约束限制:** 不涉及 **取值范围:** - WAF - UPSTREAM **默认取值:** 不涉及
1862
+ * @param {string} [groupBy] **参数解释:** 展示维度,按天展示时传\&quot;DAY\&quot; **约束限制:** 不涉及 **取值范围:** - DAY **默认取值:** 不涉及
1863
+ * @param {*} [options] Override http request option.
1864
+ * @throws {RequiredError}
1865
+ */
1866
+ listResponseCodeTimeline(listResponseCodeTimelineRequest) {
1867
+ const options = (0, exports.ParamCreater)().listResponseCodeTimeline(listResponseCodeTimelineRequest);
1868
+ // @ts-ignore
1869
+ options['responseHeaders'] = [''];
1870
+ return this.hcClient.sendRequest(options);
1871
+ }
1872
+ /**
1873
+ * 查询安全报告历史统计周期列表
1874
+ *
1875
+ * Please refer to HUAWEI cloud API Explorer for details.
1876
+ *
1877
+ * @summary 查询安全报告历史统计周期列表
1878
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1879
+ * @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1880
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
1881
+ * @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
1882
+ * @param {*} [options] Override http request option.
1883
+ * @throws {RequiredError}
1884
+ */
1885
+ listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
1886
+ const options = (0, exports.ParamCreater)().listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest);
1887
+ // @ts-ignore
1888
+ options['responseHeaders'] = [''];
1889
+ return this.hcClient.sendRequest(options);
1890
+ }
1891
+ /**
1892
+ * 查询安全报告发送记录
1893
+ *
1894
+ * Please refer to HUAWEI cloud API Explorer for details.
1895
+ *
1896
+ * @summary 查询安全报告发送记录
1897
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1898
+ * @param {string} [reportName] **参数解释:** 查询的报告名称 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1899
+ * @param {string} [reportCategory] **参数解释:** 查询的报告类别 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1900
+ * @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
1901
+ * @param {number} [offset] **参数解释:** 偏移量,表示查询该偏移量之后的记录。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1902
+ * @param {*} [options] Override http request option.
1903
+ * @throws {RequiredError}
1904
+ */
1905
+ listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest) {
1906
+ const options = (0, exports.ParamCreater)().listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest);
1907
+ // @ts-ignore
1908
+ options['responseHeaders'] = [''];
1909
+ return this.hcClient.sendRequest(options);
1910
+ }
1911
+ /**
1912
+ * 查询安全报告订阅列表
1913
+ *
1914
+ * Please refer to HUAWEI cloud API Explorer for details.
1915
+ *
1916
+ * @summary 查询安全报告订阅列表
1461
1917
  * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1462
1918
  * @param {string} enterpriseProjectId **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。仅支持查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - all_granted_eps:所有企业项目 **默认取值:** all_granted_eps
1463
1919
  * @param {string} [reportName] **参数解释:** 报告模板名称 **约束限制:** 不涉及 **取值范围:** 只能由中文、字母、数字和括号内所列符号(_-.::)组成,且不能超过256个字符长度。 **默认取值:** 不涉及
@@ -1631,6 +2087,26 @@ class WafClient {
1631
2087
  options['responseHeaders'] = [''];
1632
2088
  return this.hcClient.sendRequest(options);
1633
2089
  }
2090
+ /**
2091
+ * 查询所有策略黑白名单防护规则
2092
+ *
2093
+ * Please refer to HUAWEI cloud API Explorer for details.
2094
+ *
2095
+ * @summary 查询所有策略黑白名单防护规则
2096
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2097
+ * @param {string} [policyids] **参数解释:** 策略id列表。策略id从\&quot;查询防护策略列表\&quot;(ListPolicy)接口获取,多个策略之间用“,”隔开 **约束限制:** 不涉及 **取值范围:** 策略id只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
2098
+ * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
2099
+ * @param {number} [page] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从1开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 1
2100
+ * @param {number} [pagesize] **参数解释:** 分页查询时,每页包含多少条结果。 **约束限制:** 不涉及 **默认取值:** 1000
2101
+ * @param {*} [options] Override http request option.
2102
+ * @throws {RequiredError}
2103
+ */
2104
+ listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest) {
2105
+ const options = (0, exports.ParamCreater)().listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest);
2106
+ // @ts-ignore
2107
+ options['responseHeaders'] = [''];
2108
+ return this.hcClient.sendRequest(options);
2109
+ }
1634
2110
  /**
1635
2111
  * 查询黑白名单规则列表
1636
2112
  *
@@ -2073,6 +2549,41 @@ class WafClient {
2073
2549
  options['responseHeaders'] = [''];
2074
2550
  return this.hcClient.sendRequest(options);
2075
2551
  }
2552
+ /**
2553
+ * 查询安全报告内容
2554
+ *
2555
+ * Please refer to HUAWEI cloud API Explorer for details.
2556
+ *
2557
+ * @summary 查询安全报告内容
2558
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2559
+ * @param {string} reportId **参数解释:** 报告ID,请从接口 “查询安全报告发送记录”(ListSecurityReportSendingRecords)中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2560
+ * @param {string} subscriptionId **参数解释:** 需要删除的订阅id,从“查询安全报告订阅列表”(ListSecurityReportSubscriptions)中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2561
+ * @param {*} [options] Override http request option.
2562
+ * @throws {RequiredError}
2563
+ */
2564
+ showSecurityReportContent(showSecurityReportContentRequest) {
2565
+ const options = (0, exports.ParamCreater)().showSecurityReportContent(showSecurityReportContentRequest);
2566
+ // @ts-ignore
2567
+ options['responseHeaders'] = [''];
2568
+ return this.hcClient.sendRequest(options);
2569
+ }
2570
+ /**
2571
+ * 查询安全报告订阅
2572
+ *
2573
+ * Please refer to HUAWEI cloud API Explorer for details.
2574
+ *
2575
+ * @summary 查询安全报告订阅
2576
+ * @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2577
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2578
+ * @param {*} [options] Override http request option.
2579
+ * @throws {RequiredError}
2580
+ */
2581
+ showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
2582
+ const options = (0, exports.ParamCreater)().showSecurityReportSubscription(showSecurityReportSubscriptionRequest);
2583
+ // @ts-ignore
2584
+ options['responseHeaders'] = [''];
2585
+ return this.hcClient.sendRequest(options);
2586
+ }
2076
2587
  /**
2077
2588
  * 查询WAF回源Ip信息
2078
2589
  *
@@ -2413,14 +2924,7 @@ class WafClient {
2413
2924
  return this.hcClient.sendRequest(options);
2414
2925
  }
2415
2926
  /**
2416
- * **参数解释:**
2417
2927
  * 更新云模式域名路由信息
2418
- * **约束限制:**
2419
- * 不涉及
2420
- * **取值范围:**
2421
- * 不涉及
2422
- * **默认取值:**
2423
- * 不涉及
2424
2928
  *
2425
2929
  * Please refer to HUAWEI cloud API Explorer for details.
2426
2930
  *
@@ -2669,6 +3173,23 @@ class WafClient {
2669
3173
  options['responseHeaders'] = [''];
2670
3174
  return this.hcClient.sendRequest(options);
2671
3175
  }
3176
+ /**
3177
+ * 根据Id查询Web防护规则
3178
+ *
3179
+ * Please refer to HUAWEI cloud API Explorer for details.
3180
+ *
3181
+ * @summary 根据Id查询Web防护规则
3182
+ * @param {string} ruleId **参数解释:** 防护规则ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
3183
+ * @param {string} [xLanguage] **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** zh-cn
3184
+ * @param {*} [options] Override http request option.
3185
+ * @throws {RequiredError}
3186
+ */
3187
+ showWebProtectionRule(showWebProtectionRuleRequest) {
3188
+ const options = (0, exports.ParamCreater)().showWebProtectionRule(showWebProtectionRuleRequest);
3189
+ // @ts-ignore
3190
+ options['responseHeaders'] = [''];
3191
+ return this.hcClient.sendRequest(options);
3192
+ }
2672
3193
  }
2673
3194
  exports.WafClient = WafClient;
2674
3195
  const ParamCreater = function () {
@@ -2822,60 +3343,44 @@ const ParamCreater = function () {
2822
3343
  return options;
2823
3344
  },
2824
3345
  /**
2825
- * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
3346
+ * 查询独享引擎的代理
2826
3347
  *
2827
3348
  * Please refer to HUAWEI cloud API Explorer for details.
2828
3349
  */
2829
- confirmTmsResourceInstances(confirmTmsResourceInstancesRequest) {
3350
+ checkAgency(checkAgencyRequest) {
2830
3351
  const options = {
2831
- method: "POST",
2832
- url: "/v1/{project_id}/waf/{resource_type}/resource-instances/action",
3352
+ method: "GET",
3353
+ url: "/v1/{project_id}/premium-waf/agency",
2833
3354
  contentType: "application/json",
2834
3355
  queryParams: {},
2835
3356
  pathParams: {},
2836
- headers: {},
2837
- data: {}
3357
+ headers: {}
2838
3358
  };
2839
3359
  const localVarHeaderParameter = {};
2840
- let body;
2841
3360
  let contentType;
2842
- let resourceType;
2843
- if (confirmTmsResourceInstancesRequest !== null && confirmTmsResourceInstancesRequest !== undefined) {
2844
- if (confirmTmsResourceInstancesRequest instanceof ConfirmTmsResourceInstancesRequest_1.ConfirmTmsResourceInstancesRequest) {
2845
- contentType = confirmTmsResourceInstancesRequest.contentType;
2846
- resourceType = confirmTmsResourceInstancesRequest.resourceType;
2847
- body = confirmTmsResourceInstancesRequest.body;
3361
+ if (checkAgencyRequest !== null && checkAgencyRequest !== undefined) {
3362
+ if (checkAgencyRequest instanceof CheckAgencyRequest_1.CheckAgencyRequest) {
3363
+ contentType = checkAgencyRequest.contentType;
2848
3364
  }
2849
3365
  else {
2850
- contentType = confirmTmsResourceInstancesRequest['Content-Type'];
2851
- resourceType = confirmTmsResourceInstancesRequest['resource_type'];
2852
- body = confirmTmsResourceInstancesRequest['body'];
3366
+ contentType = checkAgencyRequest['Content-Type'];
2853
3367
  }
2854
3368
  }
2855
- if (resourceType === null || resourceType === undefined) {
2856
- throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling confirmTmsResourceInstances.');
2857
- }
2858
- if (body === null || body === undefined) {
2859
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2860
- }
2861
3369
  if (contentType !== undefined && contentType !== null) {
2862
3370
  localVarHeaderParameter['Content-Type'] = String(contentType);
2863
3371
  }
2864
- localVarHeaderParameter['Content-Type'] = 'application/json';
2865
- options.data = body !== undefined ? body : {};
2866
- options.pathParams = { 'resource_type': resourceType, };
2867
3372
  options.headers = localVarHeaderParameter;
2868
3373
  return options;
2869
3374
  },
2870
3375
  /**
2871
- * 获取用户购买的WAF规格信息
3376
+ * 按application规则类型获取内置规则类型
2872
3377
  *
2873
3378
  * Please refer to HUAWEI cloud API Explorer for details.
2874
3379
  */
2875
- confirmUserBundle(confirmUserBundleRequest) {
3380
+ confirmApplicationTypes(confirmApplicationTypesRequest) {
2876
3381
  const options = {
2877
3382
  method: "GET",
2878
- url: "/v1/{project_id}/waf/bundle",
3383
+ url: "/v1/{project_id}/waf/rules/application-types",
2879
3384
  contentType: "application/json",
2880
3385
  queryParams: {},
2881
3386
  pathParams: {},
@@ -2884,19 +3389,25 @@ const ParamCreater = function () {
2884
3389
  const localVarHeaderParameter = {};
2885
3390
  const localVarQueryParameter = {};
2886
3391
  let contentType;
2887
- let enterpriseProjectId;
2888
- if (confirmUserBundleRequest !== null && confirmUserBundleRequest !== undefined) {
2889
- if (confirmUserBundleRequest instanceof ConfirmUserBundleRequest_1.ConfirmUserBundleRequest) {
2890
- contentType = confirmUserBundleRequest.contentType;
2891
- enterpriseProjectId = confirmUserBundleRequest.enterpriseProjectId;
3392
+ let offset;
3393
+ let limit;
3394
+ if (confirmApplicationTypesRequest !== null && confirmApplicationTypesRequest !== undefined) {
3395
+ if (confirmApplicationTypesRequest instanceof ConfirmApplicationTypesRequest_1.ConfirmApplicationTypesRequest) {
3396
+ contentType = confirmApplicationTypesRequest.contentType;
3397
+ offset = confirmApplicationTypesRequest.offset;
3398
+ limit = confirmApplicationTypesRequest.limit;
2892
3399
  }
2893
3400
  else {
2894
- contentType = confirmUserBundleRequest['Content-Type'];
2895
- enterpriseProjectId = confirmUserBundleRequest['enterprise_project_id'];
3401
+ contentType = confirmApplicationTypesRequest['Content-Type'];
3402
+ offset = confirmApplicationTypesRequest['offset'];
3403
+ limit = confirmApplicationTypesRequest['limit'];
2896
3404
  }
2897
3405
  }
2898
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2899
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3406
+ if (offset !== null && offset !== undefined) {
3407
+ localVarQueryParameter['offset'] = offset;
3408
+ }
3409
+ if (limit !== null && limit !== undefined) {
3410
+ localVarQueryParameter['limit'] = limit;
2900
3411
  }
2901
3412
  if (contentType !== undefined && contentType !== null) {
2902
3413
  localVarHeaderParameter['Content-Type'] = String(contentType);
@@ -2906,203 +3417,540 @@ const ParamCreater = function () {
2906
3417
  return options;
2907
3418
  },
2908
3419
  /**
2909
- * 创建防篡改规则
3420
+ * 查询异步任务的执行状态详情
2910
3421
  *
2911
3422
  * Please refer to HUAWEI cloud API Explorer for details.
2912
3423
  */
2913
- createAntiTamperRule(createAntiTamperRuleRequest) {
3424
+ confirmAsyncJob(confirmAsyncJobRequest) {
2914
3425
  const options = {
2915
- method: "POST",
2916
- url: "/v1/{project_id}/waf/policy/{policy_id}/antitamper",
3426
+ method: "GET",
3427
+ url: "/v1/{project_id}/waf/async-job/{job_id}",
2917
3428
  contentType: "application/json",
2918
3429
  queryParams: {},
2919
3430
  pathParams: {},
2920
- headers: {},
2921
- data: {}
3431
+ headers: {}
2922
3432
  };
2923
3433
  const localVarHeaderParameter = {};
2924
3434
  const localVarQueryParameter = {};
2925
- let body;
3435
+ let jobId;
2926
3436
  let contentType;
2927
- let policyId;
2928
3437
  let enterpriseProjectId;
2929
- if (createAntiTamperRuleRequest !== null && createAntiTamperRuleRequest !== undefined) {
2930
- if (createAntiTamperRuleRequest instanceof CreateAntiTamperRuleRequest_1.CreateAntiTamperRuleRequest) {
2931
- contentType = createAntiTamperRuleRequest.contentType;
2932
- policyId = createAntiTamperRuleRequest.policyId;
2933
- body = createAntiTamperRuleRequest.body;
2934
- enterpriseProjectId = createAntiTamperRuleRequest.enterpriseProjectId;
3438
+ if (confirmAsyncJobRequest !== null && confirmAsyncJobRequest !== undefined) {
3439
+ if (confirmAsyncJobRequest instanceof ConfirmAsyncJobRequest_1.ConfirmAsyncJobRequest) {
3440
+ jobId = confirmAsyncJobRequest.jobId;
3441
+ contentType = confirmAsyncJobRequest.contentType;
3442
+ enterpriseProjectId = confirmAsyncJobRequest.enterpriseProjectId;
2935
3443
  }
2936
3444
  else {
2937
- contentType = createAntiTamperRuleRequest['Content-Type'];
2938
- policyId = createAntiTamperRuleRequest['policy_id'];
2939
- body = createAntiTamperRuleRequest['body'];
2940
- enterpriseProjectId = createAntiTamperRuleRequest['enterprise_project_id'];
3445
+ jobId = confirmAsyncJobRequest['job_id'];
3446
+ contentType = confirmAsyncJobRequest['Content-Type'];
3447
+ enterpriseProjectId = confirmAsyncJobRequest['enterpriseProjectId'];
2941
3448
  }
2942
3449
  }
2943
- if (policyId === null || policyId === undefined) {
2944
- throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAntiTamperRule.');
2945
- }
2946
- if (body === null || body === undefined) {
2947
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3450
+ if (jobId === null || jobId === undefined) {
3451
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling confirmAsyncJob.');
2948
3452
  }
2949
3453
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
2950
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3454
+ localVarQueryParameter['enterpriseProjectId'] = enterpriseProjectId;
2951
3455
  }
2952
3456
  if (contentType !== undefined && contentType !== null) {
2953
3457
  localVarHeaderParameter['Content-Type'] = String(contentType);
2954
3458
  }
2955
- localVarHeaderParameter['Content-Type'] = 'application/json';
2956
- options.data = body !== undefined ? body : {};
2957
3459
  options.queryParams = localVarQueryParameter;
2958
- options.pathParams = { 'policy_id': policyId, };
3460
+ options.pathParams = { 'job_id': jobId, };
2959
3461
  options.headers = localVarHeaderParameter;
2960
3462
  return options;
2961
3463
  },
2962
3464
  /**
2963
- * 创建JS脚本反爬虫规则,在调用此接口创建防护规则前,需要调用更新JS脚本反爬虫规则防护模式(UpdateAnticrawlerRuleType)接口指定防护模式
3465
+ * 根据Id查询机房IP情报防护规则
2964
3466
  *
2965
3467
  * Please refer to HUAWEI cloud API Explorer for details.
2966
3468
  */
2967
- createAnticrawlerRule(createAnticrawlerRuleRequest) {
3469
+ confirmIpReputationRule(confirmIpReputationRuleRequest) {
2968
3470
  const options = {
2969
- method: "POST",
2970
- url: "/v1/{project_id}/waf/policy/{policy_id}/anticrawler",
3471
+ method: "GET",
3472
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
2971
3473
  contentType: "application/json",
2972
3474
  queryParams: {},
2973
3475
  pathParams: {},
2974
- headers: {},
2975
- data: {}
3476
+ headers: {}
2976
3477
  };
2977
3478
  const localVarHeaderParameter = {};
2978
- const localVarQueryParameter = {};
2979
- let body;
2980
3479
  let contentType;
2981
3480
  let policyId;
2982
- let enterpriseProjectId;
2983
- if (createAnticrawlerRuleRequest !== null && createAnticrawlerRuleRequest !== undefined) {
2984
- if (createAnticrawlerRuleRequest instanceof CreateAnticrawlerRuleRequest_1.CreateAnticrawlerRuleRequest) {
2985
- contentType = createAnticrawlerRuleRequest.contentType;
2986
- policyId = createAnticrawlerRuleRequest.policyId;
2987
- body = createAnticrawlerRuleRequest.body;
2988
- enterpriseProjectId = createAnticrawlerRuleRequest.enterpriseProjectId;
3481
+ let ruleId;
3482
+ if (confirmIpReputationRuleRequest !== null && confirmIpReputationRuleRequest !== undefined) {
3483
+ if (confirmIpReputationRuleRequest instanceof ConfirmIpReputationRuleRequest_1.ConfirmIpReputationRuleRequest) {
3484
+ contentType = confirmIpReputationRuleRequest.contentType;
3485
+ policyId = confirmIpReputationRuleRequest.policyId;
3486
+ ruleId = confirmIpReputationRuleRequest.ruleId;
2989
3487
  }
2990
3488
  else {
2991
- contentType = createAnticrawlerRuleRequest['Content-Type'];
2992
- policyId = createAnticrawlerRuleRequest['policy_id'];
2993
- body = createAnticrawlerRuleRequest['body'];
2994
- enterpriseProjectId = createAnticrawlerRuleRequest['enterprise_project_id'];
3489
+ contentType = confirmIpReputationRuleRequest['Content-Type'];
3490
+ policyId = confirmIpReputationRuleRequest['policy_id'];
3491
+ ruleId = confirmIpReputationRuleRequest['rule_id'];
2995
3492
  }
2996
3493
  }
2997
3494
  if (policyId === null || policyId === undefined) {
2998
- throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAnticrawlerRule.');
2999
- }
3000
- if (body === null || body === undefined) {
3001
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3495
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling confirmIpReputationRule.');
3002
3496
  }
3003
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3004
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3497
+ if (ruleId === null || ruleId === undefined) {
3498
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling confirmIpReputationRule.');
3005
3499
  }
3006
3500
  if (contentType !== undefined && contentType !== null) {
3007
3501
  localVarHeaderParameter['Content-Type'] = String(contentType);
3008
3502
  }
3009
- localVarHeaderParameter['Content-Type'] = 'application/json';
3010
- options.data = body !== undefined ? body : {};
3011
- options.queryParams = localVarQueryParameter;
3012
- options.pathParams = { 'policy_id': policyId, };
3503
+ options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
3013
3504
  options.headers = localVarHeaderParameter;
3014
3505
  return options;
3015
3506
  },
3016
3507
  /**
3017
- * 创建防敏感信息泄露规则
3508
+ * 查询敏感信息选项的详细信息
3018
3509
  *
3019
3510
  * Please refer to HUAWEI cloud API Explorer for details.
3020
3511
  */
3021
- createAntileakageRule(createAntileakageRuleRequest) {
3512
+ confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
3022
3513
  const options = {
3023
- method: "POST",
3024
- url: "/v1/{project_id}/waf/policy/{policy_id}/antileakage",
3514
+ method: "GET",
3515
+ url: "/v1/{project_id}/waf/tag/antileakage/map",
3025
3516
  contentType: "application/json",
3026
3517
  queryParams: {},
3027
3518
  pathParams: {},
3028
- headers: {},
3029
- data: {}
3519
+ headers: {}
3030
3520
  };
3031
3521
  const localVarHeaderParameter = {};
3032
3522
  const localVarQueryParameter = {};
3033
- let body;
3034
3523
  let contentType;
3035
- let policyId;
3036
- let enterpriseProjectId;
3037
- if (createAntileakageRuleRequest !== null && createAntileakageRuleRequest !== undefined) {
3038
- if (createAntileakageRuleRequest instanceof CreateAntileakageRuleRequest_1.CreateAntileakageRuleRequest) {
3039
- contentType = createAntileakageRuleRequest.contentType;
3040
- policyId = createAntileakageRuleRequest.policyId;
3041
- body = createAntileakageRuleRequest.body;
3042
- enterpriseProjectId = createAntileakageRuleRequest.enterpriseProjectId;
3524
+ let lang;
3525
+ if (confirmPolicyAntileakageMapRequest !== null && confirmPolicyAntileakageMapRequest !== undefined) {
3526
+ if (confirmPolicyAntileakageMapRequest instanceof ConfirmPolicyAntileakageMapRequest_1.ConfirmPolicyAntileakageMapRequest) {
3527
+ contentType = confirmPolicyAntileakageMapRequest.contentType;
3528
+ lang = confirmPolicyAntileakageMapRequest.lang;
3043
3529
  }
3044
3530
  else {
3045
- contentType = createAntileakageRuleRequest['Content-Type'];
3046
- policyId = createAntileakageRuleRequest['policy_id'];
3047
- body = createAntileakageRuleRequest['body'];
3048
- enterpriseProjectId = createAntileakageRuleRequest['enterprise_project_id'];
3531
+ contentType = confirmPolicyAntileakageMapRequest['Content-Type'];
3532
+ lang = confirmPolicyAntileakageMapRequest['lang'];
3049
3533
  }
3050
3534
  }
3051
- if (policyId === null || policyId === undefined) {
3052
- throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAntileakageRule.');
3053
- }
3054
- if (body === null || body === undefined) {
3055
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3535
+ if (lang === null || lang === undefined) {
3536
+ throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyAntileakageMap.');
3056
3537
  }
3057
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3058
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3538
+ if (lang !== null && lang !== undefined) {
3539
+ localVarQueryParameter['lang'] = lang;
3059
3540
  }
3060
3541
  if (contentType !== undefined && contentType !== null) {
3061
3542
  localVarHeaderParameter['Content-Type'] = String(contentType);
3062
3543
  }
3063
- localVarHeaderParameter['Content-Type'] = 'application/json';
3064
- options.data = body !== undefined ? body : {};
3065
3544
  options.queryParams = localVarQueryParameter;
3066
- options.pathParams = { 'policy_id': policyId, };
3067
3545
  options.headers = localVarHeaderParameter;
3068
3546
  return options;
3069
3547
  },
3070
3548
  /**
3071
- * 创建cc规则
3549
+ * 查询威胁情报控制防护选项的详细信息
3072
3550
  *
3073
3551
  * Please refer to HUAWEI cloud API Explorer for details.
3074
3552
  */
3075
- createCcRule(createCcRuleRequest) {
3553
+ confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
3076
3554
  const options = {
3077
- method: "POST",
3078
- url: "/v1/{project_id}/waf/policy/{policy_id}/cc",
3555
+ method: "GET",
3556
+ url: "/v1/{project_id}/waf/tag/ip-reputation/map",
3079
3557
  contentType: "application/json",
3080
3558
  queryParams: {},
3081
3559
  pathParams: {},
3082
- headers: {},
3083
- data: {}
3560
+ headers: {}
3084
3561
  };
3085
3562
  const localVarHeaderParameter = {};
3086
3563
  const localVarQueryParameter = {};
3087
- let body;
3088
3564
  let contentType;
3089
- let policyId;
3090
- let enterpriseProjectId;
3091
- if (createCcRuleRequest !== null && createCcRuleRequest !== undefined) {
3092
- if (createCcRuleRequest instanceof CreateCcRuleRequest_1.CreateCcRuleRequest) {
3093
- contentType = createCcRuleRequest.contentType;
3094
- policyId = createCcRuleRequest.policyId;
3095
- enterpriseProjectId = createCcRuleRequest.enterpriseProjectId;
3096
- body = createCcRuleRequest.body;
3565
+ let lang;
3566
+ let type;
3567
+ if (confirmPolicyIpReputationMapRequest !== null && confirmPolicyIpReputationMapRequest !== undefined) {
3568
+ if (confirmPolicyIpReputationMapRequest instanceof ConfirmPolicyIpReputationMapRequest_1.ConfirmPolicyIpReputationMapRequest) {
3569
+ contentType = confirmPolicyIpReputationMapRequest.contentType;
3570
+ lang = confirmPolicyIpReputationMapRequest.lang;
3571
+ type = confirmPolicyIpReputationMapRequest.type;
3097
3572
  }
3098
3573
  else {
3099
- contentType = createCcRuleRequest['Content-Type'];
3100
- policyId = createCcRuleRequest['policy_id'];
3101
- enterpriseProjectId = createCcRuleRequest['enterprise_project_id'];
3102
- body = createCcRuleRequest['body'];
3574
+ contentType = confirmPolicyIpReputationMapRequest['Content-Type'];
3575
+ lang = confirmPolicyIpReputationMapRequest['lang'];
3576
+ type = confirmPolicyIpReputationMapRequest['type'];
3103
3577
  }
3104
3578
  }
3105
- if (policyId === null || policyId === undefined) {
3579
+ if (lang === null || lang === undefined) {
3580
+ throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyIpReputationMap.');
3581
+ }
3582
+ if (lang !== null && lang !== undefined) {
3583
+ localVarQueryParameter['lang'] = lang;
3584
+ }
3585
+ if (type === null || type === undefined) {
3586
+ throw new RequiredError('type', 'Required parameter type was null or undefined when calling confirmPolicyIpReputationMap.');
3587
+ }
3588
+ if (type !== null && type !== undefined) {
3589
+ localVarQueryParameter['type'] = type;
3590
+ }
3591
+ if (contentType !== undefined && contentType !== null) {
3592
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3593
+ }
3594
+ options.queryParams = localVarQueryParameter;
3595
+ options.headers = localVarHeaderParameter;
3596
+ return options;
3597
+ },
3598
+ /**
3599
+ * 按防护规则类型获取内置规则类型
3600
+ *
3601
+ * Please refer to HUAWEI cloud API Explorer for details.
3602
+ */
3603
+ confirmProtectionTypes(confirmProtectionTypesRequest) {
3604
+ const options = {
3605
+ method: "GET",
3606
+ url: "/v1/{project_id}/waf/rules/protection-types",
3607
+ contentType: "application/json",
3608
+ queryParams: {},
3609
+ pathParams: {},
3610
+ headers: {}
3611
+ };
3612
+ const localVarHeaderParameter = {};
3613
+ const localVarQueryParameter = {};
3614
+ let contentType;
3615
+ let offset;
3616
+ let limit;
3617
+ if (confirmProtectionTypesRequest !== null && confirmProtectionTypesRequest !== undefined) {
3618
+ if (confirmProtectionTypesRequest instanceof ConfirmProtectionTypesRequest_1.ConfirmProtectionTypesRequest) {
3619
+ contentType = confirmProtectionTypesRequest.contentType;
3620
+ offset = confirmProtectionTypesRequest.offset;
3621
+ limit = confirmProtectionTypesRequest.limit;
3622
+ }
3623
+ else {
3624
+ contentType = confirmProtectionTypesRequest['Content-Type'];
3625
+ offset = confirmProtectionTypesRequest['offset'];
3626
+ limit = confirmProtectionTypesRequest['limit'];
3627
+ }
3628
+ }
3629
+ if (offset !== null && offset !== undefined) {
3630
+ localVarQueryParameter['offset'] = offset;
3631
+ }
3632
+ if (limit !== null && limit !== undefined) {
3633
+ localVarQueryParameter['limit'] = limit;
3634
+ }
3635
+ if (contentType !== undefined && contentType !== null) {
3636
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3637
+ }
3638
+ options.queryParams = localVarQueryParameter;
3639
+ options.headers = localVarHeaderParameter;
3640
+ return options;
3641
+ },
3642
+ /**
3643
+ * 查询告警可选事件类型
3644
+ *
3645
+ * Please refer to HUAWEI cloud API Explorer for details.
3646
+ */
3647
+ confirmThreatMap(confirmThreatMapRequest) {
3648
+ const options = {
3649
+ method: "GET",
3650
+ url: "/v1/{project_id}/waf/tag/threat/map",
3651
+ contentType: "application/json",
3652
+ queryParams: {},
3653
+ pathParams: {},
3654
+ headers: {}
3655
+ };
3656
+ const localVarHeaderParameter = {};
3657
+ let contentType;
3658
+ if (confirmThreatMapRequest !== null && confirmThreatMapRequest !== undefined) {
3659
+ if (confirmThreatMapRequest instanceof ConfirmThreatMapRequest_1.ConfirmThreatMapRequest) {
3660
+ contentType = confirmThreatMapRequest.contentType;
3661
+ }
3662
+ else {
3663
+ contentType = confirmThreatMapRequest['Content-Type'];
3664
+ }
3665
+ }
3666
+ if (contentType !== undefined && contentType !== null) {
3667
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3668
+ }
3669
+ options.headers = localVarHeaderParameter;
3670
+ return options;
3671
+ },
3672
+ /**
3673
+ * 使用标签过滤实例,标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力。
3674
+ *
3675
+ * Please refer to HUAWEI cloud API Explorer for details.
3676
+ */
3677
+ confirmTmsResourceInstances(confirmTmsResourceInstancesRequest) {
3678
+ const options = {
3679
+ method: "POST",
3680
+ url: "/v1/{project_id}/waf/{resource_type}/resource-instances/action",
3681
+ contentType: "application/json",
3682
+ queryParams: {},
3683
+ pathParams: {},
3684
+ headers: {},
3685
+ data: {}
3686
+ };
3687
+ const localVarHeaderParameter = {};
3688
+ let body;
3689
+ let contentType;
3690
+ let resourceType;
3691
+ if (confirmTmsResourceInstancesRequest !== null && confirmTmsResourceInstancesRequest !== undefined) {
3692
+ if (confirmTmsResourceInstancesRequest instanceof ConfirmTmsResourceInstancesRequest_1.ConfirmTmsResourceInstancesRequest) {
3693
+ contentType = confirmTmsResourceInstancesRequest.contentType;
3694
+ resourceType = confirmTmsResourceInstancesRequest.resourceType;
3695
+ body = confirmTmsResourceInstancesRequest.body;
3696
+ }
3697
+ else {
3698
+ contentType = confirmTmsResourceInstancesRequest['Content-Type'];
3699
+ resourceType = confirmTmsResourceInstancesRequest['resource_type'];
3700
+ body = confirmTmsResourceInstancesRequest['body'];
3701
+ }
3702
+ }
3703
+ if (resourceType === null || resourceType === undefined) {
3704
+ throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling confirmTmsResourceInstances.');
3705
+ }
3706
+ if (body === null || body === undefined) {
3707
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3708
+ }
3709
+ if (contentType !== undefined && contentType !== null) {
3710
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3711
+ }
3712
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3713
+ options.data = body !== undefined ? body : {};
3714
+ options.pathParams = { 'resource_type': resourceType, };
3715
+ options.headers = localVarHeaderParameter;
3716
+ return options;
3717
+ },
3718
+ /**
3719
+ * 获取用户购买的WAF规格信息
3720
+ *
3721
+ * Please refer to HUAWEI cloud API Explorer for details.
3722
+ */
3723
+ confirmUserBundle(confirmUserBundleRequest) {
3724
+ const options = {
3725
+ method: "GET",
3726
+ url: "/v1/{project_id}/waf/bundle",
3727
+ contentType: "application/json",
3728
+ queryParams: {},
3729
+ pathParams: {},
3730
+ headers: {}
3731
+ };
3732
+ const localVarHeaderParameter = {};
3733
+ const localVarQueryParameter = {};
3734
+ let contentType;
3735
+ let enterpriseProjectId;
3736
+ if (confirmUserBundleRequest !== null && confirmUserBundleRequest !== undefined) {
3737
+ if (confirmUserBundleRequest instanceof ConfirmUserBundleRequest_1.ConfirmUserBundleRequest) {
3738
+ contentType = confirmUserBundleRequest.contentType;
3739
+ enterpriseProjectId = confirmUserBundleRequest.enterpriseProjectId;
3740
+ }
3741
+ else {
3742
+ contentType = confirmUserBundleRequest['Content-Type'];
3743
+ enterpriseProjectId = confirmUserBundleRequest['enterprise_project_id'];
3744
+ }
3745
+ }
3746
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3747
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3748
+ }
3749
+ if (contentType !== undefined && contentType !== null) {
3750
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3751
+ }
3752
+ options.queryParams = localVarQueryParameter;
3753
+ options.headers = localVarHeaderParameter;
3754
+ return options;
3755
+ },
3756
+ /**
3757
+ * 创建防篡改规则
3758
+ *
3759
+ * Please refer to HUAWEI cloud API Explorer for details.
3760
+ */
3761
+ createAntiTamperRule(createAntiTamperRuleRequest) {
3762
+ const options = {
3763
+ method: "POST",
3764
+ url: "/v1/{project_id}/waf/policy/{policy_id}/antitamper",
3765
+ contentType: "application/json",
3766
+ queryParams: {},
3767
+ pathParams: {},
3768
+ headers: {},
3769
+ data: {}
3770
+ };
3771
+ const localVarHeaderParameter = {};
3772
+ const localVarQueryParameter = {};
3773
+ let body;
3774
+ let contentType;
3775
+ let policyId;
3776
+ let enterpriseProjectId;
3777
+ if (createAntiTamperRuleRequest !== null && createAntiTamperRuleRequest !== undefined) {
3778
+ if (createAntiTamperRuleRequest instanceof CreateAntiTamperRuleRequest_1.CreateAntiTamperRuleRequest) {
3779
+ contentType = createAntiTamperRuleRequest.contentType;
3780
+ policyId = createAntiTamperRuleRequest.policyId;
3781
+ body = createAntiTamperRuleRequest.body;
3782
+ enterpriseProjectId = createAntiTamperRuleRequest.enterpriseProjectId;
3783
+ }
3784
+ else {
3785
+ contentType = createAntiTamperRuleRequest['Content-Type'];
3786
+ policyId = createAntiTamperRuleRequest['policy_id'];
3787
+ body = createAntiTamperRuleRequest['body'];
3788
+ enterpriseProjectId = createAntiTamperRuleRequest['enterprise_project_id'];
3789
+ }
3790
+ }
3791
+ if (policyId === null || policyId === undefined) {
3792
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAntiTamperRule.');
3793
+ }
3794
+ if (body === null || body === undefined) {
3795
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3796
+ }
3797
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3798
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3799
+ }
3800
+ if (contentType !== undefined && contentType !== null) {
3801
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3802
+ }
3803
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3804
+ options.data = body !== undefined ? body : {};
3805
+ options.queryParams = localVarQueryParameter;
3806
+ options.pathParams = { 'policy_id': policyId, };
3807
+ options.headers = localVarHeaderParameter;
3808
+ return options;
3809
+ },
3810
+ /**
3811
+ * 创建JS脚本反爬虫规则,在调用此接口创建防护规则前,需要调用更新JS脚本反爬虫规则防护模式(UpdateAnticrawlerRuleType)接口指定防护模式
3812
+ *
3813
+ * Please refer to HUAWEI cloud API Explorer for details.
3814
+ */
3815
+ createAnticrawlerRule(createAnticrawlerRuleRequest) {
3816
+ const options = {
3817
+ method: "POST",
3818
+ url: "/v1/{project_id}/waf/policy/{policy_id}/anticrawler",
3819
+ contentType: "application/json",
3820
+ queryParams: {},
3821
+ pathParams: {},
3822
+ headers: {},
3823
+ data: {}
3824
+ };
3825
+ const localVarHeaderParameter = {};
3826
+ const localVarQueryParameter = {};
3827
+ let body;
3828
+ let contentType;
3829
+ let policyId;
3830
+ let enterpriseProjectId;
3831
+ if (createAnticrawlerRuleRequest !== null && createAnticrawlerRuleRequest !== undefined) {
3832
+ if (createAnticrawlerRuleRequest instanceof CreateAnticrawlerRuleRequest_1.CreateAnticrawlerRuleRequest) {
3833
+ contentType = createAnticrawlerRuleRequest.contentType;
3834
+ policyId = createAnticrawlerRuleRequest.policyId;
3835
+ body = createAnticrawlerRuleRequest.body;
3836
+ enterpriseProjectId = createAnticrawlerRuleRequest.enterpriseProjectId;
3837
+ }
3838
+ else {
3839
+ contentType = createAnticrawlerRuleRequest['Content-Type'];
3840
+ policyId = createAnticrawlerRuleRequest['policy_id'];
3841
+ body = createAnticrawlerRuleRequest['body'];
3842
+ enterpriseProjectId = createAnticrawlerRuleRequest['enterprise_project_id'];
3843
+ }
3844
+ }
3845
+ if (policyId === null || policyId === undefined) {
3846
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAnticrawlerRule.');
3847
+ }
3848
+ if (body === null || body === undefined) {
3849
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3850
+ }
3851
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3852
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3853
+ }
3854
+ if (contentType !== undefined && contentType !== null) {
3855
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3856
+ }
3857
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3858
+ options.data = body !== undefined ? body : {};
3859
+ options.queryParams = localVarQueryParameter;
3860
+ options.pathParams = { 'policy_id': policyId, };
3861
+ options.headers = localVarHeaderParameter;
3862
+ return options;
3863
+ },
3864
+ /**
3865
+ * 创建防敏感信息泄露规则
3866
+ *
3867
+ * Please refer to HUAWEI cloud API Explorer for details.
3868
+ */
3869
+ createAntileakageRule(createAntileakageRuleRequest) {
3870
+ const options = {
3871
+ method: "POST",
3872
+ url: "/v1/{project_id}/waf/policy/{policy_id}/antileakage",
3873
+ contentType: "application/json",
3874
+ queryParams: {},
3875
+ pathParams: {},
3876
+ headers: {},
3877
+ data: {}
3878
+ };
3879
+ const localVarHeaderParameter = {};
3880
+ const localVarQueryParameter = {};
3881
+ let body;
3882
+ let contentType;
3883
+ let policyId;
3884
+ let enterpriseProjectId;
3885
+ if (createAntileakageRuleRequest !== null && createAntileakageRuleRequest !== undefined) {
3886
+ if (createAntileakageRuleRequest instanceof CreateAntileakageRuleRequest_1.CreateAntileakageRuleRequest) {
3887
+ contentType = createAntileakageRuleRequest.contentType;
3888
+ policyId = createAntileakageRuleRequest.policyId;
3889
+ body = createAntileakageRuleRequest.body;
3890
+ enterpriseProjectId = createAntileakageRuleRequest.enterpriseProjectId;
3891
+ }
3892
+ else {
3893
+ contentType = createAntileakageRuleRequest['Content-Type'];
3894
+ policyId = createAntileakageRuleRequest['policy_id'];
3895
+ body = createAntileakageRuleRequest['body'];
3896
+ enterpriseProjectId = createAntileakageRuleRequest['enterprise_project_id'];
3897
+ }
3898
+ }
3899
+ if (policyId === null || policyId === undefined) {
3900
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createAntileakageRule.');
3901
+ }
3902
+ if (body === null || body === undefined) {
3903
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3904
+ }
3905
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
3906
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
3907
+ }
3908
+ if (contentType !== undefined && contentType !== null) {
3909
+ localVarHeaderParameter['Content-Type'] = String(contentType);
3910
+ }
3911
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3912
+ options.data = body !== undefined ? body : {};
3913
+ options.queryParams = localVarQueryParameter;
3914
+ options.pathParams = { 'policy_id': policyId, };
3915
+ options.headers = localVarHeaderParameter;
3916
+ return options;
3917
+ },
3918
+ /**
3919
+ * 创建cc规则
3920
+ *
3921
+ * Please refer to HUAWEI cloud API Explorer for details.
3922
+ */
3923
+ createCcRule(createCcRuleRequest) {
3924
+ const options = {
3925
+ method: "POST",
3926
+ url: "/v1/{project_id}/waf/policy/{policy_id}/cc",
3927
+ contentType: "application/json",
3928
+ queryParams: {},
3929
+ pathParams: {},
3930
+ headers: {},
3931
+ data: {}
3932
+ };
3933
+ const localVarHeaderParameter = {};
3934
+ const localVarQueryParameter = {};
3935
+ let body;
3936
+ let contentType;
3937
+ let policyId;
3938
+ let enterpriseProjectId;
3939
+ if (createCcRuleRequest !== null && createCcRuleRequest !== undefined) {
3940
+ if (createCcRuleRequest instanceof CreateCcRuleRequest_1.CreateCcRuleRequest) {
3941
+ contentType = createCcRuleRequest.contentType;
3942
+ policyId = createCcRuleRequest.policyId;
3943
+ enterpriseProjectId = createCcRuleRequest.enterpriseProjectId;
3944
+ body = createCcRuleRequest.body;
3945
+ }
3946
+ else {
3947
+ contentType = createCcRuleRequest['Content-Type'];
3948
+ policyId = createCcRuleRequest['policy_id'];
3949
+ enterpriseProjectId = createCcRuleRequest['enterprise_project_id'];
3950
+ body = createCcRuleRequest['body'];
3951
+ }
3952
+ }
3953
+ if (policyId === null || policyId === undefined) {
3106
3954
  throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createCcRule.');
3107
3955
  }
3108
3956
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
@@ -3521,6 +4369,60 @@ const ParamCreater = function () {
3521
4369
  options.headers = localVarHeaderParameter;
3522
4370
  return options;
3523
4371
  },
4372
+ /**
4373
+ * 创建IP情报规则
4374
+ *
4375
+ * Please refer to HUAWEI cloud API Explorer for details.
4376
+ */
4377
+ createIpReputationRule(createIpReputationRuleRequest) {
4378
+ const options = {
4379
+ method: "POST",
4380
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation",
4381
+ contentType: "application/json",
4382
+ queryParams: {},
4383
+ pathParams: {},
4384
+ headers: {},
4385
+ data: {}
4386
+ };
4387
+ const localVarHeaderParameter = {};
4388
+ const localVarQueryParameter = {};
4389
+ let body;
4390
+ let contentType;
4391
+ let policyId;
4392
+ let enterpriseProjectId;
4393
+ if (createIpReputationRuleRequest !== null && createIpReputationRuleRequest !== undefined) {
4394
+ if (createIpReputationRuleRequest instanceof CreateIpReputationRuleRequest_1.CreateIpReputationRuleRequest) {
4395
+ contentType = createIpReputationRuleRequest.contentType;
4396
+ policyId = createIpReputationRuleRequest.policyId;
4397
+ body = createIpReputationRuleRequest.body;
4398
+ enterpriseProjectId = createIpReputationRuleRequest.enterpriseProjectId;
4399
+ }
4400
+ else {
4401
+ contentType = createIpReputationRuleRequest['Content-Type'];
4402
+ policyId = createIpReputationRuleRequest['policy_id'];
4403
+ body = createIpReputationRuleRequest['body'];
4404
+ enterpriseProjectId = createIpReputationRuleRequest['enterprise_project_id'];
4405
+ }
4406
+ }
4407
+ if (policyId === null || policyId === undefined) {
4408
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createIpReputationRule.');
4409
+ }
4410
+ if (body === null || body === undefined) {
4411
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4412
+ }
4413
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
4414
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
4415
+ }
4416
+ if (contentType !== undefined && contentType !== null) {
4417
+ localVarHeaderParameter['Content-Type'] = String(contentType);
4418
+ }
4419
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4420
+ options.data = body !== undefined ? body : {};
4421
+ options.queryParams = localVarQueryParameter;
4422
+ options.pathParams = { 'policy_id': policyId, };
4423
+ options.headers = localVarHeaderParameter;
4424
+ return options;
4425
+ },
3524
4426
  /**
3525
4427
  * 创建防护策略,系统会在生成策略时配置一些默认的配置项,如果需要修改策略的默认配置项需要通过调用更新防护策略接口实现
3526
4428
  *
@@ -3569,7 +4471,7 @@ const ParamCreater = function () {
3569
4471
  return options;
3570
4472
  },
3571
4473
  /**
3572
- * 创建独享模式域名
4474
+ * 创建独享模式域名或者创建云模式ELB接入模式域名
3573
4475
  *
3574
4476
  * Please refer to HUAWEI cloud API Explorer for details.
3575
4477
  */
@@ -4743,6 +5645,62 @@ const ParamCreater = function () {
4743
5645
  options.headers = localVarHeaderParameter;
4744
5646
  return options;
4745
5647
  },
5648
+ /**
5649
+ * 查询所有策略网页防篡改
5650
+ *
5651
+ * Please refer to HUAWEI cloud API Explorer for details.
5652
+ */
5653
+ listAntiTamperPolicyRules(listAntiTamperPolicyRulesRequest) {
5654
+ const options = {
5655
+ method: "GET",
5656
+ url: "/v1/{project_id}/waf/rule/antitamper",
5657
+ contentType: "application/json",
5658
+ queryParams: {},
5659
+ pathParams: {},
5660
+ headers: {}
5661
+ };
5662
+ const localVarHeaderParameter = {};
5663
+ const localVarQueryParameter = {};
5664
+ let contentType;
5665
+ let policyids;
5666
+ let enterpriseProjectId;
5667
+ let page;
5668
+ let pagesize;
5669
+ if (listAntiTamperPolicyRulesRequest !== null && listAntiTamperPolicyRulesRequest !== undefined) {
5670
+ if (listAntiTamperPolicyRulesRequest instanceof ListAntiTamperPolicyRulesRequest_1.ListAntiTamperPolicyRulesRequest) {
5671
+ contentType = listAntiTamperPolicyRulesRequest.contentType;
5672
+ policyids = listAntiTamperPolicyRulesRequest.policyids;
5673
+ enterpriseProjectId = listAntiTamperPolicyRulesRequest.enterpriseProjectId;
5674
+ page = listAntiTamperPolicyRulesRequest.page;
5675
+ pagesize = listAntiTamperPolicyRulesRequest.pagesize;
5676
+ }
5677
+ else {
5678
+ contentType = listAntiTamperPolicyRulesRequest['Content-Type'];
5679
+ policyids = listAntiTamperPolicyRulesRequest['policyids'];
5680
+ enterpriseProjectId = listAntiTamperPolicyRulesRequest['enterprise_project_id'];
5681
+ page = listAntiTamperPolicyRulesRequest['page'];
5682
+ pagesize = listAntiTamperPolicyRulesRequest['pagesize'];
5683
+ }
5684
+ }
5685
+ if (policyids !== null && policyids !== undefined) {
5686
+ localVarQueryParameter['policyids'] = policyids;
5687
+ }
5688
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5689
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5690
+ }
5691
+ if (page !== null && page !== undefined) {
5692
+ localVarQueryParameter['page'] = page;
5693
+ }
5694
+ if (pagesize !== null && pagesize !== undefined) {
5695
+ localVarQueryParameter['pagesize'] = pagesize;
5696
+ }
5697
+ if (contentType !== undefined && contentType !== null) {
5698
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5699
+ }
5700
+ options.queryParams = localVarQueryParameter;
5701
+ options.headers = localVarHeaderParameter;
5702
+ return options;
5703
+ },
4746
5704
  /**
4747
5705
  * 查询JS脚本反爬虫规则列表
4748
5706
  *
@@ -4812,6 +5770,62 @@ const ParamCreater = function () {
4812
5770
  options.headers = localVarHeaderParameter;
4813
5771
  return options;
4814
5772
  },
5773
+ /**
5774
+ * 查询所有策略防敏感信息泄露规则
5775
+ *
5776
+ * Please refer to HUAWEI cloud API Explorer for details.
5777
+ */
5778
+ listAntileakagePolicyRules(listAntileakagePolicyRulesRequest) {
5779
+ const options = {
5780
+ method: "GET",
5781
+ url: "/v1/{project_id}/waf/rule/antileakage",
5782
+ contentType: "application/json",
5783
+ queryParams: {},
5784
+ pathParams: {},
5785
+ headers: {}
5786
+ };
5787
+ const localVarHeaderParameter = {};
5788
+ const localVarQueryParameter = {};
5789
+ let contentType;
5790
+ let policyids;
5791
+ let enterpriseProjectId;
5792
+ let page;
5793
+ let pagesize;
5794
+ if (listAntileakagePolicyRulesRequest !== null && listAntileakagePolicyRulesRequest !== undefined) {
5795
+ if (listAntileakagePolicyRulesRequest instanceof ListAntileakagePolicyRulesRequest_1.ListAntileakagePolicyRulesRequest) {
5796
+ contentType = listAntileakagePolicyRulesRequest.contentType;
5797
+ policyids = listAntileakagePolicyRulesRequest.policyids;
5798
+ enterpriseProjectId = listAntileakagePolicyRulesRequest.enterpriseProjectId;
5799
+ page = listAntileakagePolicyRulesRequest.page;
5800
+ pagesize = listAntileakagePolicyRulesRequest.pagesize;
5801
+ }
5802
+ else {
5803
+ contentType = listAntileakagePolicyRulesRequest['Content-Type'];
5804
+ policyids = listAntileakagePolicyRulesRequest['policyids'];
5805
+ enterpriseProjectId = listAntileakagePolicyRulesRequest['enterprise_project_id'];
5806
+ page = listAntileakagePolicyRulesRequest['page'];
5807
+ pagesize = listAntileakagePolicyRulesRequest['pagesize'];
5808
+ }
5809
+ }
5810
+ if (policyids !== null && policyids !== undefined) {
5811
+ localVarQueryParameter['policyids'] = policyids;
5812
+ }
5813
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
5814
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
5815
+ }
5816
+ if (page !== null && page !== undefined) {
5817
+ localVarQueryParameter['page'] = page;
5818
+ }
5819
+ if (pagesize !== null && pagesize !== undefined) {
5820
+ localVarQueryParameter['pagesize'] = pagesize;
5821
+ }
5822
+ if (contentType !== undefined && contentType !== null) {
5823
+ localVarHeaderParameter['Content-Type'] = String(contentType);
5824
+ }
5825
+ options.queryParams = localVarQueryParameter;
5826
+ options.headers = localVarHeaderParameter;
5827
+ return options;
5828
+ },
4815
5829
  /**
4816
5830
  * 查询防敏感信息泄露规则列表
4817
5831
  *
@@ -5068,6 +6082,62 @@ const ParamCreater = function () {
5068
6082
  options.headers = localVarHeaderParameter;
5069
6083
  return options;
5070
6084
  },
6085
+ /**
6086
+ * 查询所有策略CC规则
6087
+ *
6088
+ * Please refer to HUAWEI cloud API Explorer for details.
6089
+ */
6090
+ listCcPolicyRules(listCcPolicyRulesRequest) {
6091
+ const options = {
6092
+ method: "GET",
6093
+ url: "/v1/{project_id}/waf/rule/cc",
6094
+ contentType: "application/json",
6095
+ queryParams: {},
6096
+ pathParams: {},
6097
+ headers: {}
6098
+ };
6099
+ const localVarHeaderParameter = {};
6100
+ const localVarQueryParameter = {};
6101
+ let contentType;
6102
+ let policyids;
6103
+ let enterpriseProjectId;
6104
+ let page;
6105
+ let pagesize;
6106
+ if (listCcPolicyRulesRequest !== null && listCcPolicyRulesRequest !== undefined) {
6107
+ if (listCcPolicyRulesRequest instanceof ListCcPolicyRulesRequest_1.ListCcPolicyRulesRequest) {
6108
+ contentType = listCcPolicyRulesRequest.contentType;
6109
+ policyids = listCcPolicyRulesRequest.policyids;
6110
+ enterpriseProjectId = listCcPolicyRulesRequest.enterpriseProjectId;
6111
+ page = listCcPolicyRulesRequest.page;
6112
+ pagesize = listCcPolicyRulesRequest.pagesize;
6113
+ }
6114
+ else {
6115
+ contentType = listCcPolicyRulesRequest['Content-Type'];
6116
+ policyids = listCcPolicyRulesRequest['policyids'];
6117
+ enterpriseProjectId = listCcPolicyRulesRequest['enterprise_project_id'];
6118
+ page = listCcPolicyRulesRequest['page'];
6119
+ pagesize = listCcPolicyRulesRequest['pagesize'];
6120
+ }
6121
+ }
6122
+ if (policyids !== null && policyids !== undefined) {
6123
+ localVarQueryParameter['policyids'] = policyids;
6124
+ }
6125
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6126
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6127
+ }
6128
+ if (page !== null && page !== undefined) {
6129
+ localVarQueryParameter['page'] = page;
6130
+ }
6131
+ if (pagesize !== null && pagesize !== undefined) {
6132
+ localVarQueryParameter['pagesize'] = pagesize;
6133
+ }
6134
+ if (contentType !== undefined && contentType !== null) {
6135
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6136
+ }
6137
+ options.queryParams = localVarQueryParameter;
6138
+ options.headers = localVarHeaderParameter;
6139
+ return options;
6140
+ },
5071
6141
  /**
5072
6142
  * 查询cc规则列表
5073
6143
  *
@@ -5285,6 +6355,62 @@ const ParamCreater = function () {
5285
6355
  options.headers = localVarHeaderParameter;
5286
6356
  return options;
5287
6357
  },
6358
+ /**
6359
+ * 查询所有策略精准防护规则
6360
+ *
6361
+ * Please refer to HUAWEI cloud API Explorer for details.
6362
+ */
6363
+ listCustomPolicyRules(listCustomPolicyRulesRequest) {
6364
+ const options = {
6365
+ method: "GET",
6366
+ url: "/v1/{project_id}/waf/rule/custom",
6367
+ contentType: "application/json",
6368
+ queryParams: {},
6369
+ pathParams: {},
6370
+ headers: {}
6371
+ };
6372
+ const localVarHeaderParameter = {};
6373
+ const localVarQueryParameter = {};
6374
+ let contentType;
6375
+ let policyids;
6376
+ let enterpriseProjectId;
6377
+ let page;
6378
+ let pagesize;
6379
+ if (listCustomPolicyRulesRequest !== null && listCustomPolicyRulesRequest !== undefined) {
6380
+ if (listCustomPolicyRulesRequest instanceof ListCustomPolicyRulesRequest_1.ListCustomPolicyRulesRequest) {
6381
+ contentType = listCustomPolicyRulesRequest.contentType;
6382
+ policyids = listCustomPolicyRulesRequest.policyids;
6383
+ enterpriseProjectId = listCustomPolicyRulesRequest.enterpriseProjectId;
6384
+ page = listCustomPolicyRulesRequest.page;
6385
+ pagesize = listCustomPolicyRulesRequest.pagesize;
6386
+ }
6387
+ else {
6388
+ contentType = listCustomPolicyRulesRequest['Content-Type'];
6389
+ policyids = listCustomPolicyRulesRequest['policyids'];
6390
+ enterpriseProjectId = listCustomPolicyRulesRequest['enterprise_project_id'];
6391
+ page = listCustomPolicyRulesRequest['page'];
6392
+ pagesize = listCustomPolicyRulesRequest['pagesize'];
6393
+ }
6394
+ }
6395
+ if (policyids !== null && policyids !== undefined) {
6396
+ localVarQueryParameter['policyids'] = policyids;
6397
+ }
6398
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6399
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6400
+ }
6401
+ if (page !== null && page !== undefined) {
6402
+ localVarQueryParameter['page'] = page;
6403
+ }
6404
+ if (pagesize !== null && pagesize !== undefined) {
6405
+ localVarQueryParameter['pagesize'] = pagesize;
6406
+ }
6407
+ if (contentType !== undefined && contentType !== null) {
6408
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6409
+ }
6410
+ options.queryParams = localVarQueryParameter;
6411
+ options.headers = localVarHeaderParameter;
6412
+ return options;
6413
+ },
5288
6414
  /**
5289
6415
  * 查询精准防护规则列表
5290
6416
  *
@@ -5433,22 +6559,66 @@ const ParamCreater = function () {
5433
6559
  if (contentType !== undefined && contentType !== null) {
5434
6560
  localVarHeaderParameter['Content-Type'] = String(contentType);
5435
6561
  }
5436
- if (xLanguage !== undefined && xLanguage !== null) {
5437
- localVarHeaderParameter['X-Language'] = String(xLanguage);
5438
- }
6562
+ if (xLanguage !== undefined && xLanguage !== null) {
6563
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6564
+ }
6565
+ options.queryParams = localVarQueryParameter;
6566
+ options.headers = localVarHeaderParameter;
6567
+ return options;
6568
+ },
6569
+ /**
6570
+ * 查询事件日志下载的url
6571
+ *
6572
+ * Please refer to HUAWEI cloud API Explorer for details.
6573
+ */
6574
+ listEventLog(listEventLogRequest) {
6575
+ const options = {
6576
+ method: "GET",
6577
+ url: "/v1/{project_id}/waf/event/dump",
6578
+ contentType: "application/json",
6579
+ queryParams: {},
6580
+ pathParams: {},
6581
+ headers: {}
6582
+ };
6583
+ const localVarHeaderParameter = {};
6584
+ const localVarQueryParameter = {};
6585
+ let contentType;
6586
+ let page;
6587
+ let pagesize;
6588
+ if (listEventLogRequest !== null && listEventLogRequest !== undefined) {
6589
+ if (listEventLogRequest instanceof ListEventLogRequest_1.ListEventLogRequest) {
6590
+ contentType = listEventLogRequest.contentType;
6591
+ page = listEventLogRequest.page;
6592
+ pagesize = listEventLogRequest.pagesize;
6593
+ }
6594
+ else {
6595
+ contentType = listEventLogRequest['Content-Type'];
6596
+ page = listEventLogRequest['page'];
6597
+ pagesize = listEventLogRequest['pagesize'];
6598
+ }
6599
+ }
6600
+ if (page !== null && page !== undefined) {
6601
+ localVarQueryParameter['page'] = page;
6602
+ }
6603
+ if (pagesize !== null && pagesize !== undefined) {
6604
+ localVarQueryParameter['pagesize'] = pagesize;
6605
+ }
6606
+ if (contentType !== undefined && contentType !== null) {
6607
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6608
+ }
5439
6609
  options.queryParams = localVarQueryParameter;
5440
6610
  options.headers = localVarHeaderParameter;
5441
6611
  return options;
5442
6612
  },
5443
6613
  /**
5444
- * 查询事件日志下载的url
6614
+ * 查询所有策略地理位置访问控制
5445
6615
  *
5446
6616
  * Please refer to HUAWEI cloud API Explorer for details.
5447
6617
  */
5448
- listEventLog(listEventLogRequest) {
6618
+ listGeoIpPolicyRules(listGeoIpPolicyRulesRequest) {
5449
6619
  const options = {
5450
6620
  method: "GET",
5451
- url: "/v1/{project_id}/waf/event/dump",
6621
+ url: "/v1/{project_id}/waf/rule/geoip",
5452
6622
  contentType: "application/json",
5453
6623
  queryParams: {},
5454
6624
  pathParams: {},
@@ -5457,20 +6627,32 @@ const ParamCreater = function () {
5457
6627
  const localVarHeaderParameter = {};
5458
6628
  const localVarQueryParameter = {};
5459
6629
  let contentType;
6630
+ let policyids;
6631
+ let enterpriseProjectId;
5460
6632
  let page;
5461
6633
  let pagesize;
5462
- if (listEventLogRequest !== null && listEventLogRequest !== undefined) {
5463
- if (listEventLogRequest instanceof ListEventLogRequest_1.ListEventLogRequest) {
5464
- contentType = listEventLogRequest.contentType;
5465
- page = listEventLogRequest.page;
5466
- pagesize = listEventLogRequest.pagesize;
6634
+ if (listGeoIpPolicyRulesRequest !== null && listGeoIpPolicyRulesRequest !== undefined) {
6635
+ if (listGeoIpPolicyRulesRequest instanceof ListGeoIpPolicyRulesRequest_1.ListGeoIpPolicyRulesRequest) {
6636
+ contentType = listGeoIpPolicyRulesRequest.contentType;
6637
+ policyids = listGeoIpPolicyRulesRequest.policyids;
6638
+ enterpriseProjectId = listGeoIpPolicyRulesRequest.enterpriseProjectId;
6639
+ page = listGeoIpPolicyRulesRequest.page;
6640
+ pagesize = listGeoIpPolicyRulesRequest.pagesize;
5467
6641
  }
5468
6642
  else {
5469
- contentType = listEventLogRequest['Content-Type'];
5470
- page = listEventLogRequest['page'];
5471
- pagesize = listEventLogRequest['pagesize'];
6643
+ contentType = listGeoIpPolicyRulesRequest['Content-Type'];
6644
+ policyids = listGeoIpPolicyRulesRequest['policyids'];
6645
+ enterpriseProjectId = listGeoIpPolicyRulesRequest['enterprise_project_id'];
6646
+ page = listGeoIpPolicyRulesRequest['page'];
6647
+ pagesize = listGeoIpPolicyRulesRequest['pagesize'];
5472
6648
  }
5473
6649
  }
6650
+ if (policyids !== null && policyids !== undefined) {
6651
+ localVarQueryParameter['policyids'] = policyids;
6652
+ }
6653
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6654
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6655
+ }
5474
6656
  if (page !== null && page !== undefined) {
5475
6657
  localVarQueryParameter['page'] = page;
5476
6658
  }
@@ -5604,15 +6786,7 @@ const ParamCreater = function () {
5604
6786
  return options;
5605
6787
  },
5606
6788
  /**
5607
- * **参数解释:**
5608
- * 返回路由信息。
5609
- * &gt; 该API局点受限使用,后续将下线。
5610
- * **约束限制:**
5611
- * 不涉及
5612
- * **取值范围:**
5613
- * 不涉及
5614
- * **默认取值:**
5615
- * 不涉及
6789
+ * 返回路由信息。 &gt; 该API局点受限使用,后续将下线。
5616
6790
  *
5617
6791
  * Please refer to HUAWEI cloud API Explorer for details.
5618
6792
  */
@@ -5656,6 +6830,62 @@ const ParamCreater = function () {
5656
6830
  options.headers = localVarHeaderParameter;
5657
6831
  return options;
5658
6832
  },
6833
+ /**
6834
+ * 查询所有策略全局白名单
6835
+ *
6836
+ * Please refer to HUAWEI cloud API Explorer for details.
6837
+ */
6838
+ listIgnorePolicyRules(listIgnorePolicyRulesRequest) {
6839
+ const options = {
6840
+ method: "GET",
6841
+ url: "/v1/{project_id}/waf/rule/ignore",
6842
+ contentType: "application/json",
6843
+ queryParams: {},
6844
+ pathParams: {},
6845
+ headers: {}
6846
+ };
6847
+ const localVarHeaderParameter = {};
6848
+ const localVarQueryParameter = {};
6849
+ let contentType;
6850
+ let policyids;
6851
+ let enterpriseProjectId;
6852
+ let page;
6853
+ let pagesize;
6854
+ if (listIgnorePolicyRulesRequest !== null && listIgnorePolicyRulesRequest !== undefined) {
6855
+ if (listIgnorePolicyRulesRequest instanceof ListIgnorePolicyRulesRequest_1.ListIgnorePolicyRulesRequest) {
6856
+ contentType = listIgnorePolicyRulesRequest.contentType;
6857
+ policyids = listIgnorePolicyRulesRequest.policyids;
6858
+ enterpriseProjectId = listIgnorePolicyRulesRequest.enterpriseProjectId;
6859
+ page = listIgnorePolicyRulesRequest.page;
6860
+ pagesize = listIgnorePolicyRulesRequest.pagesize;
6861
+ }
6862
+ else {
6863
+ contentType = listIgnorePolicyRulesRequest['Content-Type'];
6864
+ policyids = listIgnorePolicyRulesRequest['policyids'];
6865
+ enterpriseProjectId = listIgnorePolicyRulesRequest['enterprise_project_id'];
6866
+ page = listIgnorePolicyRulesRequest['page'];
6867
+ pagesize = listIgnorePolicyRulesRequest['pagesize'];
6868
+ }
6869
+ }
6870
+ if (policyids !== null && policyids !== undefined) {
6871
+ localVarQueryParameter['policyids'] = policyids;
6872
+ }
6873
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6874
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
6875
+ }
6876
+ if (page !== null && page !== undefined) {
6877
+ localVarQueryParameter['page'] = page;
6878
+ }
6879
+ if (pagesize !== null && pagesize !== undefined) {
6880
+ localVarQueryParameter['pagesize'] = pagesize;
6881
+ }
6882
+ if (contentType !== undefined && contentType !== null) {
6883
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6884
+ }
6885
+ options.queryParams = localVarQueryParameter;
6886
+ options.headers = localVarHeaderParameter;
6887
+ return options;
6888
+ },
5659
6889
  /**
5660
6890
  * 查询全局白名单(原误报屏蔽)规则列表
5661
6891
  *
@@ -5769,6 +6999,51 @@ const ParamCreater = function () {
5769
6999
  options.headers = localVarHeaderParameter;
5770
7000
  return options;
5771
7001
  },
7002
+ /**
7003
+ * 查询WAF独享引擎标签。独享模式只在部分局点支持,包括:华北-北京四、华东-上海一、华南-广州、华南-深圳 、中国-香港、亚太-曼谷、 亚太-新加坡。
7004
+ *
7005
+ * Please refer to HUAWEI cloud API Explorer for details.
7006
+ */
7007
+ listInstanceTags(listInstanceTagsRequest) {
7008
+ const options = {
7009
+ method: "GET",
7010
+ url: "/v1/{project_id}/waf/{resourceid}/tags",
7011
+ contentType: "application/json",
7012
+ queryParams: {},
7013
+ pathParams: {},
7014
+ headers: {}
7015
+ };
7016
+ const localVarHeaderParameter = {};
7017
+ const localVarQueryParameter = {};
7018
+ let contentType;
7019
+ let resourceid;
7020
+ let enterpriseProjectId;
7021
+ if (listInstanceTagsRequest !== null && listInstanceTagsRequest !== undefined) {
7022
+ if (listInstanceTagsRequest instanceof ListInstanceTagsRequest_1.ListInstanceTagsRequest) {
7023
+ contentType = listInstanceTagsRequest.contentType;
7024
+ resourceid = listInstanceTagsRequest.resourceid;
7025
+ enterpriseProjectId = listInstanceTagsRequest.enterpriseProjectId;
7026
+ }
7027
+ else {
7028
+ contentType = listInstanceTagsRequest['Content-Type'];
7029
+ resourceid = listInstanceTagsRequest['resourceid'];
7030
+ enterpriseProjectId = listInstanceTagsRequest['enterprise_project_id'];
7031
+ }
7032
+ }
7033
+ if (resourceid === null || resourceid === undefined) {
7034
+ throw new RequiredError('resourceid', 'Required parameter resourceid was null or undefined when calling listInstanceTags.');
7035
+ }
7036
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7037
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7038
+ }
7039
+ if (contentType !== undefined && contentType !== null) {
7040
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7041
+ }
7042
+ options.queryParams = localVarQueryParameter;
7043
+ options.pathParams = { 'resourceid': resourceid, };
7044
+ options.headers = localVarHeaderParameter;
7045
+ return options;
7046
+ },
5772
7047
  /**
5773
7048
  * 查询地址组列表
5774
7049
  *
@@ -5831,6 +7106,125 @@ const ParamCreater = function () {
5831
7106
  options.headers = localVarHeaderParameter;
5832
7107
  return options;
5833
7108
  },
7109
+ /**
7110
+ * 查询所有策略威胁情报控制规则
7111
+ *
7112
+ * Please refer to HUAWEI cloud API Explorer for details.
7113
+ */
7114
+ listIpReputationPolicyRules(listIpReputationPolicyRulesRequest) {
7115
+ const options = {
7116
+ method: "GET",
7117
+ url: "/v1/{project_id}/waf/rule/ip-reputation",
7118
+ contentType: "application/json",
7119
+ queryParams: {},
7120
+ pathParams: {},
7121
+ headers: {}
7122
+ };
7123
+ const localVarHeaderParameter = {};
7124
+ const localVarQueryParameter = {};
7125
+ let contentType;
7126
+ let policyids;
7127
+ let enterpriseProjectId;
7128
+ let page;
7129
+ let pagesize;
7130
+ if (listIpReputationPolicyRulesRequest !== null && listIpReputationPolicyRulesRequest !== undefined) {
7131
+ if (listIpReputationPolicyRulesRequest instanceof ListIpReputationPolicyRulesRequest_1.ListIpReputationPolicyRulesRequest) {
7132
+ contentType = listIpReputationPolicyRulesRequest.contentType;
7133
+ policyids = listIpReputationPolicyRulesRequest.policyids;
7134
+ enterpriseProjectId = listIpReputationPolicyRulesRequest.enterpriseProjectId;
7135
+ page = listIpReputationPolicyRulesRequest.page;
7136
+ pagesize = listIpReputationPolicyRulesRequest.pagesize;
7137
+ }
7138
+ else {
7139
+ contentType = listIpReputationPolicyRulesRequest['Content-Type'];
7140
+ policyids = listIpReputationPolicyRulesRequest['policyids'];
7141
+ enterpriseProjectId = listIpReputationPolicyRulesRequest['enterprise_project_id'];
7142
+ page = listIpReputationPolicyRulesRequest['page'];
7143
+ pagesize = listIpReputationPolicyRulesRequest['pagesize'];
7144
+ }
7145
+ }
7146
+ if (policyids !== null && policyids !== undefined) {
7147
+ localVarQueryParameter['policyids'] = policyids;
7148
+ }
7149
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7150
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7151
+ }
7152
+ if (page !== null && page !== undefined) {
7153
+ localVarQueryParameter['page'] = page;
7154
+ }
7155
+ if (pagesize !== null && pagesize !== undefined) {
7156
+ localVarQueryParameter['pagesize'] = pagesize;
7157
+ }
7158
+ if (contentType !== undefined && contentType !== null) {
7159
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7160
+ }
7161
+ options.queryParams = localVarQueryParameter;
7162
+ options.headers = localVarHeaderParameter;
7163
+ return options;
7164
+ },
7165
+ /**
7166
+ * 查询威胁情报规则列表
7167
+ *
7168
+ * Please refer to HUAWEI cloud API Explorer for details.
7169
+ */
7170
+ listIpReputationRules(listIpReputationRulesRequest) {
7171
+ const options = {
7172
+ method: "GET",
7173
+ url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation",
7174
+ contentType: "application/json",
7175
+ queryParams: {},
7176
+ pathParams: {},
7177
+ headers: {}
7178
+ };
7179
+ const localVarHeaderParameter = {};
7180
+ const localVarQueryParameter = {};
7181
+ let contentType;
7182
+ let policyId;
7183
+ let offset;
7184
+ let limit;
7185
+ let enterpriseProjectId;
7186
+ if (listIpReputationRulesRequest !== null && listIpReputationRulesRequest !== undefined) {
7187
+ if (listIpReputationRulesRequest instanceof ListIpReputationRulesRequest_1.ListIpReputationRulesRequest) {
7188
+ contentType = listIpReputationRulesRequest.contentType;
7189
+ policyId = listIpReputationRulesRequest.policyId;
7190
+ offset = listIpReputationRulesRequest.offset;
7191
+ limit = listIpReputationRulesRequest.limit;
7192
+ enterpriseProjectId = listIpReputationRulesRequest.enterpriseProjectId;
7193
+ }
7194
+ else {
7195
+ contentType = listIpReputationRulesRequest['Content-Type'];
7196
+ policyId = listIpReputationRulesRequest['policy_id'];
7197
+ offset = listIpReputationRulesRequest['offset'];
7198
+ limit = listIpReputationRulesRequest['limit'];
7199
+ enterpriseProjectId = listIpReputationRulesRequest['enterprise_project_id'];
7200
+ }
7201
+ }
7202
+ if (policyId === null || policyId === undefined) {
7203
+ throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling listIpReputationRules.');
7204
+ }
7205
+ if (offset === null || offset === undefined) {
7206
+ throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling listIpReputationRules.');
7207
+ }
7208
+ if (offset !== null && offset !== undefined) {
7209
+ localVarQueryParameter['offset'] = offset;
7210
+ }
7211
+ if (limit === null || limit === undefined) {
7212
+ throw new RequiredError('limit', 'Required parameter limit was null or undefined when calling listIpReputationRules.');
7213
+ }
7214
+ if (limit !== null && limit !== undefined) {
7215
+ localVarQueryParameter['limit'] = limit;
7216
+ }
7217
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7218
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7219
+ }
7220
+ if (contentType !== undefined && contentType !== null) {
7221
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7222
+ }
7223
+ options.queryParams = localVarQueryParameter;
7224
+ options.pathParams = { 'policy_id': policyId, };
7225
+ options.headers = localVarHeaderParameter;
7226
+ return options;
7227
+ },
5834
7228
  /**
5835
7229
  * 查询告警通知配置
5836
7230
  *
@@ -6073,6 +7467,62 @@ const ParamCreater = function () {
6073
7467
  options.headers = localVarHeaderParameter;
6074
7468
  return options;
6075
7469
  },
7470
+ /**
7471
+ * 查询所有策略隐私屏蔽防护规则
7472
+ *
7473
+ * Please refer to HUAWEI cloud API Explorer for details.
7474
+ */
7475
+ listPrivacyPolicyRules(listPrivacyPolicyRulesRequest) {
7476
+ const options = {
7477
+ method: "GET",
7478
+ url: "/v1/{project_id}/waf/rule/privacy",
7479
+ contentType: "application/json",
7480
+ queryParams: {},
7481
+ pathParams: {},
7482
+ headers: {}
7483
+ };
7484
+ const localVarHeaderParameter = {};
7485
+ const localVarQueryParameter = {};
7486
+ let contentType;
7487
+ let policyids;
7488
+ let enterpriseProjectId;
7489
+ let page;
7490
+ let pagesize;
7491
+ if (listPrivacyPolicyRulesRequest !== null && listPrivacyPolicyRulesRequest !== undefined) {
7492
+ if (listPrivacyPolicyRulesRequest instanceof ListPrivacyPolicyRulesRequest_1.ListPrivacyPolicyRulesRequest) {
7493
+ contentType = listPrivacyPolicyRulesRequest.contentType;
7494
+ policyids = listPrivacyPolicyRulesRequest.policyids;
7495
+ enterpriseProjectId = listPrivacyPolicyRulesRequest.enterpriseProjectId;
7496
+ page = listPrivacyPolicyRulesRequest.page;
7497
+ pagesize = listPrivacyPolicyRulesRequest.pagesize;
7498
+ }
7499
+ else {
7500
+ contentType = listPrivacyPolicyRulesRequest['Content-Type'];
7501
+ policyids = listPrivacyPolicyRulesRequest['policyids'];
7502
+ enterpriseProjectId = listPrivacyPolicyRulesRequest['enterprise_project_id'];
7503
+ page = listPrivacyPolicyRulesRequest['page'];
7504
+ pagesize = listPrivacyPolicyRulesRequest['pagesize'];
7505
+ }
7506
+ }
7507
+ if (policyids !== null && policyids !== undefined) {
7508
+ localVarQueryParameter['policyids'] = policyids;
7509
+ }
7510
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7511
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7512
+ }
7513
+ if (page !== null && page !== undefined) {
7514
+ localVarQueryParameter['page'] = page;
7515
+ }
7516
+ if (pagesize !== null && pagesize !== undefined) {
7517
+ localVarQueryParameter['pagesize'] = pagesize;
7518
+ }
7519
+ if (contentType !== undefined && contentType !== null) {
7520
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7521
+ }
7522
+ options.queryParams = localVarQueryParameter;
7523
+ options.headers = localVarHeaderParameter;
7524
+ return options;
7525
+ },
6076
7526
  /**
6077
7527
  * 查询隐私屏蔽防护规则列表
6078
7528
  *
@@ -6113,20 +7563,71 @@ const ParamCreater = function () {
6113
7563
  if (policyId === null || policyId === undefined) {
6114
7564
  throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling listPrivacyRule.');
6115
7565
  }
6116
- if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
6117
- localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7566
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7567
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7568
+ }
7569
+ if (page !== null && page !== undefined) {
7570
+ localVarQueryParameter['page'] = page;
7571
+ }
7572
+ if (pagesize !== null && pagesize !== undefined) {
7573
+ localVarQueryParameter['pagesize'] = pagesize;
7574
+ }
7575
+ if (contentType !== undefined && contentType !== null) {
7576
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7577
+ }
7578
+ options.queryParams = localVarQueryParameter;
7579
+ options.pathParams = { 'policy_id': policyId, };
7580
+ options.headers = localVarHeaderParameter;
7581
+ return options;
7582
+ },
7583
+ /**
7584
+ * 查询可防护的资源列表
7585
+ *
7586
+ * Please refer to HUAWEI cloud API Explorer for details.
7587
+ */
7588
+ listProtectableResources(listProtectableResourcesRequest) {
7589
+ const options = {
7590
+ method: "GET",
7591
+ url: "/v1/{project_id}/premium-waf/host/protectable-resources/{resource_type}",
7592
+ contentType: "application/json",
7593
+ queryParams: {},
7594
+ pathParams: {},
7595
+ headers: {}
7596
+ };
7597
+ const localVarHeaderParameter = {};
7598
+ const localVarQueryParameter = {};
7599
+ let contentType;
7600
+ let resourceType;
7601
+ let vpcId;
7602
+ let region;
7603
+ if (listProtectableResourcesRequest !== null && listProtectableResourcesRequest !== undefined) {
7604
+ if (listProtectableResourcesRequest instanceof ListProtectableResourcesRequest_1.ListProtectableResourcesRequest) {
7605
+ contentType = listProtectableResourcesRequest.contentType;
7606
+ resourceType = listProtectableResourcesRequest.resourceType;
7607
+ vpcId = listProtectableResourcesRequest.vpcId;
7608
+ region = listProtectableResourcesRequest.region;
7609
+ }
7610
+ else {
7611
+ contentType = listProtectableResourcesRequest['Content-Type'];
7612
+ resourceType = listProtectableResourcesRequest['resource_type'];
7613
+ vpcId = listProtectableResourcesRequest['vpc_id'];
7614
+ region = listProtectableResourcesRequest['region'];
7615
+ }
7616
+ }
7617
+ if (resourceType === null || resourceType === undefined) {
7618
+ throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling listProtectableResources.');
6118
7619
  }
6119
- if (page !== null && page !== undefined) {
6120
- localVarQueryParameter['page'] = page;
7620
+ if (vpcId !== null && vpcId !== undefined) {
7621
+ localVarQueryParameter['vpc_id'] = vpcId;
6121
7622
  }
6122
- if (pagesize !== null && pagesize !== undefined) {
6123
- localVarQueryParameter['pagesize'] = pagesize;
7623
+ if (region !== undefined && region !== null) {
7624
+ localVarHeaderParameter['region'] = String(region);
6124
7625
  }
6125
7626
  if (contentType !== undefined && contentType !== null) {
6126
7627
  localVarHeaderParameter['Content-Type'] = String(contentType);
6127
7628
  }
6128
7629
  options.queryParams = localVarQueryParameter;
6129
- options.pathParams = { 'policy_id': policyId, };
7630
+ options.pathParams = { 'resource_type': resourceType, };
6130
7631
  options.headers = localVarHeaderParameter;
6131
7632
  return options;
6132
7633
  },
@@ -6341,6 +7842,195 @@ const ParamCreater = function () {
6341
7842
  options.headers = localVarHeaderParameter;
6342
7843
  return options;
6343
7844
  },
7845
+ /**
7846
+ * 查询安全统计响应码数据
7847
+ *
7848
+ * Please refer to HUAWEI cloud API Explorer for details.
7849
+ */
7850
+ listResponseCodeTimeline(listResponseCodeTimelineRequest) {
7851
+ const options = {
7852
+ method: "GET",
7853
+ url: "/v1/{project_id}/waf/overviews/response-code/timeline",
7854
+ contentType: "application/json",
7855
+ queryParams: {},
7856
+ pathParams: {},
7857
+ headers: {}
7858
+ };
7859
+ const localVarHeaderParameter = {};
7860
+ const localVarQueryParameter = {};
7861
+ let contentType;
7862
+ let from;
7863
+ let to;
7864
+ let enterpriseProjectId;
7865
+ let hosts;
7866
+ let instances;
7867
+ let responseSource;
7868
+ let groupBy;
7869
+ if (listResponseCodeTimelineRequest !== null && listResponseCodeTimelineRequest !== undefined) {
7870
+ if (listResponseCodeTimelineRequest instanceof ListResponseCodeTimelineRequest_1.ListResponseCodeTimelineRequest) {
7871
+ contentType = listResponseCodeTimelineRequest.contentType;
7872
+ from = listResponseCodeTimelineRequest.from;
7873
+ to = listResponseCodeTimelineRequest.to;
7874
+ enterpriseProjectId = listResponseCodeTimelineRequest.enterpriseProjectId;
7875
+ hosts = listResponseCodeTimelineRequest.hosts;
7876
+ instances = listResponseCodeTimelineRequest.instances;
7877
+ responseSource = listResponseCodeTimelineRequest.responseSource;
7878
+ groupBy = listResponseCodeTimelineRequest.groupBy;
7879
+ }
7880
+ else {
7881
+ contentType = listResponseCodeTimelineRequest['Content-Type'];
7882
+ from = listResponseCodeTimelineRequest['from'];
7883
+ to = listResponseCodeTimelineRequest['to'];
7884
+ enterpriseProjectId = listResponseCodeTimelineRequest['enterprise_project_id'];
7885
+ hosts = listResponseCodeTimelineRequest['hosts'];
7886
+ instances = listResponseCodeTimelineRequest['instances'];
7887
+ responseSource = listResponseCodeTimelineRequest['response_source'];
7888
+ groupBy = listResponseCodeTimelineRequest['group_by'];
7889
+ }
7890
+ }
7891
+ if (from === null || from === undefined) {
7892
+ throw new RequiredError('from', 'Required parameter from was null or undefined when calling listResponseCodeTimeline.');
7893
+ }
7894
+ if (from !== null && from !== undefined) {
7895
+ localVarQueryParameter['from'] = from;
7896
+ }
7897
+ if (to === null || to === undefined) {
7898
+ throw new RequiredError('to', 'Required parameter to was null or undefined when calling listResponseCodeTimeline.');
7899
+ }
7900
+ if (to !== null && to !== undefined) {
7901
+ localVarQueryParameter['to'] = to;
7902
+ }
7903
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
7904
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
7905
+ }
7906
+ if (hosts !== null && hosts !== undefined) {
7907
+ localVarQueryParameter['hosts'] = hosts;
7908
+ }
7909
+ if (instances !== null && instances !== undefined) {
7910
+ localVarQueryParameter['instances'] = instances;
7911
+ }
7912
+ if (responseSource !== null && responseSource !== undefined) {
7913
+ localVarQueryParameter['response_source'] = responseSource;
7914
+ }
7915
+ if (groupBy !== null && groupBy !== undefined) {
7916
+ localVarQueryParameter['group_by'] = groupBy;
7917
+ }
7918
+ if (contentType !== undefined && contentType !== null) {
7919
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7920
+ }
7921
+ options.queryParams = localVarQueryParameter;
7922
+ options.headers = localVarHeaderParameter;
7923
+ return options;
7924
+ },
7925
+ /**
7926
+ * 查询安全报告历史统计周期列表
7927
+ *
7928
+ * Please refer to HUAWEI cloud API Explorer for details.
7929
+ */
7930
+ listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
7931
+ const options = {
7932
+ method: "GET",
7933
+ url: "/v1/{project_id}/waf/security-report/history-periods",
7934
+ contentType: "application/json",
7935
+ queryParams: {},
7936
+ pathParams: {},
7937
+ headers: {}
7938
+ };
7939
+ const localVarHeaderParameter = {};
7940
+ const localVarQueryParameter = {};
7941
+ let contentType;
7942
+ let subscriptionId;
7943
+ let limit;
7944
+ let offset;
7945
+ if (listSecurityReportHistoryPeriodsRequest !== null && listSecurityReportHistoryPeriodsRequest !== undefined) {
7946
+ if (listSecurityReportHistoryPeriodsRequest instanceof ListSecurityReportHistoryPeriodsRequest_1.ListSecurityReportHistoryPeriodsRequest) {
7947
+ contentType = listSecurityReportHistoryPeriodsRequest.contentType;
7948
+ subscriptionId = listSecurityReportHistoryPeriodsRequest.subscriptionId;
7949
+ limit = listSecurityReportHistoryPeriodsRequest.limit;
7950
+ offset = listSecurityReportHistoryPeriodsRequest.offset;
7951
+ }
7952
+ else {
7953
+ contentType = listSecurityReportHistoryPeriodsRequest['Content-Type'];
7954
+ subscriptionId = listSecurityReportHistoryPeriodsRequest['subscription_id'];
7955
+ limit = listSecurityReportHistoryPeriodsRequest['limit'];
7956
+ offset = listSecurityReportHistoryPeriodsRequest['offset'];
7957
+ }
7958
+ }
7959
+ if (subscriptionId === null || subscriptionId === undefined) {
7960
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling listSecurityReportHistoryPeriods.');
7961
+ }
7962
+ if (subscriptionId !== null && subscriptionId !== undefined) {
7963
+ localVarQueryParameter['subscription_id'] = subscriptionId;
7964
+ }
7965
+ if (limit !== null && limit !== undefined) {
7966
+ localVarQueryParameter['limit'] = limit;
7967
+ }
7968
+ if (offset !== null && offset !== undefined) {
7969
+ localVarQueryParameter['offset'] = offset;
7970
+ }
7971
+ if (contentType !== undefined && contentType !== null) {
7972
+ localVarHeaderParameter['Content-Type'] = String(contentType);
7973
+ }
7974
+ options.queryParams = localVarQueryParameter;
7975
+ options.headers = localVarHeaderParameter;
7976
+ return options;
7977
+ },
7978
+ /**
7979
+ * 查询安全报告发送记录
7980
+ *
7981
+ * Please refer to HUAWEI cloud API Explorer for details.
7982
+ */
7983
+ listSecurityReportSendingRecords(listSecurityReportSendingRecordsRequest) {
7984
+ const options = {
7985
+ method: "GET",
7986
+ url: "/v1/{project_id}/waf/security-report/sending-records",
7987
+ contentType: "application/json",
7988
+ queryParams: {},
7989
+ pathParams: {},
7990
+ headers: {}
7991
+ };
7992
+ const localVarHeaderParameter = {};
7993
+ const localVarQueryParameter = {};
7994
+ let contentType;
7995
+ let reportName;
7996
+ let reportCategory;
7997
+ let limit;
7998
+ let offset;
7999
+ if (listSecurityReportSendingRecordsRequest !== null && listSecurityReportSendingRecordsRequest !== undefined) {
8000
+ if (listSecurityReportSendingRecordsRequest instanceof ListSecurityReportSendingRecordsRequest_1.ListSecurityReportSendingRecordsRequest) {
8001
+ contentType = listSecurityReportSendingRecordsRequest.contentType;
8002
+ reportName = listSecurityReportSendingRecordsRequest.reportName;
8003
+ reportCategory = listSecurityReportSendingRecordsRequest.reportCategory;
8004
+ limit = listSecurityReportSendingRecordsRequest.limit;
8005
+ offset = listSecurityReportSendingRecordsRequest.offset;
8006
+ }
8007
+ else {
8008
+ contentType = listSecurityReportSendingRecordsRequest['Content-Type'];
8009
+ reportName = listSecurityReportSendingRecordsRequest['report_name'];
8010
+ reportCategory = listSecurityReportSendingRecordsRequest['report_category'];
8011
+ limit = listSecurityReportSendingRecordsRequest['limit'];
8012
+ offset = listSecurityReportSendingRecordsRequest['offset'];
8013
+ }
8014
+ }
8015
+ if (reportName !== null && reportName !== undefined) {
8016
+ localVarQueryParameter['report_name'] = reportName;
8017
+ }
8018
+ if (reportCategory !== null && reportCategory !== undefined) {
8019
+ localVarQueryParameter['report_category'] = reportCategory;
8020
+ }
8021
+ if (limit !== null && limit !== undefined) {
8022
+ localVarQueryParameter['limit'] = limit;
8023
+ }
8024
+ if (offset !== null && offset !== undefined) {
8025
+ localVarQueryParameter['offset'] = offset;
8026
+ }
8027
+ if (contentType !== undefined && contentType !== null) {
8028
+ localVarHeaderParameter['Content-Type'] = String(contentType);
8029
+ }
8030
+ options.queryParams = localVarQueryParameter;
8031
+ options.headers = localVarHeaderParameter;
8032
+ return options;
8033
+ },
6344
8034
  /**
6345
8035
  * 查询安全报告订阅列表
6346
8036
  *
@@ -6936,6 +8626,62 @@ const ParamCreater = function () {
6936
8626
  options.headers = localVarHeaderParameter;
6937
8627
  return options;
6938
8628
  },
8629
+ /**
8630
+ * 查询所有策略黑白名单防护规则
8631
+ *
8632
+ * Please refer to HUAWEI cloud API Explorer for details.
8633
+ */
8634
+ listWhiteblackipPolicyRules(listWhiteblackipPolicyRulesRequest) {
8635
+ const options = {
8636
+ method: "GET",
8637
+ url: "/v1/{project_id}/waf/rule/whiteblackip",
8638
+ contentType: "application/json",
8639
+ queryParams: {},
8640
+ pathParams: {},
8641
+ headers: {}
8642
+ };
8643
+ const localVarHeaderParameter = {};
8644
+ const localVarQueryParameter = {};
8645
+ let contentType;
8646
+ let policyids;
8647
+ let enterpriseProjectId;
8648
+ let page;
8649
+ let pagesize;
8650
+ if (listWhiteblackipPolicyRulesRequest !== null && listWhiteblackipPolicyRulesRequest !== undefined) {
8651
+ if (listWhiteblackipPolicyRulesRequest instanceof ListWhiteblackipPolicyRulesRequest_1.ListWhiteblackipPolicyRulesRequest) {
8652
+ contentType = listWhiteblackipPolicyRulesRequest.contentType;
8653
+ policyids = listWhiteblackipPolicyRulesRequest.policyids;
8654
+ enterpriseProjectId = listWhiteblackipPolicyRulesRequest.enterpriseProjectId;
8655
+ page = listWhiteblackipPolicyRulesRequest.page;
8656
+ pagesize = listWhiteblackipPolicyRulesRequest.pagesize;
8657
+ }
8658
+ else {
8659
+ contentType = listWhiteblackipPolicyRulesRequest['Content-Type'];
8660
+ policyids = listWhiteblackipPolicyRulesRequest['policyids'];
8661
+ enterpriseProjectId = listWhiteblackipPolicyRulesRequest['enterprise_project_id'];
8662
+ page = listWhiteblackipPolicyRulesRequest['page'];
8663
+ pagesize = listWhiteblackipPolicyRulesRequest['pagesize'];
8664
+ }
8665
+ }
8666
+ if (policyids !== null && policyids !== undefined) {
8667
+ localVarQueryParameter['policyids'] = policyids;
8668
+ }
8669
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
8670
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
8671
+ }
8672
+ if (page !== null && page !== undefined) {
8673
+ localVarQueryParameter['page'] = page;
8674
+ }
8675
+ if (pagesize !== null && pagesize !== undefined) {
8676
+ localVarQueryParameter['pagesize'] = pagesize;
8677
+ }
8678
+ if (contentType !== undefined && contentType !== null) {
8679
+ localVarHeaderParameter['Content-Type'] = String(contentType);
8680
+ }
8681
+ options.queryParams = localVarQueryParameter;
8682
+ options.headers = localVarHeaderParameter;
8683
+ return options;
8684
+ },
6939
8685
  /**
6940
8686
  * 查询黑白名单规则列表
6941
8687
  *
@@ -8074,6 +9820,91 @@ const ParamCreater = function () {
8074
9820
  options.headers = localVarHeaderParameter;
8075
9821
  return options;
8076
9822
  },
9823
+ /**
9824
+ * 查询安全报告内容
9825
+ *
9826
+ * Please refer to HUAWEI cloud API Explorer for details.
9827
+ */
9828
+ showSecurityReportContent(showSecurityReportContentRequest) {
9829
+ const options = {
9830
+ method: "GET",
9831
+ url: "/v1/{project_id}/waf/security-reports/{report_id}",
9832
+ contentType: "application/json",
9833
+ queryParams: {},
9834
+ pathParams: {},
9835
+ headers: {}
9836
+ };
9837
+ const localVarHeaderParameter = {};
9838
+ const localVarQueryParameter = {};
9839
+ let contentType;
9840
+ let reportId;
9841
+ let subscriptionId;
9842
+ if (showSecurityReportContentRequest !== null && showSecurityReportContentRequest !== undefined) {
9843
+ if (showSecurityReportContentRequest instanceof ShowSecurityReportContentRequest_1.ShowSecurityReportContentRequest) {
9844
+ contentType = showSecurityReportContentRequest.contentType;
9845
+ reportId = showSecurityReportContentRequest.reportId;
9846
+ subscriptionId = showSecurityReportContentRequest.subscriptionId;
9847
+ }
9848
+ else {
9849
+ contentType = showSecurityReportContentRequest['Content-Type'];
9850
+ reportId = showSecurityReportContentRequest['report_id'];
9851
+ subscriptionId = showSecurityReportContentRequest['subscription_id'];
9852
+ }
9853
+ }
9854
+ if (reportId === null || reportId === undefined) {
9855
+ throw new RequiredError('reportId', 'Required parameter reportId was null or undefined when calling showSecurityReportContent.');
9856
+ }
9857
+ if (subscriptionId === null || subscriptionId === undefined) {
9858
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling showSecurityReportContent.');
9859
+ }
9860
+ if (subscriptionId !== null && subscriptionId !== undefined) {
9861
+ localVarQueryParameter['subscription_id'] = subscriptionId;
9862
+ }
9863
+ if (contentType !== undefined && contentType !== null) {
9864
+ localVarHeaderParameter['Content-Type'] = String(contentType);
9865
+ }
9866
+ options.queryParams = localVarQueryParameter;
9867
+ options.pathParams = { 'report_id': reportId, };
9868
+ options.headers = localVarHeaderParameter;
9869
+ return options;
9870
+ },
9871
+ /**
9872
+ * 查询安全报告订阅
9873
+ *
9874
+ * Please refer to HUAWEI cloud API Explorer for details.
9875
+ */
9876
+ showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
9877
+ const options = {
9878
+ method: "GET",
9879
+ url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
9880
+ contentType: "application/json",
9881
+ queryParams: {},
9882
+ pathParams: {},
9883
+ headers: {}
9884
+ };
9885
+ const localVarHeaderParameter = {};
9886
+ let subscriptionId;
9887
+ let contentType;
9888
+ if (showSecurityReportSubscriptionRequest !== null && showSecurityReportSubscriptionRequest !== undefined) {
9889
+ if (showSecurityReportSubscriptionRequest instanceof ShowSecurityReportSubscriptionRequest_1.ShowSecurityReportSubscriptionRequest) {
9890
+ subscriptionId = showSecurityReportSubscriptionRequest.subscriptionId;
9891
+ contentType = showSecurityReportSubscriptionRequest.contentType;
9892
+ }
9893
+ else {
9894
+ subscriptionId = showSecurityReportSubscriptionRequest['subscription_id'];
9895
+ contentType = showSecurityReportSubscriptionRequest['Content-Type'];
9896
+ }
9897
+ }
9898
+ if (subscriptionId === null || subscriptionId === undefined) {
9899
+ throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling showSecurityReportSubscription.');
9900
+ }
9901
+ if (contentType !== undefined && contentType !== null) {
9902
+ localVarHeaderParameter['Content-Type'] = String(contentType);
9903
+ }
9904
+ options.pathParams = { 'subscription_id': subscriptionId, };
9905
+ options.headers = localVarHeaderParameter;
9906
+ return options;
9907
+ },
8077
9908
  /**
8078
9909
  * 查询WAF回源Ip信息
8079
9910
  *
@@ -8990,14 +10821,7 @@ const ParamCreater = function () {
8990
10821
  return options;
8991
10822
  },
8992
10823
  /**
8993
- * **参数解释:**
8994
10824
  * 更新云模式域名路由信息
8995
- * **约束限制:**
8996
- * 不涉及
8997
- * **取值范围:**
8998
- * 不涉及
8999
- * **默认取值:**
9000
- * 不涉及
9001
10825
  *
9002
10826
  * Please refer to HUAWEI cloud API Explorer for details.
9003
10827
  */
@@ -9700,6 +11524,43 @@ const ParamCreater = function () {
9700
11524
  options.headers = localVarHeaderParameter;
9701
11525
  return options;
9702
11526
  },
11527
+ /**
11528
+ * 根据Id查询Web防护规则
11529
+ *
11530
+ * Please refer to HUAWEI cloud API Explorer for details.
11531
+ */
11532
+ showWebProtectionRule(showWebProtectionRuleRequest) {
11533
+ const options = {
11534
+ method: "GET",
11535
+ url: "/v1/{project_id}/waf/web-protection-rules/{rule_id}",
11536
+ contentType: "application/json",
11537
+ queryParams: {},
11538
+ pathParams: {},
11539
+ headers: {}
11540
+ };
11541
+ const localVarHeaderParameter = {};
11542
+ let ruleId;
11543
+ let xLanguage;
11544
+ if (showWebProtectionRuleRequest !== null && showWebProtectionRuleRequest !== undefined) {
11545
+ if (showWebProtectionRuleRequest instanceof ShowWebProtectionRuleRequest_1.ShowWebProtectionRuleRequest) {
11546
+ ruleId = showWebProtectionRuleRequest.ruleId;
11547
+ xLanguage = showWebProtectionRuleRequest.xLanguage;
11548
+ }
11549
+ else {
11550
+ ruleId = showWebProtectionRuleRequest['rule_id'];
11551
+ xLanguage = showWebProtectionRuleRequest['X-Language'];
11552
+ }
11553
+ }
11554
+ if (ruleId === null || ruleId === undefined) {
11555
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling showWebProtectionRule.');
11556
+ }
11557
+ if (xLanguage !== undefined && xLanguage !== null) {
11558
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
11559
+ }
11560
+ options.pathParams = { 'rule_id': ruleId, };
11561
+ options.headers = localVarHeaderParameter;
11562
+ return options;
11563
+ },
9703
11564
  };
9704
11565
  };
9705
11566
  exports.ParamCreater = ParamCreater;