@azure/arm-securityinsight 1.0.0-alpha.20250717.1 → 1.0.0-alpha.20250718.2

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 (307) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +2617 -1204
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/actions.js +23 -40
  6. package/dist/browser/operations/actions.js.map +1 -1
  7. package/dist/browser/operations/alertRuleTemplates.js +23 -40
  8. package/dist/browser/operations/alertRuleTemplates.js.map +1 -1
  9. package/dist/browser/operations/alertRules.js +23 -40
  10. package/dist/browser/operations/alertRules.js.map +1 -1
  11. package/dist/browser/operations/automationRules.js +23 -40
  12. package/dist/browser/operations/automationRules.js.map +1 -1
  13. package/dist/browser/operations/bookmarkOperations.js +1 -0
  14. package/dist/browser/operations/bookmarkOperations.js.map +1 -1
  15. package/dist/browser/operations/bookmarkRelations.js +23 -40
  16. package/dist/browser/operations/bookmarkRelations.js.map +1 -1
  17. package/dist/browser/operations/bookmarks.js +23 -40
  18. package/dist/browser/operations/bookmarks.js.map +1 -1
  19. package/dist/browser/operations/dataConnectors.js +23 -40
  20. package/dist/browser/operations/dataConnectors.js.map +1 -1
  21. package/dist/browser/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
  22. package/dist/browser/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
  23. package/dist/browser/operations/domainWhois.js +1 -0
  24. package/dist/browser/operations/domainWhois.js.map +1 -1
  25. package/dist/browser/operations/entities.js +23 -40
  26. package/dist/browser/operations/entities.js.map +1 -1
  27. package/dist/browser/operations/entitiesGetTimeline.js +1 -0
  28. package/dist/browser/operations/entitiesGetTimeline.js.map +1 -1
  29. package/dist/browser/operations/entitiesRelations.js +23 -40
  30. package/dist/browser/operations/entitiesRelations.js.map +1 -1
  31. package/dist/browser/operations/entityQueries.js +23 -40
  32. package/dist/browser/operations/entityQueries.js.map +1 -1
  33. package/dist/browser/operations/entityQueryTemplates.js +23 -40
  34. package/dist/browser/operations/entityQueryTemplates.js.map +1 -1
  35. package/dist/browser/operations/entityRelations.js +1 -0
  36. package/dist/browser/operations/entityRelations.js.map +1 -1
  37. package/dist/browser/operations/fileImports.js +34 -46
  38. package/dist/browser/operations/fileImports.js.map +1 -1
  39. package/dist/browser/operations/iPGeodata.js +1 -0
  40. package/dist/browser/operations/iPGeodata.js.map +1 -1
  41. package/dist/browser/operations/incidentComments.js +23 -40
  42. package/dist/browser/operations/incidentComments.js.map +1 -1
  43. package/dist/browser/operations/incidentRelations.js +23 -40
  44. package/dist/browser/operations/incidentRelations.js.map +1 -1
  45. package/dist/browser/operations/incidents.js +23 -40
  46. package/dist/browser/operations/incidents.js.map +1 -1
  47. package/dist/browser/operations/metadata.js +23 -40
  48. package/dist/browser/operations/metadata.js.map +1 -1
  49. package/dist/browser/operations/officeConsents.js +23 -40
  50. package/dist/browser/operations/officeConsents.js.map +1 -1
  51. package/dist/browser/operations/operations.js +23 -40
  52. package/dist/browser/operations/operations.js.map +1 -1
  53. package/dist/browser/operations/productSettings.js +1 -0
  54. package/dist/browser/operations/productSettings.js.map +1 -1
  55. package/dist/browser/operations/securityMLAnalyticsSettings.js +23 -40
  56. package/dist/browser/operations/securityMLAnalyticsSettings.js.map +1 -1
  57. package/dist/browser/operations/sentinelOnboardingStates.js +1 -0
  58. package/dist/browser/operations/sentinelOnboardingStates.js.map +1 -1
  59. package/dist/browser/operations/sourceControlOperations.js +23 -40
  60. package/dist/browser/operations/sourceControlOperations.js.map +1 -1
  61. package/dist/browser/operations/sourceControls.js +23 -40
  62. package/dist/browser/operations/sourceControls.js.map +1 -1
  63. package/dist/browser/operations/threatIntelligenceIndicator.js +23 -40
  64. package/dist/browser/operations/threatIntelligenceIndicator.js.map +1 -1
  65. package/dist/browser/operations/threatIntelligenceIndicatorMetrics.js +1 -0
  66. package/dist/browser/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
  67. package/dist/browser/operations/threatIntelligenceIndicators.js +23 -40
  68. package/dist/browser/operations/threatIntelligenceIndicators.js.map +1 -1
  69. package/dist/browser/operations/watchlistItems.js +23 -40
  70. package/dist/browser/operations/watchlistItems.js.map +1 -1
  71. package/dist/browser/operations/watchlists.js +23 -40
  72. package/dist/browser/operations/watchlists.js.map +1 -1
  73. package/dist/browser/pagingHelper.js +2 -4
  74. package/dist/browser/pagingHelper.js.map +1 -1
  75. package/dist/browser/securityInsights.js +47 -5
  76. package/dist/browser/securityInsights.js.map +1 -1
  77. package/dist/commonjs/lroImpl.js +11 -3
  78. package/dist/commonjs/lroImpl.js.map +1 -1
  79. package/dist/commonjs/models/mappers.js +2617 -1204
  80. package/dist/commonjs/models/mappers.js.map +1 -1
  81. package/dist/commonjs/operations/actions.js +23 -39
  82. package/dist/commonjs/operations/actions.js.map +1 -1
  83. package/dist/commonjs/operations/alertRuleTemplates.js +23 -39
  84. package/dist/commonjs/operations/alertRuleTemplates.js.map +1 -1
  85. package/dist/commonjs/operations/alertRules.js +23 -39
  86. package/dist/commonjs/operations/alertRules.js.map +1 -1
  87. package/dist/commonjs/operations/automationRules.js +23 -39
  88. package/dist/commonjs/operations/automationRules.js.map +1 -1
  89. package/dist/commonjs/operations/bookmarkOperations.js +1 -0
  90. package/dist/commonjs/operations/bookmarkOperations.js.map +1 -1
  91. package/dist/commonjs/operations/bookmarkRelations.js +23 -39
  92. package/dist/commonjs/operations/bookmarkRelations.js.map +1 -1
  93. package/dist/commonjs/operations/bookmarks.js +23 -39
  94. package/dist/commonjs/operations/bookmarks.js.map +1 -1
  95. package/dist/commonjs/operations/dataConnectors.js +23 -39
  96. package/dist/commonjs/operations/dataConnectors.js.map +1 -1
  97. package/dist/commonjs/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
  98. package/dist/commonjs/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
  99. package/dist/commonjs/operations/domainWhois.js +1 -0
  100. package/dist/commonjs/operations/domainWhois.js.map +1 -1
  101. package/dist/commonjs/operations/entities.js +23 -39
  102. package/dist/commonjs/operations/entities.js.map +1 -1
  103. package/dist/commonjs/operations/entitiesGetTimeline.js +1 -0
  104. package/dist/commonjs/operations/entitiesGetTimeline.js.map +1 -1
  105. package/dist/commonjs/operations/entitiesRelations.js +23 -39
  106. package/dist/commonjs/operations/entitiesRelations.js.map +1 -1
  107. package/dist/commonjs/operations/entityQueries.js +23 -39
  108. package/dist/commonjs/operations/entityQueries.js.map +1 -1
  109. package/dist/commonjs/operations/entityQueryTemplates.js +23 -39
  110. package/dist/commonjs/operations/entityQueryTemplates.js.map +1 -1
  111. package/dist/commonjs/operations/entityRelations.js +1 -0
  112. package/dist/commonjs/operations/entityRelations.js.map +1 -1
  113. package/dist/commonjs/operations/fileImports.js +34 -45
  114. package/dist/commonjs/operations/fileImports.js.map +1 -1
  115. package/dist/commonjs/operations/iPGeodata.js +1 -0
  116. package/dist/commonjs/operations/iPGeodata.js.map +1 -1
  117. package/dist/commonjs/operations/incidentComments.js +23 -39
  118. package/dist/commonjs/operations/incidentComments.js.map +1 -1
  119. package/dist/commonjs/operations/incidentRelations.js +23 -39
  120. package/dist/commonjs/operations/incidentRelations.js.map +1 -1
  121. package/dist/commonjs/operations/incidents.js +23 -39
  122. package/dist/commonjs/operations/incidents.js.map +1 -1
  123. package/dist/commonjs/operations/metadata.js +23 -39
  124. package/dist/commonjs/operations/metadata.js.map +1 -1
  125. package/dist/commonjs/operations/officeConsents.js +23 -39
  126. package/dist/commonjs/operations/officeConsents.js.map +1 -1
  127. package/dist/commonjs/operations/operations.js +23 -39
  128. package/dist/commonjs/operations/operations.js.map +1 -1
  129. package/dist/commonjs/operations/productSettings.js +1 -0
  130. package/dist/commonjs/operations/productSettings.js.map +1 -1
  131. package/dist/commonjs/operations/securityMLAnalyticsSettings.js +23 -39
  132. package/dist/commonjs/operations/securityMLAnalyticsSettings.js.map +1 -1
  133. package/dist/commonjs/operations/sentinelOnboardingStates.js +1 -0
  134. package/dist/commonjs/operations/sentinelOnboardingStates.js.map +1 -1
  135. package/dist/commonjs/operations/sourceControlOperations.js +23 -39
  136. package/dist/commonjs/operations/sourceControlOperations.js.map +1 -1
  137. package/dist/commonjs/operations/sourceControls.js +23 -39
  138. package/dist/commonjs/operations/sourceControls.js.map +1 -1
  139. package/dist/commonjs/operations/threatIntelligenceIndicator.js +23 -39
  140. package/dist/commonjs/operations/threatIntelligenceIndicator.js.map +1 -1
  141. package/dist/commonjs/operations/threatIntelligenceIndicatorMetrics.js +1 -0
  142. package/dist/commonjs/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
  143. package/dist/commonjs/operations/threatIntelligenceIndicators.js +23 -39
  144. package/dist/commonjs/operations/threatIntelligenceIndicators.js.map +1 -1
  145. package/dist/commonjs/operations/watchlistItems.js +23 -39
  146. package/dist/commonjs/operations/watchlistItems.js.map +1 -1
  147. package/dist/commonjs/operations/watchlists.js +23 -39
  148. package/dist/commonjs/operations/watchlists.js.map +1 -1
  149. package/dist/commonjs/pagingHelper.js +2 -4
  150. package/dist/commonjs/pagingHelper.js.map +1 -1
  151. package/dist/commonjs/securityInsights.js +47 -5
  152. package/dist/commonjs/securityInsights.js.map +1 -1
  153. package/dist/commonjs/tsdoc-metadata.json +11 -11
  154. package/dist/esm/lroImpl.js +11 -3
  155. package/dist/esm/lroImpl.js.map +1 -1
  156. package/dist/esm/models/mappers.js +2617 -1204
  157. package/dist/esm/models/mappers.js.map +1 -1
  158. package/dist/esm/operations/actions.js +23 -40
  159. package/dist/esm/operations/actions.js.map +1 -1
  160. package/dist/esm/operations/alertRuleTemplates.js +23 -40
  161. package/dist/esm/operations/alertRuleTemplates.js.map +1 -1
  162. package/dist/esm/operations/alertRules.js +23 -40
  163. package/dist/esm/operations/alertRules.js.map +1 -1
  164. package/dist/esm/operations/automationRules.js +23 -40
  165. package/dist/esm/operations/automationRules.js.map +1 -1
  166. package/dist/esm/operations/bookmarkOperations.js +1 -0
  167. package/dist/esm/operations/bookmarkOperations.js.map +1 -1
  168. package/dist/esm/operations/bookmarkRelations.js +23 -40
  169. package/dist/esm/operations/bookmarkRelations.js.map +1 -1
  170. package/dist/esm/operations/bookmarks.js +23 -40
  171. package/dist/esm/operations/bookmarks.js.map +1 -1
  172. package/dist/esm/operations/dataConnectors.js +23 -40
  173. package/dist/esm/operations/dataConnectors.js.map +1 -1
  174. package/dist/esm/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
  175. package/dist/esm/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
  176. package/dist/esm/operations/domainWhois.js +1 -0
  177. package/dist/esm/operations/domainWhois.js.map +1 -1
  178. package/dist/esm/operations/entities.js +23 -40
  179. package/dist/esm/operations/entities.js.map +1 -1
  180. package/dist/esm/operations/entitiesGetTimeline.js +1 -0
  181. package/dist/esm/operations/entitiesGetTimeline.js.map +1 -1
  182. package/dist/esm/operations/entitiesRelations.js +23 -40
  183. package/dist/esm/operations/entitiesRelations.js.map +1 -1
  184. package/dist/esm/operations/entityQueries.js +23 -40
  185. package/dist/esm/operations/entityQueries.js.map +1 -1
  186. package/dist/esm/operations/entityQueryTemplates.js +23 -40
  187. package/dist/esm/operations/entityQueryTemplates.js.map +1 -1
  188. package/dist/esm/operations/entityRelations.js +1 -0
  189. package/dist/esm/operations/entityRelations.js.map +1 -1
  190. package/dist/esm/operations/fileImports.js +34 -46
  191. package/dist/esm/operations/fileImports.js.map +1 -1
  192. package/dist/esm/operations/iPGeodata.js +1 -0
  193. package/dist/esm/operations/iPGeodata.js.map +1 -1
  194. package/dist/esm/operations/incidentComments.js +23 -40
  195. package/dist/esm/operations/incidentComments.js.map +1 -1
  196. package/dist/esm/operations/incidentRelations.js +23 -40
  197. package/dist/esm/operations/incidentRelations.js.map +1 -1
  198. package/dist/esm/operations/incidents.js +23 -40
  199. package/dist/esm/operations/incidents.js.map +1 -1
  200. package/dist/esm/operations/metadata.js +23 -40
  201. package/dist/esm/operations/metadata.js.map +1 -1
  202. package/dist/esm/operations/officeConsents.js +23 -40
  203. package/dist/esm/operations/officeConsents.js.map +1 -1
  204. package/dist/esm/operations/operations.js +23 -40
  205. package/dist/esm/operations/operations.js.map +1 -1
  206. package/dist/esm/operations/productSettings.js +1 -0
  207. package/dist/esm/operations/productSettings.js.map +1 -1
  208. package/dist/esm/operations/securityMLAnalyticsSettings.js +23 -40
  209. package/dist/esm/operations/securityMLAnalyticsSettings.js.map +1 -1
  210. package/dist/esm/operations/sentinelOnboardingStates.js +1 -0
  211. package/dist/esm/operations/sentinelOnboardingStates.js.map +1 -1
  212. package/dist/esm/operations/sourceControlOperations.js +23 -40
  213. package/dist/esm/operations/sourceControlOperations.js.map +1 -1
  214. package/dist/esm/operations/sourceControls.js +23 -40
  215. package/dist/esm/operations/sourceControls.js.map +1 -1
  216. package/dist/esm/operations/threatIntelligenceIndicator.js +23 -40
  217. package/dist/esm/operations/threatIntelligenceIndicator.js.map +1 -1
  218. package/dist/esm/operations/threatIntelligenceIndicatorMetrics.js +1 -0
  219. package/dist/esm/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
  220. package/dist/esm/operations/threatIntelligenceIndicators.js +23 -40
  221. package/dist/esm/operations/threatIntelligenceIndicators.js.map +1 -1
  222. package/dist/esm/operations/watchlistItems.js +23 -40
  223. package/dist/esm/operations/watchlistItems.js.map +1 -1
  224. package/dist/esm/operations/watchlists.js +23 -40
  225. package/dist/esm/operations/watchlists.js.map +1 -1
  226. package/dist/esm/pagingHelper.js +2 -4
  227. package/dist/esm/pagingHelper.js.map +1 -1
  228. package/dist/esm/securityInsights.js +47 -5
  229. package/dist/esm/securityInsights.js.map +1 -1
  230. package/dist/react-native/lroImpl.js +11 -3
  231. package/dist/react-native/lroImpl.js.map +1 -1
  232. package/dist/react-native/models/mappers.js +2617 -1204
  233. package/dist/react-native/models/mappers.js.map +1 -1
  234. package/dist/react-native/operations/actions.js +23 -40
  235. package/dist/react-native/operations/actions.js.map +1 -1
  236. package/dist/react-native/operations/alertRuleTemplates.js +23 -40
  237. package/dist/react-native/operations/alertRuleTemplates.js.map +1 -1
  238. package/dist/react-native/operations/alertRules.js +23 -40
  239. package/dist/react-native/operations/alertRules.js.map +1 -1
  240. package/dist/react-native/operations/automationRules.js +23 -40
  241. package/dist/react-native/operations/automationRules.js.map +1 -1
  242. package/dist/react-native/operations/bookmarkOperations.js +1 -0
  243. package/dist/react-native/operations/bookmarkOperations.js.map +1 -1
  244. package/dist/react-native/operations/bookmarkRelations.js +23 -40
  245. package/dist/react-native/operations/bookmarkRelations.js.map +1 -1
  246. package/dist/react-native/operations/bookmarks.js +23 -40
  247. package/dist/react-native/operations/bookmarks.js.map +1 -1
  248. package/dist/react-native/operations/dataConnectors.js +23 -40
  249. package/dist/react-native/operations/dataConnectors.js.map +1 -1
  250. package/dist/react-native/operations/dataConnectorsCheckRequirementsOperations.js +1 -0
  251. package/dist/react-native/operations/dataConnectorsCheckRequirementsOperations.js.map +1 -1
  252. package/dist/react-native/operations/domainWhois.js +1 -0
  253. package/dist/react-native/operations/domainWhois.js.map +1 -1
  254. package/dist/react-native/operations/entities.js +23 -40
  255. package/dist/react-native/operations/entities.js.map +1 -1
  256. package/dist/react-native/operations/entitiesGetTimeline.js +1 -0
  257. package/dist/react-native/operations/entitiesGetTimeline.js.map +1 -1
  258. package/dist/react-native/operations/entitiesRelations.js +23 -40
  259. package/dist/react-native/operations/entitiesRelations.js.map +1 -1
  260. package/dist/react-native/operations/entityQueries.js +23 -40
  261. package/dist/react-native/operations/entityQueries.js.map +1 -1
  262. package/dist/react-native/operations/entityQueryTemplates.js +23 -40
  263. package/dist/react-native/operations/entityQueryTemplates.js.map +1 -1
  264. package/dist/react-native/operations/entityRelations.js +1 -0
  265. package/dist/react-native/operations/entityRelations.js.map +1 -1
  266. package/dist/react-native/operations/fileImports.js +34 -46
  267. package/dist/react-native/operations/fileImports.js.map +1 -1
  268. package/dist/react-native/operations/iPGeodata.js +1 -0
  269. package/dist/react-native/operations/iPGeodata.js.map +1 -1
  270. package/dist/react-native/operations/incidentComments.js +23 -40
  271. package/dist/react-native/operations/incidentComments.js.map +1 -1
  272. package/dist/react-native/operations/incidentRelations.js +23 -40
  273. package/dist/react-native/operations/incidentRelations.js.map +1 -1
  274. package/dist/react-native/operations/incidents.js +23 -40
  275. package/dist/react-native/operations/incidents.js.map +1 -1
  276. package/dist/react-native/operations/metadata.js +23 -40
  277. package/dist/react-native/operations/metadata.js.map +1 -1
  278. package/dist/react-native/operations/officeConsents.js +23 -40
  279. package/dist/react-native/operations/officeConsents.js.map +1 -1
  280. package/dist/react-native/operations/operations.js +23 -40
  281. package/dist/react-native/operations/operations.js.map +1 -1
  282. package/dist/react-native/operations/productSettings.js +1 -0
  283. package/dist/react-native/operations/productSettings.js.map +1 -1
  284. package/dist/react-native/operations/securityMLAnalyticsSettings.js +23 -40
  285. package/dist/react-native/operations/securityMLAnalyticsSettings.js.map +1 -1
  286. package/dist/react-native/operations/sentinelOnboardingStates.js +1 -0
  287. package/dist/react-native/operations/sentinelOnboardingStates.js.map +1 -1
  288. package/dist/react-native/operations/sourceControlOperations.js +23 -40
  289. package/dist/react-native/operations/sourceControlOperations.js.map +1 -1
  290. package/dist/react-native/operations/sourceControls.js +23 -40
  291. package/dist/react-native/operations/sourceControls.js.map +1 -1
  292. package/dist/react-native/operations/threatIntelligenceIndicator.js +23 -40
  293. package/dist/react-native/operations/threatIntelligenceIndicator.js.map +1 -1
  294. package/dist/react-native/operations/threatIntelligenceIndicatorMetrics.js +1 -0
  295. package/dist/react-native/operations/threatIntelligenceIndicatorMetrics.js.map +1 -1
  296. package/dist/react-native/operations/threatIntelligenceIndicators.js +23 -40
  297. package/dist/react-native/operations/threatIntelligenceIndicators.js.map +1 -1
  298. package/dist/react-native/operations/watchlistItems.js +23 -40
  299. package/dist/react-native/operations/watchlistItems.js.map +1 -1
  300. package/dist/react-native/operations/watchlists.js +23 -40
  301. package/dist/react-native/operations/watchlists.js.map +1 -1
  302. package/dist/react-native/pagingHelper.js +2 -4
  303. package/dist/react-native/pagingHelper.js.map +1 -1
  304. package/dist/react-native/securityInsights.js +47 -5
  305. package/dist/react-native/securityInsights.js.map +1 -1
  306. package/package.json +2 -2
  307. package/review/arm-securityinsight-node.api.md +5668 -5668
