@azure/arm-eventgrid 15.0.0-alpha.20250724.1 → 15.0.0-alpha.20250805.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 (282) hide show
  1. package/dist/browser/eventGridManagementClient.js +44 -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 +776 -347
  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/networkSecurityPerimeterConfigurations.js +21 -33
  34. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  35. package/dist/browser/operations/operations.js +10 -27
  36. package/dist/browser/operations/operations.js.map +1 -1
  37. package/dist/browser/operations/partnerConfigurations.js +65 -84
  38. package/dist/browser/operations/partnerConfigurations.js.map +1 -1
  39. package/dist/browser/operations/partnerDestinations.js +78 -97
  40. package/dist/browser/operations/partnerDestinations.js.map +1 -1
  41. package/dist/browser/operations/partnerNamespaces.js +78 -97
  42. package/dist/browser/operations/partnerNamespaces.js.map +1 -1
  43. package/dist/browser/operations/partnerRegistrations.js +78 -97
  44. package/dist/browser/operations/partnerRegistrations.js.map +1 -1
  45. package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
  46. package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
  47. package/dist/browser/operations/partnerTopics.js +56 -85
  48. package/dist/browser/operations/partnerTopics.js.map +1 -1
  49. package/dist/browser/operations/permissionBindings.js +45 -52
  50. package/dist/browser/operations/permissionBindings.js.map +1 -1
  51. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  52. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  53. package/dist/browser/operations/privateLinkResources.js +23 -40
  54. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  55. package/dist/browser/operations/systemTopicEventSubscriptions.js +56 -58
  56. package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
  57. package/dist/browser/operations/systemTopics.js +78 -97
  58. package/dist/browser/operations/systemTopics.js.map +1 -1
  59. package/dist/browser/operations/topicEventSubscriptions.js +56 -58
  60. package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
  61. package/dist/browser/operations/topicSpaces.js +45 -52
  62. package/dist/browser/operations/topicSpaces.js.map +1 -1
  63. package/dist/browser/operations/topicTypes.js +19 -53
  64. package/dist/browser/operations/topicTypes.js.map +1 -1
  65. package/dist/browser/operations/topics.js +98 -129
  66. package/dist/browser/operations/topics.js.map +1 -1
  67. package/dist/browser/operations/verifiedPartners.js +23 -40
  68. package/dist/browser/operations/verifiedPartners.js.map +1 -1
  69. package/dist/browser/pagingHelper.js +2 -4
  70. package/dist/browser/pagingHelper.js.map +1 -1
  71. package/dist/commonjs/eventGridManagementClient.js +44 -5
  72. package/dist/commonjs/eventGridManagementClient.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 +776 -347
  76. package/dist/commonjs/models/mappers.js.map +1 -1
  77. package/dist/commonjs/operations/caCertificates.js +45 -51
  78. package/dist/commonjs/operations/caCertificates.js.map +1 -1
  79. package/dist/commonjs/operations/channels.js +34 -45
  80. package/dist/commonjs/operations/channels.js.map +1 -1
  81. package/dist/commonjs/operations/clientGroups.js +45 -51
  82. package/dist/commonjs/operations/clientGroups.js.map +1 -1
  83. package/dist/commonjs/operations/clients.js +45 -51
  84. package/dist/commonjs/operations/clients.js.map +1 -1
  85. package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
  86. package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
  87. package/dist/commonjs/operations/domainTopicEventSubscriptions.js +56 -57
  88. package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
  89. package/dist/commonjs/operations/domainTopics.js +45 -51
  90. package/dist/commonjs/operations/domainTopics.js.map +1 -1
  91. package/dist/commonjs/operations/domains.js +78 -96
  92. package/dist/commonjs/operations/domains.js.map +1 -1
  93. package/dist/commonjs/operations/eventSubscriptions.js +254 -408
  94. package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
  95. package/dist/commonjs/operations/extensionTopics.js +1 -0
  96. package/dist/commonjs/operations/extensionTopics.js.map +1 -1
  97. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
  98. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  99. package/dist/commonjs/operations/namespaceTopics.js +67 -63
  100. package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
  101. package/dist/commonjs/operations/namespaces.js +100 -108
  102. package/dist/commonjs/operations/namespaces.js.map +1 -1
  103. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +21 -32
  104. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  105. package/dist/commonjs/operations/operations.js +10 -26
  106. package/dist/commonjs/operations/operations.js.map +1 -1
  107. package/dist/commonjs/operations/partnerConfigurations.js +65 -83
  108. package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
  109. package/dist/commonjs/operations/partnerDestinations.js +78 -96
  110. package/dist/commonjs/operations/partnerDestinations.js.map +1 -1
  111. package/dist/commonjs/operations/partnerNamespaces.js +78 -96
  112. package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
  113. package/dist/commonjs/operations/partnerRegistrations.js +78 -96
  114. package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
  115. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
  116. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
  117. package/dist/commonjs/operations/partnerTopics.js +56 -84
  118. package/dist/commonjs/operations/partnerTopics.js.map +1 -1
  119. package/dist/commonjs/operations/permissionBindings.js +45 -51
  120. package/dist/commonjs/operations/permissionBindings.js.map +1 -1
  121. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  122. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  123. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  124. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  125. package/dist/commonjs/operations/systemTopicEventSubscriptions.js +56 -57
  126. package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
  127. package/dist/commonjs/operations/systemTopics.js +78 -96
  128. package/dist/commonjs/operations/systemTopics.js.map +1 -1
  129. package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
  130. package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
  131. package/dist/commonjs/operations/topicSpaces.js +45 -51
  132. package/dist/commonjs/operations/topicSpaces.js.map +1 -1
  133. package/dist/commonjs/operations/topicTypes.js +19 -52
  134. package/dist/commonjs/operations/topicTypes.js.map +1 -1
  135. package/dist/commonjs/operations/topics.js +98 -128
  136. package/dist/commonjs/operations/topics.js.map +1 -1
  137. package/dist/commonjs/operations/verifiedPartners.js +23 -39
  138. package/dist/commonjs/operations/verifiedPartners.js.map +1 -1
  139. package/dist/commonjs/pagingHelper.js +2 -4
  140. package/dist/commonjs/pagingHelper.js.map +1 -1
  141. package/dist/commonjs/tsdoc-metadata.json +1 -1
  142. package/dist/esm/eventGridManagementClient.js +44 -5
  143. package/dist/esm/eventGridManagementClient.js.map +1 -1
  144. package/dist/esm/lroImpl.js +7 -3
  145. package/dist/esm/lroImpl.js.map +1 -1
  146. package/dist/esm/models/mappers.js +776 -347
  147. package/dist/esm/models/mappers.js.map +1 -1
  148. package/dist/esm/operations/caCertificates.js +45 -52
  149. package/dist/esm/operations/caCertificates.js.map +1 -1
  150. package/dist/esm/operations/channels.js +34 -46
  151. package/dist/esm/operations/channels.js.map +1 -1
  152. package/dist/esm/operations/clientGroups.js +45 -52
  153. package/dist/esm/operations/clientGroups.js.map +1 -1
  154. package/dist/esm/operations/clients.js +45 -52
  155. package/dist/esm/operations/clients.js.map +1 -1
  156. package/dist/esm/operations/domainEventSubscriptions.js +56 -58
  157. package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
  158. package/dist/esm/operations/domainTopicEventSubscriptions.js +56 -58
  159. package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
  160. package/dist/esm/operations/domainTopics.js +45 -52
  161. package/dist/esm/operations/domainTopics.js.map +1 -1
  162. package/dist/esm/operations/domains.js +78 -97
  163. package/dist/esm/operations/domains.js.map +1 -1
  164. package/dist/esm/operations/eventSubscriptions.js +254 -409
  165. package/dist/esm/operations/eventSubscriptions.js.map +1 -1
  166. package/dist/esm/operations/extensionTopics.js +1 -0
  167. package/dist/esm/operations/extensionTopics.js.map +1 -1
  168. package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
  169. package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  170. package/dist/esm/operations/namespaceTopics.js +67 -64
  171. package/dist/esm/operations/namespaceTopics.js.map +1 -1
  172. package/dist/esm/operations/namespaces.js +100 -109
  173. package/dist/esm/operations/namespaces.js.map +1 -1
  174. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +21 -33
  175. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  176. package/dist/esm/operations/operations.js +10 -27
  177. package/dist/esm/operations/operations.js.map +1 -1
  178. package/dist/esm/operations/partnerConfigurations.js +65 -84
  179. package/dist/esm/operations/partnerConfigurations.js.map +1 -1
  180. package/dist/esm/operations/partnerDestinations.js +78 -97
  181. package/dist/esm/operations/partnerDestinations.js.map +1 -1
  182. package/dist/esm/operations/partnerNamespaces.js +78 -97
  183. package/dist/esm/operations/partnerNamespaces.js.map +1 -1
  184. package/dist/esm/operations/partnerRegistrations.js +78 -97
  185. package/dist/esm/operations/partnerRegistrations.js.map +1 -1
  186. package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
  187. package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
  188. package/dist/esm/operations/partnerTopics.js +56 -85
  189. package/dist/esm/operations/partnerTopics.js.map +1 -1
  190. package/dist/esm/operations/permissionBindings.js +45 -52
  191. package/dist/esm/operations/permissionBindings.js.map +1 -1
  192. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  193. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  194. package/dist/esm/operations/privateLinkResources.js +23 -40
  195. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  196. package/dist/esm/operations/systemTopicEventSubscriptions.js +56 -58
  197. package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
  198. package/dist/esm/operations/systemTopics.js +78 -97
  199. package/dist/esm/operations/systemTopics.js.map +1 -1
  200. package/dist/esm/operations/topicEventSubscriptions.js +56 -58
  201. package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
  202. package/dist/esm/operations/topicSpaces.js +45 -52
  203. package/dist/esm/operations/topicSpaces.js.map +1 -1
  204. package/dist/esm/operations/topicTypes.js +19 -53
  205. package/dist/esm/operations/topicTypes.js.map +1 -1
  206. package/dist/esm/operations/topics.js +98 -129
  207. package/dist/esm/operations/topics.js.map +1 -1
  208. package/dist/esm/operations/verifiedPartners.js +23 -40
  209. package/dist/esm/operations/verifiedPartners.js.map +1 -1
  210. package/dist/esm/pagingHelper.js +2 -4
  211. package/dist/esm/pagingHelper.js.map +1 -1
  212. package/dist/react-native/eventGridManagementClient.js +44 -5
  213. package/dist/react-native/eventGridManagementClient.js.map +1 -1
  214. package/dist/react-native/lroImpl.js +7 -3
  215. package/dist/react-native/lroImpl.js.map +1 -1
  216. package/dist/react-native/models/mappers.js +776 -347
  217. package/dist/react-native/models/mappers.js.map +1 -1
  218. package/dist/react-native/operations/caCertificates.js +45 -52
  219. package/dist/react-native/operations/caCertificates.js.map +1 -1
  220. package/dist/react-native/operations/channels.js +34 -46
  221. package/dist/react-native/operations/channels.js.map +1 -1
  222. package/dist/react-native/operations/clientGroups.js +45 -52
  223. package/dist/react-native/operations/clientGroups.js.map +1 -1
  224. package/dist/react-native/operations/clients.js +45 -52
  225. package/dist/react-native/operations/clients.js.map +1 -1
  226. package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
  227. package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
  228. package/dist/react-native/operations/domainTopicEventSubscriptions.js +56 -58
  229. package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
  230. package/dist/react-native/operations/domainTopics.js +45 -52
  231. package/dist/react-native/operations/domainTopics.js.map +1 -1
  232. package/dist/react-native/operations/domains.js +78 -97
  233. package/dist/react-native/operations/domains.js.map +1 -1
  234. package/dist/react-native/operations/eventSubscriptions.js +254 -409
  235. package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
  236. package/dist/react-native/operations/extensionTopics.js +1 -0
  237. package/dist/react-native/operations/extensionTopics.js.map +1 -1
  238. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
  239. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  240. package/dist/react-native/operations/namespaceTopics.js +67 -64
  241. package/dist/react-native/operations/namespaceTopics.js.map +1 -1
  242. package/dist/react-native/operations/namespaces.js +100 -109
  243. package/dist/react-native/operations/namespaces.js.map +1 -1
  244. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +21 -33
  245. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  246. package/dist/react-native/operations/operations.js +10 -27
  247. package/dist/react-native/operations/operations.js.map +1 -1
  248. package/dist/react-native/operations/partnerConfigurations.js +65 -84
  249. package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
  250. package/dist/react-native/operations/partnerDestinations.js +78 -97
  251. package/dist/react-native/operations/partnerDestinations.js.map +1 -1
  252. package/dist/react-native/operations/partnerNamespaces.js +78 -97
  253. package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
  254. package/dist/react-native/operations/partnerRegistrations.js +78 -97
  255. package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
  256. package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
  257. package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
  258. package/dist/react-native/operations/partnerTopics.js +56 -85
  259. package/dist/react-native/operations/partnerTopics.js.map +1 -1
  260. package/dist/react-native/operations/permissionBindings.js +45 -52
  261. package/dist/react-native/operations/permissionBindings.js.map +1 -1
  262. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  263. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  264. package/dist/react-native/operations/privateLinkResources.js +23 -40
  265. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  266. package/dist/react-native/operations/systemTopicEventSubscriptions.js +56 -58
  267. package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
  268. package/dist/react-native/operations/systemTopics.js +78 -97
  269. package/dist/react-native/operations/systemTopics.js.map +1 -1
  270. package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
  271. package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
  272. package/dist/react-native/operations/topicSpaces.js +45 -52
  273. package/dist/react-native/operations/topicSpaces.js.map +1 -1
  274. package/dist/react-native/operations/topicTypes.js +19 -53
  275. package/dist/react-native/operations/topicTypes.js.map +1 -1
  276. package/dist/react-native/operations/topics.js +98 -129
  277. package/dist/react-native/operations/topics.js.map +1 -1
  278. package/dist/react-native/operations/verifiedPartners.js +23 -40
  279. package/dist/react-native/operations/verifiedPartners.js.map +1 -1
  280. package/dist/react-native/pagingHelper.js +2 -4
  281. package/dist/react-native/pagingHelper.js.map +1 -1
  282. package/package.json +1 -1
