@azure/arm-monitor 8.0.0-alpha.20250619.1 → 8.0.0-alpha.20250729.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 (291) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +449 -195
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/monitorClient.js +55 -11
  6. package/dist/browser/monitorClient.js.map +1 -1
  7. package/dist/browser/operations/actionGroups.js +30 -59
  8. package/dist/browser/operations/actionGroups.js.map +1 -1
  9. package/dist/browser/operations/activityLogAlerts.js +45 -79
  10. package/dist/browser/operations/activityLogAlerts.js.map +1 -1
  11. package/dist/browser/operations/activityLogs.js +23 -40
  12. package/dist/browser/operations/activityLogs.js.map +1 -1
  13. package/dist/browser/operations/alertRuleIncidents.js +10 -27
  14. package/dist/browser/operations/alertRuleIncidents.js.map +1 -1
  15. package/dist/browser/operations/alertRules.js +19 -53
  16. package/dist/browser/operations/alertRules.js.map +1 -1
  17. package/dist/browser/operations/autoscaleSettings.js +45 -79
  18. package/dist/browser/operations/autoscaleSettings.js.map +1 -1
  19. package/dist/browser/operations/azureMonitorWorkspaces.js +56 -85
  20. package/dist/browser/operations/azureMonitorWorkspaces.js.map +1 -1
  21. package/dist/browser/operations/baselines.js +10 -27
  22. package/dist/browser/operations/baselines.js.map +1 -1
  23. package/dist/browser/operations/dataCollectionEndpoints.js +45 -79
  24. package/dist/browser/operations/dataCollectionEndpoints.js.map +1 -1
  25. package/dist/browser/operations/dataCollectionRuleAssociations.js +67 -118
  26. package/dist/browser/operations/dataCollectionRuleAssociations.js.map +1 -1
  27. package/dist/browser/operations/dataCollectionRules.js +45 -79
  28. package/dist/browser/operations/dataCollectionRules.js.map +1 -1
  29. package/dist/browser/operations/diagnosticSettings.js +10 -27
  30. package/dist/browser/operations/diagnosticSettings.js.map +1 -1
  31. package/dist/browser/operations/diagnosticSettingsCategory.js +10 -27
  32. package/dist/browser/operations/diagnosticSettingsCategory.js.map +1 -1
  33. package/dist/browser/operations/eventCategories.js +10 -27
  34. package/dist/browser/operations/eventCategories.js.map +1 -1
  35. package/dist/browser/operations/logProfiles.js +10 -27
  36. package/dist/browser/operations/logProfiles.js.map +1 -1
  37. package/dist/browser/operations/metricAlerts.js +19 -53
  38. package/dist/browser/operations/metricAlerts.js.map +1 -1
  39. package/dist/browser/operations/metricAlertsStatus.js +1 -0
  40. package/dist/browser/operations/metricAlertsStatus.js.map +1 -1
  41. package/dist/browser/operations/metricDefinitions.js +19 -53
  42. package/dist/browser/operations/metricDefinitions.js.map +1 -1
  43. package/dist/browser/operations/metricNamespaces.js +10 -27
  44. package/dist/browser/operations/metricNamespaces.js.map +1 -1
  45. package/dist/browser/operations/metricsOperations.js +1 -0
  46. package/dist/browser/operations/metricsOperations.js.map +1 -1
  47. package/dist/browser/operations/monitorOperations.js +23 -40
  48. package/dist/browser/operations/monitorOperations.js.map +1 -1
  49. package/dist/browser/operations/operations.js +1 -0
  50. package/dist/browser/operations/operations.js.map +1 -1
  51. package/dist/browser/operations/predictiveMetric.js +1 -0
  52. package/dist/browser/operations/predictiveMetric.js.map +1 -1
  53. package/dist/browser/operations/privateEndpointConnections.js +23 -12
  54. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  55. package/dist/browser/operations/privateLinkResources.js +1 -0
  56. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  57. package/dist/browser/operations/privateLinkScopeOperationStatus.js +1 -0
  58. package/dist/browser/operations/privateLinkScopeOperationStatus.js.map +1 -1
  59. package/dist/browser/operations/privateLinkScopedResources.js +45 -52
  60. package/dist/browser/operations/privateLinkScopedResources.js.map +1 -1
  61. package/dist/browser/operations/privateLinkScopes.js +56 -85
  62. package/dist/browser/operations/privateLinkScopes.js.map +1 -1
  63. package/dist/browser/operations/scheduledQueryRules.js +45 -79
  64. package/dist/browser/operations/scheduledQueryRules.js.map +1 -1
  65. package/dist/browser/operations/tenantActionGroups.js +10 -27
  66. package/dist/browser/operations/tenantActionGroups.js.map +1 -1
  67. package/dist/browser/operations/tenantActivityLogs.js +23 -40
  68. package/dist/browser/operations/tenantActivityLogs.js.map +1 -1
  69. package/dist/browser/operations/vMInsights.js +1 -0
  70. package/dist/browser/operations/vMInsights.js.map +1 -1
  71. package/dist/browser/pagingHelper.js +2 -4
  72. package/dist/browser/pagingHelper.js.map +1 -1
  73. package/dist/commonjs/lroImpl.js +7 -3
  74. package/dist/commonjs/lroImpl.js.map +1 -1
  75. package/dist/commonjs/models/mappers.js +449 -195
  76. package/dist/commonjs/models/mappers.js.map +1 -1
  77. package/dist/commonjs/monitorClient.js +55 -11
  78. package/dist/commonjs/monitorClient.js.map +1 -1
  79. package/dist/commonjs/operations/actionGroups.js +30 -58
  80. package/dist/commonjs/operations/actionGroups.js.map +1 -1
  81. package/dist/commonjs/operations/activityLogAlerts.js +45 -78
  82. package/dist/commonjs/operations/activityLogAlerts.js.map +1 -1
  83. package/dist/commonjs/operations/activityLogs.js +23 -39
  84. package/dist/commonjs/operations/activityLogs.js.map +1 -1
  85. package/dist/commonjs/operations/alertRuleIncidents.js +10 -26
  86. package/dist/commonjs/operations/alertRuleIncidents.js.map +1 -1
  87. package/dist/commonjs/operations/alertRules.js +19 -52
  88. package/dist/commonjs/operations/alertRules.js.map +1 -1
  89. package/dist/commonjs/operations/autoscaleSettings.js +45 -78
  90. package/dist/commonjs/operations/autoscaleSettings.js.map +1 -1
  91. package/dist/commonjs/operations/azureMonitorWorkspaces.js +56 -84
  92. package/dist/commonjs/operations/azureMonitorWorkspaces.js.map +1 -1
  93. package/dist/commonjs/operations/baselines.js +10 -26
  94. package/dist/commonjs/operations/baselines.js.map +1 -1
  95. package/dist/commonjs/operations/dataCollectionEndpoints.js +45 -78
  96. package/dist/commonjs/operations/dataCollectionEndpoints.js.map +1 -1
  97. package/dist/commonjs/operations/dataCollectionRuleAssociations.js +67 -117
  98. package/dist/commonjs/operations/dataCollectionRuleAssociations.js.map +1 -1
  99. package/dist/commonjs/operations/dataCollectionRules.js +45 -78
  100. package/dist/commonjs/operations/dataCollectionRules.js.map +1 -1
  101. package/dist/commonjs/operations/diagnosticSettings.js +10 -26
  102. package/dist/commonjs/operations/diagnosticSettings.js.map +1 -1
  103. package/dist/commonjs/operations/diagnosticSettingsCategory.js +10 -26
  104. package/dist/commonjs/operations/diagnosticSettingsCategory.js.map +1 -1
  105. package/dist/commonjs/operations/eventCategories.js +10 -26
  106. package/dist/commonjs/operations/eventCategories.js.map +1 -1
  107. package/dist/commonjs/operations/logProfiles.js +10 -26
  108. package/dist/commonjs/operations/logProfiles.js.map +1 -1
  109. package/dist/commonjs/operations/metricAlerts.js +19 -52
  110. package/dist/commonjs/operations/metricAlerts.js.map +1 -1
  111. package/dist/commonjs/operations/metricAlertsStatus.js +1 -0
  112. package/dist/commonjs/operations/metricAlertsStatus.js.map +1 -1
  113. package/dist/commonjs/operations/metricDefinitions.js +19 -52
  114. package/dist/commonjs/operations/metricDefinitions.js.map +1 -1
  115. package/dist/commonjs/operations/metricNamespaces.js +10 -26
  116. package/dist/commonjs/operations/metricNamespaces.js.map +1 -1
  117. package/dist/commonjs/operations/metricsOperations.js +1 -0
  118. package/dist/commonjs/operations/metricsOperations.js.map +1 -1
  119. package/dist/commonjs/operations/monitorOperations.js +23 -39
  120. package/dist/commonjs/operations/monitorOperations.js.map +1 -1
  121. package/dist/commonjs/operations/operations.js +1 -0
  122. package/dist/commonjs/operations/operations.js.map +1 -1
  123. package/dist/commonjs/operations/predictiveMetric.js +1 -0
  124. package/dist/commonjs/operations/predictiveMetric.js.map +1 -1
  125. package/dist/commonjs/operations/privateEndpointConnections.js +23 -12
  126. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  127. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  128. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  129. package/dist/commonjs/operations/privateLinkScopeOperationStatus.js +1 -0
  130. package/dist/commonjs/operations/privateLinkScopeOperationStatus.js.map +1 -1
  131. package/dist/commonjs/operations/privateLinkScopedResources.js +45 -51
  132. package/dist/commonjs/operations/privateLinkScopedResources.js.map +1 -1
  133. package/dist/commonjs/operations/privateLinkScopes.js +56 -84
  134. package/dist/commonjs/operations/privateLinkScopes.js.map +1 -1
  135. package/dist/commonjs/operations/scheduledQueryRules.js +45 -78
  136. package/dist/commonjs/operations/scheduledQueryRules.js.map +1 -1
  137. package/dist/commonjs/operations/tenantActionGroups.js +10 -26
  138. package/dist/commonjs/operations/tenantActionGroups.js.map +1 -1
  139. package/dist/commonjs/operations/tenantActivityLogs.js +23 -39
  140. package/dist/commonjs/operations/tenantActivityLogs.js.map +1 -1
  141. package/dist/commonjs/operations/vMInsights.js +1 -0
  142. package/dist/commonjs/operations/vMInsights.js.map +1 -1
  143. package/dist/commonjs/pagingHelper.js +2 -4
  144. package/dist/commonjs/pagingHelper.js.map +1 -1
  145. package/dist/commonjs/tsdoc-metadata.json +11 -11
  146. package/dist/esm/lroImpl.js +7 -3
  147. package/dist/esm/lroImpl.js.map +1 -1
  148. package/dist/esm/models/mappers.js +449 -195
  149. package/dist/esm/models/mappers.js.map +1 -1
  150. package/dist/esm/monitorClient.js +55 -11
  151. package/dist/esm/monitorClient.js.map +1 -1
  152. package/dist/esm/operations/actionGroups.js +30 -59
  153. package/dist/esm/operations/actionGroups.js.map +1 -1
  154. package/dist/esm/operations/activityLogAlerts.js +45 -79
  155. package/dist/esm/operations/activityLogAlerts.js.map +1 -1
  156. package/dist/esm/operations/activityLogs.js +23 -40
  157. package/dist/esm/operations/activityLogs.js.map +1 -1
  158. package/dist/esm/operations/alertRuleIncidents.js +10 -27
  159. package/dist/esm/operations/alertRuleIncidents.js.map +1 -1
  160. package/dist/esm/operations/alertRules.js +19 -53
  161. package/dist/esm/operations/alertRules.js.map +1 -1
  162. package/dist/esm/operations/autoscaleSettings.js +45 -79
  163. package/dist/esm/operations/autoscaleSettings.js.map +1 -1
  164. package/dist/esm/operations/azureMonitorWorkspaces.js +56 -85
  165. package/dist/esm/operations/azureMonitorWorkspaces.js.map +1 -1
  166. package/dist/esm/operations/baselines.js +10 -27
  167. package/dist/esm/operations/baselines.js.map +1 -1
  168. package/dist/esm/operations/dataCollectionEndpoints.js +45 -79
  169. package/dist/esm/operations/dataCollectionEndpoints.js.map +1 -1
  170. package/dist/esm/operations/dataCollectionRuleAssociations.js +67 -118
  171. package/dist/esm/operations/dataCollectionRuleAssociations.js.map +1 -1
  172. package/dist/esm/operations/dataCollectionRules.js +45 -79
  173. package/dist/esm/operations/dataCollectionRules.js.map +1 -1
  174. package/dist/esm/operations/diagnosticSettings.js +10 -27
  175. package/dist/esm/operations/diagnosticSettings.js.map +1 -1
  176. package/dist/esm/operations/diagnosticSettingsCategory.js +10 -27
  177. package/dist/esm/operations/diagnosticSettingsCategory.js.map +1 -1
  178. package/dist/esm/operations/eventCategories.js +10 -27
  179. package/dist/esm/operations/eventCategories.js.map +1 -1
  180. package/dist/esm/operations/logProfiles.js +10 -27
  181. package/dist/esm/operations/logProfiles.js.map +1 -1
  182. package/dist/esm/operations/metricAlerts.js +19 -53
  183. package/dist/esm/operations/metricAlerts.js.map +1 -1
  184. package/dist/esm/operations/metricAlertsStatus.js +1 -0
  185. package/dist/esm/operations/metricAlertsStatus.js.map +1 -1
  186. package/dist/esm/operations/metricDefinitions.js +19 -53
  187. package/dist/esm/operations/metricDefinitions.js.map +1 -1
  188. package/dist/esm/operations/metricNamespaces.js +10 -27
  189. package/dist/esm/operations/metricNamespaces.js.map +1 -1
  190. package/dist/esm/operations/metricsOperations.js +1 -0
  191. package/dist/esm/operations/metricsOperations.js.map +1 -1
  192. package/dist/esm/operations/monitorOperations.js +23 -40
  193. package/dist/esm/operations/monitorOperations.js.map +1 -1
  194. package/dist/esm/operations/operations.js +1 -0
  195. package/dist/esm/operations/operations.js.map +1 -1
  196. package/dist/esm/operations/predictiveMetric.js +1 -0
  197. package/dist/esm/operations/predictiveMetric.js.map +1 -1
  198. package/dist/esm/operations/privateEndpointConnections.js +23 -12
  199. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  200. package/dist/esm/operations/privateLinkResources.js +1 -0
  201. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  202. package/dist/esm/operations/privateLinkScopeOperationStatus.js +1 -0
  203. package/dist/esm/operations/privateLinkScopeOperationStatus.js.map +1 -1
  204. package/dist/esm/operations/privateLinkScopedResources.js +45 -52
  205. package/dist/esm/operations/privateLinkScopedResources.js.map +1 -1
  206. package/dist/esm/operations/privateLinkScopes.js +56 -85
  207. package/dist/esm/operations/privateLinkScopes.js.map +1 -1
  208. package/dist/esm/operations/scheduledQueryRules.js +45 -79
  209. package/dist/esm/operations/scheduledQueryRules.js.map +1 -1
  210. package/dist/esm/operations/tenantActionGroups.js +10 -27
  211. package/dist/esm/operations/tenantActionGroups.js.map +1 -1
  212. package/dist/esm/operations/tenantActivityLogs.js +23 -40
  213. package/dist/esm/operations/tenantActivityLogs.js.map +1 -1
  214. package/dist/esm/operations/vMInsights.js +1 -0
  215. package/dist/esm/operations/vMInsights.js.map +1 -1
  216. package/dist/esm/pagingHelper.js +2 -4
  217. package/dist/esm/pagingHelper.js.map +1 -1
  218. package/dist/react-native/lroImpl.js +7 -3
  219. package/dist/react-native/lroImpl.js.map +1 -1
  220. package/dist/react-native/models/mappers.js +449 -195
  221. package/dist/react-native/models/mappers.js.map +1 -1
  222. package/dist/react-native/monitorClient.js +55 -11
  223. package/dist/react-native/monitorClient.js.map +1 -1
  224. package/dist/react-native/operations/actionGroups.js +30 -59
  225. package/dist/react-native/operations/actionGroups.js.map +1 -1
  226. package/dist/react-native/operations/activityLogAlerts.js +45 -79
  227. package/dist/react-native/operations/activityLogAlerts.js.map +1 -1
  228. package/dist/react-native/operations/activityLogs.js +23 -40
  229. package/dist/react-native/operations/activityLogs.js.map +1 -1
  230. package/dist/react-native/operations/alertRuleIncidents.js +10 -27
  231. package/dist/react-native/operations/alertRuleIncidents.js.map +1 -1
  232. package/dist/react-native/operations/alertRules.js +19 -53
  233. package/dist/react-native/operations/alertRules.js.map +1 -1
  234. package/dist/react-native/operations/autoscaleSettings.js +45 -79
  235. package/dist/react-native/operations/autoscaleSettings.js.map +1 -1
  236. package/dist/react-native/operations/azureMonitorWorkspaces.js +56 -85
  237. package/dist/react-native/operations/azureMonitorWorkspaces.js.map +1 -1
  238. package/dist/react-native/operations/baselines.js +10 -27
  239. package/dist/react-native/operations/baselines.js.map +1 -1
  240. package/dist/react-native/operations/dataCollectionEndpoints.js +45 -79
  241. package/dist/react-native/operations/dataCollectionEndpoints.js.map +1 -1
  242. package/dist/react-native/operations/dataCollectionRuleAssociations.js +67 -118
  243. package/dist/react-native/operations/dataCollectionRuleAssociations.js.map +1 -1
  244. package/dist/react-native/operations/dataCollectionRules.js +45 -79
  245. package/dist/react-native/operations/dataCollectionRules.js.map +1 -1
  246. package/dist/react-native/operations/diagnosticSettings.js +10 -27
  247. package/dist/react-native/operations/diagnosticSettings.js.map +1 -1
  248. package/dist/react-native/operations/diagnosticSettingsCategory.js +10 -27
  249. package/dist/react-native/operations/diagnosticSettingsCategory.js.map +1 -1
  250. package/dist/react-native/operations/eventCategories.js +10 -27
  251. package/dist/react-native/operations/eventCategories.js.map +1 -1
  252. package/dist/react-native/operations/logProfiles.js +10 -27
  253. package/dist/react-native/operations/logProfiles.js.map +1 -1
  254. package/dist/react-native/operations/metricAlerts.js +19 -53
  255. package/dist/react-native/operations/metricAlerts.js.map +1 -1
  256. package/dist/react-native/operations/metricAlertsStatus.js +1 -0
  257. package/dist/react-native/operations/metricAlertsStatus.js.map +1 -1
  258. package/dist/react-native/operations/metricDefinitions.js +19 -53
  259. package/dist/react-native/operations/metricDefinitions.js.map +1 -1
  260. package/dist/react-native/operations/metricNamespaces.js +10 -27
  261. package/dist/react-native/operations/metricNamespaces.js.map +1 -1
  262. package/dist/react-native/operations/metricsOperations.js +1 -0
  263. package/dist/react-native/operations/metricsOperations.js.map +1 -1
  264. package/dist/react-native/operations/monitorOperations.js +23 -40
  265. package/dist/react-native/operations/monitorOperations.js.map +1 -1
  266. package/dist/react-native/operations/operations.js +1 -0
  267. package/dist/react-native/operations/operations.js.map +1 -1
  268. package/dist/react-native/operations/predictiveMetric.js +1 -0
  269. package/dist/react-native/operations/predictiveMetric.js.map +1 -1
  270. package/dist/react-native/operations/privateEndpointConnections.js +23 -12
  271. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  272. package/dist/react-native/operations/privateLinkResources.js +1 -0
  273. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  274. package/dist/react-native/operations/privateLinkScopeOperationStatus.js +1 -0
  275. package/dist/react-native/operations/privateLinkScopeOperationStatus.js.map +1 -1
  276. package/dist/react-native/operations/privateLinkScopedResources.js +45 -52
  277. package/dist/react-native/operations/privateLinkScopedResources.js.map +1 -1
  278. package/dist/react-native/operations/privateLinkScopes.js +56 -85
  279. package/dist/react-native/operations/privateLinkScopes.js.map +1 -1
  280. package/dist/react-native/operations/scheduledQueryRules.js +45 -79
  281. package/dist/react-native/operations/scheduledQueryRules.js.map +1 -1
  282. package/dist/react-native/operations/tenantActionGroups.js +10 -27
  283. package/dist/react-native/operations/tenantActionGroups.js.map +1 -1
  284. package/dist/react-native/operations/tenantActivityLogs.js +23 -40
  285. package/dist/react-native/operations/tenantActivityLogs.js.map +1 -1
  286. package/dist/react-native/operations/vMInsights.js +1 -0
  287. package/dist/react-native/operations/vMInsights.js.map +1 -1
  288. package/dist/react-native/pagingHelper.js +2 -4
  289. package/dist/react-native/pagingHelper.js.map +1 -1
  290. package/package.json +2 -2
  291. /package/review/{arm-monitor.api.md → arm-monitor-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"dataCollectionEndpoints.js","sourceRoot":"","sources":["../../../src/operations/dataCollectionEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,o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U,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataCollectionEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DataCollectionEndpointResource,\n DataCollectionEndpointsListByResourceGroupNextOptionalParams,\n DataCollectionEndpointsListByResourceGroupOptionalParams,\n DataCollectionEndpointsListByResourceGroupResponse,\n DataCollectionEndpointsListBySubscriptionNextOptionalParams,\n DataCollectionEndpointsListBySubscriptionOptionalParams,\n DataCollectionEndpointsListBySubscriptionResponse,\n DataCollectionEndpointsGetOptionalParams,\n DataCollectionEndpointsGetResponse,\n DataCollectionEndpointsCreateOptionalParams,\n DataCollectionEndpointsCreateResponse,\n DataCollectionEndpointsUpdateOptionalParams,\n DataCollectionEndpointsUpdateResponse,\n DataCollectionEndpointsDeleteOptionalParams,\n DataCollectionEndpointsListByResourceGroupNextResponse,\n DataCollectionEndpointsListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataCollectionEndpoints operations. */\nexport class DataCollectionEndpointsImpl implements DataCollectionEndpoints {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DataCollectionEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists all data collection endpoints in the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionEndpointResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionEndpointResource[]> {\n let result: DataCollectionEndpointsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<DataCollectionEndpointResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all data collection endpoints in the specified subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionEndpointResource> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionEndpointResource[]> {\n let result: DataCollectionEndpointsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<DataCollectionEndpointResource> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all data collection endpoints in the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): Promise<DataCollectionEndpointsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Lists all data collection endpoints in the specified subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): Promise<DataCollectionEndpointsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Returns the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsGetOptionalParams,\n ): Promise<DataCollectionEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsCreateOptionalParams,\n ): Promise<DataCollectionEndpointsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates part of a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsUpdateOptionalParams,\n ): Promise<DataCollectionEndpointsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: DataCollectionEndpointsListByResourceGroupNextOptionalParams,\n ): Promise<DataCollectionEndpointsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: DataCollectionEndpointsListBySubscriptionNextOptionalParams,\n ): Promise<DataCollectionEndpointsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"dataCollectionEndpoints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AAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataCollectionEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DataCollectionEndpointResource,\n DataCollectionEndpointsListByResourceGroupNextOptionalParams,\n DataCollectionEndpointsListByResourceGroupOptionalParams,\n DataCollectionEndpointsListByResourceGroupResponse,\n DataCollectionEndpointsListBySubscriptionNextOptionalParams,\n DataCollectionEndpointsListBySubscriptionOptionalParams,\n DataCollectionEndpointsListBySubscriptionResponse,\n DataCollectionEndpointsGetOptionalParams,\n DataCollectionEndpointsGetResponse,\n DataCollectionEndpointsCreateOptionalParams,\n DataCollectionEndpointsCreateResponse,\n DataCollectionEndpointsUpdateOptionalParams,\n DataCollectionEndpointsUpdateResponse,\n DataCollectionEndpointsDeleteOptionalParams,\n DataCollectionEndpointsListByResourceGroupNextResponse,\n DataCollectionEndpointsListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataCollectionEndpoints operations. */\nexport class DataCollectionEndpointsImpl implements DataCollectionEndpoints {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DataCollectionEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists all data collection endpoints in the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionEndpointResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionEndpointResource[]> {\n let result: DataCollectionEndpointsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<DataCollectionEndpointResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all data collection endpoints in the specified subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionEndpointResource> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionEndpointResource[]> {\n let result: DataCollectionEndpointsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<DataCollectionEndpointResource> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all data collection endpoints in the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: DataCollectionEndpointsListByResourceGroupOptionalParams,\n ): Promise<DataCollectionEndpointsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Lists all data collection endpoints in the specified subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: DataCollectionEndpointsListBySubscriptionOptionalParams,\n ): Promise<DataCollectionEndpointsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Returns the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsGetOptionalParams,\n ): Promise<DataCollectionEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsCreateOptionalParams,\n ): Promise<DataCollectionEndpointsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates part of a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsUpdateOptionalParams,\n ): Promise<DataCollectionEndpointsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes a data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionEndpointsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: DataCollectionEndpointsListByResourceGroupNextOptionalParams,\n ): Promise<DataCollectionEndpointsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: DataCollectionEndpointsListBySubscriptionNextOptionalParams,\n ): Promise<DataCollectionEndpointsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionEndpointResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing DataCollectionRuleAssociations operations. */
