@azure/arm-eventgrid 14.2.0-alpha.20250718.1 → 14.2.0-alpha.20250722.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/browser/eventGridManagementClient.js +42 -5
  2. package/dist/browser/eventGridManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +700 -312
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/caCertificates.js +45 -52
  8. package/dist/browser/operations/caCertificates.js.map +1 -1
  9. package/dist/browser/operations/channels.js +34 -46
  10. package/dist/browser/operations/channels.js.map +1 -1
  11. package/dist/browser/operations/clientGroups.js +45 -52
  12. package/dist/browser/operations/clientGroups.js.map +1 -1
  13. package/dist/browser/operations/clients.js +45 -52
  14. package/dist/browser/operations/clients.js.map +1 -1
  15. package/dist/browser/operations/domainEventSubscriptions.js +56 -58
  16. package/dist/browser/operations/domainEventSubscriptions.js.map +1 -1
  17. package/dist/browser/operations/domainTopicEventSubscriptions.js +56 -58
  18. package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
  19. package/dist/browser/operations/domainTopics.js +45 -52
  20. package/dist/browser/operations/domainTopics.js.map +1 -1
  21. package/dist/browser/operations/domains.js +78 -97
  22. package/dist/browser/operations/domains.js.map +1 -1
  23. package/dist/browser/operations/eventSubscriptions.js +254 -409
  24. package/dist/browser/operations/eventSubscriptions.js.map +1 -1
  25. package/dist/browser/operations/extensionTopics.js +1 -0
  26. package/dist/browser/operations/extensionTopics.js.map +1 -1
  27. package/dist/browser/operations/namespaceTopicEventSubscriptions.js +56 -58
  28. package/dist/browser/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  29. package/dist/browser/operations/namespaceTopics.js +67 -64
  30. package/dist/browser/operations/namespaceTopics.js.map +1 -1
  31. package/dist/browser/operations/namespaces.js +100 -109
  32. package/dist/browser/operations/namespaces.js.map +1 -1
  33. package/dist/browser/operations/operations.js +10 -27
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/partnerConfigurations.js +65 -84
  36. package/dist/browser/operations/partnerConfigurations.js.map +1 -1
  37. package/dist/browser/operations/partnerNamespaces.js +78 -97
  38. package/dist/browser/operations/partnerNamespaces.js.map +1 -1
  39. package/dist/browser/operations/partnerRegistrations.js +78 -97
  40. package/dist/browser/operations/partnerRegistrations.js.map +1 -1
  41. package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
  42. package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
  43. package/dist/browser/operations/partnerTopics.js +56 -85
  44. package/dist/browser/operations/partnerTopics.js.map +1 -1
  45. package/dist/browser/operations/permissionBindings.js +45 -52
  46. package/dist/browser/operations/permissionBindings.js.map +1 -1
  47. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  48. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  49. package/dist/browser/operations/privateLinkResources.js +23 -40
  50. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  51. package/dist/browser/operations/systemTopicEventSubscriptions.js +56 -58
  52. package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
  53. package/dist/browser/operations/systemTopics.js +78 -97
  54. package/dist/browser/operations/systemTopics.js.map +1 -1
  55. package/dist/browser/operations/topicEventSubscriptions.js +56 -58
  56. package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
  57. package/dist/browser/operations/topicSpaces.js +45 -52
  58. package/dist/browser/operations/topicSpaces.js.map +1 -1
  59. package/dist/browser/operations/topicTypes.js +19 -53
  60. package/dist/browser/operations/topicTypes.js.map +1 -1
  61. package/dist/browser/operations/topics.js +98 -129
  62. package/dist/browser/operations/topics.js.map +1 -1
  63. package/dist/browser/operations/verifiedPartners.js +23 -40
  64. package/dist/browser/operations/verifiedPartners.js.map +1 -1
  65. package/dist/browser/pagingHelper.js +2 -4
  66. package/dist/browser/pagingHelper.js.map +1 -1
  67. package/dist/commonjs/eventGridManagementClient.js +42 -5
  68. package/dist/commonjs/eventGridManagementClient.js.map +1 -1
  69. package/dist/commonjs/lroImpl.js +7 -3
  70. package/dist/commonjs/lroImpl.js.map +1 -1
  71. package/dist/commonjs/models/mappers.js +700 -312
  72. package/dist/commonjs/models/mappers.js.map +1 -1
  73. package/dist/commonjs/operations/caCertificates.js +45 -51
  74. package/dist/commonjs/operations/caCertificates.js.map +1 -1
  75. package/dist/commonjs/operations/channels.js +34 -45
  76. package/dist/commonjs/operations/channels.js.map +1 -1
  77. package/dist/commonjs/operations/clientGroups.js +45 -51
  78. package/dist/commonjs/operations/clientGroups.js.map +1 -1
  79. package/dist/commonjs/operations/clients.js +45 -51
  80. package/dist/commonjs/operations/clients.js.map +1 -1
  81. package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
  82. package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
  83. package/dist/commonjs/operations/domainTopicEventSubscriptions.js +56 -57
  84. package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
  85. package/dist/commonjs/operations/domainTopics.js +45 -51
  86. package/dist/commonjs/operations/domainTopics.js.map +1 -1
  87. package/dist/commonjs/operations/domains.js +78 -96
  88. package/dist/commonjs/operations/domains.js.map +1 -1
  89. package/dist/commonjs/operations/eventSubscriptions.js +254 -408
  90. package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
  91. package/dist/commonjs/operations/extensionTopics.js +1 -0
  92. package/dist/commonjs/operations/extensionTopics.js.map +1 -1
  93. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
  94. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  95. package/dist/commonjs/operations/namespaceTopics.js +67 -63
  96. package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
  97. package/dist/commonjs/operations/namespaces.js +100 -108
  98. package/dist/commonjs/operations/namespaces.js.map +1 -1
  99. package/dist/commonjs/operations/operations.js +10 -26
  100. package/dist/commonjs/operations/operations.js.map +1 -1
  101. package/dist/commonjs/operations/partnerConfigurations.js +65 -83
  102. package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
  103. package/dist/commonjs/operations/partnerNamespaces.js +78 -96
  104. package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
  105. package/dist/commonjs/operations/partnerRegistrations.js +78 -96
  106. package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
  107. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
  108. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
  109. package/dist/commonjs/operations/partnerTopics.js +56 -84
  110. package/dist/commonjs/operations/partnerTopics.js.map +1 -1
  111. package/dist/commonjs/operations/permissionBindings.js +45 -51
  112. package/dist/commonjs/operations/permissionBindings.js.map +1 -1
  113. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  114. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  115. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  116. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  117. package/dist/commonjs/operations/systemTopicEventSubscriptions.js +56 -57
  118. package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
  119. package/dist/commonjs/operations/systemTopics.js +78 -96
  120. package/dist/commonjs/operations/systemTopics.js.map +1 -1
  121. package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
  122. package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
  123. package/dist/commonjs/operations/topicSpaces.js +45 -51
  124. package/dist/commonjs/operations/topicSpaces.js.map +1 -1
  125. package/dist/commonjs/operations/topicTypes.js +19 -52
  126. package/dist/commonjs/operations/topicTypes.js.map +1 -1
  127. package/dist/commonjs/operations/topics.js +98 -128
  128. package/dist/commonjs/operations/topics.js.map +1 -1
  129. package/dist/commonjs/operations/verifiedPartners.js +23 -39
  130. package/dist/commonjs/operations/verifiedPartners.js.map +1 -1
  131. package/dist/commonjs/pagingHelper.js +2 -4
  132. package/dist/commonjs/pagingHelper.js.map +1 -1
  133. package/dist/commonjs/tsdoc-metadata.json +11 -11
  134. package/dist/esm/eventGridManagementClient.js +42 -5
  135. package/dist/esm/eventGridManagementClient.js.map +1 -1
  136. package/dist/esm/lroImpl.js +7 -3
  137. package/dist/esm/lroImpl.js.map +1 -1
  138. package/dist/esm/models/mappers.js +700 -312
  139. package/dist/esm/models/mappers.js.map +1 -1
  140. package/dist/esm/operations/caCertificates.js +45 -52
  141. package/dist/esm/operations/caCertificates.js.map +1 -1
  142. package/dist/esm/operations/channels.js +34 -46
  143. package/dist/esm/operations/channels.js.map +1 -1
  144. package/dist/esm/operations/clientGroups.js +45 -52
  145. package/dist/esm/operations/clientGroups.js.map +1 -1
  146. package/dist/esm/operations/clients.js +45 -52
  147. package/dist/esm/operations/clients.js.map +1 -1
  148. package/dist/esm/operations/domainEventSubscriptions.js +56 -58
  149. package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
  150. package/dist/esm/operations/domainTopicEventSubscriptions.js +56 -58
  151. package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
  152. package/dist/esm/operations/domainTopics.js +45 -52
  153. package/dist/esm/operations/domainTopics.js.map +1 -1
  154. package/dist/esm/operations/domains.js +78 -97
  155. package/dist/esm/operations/domains.js.map +1 -1
  156. package/dist/esm/operations/eventSubscriptions.js +254 -409
  157. package/dist/esm/operations/eventSubscriptions.js.map +1 -1
  158. package/dist/esm/operations/extensionTopics.js +1 -0
  159. package/dist/esm/operations/extensionTopics.js.map +1 -1
  160. package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
  161. package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  162. package/dist/esm/operations/namespaceTopics.js +67 -64
  163. package/dist/esm/operations/namespaceTopics.js.map +1 -1
  164. package/dist/esm/operations/namespaces.js +100 -109
  165. package/dist/esm/operations/namespaces.js.map +1 -1
  166. package/dist/esm/operations/operations.js +10 -27
  167. package/dist/esm/operations/operations.js.map +1 -1
  168. package/dist/esm/operations/partnerConfigurations.js +65 -84
  169. package/dist/esm/operations/partnerConfigurations.js.map +1 -1
  170. package/dist/esm/operations/partnerNamespaces.js +78 -97
  171. package/dist/esm/operations/partnerNamespaces.js.map +1 -1
  172. package/dist/esm/operations/partnerRegistrations.js +78 -97
  173. package/dist/esm/operations/partnerRegistrations.js.map +1 -1
  174. package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
  175. package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
  176. package/dist/esm/operations/partnerTopics.js +56 -85
  177. package/dist/esm/operations/partnerTopics.js.map +1 -1
  178. package/dist/esm/operations/permissionBindings.js +45 -52
  179. package/dist/esm/operations/permissionBindings.js.map +1 -1
  180. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  181. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  182. package/dist/esm/operations/privateLinkResources.js +23 -40
  183. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  184. package/dist/esm/operations/systemTopicEventSubscriptions.js +56 -58
  185. package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
  186. package/dist/esm/operations/systemTopics.js +78 -97
  187. package/dist/esm/operations/systemTopics.js.map +1 -1
  188. package/dist/esm/operations/topicEventSubscriptions.js +56 -58
  189. package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
  190. package/dist/esm/operations/topicSpaces.js +45 -52
  191. package/dist/esm/operations/topicSpaces.js.map +1 -1
  192. package/dist/esm/operations/topicTypes.js +19 -53
  193. package/dist/esm/operations/topicTypes.js.map +1 -1
  194. package/dist/esm/operations/topics.js +98 -129
  195. package/dist/esm/operations/topics.js.map +1 -1
  196. package/dist/esm/operations/verifiedPartners.js +23 -40
  197. package/dist/esm/operations/verifiedPartners.js.map +1 -1
  198. package/dist/esm/pagingHelper.js +2 -4
  199. package/dist/esm/pagingHelper.js.map +1 -1
  200. package/dist/react-native/eventGridManagementClient.js +42 -5
  201. package/dist/react-native/eventGridManagementClient.js.map +1 -1
  202. package/dist/react-native/lroImpl.js +7 -3
  203. package/dist/react-native/lroImpl.js.map +1 -1
  204. package/dist/react-native/models/mappers.js +700 -312
  205. package/dist/react-native/models/mappers.js.map +1 -1
  206. package/dist/react-native/operations/caCertificates.js +45 -52
  207. package/dist/react-native/operations/caCertificates.js.map +1 -1
  208. package/dist/react-native/operations/channels.js +34 -46
  209. package/dist/react-native/operations/channels.js.map +1 -1
  210. package/dist/react-native/operations/clientGroups.js +45 -52
  211. package/dist/react-native/operations/clientGroups.js.map +1 -1
  212. package/dist/react-native/operations/clients.js +45 -52
  213. package/dist/react-native/operations/clients.js.map +1 -1
  214. package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
  215. package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
  216. package/dist/react-native/operations/domainTopicEventSubscriptions.js +56 -58
  217. package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
  218. package/dist/react-native/operations/domainTopics.js +45 -52
  219. package/dist/react-native/operations/domainTopics.js.map +1 -1
  220. package/dist/react-native/operations/domains.js +78 -97
  221. package/dist/react-native/operations/domains.js.map +1 -1
  222. package/dist/react-native/operations/eventSubscriptions.js +254 -409
  223. package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
  224. package/dist/react-native/operations/extensionTopics.js +1 -0
  225. package/dist/react-native/operations/extensionTopics.js.map +1 -1
  226. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
  227. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  228. package/dist/react-native/operations/namespaceTopics.js +67 -64
  229. package/dist/react-native/operations/namespaceTopics.js.map +1 -1
  230. package/dist/react-native/operations/namespaces.js +100 -109
  231. package/dist/react-native/operations/namespaces.js.map +1 -1
  232. package/dist/react-native/operations/operations.js +10 -27
  233. package/dist/react-native/operations/operations.js.map +1 -1
  234. package/dist/react-native/operations/partnerConfigurations.js +65 -84
  235. package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
  236. package/dist/react-native/operations/partnerNamespaces.js +78 -97
  237. package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
  238. package/dist/react-native/operations/partnerRegistrations.js +78 -97
  239. package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
  240. package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
  241. package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
  242. package/dist/react-native/operations/partnerTopics.js +56 -85
  243. package/dist/react-native/operations/partnerTopics.js.map +1 -1
  244. package/dist/react-native/operations/permissionBindings.js +45 -52
  245. package/dist/react-native/operations/permissionBindings.js.map +1 -1
  246. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  247. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  248. package/dist/react-native/operations/privateLinkResources.js +23 -40
  249. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  250. package/dist/react-native/operations/systemTopicEventSubscriptions.js +56 -58
  251. package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
  252. package/dist/react-native/operations/systemTopics.js +78 -97
  253. package/dist/react-native/operations/systemTopics.js.map +1 -1
  254. package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
  255. package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
  256. package/dist/react-native/operations/topicSpaces.js +45 -52
  257. package/dist/react-native/operations/topicSpaces.js.map +1 -1
  258. package/dist/react-native/operations/topicTypes.js +19 -53
  259. package/dist/react-native/operations/topicTypes.js.map +1 -1
  260. package/dist/react-native/operations/topics.js +98 -129
  261. package/dist/react-native/operations/topics.js.map +1 -1
  262. package/dist/react-native/operations/verifiedPartners.js +23 -40
  263. package/dist/react-native/operations/verifiedPartners.js.map +1 -1
  264. package/dist/react-native/pagingHelper.js +2 -4
  265. package/dist/react-native/pagingHelper.js.map +1 -1
  266. package/package.json +2 -2
  267. package/review/arm-eventgrid-node.api.md +4226 -4226
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing PrivateEndpointConnections operations. */
20
20
  class PrivateEndpointConnectionsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class PrivateEndpointConnections class.