@@ -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 SystemTopics operations. */
17
16
  export class SystemTopicsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class SystemTopics class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class SystemTopicsImpl {
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.listBySubscriptionPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(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._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(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 *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * List all the system topics under a resource group.
@@ -98,52 +81,35 @@ export class SystemTopicsImpl {
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
  * Get properties of a system topic.
@@ -166,14 +132,19 @@ export class SystemTopicsImpl {
166
132
  return this.client.sendOperationRequest(args, spec);
167
133
  };
168
134
  const sendOperationFn = async (args, spec) => {
169
- var _a;
170
135
  let currentRawResponse = undefined;
171
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
136
+ const providedCallback = args.options?.onResponse;
172
137
  const callback = (rawResponse, flatResponse) => {
173
138
  currentRawResponse = rawResponse;
174
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
139
+ providedCallback?.(rawResponse, flatResponse);
140
+ };
141
+ const updatedArgs = {
142
+ ...args,
143
+ options: {
144
+ ...args.options,
145
+ onResponse: callback,
146
+ },
175
147
  };
176
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
177
148
  const flatResponse = await directSendOperation(updatedArgs, spec);
178
149
  return {
179
150
  flatResponse,
@@ -190,8 +161,8 @@ export class SystemTopicsImpl {
190
161
  spec: createOrUpdateOperationSpec,
191
162
  });
192
163
  const poller = await createHttpPoller(lro, {
193
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
194
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
164
+ restoreFrom: options?.resumeFrom,
165
+ intervalInMs: options?.updateIntervalInMs,
195
166
  });
196
167
  await poller.poll();
197
168
  return poller;
@@ -218,14 +189,19 @@ export class SystemTopicsImpl {
218
189
  return this.client.sendOperationRequest(args, spec);
219
190
  };
220
191
  const sendOperationFn = async (args, spec) => {
221
- var _a;
222
192
  let currentRawResponse = undefined;
223
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
193
+ const providedCallback = args.options?.onResponse;
224
194
  const callback = (rawResponse, flatResponse) => {
225
195
  currentRawResponse = rawResponse;
226
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
196
+ providedCallback?.(rawResponse, flatResponse);
197
+ };
198
+ const updatedArgs = {
199
+ ...args,
200
+ options: {
201
+ ...args.options,
202
+ onResponse: callback,
203
+ },
227
204
  };
228
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
229
205
  const flatResponse = await directSendOperation(updatedArgs, spec);
230
206
  return {
231
207
  flatResponse,
@@ -242,8 +218,8 @@ export class SystemTopicsImpl {
242
218
  spec: deleteOperationSpec,
243
219
  });
244
220
  const poller = await createHttpPoller(lro, {
245
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
246
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
221
+ restoreFrom: options?.resumeFrom,
222
+ intervalInMs: options?.updateIntervalInMs,
247
223
  });
248
224
  await poller.poll();
249
225
  return poller;
@@ -270,14 +246,19 @@ export class SystemTopicsImpl {
270
246
  return this.client.sendOperationRequest(args, spec);
271
247
  };
272
248
  const sendOperationFn = async (args, spec) => {
273
- var _a;
274
249
  let currentRawResponse = undefined;
275
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
250
+ const providedCallback = args.options?.onResponse;
276
251
  const callback = (rawResponse, flatResponse) => {
277
252
  currentRawResponse = rawResponse;
278
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
253
+ providedCallback?.(rawResponse, flatResponse);
254
+ };
255
+ const updatedArgs = {
256
+ ...args,
257
+ options: {
258
+ ...args.options,
259
+ onResponse: callback,
260
+ },
279
261
  };
280
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
281
262
  const flatResponse = await directSendOperation(updatedArgs, spec);
282
263
  return {
283
264
  flatResponse,
@@ -299,8 +280,8 @@ export class SystemTopicsImpl {
299
280
  spec: updateOperationSpec,
300
281
  });
301
282
  const poller = await createHttpPoller(lro, {
302
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
303
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
283
+ restoreFrom: options?.resumeFrom,
284
+ intervalInMs: options?.updateIntervalInMs,
304
285
  });
305
286
  await poller.poll();
306
287
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"systemTopics.js","sourceRoot":"","sources":["../../../src/operations/systemTopics.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,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsD;QAEtD,MAAM,I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AK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SystemTopics } 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 SystemTopic,\n SystemTopicsListBySubscriptionNextOptionalParams,\n SystemTopicsListBySubscriptionOptionalParams,\n SystemTopicsListBySubscriptionResponse,\n SystemTopicsListByResourceGroupNextOptionalParams,\n SystemTopicsListByResourceGroupOptionalParams,\n SystemTopicsListByResourceGroupResponse,\n SystemTopicsGetOptionalParams,\n SystemTopicsGetResponse,\n SystemTopicsCreateOrUpdateOptionalParams,\n SystemTopicsCreateOrUpdateResponse,\n SystemTopicsDeleteOptionalParams,\n SystemTopicUpdateParameters,\n SystemTopicsUpdateOptionalParams,\n SystemTopicsUpdateResponse,\n SystemTopicsListBySubscriptionNextResponse,\n SystemTopicsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SystemTopics operations. */\nexport class SystemTopicsImpl implements SystemTopics {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class SystemTopics 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 system topics under an Azure subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<SystemTopic> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SystemTopic[]> {\n let result: SystemTopicsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<SystemTopic> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the system topics under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: SystemTopicsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SystemTopic> {\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?: SystemTopicsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SystemTopic[]> {\n let result: SystemTopicsListByResourceGroupResponse;\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?: SystemTopicsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<SystemTopic> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of a system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsGetOptionalParams,\n ): Promise<SystemTopicsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates a new system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicInfo System Topic information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicInfo: SystemTopic,\n options?: SystemTopicsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicsCreateOrUpdateResponse>,\n SystemTopicsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicsCreateOrUpdateResponse> => {\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, systemTopicName, systemTopicInfo, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicsCreateOrUpdateResponse,\n OperationState<SystemTopicsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicInfo System Topic information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicInfo: SystemTopic,\n options?: SystemTopicsCreateOrUpdateOptionalParams,\n ): Promise<SystemTopicsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n systemTopicName,\n systemTopicInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete existing system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsDeleteOptionalParams,\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, systemTopicName, 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 * Delete existing system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n systemTopicName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Asynchronously updates a system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicUpdateParameters SystemTopic update information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicUpdateParameters: SystemTopicUpdateParameters,\n options?: SystemTopicsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicsUpdateResponse>,\n SystemTopicsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicsUpdateResponse> => {\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 systemTopicName,\n systemTopicUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicsUpdateResponse,\n OperationState<SystemTopicsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously updates a system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicUpdateParameters SystemTopic update information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicUpdateParameters: SystemTopicUpdateParameters,\n options?: SystemTopicsUpdateOptionalParams,\n ): Promise<SystemTopicsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n systemTopicName,\n systemTopicUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all the system topics under an Azure subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): Promise<SystemTopicsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List all the system topics under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: SystemTopicsListByResourceGroupOptionalParams,\n ): Promise<SystemTopicsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SystemTopicsListBySubscriptionNextOptionalParams,\n ): Promise<SystemTopicsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\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?: SystemTopicsListByResourceGroupNextOptionalParams,\n ): Promise<SystemTopicsListByResourceGroupNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n 201: {\n bodyMapper: Mappers.SystemTopic,\n },\n 202: {\n bodyMapper: Mappers.SystemTopic,\n },\n 204: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n requestBody: Parameters.systemTopicInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\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/systemTopics/{systemTopicName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n 201: {\n bodyMapper: Mappers.SystemTopic,\n },\n 202: {\n bodyMapper: Mappers.SystemTopic,\n },\n 204: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n requestBody: Parameters.systemTopicUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/systemTopics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\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.EventGrid/systemTopics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\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.SystemTopicsListResult,\n },\n default: {},\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":"systemTopics.js","sourceRoot":"","sources":["../../../src/operations/systemTopics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAA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AU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SystemTopics } 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 SystemTopic,\n SystemTopicsListBySubscriptionNextOptionalParams,\n SystemTopicsListBySubscriptionOptionalParams,\n SystemTopicsListBySubscriptionResponse,\n SystemTopicsListByResourceGroupNextOptionalParams,\n SystemTopicsListByResourceGroupOptionalParams,\n SystemTopicsListByResourceGroupResponse,\n SystemTopicsGetOptionalParams,\n SystemTopicsGetResponse,\n SystemTopicsCreateOrUpdateOptionalParams,\n SystemTopicsCreateOrUpdateResponse,\n SystemTopicsDeleteOptionalParams,\n SystemTopicUpdateParameters,\n SystemTopicsUpdateOptionalParams,\n SystemTopicsUpdateResponse,\n SystemTopicsListBySubscriptionNextResponse,\n SystemTopicsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SystemTopics operations. */\nexport class SystemTopicsImpl implements SystemTopics {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class SystemTopics 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 system topics under an Azure subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<SystemTopic> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SystemTopic[]> {\n let result: SystemTopicsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<SystemTopic> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the system topics under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: SystemTopicsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SystemTopic> {\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?: SystemTopicsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SystemTopic[]> {\n let result: SystemTopicsListByResourceGroupResponse;\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?: SystemTopicsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<SystemTopic> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get properties of a system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsGetOptionalParams,\n ): Promise<SystemTopicsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates a new system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicInfo System Topic information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicInfo: SystemTopic,\n options?: SystemTopicsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicsCreateOrUpdateResponse>,\n SystemTopicsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicsCreateOrUpdateResponse> => {\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, systemTopicName, systemTopicInfo, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicsCreateOrUpdateResponse,\n OperationState<SystemTopicsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicInfo System Topic information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicInfo: SystemTopic,\n options?: SystemTopicsCreateOrUpdateOptionalParams,\n ): Promise<SystemTopicsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n systemTopicName,\n systemTopicInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete existing system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsDeleteOptionalParams,\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, systemTopicName, 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 * Delete existing system topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n systemTopicName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Asynchronously updates a system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicUpdateParameters SystemTopic update information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicUpdateParameters: SystemTopicUpdateParameters,\n options?: SystemTopicsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicsUpdateResponse>,\n SystemTopicsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicsUpdateResponse> => {\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 systemTopicName,\n systemTopicUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicsUpdateResponse,\n OperationState<SystemTopicsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously updates a system topic with the specified parameters.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param systemTopicUpdateParameters SystemTopic update information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n systemTopicUpdateParameters: SystemTopicUpdateParameters,\n options?: SystemTopicsUpdateOptionalParams,\n ): Promise<SystemTopicsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n systemTopicName,\n systemTopicUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all the system topics under an Azure subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SystemTopicsListBySubscriptionOptionalParams,\n ): Promise<SystemTopicsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * List all the system topics under a resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: SystemTopicsListByResourceGroupOptionalParams,\n ): Promise<SystemTopicsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SystemTopicsListBySubscriptionNextOptionalParams,\n ): Promise<SystemTopicsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\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?: SystemTopicsListByResourceGroupNextOptionalParams,\n ): Promise<SystemTopicsListByResourceGroupNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n 201: {\n bodyMapper: Mappers.SystemTopic,\n },\n 202: {\n bodyMapper: Mappers.SystemTopic,\n },\n 204: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n requestBody: Parameters.systemTopicInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\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/systemTopics/{systemTopicName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopic,\n },\n 201: {\n bodyMapper: Mappers.SystemTopic,\n },\n 202: {\n bodyMapper: Mappers.SystemTopic,\n },\n 204: {\n bodyMapper: Mappers.SystemTopic,\n },\n default: {},\n },\n requestBody: Parameters.systemTopicUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/systemTopics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\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.EventGrid/systemTopics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemTopicsListResult,\n },\n default: {},\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.SystemTopicsListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing TopicEventSubscriptions operations. */
17
16
  export class TopicEventSubscriptionsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class TopicEventSubscriptions class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class TopicEventSubscriptionsImpl {
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.listPagingPage(resourceGroupName, topicName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listPagingPage(resourceGroupName, topicName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(resourceGroupName, topicName, 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._listNext(resourceGroupName, topicName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(resourceGroupName, topicName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(resourceGroupName, topicName, 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._listNext(resourceGroupName, topicName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(resourceGroupName, topicName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, topicName, 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 *listPagingAll(resourceGroupName, topicName, options) {
67
+ for await (const page of this.listPagingPage(resourceGroupName, topicName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Get all delivery attributes for an event subscription for topic.
@@ -120,14 +103,19 @@ export class TopicEventSubscriptionsImpl {
120
103
  return this.client.sendOperationRequest(args, spec);
121
104
  };
122
105
  const sendOperationFn = async (args, spec) => {
123
- var _a;
124
106
  let currentRawResponse = undefined;
125
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
107
+ const providedCallback = args.options?.onResponse;
126
108
  const callback = (rawResponse, flatResponse) => {
127
109
  currentRawResponse = rawResponse;
128
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
110
+ providedCallback?.(rawResponse, flatResponse);
111
+ };
112
+ const updatedArgs = {
113
+ ...args,
114
+ options: {
115
+ ...args.options,
116
+ onResponse: callback,
117
+ },
129
118
  };
130
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
131
119
  const flatResponse = await directSendOperation(updatedArgs, spec);
132
120
  return {
133
121
  flatResponse,
@@ -150,8 +138,8 @@ export class TopicEventSubscriptionsImpl {
150
138
  spec: createOrUpdateOperationSpec,
151
139
  });
152
140
  const poller = await createHttpPoller(lro, {
153
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
154
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
141
+ restoreFrom: options?.resumeFrom,
142
+ intervalInMs: options?.updateIntervalInMs,
155
143
  });
156
144
  await poller.poll();
157
145
  return poller;
@@ -182,14 +170,19 @@ export class TopicEventSubscriptionsImpl {
182
170
  return this.client.sendOperationRequest(args, spec);
183
171
  };
184
172
  const sendOperationFn = async (args, spec) => {
185
- var _a;
186
173
  let currentRawResponse = undefined;
187
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
174
+ const providedCallback = args.options?.onResponse;
188
175
  const callback = (rawResponse, flatResponse) => {
189
176
  currentRawResponse = rawResponse;
190
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
177
+ providedCallback?.(rawResponse, flatResponse);
178
+ };
179
+ const updatedArgs = {
180
+ ...args,
181
+ options: {
182
+ ...args.options,
183
+ onResponse: callback,
184
+ },
191
185
  };
192
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
193
186
  const flatResponse = await directSendOperation(updatedArgs, spec);
194
187
  return {
195
188
  flatResponse,
@@ -206,8 +199,8 @@ export class TopicEventSubscriptionsImpl {
206
199
  spec: deleteOperationSpec,
207
200
  });
208
201
  const poller = await createHttpPoller(lro, {
209
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
210
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
202
+ restoreFrom: options?.resumeFrom,
203
+ intervalInMs: options?.updateIntervalInMs,
211
204
  });
212
205
  await poller.poll();
213
206
  return poller;
@@ -236,14 +229,19 @@ export class TopicEventSubscriptionsImpl {
236
229
  return this.client.sendOperationRequest(args, spec);
237
230
  };
238
231
  const sendOperationFn = async (args, spec) => {
239
- var _a;
240
232
  let currentRawResponse = undefined;
241
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
233
+ const providedCallback = args.options?.onResponse;
242
234
  const callback = (rawResponse, flatResponse) => {
243
235
  currentRawResponse = rawResponse;
244
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
236
+ providedCallback?.(rawResponse, flatResponse);
237
+ };
238
+ const updatedArgs = {
239
+ ...args,
240
+ options: {
241
+ ...args.options,
242
+ onResponse: callback,
243
+ },
245
244
  };
246
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
247
245
  const flatResponse = await directSendOperation(updatedArgs, spec);
248
246
  return {
249
247
  flatResponse,
@@ -266,8 +264,8 @@ export class TopicEventSubscriptionsImpl {
266
264
  spec: updateOperationSpec,
267
265
  });
268
266
  const poller = await createHttpPoller(lro, {
269
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
270
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
267
+ restoreFrom: options?.resumeFrom,
268
+ intervalInMs: options?.updateIntervalInMs,
271
269
  });
272
270
  await poller.poll();
273
271
  return poller;