@azure/arm-monitor 7.0.1-alpha.20220413.1 → 8.0.0-beta.1

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 (479) hide show
  1. package/CHANGELOG.md +74 -8
  2. package/LICENSE +1 -1
  3. package/README.md +12 -1
  4. package/dist/index.js +1492 -510
  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/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +138 -0
  11. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  12. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js +137 -0
  15. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js.map +1 -0
  16. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +136 -0
  19. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/actionGroupsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/actionGroupsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/actionGroupsDeleteSample.js +31 -0
  23. package/dist-esm/samples-dev/actionGroupsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +32 -0
  27. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js.map +1 -0
  28. package/dist-esm/samples-dev/actionGroupsGetSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/actionGroupsGetSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/actionGroupsGetSample.js +31 -0
  31. package/dist-esm/samples-dev/actionGroupsGetSample.js.map +1 -0
  32. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +32 -0
  35. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  36. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js +31 -0
  39. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js.map +1 -0
  40. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +30 -0
  43. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -0
  44. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +44 -0
  47. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -0
  48. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +43 -0
  51. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -0
  52. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +136 -0
  55. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -0
  56. package/dist-esm/samples-dev/actionGroupsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/actionGroupsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/actionGroupsUpdateSample.js +35 -0
  59. package/dist-esm/samples-dev/actionGroupsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +138 -0
  63. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -0
  64. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +31 -0
  67. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -0
  68. package/dist-esm/samples-dev/activityLogAlertsGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/activityLogAlertsGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/activityLogAlertsGetSample.js +31 -0
  71. package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +44 -0
  75. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -0
  76. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +43 -0
  79. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -0
  80. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +35 -0
  83. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -0
  84. package/dist-esm/samples-dev/activityLogsListSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/activityLogsListSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/activityLogsListSample.js +77 -0
  87. package/dist-esm/samples-dev/activityLogsListSample.js.map +1 -0
  88. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js +32 -0
  91. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js.map +1 -0
  92. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js +45 -0
  95. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js.map +1 -0
  96. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +51 -0
  99. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -0
  100. package/dist-esm/samples-dev/alertRulesDeleteSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/alertRulesDeleteSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/alertRulesDeleteSample.js +31 -0
  103. package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -0
  104. package/dist-esm/samples-dev/alertRulesGetSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/alertRulesGetSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/alertRulesGetSample.js +31 -0
  107. package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -0
  108. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js +44 -0
  111. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js.map +1 -0
  112. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js +43 -0
  115. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js.map +1 -0
  116. package/dist-esm/samples-dev/alertRulesUpdateSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/alertRulesUpdateSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/alertRulesUpdateSample.js +52 -0
  119. package/dist-esm/samples-dev/alertRulesUpdateSample.js.map +1 -0
  120. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js +147 -0
  123. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js.map +1 -0
  124. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js +31 -0
  127. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js.map +1 -0
  128. package/dist-esm/samples-dev/autoscaleSettingsGetSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/autoscaleSettingsGetSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/autoscaleSettingsGetSample.js +31 -0
  131. package/dist-esm/samples-dev/autoscaleSettingsGetSample.js.map +1 -0
  132. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js +44 -0
  135. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js.map +1 -0
  136. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js +43 -0
  139. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js.map +1 -0
  140. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js +148 -0
  143. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js.map +1 -0
  144. package/dist-esm/samples-dev/baselinesListSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/baselinesListSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/baselinesListSample.js +54 -0
  147. package/dist-esm/samples-dev/baselinesListSample.js.map +1 -0
  148. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +36 -0
  151. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js.map +1 -0
  152. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +31 -0
  155. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js.map +1 -0
  156. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.d.ts +2 -0
  157. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +31 -0
  159. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js.map +1 -0
  160. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.d.ts +2 -0
  161. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +44 -0
  163. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js.map +1 -0
  164. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.d.ts +2 -0
  165. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +43 -0
  167. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js.map +1 -0
  168. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.d.ts +2 -0
  169. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +33 -0
  171. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js.map +1 -0
  172. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.d.ts +2 -0
  173. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +35 -0
  175. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js.map +1 -0
  176. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.d.ts +2 -0
  177. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +31 -0
  179. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js.map +1 -0
  180. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.d.ts +2 -0
  181. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +31 -0
  183. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js.map +1 -0
  184. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts +2 -0
  185. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts.map +1 -0
  186. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +45 -0
  187. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js.map +1 -0
  188. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.d.ts +2 -0
  189. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.d.ts.map +1 -0
  190. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +44 -0
  191. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js.map +1 -0
  192. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.d.ts +2 -0
  193. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.d.ts.map +1 -0
  194. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +45 -0
  195. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js.map +1 -0
  196. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.d.ts +2 -0
  197. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.d.ts.map +1 -0
  198. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +103 -0
  199. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js.map +1 -0
  200. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.d.ts +2 -0
  201. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.d.ts.map +1 -0
  202. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +31 -0
  203. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js.map +1 -0
  204. package/dist-esm/samples-dev/dataCollectionRulesGetSample.d.ts +2 -0
  205. package/dist-esm/samples-dev/dataCollectionRulesGetSample.d.ts.map +1 -0
  206. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +31 -0
  207. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js.map +1 -0
  208. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.d.ts +2 -0
  209. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.d.ts.map +1 -0
  210. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +44 -0
  211. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js.map +1 -0
  212. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.d.ts +2 -0
  213. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.d.ts.map +1 -0
  214. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +43 -0
  215. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js.map +1 -0
  216. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.d.ts +2 -0
  217. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.d.ts.map +1 -0
  218. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +33 -0
  219. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js.map +1 -0
  220. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.d.ts +2 -0
  221. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.d.ts.map +1 -0
  222. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js +31 -0
  223. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js.map +1 -0
  224. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts +2 -0
  225. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts.map +1 -0
  226. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js +30 -0
  227. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js.map +1 -0
  228. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts +2 -0
  229. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts.map +1 -0
  230. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js +52 -0
  231. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js.map +1 -0
  232. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts +2 -0
  233. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts.map +1 -0
  234. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js +31 -0
  235. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js.map +1 -0
  236. package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts +2 -0
  237. package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts.map +1 -0
  238. package/dist-esm/samples-dev/diagnosticSettingsGetSample.js +31 -0
  239. package/dist-esm/samples-dev/diagnosticSettingsGetSample.js.map +1 -0
  240. package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts +2 -0
  241. package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts.map +1 -0
  242. package/dist-esm/samples-dev/diagnosticSettingsListSample.js +30 -0
  243. package/dist-esm/samples-dev/diagnosticSettingsListSample.js.map +1 -0
  244. package/dist-esm/samples-dev/eventCategoriesListSample.d.ts +2 -0
  245. package/dist-esm/samples-dev/eventCategoriesListSample.d.ts.map +1 -0
  246. package/dist-esm/samples-dev/eventCategoriesListSample.js +43 -0
  247. package/dist-esm/samples-dev/eventCategoriesListSample.js.map +1 -0
  248. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.d.ts +2 -0
  249. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.d.ts.map +1 -0
  250. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js +39 -0
  251. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js.map +1 -0
  252. package/dist-esm/samples-dev/logProfilesDeleteSample.d.ts +2 -0
  253. package/dist-esm/samples-dev/logProfilesDeleteSample.d.ts.map +1 -0
  254. package/dist-esm/samples-dev/logProfilesDeleteSample.js +30 -0
  255. package/dist-esm/samples-dev/logProfilesDeleteSample.js.map +1 -0
  256. package/dist-esm/samples-dev/logProfilesGetSample.d.ts +2 -0
  257. package/dist-esm/samples-dev/logProfilesGetSample.d.ts.map +1 -0
  258. package/dist-esm/samples-dev/logProfilesGetSample.js +30 -0
  259. package/dist-esm/samples-dev/logProfilesGetSample.js.map +1 -0
  260. package/dist-esm/samples-dev/logProfilesListSample.d.ts +2 -0
  261. package/dist-esm/samples-dev/logProfilesListSample.d.ts.map +1 -0
  262. package/dist-esm/samples-dev/logProfilesListSample.js +43 -0
  263. package/dist-esm/samples-dev/logProfilesListSample.js.map +1 -0
  264. package/dist-esm/samples-dev/logProfilesUpdateSample.d.ts +2 -0
  265. package/dist-esm/samples-dev/logProfilesUpdateSample.d.ts.map +1 -0
  266. package/dist-esm/samples-dev/logProfilesUpdateSample.js +38 -0
  267. package/dist-esm/samples-dev/logProfilesUpdateSample.js.map +1 -0
  268. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.d.ts +2 -0
  269. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.d.ts.map +1 -0
  270. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js +438 -0
  271. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js.map +1 -0
  272. package/dist-esm/samples-dev/metricAlertsDeleteSample.d.ts +2 -0
  273. package/dist-esm/samples-dev/metricAlertsDeleteSample.d.ts.map +1 -0
  274. package/dist-esm/samples-dev/metricAlertsDeleteSample.js +31 -0
  275. package/dist-esm/samples-dev/metricAlertsDeleteSample.js.map +1 -0
  276. package/dist-esm/samples-dev/metricAlertsGetSample.d.ts +2 -0
  277. package/dist-esm/samples-dev/metricAlertsGetSample.d.ts.map +1 -0
  278. package/dist-esm/samples-dev/metricAlertsGetSample.js +139 -0
  279. package/dist-esm/samples-dev/metricAlertsGetSample.js.map +1 -0
  280. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.d.ts +2 -0
  281. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.d.ts.map +1 -0
  282. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js +44 -0
  283. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js.map +1 -0
  284. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.d.ts +2 -0
  285. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.d.ts.map +1 -0
  286. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js +43 -0
  287. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js.map +1 -0
  288. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.d.ts +2 -0
  289. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.d.ts.map +1 -0
  290. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js +32 -0
  291. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js.map +1 -0
  292. package/dist-esm/samples-dev/metricAlertsStatusListSample.d.ts +2 -0
  293. package/dist-esm/samples-dev/metricAlertsStatusListSample.d.ts.map +1 -0
  294. package/dist-esm/samples-dev/metricAlertsStatusListSample.js +31 -0
  295. package/dist-esm/samples-dev/metricAlertsStatusListSample.js.map +1 -0
  296. package/dist-esm/samples-dev/metricAlertsUpdateSample.d.ts +2 -0
  297. package/dist-esm/samples-dev/metricAlertsUpdateSample.d.ts.map +1 -0
  298. package/dist-esm/samples-dev/metricAlertsUpdateSample.js +63 -0
  299. package/dist-esm/samples-dev/metricAlertsUpdateSample.js.map +1 -0
  300. package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts +2 -0
  301. package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts.map +1 -0
  302. package/dist-esm/samples-dev/metricDefinitionsListSample.js +112 -0
  303. package/dist-esm/samples-dev/metricDefinitionsListSample.js.map +1 -0
  304. package/dist-esm/samples-dev/metricNamespacesListSample.d.ts +2 -0
  305. package/dist-esm/samples-dev/metricNamespacesListSample.d.ts.map +1 -0
  306. package/dist-esm/samples-dev/metricNamespacesListSample.js +46 -0
  307. package/dist-esm/samples-dev/metricNamespacesListSample.js.map +1 -0
  308. package/dist-esm/samples-dev/metricsListSample.d.ts +2 -0
  309. package/dist-esm/samples-dev/metricsListSample.d.ts.map +1 -0
  310. package/dist-esm/samples-dev/metricsListSample.js +108 -0
  311. package/dist-esm/samples-dev/metricsListSample.js.map +1 -0
  312. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  313. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  314. package/dist-esm/samples-dev/operationsListSample.js +29 -0
  315. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  316. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  317. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  318. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  319. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  320. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  321. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  322. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  323. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  324. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  325. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  326. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  327. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  328. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.d.ts +2 -0
  329. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.d.ts.map +1 -0
  330. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js +45 -0
  331. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js.map +1 -0
  332. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  333. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  334. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
  335. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  336. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.d.ts +2 -0
  337. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.d.ts.map +1 -0
  338. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js +45 -0
  339. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js.map +1 -0
  340. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.d.ts +2 -0
  341. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.d.ts.map +1 -0
  342. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js +31 -0
  343. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js.map +1 -0
  344. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.d.ts +2 -0
  345. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.d.ts.map +1 -0
  346. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js +35 -0
  347. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js.map +1 -0
  348. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.d.ts +2 -0
  349. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.d.ts.map +1 -0
  350. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js +32 -0
  351. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js.map +1 -0
  352. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.d.ts +2 -0
  353. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.d.ts.map +1 -0
  354. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js +32 -0
  355. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js.map +1 -0
  356. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.d.ts +2 -0
  357. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.d.ts.map +1 -0
  358. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js +45 -0
  359. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js.map +1 -0
  360. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.d.ts +2 -0
  361. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.d.ts.map +1 -0
  362. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js +56 -0
  363. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js.map +1 -0
  364. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.d.ts +2 -0
  365. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.d.ts.map +1 -0
  366. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js +31 -0
  367. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js.map +1 -0
  368. package/dist-esm/samples-dev/privateLinkScopesGetSample.d.ts +2 -0
  369. package/dist-esm/samples-dev/privateLinkScopesGetSample.d.ts.map +1 -0
  370. package/dist-esm/samples-dev/privateLinkScopesGetSample.js +31 -0
  371. package/dist-esm/samples-dev/privateLinkScopesGetSample.js.map +1 -0
  372. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.d.ts +2 -0
  373. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.d.ts.map +1 -0
  374. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js +44 -0
  375. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js.map +1 -0
  376. package/dist-esm/samples-dev/privateLinkScopesListSample.d.ts +2 -0
  377. package/dist-esm/samples-dev/privateLinkScopesListSample.d.ts.map +1 -0
  378. package/dist-esm/samples-dev/privateLinkScopesListSample.js +43 -0
  379. package/dist-esm/samples-dev/privateLinkScopesListSample.js.map +1 -0
  380. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.d.ts +2 -0
  381. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.d.ts.map +1 -0
  382. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js +34 -0
  383. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js.map +1 -0
  384. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.d.ts +2 -0
  385. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.d.ts.map +1 -0
  386. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +138 -0
  387. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -0
  388. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.d.ts +2 -0
  389. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.d.ts.map +1 -0
  390. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +31 -0
  391. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -0
  392. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.d.ts +2 -0
  393. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.d.ts.map +1 -0
  394. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +31 -0
  395. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -0
  396. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.d.ts +2 -0
  397. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.d.ts.map +1 -0
  398. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +44 -0
  399. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -0
  400. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.d.ts +2 -0
  401. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.d.ts.map +1 -0
  402. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +43 -0
  403. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -0
  404. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.d.ts +2 -0
  405. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.d.ts.map +1 -0
  406. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +32 -0
  407. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -0
  408. package/dist-esm/samples-dev/tenantActivityLogsListSample.d.ts +2 -0
  409. package/dist-esm/samples-dev/tenantActivityLogsListSample.d.ts.map +1 -0
  410. package/dist-esm/samples-dev/tenantActivityLogsListSample.js +140 -0
  411. package/dist-esm/samples-dev/tenantActivityLogsListSample.js.map +1 -0
  412. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.d.ts +2 -0
  413. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.d.ts.map +1 -0
  414. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js +98 -0
  415. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js.map +1 -0
  416. package/dist-esm/src/models/index.d.ts +349 -63
  417. package/dist-esm/src/models/index.d.ts.map +1 -1
  418. package/dist-esm/src/models/index.js +29 -0
  419. package/dist-esm/src/models/index.js.map +1 -1
  420. package/dist-esm/src/models/mappers.d.ts +24 -8
  421. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  422. package/dist-esm/src/models/mappers.js +482 -85
  423. package/dist-esm/src/models/mappers.js.map +1 -1
  424. package/dist-esm/src/models/parameters.d.ts +2 -2
  425. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  426. package/dist-esm/src/models/parameters.js +9 -9
  427. package/dist-esm/src/models/parameters.js.map +1 -1
  428. package/dist-esm/src/monitorClient.d.ts.map +1 -1
  429. package/dist-esm/src/monitorClient.js +20 -2
  430. package/dist-esm/src/monitorClient.js.map +1 -1
  431. package/dist-esm/src/operations/actionGroups.d.ts +46 -1
  432. package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
  433. package/dist-esm/src/operations/actionGroups.js +238 -5
  434. package/dist-esm/src/operations/actionGroups.js.map +1 -1
  435. package/dist-esm/src/operations/activityLogAlerts.d.ts +32 -18
  436. package/dist-esm/src/operations/activityLogAlerts.d.ts.map +1 -1
  437. package/dist-esm/src/operations/activityLogAlerts.js +111 -35
  438. package/dist-esm/src/operations/activityLogAlerts.js.map +1 -1
  439. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts +29 -1
  440. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts.map +1 -1
  441. package/dist-esm/src/operations/dataCollectionRuleAssociations.js +116 -0
  442. package/dist-esm/src/operations/dataCollectionRuleAssociations.js.map +1 -1
  443. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  444. package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
  445. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  446. package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
  447. package/dist-esm/src/operations/privateLinkScopedResources.js +6 -2
  448. package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
  449. package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
  450. package/dist-esm/src/operations/privateLinkScopes.js +3 -1
  451. package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
  452. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts +46 -1
  453. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts.map +1 -1
  454. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts +17 -16
  455. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts.map +1 -1
  456. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts +9 -1
  457. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts.map +1 -1
  458. package/dist-esm/test/monitor_examples.d.ts.map +1 -1
  459. package/dist-esm/test/monitor_examples.js +26 -32
  460. package/dist-esm/test/monitor_examples.js.map +1 -1
  461. package/package.json +33 -13
  462. package/review/arm-monitor.api.md +286 -63
  463. package/rollup.config.js +6 -72
  464. package/src/models/index.ts +385 -65
  465. package/src/models/mappers.ts +519 -94
  466. package/src/models/parameters.ts +9 -9
  467. package/src/monitorClient.ts +27 -2
  468. package/src/operations/actionGroups.ts +358 -5
  469. package/src/operations/activityLogAlerts.ts +136 -37
  470. package/src/operations/dataCollectionRuleAssociations.ts +168 -1
  471. package/src/operations/privateEndpointConnections.ts +6 -2
  472. package/src/operations/privateLinkScopedResources.ts +6 -2
  473. package/src/operations/privateLinkScopes.ts +3 -1
  474. package/src/operationsInterfaces/actionGroups.ts +96 -0
  475. package/src/operationsInterfaces/activityLogAlerts.ts +17 -16
  476. package/src/operationsInterfaces/dataCollectionRuleAssociations.ts +13 -0
  477. package/tsconfig.json +19 -5
  478. package/types/arm-monitor.d.ts +476 -98
  479. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
9
31
  /*
10
32
  * Copyright (c) Microsoft Corporation.
11
33
  * Licensed under the MIT License.
@@ -13,10 +35,14 @@ var coreLro = require('@azure/core-lro');
13
35
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
36
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
37
  */
38
+ /** Known values of {@link ScaleRuleMetricDimensionOperationType} that the service accepts. */
39
+ exports.KnownScaleRuleMetricDimensionOperationType = void 0;
16
40
  (function (KnownScaleRuleMetricDimensionOperationType) {
17
41
  KnownScaleRuleMetricDimensionOperationType["Equals"] = "Equals";
18
42
  KnownScaleRuleMetricDimensionOperationType["NotEquals"] = "NotEquals";
19
43
  })(exports.KnownScaleRuleMetricDimensionOperationType || (exports.KnownScaleRuleMetricDimensionOperationType = {}));
44
+ /** Known values of {@link MetricClass} that the service accepts. */
45
+ exports.KnownMetricClass = void 0;
20
46
  (function (KnownMetricClass) {
21
47
  KnownMetricClass["Availability"] = "Availability";
22
48
  KnownMetricClass["Transactions"] = "Transactions";
@@ -24,6 +50,8 @@ var coreLro = require('@azure/core-lro');
24
50
  KnownMetricClass["Latency"] = "Latency";
25
51
  KnownMetricClass["Saturation"] = "Saturation";
26
52
  })(exports.KnownMetricClass || (exports.KnownMetricClass = {}));
53
+ /** Known values of {@link MetricUnit} that the service accepts. */
54
+ exports.KnownMetricUnit = void 0;
27
55
  (function (KnownMetricUnit) {
28
56
  KnownMetricUnit["Count"] = "Count";
29
57
  KnownMetricUnit["Bytes"] = "Bytes";
@@ -39,47 +67,67 @@ var coreLro = require('@azure/core-lro');
39
67
  KnownMetricUnit["NanoCores"] = "NanoCores";
40
68
  KnownMetricUnit["BitsPerSecond"] = "BitsPerSecond";
41
69
  })(exports.KnownMetricUnit || (exports.KnownMetricUnit = {}));
70
+ /** Known values of {@link BaselineSensitivity} that the service accepts. */
71
+ exports.KnownBaselineSensitivity = void 0;
42
72
  (function (KnownBaselineSensitivity) {
43
73
  KnownBaselineSensitivity["Low"] = "Low";
44
74
  KnownBaselineSensitivity["Medium"] = "Medium";
45
75
  KnownBaselineSensitivity["High"] = "High";
46
76
  })(exports.KnownBaselineSensitivity || (exports.KnownBaselineSensitivity = {}));
77
+ /** Known values of {@link Odatatype} that the service accepts. */
78
+ exports.KnownOdatatype = void 0;
47
79
  (function (KnownOdatatype) {
48
80
  KnownOdatatype["MicrosoftAzureMonitorSingleResourceMultipleMetricCriteria"] = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria";
49
81
  KnownOdatatype["MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria"] = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria";
50
82
  KnownOdatatype["MicrosoftAzureMonitorWebtestLocationAvailabilityCriteria"] = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria";
51
83
  })(exports.KnownOdatatype || (exports.KnownOdatatype = {}));
84
+ /** Known values of {@link Enabled} that the service accepts. */
85
+ exports.KnownEnabled = void 0;
52
86
  (function (KnownEnabled) {
53
87
  KnownEnabled["True"] = "true";
54
88
  KnownEnabled["False"] = "false";
55
89
  })(exports.KnownEnabled || (exports.KnownEnabled = {}));