23
24
  * @param client Reference to the service client
@@ -44,52 +45,35 @@ class PrivateEndpointConnectionsImpl {
44
45
  return this;
45
46
  },
46
47
  byPage: (settings) => {
47
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
48
+ if (settings?.maxPageSize) {
48
49
  throw new Error("maxPageSize is not supported by this operation.");
49
50
  }
50
51
  return this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings);
51
52
  },
52
53
  };
53
54
  }
54
- listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings) {
55
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
56
- let result;
57
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
58
- if (!continuationToken) {
59
- result = yield tslib_1.__await(this._listByResource(resourceGroupName, parentType, parentName, options));
60
- let page = result.value || [];
61
- continuationToken = result.nextLink;
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- while (continuationToken) {
66
- result = yield tslib_1.__await(this._listByResourceNext(resourceGroupName, parentType, parentName, continuationToken, options));
67
- continuationToken = result.nextLink;
68
- let page = result.value || [];
69
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
70
- yield yield tslib_1.__await(page);
71
- }
72
- });
55
+ async *listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings) {
56
+ let result;
57
+ let continuationToken = settings?.continuationToken;
58
+ if (!continuationToken) {
59
+ result = await this._listByResource(resourceGroupName, parentType, parentName, options);
60
+ let page = result.value || [];
61
+ continuationToken = result.nextLink;
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ while (continuationToken) {
66
+ result = await this._listByResourceNext(resourceGroupName, parentType, parentName, continuationToken, options);
67
+ continuationToken = result.nextLink;
68
+ let page = result.value || [];
69
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
70
+ yield page;
71
+ }
73
72
  }
74
- listByResourcePagingAll(resourceGroupName, parentType, parentName, options) {
75
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
76
- var _a, e_1, _b, _c;
77
- try {
78
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
79
- _c = _f.value;
80
- _d = false;
81
- const page = _c;
82
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
83
- }
84
- }
85
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
86
- finally {
87
- try {
88
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
89
- }
90
- finally { if (e_1) throw e_1.error; }
91
- }
92
- });
73
+ async *listByResourcePagingAll(resourceGroupName, parentType, parentName, options) {
74
+ for await (const page of this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options)) {
75
+ yield* page;
76
+ }
93
77
  }
