@azure/arm-monitor 8.0.0-alpha.20250619.1 → 8.0.0-alpha.20250718.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -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";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing PrivateLinkScopedResources operations. */
17
16
  export class PrivateLinkScopedResourcesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class PrivateLinkScopedResources class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class PrivateLinkScopedResourcesImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByPrivateLinkScope(resourceGroupName, scopeName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
69
- return __asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__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 __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
67
+ for await (const page of this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Gets a scoped resource in a private link scope.
@@ -108,14 +91,19 @@ export class PrivateLinkScopedResourcesImpl {
108
91
  return this.client.sendOperationRequest(args, spec);
109
92
  };
110
93
  const sendOperationFn = async (args, spec) => {
111
- var _a;
112
94
  let currentRawResponse = undefined;
113
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
95
+ const providedCallback = args.options?.onResponse;
114
96
  const callback = (rawResponse, flatResponse) => {
115
97
  currentRawResponse = rawResponse;
116
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
98
+ providedCallback?.(rawResponse, flatResponse);
99
+ };
100
+ const updatedArgs = {
101
+ ...args,
102
+ options: {
103
+ ...args.options,
104
+ onResponse: callback,
105
+ },
117
106
  };
118
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
119
107
  const flatResponse = await directSendOperation(updatedArgs, spec);
120
108
  return {
121
109
  flatResponse,
@@ -132,8 +120,8 @@ export class PrivateLinkScopedResourcesImpl {
132
120
  spec: createOrUpdateOperationSpec,
133
121
  });
134
122
  const poller = await createHttpPoller(lro, {
135
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
136
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
123
+ restoreFrom: options?.resumeFrom,
124
+ intervalInMs: options?.updateIntervalInMs,
137
125
  });
138
126
  await poller.poll();
139
127
  return poller;
@@ -162,14 +150,19 @@ export class PrivateLinkScopedResourcesImpl {
162
150
  return this.client.sendOperationRequest(args, spec);
163
151
  };
164
152
  const sendOperationFn = async (args, spec) => {
165
- var _a;
166
153
  let currentRawResponse = undefined;
167
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
154
+ const providedCallback = args.options?.onResponse;
168
155
  const callback = (rawResponse, flatResponse) => {
169
156
  currentRawResponse = rawResponse;
170
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
157
+ providedCallback?.(rawResponse, flatResponse);
158
+ };
159
+ const updatedArgs = {
160
+ ...args,
161
+ options: {
162
+ ...args.options,
163
+ onResponse: callback,
164
+ },
171
165
  };
172
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
173
166
  const flatResponse = await directSendOperation(updatedArgs, spec);
174
167
  return {
175
168
  flatResponse,
@@ -186,8 +179,8 @@ export class PrivateLinkScopedResourcesImpl {
186
179
  spec: deleteOperationSpec,
187
180
  });
188
181
  const poller = await createHttpPoller(lro, {
189
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
190
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
182
+ restoreFrom: options?.resumeFrom,
183
+ intervalInMs: options?.updateIntervalInMs,
191
184
  });
192
185
  await poller.poll();
193
186
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkScopedResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkScopedResources.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,SAAiB,EACjB,OAAwE;QAExE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,gCAAgC,CAC1C,iBAAiB,EACjB,SAAS,EAC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AAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;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 { PrivateLinkScopedResources } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ScopedResource,\n PrivateLinkScopedResourcesListByPrivateLinkScopeNextOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeResponse,\n PrivateLinkScopedResourcesGetOptionalParams,\n PrivateLinkScopedResourcesGetResponse,\n PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n PrivateLinkScopedResourcesCreateOrUpdateResponse,\n PrivateLinkScopedResourcesDeleteOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkScopedResources operations. */\nexport class PrivateLinkScopedResourcesImpl\n implements PrivateLinkScopedResources\n{\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkScopedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets all private endpoint connections on a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n public listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): PagedAsyncIterableIterator<ScopedResource> {\n const iter = this.listByPrivateLinkScopePagingAll(\n resourceGroupName,\n scopeName,\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.listByPrivateLinkScopePagingPage(\n resourceGroupName,\n scopeName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByPrivateLinkScopePagingPage(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ScopedResource[]> {\n let result: PrivateLinkScopedResourcesListByPrivateLinkScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByPrivateLinkScope(\n resourceGroupName,\n scopeName,\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._listByPrivateLinkScopeNext(\n resourceGroupName,\n scopeName,\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 *listByPrivateLinkScopePagingAll(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): AsyncIterableIterator<ScopedResource> {\n for await (const page of this.listByPrivateLinkScopePagingPage(\n resourceGroupName,\n scopeName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a scoped resource in a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesGetOptionalParams,\n ): Promise<PrivateLinkScopedResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param parameters A private link scoped resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n parameters: ScopedResource,\n options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>,\n PrivateLinkScopedResourcesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateLinkScopedResourcesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, name, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateLinkScopedResourcesCreateOrUpdateResponse,\n OperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param parameters A private link scoped resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n parameters: ScopedResource,\n options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n ): Promise<PrivateLinkScopedResourcesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n scopeName,\n name,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, name, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n scopeName,\n name,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all private endpoint connections on a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n private _listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): Promise<PrivateLinkScopedResourcesListByPrivateLinkScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n listByPrivateLinkScopeOperationSpec,\n );\n }\n\n /**\n * ListByPrivateLinkScopeNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.\n * @param options The options parameters.\n */\n private _listByPrivateLinkScopeNext(\n resourceGroupName: string,\n scopeName: string,\n nextLink: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeNextOptionalParams,\n ): Promise<PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, nextLink, options },\n listByPrivateLinkScopeNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResource,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResource,\n },\n 201: {\n bodyMapper: Mappers.ScopedResource,\n },\n 202: {\n bodyMapper: Mappers.ScopedResource,\n },\n 204: {\n bodyMapper: Mappers.ScopedResource,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\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/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResourceListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPrivateLinkScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResourceListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateLinkScopedResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkScopedResources.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGxB,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,SAAiB,EACjB,OAAwE;QAExE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,C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AC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;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 { PrivateLinkScopedResources } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ScopedResource,\n PrivateLinkScopedResourcesListByPrivateLinkScopeNextOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeResponse,\n PrivateLinkScopedResourcesGetOptionalParams,\n PrivateLinkScopedResourcesGetResponse,\n PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n PrivateLinkScopedResourcesCreateOrUpdateResponse,\n PrivateLinkScopedResourcesDeleteOptionalParams,\n PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkScopedResources operations. */\nexport class PrivateLinkScopedResourcesImpl\n implements PrivateLinkScopedResources\n{\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkScopedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets all private endpoint connections on a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n public listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): PagedAsyncIterableIterator<ScopedResource> {\n const iter = this.listByPrivateLinkScopePagingAll(\n resourceGroupName,\n scopeName,\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.listByPrivateLinkScopePagingPage(\n resourceGroupName,\n scopeName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByPrivateLinkScopePagingPage(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ScopedResource[]> {\n let result: PrivateLinkScopedResourcesListByPrivateLinkScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByPrivateLinkScope(\n resourceGroupName,\n scopeName,\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._listByPrivateLinkScopeNext(\n resourceGroupName,\n scopeName,\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 *listByPrivateLinkScopePagingAll(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): AsyncIterableIterator<ScopedResource> {\n for await (const page of this.listByPrivateLinkScopePagingPage(\n resourceGroupName,\n scopeName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a scoped resource in a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesGetOptionalParams,\n ): Promise<PrivateLinkScopedResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param parameters A private link scoped resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n parameters: ScopedResource,\n options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>,\n PrivateLinkScopedResourcesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateLinkScopedResourcesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, name, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateLinkScopedResourcesCreateOrUpdateResponse,\n OperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param parameters A private link scoped resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n parameters: ScopedResource,\n options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,\n ): Promise<PrivateLinkScopedResourcesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n scopeName,\n name,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, name, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param name The name of the scoped resource object.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n scopeName: string,\n name: string,\n options?: PrivateLinkScopedResourcesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n scopeName,\n name,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all private endpoint connections on a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n private _listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,\n ): Promise<PrivateLinkScopedResourcesListByPrivateLinkScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n listByPrivateLinkScopeOperationSpec,\n );\n }\n\n /**\n * ListByPrivateLinkScopeNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.\n * @param options The options parameters.\n */\n private _listByPrivateLinkScopeNext(\n resourceGroupName: string,\n scopeName: string,\n nextLink: string,\n options?: PrivateLinkScopedResourcesListByPrivateLinkScopeNextOptionalParams,\n ): Promise<PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, nextLink, options },\n listByPrivateLinkScopeNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResource,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResource,\n },\n 201: {\n bodyMapper: Mappers.ScopedResource,\n },\n 202: {\n bodyMapper: Mappers.ScopedResource,\n },\n 204: {\n bodyMapper: Mappers.ScopedResource,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\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/privateLinkScopes/{scopeName}/scopedResources/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResourceListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPrivateLinkScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScopedResourceListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.scopeName,\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";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing PrivateLinkScopes operations. */
17
16
  export class PrivateLinkScopesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class PrivateLinkScopes class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class PrivateLinkScopesImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(options) {
65
+ for await (const page of this.listPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Gets a list of Azure Monitor PrivateLinkScopes within a resource group.
@@ -98,52 +81,35 @@ export class PrivateLinkScopesImpl {
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.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, 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 *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
@@ -171,14 +137,19 @@ export class PrivateLinkScopesImpl {
171
137
  return this.client.sendOperationRequest(args, spec);
172
138
  };
173
139
  const sendOperationFn = async (args, spec) => {
174
- var _a;
175
140
  let currentRawResponse = undefined;
176
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
141
+ const providedCallback = args.options?.onResponse;
177
142
  const callback = (rawResponse, flatResponse) => {
178
143
  currentRawResponse = rawResponse;
179
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
144
+ providedCallback?.(rawResponse, flatResponse);
145
+ };
146
+ const updatedArgs = {
147
+ ...args,
148
+ options: {
149
+ ...args.options,
150
+ onResponse: callback,
151
+ },
180
152
  };
181
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
182
153
  const flatResponse = await directSendOperation(updatedArgs, spec);
183
154
  return {
184
155
  flatResponse,
@@ -195,8 +166,8 @@ export class PrivateLinkScopesImpl {
195
166
  spec: deleteOperationSpec,
196
167
  });
197
168
  const poller = await createHttpPoller(lro, {
198
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
199
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
169
+ restoreFrom: options?.resumeFrom,
170
+ intervalInMs: options?.updateIntervalInMs,
200
171
  });
201
172
  await poller.poll();
202
173
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkScopes.js","sourceRoot":"","sources":["../../../src/operations/privateLinkScopes.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA6C,EAC7C,QAAuB;;YAEvB,IAAI,M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* 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 { PrivateLinkScopes } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AzureMonitorPrivateLinkScope,\n PrivateLinkScopesListNextOptionalParams,\n PrivateLinkScopesListOptionalParams,\n PrivateLinkScopesListResponse,\n PrivateLinkScopesListByResourceGroupNextOptionalParams,\n PrivateLinkScopesListByResourceGroupOptionalParams,\n PrivateLinkScopesListByResourceGroupResponse,\n PrivateLinkScopesDeleteOptionalParams,\n PrivateLinkScopesGetOptionalParams,\n PrivateLinkScopesGetResponse,\n PrivateLinkScopesCreateOrUpdateOptionalParams,\n PrivateLinkScopesCreateOrUpdateResponse,\n TagsResource,\n PrivateLinkScopesUpdateTagsOptionalParams,\n PrivateLinkScopesUpdateTagsResponse,\n PrivateLinkScopesListNextResponse,\n PrivateLinkScopesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkScopes operations. */\nexport class PrivateLinkScopesImpl implements PrivateLinkScopes {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkScopes class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: PrivateLinkScopesListOptionalParams,\n ): PagedAsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PrivateLinkScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {\n let result: PrivateLinkScopesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: PrivateLinkScopesListOptionalParams,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Azure Monitor PrivateLinkScopes within a 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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AzureMonitorPrivateLinkScope> {\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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {\n let result: PrivateLinkScopesListByResourceGroupResponse;\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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: PrivateLinkScopesListOptionalParams,\n ): Promise<PrivateLinkScopesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list of Azure Monitor PrivateLinkScopes within a 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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): Promise<PrivateLinkScopesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Deletes a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n scopeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesGetOptionalParams,\n ): Promise<PrivateLinkScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value\n * for InstrumentationKey nor AppId in the Put operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or update\n * a Azure Monitor PrivateLinkScope.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope,\n options?: PrivateLinkScopesCreateOrUpdateOptionalParams,\n ): Promise<PrivateLinkScopesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n scopeName,\n azureMonitorPrivateLinkScopePayload,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n scopeName: string,\n privateLinkScopeTags: TagsResource,\n options?: PrivateLinkScopesUpdateTagsOptionalParams,\n ): Promise<PrivateLinkScopesUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, privateLinkScopeTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: PrivateLinkScopesListNextOptionalParams,\n ): Promise<PrivateLinkScopesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\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?: PrivateLinkScopesListByResourceGroupNextOptionalParams,\n ): Promise<PrivateLinkScopesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n 201: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.azureMonitorPrivateLinkScopePayload,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.privateLinkScopeTags,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\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.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateLinkScopes.js","sourceRoot":"","sources":["../../../src/operations/privateLinkScopes.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAA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* 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 { PrivateLinkScopes } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AzureMonitorPrivateLinkScope,\n PrivateLinkScopesListNextOptionalParams,\n PrivateLinkScopesListOptionalParams,\n PrivateLinkScopesListResponse,\n PrivateLinkScopesListByResourceGroupNextOptionalParams,\n PrivateLinkScopesListByResourceGroupOptionalParams,\n PrivateLinkScopesListByResourceGroupResponse,\n PrivateLinkScopesDeleteOptionalParams,\n PrivateLinkScopesGetOptionalParams,\n PrivateLinkScopesGetResponse,\n PrivateLinkScopesCreateOrUpdateOptionalParams,\n PrivateLinkScopesCreateOrUpdateResponse,\n TagsResource,\n PrivateLinkScopesUpdateTagsOptionalParams,\n PrivateLinkScopesUpdateTagsResponse,\n PrivateLinkScopesListNextResponse,\n PrivateLinkScopesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkScopes operations. */\nexport class PrivateLinkScopesImpl implements PrivateLinkScopes {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkScopes class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: PrivateLinkScopesListOptionalParams,\n ): PagedAsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PrivateLinkScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {\n let result: PrivateLinkScopesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: PrivateLinkScopesListOptionalParams,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Azure Monitor PrivateLinkScopes within a 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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AzureMonitorPrivateLinkScope> {\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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {\n let result: PrivateLinkScopesListByResourceGroupResponse;\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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<AzureMonitorPrivateLinkScope> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: PrivateLinkScopesListOptionalParams,\n ): Promise<PrivateLinkScopesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list of Azure Monitor PrivateLinkScopes within a 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?: PrivateLinkScopesListByResourceGroupOptionalParams,\n ): Promise<PrivateLinkScopesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Deletes a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, scopeName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n scopeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkScopesGetOptionalParams,\n ): Promise<PrivateLinkScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value\n * for InstrumentationKey nor AppId in the Put operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or update\n * a Azure Monitor PrivateLinkScope.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope,\n options?: PrivateLinkScopesCreateOrUpdateOptionalParams,\n ): Promise<PrivateLinkScopesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n scopeName,\n azureMonitorPrivateLinkScopePayload,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.\n * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n scopeName: string,\n privateLinkScopeTags: TagsResource,\n options?: PrivateLinkScopesUpdateTagsOptionalParams,\n ): Promise<PrivateLinkScopesUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, privateLinkScopeTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: PrivateLinkScopesListNextOptionalParams,\n ): Promise<PrivateLinkScopesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\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?: PrivateLinkScopesListByResourceGroupNextOptionalParams,\n ): Promise<PrivateLinkScopesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n 201: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.azureMonitorPrivateLinkScopePayload,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScope,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.privateLinkScopeTags,\n queryParameters: [Parameters.apiVersion12],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\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.AzureMonitorPrivateLinkScopeListResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}