90
+ /** Known values of {@link ProvisioningState} that the service accepts. */
91
+ exports.KnownProvisioningState = void 0;
56
92
  (function (KnownProvisioningState) {
57
93
  KnownProvisioningState["Succeeded"] = "Succeeded";
58
94
  KnownProvisioningState["Deploying"] = "Deploying";
59
95
  KnownProvisioningState["Canceled"] = "Canceled";
60
96
  KnownProvisioningState["Failed"] = "Failed";
61
97
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
98
+ /** Known values of {@link QueryType} that the service accepts. */
99
+ exports.KnownQueryType = void 0;
62
100
  (function (KnownQueryType) {
63
101
  KnownQueryType["ResultCount"] = "ResultCount";
64
102
  })(exports.KnownQueryType || (exports.KnownQueryType = {}));
103
+ /** Known values of {@link NamespaceClassification} that the service accepts. */
104
+ exports.KnownNamespaceClassification = void 0;
65
105
  (function (KnownNamespaceClassification) {
66
106
  KnownNamespaceClassification["Platform"] = "Platform";
67
107
  KnownNamespaceClassification["Custom"] = "Custom";
68
108
  KnownNamespaceClassification["Qos"] = "Qos";
69
109
  })(exports.KnownNamespaceClassification || (exports.KnownNamespaceClassification = {}));
110
+ /** Known values of {@link OnboardingStatus} that the service accepts. */
111
+ exports.KnownOnboardingStatus = void 0;
70
112
  (function (KnownOnboardingStatus) {
71
113
  KnownOnboardingStatus["Onboarded"] = "onboarded";
72
114
  KnownOnboardingStatus["NotOnboarded"] = "notOnboarded";
73
115
  KnownOnboardingStatus["Unknown"] = "unknown";
74
116
  })(exports.KnownOnboardingStatus || (exports.KnownOnboardingStatus = {}));
117
+ /** Known values of {@link DataStatus} that the service accepts. */
118
+ exports.KnownDataStatus = void 0;
75
119
  (function (KnownDataStatus) {
76
120
  KnownDataStatus["Present"] = "present";
77
121
  KnownDataStatus["NotPresent"] = "notPresent";
78
122
  })(exports.KnownDataStatus || (exports.KnownDataStatus = {}));
123
+ /** Known values of {@link KnownPublicNetworkAccessOptions} that the service accepts. */
124
+ exports.KnownKnownPublicNetworkAccessOptions = void 0;
79
125
  (function (KnownKnownPublicNetworkAccessOptions) {
80
126
  KnownKnownPublicNetworkAccessOptions["Enabled"] = "Enabled";
81
127
  KnownKnownPublicNetworkAccessOptions["Disabled"] = "Disabled";
82
128
  })(exports.KnownKnownPublicNetworkAccessOptions || (exports.KnownKnownPublicNetworkAccessOptions = {}));
129
+ /** Known values of {@link KnownDataCollectionEndpointProvisioningState} that the service accepts. */
130
+ exports.KnownKnownDataCollectionEndpointProvisioningState = void 0;
83
131
  (function (KnownKnownDataCollectionEndpointProvisioningState) {
84
132
  KnownKnownDataCollectionEndpointProvisioningState["Creating"] = "Creating";
85
133
  KnownKnownDataCollectionEndpointProvisioningState["Updating"] = "Updating";
@@ -87,16 +135,22 @@ var coreLro = require('@azure/core-lro');
87
135
  KnownKnownDataCollectionEndpointProvisioningState["Succeeded"] = "Succeeded";
88
136
  KnownKnownDataCollectionEndpointProvisioningState["Failed"] = "Failed";
89
137
  })(exports.KnownKnownDataCollectionEndpointProvisioningState || (exports.KnownKnownDataCollectionEndpointProvisioningState = {}));
138
+ /** Known values of {@link KnownDataCollectionEndpointResourceKind} that the service accepts. */
139
+ exports.KnownKnownDataCollectionEndpointResourceKind = void 0;
90
140
  (function (KnownKnownDataCollectionEndpointResourceKind) {
91
141
  KnownKnownDataCollectionEndpointResourceKind["Linux"] = "Linux";
92
142
  KnownKnownDataCollectionEndpointResourceKind["Windows"] = "Windows";
93
143
  })(exports.KnownKnownDataCollectionEndpointResourceKind || (exports.KnownKnownDataCollectionEndpointResourceKind = {}));
144
+ /** Known values of {@link CreatedByType} that the service accepts. */
145
+ exports.KnownCreatedByType = void 0;
94
146
  (function (KnownCreatedByType) {
95
147
  KnownCreatedByType["User"] = "User";
96
148
  KnownCreatedByType["Application"] = "Application";
97
149
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
98
150
  KnownCreatedByType["Key"] = "Key";
99
151
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
152
+ /** Known values of {@link KnownDataCollectionRuleAssociationProvisioningState} that the service accepts. */
153
+ exports.KnownKnownDataCollectionRuleAssociationProvisioningState = void 0;
100
154
  (function (KnownKnownDataCollectionRuleAssociationProvisioningState) {
101
155
  KnownKnownDataCollectionRuleAssociationProvisioningState["Creating"] = "Creating";
102
156
  KnownKnownDataCollectionRuleAssociationProvisioningState["Updating"] = "Updating";
@@ -104,17 +158,36 @@ var coreLro = require('@azure/core-lro');
104
158
  KnownKnownDataCollectionRuleAssociationProvisioningState["Succeeded"] = "Succeeded";
105
159
  KnownKnownDataCollectionRuleAssociationProvisioningState["Failed"] = "Failed";
106
160
  })(exports.KnownKnownDataCollectionRuleAssociationProvisioningState || (exports.KnownKnownDataCollectionRuleAssociationProvisioningState = {}));
161
+ /** Known values of {@link KnownColumnDefinitionType} that the service accepts. */
162
+ exports.KnownKnownColumnDefinitionType = void 0;
163
+ (function (KnownKnownColumnDefinitionType) {
164
+ KnownKnownColumnDefinitionType["String"] = "string";
165
+ KnownKnownColumnDefinitionType["Int"] = "int";
166
+ KnownKnownColumnDefinitionType["Long"] = "long";
167
+ KnownKnownColumnDefinitionType["Real"] = "real";
168
+ KnownKnownColumnDefinitionType["Boolean"] = "boolean";
169
+ KnownKnownColumnDefinitionType["Datetime"] = "datetime";
170
+ KnownKnownColumnDefinitionType["Dynamic"] = "dynamic";
171
+ })(exports.KnownKnownColumnDefinitionType || (exports.KnownKnownColumnDefinitionType = {}));
172
+ /** Known values of {@link KnownPerfCounterDataSourceStreams} that the service accepts. */
173
+ exports.KnownKnownPerfCounterDataSourceStreams = void 0;
107
174
  (function (KnownKnownPerfCounterDataSourceStreams) {
108
175
  KnownKnownPerfCounterDataSourceStreams["MicrosoftPerf"] = "Microsoft-Perf";
109
176
  KnownKnownPerfCounterDataSourceStreams["MicrosoftInsightsMetrics"] = "Microsoft-InsightsMetrics";
110
177
  })(exports.KnownKnownPerfCounterDataSourceStreams || (exports.KnownKnownPerfCounterDataSourceStreams = {}));
178
+ /** Known values of {@link KnownWindowsEventLogDataSourceStreams} that the service accepts. */
179
+ exports.KnownKnownWindowsEventLogDataSourceStreams = void 0;
111
180
  (function (KnownKnownWindowsEventLogDataSourceStreams) {
112
181
  KnownKnownWindowsEventLogDataSourceStreams["MicrosoftWindowsEvent"] = "Microsoft-WindowsEvent";
113
182
  KnownKnownWindowsEventLogDataSourceStreams["MicrosoftEvent"] = "Microsoft-Event";
114
183
  })(exports.KnownKnownWindowsEventLogDataSourceStreams || (exports.KnownKnownWindowsEventLogDataSourceStreams = {}));
184
+ /** Known values of {@link KnownSyslogDataSourceStreams} that the service accepts. */
185
+ exports.KnownKnownSyslogDataSourceStreams = void 0;
115
186
  (function (KnownKnownSyslogDataSourceStreams) {
116
187
  KnownKnownSyslogDataSourceStreams["MicrosoftSyslog"] = "Microsoft-Syslog";
117
188
  })(exports.KnownKnownSyslogDataSourceStreams || (exports.KnownKnownSyslogDataSourceStreams = {}));
189
+ /** Known values of {@link KnownSyslogDataSourceFacilityNames} that the service accepts. */
190
+ exports.KnownKnownSyslogDataSourceFacilityNames = void 0;
118
191
  (function (KnownKnownSyslogDataSourceFacilityNames) {
119
192
  KnownKnownSyslogDataSourceFacilityNames["Auth"] = "auth";
120
193
  KnownKnownSyslogDataSourceFacilityNames["Authpriv"] = "authpriv";
@@ -138,6 +211,8 @@ var coreLro = require('@azure/core-lro');
138
211
  KnownKnownSyslogDataSourceFacilityNames["Local7"] = "local7";
139
212
  KnownKnownSyslogDataSourceFacilityNames["Asterisk"] = "*";
140
213
  })(exports.KnownKnownSyslogDataSourceFacilityNames || (exports.KnownKnownSyslogDataSourceFacilityNames = {}));
214
+ /** Known values of {@link KnownSyslogDataSourceLogLevels} that the service accepts. */
215
+ exports.KnownKnownSyslogDataSourceLogLevels = void 0;
141
216
  (function (KnownKnownSyslogDataSourceLogLevels) {
142
217
  KnownKnownSyslogDataSourceLogLevels["Debug"] = "Debug";
143
218
  KnownKnownSyslogDataSourceLogLevels["Info"] = "Info";
@@ -149,6 +224,8 @@ var coreLro = require('@azure/core-lro');
149
224
  KnownKnownSyslogDataSourceLogLevels["Emergency"] = "Emergency";
150
225
  KnownKnownSyslogDataSourceLogLevels["Asterisk"] = "*";
151
226
  })(exports.KnownKnownSyslogDataSourceLogLevels || (exports.KnownKnownSyslogDataSourceLogLevels = {}));
227
+ /** Known values of {@link KnownExtensionDataSourceStreams} that the service accepts. */
228
+ exports.KnownKnownExtensionDataSourceStreams = void 0;
152
229
  (function (KnownKnownExtensionDataSourceStreams) {
153
230
  KnownKnownExtensionDataSourceStreams["MicrosoftEvent"] = "Microsoft-Event";
154
231
  KnownKnownExtensionDataSourceStreams["MicrosoftInsightsMetrics"] = "Microsoft-InsightsMetrics";
@@ -156,6 +233,26 @@ var coreLro = require('@azure/core-lro');
156
233
  KnownKnownExtensionDataSourceStreams["MicrosoftSyslog"] = "Microsoft-Syslog";
157
234
  KnownKnownExtensionDataSourceStreams["MicrosoftWindowsEvent"] = "Microsoft-WindowsEvent";
158
235
  })(exports.KnownKnownExtensionDataSourceStreams || (exports.KnownKnownExtensionDataSourceStreams = {}));
236
+ /** Known values of {@link KnownLogFilesDataSourceFormat} that the service accepts. */
237
+ exports.KnownKnownLogFilesDataSourceFormat = void 0;
238
+ (function (KnownKnownLogFilesDataSourceFormat) {
239
+ KnownKnownLogFilesDataSourceFormat["Text"] = "text";
240
+ })(exports.KnownKnownLogFilesDataSourceFormat || (exports.KnownKnownLogFilesDataSourceFormat = {}));
241
+ /** Known values of {@link KnownLogFileTextSettingsRecordStartTimestampFormat} that the service accepts. */
242
+ exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat = void 0;
243
+ (function (KnownKnownLogFileTextSettingsRecordStartTimestampFormat) {
244
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["ISO8601"] = "ISO 8601";
245
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyyyMMDDHHMMSS"] = "YYYY-MM-DD HH:MM:SS";
246
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MDYyyyHHMMSSAMPM"] = "M/D/YYYY HH:MM:SS AM/PM";
247
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MonDDYyyyHHMMSS"] = "Mon DD, YYYY HH:MM:SS";
248
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyMMddHHMmSs"] = "yyMMdd HH:mm:ss";
249
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["DdMMyyHHMmSs"] = "ddMMyy HH:mm:ss";
250
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["MMMDHhMmSs"] = "MMM d hh:mm:ss";
251
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["DdMMMYyyyHHMmSsZzz"] = "dd/MMM/yyyy:HH:mm:ss zzz";
252
+ KnownKnownLogFileTextSettingsRecordStartTimestampFormat["YyyyMMDdTHHMmSsK"] = "yyyy-MM-ddTHH:mm:ssK";
253
+ })(exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat || (exports.KnownKnownLogFileTextSettingsRecordStartTimestampFormat = {}));
254
+ /** Known values of {@link KnownDataFlowStreams} that the service accepts. */
255
+ exports.KnownKnownDataFlowStreams = void 0;
159
256
  (function (KnownKnownDataFlowStreams) {
160
257
  KnownKnownDataFlowStreams["MicrosoftEvent"] = "Microsoft-Event";
161
258
  KnownKnownDataFlowStreams["MicrosoftInsightsMetrics"] = "Microsoft-InsightsMetrics";
@@ -163,6 +260,8 @@ var coreLro = require('@azure/core-lro');
163
260
  KnownKnownDataFlowStreams["MicrosoftSyslog"] = "Microsoft-Syslog";
164
261
  KnownKnownDataFlowStreams["MicrosoftWindowsEvent"] = "Microsoft-WindowsEvent";
165
262
  })(exports.KnownKnownDataFlowStreams || (exports.KnownKnownDataFlowStreams = {}));
263
+ /** Known values of {@link KnownDataCollectionRuleProvisioningState} that the service accepts. */
264
+ exports.KnownKnownDataCollectionRuleProvisioningState = void 0;
166
265
  (function (KnownKnownDataCollectionRuleProvisioningState) {
167
266
  KnownKnownDataCollectionRuleProvisioningState["Creating"] = "Creating";
168
267
  KnownKnownDataCollectionRuleProvisioningState["Updating"] = "Updating";
@@ -170,10 +269,14 @@ var coreLro = require('@azure/core-lro');
170
269
  KnownKnownDataCollectionRuleProvisioningState["Succeeded"] = "Succeeded";
171
270
  KnownKnownDataCollectionRuleProvisioningState["Failed"] = "Failed";
172
271
  })(exports.KnownKnownDataCollectionRuleProvisioningState || (exports.KnownKnownDataCollectionRuleProvisioningState = {}));
272
+ /** Known values of {@link KnownDataCollectionRuleResourceKind} that the service accepts. */
273
+ exports.KnownKnownDataCollectionRuleResourceKind = void 0;
173
274
  (function (KnownKnownDataCollectionRuleResourceKind) {
174
275
  KnownKnownDataCollectionRuleResourceKind["Linux"] = "Linux";
175
276
  KnownKnownDataCollectionRuleResourceKind["Windows"] = "Windows";
176
277
  })(exports.KnownKnownDataCollectionRuleResourceKind || (exports.KnownKnownDataCollectionRuleResourceKind = {}));
278
+ /** Known values of {@link Operator} that the service accepts. */
279
+ exports.KnownOperator = void 0;
177
280
  (function (KnownOperator) {
178
281
  KnownOperator["Equals"] = "Equals";
179
282
  KnownOperator["GreaterThan"] = "GreaterThan";
@@ -182,10 +285,14 @@ var coreLro = require('@azure/core-lro');
182
285
  KnownOperator["LessThanOrEqual"] = "LessThanOrEqual";
183
286
  KnownOperator["Include"] = "Include";
184
287
  })(exports.KnownOperator || (exports.KnownOperator = {}));
288
+ /** Known values of {@link CriterionType} that the service accepts. */
289
+ exports.KnownCriterionType = void 0;
185
290
  (function (KnownCriterionType) {
186
291
  KnownCriterionType["StaticThresholdCriterion"] = "StaticThresholdCriterion";
187
292
  KnownCriterionType["DynamicThresholdCriterion"] = "DynamicThresholdCriterion";
188
293
  })(exports.KnownCriterionType || (exports.KnownCriterionType = {}));
294
+ /** Known values of {@link AggregationTypeEnum} that the service accepts. */
295
+ exports.KnownAggregationTypeEnum = void 0;
189
296
  (function (KnownAggregationTypeEnum) {
190
297
  KnownAggregationTypeEnum["Average"] = "Average";
191
298
  KnownAggregationTypeEnum["Count"] = "Count";
@@ -193,16 +300,22 @@ var coreLro = require('@azure/core-lro');
193
300
  KnownAggregationTypeEnum["Maximum"] = "Maximum";
194
301
  KnownAggregationTypeEnum["Total"] = "Total";
195
302
  })(exports.KnownAggregationTypeEnum || (exports.KnownAggregationTypeEnum = {}));
303
+ /** Known values of {@link DynamicThresholdOperator} that the service accepts. */
304
+ exports.KnownDynamicThresholdOperator = void 0;
196
305
  (function (KnownDynamicThresholdOperator) {
197
306
  KnownDynamicThresholdOperator["GreaterThan"] = "GreaterThan";
198
307
  KnownDynamicThresholdOperator["LessThan"] = "LessThan";
199
308
  KnownDynamicThresholdOperator["GreaterOrLessThan"] = "GreaterOrLessThan";
200
309
  })(exports.KnownDynamicThresholdOperator || (exports.KnownDynamicThresholdOperator = {}));
310
+ /** Known values of {@link DynamicThresholdSensitivity} that the service accepts. */
311
+ exports.KnownDynamicThresholdSensitivity = void 0;
201
312
  (function (KnownDynamicThresholdSensitivity) {
202
313
  KnownDynamicThresholdSensitivity["Low"] = "Low";
203
314
  KnownDynamicThresholdSensitivity["Medium"] = "Medium";
204
315
  KnownDynamicThresholdSensitivity["High"] = "High";
205
316
  })(exports.KnownDynamicThresholdSensitivity || (exports.KnownDynamicThresholdSensitivity = {}));
317
+ /** Known values of {@link ConditionalOperator} that the service accepts. */
318
+ exports.KnownConditionalOperator = void 0;
206
319
  (function (KnownConditionalOperator) {
207
320
  KnownConditionalOperator["GreaterThanOrEqual"] = "GreaterThanOrEqual";
208
321
  KnownConditionalOperator["LessThanOrEqual"] = "LessThanOrEqual";
@@ -210,10 +323,14 @@ var coreLro = require('@azure/core-lro');
210
323
  KnownConditionalOperator["LessThan"] = "LessThan";
211
324
  KnownConditionalOperator["Equal"] = "Equal";
212
325
  })(exports.KnownConditionalOperator || (exports.KnownConditionalOperator = {}));
326
+ /** Known values of {@link MetricTriggerType} that the service accepts. */
327
+ exports.KnownMetricTriggerType = void 0;
213
328
  (function (KnownMetricTriggerType) {
214
329
  KnownMetricTriggerType["Consecutive"] = "Consecutive";
215
330
  KnownMetricTriggerType["Total"] = "Total";
216
331
  })(exports.KnownMetricTriggerType || (exports.KnownMetricTriggerType = {}));
332
+ /** Known values of {@link AlertSeverity} that the service accepts. */
333
+ exports.KnownAlertSeverity = void 0;
217
334
  (function (KnownAlertSeverity) {
218
335
  KnownAlertSeverity["Zero"] = "0";
219
336
  KnownAlertSeverity["One"] = "1";
@@ -2089,35 +2206,6 @@ const NotificationRequestBody = {
2089
2206
  }
2090
2207
  }
2091
2208
  };
2092
- const TestNotificationResponse = {
2093
- type: {
2094
- name: "Composite",
2095
- className: "TestNotificationResponse",
2096
- modelProperties: {
2097
- notificationId: {
2098
- serializedName: "notificationId",
2099
- required: true,
2100
- type: {
2101
- name: "String"
2102
- }
2103
- },
2104
- correlationId: {
2105
- serializedName: "correlationId",
2106
- required: true,
2107
- type: {
2108
- name: "String"
2109
- }
2110
- },
2111
- createdTime: {
2112
- serializedName: "createdTime",
2113
- required: true,
2114
- type: {
2115
- name: "String"
2116
- }
2117
- }
2118
- }
2119
- }
2120
- };
2121
2209
  const TestNotificationDetailsResponse = {
2122
2210
  type: {
2123
2211
  name: "Composite",
@@ -4099,10 +4187,10 @@ const ScopedResourceListResult = {
4099
4187
  }
4100
4188
  }
4101
4189
  };
4102
- const ActivityLogAlertAllOfCondition = {
4190
+ const AlertRuleAllOfCondition = {
4103
4191
  type: {
4104
4192
  name: "Composite",
4105
- className: "ActivityLogAlertAllOfCondition",
4193
+ className: "AlertRuleAllOfCondition",
4106
4194
  modelProperties: {
4107
4195
  allOf: {
4108
4196
  serializedName: "allOf",
@@ -4112,7 +4200,7 @@ const ActivityLogAlertAllOfCondition = {
4112
4200
  element: {
4113
4201
  type: {
4114
4202
  name: "Composite",
4115
- className: "ActivityLogAlertLeafCondition"
4203
+ className: "AlertRuleAnyOfOrLeafCondition"
4116
4204
  }
4117
4205
  }
4118
4206
  }
@@ -4120,32 +4208,41 @@ const ActivityLogAlertAllOfCondition = {
4120
4208
  }
4121
4209
  }
4122
4210
  };
4123
- const ActivityLogAlertLeafCondition = {
4211
+ const AlertRuleLeafCondition = {
4124
4212
  type: {
4125
4213
  name: "Composite",
4126
- className: "ActivityLogAlertLeafCondition",
4214
+ className: "AlertRuleLeafCondition",
4127
4215
  modelProperties: {
4128
4216
  field: {
4129
4217
  serializedName: "field",
4130
- required: true,
4131
4218
  type: {
4132
4219
  name: "String"
4133
4220
  }
4134
4221
  },
4135
4222
  equals: {
4136
4223
  serializedName: "equals",
4137
- required: true,
4138
4224
  type: {
4139
4225
  name: "String"
4140
4226
  }
4227
+ },
4228
+ containsAny: {
4229
+ serializedName: "containsAny",
4230
+ type: {
4231
+ name: "Sequence",
4232
+ element: {
4233
+ type: {
4234
+ name: "String"
4235
+ }
4236
+ }
4237
+ }
4141
4238
  }
4142
4239
  }
4143
4240
  }
4144
4241
  };
4145
- const ActivityLogAlertActionList = {
4242
+ const ActionList = {
4146
4243
  type: {
4147
4244
  name: "Composite",
4148
- className: "ActivityLogAlertActionList",
4245
+ className: "ActionList",
4149
4246
  modelProperties: {
4150
4247
  actionGroups: {
4151
4248
  serializedName: "actionGroups",
@@ -4154,7 +4251,7 @@ const ActivityLogAlertActionList = {
4154
4251
  element: {
4155
4252
  type: {
4156
4253
  name: "Composite",
4157
- className: "ActivityLogAlertActionGroup"
4254
+ className: "ActionGroup"
4158
4255
  }
4159
4256
  }
4160
4257
  }
@@ -4162,10 +4259,10 @@ const ActivityLogAlertActionList = {
4162
4259
  }
4163
4260
  }
4164
4261
  };
4165
- const ActivityLogAlertActionGroup = {
4262
+ const ActionGroup = {
4166
4263
  type: {
4167
4264
  name: "Composite",
4168
- className: "ActivityLogAlertActionGroup",
4265
+ className: "ActionGroup",
4169
4266
  modelProperties: {
4170
4267
  actionGroupId: {
4171
4268
  serializedName: "actionGroupId",
@@ -4184,10 +4281,75 @@ const ActivityLogAlertActionGroup = {
4184
4281
  }
4185
4282
  }
4186
4283
  };
4187
- const ActivityLogAlertPatchBody = {
4284
+ const AzureResourceAutoGenerated = {
4285
+ type: {
4286
+ name: "Composite",
4287
+ className: "AzureResourceAutoGenerated",
4288
+ modelProperties: {
4289
+ id: {
4290
+ serializedName: "id",
4291
+ readOnly: true,
4292
+ type: {
4293
+ name: "String"
4294
+ }
4295
+ },
4296
+ name: {
4297
+ serializedName: "name",
4298
+ readOnly: true,
4299
+ type: {
4300
+ name: "String"
4301
+ }
4302
+ },
4303
+ type: {
4304
+ serializedName: "type",
4305
+ readOnly: true,
4306
+ type: {
4307
+ name: "String"
4308
+ }
4309
+ },
4310
+ location: {
4311
+ defaultValue: "global",
4312
+ serializedName: "location",
4313
+ type: {
4314
+ name: "String"
4315
+ }
4316
+ },
4317
+ tags: {
4318
+ serializedName: "tags",
4319
+ type: {
4320
+ name: "Dictionary",
4321
+ value: { type: { name: "String" } }
4322
+ }
4323
+ }
4324
+ }
4325
+ }
4326
+ };
4327
+ const ErrorResponseAutoGenerated = {
4328
+ type: {
4329
+ name: "Composite",
4330
+ className: "ErrorResponseAutoGenerated",
4331
+ modelProperties: {
4332
+ code: {
4333
+ serializedName: "code",
4334
+ readOnly: true,
4335
+ type: {
4336
+ name: "String"
4337
+ }
4338
+ },
4339
+ message: {
4340
+ serializedName: "message",
4341
+ readOnly: true,
4342
+ type: {
4343
+ name: "String"
4344
+ }
4345
+ }
4346
+ }
4347
+ }
4348
+ };
4349
+ const AlertRulePatchObject = {
4188
4350
  type: {
4189
4351
  name: "Composite",
4190
- className: "ActivityLogAlertPatchBody",
4352
+ className: "AlertRulePatchObject",
4191
4353
  modelProperties: {
4192
4354
  tags: {
4193
4355
  serializedName: "tags",
@@ -4206,10 +4368,10 @@ const ActivityLogAlertPatchBody = {
4206
4368
  }
4207
4369
  }
4208
4370
  };
4209
- const ActivityLogAlertList = {
4371
+ const AlertRuleList = {
4210
4372
  type: {
4211
4373
  name: "Composite",
4212
- className: "ActivityLogAlertList",
4374
+ className: "AlertRuleList",
4213
4375
  modelProperties: {
4214
4376
  value: {
4215
4377
  serializedName: "value",
@@ -4674,6 +4836,13 @@ const DataCollectionRuleAssociationProxyOnlyResource = {
4674
4836
  type: {
4675
4837
  name: "String"
4676
4838
  }
4839
+ },
4840
+ metadata: {
4841
+ serializedName: "properties.metadata",
4842
+ type: {
4843
+ name: "Composite",
4844
+ className: "DataCollectionRuleAssociationMetadata"
4845
+ }
4677
4846
  }
4678
4847
  }
4679
4848
  }
@@ -4707,6 +4876,28 @@ const DataCollectionRuleAssociation = {
4707
4876
  type: {
4708
4877
  name: "String"
4709
4878
  }
4879
+ },
4880
+ metadata: {
4881
+ serializedName: "metadata",
4882
+ type: {
4883
+ name: "Composite",
4884
+ className: "DataCollectionRuleAssociationMetadata"
4885
+ }
4886
+ }
4887
+ }
4888
+ }
4889
+ };
4890
+ const Metadata = {
4891
+ type: {
4892
+ name: "Composite",
4893
+ className: "Metadata",
4894
+ modelProperties: {
4895
+ provisionedBy: {
4896
+ serializedName: "provisionedBy",
4897
+ readOnly: true,
4898
+ type: {
4899
+ name: "String"
4900
+ }
4710
4901
  }
4711
4902
  }
4712
4903
  }
@@ -4811,6 +5002,26 @@ const DataCollectionRuleResource = {
4811
5002
  name: "String"
4812
5003
  }
4813
5004
  },
5005
+ dataCollectionEndpointId: {
5006
+ serializedName: "properties.dataCollectionEndpointId",
5007
+ type: {
5008
+ name: "String"
5009
+ }
5010
+ },
5011
+ metadata: {
5012
+ serializedName: "properties.metadata",
5013
+ type: {
5014
+ name: "Composite",
5015
+ className: "DataCollectionRuleMetadata"
5016
+ }
5017
+ },
5018
+ streamDeclarations: {
5019
+ serializedName: "properties.streamDeclarations",
5020
+ type: {
5021
+ name: "Dictionary",
5022
+ value: { type: { name: "Composite", className: "StreamDeclaration" } }
5023
+ }
5024
+ },
4814
5025
  dataSources: {
4815
5026
  serializedName: "properties.dataSources",
4816
5027
  type: {
@@ -4865,6 +5076,26 @@ const DataCollectionRule = {
4865
5076
  name: "String"
4866
5077
  }
4867
5078
  },
5079
+ dataCollectionEndpointId: {
5080
+ serializedName: "dataCollectionEndpointId",
5081
+ type: {
5082
+ name: "String"
5083
+ }
5084
+ },
5085
+ metadata: {
5086
+ serializedName: "metadata",
5087
+ type: {
5088
+ name: "Composite",
5089
+ className: "DataCollectionRuleMetadata"
5090
+ }
5091
+ },
5092
+ streamDeclarations: {
5093
+ serializedName: "streamDeclarations",
5094
+ type: {
5095
+ name: "Dictionary",
5096
+ value: { type: { name: "Composite", className: "StreamDeclaration" } }
5097
+ }
5098
+ },
4868
5099
  dataSources: {
4869
5100
  serializedName: "dataSources",
4870
5101
  type: {
@@ -4901,6 +5132,46 @@ const DataCollectionRule = {
4901
5132
  }
4902
5133
  }
4903
5134
  };
5135
+ const StreamDeclaration = {
5136
+ type: {
5137
+ name: "Composite",
5138
+ className: "StreamDeclaration",
5139
+ modelProperties: {
5140
+ columns: {
5141
+ serializedName: "columns",
5142
+ type: {
5143
+ name: "Sequence",
5144
+ element: {
5145
+ type: {
5146
+ name: "Composite",
5147
+ className: "ColumnDefinition"
5148
+ }
5149
+ }
5150
+ }
5151
+ }
5152
+ }
5153
+ }
5154
+ };
5155
+ const ColumnDefinition = {
5156
+ type: {
5157
+ name: "Composite",
5158
+ className: "ColumnDefinition",
5159
+ modelProperties: {
5160
+ name: {
5161
+ serializedName: "name",
5162
+ type: {
5163
+ name: "String"
5164
+ }
5165
+ },
5166
+ type: {
5167
+ serializedName: "type",
5168
+ type: {
5169
+ name: "String"
5170
+ }
5171
+ }
5172
+ }
5173
+ }
5174
+ };
4904
5175
  const DataSourcesSpec = {
4905
5176
  type: {
4906
5177
  name: "Composite",
@@ -4953,6 +5224,30 @@ const DataSourcesSpec = {
4953
5224
  }
4954
5225
  }
4955
5226
  }
5227
+ },
5228
+ logFiles: {
5229
+ serializedName: "logFiles",
5230
+ type: {
5231
+ name: "Sequence",
5232
+ element: {
5233
+ type: {
5234
+ name: "Composite",
5235
+ className: "LogFilesDataSource"
5236
+ }
5237
+ }
5238
+ }
5239
+ },
5240
+ iisLogs: {
5241
+ serializedName: "iisLogs",
5242
+ type: {
5243
+ name: "Sequence",
5244
+ element: {
5245
+ type: {
5246
+ name: "Composite",
5247
+ className: "IisLogsDataSource"
5248
+ }
5249
+ }
5250
+ }
4956
5251
  }
4957
5252
  }
4958
5253
  }
@@ -5132,49 +5427,47 @@ const ExtensionDataSource = {
5132
5427
  }
5133
5428
  }
5134
5429
  };
5135
- const DestinationsSpec = {
5430
+ const LogFilesDataSource = {
5136
5431
  type: {
5137
5432
  name: "Composite",
5138
- className: "DestinationsSpec",
5433
+ className: "LogFilesDataSource",
5139
5434
  modelProperties: {
5140
- logAnalytics: {
5141
- serializedName: "logAnalytics",
5435
+ streams: {
5436
+ serializedName: "streams",
5437
+ required: true,
5142
5438
  type: {
5143
5439
  name: "Sequence",
5144
5440
  element: {
5145
5441
  type: {
5146
- name: "Composite",
5147
- className: "LogAnalyticsDestination"
5442
+ name: "String"
5148
5443
  }
5149
5444
  }
5150
5445
  }
5151
5446
  },
5152
- azureMonitorMetrics: {
5153
- serializedName: "azureMonitorMetrics",
5447
+ filePatterns: {
5448
+ serializedName: "filePatterns",
5449
+ required: true,
5154
5450
  type: {
5155
- name: "Composite",
5156
- className: "DestinationsSpecAzureMonitorMetrics"
5451
+ name: "Sequence",
5452
+ element: {
5453
+ type: {
5454
+ name: "String"
5455
+ }
5456
+ }
5157
5457
  }
5158
- }
5159
- }
5160
- }
5161
- };
5162
- const LogAnalyticsDestination = {
5163
- type: {
5164
- name: "Composite",
5165
- className: "LogAnalyticsDestination",
5166
- modelProperties: {
5167
- workspaceResourceId: {
5168
- serializedName: "workspaceResourceId",
5458
+ },
5459
+ format: {
5460
+ serializedName: "format",
5461
+ required: true,
5169
5462
  type: {
5170
5463
  name: "String"
5171
5464
  }
5172
5465
  },
5173
- workspaceId: {
5174
- serializedName: "workspaceId",
5175
- readOnly: true,
5466
+ settings: {
5467
+ serializedName: "settings",
5176
5468
  type: {
5177
- name: "String"
5469
+ name: "Composite",
5470
+ className: "LogFilesDataSourceSettings"
5178
5471
  }
5179
5472
  },
5180
5473
  name: {
@@ -5186,13 +5479,29 @@ const LogAnalyticsDestination = {
5186
5479
  }
5187
5480
  }
5188
5481
  };
5189
- const AzureMonitorMetricsDestination = {
5482
+ const LogFileSettings = {
5190
5483
  type: {
5191
5484
  name: "Composite",
5192
- className: "AzureMonitorMetricsDestination",
5485
+ className: "LogFileSettings",
5193
5486
  modelProperties: {
5194
- name: {
5195
- serializedName: "name",
5487
+ text: {
5488
+ serializedName: "text",
5489
+ type: {
5490
+ name: "Composite",
5491
+ className: "LogFileSettingsText"
5492
+ }
5493
+ }
5494
+ }
5495
+ }
5496
+ };
5497
+ const LogFileTextSettings = {
5498
+ type: {
5499
+ name: "Composite",
5500
+ className: "LogFileTextSettings",
5501
+ modelProperties: {
5502
+ recordStartTimestampFormat: {
5503
+ serializedName: "recordStartTimestampFormat",
5504
+ required: true,
5196
5505
  type: {
5197
5506
  name: "String"
5198
5507
  }
@@ -5200,10 +5509,115 @@ const AzureMonitorMetricsDestination = {
5200
5509
  }
5201
5510
  }
5202
5511
  };
5203
- const DataFlow = {
5512
+ const IisLogsDataSource = {
5204
5513
  type: {
5205
5514
  name: "Composite",
5206
- className: "DataFlow",
5515
+ className: "IisLogsDataSource",
5516
+ modelProperties: {
5517
+ streams: {
5518
+ serializedName: "streams",
5519
+ required: true,
5520
+ type: {
5521
+ name: "Sequence",
5522
+ element: {
5523
+ type: {
5524
+ name: "String"
5525
+ }
5526
+ }
5527
+ }
5528
+ },
5529
+ logDirectories: {
5530
+ serializedName: "logDirectories",
5531
+ type: {
5532
+ name: "Sequence",
5533
+ element: {
5534
+ type: {
5535
+ name: "String"
5536
+ }
5537
+ }
5538
+ }
5539
+ },
5540
+ name: {
5541
+ serializedName: "name",
5542
+ type: {
5543
+ name: "String"
5544
+ }
5545
+ }
5546
+ }
5547
+ }
5548
+ };
5549
+ const DestinationsSpec = {
5550
+ type: {
5551
+ name: "Composite",
5552
+ className: "DestinationsSpec",
5553
+ modelProperties: {
5554
+ logAnalytics: {
5555
+ serializedName: "logAnalytics",
5556
+ type: {
5557
+ name: "Sequence",
5558
+ element: {
5559
+ type: {
5560
+ name: "Composite",
5561
+ className: "LogAnalyticsDestination"
5562
+ }
5563
+ }
5564
+ }
5565
+ },
5566
+ azureMonitorMetrics: {
5567
+ serializedName: "azureMonitorMetrics",
5568
+ type: {
5569
+ name: "Composite",
5570
+ className: "DestinationsSpecAzureMonitorMetrics"
5571
+ }
5572
+ }
5573
+ }
5574
+ }
5575
+ };
5576
+ const LogAnalyticsDestination = {
5577
+ type: {
5578
+ name: "Composite",
5579
+ className: "LogAnalyticsDestination",
5580
+ modelProperties: {
5581
+ workspaceResourceId: {
5582
+ serializedName: "workspaceResourceId",
5583
+ type: {
5584
+ name: "String"
5585
+ }
5586
+ },
5587
+ workspaceId: {
5588
+ serializedName: "workspaceId",
5589
+ readOnly: true,
5590
+ type: {
5591
+ name: "String"
5592
+ }
5593
+ },
5594
+ name: {
5595
+ serializedName: "name",
5596
+ type: {
5597
+ name: "String"
5598
+ }
5599
+ }
5600
+ }
5601
+ }
5602
+ };
5603
+ const AzureMonitorMetricsDestination = {
5604
+ type: {
5605
+ name: "Composite",
5606
+ className: "AzureMonitorMetricsDestination",
5607
+ modelProperties: {
5608
+ name: {
5609
+ serializedName: "name",
5610
+ type: {
5611
+ name: "String"
5612
+ }
5613
+ }
5614
+ }
5615
+ }
5616
+ };
5617
+ const DataFlow = {
5618
+ type: {
5619
+ name: "Composite",
5620
+ className: "DataFlow",
5207
5621
  modelProperties: {
5208
5622
  streams: {
5209
5623
  serializedName: "streams",
@@ -5226,6 +5640,18 @@ const DataFlow = {
5226
5640
  }
5227
5641
  }
5228
5642
  }
5643
+ },
5644
+ transformKql: {
5645
+ serializedName: "transformKql",
5646
+ type: {
5647
+ name: "String"
5648
+ }
5649
+ },
5650
+ outputStream: {
5651
+ serializedName: "outputStream",
5652
+ type: {
5653
+ name: "String"
5654
+ }
5229
5655
  }
5230
5656
  }
5231
5657
  }
@@ -5803,46 +6229,6 @@ const MetricAlertResource = {
5803
6229
  } })
5804
6230
  }
5805
6231
  };
5806
- const ActivityLogAlertResource = {
5807
- type: {
5808
- name: "Composite",
5809
- className: "ActivityLogAlertResource",
5810
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { scopes: {
5811
- serializedName: "properties.scopes",
5812
- type: {
5813
- name: "Sequence",
5814
- element: {
5815
- type: {
5816
- name: "String"
5817
- }
5818
- }
5819
- }
5820
- }, enabled: {
5821
- defaultValue: true,
5822
- serializedName: "properties.enabled",
5823
- type: {
5824
- name: "Boolean"
5825
- }
5826
- }, condition: {
5827
- serializedName: "properties.condition",
5828
- type: {
5829
- name: "Composite",
5830
- className: "ActivityLogAlertAllOfCondition"
5831
- }
5832
- }, actions: {
5833
- serializedName: "properties.actions",
5834
- type: {
5835
- name: "Composite",
5836
- className: "ActivityLogAlertActionList"
5837
- }
5838
- }, description: {
5839
- serializedName: "properties.description",
5840
- type: {
5841
- name: "String"
5842
- }
5843
- } })
5844
- }
5845
- };
5846
6232
  const ErrorResponseCommon = {
5847
6233
  type: {
5848
6234
  name: "Composite",
@@ -6607,6 +6993,64 @@ const AzureMonitorPrivateLinkScope = {
6607
6993
  } })
6608
6994
  }
6609
6995
  };
6996
+ const AlertRuleAnyOfOrLeafCondition = {
6997
+ type: {
6998
+ name: "Composite",
6999
+ className: "AlertRuleAnyOfOrLeafCondition",
7000
+ modelProperties: Object.assign(Object.assign({}, AlertRuleLeafCondition.type.modelProperties), { anyOf: {
7001
+ serializedName: "anyOf",
7002
+ type: {
7003
+ name: "Sequence",
7004
+ element: {
7005
+ type: {
7006
+ name: "Composite",
7007
+ className: "AlertRuleLeafCondition"
7008
+ }
7009
+ }
7010
+ }
7011
+ } })
7012
+ }
7013
+ };
7014
+ const ActivityLogAlertResource = {
7015
+ type: {
7016
+ name: "Composite",
7017
+ className: "ActivityLogAlertResource",
7018
+ modelProperties: Object.assign(Object.assign({}, AzureResourceAutoGenerated.type.modelProperties), { scopes: {
7019
+ serializedName: "properties.scopes",
7020
+ type: {
7021
+ name: "Sequence",
7022
+ element: {
7023
+ type: {
7024
+ name: "String"
7025
+ }
7026
+ }
7027
+ }
7028
+ }, condition: {
7029
+ serializedName: "properties.condition",
7030
+ type: {
7031
+ name: "Composite",
7032
+ className: "AlertRuleAllOfCondition"
7033
+ }
7034
+ }, actions: {
7035
+ serializedName: "properties.actions",
7036
+ type: {
7037
+ name: "Composite",
7038
+ className: "ActionList"
7039
+ }
7040
+ }, enabled: {
7041
+ defaultValue: true,
7042
+ serializedName: "properties.enabled",
7043
+ type: {
7044
+ name: "Boolean"
7045
+ }
7046
+ }, description: {
7047
+ serializedName: "properties.description",
7048
+ type: {
7049
+ name: "String"
7050
+ }
7051
+ } })
7052
+ }
7053
+ };
6610
7054
  const DataCollectionEndpointResourceProperties = {
6611
7055
  type: {
6612
7056
  name: "Composite",
@@ -6663,6 +7107,20 @@ const DataCollectionRuleAssociationProxyOnlyResourceProperties = {
6663
7107
  modelProperties: Object.assign({}, DataCollectionRuleAssociation.type.modelProperties)
6664
7108
  }
6665
7109
  };
7110
+ const DataCollectionRuleAssociationMetadata = {
7111
+ type: {
7112
+ name: "Composite",
7113
+ className: "DataCollectionRuleAssociationMetadata",
7114
+ modelProperties: Object.assign({}, Metadata.type.modelProperties)
7115
+ }
7116
+ };
7117
+ const DataCollectionRuleMetadata = {
7118
+ type: {
7119
+ name: "Composite",
7120
+ className: "DataCollectionRuleMetadata",
7121
+ modelProperties: Object.assign({}, Metadata.type.modelProperties)
7122
+ }
7123
+ };
6666
7124
  const DataCollectionRuleResourceProperties = {
6667
7125
  type: {
6668
7126
  name: "Composite",
@@ -6677,6 +7135,20 @@ const DataCollectionRuleDataSources = {
6677
7135
  modelProperties: Object.assign({}, DataSourcesSpec.type.modelProperties)
6678
7136
  }
6679
7137
  };
7138
+ const LogFilesDataSourceSettings = {
7139
+ type: {
7140
+ name: "Composite",
7141
+ className: "LogFilesDataSourceSettings",
7142
+ modelProperties: Object.assign({}, LogFileSettings.type.modelProperties)
7143
+ }
7144
+ };
7145
+ const LogFileSettingsText = {
7146
+ type: {
7147
+ name: "Composite",
7148
+ className: "LogFileSettingsText",
7149
+ modelProperties: Object.assign({}, LogFileTextSettings.type.modelProperties)
7150
+ }
7151
+ };
6680
7152
  const DataCollectionRuleDestinations = {
6681
7153
  type: {
6682
7154
  name: "Composite",
@@ -6748,6 +7220,48 @@ const DynamicMetricCriteria = {
6748
7220
  } })
6749
7221
  }
6750
7222
  };
7223
+ const ActionGroupsPostTestNotificationsHeaders = {
7224
+ type: {
7225
+ name: "Composite",
7226
+ className: "ActionGroupsPostTestNotificationsHeaders",
7227
+ modelProperties: {
7228
+ location: {
7229
+ serializedName: "location",
7230
+ type: {
7231
+ name: "String"
7232
+ }
7233
+ }
7234
+ }
7235
+ }
7236
+ };
7237
+ const ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders = {
7238
+ type: {
7239
+ name: "Composite",
7240
+ className: "ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders",
7241
+ modelProperties: {
7242
+ location: {
7243
+ serializedName: "location",
7244
+ type: {
7245
+ name: "String"
7246
+ }
7247
+ }
7248
+ }
7249
+ }
7250
+ };
7251
+ const ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders = {
7252
+ type: {
7253
+ name: "Composite",
7254
+ className: "ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders",
7255
+ modelProperties: {
7256
+ location: {
7257
+ serializedName: "location",
7258
+ type: {
7259
+ name: "String"
7260
+ }
7261
+ }
7262
+ }
7263
+ }
7264
+ };
6751
7265
  let discriminators = {
6752
7266
  RuleCondition: RuleCondition,
6753
7267
  RuleDataSource: RuleDataSource,
@@ -6821,7 +7335,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
6821
7335
  AzureResource: AzureResource,
6822
7336
  ActionGroupPatchBody: ActionGroupPatchBody,
6823
7337
  NotificationRequestBody: NotificationRequestBody,
6824
- TestNotificationResponse: TestNotificationResponse,
6825
7338
  TestNotificationDetailsResponse: TestNotificationDetailsResponse,
6826
7339
  Context: Context,
6827
7340
  ActionDetail: ActionDetail,
@@ -6879,12 +7392,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
6879
7392
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
6880
7393
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
6881
7394
  ScopedResourceListResult: ScopedResourceListResult,
6882
- ActivityLogAlertAllOfCondition: ActivityLogAlertAllOfCondition,
6883
- ActivityLogAlertLeafCondition: ActivityLogAlertLeafCondition,
6884
- ActivityLogAlertActionList: ActivityLogAlertActionList,
6885
- ActivityLogAlertActionGroup: ActivityLogAlertActionGroup,
6886
- ActivityLogAlertPatchBody: ActivityLogAlertPatchBody,
6887
- ActivityLogAlertList: ActivityLogAlertList,
7395
+ AlertRuleAllOfCondition: AlertRuleAllOfCondition,
7396
+ AlertRuleLeafCondition: AlertRuleLeafCondition,
7397
+ ActionList: ActionList,
7398
+ ActionGroup: ActionGroup,
7399
+ AzureResourceAutoGenerated: AzureResourceAutoGenerated,
7400
+ ErrorResponseAutoGenerated: ErrorResponseAutoGenerated,
7401
+ AlertRulePatchObject: AlertRulePatchObject,
7402
+ AlertRuleList: AlertRuleList,
6888
7403
  DataCollectionEndpointResourceListResult: DataCollectionEndpointResourceListResult,
6889
7404
  DataCollectionEndpointResource: DataCollectionEndpointResource,
6890
7405
  DataCollectionEndpoint: DataCollectionEndpoint,
@@ -6898,14 +7413,21 @@ var Mappers = /*#__PURE__*/Object.freeze({
6898
7413
  DataCollectionRuleAssociationProxyOnlyResourceListResult: DataCollectionRuleAssociationProxyOnlyResourceListResult,
6899
7414
  DataCollectionRuleAssociationProxyOnlyResource: DataCollectionRuleAssociationProxyOnlyResource,
6900
7415
  DataCollectionRuleAssociation: DataCollectionRuleAssociation,
7416
+ Metadata: Metadata,
6901
7417
  DataCollectionRuleResourceListResult: DataCollectionRuleResourceListResult,
6902
7418
  DataCollectionRuleResource: DataCollectionRuleResource,
6903
7419
  DataCollectionRule: DataCollectionRule,
7420
+ StreamDeclaration: StreamDeclaration,
7421
+ ColumnDefinition: ColumnDefinition,
6904
7422
  DataSourcesSpec: DataSourcesSpec,
6905
7423
  PerfCounterDataSource: PerfCounterDataSource,
6906
7424
  WindowsEventLogDataSource: WindowsEventLogDataSource,
6907
7425
  SyslogDataSource: SyslogDataSource,
6908
7426
  ExtensionDataSource: ExtensionDataSource,
7427
+ LogFilesDataSource: LogFilesDataSource,
7428
+ LogFileSettings: LogFileSettings,
7429
+ LogFileTextSettings: LogFileTextSettings,
7430
+ IisLogsDataSource: IisLogsDataSource,
6909
7431
  DestinationsSpec: DestinationsSpec,
6910
7432
  LogAnalyticsDestination: LogAnalyticsDestination,
6911
7433
  AzureMonitorMetricsDestination: AzureMonitorMetricsDestination,
@@ -6924,7 +7446,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
6924
7446
  AlertRuleResource: AlertRuleResource,
6925
7447
  LogProfileResource: LogProfileResource,
6926
7448
  MetricAlertResource: MetricAlertResource,
6927
- ActivityLogAlertResource: ActivityLogAlertResource,
6928
7449
  ErrorResponseCommon: ErrorResponseCommon,
6929
7450
  ThresholdRuleCondition: ThresholdRuleCondition,
6930
7451
  LocationThresholdRuleCondition: LocationThresholdRuleCondition,
@@ -6947,6 +7468,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
6947
7468
  PrivateLinkResource: PrivateLinkResource,
6948
7469
  ScopedResource: ScopedResource,
6949
7470
  AzureMonitorPrivateLinkScope: AzureMonitorPrivateLinkScope,
7471
+ AlertRuleAnyOfOrLeafCondition: AlertRuleAnyOfOrLeafCondition,
7472
+ ActivityLogAlertResource: ActivityLogAlertResource,
6950
7473
  DataCollectionEndpointResourceProperties: DataCollectionEndpointResourceProperties,
6951
7474
  DataCollectionEndpointConfigurationAccess: DataCollectionEndpointConfigurationAccess,
6952
7475
  DataCollectionEndpointLogsIngestion: DataCollectionEndpointLogsIngestion,
@@ -6955,12 +7478,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
6955
7478
  DataCollectionRuleAssociationProxyOnlyResourceSystemData: DataCollectionRuleAssociationProxyOnlyResourceSystemData,
6956
7479
  DataCollectionRuleResourceSystemData: DataCollectionRuleResourceSystemData,
6957
7480
  DataCollectionRuleAssociationProxyOnlyResourceProperties: DataCollectionRuleAssociationProxyOnlyResourceProperties,
7481
+ DataCollectionRuleAssociationMetadata: DataCollectionRuleAssociationMetadata,
7482
+ DataCollectionRuleMetadata: DataCollectionRuleMetadata,
6958
7483
  DataCollectionRuleResourceProperties: DataCollectionRuleResourceProperties,
6959
7484
  DataCollectionRuleDataSources: DataCollectionRuleDataSources,
7485
+ LogFilesDataSourceSettings: LogFilesDataSourceSettings,
7486
+ LogFileSettingsText: LogFileSettingsText,
6960
7487
  DataCollectionRuleDestinations: DataCollectionRuleDestinations,
6961
7488
  DestinationsSpecAzureMonitorMetrics: DestinationsSpecAzureMonitorMetrics,
6962
7489
  MetricCriteria: MetricCriteria,
6963
7490
  DynamicMetricCriteria: DynamicMetricCriteria,
7491
+ ActionGroupsPostTestNotificationsHeaders: ActionGroupsPostTestNotificationsHeaders,
7492
+ ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders,
7493
+ ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders,
6964
7494
  discriminators: discriminators
6965
7495
  });
6966
7496
 
@@ -7181,7 +7711,7 @@ const actionGroupName = {
7181
7711
  const apiVersion3 = {
7182
7712
  parameterPath: "apiVersion",
7183
7713
  mapper: {
7184
- defaultValue: "2021-09-01",
7714
+ defaultValue: "2022-06-01",
7185
7715
  isConstant: true,
7186
7716
  serializedName: "api-version",
7187
7717
  type: {
@@ -7489,8 +8019,8 @@ const parameters9 = {
7489
8019
  parameterPath: "parameters",
7490
8020
  mapper: ScopedResource
7491
8021
  };
7492
- const activityLogAlert = {
7493
- parameterPath: "activityLogAlert",
8022
+ const activityLogAlertRule = {
8023
+ parameterPath: "activityLogAlertRule",
7494
8024
  mapper: ActivityLogAlertResource
7495
8025
  };
7496
8026
  const activityLogAlertName = {
@@ -7506,7 +8036,7 @@ const activityLogAlertName = {
7506
8036
  const apiVersion11 = {
7507
8037
  parameterPath: "apiVersion",
7508
8038
  mapper: {
7509
- defaultValue: "2017-04-01",
8039
+ defaultValue: "2020-10-01",
7510
8040
  isConstant: true,
7511
8041
  serializedName: "api-version",
7512
8042
  type: {
@@ -7514,14 +8044,14 @@ const apiVersion11 = {
7514
8044
  }
7515
8045
  }
7516
8046
  };
7517
- const activityLogAlertPatch = {
7518
- parameterPath: "activityLogAlertPatch",
7519
- mapper: ActivityLogAlertPatchBody
8047
+ const activityLogAlertRulePatch = {
8048
+ parameterPath: "activityLogAlertRulePatch",
8049
+ mapper: AlertRulePatchObject
7520
8050
  };
7521
8051
  const apiVersion12 = {
7522
8052
  parameterPath: "apiVersion",
7523
8053
  mapper: {
7524
- defaultValue: "2021-04-01",
8054
+ defaultValue: "2021-09-01-preview",
7525
8055
  isConstant: true,
7526
8056
  serializedName: "api-version",
7527
8057
  type: {
@@ -7710,7 +8240,7 @@ class AutoscaleSettingsImpl {
7710
8240
  * @param options The options parameters.
7711
8241
  */
7712
8242
  _listByResourceGroup(resourceGroupName, options) {
7713
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
8243
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$8);
7714
8244
  }
7715
8245
  /**
7716
8246
  * Creates or updates an autoscale setting.
@@ -7720,7 +8250,7 @@ class AutoscaleSettingsImpl {
7720
8250
  * @param options The options parameters.
7721
8251
  */
7722
8252
  createOrUpdate(resourceGroupName, autoscaleSettingName, parameters, options) {
7723
- return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, parameters, options }, createOrUpdateOperationSpec);
8253
+ return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, parameters, options }, createOrUpdateOperationSpec$a);
7724
8254
  }
7725
8255
  /**
7726
8256
  * Deletes and autoscale setting
@@ -7729,7 +8259,7 @@ class AutoscaleSettingsImpl {
7729
8259
  * @param options The options parameters.
7730
8260
  */
7731
8261
  delete(resourceGroupName, autoscaleSettingName, options) {
7732
- return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, options }, deleteOperationSpec);
8262
+ return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, options }, deleteOperationSpec$d);
7733
8263
  }
7734
8264
  /**
7735
8265
  * Gets an autoscale setting
@@ -7738,7 +8268,7 @@ class AutoscaleSettingsImpl {
7738
8268
  * @param options The options parameters.
7739
8269
  */
7740
8270
  get(resourceGroupName, autoscaleSettingName, options) {
7741
- return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, options }, getOperationSpec);
8271
+ return this.client.sendOperationRequest({ resourceGroupName, autoscaleSettingName, options }, getOperationSpec$h);
7742
8272
  }
7743
8273
  /**
7744
8274
  * Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.
@@ -7753,14 +8283,14 @@ class AutoscaleSettingsImpl {
7753
8283
  autoscaleSettingName,
7754
8284
  autoscaleSettingResource,
7755
8285
  options
7756
- }, updateOperationSpec);
8286
+ }, updateOperationSpec$8);
7757
8287
  }
7758
8288
  /**
7759
8289
  * Lists the autoscale settings for a subscription
7760
8290
  * @param options The options parameters.
7761
8291
  */
7762
8292
  _listBySubscription(options) {
7763
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
8293
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$5);
7764
8294
  }
7765
8295
  /**
7766
8296
  * ListByResourceGroupNext
@@ -7769,7 +8299,7 @@ class AutoscaleSettingsImpl {
7769
8299
  * @param options The options parameters.
7770
8300
  */
7771
8301
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
7772
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
8302
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$4);
7773
8303
  }
7774
8304
  /**
7775
8305
  * ListBySubscriptionNext
@@ -7777,12 +8307,12 @@ class AutoscaleSettingsImpl {
7777
8307
  * @param options The options parameters.
7778
8308
  */
7779
8309
  _listBySubscriptionNext(nextLink, options) {
7780
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
8310
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$2);
7781
8311
  }
7782
8312
  }
7783
8313
  // Operation Specifications
7784
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
7785
- const listByResourceGroupOperationSpec = {
8314
+ const serializer$r = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8315
+ const listByResourceGroupOperationSpec$8 = {
7786
8316
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings",
7787
8317
  httpMethod: "GET",
7788
8318
  responses: {
@@ -7800,9 +8330,9 @@ const listByResourceGroupOperationSpec = {
7800
8330
  subscriptionId
7801
8331
  ],
7802
8332
  headerParameters: [accept],
7803
- serializer
8333
+ serializer: serializer$r
7804
8334
  };
7805
- const createOrUpdateOperationSpec = {
8335
+ const createOrUpdateOperationSpec$a = {
7806
8336
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
7807
8337
  httpMethod: "PUT",
7808
8338
  responses: {
@@ -7826,9 +8356,9 @@ const createOrUpdateOperationSpec = {
7826
8356
  ],
7827
8357
  headerParameters: [accept, contentType],
7828
8358
  mediaType: "json",
7829
- serializer
8359
+ serializer: serializer$r
7830
8360
  };
7831
- const deleteOperationSpec = {
8361
+ const deleteOperationSpec$d = {
7832
8362
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
7833
8363
  httpMethod: "DELETE",
7834
8364
  responses: {
@@ -7846,9 +8376,9 @@ const deleteOperationSpec = {
7846
8376
  autoscaleSettingName
7847
8377
  ],
7848
8378
  headerParameters: [accept],
7849
- serializer
8379
+ serializer: serializer$r
7850
8380
  };
7851
- const getOperationSpec = {
8381
+ const getOperationSpec$h = {
7852
8382
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
7853
8383
  httpMethod: "GET",
7854
8384
  responses: {
@@ -7867,9 +8397,9 @@ const getOperationSpec = {
7867
8397
  autoscaleSettingName
7868
8398
  ],
7869
8399
  headerParameters: [accept],
7870
- serializer
8400
+ serializer: serializer$r
7871
8401
  };
7872
- const updateOperationSpec = {
8402
+ const updateOperationSpec$8 = {
7873
8403
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
7874
8404
  httpMethod: "PATCH",
7875
8405
  responses: {
@@ -7890,9 +8420,9 @@ const updateOperationSpec = {
7890
8420
  ],
7891
8421
  headerParameters: [accept, contentType],
7892
8422
  mediaType: "json",
7893
- serializer
8423
+ serializer: serializer$r
7894
8424
  };
7895
- const listBySubscriptionOperationSpec = {
8425
+ const listBySubscriptionOperationSpec$5 = {
7896
8426
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/autoscalesettings",
7897
8427
  httpMethod: "GET",
7898
8428
  responses: {
@@ -7906,9 +8436,9 @@ const listBySubscriptionOperationSpec = {
7906
8436
  queryParameters: [apiVersion],
7907
8437
  urlParameters: [$host, subscriptionId],
7908
8438
  headerParameters: [accept],
7909
- serializer
8439
+ serializer: serializer$r
7910
8440
  };
7911
- const listByResourceGroupNextOperationSpec = {
8441
+ const listByResourceGroupNextOperationSpec$4 = {
7912
8442
  path: "{nextLink}",
7913
8443
  httpMethod: "GET",
7914
8444
  responses: {
@@ -7927,9 +8457,9 @@ const listByResourceGroupNextOperationSpec = {
7927
8457
  nextLink
7928
8458
  ],
7929
8459
  headerParameters: [accept],
7930
- serializer
8460
+ serializer: serializer$r
7931
8461
  };
7932
- const listBySubscriptionNextOperationSpec = {
8462
+ const listBySubscriptionNextOperationSpec$2 = {
7933
8463
  path: "{nextLink}",
7934
8464
  httpMethod: "GET",
7935
8465
  responses: {
@@ -7947,7 +8477,7 @@ const listBySubscriptionNextOperationSpec = {
7947
8477
  nextLink
7948
8478
  ],
7949
8479
  headerParameters: [accept],
7950
- serializer
8480
+ serializer: serializer$r
7951
8481
  };
7952
8482
 
7953
8483
  /*
@@ -7971,12 +8501,12 @@ class OperationsImpl {
7971
8501
  * @param options The options parameters.
7972
8502
  */
7973
8503
  list(options) {
7974
- return this.client.sendOperationRequest({ options }, listOperationSpec);
8504
+ return this.client.sendOperationRequest({ options }, listOperationSpec$c);
7975
8505
  }
7976
8506
  }
7977
8507
  // Operation Specifications
7978
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
7979
- const listOperationSpec = {
8508
+ const serializer$q = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8509
+ const listOperationSpec$c = {
7980
8510
  path: "/providers/Microsoft.Insights/operations",
7981
8511
  httpMethod: "GET",
7982
8512
  responses: {
@@ -7987,7 +8517,7 @@ const listOperationSpec = {
7987
8517
  queryParameters: [apiVersion],
7988
8518
  urlParameters: [$host],
7989
8519
  headerParameters: [accept],
7990
- serializer: serializer$1
8520
+ serializer: serializer$q
7991
8521
  };
7992
8522
 
7993
8523
  /*
@@ -8059,7 +8589,7 @@ class AlertRuleIncidentsImpl {
8059
8589
  * @param options The options parameters.
8060
8590
  */
8061
8591
  get(resourceGroupName, ruleName, incidentName, options) {
8062
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, incidentName, options }, getOperationSpec$1);
8592
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, incidentName, options }, getOperationSpec$g);
8063
8593
  }
8064
8594
  /**
8065
8595
  * Gets a list of incidents associated to an alert rule
@@ -8072,8 +8602,8 @@ class AlertRuleIncidentsImpl {
8072
8602
  }
8073
8603
  }
8074
8604
  // Operation Specifications
8075
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
8076
- const getOperationSpec$1 = {
8605
+ const serializer$p = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8606
+ const getOperationSpec$g = {
8077
8607
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents/{incidentName}",
8078
8608
  httpMethod: "GET",
8079
8609
  responses: {
@@ -8093,7 +8623,7 @@ const getOperationSpec$1 = {
8093
8623
  incidentName
8094
8624
  ],
8095
8625
  headerParameters: [accept],
8096
- serializer: serializer$2
8626
+ serializer: serializer$p
8097
8627
  };
8098
8628
  const listByAlertRuleOperationSpec = {
8099
8629
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents",
@@ -8111,7 +8641,7 @@ const listByAlertRuleOperationSpec = {
8111
8641
  ruleName
8112
8642
  ],
8113
8643
  headerParameters: [accept],
8114
- serializer: serializer$2
8644
+ serializer: serializer$p
8115
8645
  };
8116
8646
 
8117
8647
  /*
@@ -8224,7 +8754,7 @@ class AlertRulesImpl {
8224
8754
  * @param options The options parameters.
8225
8755
  */
8226
8756
  createOrUpdate(resourceGroupName, ruleName, parameters, options) {
8227
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, createOrUpdateOperationSpec$1);
8757
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, createOrUpdateOperationSpec$9);
8228
8758
  }
8229
8759
  /**
8230
8760
  * Deletes a classic metric alert rule
@@ -8233,7 +8763,7 @@ class AlertRulesImpl {
8233
8763
  * @param options The options parameters.
8234
8764
  */
8235
8765
  delete(resourceGroupName, ruleName, options) {
8236
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$1);
8766
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$c);
8237
8767
  }
8238
8768
  /**
8239
8769
  * Gets a classic metric alert rule
@@ -8242,7 +8772,7 @@ class AlertRulesImpl {
8242
8772
  * @param options The options parameters.
8243
8773
  */
8244
8774
  get(resourceGroupName, ruleName, options) {
8245
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$2);
8775
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$f);
8246
8776
  }
8247
8777
  /**
8248
8778
  * Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate
@@ -8253,7 +8783,7 @@ class AlertRulesImpl {
8253
8783
  * @param options The options parameters.
8254
8784
  */
8255
8785
  update(resourceGroupName, ruleName, alertRulesResource, options) {
8256
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, alertRulesResource, options }, updateOperationSpec$1);
8786
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, alertRulesResource, options }, updateOperationSpec$7);
8257
8787
  }
8258
8788
  /**
8259
8789
  * List the classic metric alert rules within a resource group.
@@ -8261,19 +8791,19 @@ class AlertRulesImpl {
8261
8791
  * @param options The options parameters.
8262
8792
  */
8263
8793
  _listByResourceGroup(resourceGroupName, options) {
8264
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
8794
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$7);
8265
8795
  }
8266
8796
  /**
8267
8797
  * List the classic metric alert rules within a subscription.
8268
8798
  * @param options The options parameters.
8269
8799
  */
8270
8800
  _listBySubscription(options) {
8271
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
8801
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$4);
8272
8802
  }
8273
8803
  }
8274
8804
  // Operation Specifications
8275
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
8276
- const createOrUpdateOperationSpec$1 = {
8805
+ const serializer$o = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8806
+ const createOrUpdateOperationSpec$9 = {
8277
8807
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}",
8278
8808
  httpMethod: "PUT",
8279
8809
  responses: {
@@ -8297,9 +8827,9 @@ const createOrUpdateOperationSpec$1 = {
8297
8827
  ],
8298
8828
  headerParameters: [accept, contentType],
8299
8829
  mediaType: "json",
8300
- serializer: serializer$3
8830
+ serializer: serializer$o
8301
8831
  };
8302
- const deleteOperationSpec$1 = {
8832
+ const deleteOperationSpec$c = {
8303
8833
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}",
8304
8834
  httpMethod: "DELETE",
8305
8835
  responses: {
@@ -8317,9 +8847,9 @@ const deleteOperationSpec$1 = {
8317
8847
  ruleName
8318
8848
  ],
8319
8849
  headerParameters: [accept],
8320
- serializer: serializer$3
8850
+ serializer: serializer$o
8321
8851
  };
8322
- const getOperationSpec$2 = {
8852
+ const getOperationSpec$f = {
8323
8853
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}",
8324
8854
  httpMethod: "GET",
8325
8855
  responses: {
@@ -8338,9 +8868,9 @@ const getOperationSpec$2 = {
8338
8868
  ruleName
8339
8869
  ],
8340
8870
  headerParameters: [accept],
8341
- serializer: serializer$3
8871
+ serializer: serializer$o
8342
8872
  };
8343
- const updateOperationSpec$1 = {
8873
+ const updateOperationSpec$7 = {
8344
8874
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}",
8345
8875
  httpMethod: "PATCH",
8346
8876
  responses: {
@@ -8364,9 +8894,9 @@ const updateOperationSpec$1 = {
8364
8894
  ],
8365
8895
  headerParameters: [accept, contentType],
8366
8896
  mediaType: "json",
8367
- serializer: serializer$3
8897
+ serializer: serializer$o
8368
8898
  };
8369
- const listByResourceGroupOperationSpec$1 = {
8899
+ const listByResourceGroupOperationSpec$7 = {
8370
8900
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules",
8371
8901
  httpMethod: "GET",
8372
8902
  responses: {
@@ -8384,9 +8914,9 @@ const listByResourceGroupOperationSpec$1 = {
8384
8914
  subscriptionId
8385
8915
  ],
8386
8916
  headerParameters: [accept],
8387
- serializer: serializer$3
8917
+ serializer: serializer$o
8388
8918
  };
8389
- const listBySubscriptionOperationSpec$1 = {
8919
+ const listBySubscriptionOperationSpec$4 = {
8390
8920
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules",
8391
8921
  httpMethod: "GET",
8392
8922
  responses: {
@@ -8400,7 +8930,7 @@ const listBySubscriptionOperationSpec$1 = {
8400
8930
  queryParameters: [apiVersion1],
8401
8931
  urlParameters: [$host, subscriptionId],
8402
8932
  headerParameters: [accept],
8403
- serializer: serializer$3
8933
+ serializer: serializer$o
8404
8934
  };
8405
8935
 
8406
8936
  /*
@@ -8468,7 +8998,7 @@ class LogProfilesImpl {
8468
8998
  * @param options The options parameters.
8469
8999
  */
8470
9000
  delete(logProfileName, options) {
8471
- return this.client.sendOperationRequest({ logProfileName, options }, deleteOperationSpec$2);
9001
+ return this.client.sendOperationRequest({ logProfileName, options }, deleteOperationSpec$b);
8472
9002
  }
8473
9003
  /**
8474
9004
  * Gets the log profile.
@@ -8476,7 +9006,7 @@ class LogProfilesImpl {
8476
9006
  * @param options The options parameters.
8477
9007
  */
8478
9008
  get(logProfileName, options) {
8479
- return this.client.sendOperationRequest({ logProfileName, options }, getOperationSpec$3);
9009
+ return this.client.sendOperationRequest({ logProfileName, options }, getOperationSpec$e);
8480
9010
  }
8481
9011
  /**
8482
9012
  * Create or update a log profile in Azure Monitoring REST API.
@@ -8485,7 +9015,7 @@ class LogProfilesImpl {
8485
9015
  * @param options The options parameters.
8486
9016
  */
8487
9017
  createOrUpdate(logProfileName, parameters, options) {
8488
- return this.client.sendOperationRequest({ logProfileName, parameters, options }, createOrUpdateOperationSpec$2);
9018
+ return this.client.sendOperationRequest({ logProfileName, parameters, options }, createOrUpdateOperationSpec$8);
8489
9019
  }
8490
9020
  /**
8491
9021
  * Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.
@@ -8494,19 +9024,19 @@ class LogProfilesImpl {
8494
9024
  * @param options The options parameters.
8495
9025
  */
8496
9026
  update(logProfileName, logProfilesResource, options) {
8497
- return this.client.sendOperationRequest({ logProfileName, logProfilesResource, options }, updateOperationSpec$2);
9027
+ return this.client.sendOperationRequest({ logProfileName, logProfilesResource, options }, updateOperationSpec$6);
8498
9028
  }
8499
9029
  /**
8500
9030
  * List the log profiles.
8501
9031
  * @param options The options parameters.
8502
9032
  */
8503
9033
  _list(options) {
8504
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
9034
+ return this.client.sendOperationRequest({ options }, listOperationSpec$b);
8505
9035
  }
8506
9036
  }
8507
9037
  // Operation Specifications
8508
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
8509
- const deleteOperationSpec$2 = {
9038
+ const serializer$n = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9039
+ const deleteOperationSpec$b = {
8510
9040
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}",
8511
9041
  httpMethod: "DELETE",
8512
9042
  responses: { 200: {} },
@@ -8516,9 +9046,9 @@ const deleteOperationSpec$2 = {
8516
9046
  subscriptionId,
8517
9047
  logProfileName
8518
9048
  ],
8519
- serializer: serializer$4
9049
+ serializer: serializer$n
8520
9050
  };
8521
- const getOperationSpec$3 = {
9051
+ const getOperationSpec$e = {
8522
9052
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}",
8523
9053
  httpMethod: "GET",
8524
9054
  responses: {
@@ -8536,9 +9066,9 @@ const getOperationSpec$3 = {
8536
9066
  logProfileName
8537
9067
  ],
8538
9068
  headerParameters: [accept],
8539
- serializer: serializer$4
9069
+ serializer: serializer$n
8540
9070
  };
8541
- const createOrUpdateOperationSpec$2 = {
9071
+ const createOrUpdateOperationSpec$8 = {
8542
9072
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}",
8543
9073
  httpMethod: "PUT",
8544
9074
  responses: {
@@ -8555,9 +9085,9 @@ const createOrUpdateOperationSpec$2 = {
8555
9085
  ],
8556
9086
  headerParameters: [accept, contentType],
8557
9087
  mediaType: "json",
8558
- serializer: serializer$4
9088
+ serializer: serializer$n
8559
9089
  };
8560
- const updateOperationSpec$2 = {
9090
+ const updateOperationSpec$6 = {
8561
9091
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}",
8562
9092
  httpMethod: "PATCH",
8563
9093
  responses: {
@@ -8577,9 +9107,9 @@ const updateOperationSpec$2 = {
8577
9107
  ],
8578
9108
  headerParameters: [accept, contentType],
8579
9109
  mediaType: "json",
8580
- serializer: serializer$4
9110
+ serializer: serializer$n
8581
9111
  };
8582
- const listOperationSpec$1 = {
9112
+ const listOperationSpec$b = {
8583
9113
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles",
8584
9114
  httpMethod: "GET",
8585
9115
  responses: {
@@ -8590,7 +9120,7 @@ const listOperationSpec$1 = {
8590
9120
  queryParameters: [apiVersion1],
8591
9121
  urlParameters: [$host, subscriptionId],
8592
9122
  headerParameters: [accept],
8593
- serializer: serializer$4
9123
+ serializer: serializer$n
8594
9124
  };
8595
9125
 
8596
9126
  /*
@@ -8616,7 +9146,7 @@ class DiagnosticSettingsImpl {
8616
9146
  * @param options The options parameters.
8617
9147
  */
8618
9148
  get(resourceUri, name, options) {
8619
- return this.client.sendOperationRequest({ resourceUri, name, options }, getOperationSpec$4);
9149
+ return this.client.sendOperationRequest({ resourceUri, name, options }, getOperationSpec$d);
8620
9150
  }
8621
9151
  /**
8622
9152
  * Creates or updates diagnostic settings for the specified resource.
@@ -8626,7 +9156,7 @@ class DiagnosticSettingsImpl {
8626
9156
  * @param options The options parameters.
8627
9157
  */
8628
9158
  createOrUpdate(resourceUri, name, parameters, options) {
8629
- return this.client.sendOperationRequest({ resourceUri, name, parameters, options }, createOrUpdateOperationSpec$3);
9159
+ return this.client.sendOperationRequest({ resourceUri, name, parameters, options }, createOrUpdateOperationSpec$7);
8630
9160
  }
8631
9161
  /**
8632
9162
  * Deletes existing diagnostic settings for the specified resource.
@@ -8635,7 +9165,7 @@ class DiagnosticSettingsImpl {
8635
9165
  * @param options The options parameters.
8636
9166
  */
8637
9167
  delete(resourceUri, name, options) {
8638
- return this.client.sendOperationRequest({ resourceUri, name, options }, deleteOperationSpec$3);
9168
+ return this.client.sendOperationRequest({ resourceUri, name, options }, deleteOperationSpec$a);
8639
9169
  }
8640
9170
  /**
8641
9171
  * Gets the active diagnostic settings list for the specified resource.
@@ -8643,12 +9173,12 @@ class DiagnosticSettingsImpl {
8643
9173
  * @param options The options parameters.
8644
9174
  */
8645
9175
  list(resourceUri, options) {
8646
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$2);
9176
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$a);
8647
9177
  }
8648
9178
  }
8649
9179
  // Operation Specifications
8650
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
8651
- const getOperationSpec$4 = {
9180
+ const serializer$m = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9181
+ const getOperationSpec$d = {
8652
9182
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
8653
9183
  httpMethod: "GET",
8654
9184
  responses: {
@@ -8662,9 +9192,9 @@ const getOperationSpec$4 = {
8662
9192
  queryParameters: [apiVersion2],
8663
9193
  urlParameters: [$host, resourceUri, name],
8664
9194
  headerParameters: [accept],
8665
- serializer: serializer$5
9195
+ serializer: serializer$m
8666
9196
  };
8667
- const createOrUpdateOperationSpec$3 = {
9197
+ const createOrUpdateOperationSpec$7 = {
8668
9198
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
8669
9199
  httpMethod: "PUT",
8670
9200
  responses: {
@@ -8680,9 +9210,9 @@ const createOrUpdateOperationSpec$3 = {
8680
9210
  urlParameters: [$host, resourceUri, name],
8681
9211
  headerParameters: [accept, contentType],
8682
9212
  mediaType: "json",
8683
- serializer: serializer$5
9213
+ serializer: serializer$m
8684
9214
  };
8685
- const deleteOperationSpec$3 = {
9215
+ const deleteOperationSpec$a = {
8686
9216
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
8687
9217
  httpMethod: "DELETE",
8688
9218
  responses: {
@@ -8695,9 +9225,9 @@ const deleteOperationSpec$3 = {
8695
9225
  queryParameters: [apiVersion2],
8696
9226
  urlParameters: [$host, resourceUri, name],
8697
9227
  headerParameters: [accept],
8698
- serializer: serializer$5
9228
+ serializer: serializer$m
8699
9229
  };
8700
- const listOperationSpec$2 = {
9230
+ const listOperationSpec$a = {
8701
9231
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings",
8702
9232
  httpMethod: "GET",
8703
9233
  responses: {
@@ -8711,7 +9241,7 @@ const listOperationSpec$2 = {
8711
9241
  queryParameters: [apiVersion2],
8712
9242
  urlParameters: [$host, resourceUri],
8713
9243
  headerParameters: [accept],
8714
- serializer: serializer$5
9244
+ serializer: serializer$m
8715
9245
  };
8716
9246
 
8717
9247
  /*
@@ -8737,7 +9267,7 @@ class DiagnosticSettingsCategoryImpl {
8737
9267
  * @param options The options parameters.
8738
9268
  */
8739
9269
  get(resourceUri, name, options) {
8740
- return this.client.sendOperationRequest({ resourceUri, name, options }, getOperationSpec$5);
9270
+ return this.client.sendOperationRequest({ resourceUri, name, options }, getOperationSpec$c);
8741
9271
  }
8742
9272
  /**
8743
9273
  * Lists the diagnostic settings categories for the specified resource.
@@ -8745,12 +9275,12 @@ class DiagnosticSettingsCategoryImpl {
8745
9275
  * @param options The options parameters.
8746
9276
  */
8747
9277
  list(resourceUri, options) {
8748
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$3);
9278
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$9);
8749
9279
  }
8750
9280
  }
8751
9281
  // Operation Specifications
8752
- const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
8753
- const getOperationSpec$5 = {
9282
+ const serializer$l = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9283
+ const getOperationSpec$c = {
8754
9284
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}",
8755
9285
  httpMethod: "GET",
8756
9286
  responses: {
@@ -8764,9 +9294,9 @@ const getOperationSpec$5 = {
8764
9294
  queryParameters: [apiVersion2],
8765
9295
  urlParameters: [$host, resourceUri, name],
8766
9296
  headerParameters: [accept],
8767
- serializer: serializer$6
9297
+ serializer: serializer$l
8768
9298
  };
8769
- const listOperationSpec$3 = {
9299
+ const listOperationSpec$9 = {
8770
9300
  path: "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories",
8771
9301
  httpMethod: "GET",
8772
9302
  responses: {
@@ -8780,7 +9310,7 @@ const listOperationSpec$3 = {
8780
9310
  queryParameters: [apiVersion2],
8781
9311
  urlParameters: [$host, resourceUri],
8782
9312
  headerParameters: [accept],
8783
- serializer: serializer$6
9313
+ serializer: serializer$l
8784
9314
  };
8785
9315
 
8786
9316
  /*
@@ -8921,7 +9451,7 @@ class ActionGroupsImpl {
8921
9451
  * @param options The options parameters.
8922
9452
  */
8923
9453
  createOrUpdate(resourceGroupName, actionGroupName, actionGroup, options) {
8924
- return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, actionGroup, options }, createOrUpdateOperationSpec$4);
9454
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, actionGroup, options }, createOrUpdateOperationSpec$6);
8925
9455
  }
8926
9456
  /**
8927
9457
  * Get an action group.
@@ -8930,7 +9460,7 @@ class ActionGroupsImpl {
8930
9460
  * @param options The options parameters.
8931
9461
  */
8932
9462
  get(resourceGroupName, actionGroupName, options) {
8933
- return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, options }, getOperationSpec$6);
9463
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, options }, getOperationSpec$b);
8934
9464
  }
8935
9465
  /**
8936
9466
  * Delete an action group.
@@ -8939,7 +9469,7 @@ class ActionGroupsImpl {
8939
9469
  * @param options The options parameters.
8940
9470
  */
8941
9471
  delete(resourceGroupName, actionGroupName, options) {
8942
- return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, options }, deleteOperationSpec$4);
9472
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, options }, deleteOperationSpec$9);
8943
9473
  }
8944
9474
  /**
8945
9475
  * Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
@@ -8949,7 +9479,7 @@ class ActionGroupsImpl {
8949
9479
  * @param options The options parameters.
8950
9480
  */
8951
9481
  update(resourceGroupName, actionGroupName, actionGroupPatch, options) {
8952
- return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, actionGroupPatch, options }, updateOperationSpec$3);
9482
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, actionGroupPatch, options }, updateOperationSpec$5);
8953
9483
  }
8954
9484
  /**
8955
9485
  * Send test notifications to a set of provided receivers
@@ -8981,11 +9511,13 @@ class ActionGroupsImpl {
8981
9511
  };
8982
9512
  });
8983
9513
  const lro = new LroImpl(sendOperation, { notificationRequest, options }, postTestNotificationsOperationSpec);
8984
- return new coreLro.LroEngine(lro, {
9514
+ const poller = new coreLro.LroEngine(lro, {
8985
9515
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8986
9516
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8987
9517
  lroResourceLocationConfig: "location"
8988
9518
  });
9519
+ yield poller.poll();
9520
+ return poller;
8989
9521
  });
8990
9522
  }
8991
9523
  /**
@@ -8999,6 +9531,112 @@ class ActionGroupsImpl {
8999
9531
  return poller.pollUntilDone();
9000
9532
  });
9001
9533
  }
9534
+ /**
9535
+ * Send test notifications to a set of provided receivers
9536
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9537
+ * @param notificationRequest The notification request body which includes the contact details
9538
+ * @param options The options parameters.
9539
+ */
9540
+ beginCreateNotificationsAtResourceGroupLevel(resourceGroupName, notificationRequest, options) {
9541
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9542
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9543
+ return this.client.sendOperationRequest(args, spec);
9544
+ });
9545
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9546
+ var _a;
9547
+ let currentRawResponse = undefined;
9548
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9549
+ const callback = (rawResponse, flatResponse) => {
9550
+ currentRawResponse = rawResponse;
9551
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9552
+ };
9553
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9554
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
9555
+ return {
9556
+ flatResponse,
9557
+ rawResponse: {
9558
+ statusCode: currentRawResponse.status,
9559
+ body: currentRawResponse.parsedBody,
9560
+ headers: currentRawResponse.headers.toJSON()
9561
+ }
9562
+ };
9563
+ });
9564
+ const lro = new LroImpl(sendOperation, { resourceGroupName, notificationRequest, options }, createNotificationsAtResourceGroupLevelOperationSpec);
9565
+ const poller = new coreLro.LroEngine(lro, {
9566
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9567
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9568
+ lroResourceLocationConfig: "location"
9569
+ });
9570
+ yield poller.poll();
9571
+ return poller;
9572
+ });
9573
+ }
9574
+ /**
9575
+ * Send test notifications to a set of provided receivers
9576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9577
+ * @param notificationRequest The notification request body which includes the contact details
9578
+ * @param options The options parameters.
9579
+ */
9580
+ beginCreateNotificationsAtResourceGroupLevelAndWait(resourceGroupName, notificationRequest, options) {
9581
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9582
+ const poller = yield this.beginCreateNotificationsAtResourceGroupLevel(resourceGroupName, notificationRequest, options);
9583
+ return poller.pollUntilDone();
9584
+ });
9585
+ }
9586
+ /**
9587
+ * Send test notifications to a set of provided receivers
9588
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9589
+ * @param actionGroupName The name of the action group.
9590
+ * @param notificationRequest The notification request body which includes the contact details
9591
+ * @param options The options parameters.
9592
+ */
9593
+ beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options) {
9594
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9595
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9596
+ return this.client.sendOperationRequest(args, spec);
9597
+ });
9598
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9599
+ var _a;
9600
+ let currentRawResponse = undefined;
9601
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9602
+ const callback = (rawResponse, flatResponse) => {
9603
+ currentRawResponse = rawResponse;
9604
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9605
+ };
9606
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9607
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
9608
+ return {
9609
+ flatResponse,
9610
+ rawResponse: {
9611
+ statusCode: currentRawResponse.status,
9612
+ body: currentRawResponse.parsedBody,
9613
+ headers: currentRawResponse.headers.toJSON()
9614
+ }
9615
+ };
9616
+ });
9617
+ const lro = new LroImpl(sendOperation, { resourceGroupName, actionGroupName, notificationRequest, options }, createNotificationsAtActionGroupResourceLevelOperationSpec);
9618
+ const poller = new coreLro.LroEngine(lro, {
9619
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9620
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9621
+ lroResourceLocationConfig: "location"
9622
+ });
9623
+ yield poller.poll();
9624
+ return poller;
9625
+ });
9626
+ }
9627
+ /**
9628
+ * Send test notifications to a set of provided receivers
9629
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9630
+ * @param actionGroupName The name of the action group.
9631
+ * @param notificationRequest The notification request body which includes the contact details
9632
+ * @param options The options parameters.
9633
+ */
9634
+ beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName, actionGroupName, notificationRequest, options) {
9635
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9636
+ const poller = yield this.beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options);
9637
+ return poller.pollUntilDone();
9638
+ });
9639
+ }
9002
9640
  /**
9003
9641
  * Get the test notifications by the notification id
9004
9642
  * @param notificationId The notification id
@@ -9007,12 +9645,31 @@ class ActionGroupsImpl {
9007
9645
  getTestNotifications(notificationId, options) {
9008
9646
  return this.client.sendOperationRequest({ notificationId, options }, getTestNotificationsOperationSpec);
9009
9647
  }
9648
+ /**
9649
+ * Get the test notifications by the notification id
9650
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9651
+ * @param notificationId The notification id
9652
+ * @param options The options parameters.
9653
+ */
9654
+ getTestNotificationsAtResourceGroupLevel(resourceGroupName, notificationId, options) {
9655
+ return this.client.sendOperationRequest({ resourceGroupName, notificationId, options }, getTestNotificationsAtResourceGroupLevelOperationSpec);
9656
+ }
9657
+ /**
9658
+ * Get the test notifications by the notification id
9659
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9660
+ * @param actionGroupName The name of the action group.
9661
+ * @param notificationId The notification id
9662
+ * @param options The options parameters.
9663
+ */
9664
+ getTestNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationId, options) {
9665
+ return this.client.sendOperationRequest({ resourceGroupName, actionGroupName, notificationId, options }, getTestNotificationsAtActionGroupResourceLevelOperationSpec);
9666
+ }
9010
9667
  /**
9011
9668
  * Get a list of all action groups in a subscription.
9012
9669
  * @param options The options parameters.
9013
9670
  */
9014
9671
  _listBySubscriptionId(options) {
9015
- return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
9672
+ return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec$1);
9016
9673
  }
9017
9674
  /**
9018
9675
  * Get a list of all action groups in a resource group.
@@ -9020,7 +9677,7 @@ class ActionGroupsImpl {
9020
9677
  * @param options The options parameters.
9021
9678
  */
9022
9679
  _listByResourceGroup(resourceGroupName, options) {
9023
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
9680
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$6);
9024
9681
  }
9025
9682
  /**
9026
9683
  * Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.
@@ -9035,8 +9692,8 @@ class ActionGroupsImpl {
9035
9692
  }
9036
9693
  }
9037
9694
  // Operation Specifications
9038
- const serializer$7 = coreClient.createSerializer(Mappers, /* isXml */ false);
9039
- const createOrUpdateOperationSpec$4 = {
9695
+ const serializer$k = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9696
+ const createOrUpdateOperationSpec$6 = {
9040
9697
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}",
9041
9698
  httpMethod: "PUT",
9042
9699
  responses: {
@@ -9060,9 +9717,9 @@ const createOrUpdateOperationSpec$4 = {
9060
9717
  ],
9061
9718
  headerParameters: [accept, contentType],
9062
9719
  mediaType: "json",
9063
- serializer: serializer$7
9720
+ serializer: serializer$k
9064
9721
  };
9065
- const getOperationSpec$6 = {
9722
+ const getOperationSpec$b = {
9066
9723
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}",
9067
9724
  httpMethod: "GET",
9068
9725
  responses: {
@@ -9081,9 +9738,9 @@ const getOperationSpec$6 = {
9081
9738
  actionGroupName
9082
9739
  ],
9083
9740
  headerParameters: [accept],
9084
- serializer: serializer$7
9741
+ serializer: serializer$k
9085
9742
  };
9086
- const deleteOperationSpec$4 = {
9743
+ const deleteOperationSpec$9 = {
9087
9744
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}",
9088
9745
  httpMethod: "DELETE",
9089
9746
  responses: {
@@ -9101,9 +9758,9 @@ const deleteOperationSpec$4 = {
9101
9758
  actionGroupName
9102
9759
  ],
9103
9760
  headerParameters: [accept],
9104
- serializer: serializer$7
9761
+ serializer: serializer$k
9105
9762
  };
9106
- const updateOperationSpec$3 = {
9763
+ const updateOperationSpec$5 = {
9107
9764
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}",
9108
9765
  httpMethod: "PATCH",
9109
9766
  responses: {
@@ -9124,23 +9781,23 @@ const updateOperationSpec$3 = {
9124
9781
  ],
9125
9782
  headerParameters: [accept, contentType],
9126
9783
  mediaType: "json",
9127
- serializer: serializer$7
9784
+ serializer: serializer$k
9128
9785
  };
9129
9786
  const postTestNotificationsOperationSpec = {
9130
9787
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/createNotifications",
9131
9788
  httpMethod: "POST",
9132
9789
  responses: {
9133
9790
  200: {
9134
- bodyMapper: TestNotificationResponse
9791
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9135
9792
  },
9136
9793
  201: {
9137
- bodyMapper: TestNotificationResponse
9794
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9138
9795
  },
9139
9796
  202: {
9140
- bodyMapper: TestNotificationResponse
9797
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9141
9798
  },
9142
9799
  204: {
9143
- bodyMapper: TestNotificationResponse
9800
+ headersMapper: ActionGroupsPostTestNotificationsHeaders
9144
9801
  },
9145
9802
  default: {
9146
9803
  bodyMapper: ErrorResponse
@@ -9151,18 +9808,81 @@ const postTestNotificationsOperationSpec = {
9151
9808
  urlParameters: [$host, subscriptionId],
9152
9809
  headerParameters: [accept, contentType],
9153
9810
  mediaType: "json",
9154
- serializer: serializer$7
9811
+ serializer: serializer$k
9155
9812
  };
9156
- const getTestNotificationsOperationSpec = {
9157
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/notificationStatus/{notificationId}",
9158
- httpMethod: "GET",
9813
+ const createNotificationsAtResourceGroupLevelOperationSpec = {
9814
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/createNotifications",
9815
+ httpMethod: "POST",
9159
9816
  responses: {
9160
9817
  200: {
9161
- bodyMapper: TestNotificationDetailsResponse
9818
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9162
9819
  },
9163
- default: {
9164
- bodyMapper: ErrorResponse
9165
- }
9820
+ 201: {
9821
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9822
+ },
9823
+ 202: {
9824
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9825
+ },
9826
+ 204: {
9827
+ headersMapper: ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders
9828
+ },
9829
+ default: {
9830
+ bodyMapper: ErrorResponse
9831
+ }
9832
+ },
9833
+ requestBody: notificationRequest,
9834
+ queryParameters: [apiVersion3],
9835
+ urlParameters: [
9836
+ $host,
9837
+ resourceGroupName,
9838
+ subscriptionId
9839
+ ],
9840
+ headerParameters: [accept, contentType],
9841
+ mediaType: "json",
9842
+ serializer: serializer$k
9843
+ };
9844
+ const createNotificationsAtActionGroupResourceLevelOperationSpec = {
9845
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/createNotifications",
9846
+ httpMethod: "POST",
9847
+ responses: {
9848
+ 200: {
9849
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9850
+ },
9851
+ 201: {
9852
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9853
+ },
9854
+ 202: {
9855
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9856
+ },
9857
+ 204: {
9858
+ headersMapper: ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders
9859
+ },
9860
+ default: {
9861
+ bodyMapper: ErrorResponse
9862
+ }
9863
+ },
9864
+ requestBody: notificationRequest,
9865
+ queryParameters: [apiVersion3],
9866
+ urlParameters: [
9867
+ $host,
9868
+ resourceGroupName,
9869
+ subscriptionId,
9870
+ actionGroupName
9871
+ ],
9872
+ headerParameters: [accept, contentType],
9873
+ mediaType: "json",
9874
+ serializer: serializer$k
9875
+ };
9876
+ const getTestNotificationsOperationSpec = {
9877
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/notificationStatus/{notificationId}",
9878
+ httpMethod: "GET",
9879
+ responses: {
9880
+ 200: {
9881
+ bodyMapper: TestNotificationDetailsResponse
9882
+ },
9883
+ default: {
9884
+ bodyMapper: ErrorResponse
9885
+ }
9166
9886
  },
9167
9887
  queryParameters: [apiVersion3],
9168
9888
  urlParameters: [
@@ -9171,9 +9891,52 @@ const getTestNotificationsOperationSpec = {
9171
9891
  notificationId
9172
9892
  ],
9173
9893
  headerParameters: [accept],
9174
- serializer: serializer$7
9894
+ serializer: serializer$k
9175
9895
  };
9176
- const listBySubscriptionIdOperationSpec = {
9896
+ const getTestNotificationsAtResourceGroupLevelOperationSpec = {
9897
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/notificationStatus/{notificationId}",
9898
+ httpMethod: "GET",
9899
+ responses: {
9900
+ 200: {
9901
+ bodyMapper: TestNotificationDetailsResponse
9902
+ },
9903
+ default: {
9904
+ bodyMapper: ErrorResponse
9905
+ }
9906
+ },
9907
+ queryParameters: [apiVersion3],
9908
+ urlParameters: [
9909
+ $host,
9910
+ resourceGroupName,
9911
+ subscriptionId,
9912
+ notificationId
9913
+ ],
9914
+ headerParameters: [accept],
9915
+ serializer: serializer$k
9916
+ };
9917
+ const getTestNotificationsAtActionGroupResourceLevelOperationSpec = {
9918
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/notificationStatus/{notificationId}",
9919
+ httpMethod: "GET",
9920
+ responses: {
9921
+ 200: {
9922
+ bodyMapper: TestNotificationDetailsResponse
9923
+ },
9924
+ default: {
9925
+ bodyMapper: ErrorResponse
9926
+ }
9927
+ },
9928
+ queryParameters: [apiVersion3],
9929
+ urlParameters: [
9930
+ $host,
9931
+ resourceGroupName,
9932
+ subscriptionId,
9933
+ actionGroupName,
9934
+ notificationId
9935
+ ],
9936
+ headerParameters: [accept],
9937
+ serializer: serializer$k
9938
+ };
9939
+ const listBySubscriptionIdOperationSpec$1 = {
9177
9940
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups",
9178
9941
  httpMethod: "GET",
9179
9942
  responses: {
@@ -9187,9 +9950,9 @@ const listBySubscriptionIdOperationSpec = {
9187
9950
  queryParameters: [apiVersion3],
9188
9951
  urlParameters: [$host, subscriptionId],
9189
9952
  headerParameters: [accept],
9190
- serializer: serializer$7
9953
+ serializer: serializer$k
9191
9954
  };
9192
- const listByResourceGroupOperationSpec$2 = {
9955
+ const listByResourceGroupOperationSpec$6 = {
9193
9956
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups",
9194
9957
  httpMethod: "GET",
9195
9958
  responses: {
@@ -9207,7 +9970,7 @@ const listByResourceGroupOperationSpec$2 = {
9207
9970
  subscriptionId
9208
9971
  ],
9209
9972
  headerParameters: [accept],
9210
- serializer: serializer$7
9973
+ serializer: serializer$k
9211
9974
  };
9212
9975
  const enableReceiverOperationSpec = {
9213
9976
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/subscribe",
@@ -9231,7 +9994,7 @@ const enableReceiverOperationSpec = {
9231
9994
  ],
9232
9995
  headerParameters: [accept, contentType],
9233
9996
  mediaType: "json",
9234
- serializer: serializer$7
9997
+ serializer: serializer$k
9235
9998
  };
9236
9999
 
9237
10000
  /*
@@ -9330,7 +10093,7 @@ class ActivityLogsImpl {
9330
10093
  * @param options The options parameters.
9331
10094
  */
9332
10095
  _list(filter, options) {
9333
- return this.client.sendOperationRequest({ filter, options }, listOperationSpec$4);
10096
+ return this.client.sendOperationRequest({ filter, options }, listOperationSpec$8);
9334
10097
  }
9335
10098
  /**
9336
10099
  * ListNext
@@ -9351,12 +10114,12 @@ class ActivityLogsImpl {
9351
10114
  * @param options The options parameters.
9352
10115
  */
9353
10116
  _listNext(filter, nextLink, options) {
9354
- return this.client.sendOperationRequest({ filter, nextLink, options }, listNextOperationSpec);
10117
+ return this.client.sendOperationRequest({ filter, nextLink, options }, listNextOperationSpec$2);
9355
10118
  }
9356
10119
  }
9357
10120
  // Operation Specifications
9358
- const serializer$8 = coreClient.createSerializer(Mappers, /* isXml */ false);
9359
- const listOperationSpec$4 = {
10121
+ const serializer$j = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10122
+ const listOperationSpec$8 = {
9360
10123
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values",
9361
10124
  httpMethod: "GET",
9362
10125
  responses: {
@@ -9374,9 +10137,9 @@ const listOperationSpec$4 = {
9374
10137
  ],
9375
10138
  urlParameters: [$host, subscriptionId],
9376
10139
  headerParameters: [accept],
9377
- serializer: serializer$8
10140
+ serializer: serializer$j
9378
10141
  };
9379
- const listNextOperationSpec = {
10142
+ const listNextOperationSpec$2 = {
9380
10143
  path: "{nextLink}",
9381
10144
  httpMethod: "GET",
9382
10145
  responses: {
@@ -9398,7 +10161,7 @@ const listNextOperationSpec = {
9398
10161
  nextLink
9399
10162
  ],
9400
10163
  headerParameters: [accept],
9401
- serializer: serializer$8
10164
+ serializer: serializer$j
9402
10165
  };
9403
10166
 
9404
10167
  /*
@@ -9467,12 +10230,12 @@ class EventCategoriesImpl {
9467
10230
  * @param options The options parameters.
9468
10231
  */
9469
10232
  _list(options) {
9470
- return this.client.sendOperationRequest({ options }, listOperationSpec$5);
10233
+ return this.client.sendOperationRequest({ options }, listOperationSpec$7);
9471
10234
  }
9472
10235
  }
9473
10236
  // Operation Specifications
9474
- const serializer$9 = coreClient.createSerializer(Mappers, /* isXml */ false);
9475
- const listOperationSpec$5 = {
10237
+ const serializer$i = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10238
+ const listOperationSpec$7 = {
9476
10239
  path: "/providers/Microsoft.Insights/eventcategories",
9477
10240
  httpMethod: "GET",
9478
10241
  responses: {
@@ -9486,7 +10249,7 @@ const listOperationSpec$5 = {
9486
10249
  queryParameters: [apiVersion],
9487
10250
  urlParameters: [$host],
9488
10251
  headerParameters: [accept],
9489
- serializer: serializer$9
10252
+ serializer: serializer$i
9490
10253
  };
9491
10254
 
9492
10255
  /*
@@ -9577,7 +10340,7 @@ class TenantActivityLogsImpl {
9577
10340
  }
9578
10341
  }
9579
10342
  // Operation Specifications
9580
- const serializer$a = coreClient.createSerializer(Mappers, /* isXml */ false);
10343
+ const serializer$h = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9581
10344
  const listOperationSpec$6 = {
9582
10345
  path: "/providers/Microsoft.Insights/eventtypes/management/values",
9583
10346
  httpMethod: "GET",
@@ -9596,7 +10359,7 @@ const listOperationSpec$6 = {
9596
10359
  ],
9597
10360
  urlParameters: [$host],
9598
10361
  headerParameters: [accept],
9599
- serializer: serializer$a
10362
+ serializer: serializer$h
9600
10363
  };
9601
10364
  const listNextOperationSpec$1 = {
9602
10365
  path: "{nextLink}",
@@ -9616,7 +10379,7 @@ const listNextOperationSpec$1 = {
9616
10379
  ],
9617
10380
  urlParameters: [$host, nextLink],
9618
10381
  headerParameters: [accept],
9619
- serializer: serializer$a
10382
+ serializer: serializer$h
9620
10383
  };
9621
10384
 
9622
10385
  /*
@@ -9685,12 +10448,12 @@ class MetricDefinitionsImpl {
9685
10448
  * @param options The options parameters.
9686
10449
  */
9687
10450
  _list(resourceUri, options) {
9688
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$7);
10451
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$5);
9689
10452
  }
9690
10453
  }
9691
10454
  // Operation Specifications
9692
- const serializer$b = coreClient.createSerializer(Mappers, /* isXml */ false);
9693
- const listOperationSpec$7 = {
10455
+ const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10456
+ const listOperationSpec$5 = {
9694
10457
  path: "/{resourceUri}/providers/Microsoft.Insights/metricDefinitions",
9695
10458
  httpMethod: "GET",
9696
10459
  responses: {
@@ -9704,7 +10467,7 @@ const listOperationSpec$7 = {
9704
10467
  queryParameters: [apiVersion4, metricnamespace],
9705
10468
  urlParameters: [$host, resourceUri],
9706
10469
  headerParameters: [accept],
9707
- serializer: serializer$b
10470
+ serializer: serializer$g
9708
10471
  };
9709
10472
 
9710
10473
  /*
@@ -9729,12 +10492,12 @@ class MetricsImpl {
9729
10492
  * @param options The options parameters.
9730
10493
  */
9731
10494
  list(resourceUri, options) {
9732
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$8);
10495
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$4);
9733
10496
  }
9734
10497
  }
9735
10498
  // Operation Specifications
9736
- const serializer$c = coreClient.createSerializer(Mappers, /* isXml */ false);
9737
- const listOperationSpec$8 = {
10499
+ const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10500
+ const listOperationSpec$4 = {
9738
10501
  path: "/{resourceUri}/providers/Microsoft.Insights/metrics",
9739
10502
  httpMethod: "GET",
9740
10503
  responses: {
@@ -9759,7 +10522,7 @@ const listOperationSpec$8 = {
9759
10522
  ],
9760
10523
  urlParameters: [$host, resourceUri],
9761
10524
  headerParameters: [accept],
9762
- serializer: serializer$c
10525
+ serializer: serializer$f
9763
10526
  };
9764
10527
 
9765
10528
  /*
@@ -9828,12 +10591,12 @@ class BaselinesImpl {
9828
10591
  * @param options The options parameters.
9829
10592
  */
9830
10593
  _list(resourceUri, options) {
9831
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$9);
10594
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$3);
9832
10595
  }
9833
10596
  }
9834
10597
  // Operation Specifications
9835
- const serializer$d = coreClient.createSerializer(Mappers, /* isXml */ false);
9836
- const listOperationSpec$9 = {
10598
+ const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10599
+ const listOperationSpec$3 = {
9837
10600
  path: "/{resourceUri}/providers/Microsoft.Insights/metricBaselines",
9838
10601
  httpMethod: "GET",
9839
10602
  responses: {
@@ -9857,7 +10620,7 @@ const listOperationSpec$9 = {
9857
10620
  ],
9858
10621
  urlParameters: [$host, resourceUri],
9859
10622
  headerParameters: [accept],
9860
- serializer: serializer$d
10623
+ serializer: serializer$e
9861
10624
  };
9862
10625
 
9863
10626
  /*
@@ -9967,7 +10730,7 @@ class MetricAlertsImpl {
9967
10730
  * @param options The options parameters.
9968
10731
  */
9969
10732
  _listBySubscription(options) {
9970
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
10733
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$3);
9971
10734
  }
9972
10735
  /**
9973
10736
  * Retrieve alert rule definitions in a resource group.
@@ -9975,7 +10738,7 @@ class MetricAlertsImpl {
9975
10738
  * @param options The options parameters.
9976
10739
  */
9977
10740
  _listByResourceGroup(resourceGroupName, options) {
9978
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$3);
10741
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$5);
9979
10742
  }
9980
10743
  /**
9981
10744
  * Retrieve an alert rule definition.
@@ -9984,7 +10747,7 @@ class MetricAlertsImpl {
9984
10747
  * @param options The options parameters.
9985
10748
  */
9986
10749
  get(resourceGroupName, ruleName, options) {
9987
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$7);
10750
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$a);
9988
10751
  }
9989
10752
  /**
9990
10753
  * Create or update an metric alert definition.
@@ -10013,12 +10776,12 @@ class MetricAlertsImpl {
10013
10776
  * @param options The options parameters.
10014
10777
  */
10015
10778
  delete(resourceGroupName, ruleName, options) {
10016
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$5);
10779
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$8);
10017
10780
  }
10018
10781
  }
10019
10782
  // Operation Specifications
10020
- const serializer$e = coreClient.createSerializer(Mappers, /* isXml */ false);
10021
- const listBySubscriptionOperationSpec$2 = {
10783
+ const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10784
+ const listBySubscriptionOperationSpec$3 = {
10022
10785
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts",
10023
10786
  httpMethod: "GET",
10024
10787
  responses: {
@@ -10032,9 +10795,9 @@ const listBySubscriptionOperationSpec$2 = {
10032
10795
  queryParameters: [apiVersion6],
10033
10796
  urlParameters: [$host, subscriptionId],
10034
10797
  headerParameters: [accept],
10035
- serializer: serializer$e
10798
+ serializer: serializer$d
10036
10799
  };
10037
- const listByResourceGroupOperationSpec$3 = {
10800
+ const listByResourceGroupOperationSpec$5 = {
10038
10801
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts",
10039
10802
  httpMethod: "GET",
10040
10803
  responses: {
@@ -10052,9 +10815,9 @@ const listByResourceGroupOperationSpec$3 = {
10052
10815
  subscriptionId
10053
10816
  ],
10054
10817
  headerParameters: [accept],
10055
- serializer: serializer$e
10818
+ serializer: serializer$d
10056
10819
  };
10057
- const getOperationSpec$7 = {
10820
+ const getOperationSpec$a = {
10058
10821
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}",
10059
10822
  httpMethod: "GET",
10060
10823
  responses: {
@@ -10073,7 +10836,7 @@ const getOperationSpec$7 = {
10073
10836
  ruleName
10074
10837
  ],
10075
10838
  headerParameters: [accept],
10076
- serializer: serializer$e
10839
+ serializer: serializer$d
10077
10840
  };
10078
10841
  const createOrUpdateOperationSpec$5 = {
10079
10842
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}",
@@ -10096,7 +10859,7 @@ const createOrUpdateOperationSpec$5 = {
10096
10859
  ],
10097
10860
  headerParameters: [accept, contentType],
10098
10861
  mediaType: "json",
10099
- serializer: serializer$e
10862
+ serializer: serializer$d
10100
10863
  };
10101
10864
  const updateOperationSpec$4 = {
10102
10865
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}",
@@ -10119,9 +10882,9 @@ const updateOperationSpec$4 = {
10119
10882
  ],
10120
10883
  headerParameters: [accept, contentType],
10121
10884
  mediaType: "json",
10122
- serializer: serializer$e
10885
+ serializer: serializer$d
10123
10886
  };
10124
- const deleteOperationSpec$5 = {
10887
+ const deleteOperationSpec$8 = {
10125
10888
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}",
10126
10889
  httpMethod: "DELETE",
10127
10890
  responses: {
@@ -10139,7 +10902,7 @@ const deleteOperationSpec$5 = {
10139
10902
  ruleName
10140
10903
  ],
10141
10904
  headerParameters: [accept],
10142
- serializer: serializer$e
10905
+ serializer: serializer$d
10143
10906
  };
10144
10907
 
10145
10908
  /*
@@ -10165,7 +10928,7 @@ class MetricAlertsStatusImpl {
10165
10928
  * @param options The options parameters.
10166
10929
  */
10167
10930
  list(resourceGroupName, ruleName, options) {
10168
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, listOperationSpec$a);
10931
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, listOperationSpec$2);
10169
10932
  }
10170
10933
  /**
10171
10934
  * Retrieve an alert rule status.
@@ -10179,8 +10942,8 @@ class MetricAlertsStatusImpl {
10179
10942
  }
10180
10943
  }
10181
10944
  // Operation Specifications
10182
- const serializer$f = coreClient.createSerializer(Mappers, /* isXml */ false);
10183
- const listOperationSpec$a = {
10945
+ const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10946
+ const listOperationSpec$2 = {
10184
10947
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status",
10185
10948
  httpMethod: "GET",
10186
10949
  responses: {
@@ -10199,7 +10962,7 @@ const listOperationSpec$a = {
10199
10962
  ruleName
10200
10963
  ],
10201
10964
  headerParameters: [accept],
10202
- serializer: serializer$f
10965
+ serializer: serializer$c
10203
10966
  };
10204
10967
  const listByNameOperationSpec = {
10205
10968
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}",
@@ -10221,7 +10984,7 @@ const listByNameOperationSpec = {
10221
10984
  statusName
10222
10985
  ],
10223
10986
  headerParameters: [accept],
10224
- serializer: serializer$f
10987
+ serializer: serializer$c
10225
10988
  };
10226
10989
 
10227
10990
  /*
@@ -10334,7 +11097,7 @@ class ScheduledQueryRulesImpl {
10334
11097
  * @param options The options parameters.
10335
11098
  */
10336
11099
  createOrUpdate(resourceGroupName, ruleName, parameters, options) {
10337
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, createOrUpdateOperationSpec$6);
11100
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, createOrUpdateOperationSpec$4);
10338
11101
  }
10339
11102
  /**
10340
11103
  * Gets an Log Search rule
@@ -10343,7 +11106,7 @@ class ScheduledQueryRulesImpl {
10343
11106
  * @param options The options parameters.
10344
11107
  */
10345
11108
  get(resourceGroupName, ruleName, options) {
10346
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$8);
11109
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, getOperationSpec$9);
10347
11110
  }
10348
11111
  /**
10349
11112
  * Update log search Rule.
@@ -10353,7 +11116,7 @@ class ScheduledQueryRulesImpl {
10353
11116
  * @param options The options parameters.
10354
11117
  */
10355
11118
  update(resourceGroupName, ruleName, parameters, options) {
10356
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, updateOperationSpec$5);
11119
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, parameters, options }, updateOperationSpec$3);
10357
11120
  }
10358
11121
  /**
10359
11122
  * Deletes a Log Search rule
@@ -10362,14 +11125,14 @@ class ScheduledQueryRulesImpl {
10362
11125
  * @param options The options parameters.
10363
11126
  */
10364
11127
  delete(resourceGroupName, ruleName, options) {
10365
- return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$6);
11128
+ return this.client.sendOperationRequest({ resourceGroupName, ruleName, options }, deleteOperationSpec$7);
10366
11129
  }
10367
11130
  /**
10368
11131
  * List the Log Search rules within a subscription group.
10369
11132
  * @param options The options parameters.
10370
11133
  */
10371
11134
  _listBySubscription(options) {
10372
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$3);
11135
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
10373
11136
  }
10374
11137
  /**
10375
11138
  * List the Log Search rules within a resource group.
@@ -10381,8 +11144,8 @@ class ScheduledQueryRulesImpl {
10381
11144
  }
10382
11145
  }
10383
11146
  // Operation Specifications
10384
- const serializer$g = coreClient.createSerializer(Mappers, /* isXml */ false);
10385
- const createOrUpdateOperationSpec$6 = {
11147
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11148
+ const createOrUpdateOperationSpec$4 = {
10386
11149
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
10387
11150
  httpMethod: "PUT",
10388
11151
  responses: {
@@ -10406,9 +11169,9 @@ const createOrUpdateOperationSpec$6 = {
10406
11169
  ],
10407
11170
  headerParameters: [accept, contentType],
10408
11171
  mediaType: "json",
10409
- serializer: serializer$g
11172
+ serializer: serializer$b
10410
11173
  };
10411
- const getOperationSpec$8 = {
11174
+ const getOperationSpec$9 = {
10412
11175
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
10413
11176
  httpMethod: "GET",
10414
11177
  responses: {
@@ -10427,9 +11190,9 @@ const getOperationSpec$8 = {
10427
11190
  ruleName
10428
11191
  ],
10429
11192
  headerParameters: [accept],
10430
- serializer: serializer$g
11193
+ serializer: serializer$b
10431
11194
  };
10432
- const updateOperationSpec$5 = {
11195
+ const updateOperationSpec$3 = {
10433
11196
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
10434
11197
  httpMethod: "PATCH",
10435
11198
  responses: {
@@ -10450,9 +11213,9 @@ const updateOperationSpec$5 = {
10450
11213
  ],
10451
11214
  headerParameters: [accept, contentType],
10452
11215
  mediaType: "json",
10453
- serializer: serializer$g
11216
+ serializer: serializer$b
10454
11217
  };
10455
- const deleteOperationSpec$6 = {
11218
+ const deleteOperationSpec$7 = {
10456
11219
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}",
10457
11220
  httpMethod: "DELETE",
10458
11221
  responses: {
@@ -10470,9 +11233,9 @@ const deleteOperationSpec$6 = {
10470
11233
  ruleName
10471
11234
  ],
10472
11235
  headerParameters: [accept],
10473
- serializer: serializer$g
11236
+ serializer: serializer$b
10474
11237
  };
10475
- const listBySubscriptionOperationSpec$3 = {
11238
+ const listBySubscriptionOperationSpec$2 = {
10476
11239
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules",
10477
11240
  httpMethod: "GET",
10478
11241
  responses: {
@@ -10486,7 +11249,7 @@ const listBySubscriptionOperationSpec$3 = {
10486
11249
  queryParameters: [filter1, apiVersion7],
10487
11250
  urlParameters: [$host, subscriptionId],
10488
11251
  headerParameters: [accept],
10489
- serializer: serializer$g
11252
+ serializer: serializer$b
10490
11253
  };
10491
11254
  const listByResourceGroupOperationSpec$4 = {
10492
11255
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules",
@@ -10506,7 +11269,7 @@ const listByResourceGroupOperationSpec$4 = {
10506
11269
  subscriptionId
10507
11270
  ],
10508
11271
  headerParameters: [accept],
10509
- serializer: serializer$g
11272
+ serializer: serializer$b
10510
11273
  };
10511
11274
 
10512
11275
  /*
@@ -10575,12 +11338,12 @@ class MetricNamespacesImpl {
10575
11338
  * @param options The options parameters.
10576
11339
  */
10577
11340
  _list(resourceUri, options) {
10578
- return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$b);
11341
+ return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$1);
10579
11342
  }
10580
11343
  }
10581
11344
  // Operation Specifications
10582
- const serializer$h = coreClient.createSerializer(Mappers, /* isXml */ false);
10583
- const listOperationSpec$b = {
11345
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11346
+ const listOperationSpec$1 = {
10584
11347
  path: "/{resourceUri}/providers/microsoft.insights/metricNamespaces",
10585
11348
  httpMethod: "GET",
10586
11349
  responses: {
@@ -10594,7 +11357,7 @@ const listOperationSpec$b = {
10594
11357
  queryParameters: [apiVersion8, startTime],
10595
11358
  urlParameters: [$host, resourceUri],
10596
11359
  headerParameters: [accept],
10597
- serializer: serializer$h
11360
+ serializer: serializer$a
10598
11361
  };
10599
11362
 
10600
11363
  /*
@@ -10624,7 +11387,7 @@ class VMInsightsImpl {
10624
11387
  }
10625
11388
  }
10626
11389
  // Operation Specifications
10627
- const serializer$i = coreClient.createSerializer(Mappers, /* isXml */ false);
11390
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10628
11391
  const getOnboardingStatusOperationSpec = {
10629
11392
  path: "/{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default",
10630
11393
  httpMethod: "GET",
@@ -10639,7 +11402,7 @@ const getOnboardingStatusOperationSpec = {
10639
11402
  queryParameters: [apiVersion9],
10640
11403
  urlParameters: [$host, resourceUri],
10641
11404
  headerParameters: [accept],
10642
- serializer: serializer$i
11405
+ serializer: serializer$9
10643
11406
  };
10644
11407
 
10645
11408
  /*
@@ -10761,7 +11524,7 @@ class PrivateLinkScopesImpl {
10761
11524
  * @param options The options parameters.
10762
11525
  */
10763
11526
  _list(options) {
10764
- return this.client.sendOperationRequest({ options }, listOperationSpec$c);
11527
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
10765
11528
  }
10766
11529
  /**
10767
11530
  * Gets a list of Azure Monitor PrivateLinkScopes within a resource group.
@@ -10769,7 +11532,7 @@ class PrivateLinkScopesImpl {
10769
11532
  * @param options The options parameters.
10770
11533
  */
10771
11534
  _listByResourceGroup(resourceGroupName, options) {
10772
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$5);
11535
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$3);
10773
11536
  }
10774
11537
  /**
10775
11538
  * Deletes a Azure Monitor PrivateLinkScope.
@@ -10801,11 +11564,13 @@ class PrivateLinkScopesImpl {
10801
11564
  }
10802
11565
  };
10803
11566
  });
10804
- const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, options }, deleteOperationSpec$7);
10805
- return new coreLro.LroEngine(lro, {
11567
+ const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, options }, deleteOperationSpec$6);
11568
+ const poller = new coreLro.LroEngine(lro, {
10806
11569
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10807
11570
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10808
11571
  });
11572
+ yield poller.poll();
11573
+ return poller;
10809
11574
  });
10810
11575
  }
10811
11576
  /**
@@ -10827,7 +11592,7 @@ class PrivateLinkScopesImpl {
10827
11592
  * @param options The options parameters.
10828
11593
  */
10829
11594
  get(resourceGroupName, scopeName, options) {
10830
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, getOperationSpec$9);
11595
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, getOperationSpec$8);
10831
11596
  }
10832
11597
  /**
10833
11598
  * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value
@@ -10844,7 +11609,7 @@ class PrivateLinkScopesImpl {
10844
11609
  scopeName,
10845
11610
  azureMonitorPrivateLinkScopePayload,
10846
11611
  options
10847
- }, createOrUpdateOperationSpec$7);
11612
+ }, createOrUpdateOperationSpec$3);
10848
11613
  }
10849
11614
  /**
10850
11615
  * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
@@ -10862,7 +11627,7 @@ class PrivateLinkScopesImpl {
10862
11627
  * @param options The options parameters.
10863
11628
  */
10864
11629
  _listNext(nextLink, options) {
10865
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
11630
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
10866
11631
  }
10867
11632
  /**
10868
11633
  * ListByResourceGroupNext
@@ -10871,12 +11636,12 @@ class PrivateLinkScopesImpl {
10871
11636
  * @param options The options parameters.
10872
11637
  */
10873
11638
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
10874
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
11639
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
10875
11640
  }
10876
11641
  }
10877
11642
  // Operation Specifications
10878
- const serializer$j = coreClient.createSerializer(Mappers, /* isXml */ false);
10879
- const listOperationSpec$c = {
11643
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11644
+ const listOperationSpec = {
10880
11645
  path: "/subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes",
10881
11646
  httpMethod: "GET",
10882
11647
  responses: {
@@ -10887,9 +11652,9 @@ const listOperationSpec$c = {
10887
11652
  queryParameters: [apiVersion10],
10888
11653
  urlParameters: [$host, subscriptionId],
10889
11654
  headerParameters: [accept],
10890
- serializer: serializer$j
11655
+ serializer: serializer$8
10891
11656
  };
10892
- const listByResourceGroupOperationSpec$5 = {
11657
+ const listByResourceGroupOperationSpec$3 = {
10893
11658
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes",
10894
11659
  httpMethod: "GET",
10895
11660
  responses: {
@@ -10904,9 +11669,9 @@ const listByResourceGroupOperationSpec$5 = {
10904
11669
  subscriptionId
10905
11670
  ],
10906
11671
  headerParameters: [accept],
10907
- serializer: serializer$j
11672
+ serializer: serializer$8
10908
11673
  };
10909
- const deleteOperationSpec$7 = {
11674
+ const deleteOperationSpec$6 = {
10910
11675
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}",
10911
11676
  httpMethod: "DELETE",
10912
11677
  responses: { 200: {}, 201: {}, 202: {}, 204: {} },
@@ -10917,9 +11682,9 @@ const deleteOperationSpec$7 = {
10917
11682
  subscriptionId,
10918
11683
  scopeName
10919
11684
  ],
10920
- serializer: serializer$j
11685
+ serializer: serializer$8
10921
11686
  };
10922
- const getOperationSpec$9 = {
11687
+ const getOperationSpec$8 = {
10923
11688
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}",
10924
11689
  httpMethod: "GET",
10925
11690
  responses: {
@@ -10935,9 +11700,9 @@ const getOperationSpec$9 = {
10935
11700
  scopeName
10936
11701
  ],
10937
11702
  headerParameters: [accept],
10938
- serializer: serializer$j
11703
+ serializer: serializer$8
10939
11704
  };
10940
- const createOrUpdateOperationSpec$7 = {
11705
+ const createOrUpdateOperationSpec$3 = {
10941
11706
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}",
10942
11707
  httpMethod: "PUT",
10943
11708
  responses: {
@@ -10958,7 +11723,7 @@ const createOrUpdateOperationSpec$7 = {
10958
11723
  ],
10959
11724
  headerParameters: [accept, contentType],
10960
11725
  mediaType: "json",
10961
- serializer: serializer$j
11726
+ serializer: serializer$8
10962
11727
  };
10963
11728
  const updateTagsOperationSpec = {
10964
11729
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}",
@@ -10978,9 +11743,9 @@ const updateTagsOperationSpec = {
10978
11743
  ],
10979
11744
  headerParameters: [accept, contentType],
10980
11745
  mediaType: "json",
10981
- serializer: serializer$j
11746
+ serializer: serializer$8
10982
11747
  };
10983
- const listNextOperationSpec$2 = {
11748
+ const listNextOperationSpec = {
10984
11749
  path: "{nextLink}",
10985
11750
  httpMethod: "GET",
10986
11751
  responses: {
@@ -10995,9 +11760,9 @@ const listNextOperationSpec$2 = {
10995
11760
  nextLink
10996
11761
  ],
10997
11762
  headerParameters: [accept],
10998
- serializer: serializer$j
11763
+ serializer: serializer$8
10999
11764
  };
11000
- const listByResourceGroupNextOperationSpec$1 = {
11765
+ const listByResourceGroupNextOperationSpec$3 = {
11001
11766
  path: "{nextLink}",
11002
11767
  httpMethod: "GET",
11003
11768
  responses: {
@@ -11013,7 +11778,7 @@ const listByResourceGroupNextOperationSpec$1 = {
11013
11778
  nextLink
11014
11779
  ],
11015
11780
  headerParameters: [accept],
11016
- serializer: serializer$j
11781
+ serializer: serializer$8
11017
11782
  };
11018
11783
 
11019
11784
  /*
@@ -11039,12 +11804,12 @@ class PrivateLinkScopeOperationStatusImpl {
11039
11804
  * @param options The options parameters.
11040
11805
  */
11041
11806
  get(asyncOperationId, resourceGroupName, options) {
11042
- return this.client.sendOperationRequest({ asyncOperationId, resourceGroupName, options }, getOperationSpec$a);
11807
+ return this.client.sendOperationRequest({ asyncOperationId, resourceGroupName, options }, getOperationSpec$7);
11043
11808
  }
11044
11809
  }
11045
11810
  // Operation Specifications
11046
- const serializer$k = coreClient.createSerializer(Mappers, /* isXml */ false);
11047
- const getOperationSpec$a = {
11811
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11812
+ const getOperationSpec$7 = {
11048
11813
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}",
11049
11814
  httpMethod: "GET",
11050
11815
  responses: {
@@ -11060,7 +11825,7 @@ const getOperationSpec$a = {
11060
11825
  asyncOperationId
11061
11826
  ],
11062
11827
  headerParameters: [accept],
11063
- serializer: serializer$k
11828
+ serializer: serializer$7
11064
11829
  };
11065
11830
 
11066
11831
  /*
@@ -11137,7 +11902,7 @@ class PrivateLinkResourcesImpl {
11137
11902
  * @param options The options parameters.
11138
11903
  */
11139
11904
  _listByPrivateLinkScope(resourceGroupName, scopeName, options) {
11140
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
11905
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec$2);
11141
11906
  }
11142
11907
  /**
11143
11908
  * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
@@ -11147,7 +11912,7 @@ class PrivateLinkResourcesImpl {
11147
11912
  * @param options The options parameters.
11148
11913
  */
11149
11914
  get(resourceGroupName, scopeName, groupName, options) {
11150
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, groupName, options }, getOperationSpec$b);
11915
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, groupName, options }, getOperationSpec$6);
11151
11916
  }
11152
11917
  /**
11153
11918
  * ListByPrivateLinkScopeNext
@@ -11157,12 +11922,12 @@ class PrivateLinkResourcesImpl {
11157
11922
  * @param options The options parameters.
11158
11923
  */
11159
11924
  _listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
11160
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec);
11925
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec$2);
11161
11926
  }
11162
11927
  }
11163
11928
  // Operation Specifications
11164
- const serializer$l = coreClient.createSerializer(Mappers, /* isXml */ false);
11165
- const listByPrivateLinkScopeOperationSpec = {
11929
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11930
+ const listByPrivateLinkScopeOperationSpec$2 = {
11166
11931
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources",
11167
11932
  httpMethod: "GET",
11168
11933
  responses: {
@@ -11178,9 +11943,9 @@ const listByPrivateLinkScopeOperationSpec = {
11178
11943
  scopeName
11179
11944
  ],
11180
11945
  headerParameters: [accept],
11181
- serializer: serializer$l
11946
+ serializer: serializer$6
11182
11947
  };
11183
- const getOperationSpec$b = {
11948
+ const getOperationSpec$6 = {
11184
11949
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}",
11185
11950
  httpMethod: "GET",
11186
11951
  responses: {
@@ -11197,9 +11962,9 @@ const getOperationSpec$b = {
11197
11962
  groupName
11198
11963
  ],
11199
11964
  headerParameters: [accept],
11200
- serializer: serializer$l
11965
+ serializer: serializer$6
11201
11966
  };
11202
- const listByPrivateLinkScopeNextOperationSpec = {
11967
+ const listByPrivateLinkScopeNextOperationSpec$2 = {
11203
11968
  path: "{nextLink}",
11204
11969
  httpMethod: "GET",
11205
11970
  responses: {
@@ -11216,7 +11981,7 @@ const listByPrivateLinkScopeNextOperationSpec = {
11216
11981
  scopeName
11217
11982
  ],
11218
11983
  headerParameters: [accept],
11219
- serializer: serializer$l
11984
+ serializer: serializer$6
11220
11985
  };
11221
11986
 
11222
11987
  /*
@@ -11294,7 +12059,7 @@ class PrivateEndpointConnectionsImpl {
11294
12059
  * @param options The options parameters.
11295
12060
  */
11296
12061
  get(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
11297
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, getOperationSpec$c);
12062
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, getOperationSpec$5);
11298
12063
  }
11299
12064
  /**
11300
12065
  * Approve or reject a private endpoint connection with a given name.
@@ -11334,11 +12099,13 @@ class PrivateEndpointConnectionsImpl {
11334
12099
  privateEndpointConnectionName,
11335
12100
  parameters,
11336
12101
  options
11337
- }, createOrUpdateOperationSpec$8);
11338
- return new coreLro.LroEngine(lro, {
12102
+ }, createOrUpdateOperationSpec$2);
12103
+ const poller = new coreLro.LroEngine(lro, {
11339
12104
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11340
12105
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11341
12106
  });
12107
+ yield poller.poll();
12108
+ return poller;
11342
12109
  });
11343
12110
  }
11344
12111
  /**
@@ -11386,11 +12153,13 @@ class PrivateEndpointConnectionsImpl {
11386
12153
  }
11387
12154
  };
11388
12155
  });
11389
- const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, privateEndpointConnectionName, options }, deleteOperationSpec$8);
11390
- return new coreLro.LroEngine(lro, {
12156
+ const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, privateEndpointConnectionName, options }, deleteOperationSpec$5);
12157
+ const poller = new coreLro.LroEngine(lro, {
11391
12158
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11392
12159
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11393
12160
  });
12161
+ yield poller.poll();
12162
+ return poller;
11394
12163
  });
11395
12164
  }
11396
12165
  /**
@@ -11427,8 +12196,8 @@ class PrivateEndpointConnectionsImpl {
11427
12196
  }
11428
12197
  }
11429
12198
  // Operation Specifications
11430
- const serializer$m = coreClient.createSerializer(Mappers, /* isXml */ false);
11431
- const getOperationSpec$c = {
12199
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12200
+ const getOperationSpec$5 = {
11432
12201
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
11433
12202
  httpMethod: "GET",
11434
12203
  responses: {
@@ -11445,9 +12214,9 @@ const getOperationSpec$c = {
11445
12214
  privateEndpointConnectionName
11446
12215
  ],
11447
12216
  headerParameters: [accept],
11448
- serializer: serializer$m
12217
+ serializer: serializer$5
11449
12218
  };
11450
- const createOrUpdateOperationSpec$8 = {
12219
+ const createOrUpdateOperationSpec$2 = {
11451
12220
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
11452
12221
  httpMethod: "PUT",
11453
12222
  responses: {
@@ -11475,9 +12244,9 @@ const createOrUpdateOperationSpec$8 = {
11475
12244
  ],
11476
12245
  headerParameters: [accept, contentType],
11477
12246
  mediaType: "json",
11478
- serializer: serializer$m
12247
+ serializer: serializer$5
11479
12248
  };
11480
- const deleteOperationSpec$8 = {
12249
+ const deleteOperationSpec$5 = {
11481
12250
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
11482
12251
  httpMethod: "DELETE",
11483
12252
  responses: { 200: {}, 201: {}, 202: {}, 204: {} },
@@ -11489,7 +12258,7 @@ const deleteOperationSpec$8 = {
11489
12258
  scopeName,
11490
12259
  privateEndpointConnectionName
11491
12260
  ],
11492
- serializer: serializer$m
12261
+ serializer: serializer$5
11493
12262
  };
11494
12263
  const listByPrivateLinkScopeOperationSpec$1 = {
11495
12264
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections",
@@ -11507,7 +12276,7 @@ const listByPrivateLinkScopeOperationSpec$1 = {
11507
12276
  scopeName
11508
12277
  ],
11509
12278
  headerParameters: [accept],
11510
- serializer: serializer$m
12279
+ serializer: serializer$5
11511
12280
  };
11512
12281
  const listByPrivateLinkScopeNextOperationSpec$1 = {
11513
12282
  path: "{nextLink}",
@@ -11526,7 +12295,7 @@ const listByPrivateLinkScopeNextOperationSpec$1 = {
11526
12295
  scopeName
11527
12296
  ],
11528
12297
  headerParameters: [accept],
11529
- serializer: serializer$m
12298
+ serializer: serializer$5
11530
12299
  };
11531
12300
 
11532
12301
  /*
@@ -11604,7 +12373,7 @@ class PrivateLinkScopedResourcesImpl {
11604
12373
  * @param options The options parameters.
11605
12374
  */
11606
12375
  get(resourceGroupName, scopeName, name, options) {
11607
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, name, options }, getOperationSpec$d);
12376
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, name, options }, getOperationSpec$4);
11608
12377
  }
11609
12378
  /**
11610
12379
  * Approve or reject a private endpoint connection with a given name.
@@ -11638,11 +12407,13 @@ class PrivateLinkScopedResourcesImpl {
11638
12407
  }
11639
12408
  };
11640
12409
  });
11641
- const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, name, parameters, options }, createOrUpdateOperationSpec$9);
11642
- return new coreLro.LroEngine(lro, {
12410
+ const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, name, parameters, options }, createOrUpdateOperationSpec$1);
12411
+ const poller = new coreLro.LroEngine(lro, {
11643
12412
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11644
12413
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11645
12414
  });
12415
+ yield poller.poll();
12416
+ return poller;
11646
12417
  });
11647
12418
  }
11648
12419
  /**
@@ -11690,11 +12461,13 @@ class PrivateLinkScopedResourcesImpl {
11690
12461
  }
11691
12462
  };
11692
12463
  });
11693
- const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, name, options }, deleteOperationSpec$9);
11694
- return new coreLro.LroEngine(lro, {
12464
+ const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, name, options }, deleteOperationSpec$4);
12465
+ const poller = new coreLro.LroEngine(lro, {
11695
12466
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11696
12467
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
11697
12468
  });
12469
+ yield poller.poll();
12470
+ return poller;
11698
12471
  });
11699
12472
  }
11700
12473
  /**
@@ -11717,7 +12490,7 @@ class PrivateLinkScopedResourcesImpl {
11717
12490
  * @param options The options parameters.
11718
12491
  */
11719
12492
  _listByPrivateLinkScope(resourceGroupName, scopeName, options) {
11720
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec$2);
12493
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
11721
12494
  }
11722
12495
  /**
11723
12496
  * ListByPrivateLinkScopeNext
@@ -11727,12 +12500,12 @@ class PrivateLinkScopedResourcesImpl {
11727
12500
  * @param options The options parameters.
11728
12501
  */
11729
12502
  _listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
11730
- return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec$2);
12503
+ return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec);
11731
12504
  }
11732
12505
  }
11733
12506
  // Operation Specifications
11734
- const serializer$n = coreClient.createSerializer(Mappers, /* isXml */ false);
11735
- const getOperationSpec$d = {
12507
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12508
+ const getOperationSpec$4 = {
11736
12509
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}",
11737
12510
  httpMethod: "GET",
11738
12511
  responses: {
@@ -11749,9 +12522,9 @@ const getOperationSpec$d = {
11749
12522
  scopeName
11750
12523
  ],
11751
12524
  headerParameters: [accept],
11752
- serializer: serializer$n
12525
+ serializer: serializer$4
11753
12526
  };
11754
- const createOrUpdateOperationSpec$9 = {
12527
+ const createOrUpdateOperationSpec$1 = {
11755
12528
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}",
11756
12529
  httpMethod: "PUT",
11757
12530
  responses: {
@@ -11779,9 +12552,9 @@ const createOrUpdateOperationSpec$9 = {
11779
12552
  ],
11780
12553
  headerParameters: [accept, contentType],
11781
12554
  mediaType: "json",
11782
- serializer: serializer$n
12555
+ serializer: serializer$4
11783
12556
  };
11784
- const deleteOperationSpec$9 = {
12557
+ const deleteOperationSpec$4 = {
11785
12558
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}",
11786
12559
  httpMethod: "DELETE",
11787
12560
  responses: { 200: {}, 201: {}, 202: {}, 204: {} },
@@ -11793,9 +12566,9 @@ const deleteOperationSpec$9 = {
11793
12566
  name,
11794
12567
  scopeName
11795
12568
  ],
11796
- serializer: serializer$n
12569
+ serializer: serializer$4
11797
12570
  };
11798
- const listByPrivateLinkScopeOperationSpec$2 = {
12571
+ const listByPrivateLinkScopeOperationSpec = {
11799
12572
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources",
11800
12573
  httpMethod: "GET",
11801
12574
  responses: {
@@ -11811,9 +12584,9 @@ const listByPrivateLinkScopeOperationSpec$2 = {
11811
12584
  scopeName
11812
12585
  ],
11813
12586
  headerParameters: [accept],
11814
- serializer: serializer$n
12587
+ serializer: serializer$4
11815
12588
  };
11816
- const listByPrivateLinkScopeNextOperationSpec$2 = {
12589
+ const listByPrivateLinkScopeNextOperationSpec = {
11817
12590
  path: "{nextLink}",
11818
12591
  httpMethod: "GET",
11819
12592
  responses: {
@@ -11830,7 +12603,7 @@ const listByPrivateLinkScopeNextOperationSpec$2 = {
11830
12603
  scopeName
11831
12604
  ],
11832
12605
  headerParameters: [accept],
11833
- serializer: serializer$n
12606
+ serializer: serializer$4
11834
12607
  };
11835
12608
 
11836
12609
  /*
@@ -11851,7 +12624,7 @@ class ActivityLogAlertsImpl {
11851
12624
  this.client = client;
11852
12625
  }
11853
12626
  /**
11854
- * Get a list of all activity log alerts in a subscription.
12627
+ * Get a list of all Activity Log Alert rules in a subscription.
11855
12628
  * @param options The options parameters.
11856
12629
  */
11857
12630
  listBySubscriptionId(options) {
@@ -11872,6 +12645,12 @@ class ActivityLogAlertsImpl {
11872
12645
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
11873
12646
  let result = yield tslib.__await(this._listBySubscriptionId(options));
11874
12647
  yield yield tslib.__await(result.value || []);
12648
+ let continuationToken = result.nextLink;
12649
+ while (continuationToken) {
12650
+ result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
12651
+ continuationToken = result.nextLink;
12652
+ yield yield tslib.__await(result.value || []);
12653
+ }
11875
12654
  });
11876
12655
  }
11877
12656
  listBySubscriptionIdPagingAll(options) {
@@ -11893,7 +12672,7 @@ class ActivityLogAlertsImpl {
11893
12672
  });
11894
12673
  }
11895
12674
  /**
11896
- * Get a list of all activity log alerts in a resource group.
12675
+ * Get a list of all Activity Log Alert rules in a resource group.
11897
12676
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11898
12677
  * @param options The options parameters.
11899
12678
  */
@@ -11915,6 +12694,12 @@ class ActivityLogAlertsImpl {
11915
12694
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
11916
12695
  let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
11917
12696
  yield yield tslib.__await(result.value || []);
12697
+ let continuationToken = result.nextLink;
12698
+ while (continuationToken) {
12699
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
12700
+ continuationToken = result.nextLink;
12701
+ yield yield tslib.__await(result.value || []);
12702
+ }
11918
12703
  });
11919
12704
  }
11920
12705
  listByResourceGroupPagingAll(resourceGroupName, options) {
@@ -11936,69 +12721,92 @@ class ActivityLogAlertsImpl {
11936
12721
  });
11937
12722
  }
11938
12723
  /**
11939
- * Create a new activity log alert or update an existing one.
12724
+ * Create a new Activity Log Alert rule or update an existing one.
11940
12725
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11941
- * @param activityLogAlertName The name of the activity log alert.
11942
- * @param activityLogAlert The activity log alert to create or use for the update.
12726
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12727
+ * @param activityLogAlertRule The Activity Log Alert rule to create or use for the update.
11943
12728
  * @param options The options parameters.
11944
12729
  */
11945
- createOrUpdate(resourceGroupName, activityLogAlertName, activityLogAlert, options) {
11946
- return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, activityLogAlert, options }, createOrUpdateOperationSpec$a);
12730
+ createOrUpdate(resourceGroupName, activityLogAlertName, activityLogAlertRule, options) {
12731
+ return this.client.sendOperationRequest({
12732
+ resourceGroupName,
12733
+ activityLogAlertName,
12734
+ activityLogAlertRule,
12735
+ options
12736
+ }, createOrUpdateOperationSpec);
11947
12737
  }
11948
12738
  /**
11949
- * Get an activity log alert.
12739
+ * Get an Activity Log Alert rule.
11950
12740
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11951
- * @param activityLogAlertName The name of the activity log alert.
12741
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
11952
12742
  * @param options The options parameters.
11953
12743
  */
11954
12744
  get(resourceGroupName, activityLogAlertName, options) {
11955
- return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, getOperationSpec$e);
12745
+ return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, getOperationSpec$3);
11956
12746
  }
11957
12747
  /**
11958
- * Delete an activity log alert.
12748
+ * Delete an Activity Log Alert rule.
11959
12749
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11960
- * @param activityLogAlertName The name of the activity log alert.
12750
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
11961
12751
  * @param options The options parameters.
11962
12752
  */
11963
12753
  delete(resourceGroupName, activityLogAlertName, options) {
11964
- return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, deleteOperationSpec$a);
12754
+ return this.client.sendOperationRequest({ resourceGroupName, activityLogAlertName, options }, deleteOperationSpec$3);
11965
12755
  }
11966
12756
  /**
11967
- * Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate
11968
- * method.
12757
+ * Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the
12758
+ * Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate
12759
+ * operation.
11969
12760
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11970
- * @param activityLogAlertName The name of the activity log alert.
11971
- * @param activityLogAlertPatch Parameters supplied to the operation.
12761
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
12762
+ * @param activityLogAlertRulePatch Parameters supplied to the operation.
11972
12763
  * @param options The options parameters.
11973
12764
  */
11974
- update(resourceGroupName, activityLogAlertName, activityLogAlertPatch, options) {
12765
+ update(resourceGroupName, activityLogAlertName, activityLogAlertRulePatch, options) {
11975
12766
  return this.client.sendOperationRequest({
11976
12767
  resourceGroupName,
11977
12768
  activityLogAlertName,
11978
- activityLogAlertPatch,
12769
+ activityLogAlertRulePatch,
11979
12770
  options
11980
- }, updateOperationSpec$6);
12771
+ }, updateOperationSpec$2);
11981
12772
  }
11982
12773
  /**
11983
- * Get a list of all activity log alerts in a subscription.
12774
+ * Get a list of all Activity Log Alert rules in a subscription.
11984
12775
  * @param options The options parameters.
11985
12776
  */
11986
12777
  _listBySubscriptionId(options) {
11987
- return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec$1);
12778
+ return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
11988
12779
  }
11989
12780
  /**
11990
- * Get a list of all activity log alerts in a resource group.
12781
+ * Get a list of all Activity Log Alert rules in a resource group.
11991
12782
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
11992
12783
  * @param options The options parameters.
11993
12784
  */
11994
12785
  _listByResourceGroup(resourceGroupName, options) {
11995
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$6);
12786
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
12787
+ }
12788
+ /**
12789
+ * ListBySubscriptionIdNext
12790
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
12791
+ * @param options The options parameters.
12792
+ */
12793
+ _listBySubscriptionIdNext(nextLink, options) {
12794
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
12795
+ }
12796
+ /**
12797
+ * ListByResourceGroupNext
12798
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
12799
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
12800
+ * @param options The options parameters.
12801
+ */
12802
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
12803
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
11996
12804
  }