94
78
  /**
95
79
  * Get a specific private endpoint connection under a topic, domain, or partner namespace or namespace.
@@ -126,14 +110,19 @@ class PrivateEndpointConnectionsImpl {
126
110
  return this.client.sendOperationRequest(args, spec);
127
111
  };
128
112
  const sendOperationFn = async (args, spec) => {
129
- var _a;
130
113
  let currentRawResponse = undefined;
131
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
114
+ const providedCallback = args.options?.onResponse;
132
115
  const callback = (rawResponse, flatResponse) => {
133
116
  currentRawResponse = rawResponse;
134
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
117
+ providedCallback?.(rawResponse, flatResponse);
118
+ };
119
+ const updatedArgs = {
120
+ ...args,
121
+ options: {
122
+ ...args.options,
123
+ onResponse: callback,
124
+ },
135
125
  };
136
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
137
126
  const flatResponse = await directSendOperation(updatedArgs, spec);
138
127
  return {
139
128
  flatResponse,
@@ -157,8 +146,8 @@ class PrivateEndpointConnectionsImpl {
157
146
  spec: updateOperationSpec,
158
147
  });
159
148
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
160
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
161
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
149
+ restoreFrom: options?.resumeFrom,
150
+ intervalInMs: options?.updateIntervalInMs,
162
151
  });
163
152
  await poller.poll();
164
153
  return poller;
@@ -194,14 +183,19 @@ class PrivateEndpointConnectionsImpl {
194
183
  return this.client.sendOperationRequest(args, spec);
195
184
  };
196
185
  const sendOperationFn = async (args, spec) => {
197
- var _a;
198
186
  let currentRawResponse = undefined;
199
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
187
+ const providedCallback = args.options?.onResponse;
200
188
  const callback = (rawResponse, flatResponse) => {
201
189
  currentRawResponse = rawResponse;
202
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
190
+ providedCallback?.(rawResponse, flatResponse);
191
+ };
192
+ const updatedArgs = {
193
+ ...args,
194
+ options: {
195
+ ...args.options,
196
+ onResponse: callback,
197
+ },
203
198
  };
204
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
205
199
  const flatResponse = await directSendOperation(updatedArgs, spec);
206
200
  return {
207
201
  flatResponse,
@@ -224,8 +218,8 @@ class PrivateEndpointConnectionsImpl {
224
218
  spec: deleteOperationSpec,
225
219
  });
226
220
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
227
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
228
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
221
+ restoreFrom: options?.resumeFrom,
222
+ intervalInMs: options?.updateIntervalInMs,
229
223
  });
230
224
  await poller.poll();
231
225
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAgB9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,cAAc,CACnB,iBAAyB,EACzB,UAAgD,EAChD,UAAkB,EAClB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,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,wBAAwB,CAClC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,wBAAwB,CACrC,iBAAyB,EACzB,UAAgD,EAChD,UAAkB,EAClB,OAAgE,EAChE,QAAuB;;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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 { PrivateEndpointConnections } 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 { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsParentType,\n PrivateEndpointConnectionsListByResourceNextOptionalParams,\n PrivateEndpointConnectionsListByResourceOptionalParams,\n PrivateEndpointConnectionsListByResourceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsUpdateOptionalParams,\n PrivateEndpointConnectionsUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsDeleteResponse,\n PrivateEndpointConnectionsListByResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all private endpoint connections under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param options The options parameters.\n */\n public listByResource(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByResourcePagingAll(\n resourceGroupName,\n parentType,\n parentName,\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.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(\n resourceGroupName,\n parentType,\n parentName,\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._listByResourceNext(\n resourceGroupName,\n parentType,\n parentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a specific private endpoint connection under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update a specific private endpoint connection under a topic, domain or partner namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param privateEndpointConnection The private endpoint connection object to update.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsUpdateResponse>,\n PrivateEndpointConnectionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> => {\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: {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsUpdateResponse,\n OperationState<PrivateEndpointConnectionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a specific private endpoint connection under a topic, domain or partner namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param privateEndpointConnection The private endpoint connection object to update.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a specific private endpoint connection under a topic, domain, or partner namespace or\n * namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsDeleteResponse>,\n PrivateEndpointConnectionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> => {\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: {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsDeleteResponse,\n OperationState<PrivateEndpointConnectionsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a specific private endpoint connection under a topic, domain, or partner namespace or\n * namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get all private endpoint connections under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param options The options parameters.\n */\n private _listByResource(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListByResourceNextOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, nextLink, options },\n listByResourceNextOperationSpec,\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.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {},\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\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.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\n ],\n serializer,\n};\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.parentType,\n Parameters.parentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpoint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,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,UAAU;KACtB;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 { PrivateEndpointConnections } 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 { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsParentType,\n PrivateEndpointConnectionsListByResourceNextOptionalParams,\n PrivateEndpointConnectionsListByResourceOptionalParams,\n PrivateEndpointConnectionsListByResourceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsUpdateOptionalParams,\n PrivateEndpointConnectionsUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsDeleteResponse,\n PrivateEndpointConnectionsListByResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all private endpoint connections under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param options The options parameters.\n */\n public listByResource(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByResourcePagingAll(\n resourceGroupName,\n parentType,\n parentName,\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.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(\n resourceGroupName,\n parentType,\n parentName,\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._listByResourceNext(\n resourceGroupName,\n parentType,\n parentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a specific private endpoint connection under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update a specific private endpoint connection under a topic, domain or partner namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param privateEndpointConnection The private endpoint connection object to update.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsUpdateResponse>,\n PrivateEndpointConnectionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> => {\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: {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsUpdateResponse,\n OperationState<PrivateEndpointConnectionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a specific private endpoint connection under a topic, domain or partner namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param privateEndpointConnection The private endpoint connection object to update.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a specific private endpoint connection under a topic, domain, or partner namespace or\n * namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsDeleteResponse>,\n PrivateEndpointConnectionsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> => {\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: {\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsDeleteResponse,\n OperationState<PrivateEndpointConnectionsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a specific private endpoint connection under a topic, domain, or partner namespace or\n * namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateEndpointConnectionName The name of the private endpoint connection connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n parentType,\n parentName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get all private endpoint connections under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param options The options parameters.\n */\n private _listByResource(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n options?: PrivateEndpointConnectionsListByResourceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceGroupName: string,\n parentType: PrivateEndpointConnectionsParentType,\n parentName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListByResourceNextOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, nextLink, options },\n listByResourceNextOperationSpec,\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.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {},\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\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.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n Parameters.privateEndpointConnectionName,\n ],\n serializer,\n};\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentType,\n Parameters.parentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.parentType,\n Parameters.parentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing PrivateLinkResources operations. */
18
18
  class PrivateLinkResourcesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class PrivateLinkResources class.
21
22
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class PrivateLinkResourcesImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._listByResource(resourceGroupName, parentType, parentName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listByResourceNext(resourceGroupName, parentType, parentName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listByResourcePagingPage(resourceGroupName, parentType, parentName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._listByResource(resourceGroupName, parentType, parentName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listByResourceNext(resourceGroupName, parentType, parentName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listByResourcePagingAll(resourceGroupName, parentType, parentName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listByResourcePagingAll(resourceGroupName, parentType, parentName, options) {
72
+ for await (const page of this.listByResourcePagingPage(resourceGroupName, parentType, parentName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Get properties of a private link resource.
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,cAAc,CACnB,iBAAyB,EACzB,UAAkB,EAClB,UAAkB,EAClB,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,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,wBAAwB,CAClC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ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AU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,iJAAiJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;KACvB;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 { PrivateLinkResources } 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 { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n PrivateLinkResource,\n PrivateLinkResourcesListByResourceNextOptionalParams,\n PrivateLinkResourcesListByResourceOptionalParams,\n PrivateLinkResourcesListByResourceResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n PrivateLinkResourcesListByResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the private link resources under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param options The options parameters.\n */\n public listByResource(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateLinkResource> {\n const iter = this.listByResourcePagingAll(\n resourceGroupName,\n parentType,\n parentName,\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.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateLinkResource[]> {\n let result: PrivateLinkResourcesListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(\n resourceGroupName,\n parentType,\n parentName,\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._listByResourceNext(\n resourceGroupName,\n parentType,\n parentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): AsyncIterableIterator<PrivateLinkResource> {\n for await (const page of this.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of a private link resource.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateLinkResourceName The name of private link resource will be either topic, domain,\n * partnerNamespace or namespace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n privateLinkResourceName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n parentType,\n parentName,\n privateLinkResourceName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * List all the private link resources under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param options The options parameters.\n */\n private _listByResource(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): Promise<PrivateLinkResourcesListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n nextLink: string,\n options?: PrivateLinkResourcesListByResourceNextOptionalParams,\n ): Promise<PrivateLinkResourcesListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, nextLink, options },\n listByResourceNextOperationSpec,\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.EventGrid/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResource,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentName,\n Parameters.parentType1,\n Parameters.privateLinkResourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentName,\n Parameters.parentType1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.parentName,\n Parameters.parentType1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,cAAc,CACnB,iBAAyB,EACzB,UAAkB,EAClB,UAAkB,EAClB,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,C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AAC,QAAQ;QACnB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;KACvB;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 { PrivateLinkResources } 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 { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n PrivateLinkResource,\n PrivateLinkResourcesListByResourceNextOptionalParams,\n PrivateLinkResourcesListByResourceOptionalParams,\n PrivateLinkResourcesListByResourceResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n PrivateLinkResourcesListByResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the private link resources under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param options The options parameters.\n */\n public listByResource(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateLinkResource> {\n const iter = this.listByResourcePagingAll(\n resourceGroupName,\n parentType,\n parentName,\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.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourcePagingPage(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateLinkResource[]> {\n let result: PrivateLinkResourcesListByResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResource(\n resourceGroupName,\n parentType,\n parentName,\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._listByResourceNext(\n resourceGroupName,\n parentType,\n parentName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourcePagingAll(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): AsyncIterableIterator<PrivateLinkResource> {\n for await (const page of this.listByResourcePagingPage(\n resourceGroupName,\n parentType,\n parentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of a private link resource.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace name or namespace name).\n * @param privateLinkResourceName The name of private link resource will be either topic, domain,\n * partnerNamespace or namespace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n privateLinkResourceName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n parentType,\n parentName,\n privateLinkResourceName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * List all the private link resources under a topic, domain, or partner namespace or namespace.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param options The options parameters.\n */\n private _listByResource(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n options?: PrivateLinkResourcesListByResourceOptionalParams,\n ): Promise<PrivateLinkResourcesListByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, options },\n listByResourceOperationSpec,\n );\n }\n\n /**\n * ListByResourceNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param parentType The type of the parent resource. This can be either \\'topics\\', \\'domains\\', or\n * \\'partnerNamespaces\\' or \\'namespaces\\'.\n * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or\n * partner namespace or namespace name).\n * @param nextLink The nextLink from the previous successful call to the ListByResource method.\n * @param options The options parameters.\n */\n private _listByResourceNext(\n resourceGroupName: string,\n parentType: string,\n parentName: string,\n nextLink: string,\n options?: PrivateLinkResourcesListByResourceNextOptionalParams,\n ): Promise<PrivateLinkResourcesListByResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parentType, parentName, nextLink, options },\n listByResourceNextOperationSpec,\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.EventGrid/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResource,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentName,\n Parameters.parentType1,\n Parameters.privateLinkResourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.parentName,\n Parameters.parentType1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.parentName,\n Parameters.parentType1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}