@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
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing DataCollectionRuleAssociations operations. */
18
18
  class DataCollectionRuleAssociationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class DataCollectionRuleAssociations class.
21
22
  * @param client Reference to the service client
@@ -38,52 +39,35 @@ class DataCollectionRuleAssociationsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByResourcePagingPage(resourceUri, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listByResourcePagingPage(resourceUri, options, settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield tslib_1.__await(this._listByResource(resourceUri, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield yield tslib_1.__await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield tslib_1.__await(this._listByResourceNext(resourceUri, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield yield tslib_1.__await(page);
65
- }
66
- });
49
+ async *listByResourcePagingPage(resourceUri, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByResource(resourceUri, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByResourceNext(resourceUri, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
67
66
  }
68
- listByResourcePagingAll(resourceUri, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourcePagingPage(resourceUri, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listByResourcePagingAll(resourceUri, options) {
68
+ for await (const page of this.listByResourcePagingPage(resourceUri, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * Lists associations for the specified data collection rule.
@@ -101,52 +85,35 @@ class DataCollectionRuleAssociationsImpl {
101
85
  return this;
102
86
  },
103
87
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
105
89
  throw new Error("maxPageSize is not supported by this operation.");
106
90
  }
107
91
  return this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings);
108
92
  },
109
93
  };
110
94
  }
111
- listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listByRulePagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._listByRule(resourceGroupName, dataCollectionRuleName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listByRuleNext(resourceGroupName, dataCollectionRuleName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- });
95
+ async *listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByRule(resourceGroupName, dataCollectionRuleName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByRuleNext(resourceGroupName, dataCollectionRuleName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
130
112
  }
131
- listByRulePagingAll(resourceGroupName, dataCollectionRuleName, options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listByRulePagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
113
+ async *listByRulePagingAll(resourceGroupName, dataCollectionRuleName, options) {
114
+ for await (const page of this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * Lists associations for the specified data collection endpoint.
@@ -165,52 +132,35 @@ class DataCollectionRuleAssociationsImpl {
165
132
  return this;
166
133
  },
167
134
  byPage: (settings) => {
168
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
135
+ if (settings?.maxPageSize) {
169
136
  throw new Error("maxPageSize is not supported by this operation.");
170
137
  }
171
138
  return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings);
172
139
  },
173
140
  };
174
141
  }
175
- listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
176
- return tslib_1.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
177
- let result;
178
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
179
- if (!continuationToken) {
180
- result = yield tslib_1.__await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
181
- let page = result.value || [];
182
- continuationToken = result.nextLink;
183
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
184
- yield yield tslib_1.__await(page);
185
- }
186
- while (continuationToken) {
187
- result = yield tslib_1.__await(this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options));
188
- continuationToken = result.nextLink;
189
- let page = result.value || [];
190
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
191
- yield yield tslib_1.__await(page);
192
- }
193
- });
142
+ async *listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
143
+ let result;
144
+ let continuationToken = settings?.continuationToken;
145
+ if (!continuationToken) {
146
+ result = await this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options);
147
+ let page = result.value || [];
148
+ continuationToken = result.nextLink;
149
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
150
+ yield page;
151
+ }
152
+ while (continuationToken) {
153
+ result = await this._listByDataCollectionEndpointNext(resourceGroupName, dataCollectionEndpointName, continuationToken, options);
154
+ continuationToken = result.nextLink;
155
+ let page = result.value || [];
156
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
157
+ yield page;
158
+ }
194
159
  }
195
- listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
196
- return tslib_1.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingAll_1() {
197
- var _a, e_3, _b, _c;
198
- try {
199
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
200
- _c = _f.value;
201
- _d = false;
202
- const page = _c;
203
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
204
- }
205
- }
206
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
207
- finally {
208
- try {
209
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
210
- }
211
- finally { if (e_3) throw e_3.error; }
212
- }
213
- });
160
+ async *listByDataCollectionEndpointPagingAll(resourceGroupName, dataCollectionEndpointName, options) {
161
+ for await (const page of this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options)) {
162
+ yield* page;
163
+ }
214
164
  }
215
165
  /**
216
166
  * 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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAa,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,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AAM,6CAA6C,GACjD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EACR,OAAO,CAAC,wDAAwD;SACnE;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,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","sour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AAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,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"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing DataCollectionRules operations. */
18
18
  class DataCollectionRulesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class DataCollectionRules class.
21
22
  * @param client Reference to the service client
@@ -38,52 +39,35 @@ class DataCollectionRulesImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield yield tslib_1.__await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield yield tslib_1.__await(page);
65
- }
66
- });
49
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByResourceGroup(resourceGroupName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
67
66
  }
68
- listByResourceGroupPagingAll(resourceGroupName, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
68
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * Lists all data collection rules in the specified subscription.
@@ -99,52 +83,35 @@ class DataCollectionRulesImpl {
99
83
  return this;
100
84
  },
101
85
  byPage: (settings) => {
102
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
86
+ if (settings?.maxPageSize) {
103
87
  throw new Error("maxPageSize is not supported by this operation.");
104
88
  }
105
89
  return this.listBySubscriptionPagingPage(options, settings);
106
90
  },
107
91
  };
108
92
  }
109
- listBySubscriptionPagingPage(options, settings) {
110
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
111
- let result;
112
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
- if (!continuationToken) {
114
- result = yield tslib_1.__await(this._listBySubscription(options));
115
- let page = result.value || [];
116
- continuationToken = result.nextLink;
117
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
118
- yield yield tslib_1.__await(page);
119
- }
120
- while (continuationToken) {
121
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
125
- yield yield tslib_1.__await(page);
126
- }
127
- });
93
+ async *listBySubscriptionPagingPage(options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listBySubscription(options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listBySubscriptionNext(continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
108
+ yield page;
109
+ }
128
110
  }
129
- listBySubscriptionPagingAll(options) {
130
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
131
- var _a, e_2, _b, _c;
132
- try {
133
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
134
- _c = _f.value;
135
- _d = false;
136
- const page = _c;
137
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
138
- }
139
- }
140
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
141
- finally {
142
- try {
143
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
144
- }
145
- finally { if (e_2) throw e_2.error; }
146
- }
147
- });
111
+ async *listBySubscriptionPagingAll(options) {
112
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
113
+ yield* page;
114
+ }
148
115
  }
149
116
  /**
150
117
  * Lists all data collection rules in the specified resource group.