@@ -1 +1 @@
1
- {"version":3,"file":"watchlists.js","sourceRoot":"","sources":["../../../src/operations/watchlists.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC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C,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Watchlists } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Watchlist,\n WatchlistsListNextOptionalParams,\n WatchlistsListOptionalParams,\n WatchlistsListResponse,\n WatchlistsGetOptionalParams,\n WatchlistsGetResponse,\n WatchlistsDeleteOptionalParams,\n WatchlistsDeleteResponse,\n WatchlistsCreateOrUpdateOptionalParams,\n WatchlistsCreateOrUpdateResponse,\n WatchlistsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Watchlists operations. */\nexport class WatchlistsImpl implements Watchlists {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class Watchlists class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all watchlists, without watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): PagedAsyncIterableIterator<Watchlist> {\n const iter = this.listPagingAll(resourceGroupName, workspaceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Watchlist[]> {\n let result: WatchlistsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, workspaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): AsyncIterableIterator<Watchlist> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all watchlists, without watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): Promise<WatchlistsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a watchlist, without its watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n options?: WatchlistsGetOptionalParams\n ): Promise<WatchlistsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a watchlist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n options?: WatchlistsDeleteOptionalParams\n ): Promise<WatchlistsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content\n * type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a\n * valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content\n * size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can\n * go up to 500 MB. The status of processing such large file can be polled through the URL returned in\n * Azure-AsyncOperation header.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param watchlist The watchlist\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n watchlist: Watchlist,\n options?: WatchlistsCreateOrUpdateOptionalParams\n ): Promise<WatchlistsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, watchlist, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: WatchlistsListNextOptionalParams\n ): Promise<WatchlistsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WatchlistList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Watchlist\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.WatchlistsDeleteHeaders\n },\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Watchlist\n },\n 201: {\n bodyMapper: Mappers.Watchlist,\n headersMapper: Mappers.WatchlistsCreateOrUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.watchlist,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WatchlistList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"watchlists.js","sourceRoot":"","sources":["../../../src/operations/watchlists.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAsC;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,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Watchlists } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityInsights } from \"../securityInsights.js\";\nimport {\n Watchlist,\n WatchlistsListNextOptionalParams,\n WatchlistsListOptionalParams,\n WatchlistsListResponse,\n WatchlistsGetOptionalParams,\n WatchlistsGetResponse,\n WatchlistsDeleteOptionalParams,\n WatchlistsDeleteResponse,\n WatchlistsCreateOrUpdateOptionalParams,\n WatchlistsCreateOrUpdateResponse,\n WatchlistsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Watchlists operations. */\nexport class WatchlistsImpl implements Watchlists {\n private readonly client: SecurityInsights;\n\n /**\n * Initialize a new instance of the class Watchlists class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityInsights) {\n this.client = client;\n }\n\n /**\n * Gets all watchlists, without watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): PagedAsyncIterableIterator<Watchlist> {\n const iter = this.listPagingAll(resourceGroupName, workspaceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Watchlist[]> {\n let result: WatchlistsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, workspaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): AsyncIterableIterator<Watchlist> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all watchlists, without watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceName: string,\n options?: WatchlistsListOptionalParams\n ): Promise<WatchlistsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets a watchlist, without its watchlist items.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n options?: WatchlistsGetOptionalParams\n ): Promise<WatchlistsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a watchlist.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n options?: WatchlistsDeleteOptionalParams\n ): Promise<WatchlistsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content\n * type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a\n * valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content\n * size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can\n * go up to 500 MB. The status of processing such large file can be polled through the URL returned in\n * Azure-AsyncOperation header.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param watchlistAlias Watchlist Alias\n * @param watchlist The watchlist\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n watchlistAlias: string,\n watchlist: Watchlist,\n options?: WatchlistsCreateOrUpdateOptionalParams\n ): Promise<WatchlistsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, watchlistAlias, watchlist, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: WatchlistsListNextOptionalParams\n ): Promise<WatchlistsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WatchlistList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skipToken],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Watchlist\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.WatchlistsDeleteHeaders\n },\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Watchlist\n },\n 201: {\n bodyMapper: Mappers.Watchlist,\n headersMapper: Mappers.WatchlistsCreateOrUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.watchlist,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.watchlistAlias\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WatchlistList\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { AlertRulesImpl, ActionsImpl, AlertRuleTemplatesImpl, AutomationRulesImpl, IncidentsImpl, BookmarksImpl, BookmarkRelationsImpl, BookmarkOperationsImpl, IPGeodataImpl, DomainWhoisImpl, EntitiesImpl, EntitiesGetTimelineImpl, EntitiesRelationsImpl, EntityRelationsImpl, EntityQueriesImpl, EntityQueryTemplatesImpl, FileImportsImpl, IncidentCommentsImpl, IncidentRelationsImpl, MetadataImpl, OfficeConsentsImpl, SentinelOnboardingStatesImpl, SecurityMLAnalyticsSettingsImpl, ProductSettingsImpl, SourceControlOperationsImpl, SourceControlsImpl, ThreatIntelligenceIndicatorImpl, ThreatIntelligenceIndicatorsImpl, ThreatIntelligenceIndicatorMetricsImpl, WatchlistsImpl, WatchlistItemsImpl, DataConnectorsImpl, DataConnectorsCheckRequirementsOperationsImpl, OperationsImpl } from "./operations/index.js";
11
11
  export class SecurityInsights extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
