@azure/arm-securityinsight 1.0.0-beta.4 → 1.0.0-beta.6

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 (398) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1587 -606
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js +12 -4
  9. package/dist-esm/samples-dev/actionsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/actionsDeleteSample.js +12 -4
  11. package/dist-esm/samples-dev/actionsDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/actionsGetSample.js +12 -4
  13. package/dist-esm/samples-dev/actionsGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/actionsListByAlertRuleSample.js +12 -4
  15. package/dist-esm/samples-dev/actionsListByAlertRuleSample.js.map +1 -1
  16. package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js +12 -4
  17. package/dist-esm/samples-dev/alertRuleTemplatesGetSample.js.map +1 -1
  18. package/dist-esm/samples-dev/alertRuleTemplatesListSample.js +12 -4
  19. package/dist-esm/samples-dev/alertRuleTemplatesListSample.js.map +1 -1
  20. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +33 -20
  21. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/alertRulesDeleteSample.js +12 -4
  23. package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -1
  24. package/dist-esm/samples-dev/alertRulesGetSample.js +27 -16
  25. package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/alertRulesListSample.js +12 -4
  27. package/dist-esm/samples-dev/alertRulesListSample.js.map +1 -1
  28. package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js +12 -4
  29. package/dist-esm/samples-dev/automationRulesCreateOrUpdateSample.js.map +1 -1
  30. package/dist-esm/samples-dev/automationRulesDeleteSample.js +12 -4
  31. package/dist-esm/samples-dev/automationRulesDeleteSample.js.map +1 -1
  32. package/dist-esm/samples-dev/automationRulesGetSample.js +12 -4
  33. package/dist-esm/samples-dev/automationRulesGetSample.js.map +1 -1
  34. package/dist-esm/samples-dev/automationRulesListSample.js +12 -4
  35. package/dist-esm/samples-dev/automationRulesListSample.js.map +1 -1
  36. package/dist-esm/samples-dev/bookmarkExpandSample.js +12 -4
  37. package/dist-esm/samples-dev/bookmarkExpandSample.js.map +1 -1
  38. package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js +12 -4
  39. package/dist-esm/samples-dev/bookmarkRelationsCreateOrUpdateSample.js.map +1 -1
  40. package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js +12 -4
  41. package/dist-esm/samples-dev/bookmarkRelationsDeleteSample.js.map +1 -1
  42. package/dist-esm/samples-dev/bookmarkRelationsGetSample.js +12 -4
  43. package/dist-esm/samples-dev/bookmarkRelationsGetSample.js.map +1 -1
  44. package/dist-esm/samples-dev/bookmarkRelationsListSample.js +12 -4
  45. package/dist-esm/samples-dev/bookmarkRelationsListSample.js.map +1 -1
  46. package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js +12 -4
  47. package/dist-esm/samples-dev/bookmarksCreateOrUpdateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/bookmarksDeleteSample.js +12 -4
  49. package/dist-esm/samples-dev/bookmarksDeleteSample.js.map +1 -1
  50. package/dist-esm/samples-dev/bookmarksGetSample.js +12 -4
  51. package/dist-esm/samples-dev/bookmarksGetSample.js.map +1 -1
  52. package/dist-esm/samples-dev/bookmarksListSample.js +12 -4
  53. package/dist-esm/samples-dev/bookmarksListSample.js.map +1 -1
  54. package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js +87 -64
  55. package/dist-esm/samples-dev/dataConnectorsCheckRequirementsPostSample.js.map +1 -1
  56. package/dist-esm/samples-dev/dataConnectorsConnectSample.js +17 -8
  57. package/dist-esm/samples-dev/dataConnectorsConnectSample.js.map +1 -1
  58. package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js +49 -34
  59. package/dist-esm/samples-dev/dataConnectorsCreateOrUpdateSample.js.map +1 -1
  60. package/dist-esm/samples-dev/dataConnectorsDeleteSample.js +32 -20
  61. package/dist-esm/samples-dev/dataConnectorsDeleteSample.js.map +1 -1
  62. package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js +12 -4
  63. package/dist-esm/samples-dev/dataConnectorsDisconnectSample.js.map +1 -1
  64. package/dist-esm/samples-dev/dataConnectorsGetSample.js +107 -80
  65. package/dist-esm/samples-dev/dataConnectorsGetSample.js.map +1 -1
  66. package/dist-esm/samples-dev/dataConnectorsListSample.js +12 -4
  67. package/dist-esm/samples-dev/dataConnectorsListSample.js.map +1 -1
  68. package/dist-esm/samples-dev/domainWhoisGetSample.js +12 -4
  69. package/dist-esm/samples-dev/domainWhoisGetSample.js.map +1 -1
  70. package/dist-esm/samples-dev/entitiesExpandSample.js +12 -4
  71. package/dist-esm/samples-dev/entitiesExpandSample.js.map +1 -1
  72. package/dist-esm/samples-dev/entitiesGetInsightsSample.js +12 -4
  73. package/dist-esm/samples-dev/entitiesGetInsightsSample.js.map +1 -1
  74. package/dist-esm/samples-dev/entitiesGetSample.js +107 -80
  75. package/dist-esm/samples-dev/entitiesGetSample.js.map +1 -1
  76. package/dist-esm/samples-dev/entitiesGetTimelineListSample.js +12 -4
  77. package/dist-esm/samples-dev/entitiesGetTimelineListSample.js.map +1 -1
  78. package/dist-esm/samples-dev/entitiesListSample.js +12 -4
  79. package/dist-esm/samples-dev/entitiesListSample.js.map +1 -1
  80. package/dist-esm/samples-dev/entitiesQueriesSample.js +12 -4
  81. package/dist-esm/samples-dev/entitiesQueriesSample.js.map +1 -1
  82. package/dist-esm/samples-dev/entitiesRelationsListSample.js +12 -4
  83. package/dist-esm/samples-dev/entitiesRelationsListSample.js.map +1 -1
  84. package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js +13 -5
  85. package/dist-esm/samples-dev/entityQueriesCreateOrUpdateSample.js.map +1 -1
  86. package/dist-esm/samples-dev/entityQueriesDeleteSample.js +12 -4
  87. package/dist-esm/samples-dev/entityQueriesDeleteSample.js.map +1 -1
  88. package/dist-esm/samples-dev/entityQueriesGetSample.js +17 -8
  89. package/dist-esm/samples-dev/entityQueriesGetSample.js.map +1 -1
  90. package/dist-esm/samples-dev/entityQueriesListSample.js +12 -4
  91. package/dist-esm/samples-dev/entityQueriesListSample.js.map +1 -1
  92. package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js +12 -4
  93. package/dist-esm/samples-dev/entityQueryTemplatesGetSample.js.map +1 -1
  94. package/dist-esm/samples-dev/entityQueryTemplatesListSample.js +12 -4
  95. package/dist-esm/samples-dev/entityQueryTemplatesListSample.js.map +1 -1
  96. package/dist-esm/samples-dev/entityRelationsGetRelationSample.js +12 -4
  97. package/dist-esm/samples-dev/entityRelationsGetRelationSample.js.map +1 -1
  98. package/dist-esm/samples-dev/fileImportsCreateSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/fileImportsCreateSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/fileImportsCreateSample.js +46 -0
  101. package/dist-esm/samples-dev/fileImportsCreateSample.js.map +1 -0
  102. package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts +2 -0
  103. package/dist-esm/samples-dev/fileImportsDeleteSample.d.ts.map +1 -0
  104. package/dist-esm/samples-dev/fileImportsDeleteSample.js +40 -0
  105. package/dist-esm/samples-dev/fileImportsDeleteSample.js.map +1 -0
  106. package/dist-esm/samples-dev/fileImportsGetSample.d.ts +2 -0
  107. package/dist-esm/samples-dev/fileImportsGetSample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/fileImportsGetSample.js +40 -0
  109. package/dist-esm/samples-dev/fileImportsGetSample.js.map +1 -0
  110. package/dist-esm/samples-dev/fileImportsListSample.d.ts +2 -0
  111. package/dist-esm/samples-dev/fileImportsListSample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/fileImportsListSample.js +56 -0
  113. package/dist-esm/samples-dev/fileImportsListSample.js.map +1 -0
  114. package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js +12 -4
  115. package/dist-esm/samples-dev/incidentCommentsCreateOrUpdateSample.js.map +1 -1
  116. package/dist-esm/samples-dev/incidentCommentsDeleteSample.js +12 -4
  117. package/dist-esm/samples-dev/incidentCommentsDeleteSample.js.map +1 -1
  118. package/dist-esm/samples-dev/incidentCommentsGetSample.js +12 -4
  119. package/dist-esm/samples-dev/incidentCommentsGetSample.js.map +1 -1
  120. package/dist-esm/samples-dev/incidentCommentsListSample.js +12 -4
  121. package/dist-esm/samples-dev/incidentCommentsListSample.js.map +1 -1
  122. package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js +12 -4
  123. package/dist-esm/samples-dev/incidentRelationsCreateOrUpdateSample.js.map +1 -1
  124. package/dist-esm/samples-dev/incidentRelationsDeleteSample.js +12 -4
  125. package/dist-esm/samples-dev/incidentRelationsDeleteSample.js.map +1 -1
  126. package/dist-esm/samples-dev/incidentRelationsGetSample.js +12 -4
  127. package/dist-esm/samples-dev/incidentRelationsGetSample.js.map +1 -1
  128. package/dist-esm/samples-dev/incidentRelationsListSample.js +12 -4
  129. package/dist-esm/samples-dev/incidentRelationsListSample.js.map +1 -1
  130. package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js +12 -4
  131. package/dist-esm/samples-dev/incidentsCreateOrUpdateSample.js.map +1 -1
  132. package/dist-esm/samples-dev/incidentsCreateTeamSample.js +13 -4
  133. package/dist-esm/samples-dev/incidentsCreateTeamSample.js.map +1 -1
  134. package/dist-esm/samples-dev/incidentsDeleteSample.js +12 -4
  135. package/dist-esm/samples-dev/incidentsDeleteSample.js.map +1 -1
  136. package/dist-esm/samples-dev/incidentsGetSample.js +12 -4
  137. package/dist-esm/samples-dev/incidentsGetSample.js.map +1 -1
  138. package/dist-esm/samples-dev/incidentsListAlertsSample.js +12 -4
  139. package/dist-esm/samples-dev/incidentsListAlertsSample.js.map +1 -1
  140. package/dist-esm/samples-dev/incidentsListBookmarksSample.js +12 -4
  141. package/dist-esm/samples-dev/incidentsListBookmarksSample.js.map +1 -1
  142. package/dist-esm/samples-dev/incidentsListEntitiesSample.js +12 -4
  143. package/dist-esm/samples-dev/incidentsListEntitiesSample.js.map +1 -1
  144. package/dist-esm/samples-dev/incidentsListSample.js +12 -4
  145. package/dist-esm/samples-dev/incidentsListSample.js.map +1 -1
  146. package/dist-esm/samples-dev/incidentsRunPlaybookSample.js +12 -4
  147. package/dist-esm/samples-dev/incidentsRunPlaybookSample.js.map +1 -1
  148. package/dist-esm/samples-dev/ipGeodataGetSample.js +12 -4
  149. package/dist-esm/samples-dev/ipGeodataGetSample.js.map +1 -1
  150. package/dist-esm/samples-dev/metadataCreateSample.js +17 -8
  151. package/dist-esm/samples-dev/metadataCreateSample.js.map +1 -1
  152. package/dist-esm/samples-dev/metadataDeleteSample.js +12 -4
  153. package/dist-esm/samples-dev/metadataDeleteSample.js.map +1 -1
  154. package/dist-esm/samples-dev/metadataGetSample.js +12 -4
  155. package/dist-esm/samples-dev/metadataGetSample.js.map +1 -1
  156. package/dist-esm/samples-dev/metadataListSample.js +17 -8
  157. package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
  158. package/dist-esm/samples-dev/metadataUpdateSample.js +12 -4
  159. package/dist-esm/samples-dev/metadataUpdateSample.js.map +1 -1
  160. package/dist-esm/samples-dev/officeConsentsDeleteSample.js +12 -4
  161. package/dist-esm/samples-dev/officeConsentsDeleteSample.js.map +1 -1
  162. package/dist-esm/samples-dev/officeConsentsGetSample.js +12 -4
  163. package/dist-esm/samples-dev/officeConsentsGetSample.js.map +1 -1
  164. package/dist-esm/samples-dev/officeConsentsListSample.js +12 -4
  165. package/dist-esm/samples-dev/officeConsentsListSample.js.map +1 -1
  166. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  167. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  168. package/dist-esm/samples-dev/productSettingsDeleteSample.js +12 -4
  169. package/dist-esm/samples-dev/productSettingsDeleteSample.js.map +1 -1
  170. package/dist-esm/samples-dev/productSettingsGetSample.js +12 -4
  171. package/dist-esm/samples-dev/productSettingsGetSample.js.map +1 -1
  172. package/dist-esm/samples-dev/productSettingsListSample.js +12 -4
  173. package/dist-esm/samples-dev/productSettingsListSample.js.map +1 -1
  174. package/dist-esm/samples-dev/productSettingsUpdateSample.js +12 -4
  175. package/dist-esm/samples-dev/productSettingsUpdateSample.js.map +1 -1
  176. package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js +12 -4
  177. package/dist-esm/samples-dev/securityMlAnalyticsSettingsCreateOrUpdateSample.js.map +1 -1
  178. package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js +12 -4
  179. package/dist-esm/samples-dev/securityMlAnalyticsSettingsDeleteSample.js.map +1 -1
  180. package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js +12 -4
  181. package/dist-esm/samples-dev/securityMlAnalyticsSettingsGetSample.js.map +1 -1
  182. package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js +12 -4
  183. package/dist-esm/samples-dev/securityMlAnalyticsSettingsListSample.js.map +1 -1
  184. package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js +12 -4
  185. package/dist-esm/samples-dev/sentinelOnboardingStatesCreateSample.js.map +1 -1
  186. package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js +12 -4
  187. package/dist-esm/samples-dev/sentinelOnboardingStatesDeleteSample.js.map +1 -1
  188. package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js +12 -4
  189. package/dist-esm/samples-dev/sentinelOnboardingStatesGetSample.js.map +1 -1
  190. package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js +12 -4
  191. package/dist-esm/samples-dev/sentinelOnboardingStatesListSample.js.map +1 -1
  192. package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js +12 -4
  193. package/dist-esm/samples-dev/sourceControlListRepositoriesSample.js.map +1 -1
  194. package/dist-esm/samples-dev/sourceControlsCreateSample.js +12 -4
  195. package/dist-esm/samples-dev/sourceControlsCreateSample.js.map +1 -1
  196. package/dist-esm/samples-dev/sourceControlsDeleteSample.js +12 -4
  197. package/dist-esm/samples-dev/sourceControlsDeleteSample.js.map +1 -1
  198. package/dist-esm/samples-dev/sourceControlsGetSample.js +12 -4
  199. package/dist-esm/samples-dev/sourceControlsGetSample.js.map +1 -1
  200. package/dist-esm/samples-dev/sourceControlsListSample.js +12 -4
  201. package/dist-esm/samples-dev/sourceControlsListSample.js.map +1 -1
  202. package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js +12 -4
  203. package/dist-esm/samples-dev/threatIntelligenceIndicatorAppendTagsSample.js.map +1 -1
  204. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js +12 -4
  205. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateIndicatorSample.js.map +1 -1
  206. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js +12 -4
  207. package/dist-esm/samples-dev/threatIntelligenceIndicatorCreateSample.js.map +1 -1
  208. package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js +12 -4
  209. package/dist-esm/samples-dev/threatIntelligenceIndicatorDeleteSample.js.map +1 -1
  210. package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js +12 -4
  211. package/dist-esm/samples-dev/threatIntelligenceIndicatorGetSample.js.map +1 -1
  212. package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js +12 -4
  213. package/dist-esm/samples-dev/threatIntelligenceIndicatorMetricsListSample.js.map +1 -1
  214. package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js +12 -4
  215. package/dist-esm/samples-dev/threatIntelligenceIndicatorQueryIndicatorsSample.js.map +1 -1
  216. package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js +12 -4
  217. package/dist-esm/samples-dev/threatIntelligenceIndicatorReplaceTagsSample.js.map +1 -1
  218. package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js +12 -4
  219. package/dist-esm/samples-dev/threatIntelligenceIndicatorsListSample.js.map +1 -1
  220. package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js +12 -4
  221. package/dist-esm/samples-dev/watchlistItemsCreateOrUpdateSample.js.map +1 -1
  222. package/dist-esm/samples-dev/watchlistItemsDeleteSample.js +12 -4
  223. package/dist-esm/samples-dev/watchlistItemsDeleteSample.js.map +1 -1
  224. package/dist-esm/samples-dev/watchlistItemsGetSample.js +12 -4
  225. package/dist-esm/samples-dev/watchlistItemsGetSample.js.map +1 -1
  226. package/dist-esm/samples-dev/watchlistItemsListSample.js +12 -4
  227. package/dist-esm/samples-dev/watchlistItemsListSample.js.map +1 -1
  228. package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js +17 -8
  229. package/dist-esm/samples-dev/watchlistsCreateOrUpdateSample.js.map +1 -1
  230. package/dist-esm/samples-dev/watchlistsDeleteSample.js +12 -4
  231. package/dist-esm/samples-dev/watchlistsDeleteSample.js.map +1 -1
  232. package/dist-esm/samples-dev/watchlistsGetSample.js +12 -4
  233. package/dist-esm/samples-dev/watchlistsGetSample.js.map +1 -1
  234. package/dist-esm/samples-dev/watchlistsListSample.js +12 -4
  235. package/dist-esm/samples-dev/watchlistsListSample.js.map +1 -1
  236. package/dist-esm/src/index.d.ts +1 -0
  237. package/dist-esm/src/index.d.ts.map +1 -1
  238. package/dist-esm/src/index.js +1 -0
  239. package/dist-esm/src/index.js.map +1 -1
  240. package/dist-esm/src/lroImpl.d.ts +16 -0
  241. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  242. package/dist-esm/src/lroImpl.js +29 -0
  243. package/dist-esm/src/lroImpl.js.map +1 -0
  244. package/dist-esm/src/models/index.d.ts +474 -82
  245. package/dist-esm/src/models/index.d.ts.map +1 -1
  246. package/dist-esm/src/models/index.js +98 -8
  247. package/dist-esm/src/models/index.js.map +1 -1
  248. package/dist-esm/src/models/mappers.d.ts +82 -63
  249. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  250. package/dist-esm/src/models/mappers.js +511 -201
  251. package/dist-esm/src/models/mappers.js.map +1 -1
  252. package/dist-esm/src/models/parameters.d.ts +2 -0
  253. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  254. package/dist-esm/src/models/parameters.js +16 -2
  255. package/dist-esm/src/models/parameters.js.map +1 -1
  256. package/dist-esm/src/operations/actions.d.ts.map +1 -1
  257. package/dist-esm/src/operations/actions.js +19 -8
  258. package/dist-esm/src/operations/actions.js.map +1 -1
  259. package/dist-esm/src/operations/alertRuleTemplates.d.ts.map +1 -1
  260. package/dist-esm/src/operations/alertRuleTemplates.js +19 -8
  261. package/dist-esm/src/operations/alertRuleTemplates.js.map +1 -1
  262. package/dist-esm/src/operations/alertRules.d.ts.map +1 -1
  263. package/dist-esm/src/operations/alertRules.js +19 -8
  264. package/dist-esm/src/operations/alertRules.js.map +1 -1
  265. package/dist-esm/src/operations/automationRules.d.ts.map +1 -1
  266. package/dist-esm/src/operations/automationRules.js +19 -8
  267. package/dist-esm/src/operations/automationRules.js.map +1 -1
  268. package/dist-esm/src/operations/bookmarkRelations.d.ts.map +1 -1
  269. package/dist-esm/src/operations/bookmarkRelations.js +19 -14
  270. package/dist-esm/src/operations/bookmarkRelations.js.map +1 -1
  271. package/dist-esm/src/operations/bookmarks.d.ts.map +1 -1
  272. package/dist-esm/src/operations/bookmarks.js +19 -8
  273. package/dist-esm/src/operations/bookmarks.js.map +1 -1
  274. package/dist-esm/src/operations/dataConnectors.d.ts.map +1 -1
  275. package/dist-esm/src/operations/dataConnectors.js +19 -8
  276. package/dist-esm/src/operations/dataConnectors.js.map +1 -1
  277. package/dist-esm/src/operations/entities.d.ts.map +1 -1
  278. package/dist-esm/src/operations/entities.js +19 -8
  279. package/dist-esm/src/operations/entities.js.map +1 -1
  280. package/dist-esm/src/operations/entitiesRelations.d.ts.map +1 -1
  281. package/dist-esm/src/operations/entitiesRelations.js +19 -14
  282. package/dist-esm/src/operations/entitiesRelations.js.map +1 -1
  283. package/dist-esm/src/operations/entityQueries.d.ts.map +1 -1
  284. package/dist-esm/src/operations/entityQueries.js +19 -8
  285. package/dist-esm/src/operations/entityQueries.js.map +1 -1
  286. package/dist-esm/src/operations/entityQueryTemplates.d.ts.map +1 -1
  287. package/dist-esm/src/operations/entityQueryTemplates.js +19 -8
  288. package/dist-esm/src/operations/entityQueryTemplates.js.map +1 -1
  289. package/dist-esm/src/operations/fileImports.d.ts +72 -0
  290. package/dist-esm/src/operations/fileImports.d.ts.map +1 -0
  291. package/dist-esm/src/operations/fileImports.js +308 -0
  292. package/dist-esm/src/operations/fileImports.js.map +1 -0
  293. package/dist-esm/src/operations/incidentComments.d.ts.map +1 -1
  294. package/dist-esm/src/operations/incidentComments.js +19 -14
  295. package/dist-esm/src/operations/incidentComments.js.map +1 -1
  296. package/dist-esm/src/operations/incidentRelations.d.ts.map +1 -1
  297. package/dist-esm/src/operations/incidentRelations.js +19 -14
  298. package/dist-esm/src/operations/incidentRelations.js.map +1 -1
  299. package/dist-esm/src/operations/incidents.d.ts.map +1 -1
  300. package/dist-esm/src/operations/incidents.js +19 -14
  301. package/dist-esm/src/operations/incidents.js.map +1 -1
  302. package/dist-esm/src/operations/index.d.ts +1 -0
  303. package/dist-esm/src/operations/index.d.ts.map +1 -1
  304. package/dist-esm/src/operations/index.js +1 -0
  305. package/dist-esm/src/operations/index.js.map +1 -1
  306. package/dist-esm/src/operations/metadata.d.ts.map +1 -1
  307. package/dist-esm/src/operations/metadata.js +19 -14
  308. package/dist-esm/src/operations/metadata.js.map +1 -1
  309. package/dist-esm/src/operations/officeConsents.d.ts.map +1 -1
  310. package/dist-esm/src/operations/officeConsents.js +19 -8
  311. package/dist-esm/src/operations/officeConsents.js.map +1 -1
  312. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  313. package/dist-esm/src/operations/operations.js +19 -8
  314. package/dist-esm/src/operations/operations.js.map +1 -1
  315. package/dist-esm/src/operations/securityMLAnalyticsSettings.d.ts.map +1 -1
  316. package/dist-esm/src/operations/securityMLAnalyticsSettings.js +19 -8
  317. package/dist-esm/src/operations/securityMLAnalyticsSettings.js.map +1 -1
  318. package/dist-esm/src/operations/sourceControlOperations.d.ts.map +1 -1
  319. package/dist-esm/src/operations/sourceControlOperations.js +19 -8
  320. package/dist-esm/src/operations/sourceControlOperations.js.map +1 -1
  321. package/dist-esm/src/operations/sourceControls.d.ts.map +1 -1
  322. package/dist-esm/src/operations/sourceControls.js +19 -8
  323. package/dist-esm/src/operations/sourceControls.js.map +1 -1
  324. package/dist-esm/src/operations/threatIntelligenceIndicator.d.ts.map +1 -1
  325. package/dist-esm/src/operations/threatIntelligenceIndicator.js +19 -8
  326. package/dist-esm/src/operations/threatIntelligenceIndicator.js.map +1 -1
  327. package/dist-esm/src/operations/threatIntelligenceIndicators.d.ts.map +1 -1
  328. package/dist-esm/src/operations/threatIntelligenceIndicators.js +19 -14
  329. package/dist-esm/src/operations/threatIntelligenceIndicators.js.map +1 -1
  330. package/dist-esm/src/operations/watchlistItems.d.ts.map +1 -1
  331. package/dist-esm/src/operations/watchlistItems.js +19 -8
  332. package/dist-esm/src/operations/watchlistItems.js.map +1 -1
  333. package/dist-esm/src/operations/watchlists.d.ts.map +1 -1
  334. package/dist-esm/src/operations/watchlists.js +19 -8
  335. package/dist-esm/src/operations/watchlists.js.map +1 -1
  336. package/dist-esm/src/operationsInterfaces/fileImports.d.ts +47 -0
  337. package/dist-esm/src/operationsInterfaces/fileImports.d.ts.map +1 -0
  338. package/dist-esm/src/operationsInterfaces/fileImports.js +9 -0
  339. package/dist-esm/src/operationsInterfaces/fileImports.js.map +1 -0
  340. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  341. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  342. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  343. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  344. package/dist-esm/src/pagingHelper.d.ts +13 -0
  345. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  346. package/dist-esm/src/pagingHelper.js +32 -0
  347. package/dist-esm/src/pagingHelper.js.map +1 -0
  348. package/dist-esm/src/securityInsights.d.ts +2 -1
  349. package/dist-esm/src/securityInsights.d.ts.map +1 -1
  350. package/dist-esm/src/securityInsights.js +7 -9
  351. package/dist-esm/src/securityInsights.js.map +1 -1
  352. package/dist-esm/test/securityinsights_examples.spec.d.ts +4 -0
  353. package/dist-esm/test/securityinsights_examples.spec.d.ts.map +1 -0
  354. package/dist-esm/test/securityinsights_examples.spec.js +98 -0
  355. package/dist-esm/test/securityinsights_examples.spec.js.map +1 -0
  356. package/package.json +10 -6
  357. package/review/arm-securityinsight.api.md +282 -34
  358. package/src/index.ts +1 -0
  359. package/src/lroImpl.ts +34 -0
  360. package/src/models/index.ts +526 -100
  361. package/src/models/mappers.ts +546 -201
  362. package/src/models/parameters.ts +18 -1
  363. package/src/operations/actions.ts +27 -14
  364. package/src/operations/alertRuleTemplates.ts +26 -9
  365. package/src/operations/alertRules.ts +26 -9
  366. package/src/operations/automationRules.ts +27 -10
  367. package/src/operations/bookmarkRelations.ts +27 -20
  368. package/src/operations/bookmarks.ts +26 -9
  369. package/src/operations/dataConnectors.ts +26 -9
  370. package/src/operations/entities.ts +26 -9
  371. package/src/operations/entitiesRelations.ts +27 -20
  372. package/src/operations/entityQueries.ts +26 -9
  373. package/src/operations/entityQueryTemplates.ts +26 -9
  374. package/src/operations/fileImports.ts +421 -0
  375. package/src/operations/incidentComments.ts +27 -20
  376. package/src/operations/incidentRelations.ts +27 -20
  377. package/src/operations/incidents.ts +27 -16
  378. package/src/operations/index.ts +1 -0
  379. package/src/operations/metadata.ts +26 -15
  380. package/src/operations/officeConsents.ts +26 -9
  381. package/src/operations/operations.ts +21 -9
  382. package/src/operations/securityMLAnalyticsSettings.ts +26 -9
  383. package/src/operations/sourceControlOperations.ts +27 -14
  384. package/src/operations/sourceControls.ts +26 -9
  385. package/src/operations/threatIntelligenceIndicator.ts +28 -15
  386. package/src/operations/threatIntelligenceIndicators.ts +26 -15
  387. package/src/operations/watchlistItems.ts +27 -14
  388. package/src/operations/watchlists.ts +26 -9
  389. package/src/operationsInterfaces/fileImports.ts +95 -0
  390. package/src/operationsInterfaces/index.ts +1 -0
  391. package/src/pagingHelper.ts +39 -0
  392. package/src/securityInsights.ts +10 -7
  393. package/types/arm-securityinsight.d.ts +549 -67
  394. package/types/tsdoc-metadata.json +1 -1
  395. package/dist-esm/test/sampleTest.d.ts +0 -2
  396. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  397. package/dist-esm/test/sampleTest.js +0 -38
  398. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -25,6 +25,7 @@ import {
25
25
  EntityGetInsightsParameters as EntityGetInsightsParametersMapper,
26
26
  EntityTimelineParameters as EntityTimelineParametersMapper,
27
27
  CustomEntityQuery as CustomEntityQueryMapper,
28
+ FileImport as FileImportMapper,
28
29
  IncidentComment as IncidentCommentMapper,
29
30
  MetadataModel as MetadataModelMapper,
30
31
  MetadataPatch as MetadataPatchMapper,
@@ -69,7 +70,7 @@ export const $host: OperationURLParameter = {
69
70
  export const apiVersion: OperationQueryParameter = {
70
71
  parameterPath: "apiVersion",
71
72
  mapper: {
72
- defaultValue: "2022-07-01-preview",
73
+ defaultValue: "2022-09-01-preview",
73
74
  isConstant: true,
74
75
  serializedName: "api-version",
75
76
  type: {
@@ -427,6 +428,22 @@ export const entityQueryTemplateId: OperationURLParameter = {
427
428
  }
428
429
  };
429
430
 
431
+ export const fileImportId: OperationURLParameter = {
432
+ parameterPath: "fileImportId",
433
+ mapper: {
434
+ serializedName: "fileImportId",
435
+ required: true,
436
+ type: {
437
+ name: "String"
438
+ }
439
+ }
440
+ };
441
+
442
+ export const fileImport: OperationParameter = {
443
+ parameterPath: "fileImport",
444
+ mapper: FileImportMapper
445
+ };
446
+
430
447
  export const incidentCommentId: OperationURLParameter = {
431
448
  parameterPath: "incidentCommentId",
432
449
  mapper: {
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Actions } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -65,12 +66,16 @@ export class ActionsImpl implements Actions {
65
66
  [Symbol.asyncIterator]() {
66
67
  return this;
67
68
  },
68
- byPage: () => {
69
+ byPage: (settings?: PageSettings) => {
70
+ if (settings?.maxPageSize) {
71
+ throw new Error("maxPageSize is not supported by this operation.");
72
+ }
69
73
  return this.listByAlertRulePagingPage(
70
74
  resourceGroupName,
71
75
  workspaceName,
72
76
  ruleId,
73
- options
77
+ options,
78
+ settings
74
79
  );
75
80
  }
76
81
  };
@@ -80,16 +85,23 @@ export class ActionsImpl implements Actions {
80
85
  resourceGroupName: string,
81
86
  workspaceName: string,
82
87
  ruleId: string,
83
- options?: ActionsListByAlertRuleOptionalParams
88
+ options?: ActionsListByAlertRuleOptionalParams,
89
+ settings?: PageSettings
84
90
  ): AsyncIterableIterator<ActionResponse[]> {
85
- let result = await this._listByAlertRule(
86
- resourceGroupName,
87
- workspaceName,
88
- ruleId,
89
- options
90
- );
91
- yield result.value || [];
92
- let continuationToken = result.nextLink;
91
+ let result: ActionsListByAlertRuleResponse;
92
+ let continuationToken = settings?.continuationToken;
93
+ if (!continuationToken) {
94
+ result = await this._listByAlertRule(
95
+ resourceGroupName,
96
+ workspaceName,
97
+ ruleId,
98
+ options
99
+ );
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ setContinuationToken(page, continuationToken);
103
+ yield page;
104
+ }
93
105
  while (continuationToken) {
94
106
  result = await this._listByAlertRuleNext(
95
107
  resourceGroupName,
@@ -99,7 +111,9 @@ export class ActionsImpl implements Actions {
99
111
  options
100
112
  );
101
113
  continuationToken = result.nextLink;
102
- yield result.value || [];
114
+ let page = result.value || [];
115
+ setContinuationToken(page, continuationToken);
116
+ yield page;
103
117
  }
104
118
  }
105
119
 
@@ -337,7 +351,6 @@ const listByAlertRuleNextOperationSpec: coreClient.OperationSpec = {
337
351
  bodyMapper: Mappers.CloudError
338
352
  }
339
353
  },
340
- queryParameters: [Parameters.apiVersion],
341
354
  urlParameters: [
342
355
  Parameters.$host,
343
356
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { AlertRuleTemplates } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -54,8 +55,16 @@ export class AlertRuleTemplatesImpl implements AlertRuleTemplates {
54
55
  [Symbol.asyncIterator]() {
55
56
  return this;
56
57
  },
57
- byPage: () => {
58
- return this.listPagingPage(resourceGroupName, workspaceName, options);
58
+ byPage: (settings?: PageSettings) => {
59
+ if (settings?.maxPageSize) {
60
+ throw new Error("maxPageSize is not supported by this operation.");
61
+ }
62
+ return this.listPagingPage(
63
+ resourceGroupName,
64
+ workspaceName,
65
+ options,
66
+ settings
67
+ );
59
68
  }
60
69
  };
61
70
  }
@@ -63,11 +72,18 @@ export class AlertRuleTemplatesImpl implements AlertRuleTemplates {
63
72
  private async *listPagingPage(
64
73
  resourceGroupName: string,
65
74
  workspaceName: string,
66
- options?: AlertRuleTemplatesListOptionalParams
75
+ options?: AlertRuleTemplatesListOptionalParams,
76
+ settings?: PageSettings
67
77
  ): AsyncIterableIterator<AlertRuleTemplateUnion[]> {
68
- let result = await this._list(resourceGroupName, workspaceName, options);
69
- yield result.value || [];
70
- let continuationToken = result.nextLink;
78
+ let result: AlertRuleTemplatesListResponse;
79
+ let continuationToken = settings?.continuationToken;
80
+ if (!continuationToken) {
81
+ result = await this._list(resourceGroupName, workspaceName, options);
82
+ let page = result.value || [];
83
+ continuationToken = result.nextLink;
84
+ setContinuationToken(page, continuationToken);
85
+ yield page;
86
+ }
71
87
  while (continuationToken) {
72
88
  result = await this._listNext(
73
89
  resourceGroupName,
@@ -76,7 +92,9 @@ export class AlertRuleTemplatesImpl implements AlertRuleTemplates {
76
92
  options
77
93
  );
78
94
  continuationToken = result.nextLink;
79
- yield result.value || [];
95
+ let page = result.value || [];
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
80
98
  }
81
99
  }
82
100
 
@@ -208,7 +226,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
208
226
  bodyMapper: Mappers.CloudError
209
227
  }
210
228
  },
211
- queryParameters: [Parameters.apiVersion],
212
229
  urlParameters: [
213
230
  Parameters.$host,
214
231
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { AlertRules } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -57,8 +58,16 @@ export class AlertRulesImpl implements AlertRules {
57
58
  [Symbol.asyncIterator]() {
58
59
  return this;
59
60
  },
60
- byPage: () => {
61
- return this.listPagingPage(resourceGroupName, workspaceName, options);
61
+ byPage: (settings?: PageSettings) => {
62
+ if (settings?.maxPageSize) {
63
+ throw new Error("maxPageSize is not supported by this operation.");
64
+ }
65
+ return this.listPagingPage(
66
+ resourceGroupName,
67
+ workspaceName,
68
+ options,
69
+ settings
70
+ );
62
71
  }
63
72
  };
64
73
  }
@@ -66,11 +75,18 @@ export class AlertRulesImpl implements AlertRules {
66
75
  private async *listPagingPage(
67
76
  resourceGroupName: string,
68
77
  workspaceName: string,
69
- options?: AlertRulesListOptionalParams
78
+ options?: AlertRulesListOptionalParams,
79
+ settings?: PageSettings
70
80
  ): AsyncIterableIterator<AlertRuleUnion[]> {
71
- let result = await this._list(resourceGroupName, workspaceName, options);
72
- yield result.value || [];
73
- let continuationToken = result.nextLink;
81
+ let result: AlertRulesListResponse;
82
+ let continuationToken = settings?.continuationToken;
83
+ if (!continuationToken) {
84
+ result = await this._list(resourceGroupName, workspaceName, options);
85
+ let page = result.value || [];
86
+ continuationToken = result.nextLink;
87
+ setContinuationToken(page, continuationToken);
88
+ yield page;
89
+ }
74
90
  while (continuationToken) {
75
91
  result = await this._listNext(
76
92
  resourceGroupName,
@@ -79,7 +95,9 @@ export class AlertRulesImpl implements AlertRules {
79
95
  options
80
96
  );
81
97
  continuationToken = result.nextLink;
82
- yield result.value || [];
98
+ let page = result.value || [];
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
83
101
  }
84
102
  }
85
103
 
@@ -301,7 +319,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
301
319
  bodyMapper: Mappers.CloudError
302
320
  }
303
321
  },
304
- queryParameters: [Parameters.apiVersion],
305
322
  urlParameters: [
306
323
  Parameters.$host,
307
324
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { AutomationRules } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,13 +17,13 @@ import {
16
17
  AutomationRule,
17
18
  AutomationRulesListNextOptionalParams,
18
19
  AutomationRulesListOptionalParams,
20
+ AutomationRulesListResponse,
19
21
  AutomationRulesGetOptionalParams,
20
22
  AutomationRulesGetResponse,
21
23
  AutomationRulesCreateOrUpdateOptionalParams,
22
24
  AutomationRulesCreateOrUpdateResponse,
23
25
  AutomationRulesDeleteOptionalParams,
24
26
  AutomationRulesDeleteResponse,
25
- AutomationRulesListResponse,
26
27
  AutomationRulesListNextResponse
27
28
  } from "../models";
28
29
 
@@ -58,8 +59,16 @@ export class AutomationRulesImpl implements AutomationRules {
58
59
  [Symbol.asyncIterator]() {
59
60
  return this;
60
61
  },
61
- byPage: () => {
62
- return this.listPagingPage(resourceGroupName, workspaceName, options);
62
+ byPage: (settings?: PageSettings) => {
63
+ if (settings?.maxPageSize) {
64
+ throw new Error("maxPageSize is not supported by this operation.");
65
+ }
66
+ return this.listPagingPage(
67
+ resourceGroupName,
68
+ workspaceName,
69
+ options,
70
+ settings
71
+ );
63
72
  }
64
73
  };
65
74
  }
@@ -67,11 +76,18 @@ export class AutomationRulesImpl implements AutomationRules {
67
76
  private async *listPagingPage(
68
77
  resourceGroupName: string,
69
78
  workspaceName: string,
70
- options?: AutomationRulesListOptionalParams
79
+ options?: AutomationRulesListOptionalParams,
80
+ settings?: PageSettings
71
81
  ): AsyncIterableIterator<AutomationRule[]> {
72
- let result = await this._list(resourceGroupName, workspaceName, options);
73
- yield result.value || [];
74
- let continuationToken = result.nextLink;
82
+ let result: AutomationRulesListResponse;
83
+ let continuationToken = settings?.continuationToken;
84
+ if (!continuationToken) {
85
+ result = await this._list(resourceGroupName, workspaceName, options);
86
+ let page = result.value || [];
87
+ continuationToken = result.nextLink;
88
+ setContinuationToken(page, continuationToken);
89
+ yield page;
90
+ }
75
91
  while (continuationToken) {
76
92
  result = await this._listNext(
77
93
  resourceGroupName,
@@ -80,7 +96,9 @@ export class AutomationRulesImpl implements AutomationRules {
80
96
  options
81
97
  );
82
98
  continuationToken = result.nextLink;
83
- yield result.value || [];
99
+ let page = result.value || [];
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
84
102
  }
85
103
  }
86
104
 
@@ -308,7 +326,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
308
326
  bodyMapper: Mappers.CloudError
309
327
  }
310
328
  },
311
- queryParameters: [Parameters.apiVersion],
312
329
  urlParameters: [
313
330
  Parameters.$host,
314
331
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { BookmarkRelations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -64,12 +65,16 @@ export class BookmarkRelationsImpl implements BookmarkRelations {
64
65
  [Symbol.asyncIterator]() {
65
66
  return this;
66
67
  },
67
- byPage: () => {
68
+ byPage: (settings?: PageSettings) => {
69
+ if (settings?.maxPageSize) {
70
+ throw new Error("maxPageSize is not supported by this operation.");
71
+ }
68
72
  return this.listPagingPage(
69
73
  resourceGroupName,
70
74
  workspaceName,
71
75
  bookmarkId,
72
- options
76
+ options,
77
+ settings
73
78
  );
74
79
  }
75
80
  };
@@ -79,16 +84,23 @@ export class BookmarkRelationsImpl implements BookmarkRelations {
79
84
  resourceGroupName: string,
80
85
  workspaceName: string,
81
86
  bookmarkId: string,
82
- options?: BookmarkRelationsListOptionalParams
87
+ options?: BookmarkRelationsListOptionalParams,
88
+ settings?: PageSettings
83
89
  ): AsyncIterableIterator<Relation[]> {
84
- let result = await this._list(
85
- resourceGroupName,
86
- workspaceName,
87
- bookmarkId,
88
- options
89
- );
90
- yield result.value || [];
91
- let continuationToken = result.nextLink;
90
+ let result: BookmarkRelationsListResponse;
91
+ let continuationToken = settings?.continuationToken;
92
+ if (!continuationToken) {
93
+ result = await this._list(
94
+ resourceGroupName,
95
+ workspaceName,
96
+ bookmarkId,
97
+ options
98
+ );
99
+ let page = result.value || [];
100
+ continuationToken = result.nextLink;
101
+ setContinuationToken(page, continuationToken);
102
+ yield page;
103
+ }
92
104
  while (continuationToken) {
93
105
  result = await this._listNext(
94
106
  resourceGroupName,
@@ -98,7 +110,9 @@ export class BookmarkRelationsImpl implements BookmarkRelations {
98
110
  options
99
111
  );
100
112
  continuationToken = result.nextLink;
101
- yield result.value || [];
113
+ let page = result.value || [];
114
+ setContinuationToken(page, continuationToken);
115
+ yield page;
102
116
  }
103
117
  }
104
118
 
@@ -349,13 +363,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
349
363
  bodyMapper: Mappers.CloudError
350
364
  }
351
365
  },
352
- queryParameters: [
353
- Parameters.apiVersion,
354
- Parameters.filter,
355
- Parameters.orderby,
356
- Parameters.top,
357
- Parameters.skipToken
358
- ],
359
366
  urlParameters: [
360
367
  Parameters.$host,
361
368
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Bookmarks } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -57,8 +58,16 @@ export class BookmarksImpl implements Bookmarks {
57
58
  [Symbol.asyncIterator]() {
58
59
  return this;
59
60
  },
60
- byPage: () => {
61
- return this.listPagingPage(resourceGroupName, workspaceName, options);
61
+ byPage: (settings?: PageSettings) => {
62
+ if (settings?.maxPageSize) {
63
+ throw new Error("maxPageSize is not supported by this operation.");
64
+ }
65
+ return this.listPagingPage(
66
+ resourceGroupName,
67
+ workspaceName,
68
+ options,
69
+ settings
70
+ );
62
71
  }
63
72
  };
64
73
  }
@@ -66,11 +75,18 @@ export class BookmarksImpl implements Bookmarks {
66
75
  private async *listPagingPage(
67
76
  resourceGroupName: string,
68
77
  workspaceName: string,
69
- options?: BookmarksListOptionalParams
78
+ options?: BookmarksListOptionalParams,
79
+ settings?: PageSettings
70
80
  ): AsyncIterableIterator<Bookmark[]> {
71
- let result = await this._list(resourceGroupName, workspaceName, options);
72
- yield result.value || [];
73
- let continuationToken = result.nextLink;
81
+ let result: BookmarksListResponse;
82
+ let continuationToken = settings?.continuationToken;
83
+ if (!continuationToken) {
84
+ result = await this._list(resourceGroupName, workspaceName, options);
85
+ let page = result.value || [];
86
+ continuationToken = result.nextLink;
87
+ setContinuationToken(page, continuationToken);
88
+ yield page;
89
+ }
74
90
  while (continuationToken) {
75
91
  result = await this._listNext(
76
92
  resourceGroupName,
@@ -79,7 +95,9 @@ export class BookmarksImpl implements Bookmarks {
79
95
  options
80
96
  );
81
97
  continuationToken = result.nextLink;
82
- yield result.value || [];
98
+ let page = result.value || [];
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
83
101
  }
84
102
  }
85
103
 
@@ -301,7 +319,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
301
319
  bodyMapper: Mappers.CloudError
302
320
  }
303
321
  },
304
- queryParameters: [Parameters.apiVersion],
305
322
  urlParameters: [
306
323
  Parameters.$host,
307
324
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { DataConnectors } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -60,8 +61,16 @@ export class DataConnectorsImpl implements DataConnectors {
60
61
  [Symbol.asyncIterator]() {
61
62
  return this;
62
63
  },
63
- byPage: () => {
64
- return this.listPagingPage(resourceGroupName, workspaceName, options);
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
68
+ return this.listPagingPage(
69
+ resourceGroupName,
70
+ workspaceName,
71
+ options,
72
+ settings
73
+ );
65
74
  }
66
75
  };
67
76
  }
@@ -69,11 +78,18 @@ export class DataConnectorsImpl implements DataConnectors {
69
78
  private async *listPagingPage(
70
79
  resourceGroupName: string,
71
80
  workspaceName: string,
72
- options?: DataConnectorsListOptionalParams
81
+ options?: DataConnectorsListOptionalParams,
82
+ settings?: PageSettings
73
83
  ): AsyncIterableIterator<DataConnectorUnion[]> {
74
- let result = await this._list(resourceGroupName, workspaceName, options);
75
- yield result.value || [];
76
- let continuationToken = result.nextLink;
84
+ let result: DataConnectorsListResponse;
85
+ let continuationToken = settings?.continuationToken;
86
+ if (!continuationToken) {
87
+ result = await this._list(resourceGroupName, workspaceName, options);
88
+ let page = result.value || [];
89
+ continuationToken = result.nextLink;
90
+ setContinuationToken(page, continuationToken);
91
+ yield page;
92
+ }
77
93
  while (continuationToken) {
78
94
  result = await this._listNext(
79
95
  resourceGroupName,
@@ -82,7 +98,9 @@ export class DataConnectorsImpl implements DataConnectors {
82
98
  options
83
99
  );
84
100
  continuationToken = result.nextLink;
85
- yield result.value || [];
101
+ let page = result.value || [];
102
+ setContinuationToken(page, continuationToken);
103
+ yield page;
86
104
  }
87
105
  }
88
106
 
@@ -400,7 +418,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
400
418
  bodyMapper: Mappers.CloudError
401
419
  }
402
420
  },
403
- queryParameters: [Parameters.apiVersion],
404
421
  urlParameters: [
405
422
  Parameters.$host,
406
423
  Parameters.subscriptionId,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Entities } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -63,8 +64,16 @@ export class EntitiesImpl implements Entities {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
- return this.listPagingPage(resourceGroupName, workspaceName, options);
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
71
+ return this.listPagingPage(
72
+ resourceGroupName,
73
+ workspaceName,
74
+ options,
75
+ settings
76
+ );
68
77
  }
69
78
  };
70
79
  }
@@ -72,11 +81,18 @@ export class EntitiesImpl implements Entities {
72
81
  private async *listPagingPage(
73
82
  resourceGroupName: string,
74
83
  workspaceName: string,
75
- options?: EntitiesListOptionalParams
84
+ options?: EntitiesListOptionalParams,
85
+ settings?: PageSettings
76
86
  ): AsyncIterableIterator<EntityUnion[]> {
77
- let result = await this._list(resourceGroupName, workspaceName, options);
78
- yield result.value || [];
79
- let continuationToken = result.nextLink;
87
+ let result: EntitiesListResponse;
88
+ let continuationToken = settings?.continuationToken;
89
+ if (!continuationToken) {
90
+ result = await this._list(resourceGroupName, workspaceName, options);
91
+ let page = result.value || [];
92
+ continuationToken = result.nextLink;
93
+ setContinuationToken(page, continuationToken);
94
+ yield page;
95
+ }
80
96
  while (continuationToken) {
81
97
  result = await this._listNext(
82
98
  resourceGroupName,
@@ -85,7 +101,9 @@ export class EntitiesImpl implements Entities {
85
101
  options
86
102
  );
87
103
  continuationToken = result.nextLink;
88
- yield result.value || [];
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
89
107
  }
90
108
  }
91
109
 
@@ -353,7 +371,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
353
371
  bodyMapper: Mappers.CloudError
354
372
  }
355
373
  },
356
- queryParameters: [Parameters.apiVersion],
357
374
  urlParameters: [
358
375
  Parameters.$host,
359
376
  Parameters.subscriptionId,