11997
12805
  }
11998
12806
  // Operation Specifications
11999
- const serializer$o = coreClient.createSerializer(Mappers, /* isXml */ false);
12000
- const createOrUpdateOperationSpec$a = {
12001
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12807
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12808
+ const createOrUpdateOperationSpec = {
12809
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12002
12810
  httpMethod: "PUT",
12003
12811
  responses: {
12004
12812
  200: {
@@ -12008,10 +12816,10 @@ const createOrUpdateOperationSpec$a = {
12008
12816
  bodyMapper: ActivityLogAlertResource
12009
12817
  },
12010
12818
  default: {
12011
- bodyMapper: ErrorResponse
12819
+ bodyMapper: ErrorResponseAutoGenerated
12012
12820
  }
12013
12821
  },
12014
- requestBody: activityLogAlert,
12822
+ requestBody: activityLogAlertRule,
12015
12823
  queryParameters: [apiVersion11],
12016
12824
  urlParameters: [
12017
12825
  $host,
@@ -12021,17 +12829,17 @@ const createOrUpdateOperationSpec$a = {
12021
12829
  ],
12022
12830
  headerParameters: [accept, contentType],
12023
12831
  mediaType: "json",
12024
- serializer: serializer$o
12832
+ serializer: serializer$3
12025
12833
  };
12026
- const getOperationSpec$e = {
12027
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12834
+ const getOperationSpec$3 = {
12835
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12028
12836
  httpMethod: "GET",
12029
12837
  responses: {
12030
12838
  200: {
12031
12839
  bodyMapper: ActivityLogAlertResource
12032
12840
  },
12033
12841
  default: {
12034
- bodyMapper: ErrorResponse
12842
+ bodyMapper: ErrorResponseAutoGenerated
12035
12843
  }
12036
12844
  },
12037
12845
  queryParameters: [apiVersion11],
@@ -12042,16 +12850,16 @@ const getOperationSpec$e = {
12042
12850
  activityLogAlertName
12043
12851
  ],
12044
12852
  headerParameters: [accept],
12045
- serializer: serializer$o
12853
+ serializer: serializer$3
12046
12854
  };
12047
- const deleteOperationSpec$a = {
12048
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12855
+ const deleteOperationSpec$3 = {
12856
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12049
12857
  httpMethod: "DELETE",
12050
12858
  responses: {
12051
12859
  200: {},
12052
12860
  204: {},
12053
12861
  default: {
12054
- bodyMapper: ErrorResponse
12862
+ bodyMapper: ErrorResponseAutoGenerated
12055
12863
  }
12056
12864
  },
12057
12865
  queryParameters: [apiVersion11],
@@ -12062,20 +12870,20 @@ const deleteOperationSpec$a = {
12062
12870
  activityLogAlertName
12063
12871
  ],
12064
12872
  headerParameters: [accept],
12065
- serializer: serializer$o
12873
+ serializer: serializer$3
12066
12874
  };
12067
- const updateOperationSpec$6 = {
12068
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}",
12875
+ const updateOperationSpec$2 = {
12876
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12069
12877
  httpMethod: "PATCH",
12070
12878
  responses: {
12071
12879
  200: {
12072
12880
  bodyMapper: ActivityLogAlertResource
12073
12881
  },
12074
12882
  default: {
12075
- bodyMapper: ErrorResponse
12883
+ bodyMapper: ErrorResponseAutoGenerated
12076
12884
  }
12077
12885
  },
12078
- requestBody: activityLogAlertPatch,
12886
+ requestBody: activityLogAlertRulePatch,
12079
12887
  queryParameters: [apiVersion11],
12080
12888
  urlParameters: [
12081
12889
  $host,
@@ -12085,33 +12893,33 @@ const updateOperationSpec$6 = {
12085
12893
  ],
12086
12894
  headerParameters: [accept, contentType],
12087
12895
  mediaType: "json",
12088
- serializer: serializer$o
12896
+ serializer: serializer$3
12089
12897
  };
12090
- const listBySubscriptionIdOperationSpec$1 = {
12091
- path: "/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts",
12898
+ const listBySubscriptionIdOperationSpec = {
12899
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts",
12092
12900
  httpMethod: "GET",
12093
12901
  responses: {
12094
12902
  200: {
12095
- bodyMapper: ActivityLogAlertList
12903
+ bodyMapper: AlertRuleList
12096
12904
  },
12097
12905
  default: {
12098
- bodyMapper: ErrorResponse
12906
+ bodyMapper: ErrorResponseAutoGenerated
12099
12907
  }
12100
12908
  },
12101
12909
  queryParameters: [apiVersion11],
12102
12910
  urlParameters: [$host, subscriptionId],
12103
12911
  headerParameters: [accept],
12104
- serializer: serializer$o
12912
+ serializer: serializer$3
12105
12913
  };
12106
- const listByResourceGroupOperationSpec$6 = {
12107
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts",
12914
+ const listByResourceGroupOperationSpec$2 = {
12915
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts",
12108
12916
  httpMethod: "GET",
12109
12917
  responses: {
12110
12918
  200: {
12111
- bodyMapper: ActivityLogAlertList
12919
+ bodyMapper: AlertRuleList
12112
12920
  },
12113
12921
  default: {
12114
- bodyMapper: ErrorResponse
12922
+ bodyMapper: ErrorResponseAutoGenerated
12115
12923
  }
12116
12924
  },
12117
12925
  queryParameters: [apiVersion11],
@@ -12121,7 +12929,48 @@ const listByResourceGroupOperationSpec$6 = {
12121
12929
  subscriptionId
12122
12930
  ],
12123
12931
  headerParameters: [accept],
12124
- serializer: serializer$o
12932
+ serializer: serializer$3
12933
+ };
12934
+ const listBySubscriptionIdNextOperationSpec = {
12935
+ path: "{nextLink}",
12936
+ httpMethod: "GET",
12937
+ responses: {
12938
+ 200: {
12939
+ bodyMapper: AlertRuleList
12940
+ },
12941
+ default: {
12942
+ bodyMapper: ErrorResponseAutoGenerated
12943
+ }
12944
+ },
12945
+ queryParameters: [apiVersion11],
12946
+ urlParameters: [
12947
+ $host,
12948
+ subscriptionId,
12949
+ nextLink
12950
+ ],
12951
+ headerParameters: [accept],
12952
+ serializer: serializer$3
12953
+ };
12954
+ const listByResourceGroupNextOperationSpec$2 = {
12955
+ path: "{nextLink}",
12956
+ httpMethod: "GET",
12957
+ responses: {
12958
+ 200: {
12959
+ bodyMapper: AlertRuleList
12960
+ },
12961
+ default: {
12962
+ bodyMapper: ErrorResponseAutoGenerated
12963
+ }
12964
+ },
12965
+ queryParameters: [apiVersion11],
12966
+ urlParameters: [
12967
+ $host,
12968
+ resourceGroupName,
12969
+ subscriptionId,
12970
+ nextLink
12971
+ ],
12972
+ headerParameters: [accept],
12973
+ serializer: serializer$3
12125
12974
  };
12126
12975
 
12127
12976
  /*
@@ -12244,14 +13093,14 @@ class DataCollectionEndpointsImpl {
12244
13093
  * @param options The options parameters.
12245
13094
  */
12246
13095
  _listByResourceGroup(resourceGroupName, options) {
12247
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$7);
13096
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
12248
13097
  }
12249
13098
  /**
12250
13099
  * Lists all data collection endpoints in the specified subscription
12251
13100
  * @param options The options parameters.
12252
13101
  */
12253
13102
  _listBySubscription(options) {
12254
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$4);
13103
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
12255
13104
  }
12256
13105
  /**
12257
13106
  * Returns the specified data collection endpoint.
@@ -12261,7 +13110,7 @@ class DataCollectionEndpointsImpl {
12261
13110
  * @param options The options parameters.
12262
13111
  */
12263
13112
  get(resourceGroupName, dataCollectionEndpointName, options) {
12264
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, getOperationSpec$f);
13113
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, getOperationSpec$2);
12265
13114
  }
12266
13115
  /**
12267
13116
  * Creates or updates a data collection endpoint.
@@ -12271,7 +13120,7 @@ class DataCollectionEndpointsImpl {
12271
13120
  * @param options The options parameters.
12272
13121
  */
12273
13122
  create(resourceGroupName, dataCollectionEndpointName, options) {
12274
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, createOperationSpec);
13123
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, createOperationSpec$2);
12275
13124
  }
12276
13125
  /**
12277
13126
  * Updates part of a data collection endpoint.
@@ -12281,7 +13130,7 @@ class DataCollectionEndpointsImpl {
12281
13130
  * @param options The options parameters.
12282
13131
  */
12283
13132
  update(resourceGroupName, dataCollectionEndpointName, options) {
12284
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, updateOperationSpec$7);
13133
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, updateOperationSpec$1);
12285
13134
  }