12
15
  /**
13
16
  * Initializes a new instance of the SecurityInsights class.
14
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -16,7 +19,6 @@ export class SecurityInsights extends coreClient.ServiceClient {
16
19
  * @param options The parameter options
17
20
  */
18
21
  constructor(credentials, subscriptionId, options) {
19
- var _a, _b, _c;
20
22
  if (credentials === undefined) {
21
23
  throw new Error("'credentials' cannot be null");
22
24
  }
@@ -35,12 +37,17 @@ export class SecurityInsights extends coreClient.ServiceClient {
35
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
39
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ const optionsWithDefaults = {
41
+ ...defaults,
42
+ ...options,
43
+ userAgentOptions: {
39
44
  userAgentPrefix
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
+ },
46
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
47
+ };
41
48
  super(optionsWithDefaults);
42
49
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
50
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
51
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
52
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
53
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +61,8 @@ export class SecurityInsights extends coreClient.ServiceClient {
54
61
  });
55
62
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
63
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
64
+ scopes: optionsWithDefaults.credentialScopes ??
65
+ `${optionsWithDefaults.endpoint}/.default`,
58
66
  challengeCallbacks: {
59
67
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
68
  }
@@ -126,5 +134,39 @@ export class SecurityInsights extends coreClient.ServiceClient {
126
134
  };
127
135
  this.pipeline.addPolicy(apiVersionPolicy);
128
136
  }
