@azure/arm-eventgrid 14.2.0 → 15.0.0-alpha.20250730.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 (477) hide show
  1. package/README.md +5 -3
  2. package/dist/browser/eventGridManagementClient.d.ts +6 -4
  3. package/dist/browser/eventGridManagementClient.d.ts.map +1 -1
  4. package/dist/browser/eventGridManagementClient.js +54 -12
  5. package/dist/browser/eventGridManagementClient.js.map +1 -1
  6. package/dist/browser/lroImpl.d.ts.map +1 -1
  7. package/dist/browser/lroImpl.js +7 -3
  8. package/dist/browser/lroImpl.js.map +1 -1
  9. package/dist/browser/models/index.d.ts +1000 -283
  10. package/dist/browser/models/index.d.ts.map +1 -1
  11. package/dist/browser/models/index.js +174 -16
  12. package/dist/browser/models/index.js.map +1 -1
  13. package/dist/browser/models/mappers.d.ts +48 -8
  14. package/dist/browser/models/mappers.d.ts.map +1 -1
  15. package/dist/browser/models/mappers.js +2025 -563
  16. package/dist/browser/models/mappers.js.map +1 -1
  17. package/dist/browser/models/parameters.d.ts +13 -6
  18. package/dist/browser/models/parameters.d.ts.map +1 -1
  19. package/dist/browser/models/parameters.js +116 -48
  20. package/dist/browser/models/parameters.js.map +1 -1
  21. package/dist/browser/operations/caCertificates.js +45 -52
  22. package/dist/browser/operations/caCertificates.js.map +1 -1
  23. package/dist/browser/operations/channels.js +34 -46
  24. package/dist/browser/operations/channels.js.map +1 -1
  25. package/dist/browser/operations/clientGroups.js +45 -52
  26. package/dist/browser/operations/clientGroups.js.map +1 -1
  27. package/dist/browser/operations/clients.js +45 -52
  28. package/dist/browser/operations/clients.js.map +1 -1
  29. package/dist/browser/operations/domainEventSubscriptions.js +56 -58
  30. package/dist/browser/operations/domainEventSubscriptions.js.map +1 -1
  31. package/dist/browser/operations/domainTopicEventSubscriptions.d.ts +10 -10
  32. package/dist/browser/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
  33. package/dist/browser/operations/domainTopicEventSubscriptions.js +94 -96
  34. package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
  35. package/dist/browser/operations/domainTopics.js +45 -52
  36. package/dist/browser/operations/domainTopics.js.map +1 -1
  37. package/dist/browser/operations/domains.js +78 -97
  38. package/dist/browser/operations/domains.js.map +1 -1
  39. package/dist/browser/operations/eventSubscriptions.d.ts +15 -15
  40. package/dist/browser/operations/eventSubscriptions.d.ts.map +1 -1
  41. package/dist/browser/operations/eventSubscriptions.js +288 -443
  42. package/dist/browser/operations/eventSubscriptions.js.map +1 -1
  43. package/dist/browser/operations/extensionTopics.js +1 -0
  44. package/dist/browser/operations/extensionTopics.js.map +1 -1
  45. package/dist/browser/operations/index.d.ts +5 -3
  46. package/dist/browser/operations/index.d.ts.map +1 -1
  47. package/dist/browser/operations/index.js +5 -3
  48. package/dist/browser/operations/index.js.map +1 -1
  49. package/dist/browser/operations/namespaceTopicEventSubscriptions.js +56 -58
  50. package/dist/browser/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  51. package/dist/browser/operations/namespaceTopics.js +67 -64
  52. package/dist/browser/operations/namespaceTopics.js.map +1 -1
  53. package/dist/browser/operations/namespaces.js +100 -109
  54. package/dist/browser/operations/namespaces.js.map +1 -1
  55. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
  56. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  57. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +244 -0
  58. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  59. package/dist/browser/operations/operations.js +10 -27
  60. package/dist/browser/operations/operations.js.map +1 -1
  61. package/dist/browser/operations/partnerConfigurations.js +65 -84
  62. package/dist/browser/operations/partnerConfigurations.js.map +1 -1
  63. package/dist/browser/operations/partnerDestinations.d.ts +114 -0
  64. package/dist/browser/operations/partnerDestinations.d.ts.map +1 -0
  65. package/dist/browser/operations/partnerDestinations.js +555 -0
  66. package/dist/browser/operations/partnerDestinations.js.map +1 -0
  67. package/dist/browser/operations/partnerNamespaces.js +78 -97
  68. package/dist/browser/operations/partnerNamespaces.js.map +1 -1
  69. package/dist/browser/operations/partnerRegistrations.js +78 -97
  70. package/dist/browser/operations/partnerRegistrations.js.map +1 -1
  71. package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
  72. package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
  73. package/dist/browser/operations/partnerTopics.js +56 -85
  74. package/dist/browser/operations/partnerTopics.js.map +1 -1
  75. package/dist/browser/operations/permissionBindings.js +45 -52
  76. package/dist/browser/operations/permissionBindings.js.map +1 -1
  77. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  78. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  79. package/dist/browser/operations/privateLinkResources.js +23 -40
  80. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  81. package/dist/browser/operations/systemTopicEventSubscriptions.d.ts +9 -9
  82. package/dist/browser/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
  83. package/dist/browser/operations/systemTopicEventSubscriptions.js +86 -88
  84. package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
  85. package/dist/browser/operations/systemTopics.js +78 -97
  86. package/dist/browser/operations/systemTopics.js.map +1 -1
  87. package/dist/browser/operations/topicEventSubscriptions.js +56 -58
  88. package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
  89. package/dist/browser/operations/topicSpaces.js +45 -52
  90. package/dist/browser/operations/topicSpaces.js.map +1 -1
  91. package/dist/browser/operations/topicTypes.js +19 -53
  92. package/dist/browser/operations/topicTypes.js.map +1 -1
  93. package/dist/browser/operations/topics.js +98 -129
  94. package/dist/browser/operations/topics.js.map +1 -1
  95. package/dist/browser/operations/verifiedPartners.js +23 -40
  96. package/dist/browser/operations/verifiedPartners.js.map +1 -1
  97. package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
  98. package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
  100. package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts +15 -15
  101. package/dist/browser/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
  102. package/dist/browser/operationsInterfaces/eventSubscriptions.js.map +1 -1
  103. package/dist/browser/operationsInterfaces/index.d.ts +5 -3
  104. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  105. package/dist/browser/operationsInterfaces/index.js +5 -3
  106. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  107. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  108. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  109. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  110. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  111. package/dist/browser/operationsInterfaces/partnerDestinations.d.ts +78 -0
  112. package/dist/browser/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
  113. package/dist/browser/operationsInterfaces/partnerDestinations.js +9 -0
  114. package/dist/browser/operationsInterfaces/partnerDestinations.js.map +1 -0
  115. package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
  116. package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
  117. package/dist/browser/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
  118. package/dist/browser/pagingHelper.js +2 -4
  119. package/dist/browser/pagingHelper.js.map +1 -1
  120. package/dist/commonjs/eventGridManagementClient.d.ts +6 -4
  121. package/dist/commonjs/eventGridManagementClient.d.ts.map +1 -1
  122. package/dist/commonjs/eventGridManagementClient.js +53 -11
  123. package/dist/commonjs/eventGridManagementClient.js.map +1 -1
  124. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  125. package/dist/commonjs/lroImpl.js +7 -3
  126. package/dist/commonjs/lroImpl.js.map +1 -1
  127. package/dist/commonjs/models/index.d.ts +1000 -283
  128. package/dist/commonjs/models/index.d.ts.map +1 -1
  129. package/dist/commonjs/models/index.js +176 -18
  130. package/dist/commonjs/models/index.js.map +1 -1
  131. package/dist/commonjs/models/mappers.d.ts +48 -8
  132. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  133. package/dist/commonjs/models/mappers.js +2030 -568
  134. package/dist/commonjs/models/mappers.js.map +1 -1
  135. package/dist/commonjs/models/parameters.d.ts +13 -6
  136. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  137. package/dist/commonjs/models/parameters.js +117 -49
  138. package/dist/commonjs/models/parameters.js.map +1 -1
  139. package/dist/commonjs/operations/caCertificates.js +45 -51
  140. package/dist/commonjs/operations/caCertificates.js.map +1 -1
  141. package/dist/commonjs/operations/channels.js +34 -45
  142. package/dist/commonjs/operations/channels.js.map +1 -1
  143. package/dist/commonjs/operations/clientGroups.js +45 -51
  144. package/dist/commonjs/operations/clientGroups.js.map +1 -1
  145. package/dist/commonjs/operations/clients.js +45 -51
  146. package/dist/commonjs/operations/clients.js.map +1 -1
  147. package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
  148. package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
  149. package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts +10 -10
  150. package/dist/commonjs/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
  151. package/dist/commonjs/operations/domainTopicEventSubscriptions.js +94 -95
  152. package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
  153. package/dist/commonjs/operations/domainTopics.js +45 -51
  154. package/dist/commonjs/operations/domainTopics.js.map +1 -1
  155. package/dist/commonjs/operations/domains.js +78 -96
  156. package/dist/commonjs/operations/domains.js.map +1 -1
  157. package/dist/commonjs/operations/eventSubscriptions.d.ts +15 -15
  158. package/dist/commonjs/operations/eventSubscriptions.d.ts.map +1 -1
  159. package/dist/commonjs/operations/eventSubscriptions.js +288 -442
  160. package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
  161. package/dist/commonjs/operations/extensionTopics.js +1 -0
  162. package/dist/commonjs/operations/extensionTopics.js.map +1 -1
  163. package/dist/commonjs/operations/index.d.ts +5 -3
  164. package/dist/commonjs/operations/index.d.ts.map +1 -1
  165. package/dist/commonjs/operations/index.js +5 -3
  166. package/dist/commonjs/operations/index.js.map +1 -1
  167. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
  168. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  169. package/dist/commonjs/operations/namespaceTopics.js +67 -63
  170. package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
  171. package/dist/commonjs/operations/namespaces.js +100 -108
  172. package/dist/commonjs/operations/namespaces.js.map +1 -1
  173. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
  174. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  175. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +249 -0
  176. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  177. package/dist/commonjs/operations/operations.js +10 -26
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/partnerConfigurations.js +65 -83
  180. package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
  181. package/dist/commonjs/operations/partnerDestinations.d.ts +114 -0
  182. package/dist/commonjs/operations/partnerDestinations.d.ts.map +1 -0
  183. package/dist/commonjs/operations/partnerDestinations.js +560 -0
  184. package/dist/commonjs/operations/partnerDestinations.js.map +1 -0
  185. package/dist/commonjs/operations/partnerNamespaces.js +78 -96
  186. package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
  187. package/dist/commonjs/operations/partnerRegistrations.js +78 -96
  188. package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
  189. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
  190. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
  191. package/dist/commonjs/operations/partnerTopics.js +56 -84
  192. package/dist/commonjs/operations/partnerTopics.js.map +1 -1
  193. package/dist/commonjs/operations/permissionBindings.js +45 -51
  194. package/dist/commonjs/operations/permissionBindings.js.map +1 -1
  195. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  196. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  197. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  198. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  199. package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts +9 -9
  200. package/dist/commonjs/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
  201. package/dist/commonjs/operations/systemTopicEventSubscriptions.js +86 -87
  202. package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
  203. package/dist/commonjs/operations/systemTopics.js +78 -96
  204. package/dist/commonjs/operations/systemTopics.js.map +1 -1
  205. package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
  206. package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
  207. package/dist/commonjs/operations/topicSpaces.js +45 -51
  208. package/dist/commonjs/operations/topicSpaces.js.map +1 -1
  209. package/dist/commonjs/operations/topicTypes.js +19 -52
  210. package/dist/commonjs/operations/topicTypes.js.map +1 -1
  211. package/dist/commonjs/operations/topics.js +98 -128
  212. package/dist/commonjs/operations/topics.js.map +1 -1
  213. package/dist/commonjs/operations/verifiedPartners.js +23 -39
  214. package/dist/commonjs/operations/verifiedPartners.js.map +1 -1
  215. package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
  216. package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
  217. package/dist/commonjs/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
  218. package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts +15 -15
  219. package/dist/commonjs/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
  220. package/dist/commonjs/operationsInterfaces/eventSubscriptions.js.map +1 -1
  221. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -3
  222. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  223. package/dist/commonjs/operationsInterfaces/index.js +5 -3
  224. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  225. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  226. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  227. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +10 -0
  228. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  229. package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts +78 -0
  230. package/dist/commonjs/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
  231. package/dist/commonjs/operationsInterfaces/partnerDestinations.js +10 -0
  232. package/dist/commonjs/operationsInterfaces/partnerDestinations.js.map +1 -0
  233. package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
  234. package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
  235. package/dist/commonjs/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
  236. package/dist/commonjs/pagingHelper.js +2 -4
  237. package/dist/commonjs/pagingHelper.js.map +1 -1
  238. package/dist/commonjs/tsdoc-metadata.json +11 -11
  239. package/dist/esm/eventGridManagementClient.d.ts +6 -4
  240. package/dist/esm/eventGridManagementClient.d.ts.map +1 -1
  241. package/dist/esm/eventGridManagementClient.js +54 -12
  242. package/dist/esm/eventGridManagementClient.js.map +1 -1
  243. package/dist/esm/lroImpl.d.ts.map +1 -1
  244. package/dist/esm/lroImpl.js +7 -3
  245. package/dist/esm/lroImpl.js.map +1 -1
  246. package/dist/esm/models/index.d.ts +1000 -283
  247. package/dist/esm/models/index.d.ts.map +1 -1
  248. package/dist/esm/models/index.js +174 -16
  249. package/dist/esm/models/index.js.map +1 -1
  250. package/dist/esm/models/mappers.d.ts +48 -8
  251. package/dist/esm/models/mappers.d.ts.map +1 -1
  252. package/dist/esm/models/mappers.js +2025 -563
  253. package/dist/esm/models/mappers.js.map +1 -1
  254. package/dist/esm/models/parameters.d.ts +13 -6
  255. package/dist/esm/models/parameters.d.ts.map +1 -1
  256. package/dist/esm/models/parameters.js +116 -48
  257. package/dist/esm/models/parameters.js.map +1 -1
  258. package/dist/esm/operations/caCertificates.js +45 -52
  259. package/dist/esm/operations/caCertificates.js.map +1 -1
  260. package/dist/esm/operations/channels.js +34 -46
  261. package/dist/esm/operations/channels.js.map +1 -1
  262. package/dist/esm/operations/clientGroups.js +45 -52
  263. package/dist/esm/operations/clientGroups.js.map +1 -1
  264. package/dist/esm/operations/clients.js +45 -52
  265. package/dist/esm/operations/clients.js.map +1 -1
  266. package/dist/esm/operations/domainEventSubscriptions.js +56 -58
  267. package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
  268. package/dist/esm/operations/domainTopicEventSubscriptions.d.ts +10 -10
  269. package/dist/esm/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
  270. package/dist/esm/operations/domainTopicEventSubscriptions.js +94 -96
  271. package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
  272. package/dist/esm/operations/domainTopics.js +45 -52
  273. package/dist/esm/operations/domainTopics.js.map +1 -1
  274. package/dist/esm/operations/domains.js +78 -97
  275. package/dist/esm/operations/domains.js.map +1 -1
  276. package/dist/esm/operations/eventSubscriptions.d.ts +15 -15
  277. package/dist/esm/operations/eventSubscriptions.d.ts.map +1 -1
  278. package/dist/esm/operations/eventSubscriptions.js +288 -443
  279. package/dist/esm/operations/eventSubscriptions.js.map +1 -1
  280. package/dist/esm/operations/extensionTopics.js +1 -0
  281. package/dist/esm/operations/extensionTopics.js.map +1 -1
  282. package/dist/esm/operations/index.d.ts +5 -3
  283. package/dist/esm/operations/index.d.ts.map +1 -1
  284. package/dist/esm/operations/index.js +5 -3
  285. package/dist/esm/operations/index.js.map +1 -1
  286. package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
  287. package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  288. package/dist/esm/operations/namespaceTopics.js +67 -64
  289. package/dist/esm/operations/namespaceTopics.js.map +1 -1
  290. package/dist/esm/operations/namespaces.js +100 -109
  291. package/dist/esm/operations/namespaces.js.map +1 -1
  292. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
  293. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  294. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +244 -0
  295. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  296. package/dist/esm/operations/operations.js +10 -27
  297. package/dist/esm/operations/operations.js.map +1 -1
  298. package/dist/esm/operations/partnerConfigurations.js +65 -84
  299. package/dist/esm/operations/partnerConfigurations.js.map +1 -1
  300. package/dist/esm/operations/partnerDestinations.d.ts +114 -0
  301. package/dist/esm/operations/partnerDestinations.d.ts.map +1 -0
  302. package/dist/esm/operations/partnerDestinations.js +555 -0
  303. package/dist/esm/operations/partnerDestinations.js.map +1 -0
  304. package/dist/esm/operations/partnerNamespaces.js +78 -97
  305. package/dist/esm/operations/partnerNamespaces.js.map +1 -1
  306. package/dist/esm/operations/partnerRegistrations.js +78 -97
  307. package/dist/esm/operations/partnerRegistrations.js.map +1 -1
  308. package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
  309. package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
  310. package/dist/esm/operations/partnerTopics.js +56 -85
  311. package/dist/esm/operations/partnerTopics.js.map +1 -1
  312. package/dist/esm/operations/permissionBindings.js +45 -52
  313. package/dist/esm/operations/permissionBindings.js.map +1 -1
  314. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  315. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  316. package/dist/esm/operations/privateLinkResources.js +23 -40
  317. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  318. package/dist/esm/operations/systemTopicEventSubscriptions.d.ts +9 -9
  319. package/dist/esm/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
  320. package/dist/esm/operations/systemTopicEventSubscriptions.js +86 -88
  321. package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
  322. package/dist/esm/operations/systemTopics.js +78 -97
  323. package/dist/esm/operations/systemTopics.js.map +1 -1
  324. package/dist/esm/operations/topicEventSubscriptions.js +56 -58
  325. package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
  326. package/dist/esm/operations/topicSpaces.js +45 -52
  327. package/dist/esm/operations/topicSpaces.js.map +1 -1
  328. package/dist/esm/operations/topicTypes.js +19 -53
  329. package/dist/esm/operations/topicTypes.js.map +1 -1
  330. package/dist/esm/operations/topics.js +98 -129
  331. package/dist/esm/operations/topics.js.map +1 -1
  332. package/dist/esm/operations/verifiedPartners.js +23 -40
  333. package/dist/esm/operations/verifiedPartners.js.map +1 -1
  334. package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
  335. package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
  336. package/dist/esm/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
  337. package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts +15 -15
  338. package/dist/esm/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
  339. package/dist/esm/operationsInterfaces/eventSubscriptions.js.map +1 -1
  340. package/dist/esm/operationsInterfaces/index.d.ts +5 -3
  341. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  342. package/dist/esm/operationsInterfaces/index.js +5 -3
  343. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  344. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  345. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  346. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  347. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  348. package/dist/esm/operationsInterfaces/partnerDestinations.d.ts +78 -0
  349. package/dist/esm/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
  350. package/dist/esm/operationsInterfaces/partnerDestinations.js +9 -0
  351. package/dist/esm/operationsInterfaces/partnerDestinations.js.map +1 -0
  352. package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
  353. package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
  354. package/dist/esm/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
  355. package/dist/esm/pagingHelper.js +2 -4
  356. package/dist/esm/pagingHelper.js.map +1 -1
  357. package/dist/react-native/eventGridManagementClient.d.ts +6 -4
  358. package/dist/react-native/eventGridManagementClient.d.ts.map +1 -1
  359. package/dist/react-native/eventGridManagementClient.js +54 -12
  360. package/dist/react-native/eventGridManagementClient.js.map +1 -1
  361. package/dist/react-native/lroImpl.d.ts.map +1 -1
  362. package/dist/react-native/lroImpl.js +7 -3
  363. package/dist/react-native/lroImpl.js.map +1 -1
  364. package/dist/react-native/models/index.d.ts +1000 -283
  365. package/dist/react-native/models/index.d.ts.map +1 -1
  366. package/dist/react-native/models/index.js +174 -16
  367. package/dist/react-native/models/index.js.map +1 -1
  368. package/dist/react-native/models/mappers.d.ts +48 -8
  369. package/dist/react-native/models/mappers.d.ts.map +1 -1
  370. package/dist/react-native/models/mappers.js +2025 -563
  371. package/dist/react-native/models/mappers.js.map +1 -1
  372. package/dist/react-native/models/parameters.d.ts +13 -6
  373. package/dist/react-native/models/parameters.d.ts.map +1 -1
  374. package/dist/react-native/models/parameters.js +116 -48
  375. package/dist/react-native/models/parameters.js.map +1 -1
  376. package/dist/react-native/operations/caCertificates.js +45 -52
  377. package/dist/react-native/operations/caCertificates.js.map +1 -1
  378. package/dist/react-native/operations/channels.js +34 -46
  379. package/dist/react-native/operations/channels.js.map +1 -1
  380. package/dist/react-native/operations/clientGroups.js +45 -52
  381. package/dist/react-native/operations/clientGroups.js.map +1 -1
  382. package/dist/react-native/operations/clients.js +45 -52
  383. package/dist/react-native/operations/clients.js.map +1 -1
  384. package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
  385. package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
  386. package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts +10 -10
  387. package/dist/react-native/operations/domainTopicEventSubscriptions.d.ts.map +1 -1
  388. package/dist/react-native/operations/domainTopicEventSubscriptions.js +94 -96
  389. package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
  390. package/dist/react-native/operations/domainTopics.js +45 -52
  391. package/dist/react-native/operations/domainTopics.js.map +1 -1
  392. package/dist/react-native/operations/domains.js +78 -97
  393. package/dist/react-native/operations/domains.js.map +1 -1
  394. package/dist/react-native/operations/eventSubscriptions.d.ts +15 -15
  395. package/dist/react-native/operations/eventSubscriptions.d.ts.map +1 -1
  396. package/dist/react-native/operations/eventSubscriptions.js +288 -443
  397. package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
  398. package/dist/react-native/operations/extensionTopics.js +1 -0
  399. package/dist/react-native/operations/extensionTopics.js.map +1 -1
  400. package/dist/react-native/operations/index.d.ts +5 -3
  401. package/dist/react-native/operations/index.d.ts.map +1 -1
  402. package/dist/react-native/operations/index.js +5 -3
  403. package/dist/react-native/operations/index.js.map +1 -1
  404. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
  405. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  406. package/dist/react-native/operations/namespaceTopics.js +67 -64
  407. package/dist/react-native/operations/namespaceTopics.js.map +1 -1
  408. package/dist/react-native/operations/namespaces.js +100 -109
  409. package/dist/react-native/operations/namespaces.js.map +1 -1
  410. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +68 -0
  411. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  412. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +244 -0
  413. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  414. package/dist/react-native/operations/operations.js +10 -27
  415. package/dist/react-native/operations/operations.js.map +1 -1
  416. package/dist/react-native/operations/partnerConfigurations.js +65 -84
  417. package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
  418. package/dist/react-native/operations/partnerDestinations.d.ts +114 -0
  419. package/dist/react-native/operations/partnerDestinations.d.ts.map +1 -0
  420. package/dist/react-native/operations/partnerDestinations.js +555 -0
  421. package/dist/react-native/operations/partnerDestinations.js.map +1 -0
  422. package/dist/react-native/operations/partnerNamespaces.js +78 -97
  423. package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
  424. package/dist/react-native/operations/partnerRegistrations.js +78 -97
  425. package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
  426. package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
  427. package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
  428. package/dist/react-native/operations/partnerTopics.js +56 -85
  429. package/dist/react-native/operations/partnerTopics.js.map +1 -1
  430. package/dist/react-native/operations/permissionBindings.js +45 -52
  431. package/dist/react-native/operations/permissionBindings.js.map +1 -1
  432. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  433. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  434. package/dist/react-native/operations/privateLinkResources.js +23 -40
  435. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  436. package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts +9 -9
  437. package/dist/react-native/operations/systemTopicEventSubscriptions.d.ts.map +1 -1
  438. package/dist/react-native/operations/systemTopicEventSubscriptions.js +86 -88
  439. package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
  440. package/dist/react-native/operations/systemTopics.js +78 -97
  441. package/dist/react-native/operations/systemTopics.js.map +1 -1
  442. package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
  443. package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
  444. package/dist/react-native/operations/topicSpaces.js +45 -52
  445. package/dist/react-native/operations/topicSpaces.js.map +1 -1
  446. package/dist/react-native/operations/topicTypes.js +19 -53
  447. package/dist/react-native/operations/topicTypes.js.map +1 -1
  448. package/dist/react-native/operations/topics.js +98 -129
  449. package/dist/react-native/operations/topics.js.map +1 -1
  450. package/dist/react-native/operations/verifiedPartners.js +23 -40
  451. package/dist/react-native/operations/verifiedPartners.js.map +1 -1
  452. package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts +10 -10
  453. package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.d.ts.map +1 -1
  454. package/dist/react-native/operationsInterfaces/domainTopicEventSubscriptions.js.map +1 -1
  455. package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts +15 -15
  456. package/dist/react-native/operationsInterfaces/eventSubscriptions.d.ts.map +1 -1
  457. package/dist/react-native/operationsInterfaces/eventSubscriptions.js.map +1 -1
  458. package/dist/react-native/operationsInterfaces/index.d.ts +5 -3
  459. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  460. package/dist/react-native/operationsInterfaces/index.js +5 -3
  461. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  462. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  463. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  464. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  465. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  466. package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts +78 -0
  467. package/dist/react-native/operationsInterfaces/partnerDestinations.d.ts.map +1 -0
  468. package/dist/react-native/operationsInterfaces/partnerDestinations.js +9 -0
  469. package/dist/react-native/operationsInterfaces/partnerDestinations.js.map +1 -0
  470. package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts +9 -9
  471. package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -1
  472. package/dist/react-native/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -1
  473. package/dist/react-native/pagingHelper.js +2 -4
  474. package/dist/react-native/pagingHelper.js.map +1 -1
  475. package/package.json +33 -46
  476. package/CHANGELOG.md +0 -2065
  477. package/review/arm-eventgrid.api.md +0 -4226