12286
13135
  /**
12287
13136
  * Deletes a data collection endpoint.
@@ -12291,7 +13140,7 @@ class DataCollectionEndpointsImpl {
12291
13140
  * @param options The options parameters.
12292
13141
  */
12293
13142
  delete(resourceGroupName, dataCollectionEndpointName, options) {
12294
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, deleteOperationSpec$b);
13143
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, deleteOperationSpec$2);
12295
13144
  }
12296
13145
  /**
12297
13146
  * ListByResourceGroupNext
@@ -12300,7 +13149,7 @@ class DataCollectionEndpointsImpl {
12300
13149
  * @param options The options parameters.
12301
13150
  */
12302
13151
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
12303
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$2);
13152
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
12304
13153
  }
12305
13154
  /**
12306
13155
  * ListBySubscriptionNext
@@ -12312,8 +13161,8 @@ class DataCollectionEndpointsImpl {
12312
13161
  }
12313
13162
  }
12314
13163
  // Operation Specifications
12315
- const serializer$p = coreClient.createSerializer(Mappers, /* isXml */ false);
12316
- const listByResourceGroupOperationSpec$7 = {
13164
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13165
+ const listByResourceGroupOperationSpec$1 = {
12317
13166
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints",
12318
13167
  httpMethod: "GET",
12319
13168
  responses: {
@@ -12331,9 +13180,9 @@ const listByResourceGroupOperationSpec$7 = {
12331
13180
  subscriptionId
12332
13181
  ],
12333
13182
  headerParameters: [accept],
12334
- serializer: serializer$p
13183
+ serializer: serializer$2
12335
13184
  };
12336
- const listBySubscriptionOperationSpec$4 = {
13185
+ const listBySubscriptionOperationSpec$1 = {
12337
13186
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints",
12338
13187
  httpMethod: "GET",
12339
13188
  responses: {
@@ -12347,9 +13196,9 @@ const listBySubscriptionOperationSpec$4 = {
12347
13196
  queryParameters: [apiVersion12],
12348
13197
  urlParameters: [$host, subscriptionId],
12349
13198
  headerParameters: [accept],
12350
- serializer: serializer$p
13199
+ serializer: serializer$2
12351
13200
  };
12352
- const getOperationSpec$f = {
13201
+ const getOperationSpec$2 = {
12353
13202
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}",
12354
13203
  httpMethod: "GET",
12355
13204
  responses: {
@@ -12368,9 +13217,9 @@ const getOperationSpec$f = {
12368
13217
  dataCollectionEndpointName
12369
13218
  ],
12370
13219
  headerParameters: [accept],
12371
- serializer: serializer$p
13220
+ serializer: serializer$2
12372
13221
  };
12373
- const createOperationSpec = {
13222
+ const createOperationSpec$2 = {
12374
13223
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}",
12375
13224
  httpMethod: "PUT",
12376
13225
  responses: {
@@ -12394,9 +13243,9 @@ const createOperationSpec = {
12394
13243
  ],
12395
13244
  headerParameters: [accept, contentType],
12396
13245
  mediaType: "json",
12397
- serializer: serializer$p
13246
+ serializer: serializer$2
12398
13247
  };
12399
- const updateOperationSpec$7 = {
13248
+ const updateOperationSpec$1 = {
12400
13249
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}",
12401
13250
  httpMethod: "PATCH",
12402
13251
  responses: {
@@ -12417,9 +13266,9 @@ const updateOperationSpec$7 = {
12417
13266
  ],
12418
13267
  headerParameters: [accept, contentType],
12419
13268
  mediaType: "json",
12420
- serializer: serializer$p
13269
+ serializer: serializer$2
12421
13270
  };
12422
- const deleteOperationSpec$b = {
13271
+ const deleteOperationSpec$2 = {
12423
13272
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}",
12424
13273
  httpMethod: "DELETE",
12425
13274
  responses: {
@@ -12437,9 +13286,9 @@ const deleteOperationSpec$b = {
12437
13286
  dataCollectionEndpointName
12438
13287
  ],
12439
13288
  headerParameters: [accept],
12440
- serializer: serializer$p
13289
+ serializer: serializer$2
12441
13290
  };
12442
- const listByResourceGroupNextOperationSpec$2 = {
13291
+ const listByResourceGroupNextOperationSpec$1 = {
12443
13292
  path: "{nextLink}",
12444
13293
  httpMethod: "GET",
12445
13294
  responses: {
@@ -12458,7 +13307,7 @@ const listByResourceGroupNextOperationSpec$2 = {
12458
13307
  nextLink
12459
13308
  ],
12460
13309
  headerParameters: [accept],
12461
- serializer: serializer$p
13310
+ serializer: serializer$2
12462
13311
  };
12463
13312
  const listBySubscriptionNextOperationSpec$1 = {
12464
13313
  path: "{nextLink}",
@@ -12478,7 +13327,7 @@ const listBySubscriptionNextOperationSpec$1 = {
12478
13327
  nextLink
12479
13328
  ],
12480
13329
  headerParameters: [accept],
12481
- serializer: serializer$p
13330
+ serializer: serializer$2
12482
13331
  };
12483
13332
 
12484
13333
  /*
@@ -12597,6 +13446,57 @@ class DataCollectionRuleAssociationsImpl {
12597
13446
  }
12598
13447
  });
12599
13448
  }
13449
+ /**
13450
+ * Lists associations for the specified data collection endpoint.
13451
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13452
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13453
+ * insensitive.
13454
+ * @param options The options parameters.
13455
+ */
13456
+ listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options) {
13457
+ const iter = this.listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options);
13458
+ return {
13459
+ next() {
13460
+ return iter.next();
13461
+ },
13462
+ [Symbol.asyncIterator]() {
13463
+ return this;
13464
+ },
13465
+ byPage: () => {
13466
+ return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options);
13467
+ }
13468
+ };
13469
+ }
13470
+ listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options) {
13471
+ return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
13472
+ let result = yield tslib.__await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
13473
+ yield yield tslib.__await(result.value || []);
13474
+ let continuationToken = result.nextLink;
13475
+ while (continuationToken) {
13476
+ result = yield tslib.__await(this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options));
13477
+ continuationToken = result.nextLink;
13478
+ yield yield tslib.__await(result.value || []);
13479
+ }
13480
+ });
13481
+ }
13482
+ listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
13483
+ return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingAll_1() {
13484
+ var e_3, _a;
13485
+ try {
13486
+ for (var _b = tslib.__asyncValues(this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
13487
+ const page = _c.value;
13488
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
13489
+ }
13490
+ }
13491
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
13492
+ finally {
13493
+ try {
13494
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
13495
+ }
13496
+ finally { if (e_3) throw e_3.error; }
13497
+ }
13498
+ });
13499
+ }
12600
13500
  /**
12601
13501
  * Lists associations for the specified resource.
12602
13502
  * @param resourceUri The identifier of the resource.
@@ -12614,6 +13514,16 @@ class DataCollectionRuleAssociationsImpl {
12614
13514
  _listByRule(resourceGroupName, dataCollectionRuleName, options) {
12615
13515
  return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, listByRuleOperationSpec);
12616
13516
  }
13517
+ /**
13518
+ * Lists associations for the specified data collection endpoint.
13519
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13520
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13521
+ * insensitive.
13522
+ * @param options The options parameters.
13523
+ */
13524
+ _listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options) {
13525
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, options }, listByDataCollectionEndpointOperationSpec);
13526
+ }
12617
13527
  /**
12618
13528
  * Returns the specified association.
12619
13529
  * @param resourceUri The identifier of the resource.
@@ -12621,7 +13531,7 @@ class DataCollectionRuleAssociationsImpl {
12621
13531
  * @param options The options parameters.
12622
13532
  */