137
+ alertRules;
138
+ actions;
139
+ alertRuleTemplates;
140
+ automationRules;
141
+ incidents;
142
+ bookmarks;
143
+ bookmarkRelations;
144
+ bookmarkOperations;
145
+ iPGeodata;
146
+ domainWhois;
147
+ entities;
148
+ entitiesGetTimeline;
149
+ entitiesRelations;
150
+ entityRelations;
151
+ entityQueries;
152
+ entityQueryTemplates;
153
+ fileImports;
154
+ incidentComments;
155
+ incidentRelations;
156
+ metadata;
157
+ officeConsents;
158
+ sentinelOnboardingStates;
159
+ securityMLAnalyticsSettings;
160
+ productSettings;
161
+ sourceControlOperations;
162
+ sourceControls;
163
+ threatIntelligenceIndicator;
164
+ threatIntelligenceIndicators;
165
+ threatIntelligenceIndicatorMetrics;
166
+ watchlists;
167
+ watchlistItems;
168
+ dataConnectors;
169
+ dataConnectorsCheckRequirementsOperations;
170
+ operations;
129
171
  }
130
172
  //# sourceMappingURL=securityInsights.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"securityInsights.js","sourceRoot":"","sources":["../../src/securityInsights.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,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rD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAoCF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AlertRulesImpl,\n ActionsImpl,\n AlertRuleTemplatesImpl,\n AutomationRulesImpl,\n IncidentsImpl,\n BookmarksImpl,\n BookmarkRelationsImpl,\n BookmarkOperationsImpl,\n IPGeodataImpl,\n DomainWhoisImpl,\n EntitiesImpl,\n EntitiesGetTimelineImpl,\n EntitiesRelationsImpl,\n EntityRelationsImpl,\n EntityQueriesImpl,\n EntityQueryTemplatesImpl,\n FileImportsImpl,\n IncidentCommentsImpl,\n IncidentRelationsImpl,\n MetadataImpl,\n OfficeConsentsImpl,\n SentinelOnboardingStatesImpl,\n SecurityMLAnalyticsSettingsImpl,\n ProductSettingsImpl,\n SourceControlOperationsImpl,\n SourceControlsImpl,\n ThreatIntelligenceIndicatorImpl,\n ThreatIntelligenceIndicatorsImpl,\n ThreatIntelligenceIndicatorMetricsImpl,\n WatchlistsImpl,\n WatchlistItemsImpl,\n DataConnectorsImpl,\n DataConnectorsCheckRequirementsOperationsImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n AlertRules,\n Actions,\n AlertRuleTemplates,\n AutomationRules,\n Incidents,\n Bookmarks,\n BookmarkRelations,\n BookmarkOperations,\n IPGeodata,\n DomainWhois,\n Entities,\n EntitiesGetTimeline,\n EntitiesRelations,\n EntityRelations,\n EntityQueries,\n EntityQueryTemplates,\n FileImports,\n IncidentComments,\n IncidentRelations,\n Metadata,\n OfficeConsents,\n SentinelOnboardingStates,\n SecurityMLAnalyticsSettings,\n ProductSettings,\n SourceControlOperations,\n SourceControls,\n ThreatIntelligenceIndicator,\n ThreatIntelligenceIndicators,\n ThreatIntelligenceIndicatorMetrics,\n Watchlists,\n WatchlistItems,\n DataConnectors,\n DataConnectorsCheckRequirementsOperations,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { SecurityInsightsOptionalParams } from \"./models/index.js\";\n\nexport class SecurityInsights extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the SecurityInsights class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SecurityInsightsOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SecurityInsightsOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.7`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-09-01-preview\";\n this.alertRules = new AlertRulesImpl(this);\n this.actions = new ActionsImpl(this);\n this.alertRuleTemplates = new AlertRuleTemplatesImpl(this);\n this.automationRules = new AutomationRulesImpl(this);\n this.incidents = new IncidentsImpl(this);\n this.bookmarks = new BookmarksImpl(this);\n this.bookmarkRelations = new BookmarkRelationsImpl(this);\n this.bookmarkOperations = new BookmarkOperationsImpl(this);\n this.iPGeodata = new IPGeodataImpl(this);\n this.domainWhois = new DomainWhoisImpl(this);\n this.entities = new EntitiesImpl(this);\n this.entitiesGetTimeline = new EntitiesGetTimelineImpl(this);\n this.entitiesRelations = new EntitiesRelationsImpl(this);\n this.entityRelations = new EntityRelationsImpl(this);\n this.entityQueries = new EntityQueriesImpl(this);\n this.entityQueryTemplates = new EntityQueryTemplatesImpl(this);\n this.fileImports = new FileImportsImpl(this);\n this.incidentComments = new IncidentCommentsImpl(this);\n this.incidentRelations = new IncidentRelationsImpl(this);\n this.metadata = new MetadataImpl(this);\n this.officeConsents = new OfficeConsentsImpl(this);\n this.sentinelOnboardingStates = new SentinelOnboardingStatesImpl(this);\n this.securityMLAnalyticsSettings = new SecurityMLAnalyticsSettingsImpl(\n this\n );\n this.productSettings = new ProductSettingsImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControls = new SourceControlsImpl(this);\n this.threatIntelligenceIndicator = new ThreatIntelligenceIndicatorImpl(\n this\n );\n this.threatIntelligenceIndicators = new ThreatIntelligenceIndicatorsImpl(\n this\n );\n this.threatIntelligenceIndicatorMetrics = new ThreatIntelligenceIndicatorMetricsImpl(\n this\n );\n this.watchlists = new WatchlistsImpl(this);\n this.watchlistItems = new WatchlistItemsImpl(this);\n this.dataConnectors = new DataConnectorsImpl(this);\n this.dataConnectorsCheckRequirementsOperations = new DataConnectorsCheckRequirementsOperationsImpl(\n this\n );\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n alertRules: AlertRules;\n actions: Actions;\n alertRuleTemplates: AlertRuleTemplates;\n automationRules: AutomationRules;\n incidents: Incidents;\n bookmarks: Bookmarks;\n bookmarkRelations: BookmarkRelations;\n bookmarkOperations: BookmarkOperations;\n iPGeodata: IPGeodata;\n domainWhois: DomainWhois;\n entities: Entities;\n entitiesGetTimeline: EntitiesGetTimeline;\n entitiesRelations: EntitiesRelations;\n entityRelations: EntityRelations;\n entityQueries: EntityQueries;\n entityQueryTemplates: EntityQueryTemplates;\n fileImports: FileImports;\n incidentComments: IncidentComments;\n incidentRelations: IncidentRelations;\n metadata: Metadata;\n officeConsents: OfficeConsents;\n sentinelOnboardingStates: SentinelOnboardingStates;\n securityMLAnalyticsSettings: SecurityMLAnalyticsSettings;\n productSettings: ProductSettings;\n sourceControlOperations: SourceControlOperations;\n sourceControls: SourceControls;\n threatIntelligenceIndicator: ThreatIntelligenceIndicator;\n threatIntelligenceIndicators: ThreatIntelligenceIndicators;\n threatIntelligenceIndicatorMetrics: ThreatIntelligenceIndicatorMetrics;\n watchlists: Watchlists;\n watchlistItems: WatchlistItems;\n dataConnectors: DataConnectors;\n dataConnectorsCheckRequirementsOperations: DataConnectorsCheckRequirementsOperations;\n operations: Operations;\n}\n"]}
