@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
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing EventSubscriptions operations. */
20
20
  class EventSubscriptionsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class EventSubscriptions class.
23
24
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class EventSubscriptionsImpl {
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.listGlobalBySubscriptionPagingPage(options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listGlobalBySubscriptionPagingPage(options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalBySubscriptionPagingPage_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._listGlobalBySubscription(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._listGlobalBySubscriptionNext(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 *listGlobalBySubscriptionPagingPage(options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listGlobalBySubscription(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._listGlobalBySubscriptionNext(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
- listGlobalBySubscriptionPagingAll(options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalBySubscriptionPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listGlobalBySubscriptionPagingPage(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 *listGlobalBySubscriptionPagingAll(options) {
69
+ for await (const page of this.listGlobalBySubscriptionPagingPage(options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * List all global event subscriptions under an Azure subscription for a topic type.
@@ -101,52 +85,35 @@ class EventSubscriptionsImpl {
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.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings);
108
92
  },
109
93
  };
110
94
  }
111
- listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalBySubscriptionForTopicTypePagingPage_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._listGlobalBySubscriptionForTopicType(topicTypeName, 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._listGlobalBySubscriptionForTopicTypeNext(topicTypeName, 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 *listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listGlobalBySubscriptionForTopicType(topicTypeName, 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._listGlobalBySubscriptionForTopicTypeNext(topicTypeName, 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
- listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalBySubscriptionForTopicTypePagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, 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 *listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options) {
114
+ for await (const page of this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * List all global event subscriptions under a specific Azure subscription and resource group.
@@ -163,52 +130,35 @@ class EventSubscriptionsImpl {
163
130
  return this;
164
131
  },
165
132
  byPage: (settings) => {
166
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
133
+ if (settings?.maxPageSize) {
167
134
  throw new Error("maxPageSize is not supported by this operation.");
168
135
  }
169
136
  return this.listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings);
170
137
  },
171
138
  };
172
139
  }
173
- listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings) {
174
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalByResourceGroupPagingPage_1() {
175
- let result;
176
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
177
- if (!continuationToken) {
178
- result = yield tslib_1.__await(this._listGlobalByResourceGroup(resourceGroupName, options));
179
- let page = result.value || [];
180
- continuationToken = result.nextLink;
181
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
182
- yield yield tslib_1.__await(page);
183
- }
184
- while (continuationToken) {
185
- result = yield tslib_1.__await(this._listGlobalByResourceGroupNext(resourceGroupName, continuationToken, options));
186
- continuationToken = result.nextLink;
187
- let page = result.value || [];
188
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
189
- yield yield tslib_1.__await(page);
190
- }
191
- });
140
+ async *listGlobalByResourceGroupPagingPage(resourceGroupName, options, settings) {
141
+ let result;
142
+ let continuationToken = settings?.continuationToken;
143
+ if (!continuationToken) {
144
+ result = await this._listGlobalByResourceGroup(resourceGroupName, options);
145
+ let page = result.value || [];
146
+ continuationToken = result.nextLink;
147
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
148
+ yield page;
149
+ }
150
+ while (continuationToken) {
151
+ result = await this._listGlobalByResourceGroupNext(resourceGroupName, continuationToken, options);
152
+ continuationToken = result.nextLink;
153
+ let page = result.value || [];
154
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
155
+ yield page;
156
+ }
192
157
  }
193
- listGlobalByResourceGroupPagingAll(resourceGroupName, options) {
194
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalByResourceGroupPagingAll_1() {
195
- var _a, e_3, _b, _c;
196
- try {
197
- for (var _d = true, _e = tslib_1.__asyncValues(this.listGlobalByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
198
- _c = _f.value;
199
- _d = false;
200
- const page = _c;
201
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
202
- }
203
- }
204
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
205
- finally {
206
- try {
207
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
208
- }
209
- finally { if (e_3) throw e_3.error; }
210
- }
211
- });
158
+ async *listGlobalByResourceGroupPagingAll(resourceGroupName, options) {
159
+ for await (const page of this.listGlobalByResourceGroupPagingPage(resourceGroupName, options)) {
160
+ yield* page;
161
+ }
212
162
  }
213
163
  /**
214
164
  * List all global event subscriptions under a resource group for a specific topic type.
@@ -226,52 +176,35 @@ class EventSubscriptionsImpl {
226
176
  return this;
227
177
  },
228
178
  byPage: (settings) => {
229
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
179
+ if (settings?.maxPageSize) {
230
180
  throw new Error("maxPageSize is not supported by this operation.");
231
181
  }
232
182
  return this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings);
233
183
  },
234
184
  };
235
185
  }
236
- listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings) {
237
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalByResourceGroupForTopicTypePagingPage_1() {
238
- let result;
239
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
240
- if (!continuationToken) {
241
- result = yield tslib_1.__await(this._listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options));
242
- let page = result.value || [];
243
- continuationToken = result.nextLink;
244
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
245
- yield yield tslib_1.__await(page);
246
- }
247
- while (continuationToken) {
248
- result = yield tslib_1.__await(this._listGlobalByResourceGroupForTopicTypeNext(resourceGroupName, topicTypeName, continuationToken, options));
249
- continuationToken = result.nextLink;
250
- let page = result.value || [];
251
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
252
- yield yield tslib_1.__await(page);
253
- }
254
- });
186
+ async *listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options, settings) {
187
+ let result;
188
+ let continuationToken = settings?.continuationToken;
189
+ if (!continuationToken) {
190
+ result = await this._listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options);
191
+ let page = result.value || [];
192
+ continuationToken = result.nextLink;
193
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
194
+ yield page;
195
+ }
196
+ while (continuationToken) {
197
+ result = await this._listGlobalByResourceGroupForTopicTypeNext(resourceGroupName, topicTypeName, continuationToken, options);
198
+ continuationToken = result.nextLink;
199
+ let page = result.value || [];
200
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
201
+ yield page;
202
+ }
255
203
  }
256
- listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options) {
257
- return tslib_1.__asyncGenerator(this, arguments, function* listGlobalByResourceGroupForTopicTypePagingAll_1() {
258
- var _a, e_4, _b, _c;
259
- try {
260
- for (var _d = true, _e = tslib_1.__asyncValues(this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
261
- _c = _f.value;
262
- _d = false;
263
- const page = _c;
264
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
265
- }
266
- }
267
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
268
- finally {
269
- try {
270
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
271
- }
272
- finally { if (e_4) throw e_4.error; }
273
- }
274
- });
204
+ async *listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options) {
205
+ for await (const page of this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options)) {
206
+ yield* page;
207
+ }
275
208
  }
276
209
  /**
277
210
  * List all event subscriptions from the given location under a specific Azure subscription.
@@ -288,52 +221,35 @@ class EventSubscriptionsImpl {
288
221
  return this;
289
222
  },
290
223
  byPage: (settings) => {
291
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
224
+ if (settings?.maxPageSize) {
292
225
  throw new Error("maxPageSize is not supported by this operation.");
293
226
  }
294
227
  return this.listRegionalBySubscriptionPagingPage(location, options, settings);
295
228
  },
296
229
  };
297
230
  }
298
- listRegionalBySubscriptionPagingPage(location, options, settings) {
299
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalBySubscriptionPagingPage_1() {
300
- let result;
301
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
302
- if (!continuationToken) {
303
- result = yield tslib_1.__await(this._listRegionalBySubscription(location, options));
304
- let page = result.value || [];
305
- continuationToken = result.nextLink;
306
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
307
- yield yield tslib_1.__await(page);
308
- }
309
- while (continuationToken) {
310
- result = yield tslib_1.__await(this._listRegionalBySubscriptionNext(location, continuationToken, options));
311
- continuationToken = result.nextLink;
312
- let page = result.value || [];
313
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
314
- yield yield tslib_1.__await(page);
315
- }
316
- });
231
+ async *listRegionalBySubscriptionPagingPage(location, options, settings) {
232
+ let result;
233
+ let continuationToken = settings?.continuationToken;
234
+ if (!continuationToken) {
235
+ result = await this._listRegionalBySubscription(location, options);
236
+ let page = result.value || [];
237
+ continuationToken = result.nextLink;
238
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
239
+ yield page;
240
+ }
241
+ while (continuationToken) {
242
+ result = await this._listRegionalBySubscriptionNext(location, continuationToken, options);
243
+ continuationToken = result.nextLink;
244
+ let page = result.value || [];
245
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
246
+ yield page;
247
+ }
317
248
  }
318
- listRegionalBySubscriptionPagingAll(location, options) {
319
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalBySubscriptionPagingAll_1() {
320
- var _a, e_5, _b, _c;
321
- try {
322
- for (var _d = true, _e = tslib_1.__asyncValues(this.listRegionalBySubscriptionPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
323
- _c = _f.value;
324
- _d = false;
325
- const page = _c;
326
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
327
- }
328
- }
329
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
330
- finally {
331
- try {
332
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
333
- }
334
- finally { if (e_5) throw e_5.error; }
335
- }
336
- });
249
+ async *listRegionalBySubscriptionPagingAll(location, options) {
250
+ for await (const page of this.listRegionalBySubscriptionPagingPage(location, options)) {
251
+ yield* page;
252
+ }
337
253
  }
338
254
  /**
339
255
  * List all event subscriptions from the given location under a specific Azure subscription and
@@ -352,52 +268,35 @@ class EventSubscriptionsImpl {
352
268
  return this;
353
269
  },
354
270
  byPage: (settings) => {
355
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
271
+ if (settings?.maxPageSize) {
356
272
  throw new Error("maxPageSize is not supported by this operation.");
357
273
  }
358
274
  return this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings);
359
275
  },
360
276
  };
361
277
  }
362
- listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings) {
363
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalByResourceGroupPagingPage_1() {
364
- let result;
365
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
366
- if (!continuationToken) {
367
- result = yield tslib_1.__await(this._listRegionalByResourceGroup(resourceGroupName, location, options));
368
- let page = result.value || [];
369
- continuationToken = result.nextLink;
370
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
371
- yield yield tslib_1.__await(page);
372
- }
373
- while (continuationToken) {
374
- result = yield tslib_1.__await(this._listRegionalByResourceGroupNext(resourceGroupName, location, continuationToken, options));
375
- continuationToken = result.nextLink;
376
- let page = result.value || [];
377
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
378
- yield yield tslib_1.__await(page);
379
- }
380
- });
278
+ async *listRegionalByResourceGroupPagingPage(resourceGroupName, location, options, settings) {
279
+ let result;
280
+ let continuationToken = settings?.continuationToken;
281
+ if (!continuationToken) {
282
+ result = await this._listRegionalByResourceGroup(resourceGroupName, location, options);
283
+ let page = result.value || [];
284
+ continuationToken = result.nextLink;
285
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
286
+ yield page;
287
+ }
288
+ while (continuationToken) {
289
+ result = await this._listRegionalByResourceGroupNext(resourceGroupName, location, continuationToken, options);
290
+ continuationToken = result.nextLink;
291
+ let page = result.value || [];
292
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
293
+ yield page;
294
+ }
381
295
  }
382
- listRegionalByResourceGroupPagingAll(resourceGroupName, location, options) {
383
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalByResourceGroupPagingAll_1() {
384
- var _a, e_6, _b, _c;
385
- try {
386
- for (var _d = true, _e = tslib_1.__asyncValues(this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
387
- _c = _f.value;
388
- _d = false;
389
- const page = _c;
390
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
391
- }
392
- }
393
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
394
- finally {
395
- try {
396
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
397
- }
398
- finally { if (e_6) throw e_6.error; }
399
- }
400
- });
296
+ async *listRegionalByResourceGroupPagingAll(resourceGroupName, location, options) {
297
+ for await (const page of this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options)) {
298
+ yield* page;
299
+ }
401
300
  }
402
301
  /**
403
302
  * List all event subscriptions from the given location under a specific Azure subscription and topic
@@ -416,52 +315,35 @@ class EventSubscriptionsImpl {
416
315
  return this;
417
316
  },
418
317
  byPage: (settings) => {
419
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
318
+ if (settings?.maxPageSize) {
420
319
  throw new Error("maxPageSize is not supported by this operation.");
421
320
  }
422
321
  return this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings);
423
322
  },
424
323
  };
425
324
  }
426
- listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings) {
427
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalBySubscriptionForTopicTypePagingPage_1() {
428
- let result;
429
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
430
- if (!continuationToken) {
431
- result = yield tslib_1.__await(this._listRegionalBySubscriptionForTopicType(location, topicTypeName, options));
432
- let page = result.value || [];
433
- continuationToken = result.nextLink;
434
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
435
- yield yield tslib_1.__await(page);
436
- }
437
- while (continuationToken) {
438
- result = yield tslib_1.__await(this._listRegionalBySubscriptionForTopicTypeNext(location, topicTypeName, continuationToken, options));
439
- continuationToken = result.nextLink;
440
- let page = result.value || [];
441
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
442
- yield yield tslib_1.__await(page);
443
- }
444
- });
325
+ async *listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options, settings) {
326
+ let result;
327
+ let continuationToken = settings?.continuationToken;
328
+ if (!continuationToken) {
329
+ result = await this._listRegionalBySubscriptionForTopicType(location, topicTypeName, options);
330
+ let page = result.value || [];
331
+ continuationToken = result.nextLink;
332
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
333
+ yield page;
334
+ }
335
+ while (continuationToken) {
336
+ result = await this._listRegionalBySubscriptionForTopicTypeNext(location, topicTypeName, continuationToken, options);
337
+ continuationToken = result.nextLink;
338
+ let page = result.value || [];
339
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
340
+ yield page;
341
+ }
445
342
  }
446
- listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options) {
447
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalBySubscriptionForTopicTypePagingAll_1() {
448
- var _a, e_7, _b, _c;
449
- try {
450
- for (var _d = true, _e = tslib_1.__asyncValues(this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
451
- _c = _f.value;
452
- _d = false;
453
- const page = _c;
454
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
455
- }
456
- }
457
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
458
- finally {
459
- try {
460
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
461
- }
462
- finally { if (e_7) throw e_7.error; }
463
- }
464
- });
343
+ async *listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options) {
344
+ for await (const page of this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options)) {
345
+ yield* page;
346
+ }
465
347
  }
466
348
  /**
467
349
  * List all event subscriptions from the given location under a specific Azure subscription and
@@ -481,52 +363,35 @@ class EventSubscriptionsImpl {
481
363
  return this;
482
364
  },
483
365
  byPage: (settings) => {
484
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
366
+ if (settings?.maxPageSize) {
485
367
  throw new Error("maxPageSize is not supported by this operation.");
486
368
  }
487
369
  return this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings);
488
370
  },
489
371
  };
490
372
  }
491
- listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings) {
492
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalByResourceGroupForTopicTypePagingPage_1() {
493
- let result;
494
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
495
- if (!continuationToken) {
496
- result = yield tslib_1.__await(this._listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options));
497
- let page = result.value || [];
498
- continuationToken = result.nextLink;
499
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
500
- yield yield tslib_1.__await(page);
501
- }
502
- while (continuationToken) {
503
- result = yield tslib_1.__await(this._listRegionalByResourceGroupForTopicTypeNext(resourceGroupName, location, topicTypeName, continuationToken, options));
504
- continuationToken = result.nextLink;
505
- let page = result.value || [];
506
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
507
- yield yield tslib_1.__await(page);
508
- }
509
- });
373
+ async *listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options, settings) {
374
+ let result;
375
+ let continuationToken = settings?.continuationToken;
376
+ if (!continuationToken) {
377
+ result = await this._listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options);
378
+ let page = result.value || [];
379
+ continuationToken = result.nextLink;
380
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
381
+ yield page;
382
+ }
383
+ while (continuationToken) {
384
+ result = await this._listRegionalByResourceGroupForTopicTypeNext(resourceGroupName, location, topicTypeName, continuationToken, options);
385
+ continuationToken = result.nextLink;
386
+ let page = result.value || [];
387
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
388
+ yield page;
389
+ }
510
390
  }
511
- listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options) {
512
- return tslib_1.__asyncGenerator(this, arguments, function* listRegionalByResourceGroupForTopicTypePagingAll_1() {
513
- var _a, e_8, _b, _c;
514
- try {
515
- for (var _d = true, _e = tslib_1.__asyncValues(this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
516
- _c = _f.value;
517
- _d = false;
518
- const page = _c;
519
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
520
- }
521
- }
522
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
523
- finally {
524
- try {
525
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
526
- }
527
- finally { if (e_8) throw e_8.error; }
528
- }
529
- });
391
+ async *listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options) {
392
+ for await (const page of this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options)) {
393
+ yield* page;
394
+ }
530
395
  }
531
396
  /**
532
397
  * List all event subscriptions that have been created for a specific resource.
@@ -546,52 +411,35 @@ class EventSubscriptionsImpl {
546
411
  return this;
547
412
  },
548
413
  byPage: (settings) => {
549
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
414
+ if (settings?.maxPageSize) {
550
415
  throw new Error("maxPageSize is not supported by this operation.");
551
416
  }
552
417
  return this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings);
553
418
  },
554
419
  };
555
420
  }
556
- listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings) {
557
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
558
- let result;
559
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
560
- if (!continuationToken) {
561
- result = yield tslib_1.__await(this._listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options));
562
- let page = result.value || [];
563
- continuationToken = result.nextLink;
564
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
565
- yield yield tslib_1.__await(page);
566
- }
567
- while (continuationToken) {
568
- result = yield tslib_1.__await(this._listByResourceNext(resourceGroupName, providerNamespace, resourceTypeName, resourceName, continuationToken, options));
569
- continuationToken = result.nextLink;
570
- let page = result.value || [];
571
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
572
- yield yield tslib_1.__await(page);
573
- }
574
- });
421
+ async *listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options, settings) {
422
+ let result;
423
+ let continuationToken = settings?.continuationToken;
424
+ if (!continuationToken) {
425
+ result = await this._listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options);
426
+ let page = result.value || [];
427
+ continuationToken = result.nextLink;
428
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
429
+ yield page;
430
+ }
431
+ while (continuationToken) {
432
+ result = await this._listByResourceNext(resourceGroupName, providerNamespace, resourceTypeName, resourceName, continuationToken, options);
433
+ continuationToken = result.nextLink;
434
+ let page = result.value || [];
435
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
436
+ yield page;
437
+ }
575
438
  }
576
- listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
577
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
578
- var _a, e_9, _b, _c;
579
- try {
580
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
581
- _c = _f.value;
582
- _d = false;
583
- const page = _c;
584
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
585
- }
586
- }
587
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
588
- finally {
589
- try {
590
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
591
- }
592
- finally { if (e_9) throw e_9.error; }
593
- }
594
- });
439
+ async *listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
440
+ for await (const page of this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options)) {
441
+ yield* page;
442
+ }
595
443
  }
596
444
  /**
597
445
  * List all event subscriptions that have been created for a specific domain topic.
@@ -610,52 +458,51 @@ class EventSubscriptionsImpl {
610
458
  return this;
611
459
  },
612
460
  byPage: (settings) => {
613
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
461
+ if (settings?.maxPageSize) {
614
462
  throw new Error("maxPageSize is not supported by this operation.");
615
463
  }
616
464
  return this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings);
617
465
  },
618
466
  };
619
467
  }
620
- listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings) {
621
- return tslib_1.__asyncGenerator(this, arguments, function* listByDomainTopicPagingPage_1() {
622
- let result;
623
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
624
- if (!continuationToken) {
625
- result = yield tslib_1.__await(this._listByDomainTopic(resourceGroupName, domainName, topicName, options));
626
- let page = result.value || [];
627
- continuationToken = result.nextLink;
628
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
629
- yield yield tslib_1.__await(page);
630
- }
631
- while (continuationToken) {
632
- result = yield tslib_1.__await(this._listByDomainTopicNext(resourceGroupName, domainName, topicName, continuationToken, options));
633
- continuationToken = result.nextLink;
634
- let page = result.value || [];
635
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
636
- yield yield tslib_1.__await(page);
637
- }
638
- });
468
+ async *listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options, settings) {
469
+ let result;
470
+ let continuationToken = settings?.continuationToken;
471
+ if (!continuationToken) {
472
+ result = await this._listByDomainTopic(resourceGroupName, domainName, topicName, options);
473
+ let page = result.value || [];
474
+ continuationToken = result.nextLink;
475
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
476
+ yield page;
477
+ }
478
+ while (continuationToken) {
479
+ result = await this._listByDomainTopicNext(resourceGroupName, domainName, topicName, continuationToken, options);
480
+ continuationToken = result.nextLink;
481
+ let page = result.value || [];
482
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
483
+ yield page;
484
+ }
639
485
  }
640
- listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options) {
641
- return tslib_1.__asyncGenerator(this, arguments, function* listByDomainTopicPagingAll_1() {
642
- var _a, e_10, _b, _c;
643
- try {
644
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
645
- _c = _f.value;
646
- _d = false;
647
- const page = _c;
648
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
649
- }
650
- }
651
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
652
- finally {
653
- try {
654
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
655
- }
656
- finally { if (e_10) throw e_10.error; }
657
- }
658
- });
486
+ async *listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options) {
487
+ for await (const page of this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options)) {
488
+ yield* page;
489
+ }
490
+ }
491
+ /**
492
+ * Get all delivery attributes for an event subscription.
493
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
494
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
495
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
496
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
497
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
498
+ * for a resource, and
499
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
500
+ * for an EventGrid topic.
501
+ * @param eventSubscriptionName Name of the event subscription.
502
+ * @param options The options parameters.
503
+ */
504
+ getDeliveryAttributes(scope, eventSubscriptionName, options) {
505
+ return this.client.sendOperationRequest({ scope, eventSubscriptionName, options }, getDeliveryAttributesOperationSpec);
659
506
  }
660
507
  /**
661
508
  * Get properties of an event subscription.
@@ -696,14 +543,19 @@ class EventSubscriptionsImpl {
696
543
  return this.client.sendOperationRequest(args, spec);
697
544
  };
698
545
  const sendOperationFn = async (args, spec) => {
699
- var _a;
700
546
  let currentRawResponse = undefined;
701
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
547
+ const providedCallback = args.options?.onResponse;
702
548
  const callback = (rawResponse, flatResponse) => {
703
549
  currentRawResponse = rawResponse;
704
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
550
+ providedCallback?.(rawResponse, flatResponse);
551
+ };
552
+ const updatedArgs = {
553
+ ...args,
554
+ options: {
555
+ ...args.options,
556
+ onResponse: callback,
557
+ },
705
558
  };
706
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
707
559
  const flatResponse = await directSendOperation(updatedArgs, spec);
708
560
  return {
709
561
  flatResponse,
@@ -720,8 +572,8 @@ class EventSubscriptionsImpl {
720
572
  spec: createOrUpdateOperationSpec,
721
573
  });
722
574
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
723
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
724
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
575
+ restoreFrom: options?.resumeFrom,
576
+ intervalInMs: options?.updateIntervalInMs,
725
577
  });
726
578
  await poller.poll();
727
579
  return poller;
@@ -766,14 +618,19 @@ class EventSubscriptionsImpl {
766
618
  return this.client.sendOperationRequest(args, spec);
767
619
  };
768
620
  const sendOperationFn = async (args, spec) => {
769
- var _a;
770
621
  let currentRawResponse = undefined;
771
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
622
+ const providedCallback = args.options?.onResponse;
772
623
  const callback = (rawResponse, flatResponse) => {
773
624
  currentRawResponse = rawResponse;
774
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
625
+ providedCallback?.(rawResponse, flatResponse);
626
+ };
627
+ const updatedArgs = {
628
+ ...args,
629
+ options: {
630
+ ...args.options,
631
+ onResponse: callback,
632
+ },
775
633
  };
776
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
777
634
  const flatResponse = await directSendOperation(updatedArgs, spec);
778
635
  return {
779
636
  flatResponse,
@@ -790,8 +647,8 @@ class EventSubscriptionsImpl {
790
647
  spec: deleteOperationSpec,
791
648
  });
792
649
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
793
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
794
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
650
+ restoreFrom: options?.resumeFrom,
651
+ intervalInMs: options?.updateIntervalInMs,
795
652
  });
796
653
  await poller.poll();
797
654
  return poller;
@@ -832,14 +689,19 @@ class EventSubscriptionsImpl {
832
689
  return this.client.sendOperationRequest(args, spec);
833
690
  };
834
691
  const sendOperationFn = async (args, spec) => {
835
- var _a;
836
692
  let currentRawResponse = undefined;
837
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
693
+ const providedCallback = args.options?.onResponse;
838
694
  const callback = (rawResponse, flatResponse) => {
839
695
  currentRawResponse = rawResponse;
840
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
696
+ providedCallback?.(rawResponse, flatResponse);
697
+ };
698
+ const updatedArgs = {
699
+ ...args,
700
+ options: {
701
+ ...args.options,
702
+ onResponse: callback,
703
+ },
841
704
  };
842
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
843
705
  const flatResponse = await directSendOperation(updatedArgs, spec);
844
706
  return {
845
707
  flatResponse,
@@ -861,8 +723,8 @@ class EventSubscriptionsImpl {
861
723
  spec: updateOperationSpec,
862
724
  });
863
725
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
864
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
865
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
726
+ restoreFrom: options?.resumeFrom,
727
+ intervalInMs: options?.updateIntervalInMs,
866
728
  });
867
729
  await poller.poll();
868
730
  return poller;
@@ -999,22 +861,6 @@ class EventSubscriptionsImpl {
999
861
  _listByDomainTopic(resourceGroupName, domainName, topicName, options) {
1000
862
  return this.client.sendOperationRequest({ resourceGroupName, domainName, topicName, options }, listByDomainTopicOperationSpec);
1001
863
  }
1002
- /**
1003
- * Get all delivery attributes for an event subscription.
1004
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
1005
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
1006
- * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
1007
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
1008
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1009
- * for a resource, and
1010
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1011
- * for an EventGrid topic.
1012
- * @param eventSubscriptionName Name of the event subscription.
1013
- * @param options The options parameters.
1014
- */
1015
- getDeliveryAttributes(scope, eventSubscriptionName, options) {
1016
- return this.client.sendOperationRequest({ scope, eventSubscriptionName, options }, getDeliveryAttributesOperationSpec);
1017
- }
1018
864
  /**
1019
865
  * ListGlobalBySubscriptionNext
1020
866
  * @param nextLink The nextLink from the previous successful call to the ListGlobalBySubscription
@@ -1133,6 +979,24 @@ class EventSubscriptionsImpl {
1133
979
  exports.EventSubscriptionsImpl = EventSubscriptionsImpl;
1134
980
  // Operation Specifications
1135
981
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
982
+ const getDeliveryAttributesOperationSpec = {
983
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
984
+ httpMethod: "POST",
985
+ responses: {
986
+ 200: {
987
+ bodyMapper: Mappers.DeliveryAttributeListResult,
988
+ },
989
+ default: {},
990
+ },
991
+ queryParameters: [Parameters.apiVersion],
992
+ urlParameters: [
993
+ Parameters.$host,
994
+ Parameters.eventSubscriptionName,
995
+ Parameters.scope,
996
+ ],
997
+ headerParameters: [Parameters.accept],
998
+ serializer,
999
+ };
1136
1000
  const getOperationSpec = {
1137
1001
  path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1138
1002
  httpMethod: "GET",
@@ -1425,24 +1289,6 @@ const listByDomainTopicOperationSpec = {
1425
1289
  headerParameters: [Parameters.accept],
1426
1290
  serializer,
1427
1291
  };
1428
- const getDeliveryAttributesOperationSpec = {
1429
- path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
1430
- httpMethod: "POST",
1431
- responses: {
1432
- 200: {
1433
- bodyMapper: Mappers.DeliveryAttributeListResult,
1434
- },
1435
- default: {},
1436
- },
1437
- queryParameters: [Parameters.apiVersion],
1438
- urlParameters: [
1439
- Parameters.$host,
1440
- Parameters.eventSubscriptionName,
1441
- Parameters.scope,
1442
- ],
1443
- headerParameters: [Parameters.accept],
1444
- serializer,
1445
- };
1446
1292
  const listGlobalBySubscriptionNextOperationSpec = {
1447
1293
  path: "{nextLink}",
1448
1294
  httpMethod: "GET",