12623
13533
  get(resourceUri, associationName, options) {
12624
- return this.client.sendOperationRequest({ resourceUri, associationName, options }, getOperationSpec$g);
13534
+ return this.client.sendOperationRequest({ resourceUri, associationName, options }, getOperationSpec$1);
12625
13535
  }
12626
13536
  /**
12627
13537
  * Creates or updates an association.
@@ -12639,7 +13549,7 @@ class DataCollectionRuleAssociationsImpl {
12639
13549
  * @param options The options parameters.
12640
13550
  */
12641
13551
  delete(resourceUri, associationName, options) {
12642
- return this.client.sendOperationRequest({ resourceUri, associationName, options }, deleteOperationSpec$c);
13552
+ return this.client.sendOperationRequest({ resourceUri, associationName, options }, deleteOperationSpec$1);
12643
13553
  }
12644
13554
  /**
12645
13555
  * ListByResourceNext
@@ -12660,9 +13570,21 @@ class DataCollectionRuleAssociationsImpl {
12660
13570
  _listByRuleNext(resourceGroupName, dataCollectionRuleName, nextLink, options) {
12661
13571
  return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, nextLink, options }, listByRuleNextOperationSpec);
12662
13572
  }
13573
+ /**
13574
+ * ListByDataCollectionEndpointNext
13575
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13576
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
13577
+ * insensitive.
13578
+ * @param nextLink The nextLink from the previous successful call to the ListByDataCollectionEndpoint
13579
+ * method.
13580
+ * @param options The options parameters.
13581
+ */
13582
+ _listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, nextLink, options) {
13583
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionEndpointName, nextLink, options }, listByDataCollectionEndpointNextOperationSpec);
13584
+ }
12663
13585
  }