1
+ {"version":3,"file":"securityInsights.js","sourceRoot":"","sources":["../../src/securityInsights.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,4BAA4B,EAC5B,+BAA+B,EAC/B,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6CAA6C,EAC7C,cAAc,EACf,MAAM,uBAAuB,CAAC;AAuC/B,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,aAAa;IAC5D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAwC;QAExC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,E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AAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,OAAO,CAAU;IACjB,kBAAkB,CAAqB;IACvC,eAAe,CAAkB;IACjC,SAAS,CAAY;IACrB,SAAS,CAAY;IACrB,iBAAiB,CAAoB;IACrC,kBAAkB,CAAqB;IACvC,SAAS,CAAY;IACrB,WAAW,CAAc;IACzB,QAAQ,CAAW;IACnB,mBAAmB,CAAsB;IACzC,iBAAiB,CAAoB;IACrC,eAAe,CAAkB;IACjC,aAAa,CAAgB;IAC7B,oBAAoB,CAAuB;IAC3C,WAAW,CAAc;IACzB,gBAAgB,CAAmB;IACnC,iBAAiB,CAAoB;IACrC,QAAQ,CAAW;IACnB,cAAc,CAAiB;IAC/B,wBAAwB,CAA2B;IACnD,2BAA2B,CAA8B;IACzD,eAAe,CAAkB;IACjC,uBAAuB,CAA0B;IACjD,cAAc,CAAiB;IAC/B,2BAA2B,CAA8B;IACzD,4BAA4B,CAA+B;IAC3D,kCAAkC,CAAqC;IACvE,UAAU,CAAa;IACvB,cAAc,CAAiB;IAC/B,cAAc,CAAiB;IAC/B,yCAAyC,CAA4C;IACrF,UAAU,CAAa;CACxB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AlertRulesImpl,\n ActionsImpl,\n AlertRuleTemplatesImpl,\n AutomationRulesImpl,\n IncidentsImpl,\n BookmarksImpl,\n BookmarkRelationsImpl,\n BookmarkOperationsImpl,\n IPGeodataImpl,\n DomainWhoisImpl,\n EntitiesImpl,\n EntitiesGetTimelineImpl,\n EntitiesRelationsImpl,\n EntityRelationsImpl,\n EntityQueriesImpl,\n EntityQueryTemplatesImpl,\n FileImportsImpl,\n IncidentCommentsImpl,\n IncidentRelationsImpl,\n MetadataImpl,\n OfficeConsentsImpl,\n SentinelOnboardingStatesImpl,\n SecurityMLAnalyticsSettingsImpl,\n ProductSettingsImpl,\n SourceControlOperationsImpl,\n SourceControlsImpl,\n ThreatIntelligenceIndicatorImpl,\n ThreatIntelligenceIndicatorsImpl,\n ThreatIntelligenceIndicatorMetricsImpl,\n WatchlistsImpl,\n WatchlistItemsImpl,\n DataConnectorsImpl,\n DataConnectorsCheckRequirementsOperationsImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n AlertRules,\n Actions,\n AlertRuleTemplates,\n AutomationRules,\n Incidents,\n Bookmarks,\n BookmarkRelations,\n BookmarkOperations,\n IPGeodata,\n DomainWhois,\n Entities,\n EntitiesGetTimeline,\n EntitiesRelations,\n EntityRelations,\n EntityQueries,\n EntityQueryTemplates,\n FileImports,\n IncidentComments,\n IncidentRelations,\n Metadata,\n OfficeConsents,\n SentinelOnboardingStates,\n SecurityMLAnalyticsSettings,\n ProductSettings,\n SourceControlOperations,\n SourceControls,\n ThreatIntelligenceIndicator,\n ThreatIntelligenceIndicators,\n ThreatIntelligenceIndicatorMetrics,\n Watchlists,\n WatchlistItems,\n DataConnectors,\n DataConnectorsCheckRequirementsOperations,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { SecurityInsightsOptionalParams } from \"./models/index.js\";\n\nexport class SecurityInsights extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the SecurityInsights class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SecurityInsightsOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SecurityInsightsOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-securityinsight/1.0.0-beta.7`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-09-01-preview\";\n this.alertRules = new AlertRulesImpl(this);\n this.actions = new ActionsImpl(this);\n this.alertRuleTemplates = new AlertRuleTemplatesImpl(this);\n this.automationRules = new AutomationRulesImpl(this);\n this.incidents = new IncidentsImpl(this);\n this.bookmarks = new BookmarksImpl(this);\n this.bookmarkRelations = new BookmarkRelationsImpl(this);\n this.bookmarkOperations = new BookmarkOperationsImpl(this);\n this.iPGeodata = new IPGeodataImpl(this);\n this.domainWhois = new DomainWhoisImpl(this);\n this.entities = new EntitiesImpl(this);\n this.entitiesGetTimeline = new EntitiesGetTimelineImpl(this);\n this.entitiesRelations = new EntitiesRelationsImpl(this);\n this.entityRelations = new EntityRelationsImpl(this);\n this.entityQueries = new EntityQueriesImpl(this);\n this.entityQueryTemplates = new EntityQueryTemplatesImpl(this);\n this.fileImports = new FileImportsImpl(this);\n this.incidentComments = new IncidentCommentsImpl(this);\n this.incidentRelations = new IncidentRelationsImpl(this);\n this.metadata = new MetadataImpl(this);\n this.officeConsents = new OfficeConsentsImpl(this);\n this.sentinelOnboardingStates = new SentinelOnboardingStatesImpl(this);\n this.securityMLAnalyticsSettings = new SecurityMLAnalyticsSettingsImpl(\n this\n );\n this.productSettings = new ProductSettingsImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControls = new SourceControlsImpl(this);\n this.threatIntelligenceIndicator = new ThreatIntelligenceIndicatorImpl(\n this\n );\n this.threatIntelligenceIndicators = new ThreatIntelligenceIndicatorsImpl(\n this\n );\n this.threatIntelligenceIndicatorMetrics = new ThreatIntelligenceIndicatorMetricsImpl(\n this\n );\n this.watchlists = new WatchlistsImpl(this);\n this.watchlistItems = new WatchlistItemsImpl(this);\n this.dataConnectors = new DataConnectorsImpl(this);\n this.dataConnectorsCheckRequirementsOperations = new DataConnectorsCheckRequirementsOperationsImpl(\n this\n );\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n alertRules: AlertRules;\n actions: Actions;\n alertRuleTemplates: AlertRuleTemplates;\n automationRules: AutomationRules;\n incidents: Incidents;\n bookmarks: Bookmarks;\n bookmarkRelations: BookmarkRelations;\n bookmarkOperations: BookmarkOperations;\n iPGeodata: IPGeodata;\n domainWhois: DomainWhois;\n entities: Entities;\n entitiesGetTimeline: EntitiesGetTimeline;\n entitiesRelations: EntitiesRelations;\n entityRelations: EntityRelations;\n entityQueries: EntityQueries;\n entityQueryTemplates: EntityQueryTemplates;\n fileImports: FileImports;\n incidentComments: IncidentComments;\n incidentRelations: IncidentRelations;\n metadata: Metadata;\n officeConsents: OfficeConsents;\n sentinelOnboardingStates: SentinelOnboardingStates;\n securityMLAnalyticsSettings: SecurityMLAnalyticsSettings;\n productSettings: ProductSettings;\n sourceControlOperations: SourceControlOperations;\n sourceControls: SourceControls;\n threatIntelligenceIndicator: ThreatIntelligenceIndicator;\n threatIntelligenceIndicators: ThreatIntelligenceIndicators;\n threatIntelligenceIndicatorMetrics: ThreatIntelligenceIndicatorMetrics;\n watchlists: Watchlists;\n watchlistItems: WatchlistItems;\n dataConnectors: DataConnectors;\n dataConnectorsCheckRequirementsOperations: DataConnectorsCheckRequirementsOperations;\n operations: Operations;\n}\n"]}
@@ -5,8 +5,12 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export class LroImpl {
9
+ sendOperationFn;
10
+ args;
11
+ spec;
12
+ requestPath;
13
+ requestMethod;
10
14
  constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
15
  this.sendOperationFn = sendOperationFn;
12
16
  this.args = args;
@@ -18,8 +22,12 @@ export class LroImpl {
18
22
  return this.sendOperationFn(this.args, this.spec);
19
23
  }
20
24
  async sendPollRequest(path) {
21
- const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
25
+ const { requestBody, ...restSpec } = this.spec;
26
+ return this.sendOperationFn(this.args, {
27
+ ...restSpec,
28
+ path,
29
+ httpMethod: "GET"
30
+ });
23
31
  }
24
32
  }
25
33
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}