@@ -1 +1 @@
1
- {"version":3,"file":"systemTopicEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/systemTopicEventSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,iCAAiC;IAK5C;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CACtB,iBAAyB,EACzB,eAAuB,EACvB,OAAsE;QAEtE,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAC1C,iBAAiB,EACjB,eAAe,EACf,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,2BAA2B,CACrC,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,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,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,kMAAkM;IACxM,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;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,eAAe;KAC3B;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 { SystemTopicEventSubscriptions } 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 EventSubscription,\n SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams,\n SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n SystemTopicEventSubscriptionsListBySystemTopicResponse,\n SystemTopicEventSubscriptionsGetOptionalParams,\n SystemTopicEventSubscriptionsGetResponse,\n SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n SystemTopicEventSubscriptionsCreateOrUpdateResponse,\n SystemTopicEventSubscriptionsDeleteOptionalParams,\n EventSubscriptionUpdateParameters,\n SystemTopicEventSubscriptionsUpdateOptionalParams,\n SystemTopicEventSubscriptionsUpdateResponse,\n SystemTopicEventSubscriptionsGetFullUrlOptionalParams,\n SystemTopicEventSubscriptionsGetFullUrlResponse,\n SystemTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n SystemTopicEventSubscriptionsGetDeliveryAttributesResponse,\n SystemTopicEventSubscriptionsListBySystemTopicNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SystemTopicEventSubscriptions operations. */\nexport class SystemTopicEventSubscriptionsImpl\n implements SystemTopicEventSubscriptions\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class SystemTopicEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List event subscriptions that belong to a specific 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 public listBySystemTopic(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): PagedAsyncIterableIterator<EventSubscription> {\n const iter = this.listBySystemTopicPagingAll(\n resourceGroupName,\n systemTopicName,\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.listBySystemTopicPagingPage(\n resourceGroupName,\n systemTopicName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listBySystemTopicPagingPage(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventSubscription[]> {\n let result: SystemTopicEventSubscriptionsListBySystemTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySystemTopic(\n resourceGroupName,\n systemTopicName,\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._listBySystemTopicNext(\n resourceGroupName,\n systemTopicName,\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 *listBySystemTopicPagingAll(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): AsyncIterableIterator<EventSubscription> {\n for await (const page of this.listBySystemTopicPagingPage(\n resourceGroupName,\n systemTopicName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get an event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates or updates an event subscription with the specified parameters. Existing\n * event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicEventSubscriptionsCreateOrUpdateResponse>,\n SystemTopicEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicEventSubscriptionsCreateOrUpdateResponse> => {\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 eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicEventSubscriptionsCreateOrUpdateResponse,\n OperationState<SystemTopicEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates or updates an event subscription with the specified parameters. Existing\n * event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription 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 eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsDeleteOptionalParams,\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: {\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n options,\n },\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 an existing event subscription 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 eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription 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 eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: SystemTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicEventSubscriptionsUpdateResponse>,\n SystemTopicEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicEventSubscriptionsUpdateResponse> => {\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 eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicEventSubscriptionsUpdateResponse,\n OperationState<SystemTopicEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription 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 eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: SystemTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the full endpoint URL for an event subscription 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 eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * List event subscriptions that belong to a specific 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 private _listBySystemTopic(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsListBySystemTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, options },\n listBySystemTopicOperationSpec,\n );\n }\n\n /**\n * Get all delivery attributes for an event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * ListBySystemTopicNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param nextLink The nextLink from the previous successful call to the ListBySystemTopic method.\n * @param options The options parameters.\n */\n private _listBySystemTopicNext(\n resourceGroupName: string,\n systemTopicName: string,\n nextLink: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsListBySystemTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, nextLink, options },\n listBySystemTopicNextOperationSpec,\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}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\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}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\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}/eventSubscriptions/{eventSubscriptionName}\",\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.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionFullUrl,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySystemTopicOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\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.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySystemTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"systemTopicEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/systemTopicEventSubscriptions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AAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;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,eAAe;KAC3B;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 { SystemTopicEventSubscriptions } 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 EventSubscription,\n SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams,\n SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n SystemTopicEventSubscriptionsListBySystemTopicResponse,\n SystemTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n SystemTopicEventSubscriptionsGetDeliveryAttributesResponse,\n SystemTopicEventSubscriptionsGetOptionalParams,\n SystemTopicEventSubscriptionsGetResponse,\n SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n SystemTopicEventSubscriptionsCreateOrUpdateResponse,\n SystemTopicEventSubscriptionsDeleteOptionalParams,\n EventSubscriptionUpdateParameters,\n SystemTopicEventSubscriptionsUpdateOptionalParams,\n SystemTopicEventSubscriptionsUpdateResponse,\n SystemTopicEventSubscriptionsGetFullUrlOptionalParams,\n SystemTopicEventSubscriptionsGetFullUrlResponse,\n SystemTopicEventSubscriptionsListBySystemTopicNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SystemTopicEventSubscriptions operations. */\nexport class SystemTopicEventSubscriptionsImpl\n implements SystemTopicEventSubscriptions\n{\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class SystemTopicEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List event subscriptions that belong to a specific 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 public listBySystemTopic(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): PagedAsyncIterableIterator<EventSubscription> {\n const iter = this.listBySystemTopicPagingAll(\n resourceGroupName,\n systemTopicName,\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.listBySystemTopicPagingPage(\n resourceGroupName,\n systemTopicName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listBySystemTopicPagingPage(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventSubscription[]> {\n let result: SystemTopicEventSubscriptionsListBySystemTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySystemTopic(\n resourceGroupName,\n systemTopicName,\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._listBySystemTopicNext(\n resourceGroupName,\n systemTopicName,\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 *listBySystemTopicPagingAll(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): AsyncIterableIterator<EventSubscription> {\n for await (const page of this.listBySystemTopicPagingPage(\n resourceGroupName,\n systemTopicName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all delivery attributes for an event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * Get an event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates or updates an event subscription with the specified parameters. Existing\n * event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicEventSubscriptionsCreateOrUpdateResponse>,\n SystemTopicEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicEventSubscriptionsCreateOrUpdateResponse> => {\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 eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicEventSubscriptionsCreateOrUpdateResponse,\n OperationState<SystemTopicEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates or updates an event subscription with the specified parameters. Existing\n * event subscriptions will be updated with this API.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: SystemTopicEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription 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 eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsDeleteOptionalParams,\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: {\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n options,\n },\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 an existing event subscription 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 eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription 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 eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: SystemTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SystemTopicEventSubscriptionsUpdateResponse>,\n SystemTopicEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SystemTopicEventSubscriptionsUpdateResponse> => {\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 eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SystemTopicEventSubscriptionsUpdateResponse,\n OperationState<SystemTopicEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription 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 eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: SystemTopicEventSubscriptionsUpdateOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n systemTopicName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the full endpoint URL for an event subscription 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 eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n systemTopicName: string,\n eventSubscriptionName: string,\n options?: SystemTopicEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, eventSubscriptionName, options },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * List event subscriptions that belong to a specific 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 private _listBySystemTopic(\n resourceGroupName: string,\n systemTopicName: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsListBySystemTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, options },\n listBySystemTopicOperationSpec,\n );\n }\n\n /**\n * ListBySystemTopicNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param systemTopicName Name of the system topic.\n * @param nextLink The nextLink from the previous successful call to the ListBySystemTopic method.\n * @param options The options parameters.\n */\n private _listBySystemTopicNext(\n resourceGroupName: string,\n systemTopicName: string,\n nextLink: string,\n options?: SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams,\n ): Promise<SystemTopicEventSubscriptionsListBySystemTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, systemTopicName, nextLink, options },\n listBySystemTopicNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\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}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\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}/eventSubscriptions/{eventSubscriptionName}\",\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.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionFullUrl,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.eventSubscriptionName,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySystemTopicOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\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.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySystemTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.systemTopicName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing SystemTopics operations. */
20
20
  class SystemTopicsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class SystemTopics class.
23
24
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class SystemTopicsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listBySubscriptionPagingPage(options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listBySubscriptionPagingPage(options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listBySubscription(options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listBySubscriptionPagingPage(options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listBySubscription(options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listBySubscriptionNext(continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listBySubscriptionPagingAll(options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listBySubscriptionPagingAll(options) {
69
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * List all the system topics under a resource group.
@@ -101,52 +85,35 @@ class SystemTopicsImpl {
101
85
  return this;
102
86
  },
103
87
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
105
89
  throw new Error("maxPageSize is not supported by this operation.");
106
90
  }
107
91
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
108
92
  },
109
93
  };
110
94
  }
111
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- });
95
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByResourceGroup(resourceGroupName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
130
112
  }
131
- listByResourceGroupPagingAll(resourceGroupName, options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
113
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
114
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * Get properties of a system topic.
@@ -169,14 +136,19 @@ class SystemTopicsImpl {
169
136
  return this.client.sendOperationRequest(args, spec);
170
137
  };
171
138
  const sendOperationFn = async (args, spec) => {
172
- var _a;
173
139
  let currentRawResponse = undefined;
174
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
140
+ const providedCallback = args.options?.onResponse;
175
141
  const callback = (rawResponse, flatResponse) => {
176
142
  currentRawResponse = rawResponse;
177
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
143
+ providedCallback?.(rawResponse, flatResponse);
144
+ };
145
+ const updatedArgs = {
146
+ ...args,
147
+ options: {
148
+ ...args.options,
149
+ onResponse: callback,
150
+ },
178
151
  };
179
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
180
152
  const flatResponse = await directSendOperation(updatedArgs, spec);
181
153
  return {
182
154
  flatResponse,
@@ -193,8 +165,8 @@ class SystemTopicsImpl {
193
165
  spec: createOrUpdateOperationSpec,
194
166
  });
195
167
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
196
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
197
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
168
+ restoreFrom: options?.resumeFrom,
169
+ intervalInMs: options?.updateIntervalInMs,
198
170
  });
199
171
  await poller.poll();
200
172
  return poller;
@@ -221,14 +193,19 @@ class SystemTopicsImpl {
221
193
  return this.client.sendOperationRequest(args, spec);
222
194
  };
223
195
  const sendOperationFn = async (args, spec) => {
224
- var _a;
225
196
  let currentRawResponse = undefined;
226
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
197
+ const providedCallback = args.options?.onResponse;
227
198
  const callback = (rawResponse, flatResponse) => {
228
199
  currentRawResponse = rawResponse;
229
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
200
+ providedCallback?.(rawResponse, flatResponse);
201
+ };
202
+ const updatedArgs = {
203
+ ...args,
204
+ options: {
205
+ ...args.options,
206
+ onResponse: callback,
207
+ },
230
208
  };
231
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
232
209
  const flatResponse = await directSendOperation(updatedArgs, spec);
233
210
  return {
234
211
  flatResponse,
@@ -245,8 +222,8 @@ class SystemTopicsImpl {
245
222
  spec: deleteOperationSpec,
246
223
  });
247
224
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
248
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
249
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
225
+ restoreFrom: options?.resumeFrom,
226
+ intervalInMs: options?.updateIntervalInMs,
250
227
  });
251
228
  await poller.poll();
252
229
  return poller;
@@ -273,14 +250,19 @@ class SystemTopicsImpl {
273
250
  return this.client.sendOperationRequest(args, spec);
274
251
  };
275
252
  const sendOperationFn = async (args, spec) => {
276
- var _a;
277
253
  let currentRawResponse = undefined;
278
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
254
+ const providedCallback = args.options?.onResponse;
279
255
  const callback = (rawResponse, flatResponse) => {
280
256
  currentRawResponse = rawResponse;
281
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
257
+ providedCallback?.(rawResponse, flatResponse);
258
+ };
259
+ const updatedArgs = {
260
+ ...args,
261
+ options: {
262
+ ...args.options,
263
+ onResponse: callback,
264
+ },
282
265
  };
283
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
284
266
  const flatResponse = await directSendOperation(updatedArgs, spec);
285
267
  return {
286
268
  flatResponse,
@@ -302,8 +284,8 @@ class SystemTopicsImpl {
302
284
  spec: updateOperationSpec,
303
285
  });
304
286
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
305
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
306
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
287
+ restoreFrom: options?.resumeFrom,
288
+ intervalInMs: options?.updateIntervalInMs,
307
289
  });
308
290
  await poller.poll();
309
291
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"systemTopics.js","sourceRoot":"","sources":["../../../src/operations/systemTopics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,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,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C3E,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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2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AU,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"]}