12664
13586
  // Operation Specifications
12665
- const serializer$q = coreClient.createSerializer(Mappers, /* isXml */ false);
13587
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12666
13588
  const listByResourceOperationSpec = {
12667
13589
  path: "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations",
12668
13590
  httpMethod: "GET",
@@ -12677,7 +13599,7 @@ const listByResourceOperationSpec = {
12677
13599
  queryParameters: [apiVersion12],
12678
13600
  urlParameters: [$host, resourceUri1],
12679
13601
  headerParameters: [accept],
12680
- serializer: serializer$q
13602
+ serializer: serializer$1
12681
13603
  };
12682
13604
  const listByRuleOperationSpec = {
12683
13605
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations",
@@ -12698,9 +13620,30 @@ const listByRuleOperationSpec = {
12698
13620
  dataCollectionRuleName
12699
13621
  ],
12700
13622
  headerParameters: [accept],
12701
- serializer: serializer$q
13623
+ serializer: serializer$1
12702
13624
  };
12703
- const getOperationSpec$g = {
13625
+ const listByDataCollectionEndpointOperationSpec = {
13626
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations",
13627
+ httpMethod: "GET",
13628
+ responses: {
13629
+ 200: {
13630
+ bodyMapper: DataCollectionRuleAssociationProxyOnlyResourceListResult
13631
+ },
13632
+ default: {
13633
+ bodyMapper: ErrorResponseCommonV2
13634
+ }
13635
+ },
13636
+ queryParameters: [apiVersion12],
13637
+ urlParameters: [
13638
+ $host,
13639
+ resourceGroupName,
13640
+ subscriptionId,
13641
+ dataCollectionEndpointName
13642
+ ],
13643
+ headerParameters: [accept],
13644
+ serializer: serializer$1
13645
+ };
13646
+ const getOperationSpec$1 = {
12704
13647
  path: "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}",
12705
13648
  httpMethod: "GET",
12706
13649
  responses: {
@@ -12718,7 +13661,7 @@ const getOperationSpec$g = {
12718
13661
  associationName
12719
13662
  ],
12720
13663
  headerParameters: [accept],
12721
- serializer: serializer$q
13664
+ serializer: serializer$1
12722
13665
  };
12723
13666
  const createOperationSpec$1 = {
12724
13667
  path: "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}",
@@ -12743,9 +13686,9 @@ const createOperationSpec$1 = {
12743
13686
  ],
12744
13687
  headerParameters: [accept, contentType],
12745
13688
  mediaType: "json",
12746
- serializer: serializer$q
13689
+ serializer: serializer$1
12747
13690
  };
12748
- const deleteOperationSpec$c = {
13691
+ const deleteOperationSpec$1 = {
12749
13692
  path: "/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}",
12750
13693
  httpMethod: "DELETE",
12751
13694
  responses: {
@@ -12762,7 +13705,7 @@ const deleteOperationSpec$c = {
12762
13705
  associationName
12763
13706
  ],
12764
13707
  headerParameters: [accept],
12765
- serializer: serializer$q
13708
+ serializer: serializer$1
12766
13709
  };
12767
13710
  const listByResourceNextOperationSpec = {
12768
13711
  path: "{nextLink}",
@@ -12782,7 +13725,7 @@ const listByResourceNextOperationSpec = {
12782
13725
  resourceUri1
12783
13726
  ],
12784
13727
  headerParameters: [accept],
12785
- serializer: serializer$q
13728
+ serializer: serializer$1
12786
13729
  };
12787
13730
  const listByRuleNextOperationSpec = {
12788
13731
  path: "{nextLink}",
@@ -12804,7 +13747,29 @@ const listByRuleNextOperationSpec = {
12804
13747
  dataCollectionRuleName
12805
13748
  ],
12806
13749
  headerParameters: [accept],
12807
- serializer: serializer$q
13750
+ serializer: serializer$1
13751
+ };
13752
+ const listByDataCollectionEndpointNextOperationSpec = {
13753
+ path: "{nextLink}",
13754
+ httpMethod: "GET",
13755
+ responses: {
13756
+ 200: {
13757
+ bodyMapper: DataCollectionRuleAssociationProxyOnlyResourceListResult
13758
+ },
13759
+ default: {
13760
+ bodyMapper: ErrorResponseCommonV2
13761
+ }
13762
+ },
13763
+ queryParameters: [apiVersion12],
13764
+ urlParameters: [
13765
+ $host,
13766
+ resourceGroupName,
13767
+ subscriptionId,
13768
+ nextLink,
13769
+ dataCollectionEndpointName
13770
+ ],
13771
+ headerParameters: [accept],
13772
+ serializer: serializer$1
12808
13773
  };
12809
13774
 
12810
13775
  /*
@@ -12927,14 +13892,14 @@ class DataCollectionRulesImpl {
12927
13892
  * @param options The options parameters.
12928
13893
  */
12929
13894
  _listByResourceGroup(resourceGroupName, options) {
12930
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$8);
13895
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
12931
13896
  }
12932
13897
  /**
12933
13898
  * Lists all data collection rules in the specified subscription.
12934
13899
  * @param options The options parameters.
12935
13900
  */
12936
13901
  _listBySubscription(options) {
12937
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$5);
13902
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
12938
13903
  }
12939
13904
  /**
12940
13905
  * Returns the specified data collection rule.
@@ -12943,7 +13908,7 @@ class DataCollectionRulesImpl {
12943
13908
  * @param options The options parameters.
12944
13909
  */
12945
13910
  get(resourceGroupName, dataCollectionRuleName, options) {
12946
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, getOperationSpec$h);
13911
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, getOperationSpec);
12947
13912
  }
12948
13913
  /**
12949
13914
  * Creates or updates a data collection rule.
@@ -12952,7 +13917,7 @@ class DataCollectionRulesImpl {
12952
13917
  * @param options The options parameters.
12953
13918
  */
12954
13919
  create(resourceGroupName, dataCollectionRuleName, options) {
12955
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, createOperationSpec$2);
13920
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, createOperationSpec);
12956
13921
  }