15
14
  export class DataCollectionRuleAssociationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class DataCollectionRuleAssociations class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class DataCollectionRuleAssociationsImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listByResourcePagingPage(resourceUri, options, settings);
42
42
  },
43
43
  };
44
44
  }
45
- listByResourcePagingPage(resourceUri, options, settings) {
46
- return __asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._listByResource(resourceUri, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._listByResourceNext(resourceUri, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *listByResourcePagingPage(resourceUri, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._listByResource(resourceUri, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._listByResourceNext(resourceUri, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- listByResourcePagingAll(resourceUri, options) {
66
- return __asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.listByResourcePagingPage(resourceUri, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *listByResourcePagingAll(resourceUri, options) {
64
+ for await (const page of this.listByResourcePagingPage(resourceUri, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Lists associations for the specified data collection rule.
@@ -98,52 +81,35 @@ export class DataCollectionRuleAssociationsImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByRulePagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByRule(resourceGroupName, dataCollectionRuleName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByRuleNext(resourceGroupName, dataCollectionRuleName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByRule(resourceGroupName, dataCollectionRuleName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByRuleNext(resourceGroupName, dataCollectionRuleName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByRulePagingAll(resourceGroupName, dataCollectionRuleName, options) {
129
- return __asyncGenerator(this, arguments, function* listByRulePagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByRulePagingAll(resourceGroupName, dataCollectionRuleName, options) {
110
+ for await (const page of this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Lists associations for the specified data collection endpoint.
@@ -162,52 +128,35 @@ export class DataCollectionRuleAssociationsImpl {
162
128
  return this;
163
129
  },
164
130
  byPage: (settings) => {
165
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
131
+ if (settings?.maxPageSize) {
166
132
  throw new Error("maxPageSize is not supported by this operation.");
167
133
  }
168
134
  return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings);
169
135
  },
170
136
  };
171
137
  }
172
- listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
173
- return __asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
174
- let result;
175
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
176
- if (!continuationToken) {
177
- result = yield __await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
178
- let page = result.value || [];
179
- continuationToken = result.nextLink;
180
- setContinuationToken(page, continuationToken);
181
- yield yield __await(page);
182
- }
183
- while (continuationToken) {
184
- result = yield __await(this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options));
185
- continuationToken = result.nextLink;
186
- let page = result.value || [];
187
- setContinuationToken(page, continuationToken);
188
- yield yield __await(page);
189
- }
190
- });
138
+ async *listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
139
+ let result;
140
+ let continuationToken = settings?.continuationToken;
141
+ if (!continuationToken) {
142
+ result = await this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options);
143
+ let page = result.value || [];
144
+ continuationToken = result.nextLink;
145
+ setContinuationToken(page, continuationToken);
146
+ yield page;
147
+ }
148
+ while (continuationToken) {
149
+ result = await this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options);
150
+ continuationToken = result.nextLink;
151
+ let page = result.value || [];
152
+ setContinuationToken(page, continuationToken);
153
+ yield page;
154
+ }
191
155
  }
192
- listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
193
- return __asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingAll_1() {
194
- var _a, e_3, _b, _c;
195
- try {
196
- for (var _d = true, _e = __asyncValues(this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
197
- _c = _f.value;
198
- _d = false;
199
- const page = _c;
200
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
201
- }
202
- }
203
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
204
- finally {
205
- try {
206
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
207
- }
208
- finally { if (e_3) throw e_3.error; }
209
- }
210
- });
156
+ async *listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
157
+ for await (const page of this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)) {
158
+ yield* page;
159
+ }
211
160
  }
212
161
  /**
213
162
  * Lists associations for the specified resource.
@@ -1 +1 @@
1
- {"version":3,"file":"dataCollectionRuleAssociations.js","sourceRoot":"","sources":["../../../src/operations/dataCollectionRuleAssociations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAuBtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAM,OAAO,kCAAkC;IAK7C;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,WAAmB,EACnB,OAAoE;QAEpE,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAChE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aA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AC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataCollectionRuleAssociations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DataCollectionRuleAssociationProxyOnlyResource,\n DataCollectionRuleAssociationsListByResourceNextOptionalParams,\n DataCollectionRuleAssociationsListByResourceOptionalParams,\n DataCollectionRuleAssociationsListByResourceResponse,\n DataCollectionRuleAssociationsListByRuleNextOptionalParams,\n DataCollectionRuleAssociationsListByRuleOptionalParams,\n DataCollectionRuleAssociationsListByRuleResponse,\n DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams,\n DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n DataCollectionRuleAssociationsListByDataCollectionEndpointResponse,\n DataCollectionRuleAssociationsGetOptionalParams,\n DataCollectionRuleAssociationsGetResponse,\n DataCollectionRuleAssociationsCreateOptionalParams,\n DataCollectionRuleAssociationsCreateResponse,\n DataCollectionRuleAssociationsDeleteOptionalParams,\n DataCollectionRuleAssociationsListByResourceNextResponse,\n DataCollectionRuleAssociationsListByRuleNextResponse,\n DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataCollectionRuleAssociations operations. */\nexport class DataCollectionRuleAssociationsImpl\n implements DataCollectionRuleAssociations\n{\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DataCollectionRuleAssociations class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists associations for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n public listByResource(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByResourcePagingAll(resourceUri, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourcePagingPage(resourceUri, options, settings);\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(resourceUri, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceNext(\n resourceUri,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByResourcePagingPage(\n resourceUri,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified data collection rule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByRule(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByRulePagingAll(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByRulePagingPage(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByRulePagingPage(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByRuleResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByRule(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByRuleNext(\n resourceGroupName,\n dataCollectionRuleName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByRulePagingAll(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByRulePagingPage(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n public listByDataCollectionEndpoint(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByDataCollectionEndpointPagingAll(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDataCollectionEndpointPagingPage(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDataCollectionEndpointPagingPage(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByDataCollectionEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDataCollectionEndpoint(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDataCollectionEndpointNext(\n resourceGroupName,\n dataCollectionEndpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDataCollectionEndpointPagingAll(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByDataCollectionEndpointPagingPage(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n private _listByResource(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * Lists associations for the specified data collection rule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByRule(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByRuleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionRuleName, options },\n listByRuleOperationSpec,\n );\n }\n\n /**\n * Lists associations for the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n private _listByDataCollectionEndpoint(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByDataCollectionEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n listByDataCollectionEndpointOperationSpec,\n );\n }\n\n /**\n * Returns the specified association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsGetOptionalParams,\n ): Promise<DataCollectionRuleAssociationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates an association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n create(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsCreateOptionalParams,\n ): Promise<DataCollectionRuleAssociationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceUri The identifier of the resource.\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceUri: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByResourceNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listByResourceNextOperationSpec,\n );\n }\n\n /**\n * ListByRuleNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByRule method.\n * @param options The options parameters.\n */\n private _listByRuleNext(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByRuleNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByRuleNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionRuleName, nextLink, options },\n listByRuleNextOperationSpec,\n );\n }\n\n /**\n * ListByDataCollectionEndpointNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByDataCollectionEndpoint\n * method.\n * @param options The options parameters.\n */\n private _listByDataCollectionEndpointNext(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, nextLink, options },\n listByDataCollectionEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.resourceUri1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDataCollectionEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n 201: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceUri1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.dataCollectionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDataCollectionEndpointNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
1
+ {"version":3,"file":"dataCollectionRuleAssociations.js","sourceRoot":"","sources":["../../../src/operations/dataCollectionRuleAssociations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAuBtD,4CAA4C;AAC5C,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AAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataCollectionRuleAssociations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MonitorClient } from \"../monitorClient.js\";\nimport {\n DataCollectionRuleAssociationProxyOnlyResource,\n DataCollectionRuleAssociationsListByResourceNextOptionalParams,\n DataCollectionRuleAssociationsListByResourceOptionalParams,\n DataCollectionRuleAssociationsListByResourceResponse,\n DataCollectionRuleAssociationsListByRuleNextOptionalParams,\n DataCollectionRuleAssociationsListByRuleOptionalParams,\n DataCollectionRuleAssociationsListByRuleResponse,\n DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams,\n DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n DataCollectionRuleAssociationsListByDataCollectionEndpointResponse,\n DataCollectionRuleAssociationsGetOptionalParams,\n DataCollectionRuleAssociationsGetResponse,\n DataCollectionRuleAssociationsCreateOptionalParams,\n DataCollectionRuleAssociationsCreateResponse,\n DataCollectionRuleAssociationsDeleteOptionalParams,\n DataCollectionRuleAssociationsListByResourceNextResponse,\n DataCollectionRuleAssociationsListByRuleNextResponse,\n DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataCollectionRuleAssociations operations. */\nexport class DataCollectionRuleAssociationsImpl\n implements DataCollectionRuleAssociations\n{\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DataCollectionRuleAssociations class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists associations for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n public listByResource(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByResourcePagingAll(resourceUri, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourcePagingPage(resourceUri, options, settings);\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(resourceUri, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceNext(\n resourceUri,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByResourcePagingPage(\n resourceUri,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified data collection rule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByRule(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByRulePagingAll(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByRulePagingPage(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByRulePagingPage(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByRuleResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByRule(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByRuleNext(\n resourceGroupName,\n dataCollectionRuleName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByRulePagingAll(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByRulePagingPage(\n resourceGroupName,\n dataCollectionRuleName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n public listByDataCollectionEndpoint(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n const iter = this.listByDataCollectionEndpointPagingAll(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDataCollectionEndpointPagingPage(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDataCollectionEndpointPagingPage(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource[]> {\n let result: DataCollectionRuleAssociationsListByDataCollectionEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDataCollectionEndpoint(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDataCollectionEndpointNext(\n resourceGroupName,\n dataCollectionEndpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDataCollectionEndpointPagingAll(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): AsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource> {\n for await (const page of this.listByDataCollectionEndpointPagingPage(\n resourceGroupName,\n dataCollectionEndpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists associations for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n private _listByResource(\n resourceUri: string,\n options?: DataCollectionRuleAssociationsListByResourceOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * Lists associations for the specified data collection rule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByRule(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n options?: DataCollectionRuleAssociationsListByRuleOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByRuleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionRuleName, options },\n listByRuleOperationSpec,\n );\n }\n\n /**\n * Lists associations for the specified data collection endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param options The options parameters.\n */\n private _listByDataCollectionEndpoint(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByDataCollectionEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, options },\n listByDataCollectionEndpointOperationSpec,\n );\n }\n\n /**\n * Returns the specified association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsGetOptionalParams,\n ): Promise<DataCollectionRuleAssociationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates an association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n create(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsCreateOptionalParams,\n ): Promise<DataCollectionRuleAssociationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an association.\n * @param resourceUri The identifier of the resource.\n * @param associationName The name of the association. The name is case insensitive.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n associationName: string,\n options?: DataCollectionRuleAssociationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, associationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceUri The identifier of the resource.\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceUri: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByResourceNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listByResourceNextOperationSpec,\n );\n }\n\n /**\n * ListByRuleNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByRule method.\n * @param options The options parameters.\n */\n private _listByRuleNext(\n resourceGroupName: string,\n dataCollectionRuleName: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByRuleNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByRuleNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionRuleName, nextLink, options },\n listByRuleNextOperationSpec,\n );\n }\n\n /**\n * ListByDataCollectionEndpointNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case\n * insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByDataCollectionEndpoint\n * method.\n * @param options The options parameters.\n */\n private _listByDataCollectionEndpointNext(\n resourceGroupName: string,\n dataCollectionEndpointName: string,\n nextLink: string,\n options?: DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams,\n ): Promise<DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, dataCollectionEndpointName, nextLink, options },\n listByDataCollectionEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.resourceUri1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDataCollectionEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n 201: {\n bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri1,\n Parameters.associationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.resourceUri1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByRuleNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.dataCollectionRuleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDataCollectionEndpointNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseCommonV2,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.dataCollectionEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}