12957
13922
  /**
12958
13923
  * Updates part of a data collection rule.
@@ -12961,7 +13926,7 @@ class DataCollectionRulesImpl {
12961
13926
  * @param options The options parameters.
12962
13927
  */
12963
13928
  update(resourceGroupName, dataCollectionRuleName, options) {
12964
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, updateOperationSpec$8);
13929
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, updateOperationSpec);
12965
13930
  }
12966
13931
  /**
12967
13932
  * Deletes a data collection rule.
@@ -12970,7 +13935,7 @@ class DataCollectionRulesImpl {
12970
13935
  * @param options The options parameters.
12971
13936
  */
12972
13937
  delete(resourceGroupName, dataCollectionRuleName, options) {
12973
- return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, deleteOperationSpec$d);
13938
+ return this.client.sendOperationRequest({ resourceGroupName, dataCollectionRuleName, options }, deleteOperationSpec);
12974
13939
  }
12975
13940
  /**
12976
13941
  * ListByResourceGroupNext
@@ -12979,7 +13944,7 @@ class DataCollectionRulesImpl {
12979
13944
  * @param options The options parameters.
12980
13945
  */
12981
13946
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
12982
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
13947
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
12983
13948
  }
12984
13949
  /**
12985
13950
  * ListBySubscriptionNext
@@ -12987,12 +13952,12 @@ class DataCollectionRulesImpl {
12987
13952
  * @param options The options parameters.
12988
13953
  */
12989
13954
  _listBySubscriptionNext(nextLink, options) {
12990
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$2);
13955
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
12991
13956
  }
12992
13957
  }
12993
13958
  // Operation Specifications
12994
- const serializer$r = coreClient.createSerializer(Mappers, /* isXml */ false);
12995
- const listByResourceGroupOperationSpec$8 = {
13959
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13960
+ const listByResourceGroupOperationSpec = {
12996
13961
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules",
12997
13962
  httpMethod: "GET",
12998
13963
  responses: {
@@ -13010,9 +13975,9 @@ const listByResourceGroupOperationSpec$8 = {
13010
13975
  subscriptionId
13011
13976
  ],
13012
13977
  headerParameters: [accept],
13013
- serializer: serializer$r
13978
+ serializer
13014
13979
  };
13015
- const listBySubscriptionOperationSpec$5 = {
13980
+ const listBySubscriptionOperationSpec = {
13016
13981
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules",
13017
13982
  httpMethod: "GET",
13018
13983
  responses: {
@@ -13026,9 +13991,9 @@ const listBySubscriptionOperationSpec$5 = {
13026
13991
  queryParameters: [apiVersion12],
13027
13992
  urlParameters: [$host, subscriptionId],
13028
13993
  headerParameters: [accept],
13029
- serializer: serializer$r
13994
+ serializer
13030
13995
  };
13031
- const getOperationSpec$h = {
13996
+ const getOperationSpec = {
13032
13997
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}",
13033
13998
  httpMethod: "GET",
13034
13999
  responses: {
@@ -13047,9 +14012,9 @@ const getOperationSpec$h = {
13047
14012
  dataCollectionRuleName
13048
14013
  ],
13049
14014
  headerParameters: [accept],
13050
- serializer: serializer$r
14015
+ serializer
13051
14016
  };
13052
- const createOperationSpec$2 = {
14017
+ const createOperationSpec = {
13053
14018
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}",
13054
14019
  httpMethod: "PUT",
13055
14020
  responses: {
@@ -13073,9 +14038,9 @@ const createOperationSpec$2 = {
13073
14038
  ],
13074
14039
  headerParameters: [accept, contentType],
13075
14040
  mediaType: "json",
13076
- serializer: serializer$r
14041
+ serializer
13077
14042
  };
13078
- const updateOperationSpec$8 = {
14043
+ const updateOperationSpec = {
13079
14044
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}",
13080
14045
  httpMethod: "PATCH",
13081
14046
  responses: {
@@ -13096,9 +14061,9 @@ const updateOperationSpec$8 = {
13096
14061
  ],
13097
14062
  headerParameters: [accept, contentType],
13098
14063
  mediaType: "json",
13099
- serializer: serializer$r
14064
+ serializer
13100
14065
  };
13101
- const deleteOperationSpec$d = {
14066
+ const deleteOperationSpec = {
13102
14067
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}",
13103
14068
  httpMethod: "DELETE",
13104
14069
  responses: {
@@ -13116,9 +14081,9 @@ const deleteOperationSpec$d = {
13116
14081
  dataCollectionRuleName
13117
14082
  ],
13118
14083
  headerParameters: [accept],
13119
- serializer: serializer$r
14084
+ serializer
13120
14085
  };
13121
- const listByResourceGroupNextOperationSpec$3 = {
14086
+ const listByResourceGroupNextOperationSpec = {
13122
14087
  path: "{nextLink}",
13123
14088
  httpMethod: "GET",
13124
14089
  responses: {
@@ -13137,9 +14102,9 @@ const listByResourceGroupNextOperationSpec$3 = {
13137
14102
  nextLink
13138
14103
  ],
13139
14104
  headerParameters: [accept],
13140
- serializer: serializer$r
14105
+ serializer
13141
14106
  };
13142
- const listBySubscriptionNextOperationSpec$2 = {
14107
+ const listBySubscriptionNextOperationSpec = {
13143
14108
  path: "{nextLink}",
13144
14109
  httpMethod: "GET",
13145
14110
  responses: {
@@ -13157,7 +14122,7 @@ const listBySubscriptionNextOperationSpec$2 = {
13157
14122
  nextLink
13158
14123
  ],
13159
14124
  headerParameters: [accept],
13160
- serializer: serializer$r
14125
+ serializer
13161
14126
  };
13162
14127
 
13163
14128
  /*
@@ -13167,7 +14132,7 @@ const listBySubscriptionNextOperationSpec$2 = {
13167
14132
  * Code generated by Microsoft (R) AutoRest Code Generator.
13168
14133
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
13169
14134
  */
13170
- class MonitorClient extends coreClient.ServiceClient {
14135
+ class MonitorClient extends coreClient__namespace.ServiceClient {
13171
14136
  /**
13172
14137
  * Initializes a new instance of the MonitorClient class.
13173
14138
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -13175,6 +14140,7 @@ class MonitorClient extends coreClient.ServiceClient {
13175
14140
  * @param options The parameter options
13176
14141
  */
13177
14142
  constructor(credentials, subscriptionId, options) {
14143
+ var _a, _b;
13178
14144
  if (credentials === undefined) {
13179
14145
  throw new Error("'credentials' cannot be null");
13180
14146
  }
@@ -13189,7 +14155,7 @@ class MonitorClient extends coreClient.ServiceClient {
13189
14155
  requestContentType: "application/json; charset=utf-8",
13190
14156
  credential: credentials
13191
14157
  };
13192
- const packageDetails = `azsdk-js-arm-monitor/7.0.0`;
14158
+ const packageDetails = `azsdk-js-arm-monitor/8.0.0-beta.1`;
13193
14159
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
13194
14160
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
13195
14161
  : `${packageDetails}`;
@@ -13198,8 +14164,24 @@ class MonitorClient extends coreClient.ServiceClient {
13198
14164
  }
13199
14165
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
13200
14166
  userAgentPrefix
13201
- }, baseUri: options.endpoint || "https://management.azure.com" });
14167
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
13202
14168
  super(optionsWithDefaults);
14169
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
14170
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
14171
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
14172
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
14173
+ if (!bearerTokenAuthenticationPolicyFound) {
14174
+ this.pipeline.removePolicy({
14175
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
14176
+ });
14177
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
14178
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
14179
+ challengeCallbacks: {
14180
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
14181
+ }
14182
+ }));
14183
+ }
14184
+ }
13203
14185
  // Parameter assignments
13204
14186
  this.subscriptionId = subscriptionId;
13205
14187
  // Assigning values to Constant parameters