@azure/arm-eventgrid 12.0.0 → 13.0.0

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 (287) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +7613 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/eventGridManagementClient.d.ts +29 -0
  9. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/eventGridManagementClient.js +62 -0
  11. package/dist-esm/src/eventGridManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +1943 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +204 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +107 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +1216 -1303
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +42 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +347 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/domainTopics.d.ts +79 -0
  33. package/dist-esm/src/operations/domainTopics.d.ts.map +1 -0
  34. package/dist-esm/src/operations/domainTopics.js +310 -0
  35. package/dist-esm/src/operations/domainTopics.js.map +1 -0
  36. package/dist-esm/src/operations/domains.d.ts +122 -0
  37. package/dist-esm/src/operations/domains.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domains.js +522 -0
  39. package/dist-esm/src/operations/domains.js.map +1 -0
  40. package/dist-esm/src/operations/eventSubscriptions.d.ts +404 -0
  41. package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/eventSubscriptions.js +1504 -0
  43. package/dist-esm/src/operations/eventSubscriptions.js.map +1 -0
  44. package/dist-esm/src/operations/extensionTopics.d.ts +24 -0
  45. package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -0
  46. package/dist-esm/src/operations/extensionTopics.js +50 -0
  47. package/dist-esm/src/operations/extensionTopics.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/{esm → dist-esm/src}/operations/index.js +1 -2
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operations.d.ts +26 -0
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operations.js +88 -0
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/src/operations/privateEndpointConnections.d.ts +89 -0
  57. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  58. package/dist-esm/src/operations/privateEndpointConnections.js +346 -0
  59. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  60. package/dist-esm/src/operations/privateLinkResources.d.ts +50 -0
  61. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  62. package/dist-esm/src/operations/privateLinkResources.js +176 -0
  63. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  64. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +128 -0
  65. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -0
  66. package/dist-esm/src/operations/systemTopicEventSubscriptions.js +483 -0
  67. package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -0
  68. package/dist-esm/src/operations/systemTopics.d.ts +107 -0
  69. package/dist-esm/src/operations/systemTopics.d.ts.map +1 -0
  70. package/dist-esm/src/operations/systemTopics.js +482 -0
  71. package/dist-esm/src/operations/systemTopics.js.map +1 -0
  72. package/dist-esm/src/operations/topicTypes.d.ts +46 -0
  73. package/dist-esm/src/operations/topicTypes.d.ts.map +1 -0
  74. package/dist-esm/src/operations/topicTypes.js +175 -0
  75. package/dist-esm/src/operations/topicTypes.js.map +1 -0
  76. package/dist-esm/src/operations/topics.d.ts +150 -0
  77. package/dist-esm/src/operations/topics.d.ts.map +1 -0
  78. package/dist-esm/src/operations/topics.js +656 -0
  79. package/dist-esm/src/operations/topics.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts +54 -0
  81. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts.map +1 -0
  82. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/domainTopics.js} +2 -8
  83. package/dist-esm/src/operationsInterfaces/domainTopics.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/domains.d.ts +86 -0
  85. package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -0
  86. package/{src/models/privateLinkResourcesMappers.ts → dist-esm/src/operationsInterfaces/domains.js} +2 -7
  87. package/dist-esm/src/operationsInterfaces/domains.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts +217 -0
  89. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts.map +1 -0
  90. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/eventSubscriptions.js} +2 -2
  91. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts +16 -0
  93. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/extensionTopics.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/extensionTopics.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
  97. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/index.js +19 -0
  99. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +62 -0
  105. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +23 -0
  109. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts +103 -0
  113. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts +71 -0
  117. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/systemTopics.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/systemTopics.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts +23 -0
  121. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/topicTypes.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/topicTypes.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/topics.d.ts +103 -0
  125. package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
  126. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/topics.js} +2 -1
  127. package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
  128. package/dist-esm/test/eventgrid_examples.d.ts +4 -0
  129. package/dist-esm/test/eventgrid_examples.d.ts.map +1 -0
  130. package/dist-esm/test/eventgrid_examples.js +166 -0
  131. package/dist-esm/test/eventgrid_examples.js.map +1 -0
  132. package/package.json +65 -32
  133. package/review/arm-eventgrid.api.md +1777 -0
  134. package/rollup.config.js +181 -30
  135. package/src/eventGridManagementClient.ts +107 -53
  136. package/{esm/models/privateLinkResourcesMappers.js → src/index.ts} +5 -2
  137. package/src/lroImpl.ts +34 -0
  138. package/src/models/index.ts +1844 -3910
  139. package/src/models/mappers.ts +1261 -1339
  140. package/src/models/parameters.ts +239 -82
  141. package/src/operations/domainTopics.ts +346 -224
  142. package/src/operations/domains.ts +545 -454
  143. package/src/operations/eventSubscriptions.ts +1658 -1236
  144. package/src/operations/extensionTopics.ts +37 -66
  145. package/src/operations/index.ts +1 -2
  146. package/src/operations/operations.ts +65 -43
  147. package/src/operations/privateEndpointConnections.ts +386 -253
  148. package/src/operations/privateLinkResources.ts +178 -150
  149. package/src/operations/systemTopicEventSubscriptions.ts +537 -394
  150. package/src/operations/systemTopics.ts +505 -349
  151. package/src/operations/topicTypes.ts +138 -114
  152. package/src/operations/topics.ts +728 -494
  153. package/src/operationsInterfaces/domainTopics.ts +105 -0
  154. package/src/operationsInterfaces/domains.ts +162 -0
  155. package/src/operationsInterfaces/eventSubscriptions.ts +339 -0
  156. package/src/operationsInterfaces/extensionTopics.ts +30 -0
  157. package/src/operationsInterfaces/index.ts +19 -0
  158. package/src/operationsInterfaces/operations.ts +22 -0
  159. package/src/operationsInterfaces/privateEndpointConnections.ts +125 -0
  160. package/src/operationsInterfaces/privateLinkResources.ts +48 -0
  161. package/src/operationsInterfaces/systemTopicEventSubscriptions.ts +190 -0
  162. package/src/operationsInterfaces/systemTopics.ts +139 -0
  163. package/src/operationsInterfaces/topicTypes.ts +47 -0
  164. package/src/operationsInterfaces/topics.ts +197 -0
  165. package/tsconfig.json +3 -3
  166. package/types/arm-eventgrid.d.ts +2998 -0
  167. package/types/tsdoc-metadata.json +11 -0
  168. package/dist/arm-eventgrid.js +0 -6824
  169. package/dist/arm-eventgrid.js.map +0 -1
  170. package/dist/arm-eventgrid.min.js +0 -1
  171. package/dist/arm-eventgrid.min.js.map +0 -1
  172. package/esm/eventGridManagementClient.d.ts +0 -35
  173. package/esm/eventGridManagementClient.d.ts.map +0 -1
  174. package/esm/eventGridManagementClient.js +0 -48
  175. package/esm/eventGridManagementClient.js.map +0 -1
  176. package/esm/eventGridManagementClientContext.d.ts +0 -23
  177. package/esm/eventGridManagementClientContext.d.ts.map +0 -1
  178. package/esm/eventGridManagementClientContext.js +0 -61
  179. package/esm/eventGridManagementClientContext.js.map +0 -1
  180. package/esm/models/domainTopicsMappers.d.ts +0 -2
  181. package/esm/models/domainTopicsMappers.d.ts.map +0 -1
  182. package/esm/models/domainTopicsMappers.js +0 -9
  183. package/esm/models/domainTopicsMappers.js.map +0 -1
  184. package/esm/models/domainsMappers.d.ts +0 -2
  185. package/esm/models/domainsMappers.d.ts.map +0 -1
  186. package/esm/models/domainsMappers.js +0 -9
  187. package/esm/models/domainsMappers.js.map +0 -1
  188. package/esm/models/eventSubscriptionsMappers.d.ts +0 -2
  189. package/esm/models/eventSubscriptionsMappers.d.ts.map +0 -1
  190. package/esm/models/eventSubscriptionsMappers.js +0 -9
  191. package/esm/models/eventSubscriptionsMappers.js.map +0 -1
  192. package/esm/models/extensionTopicsMappers.d.ts +0 -2
  193. package/esm/models/extensionTopicsMappers.d.ts.map +0 -1
  194. package/esm/models/extensionTopicsMappers.js +0 -9
  195. package/esm/models/extensionTopicsMappers.js.map +0 -1
  196. package/esm/models/index.d.ts +0 -4080
  197. package/esm/models/index.d.ts.map +0 -1
  198. package/esm/models/index.js.map +0 -1
  199. package/esm/models/mappers.d.ts +0 -109
  200. package/esm/models/mappers.d.ts.map +0 -1
  201. package/esm/models/mappers.js.map +0 -1
  202. package/esm/models/operationsMappers.d.ts +0 -2
  203. package/esm/models/operationsMappers.d.ts.map +0 -1
  204. package/esm/models/operationsMappers.js.map +0 -1
  205. package/esm/models/parameters.d.ts +0 -25
  206. package/esm/models/parameters.d.ts.map +0 -1
  207. package/esm/models/parameters.js +0 -245
  208. package/esm/models/parameters.js.map +0 -1
  209. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  210. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  211. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  212. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  213. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  214. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  215. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  216. package/esm/models/systemTopicEventSubscriptionsMappers.d.ts +0 -2
  217. package/esm/models/systemTopicEventSubscriptionsMappers.d.ts.map +0 -1
  218. package/esm/models/systemTopicEventSubscriptionsMappers.js +0 -9
  219. package/esm/models/systemTopicEventSubscriptionsMappers.js.map +0 -1
  220. package/esm/models/systemTopicsMappers.d.ts +0 -2
  221. package/esm/models/systemTopicsMappers.d.ts.map +0 -1
  222. package/esm/models/systemTopicsMappers.js +0 -9
  223. package/esm/models/systemTopicsMappers.js.map +0 -1
  224. package/esm/models/topicTypesMappers.d.ts +0 -2
  225. package/esm/models/topicTypesMappers.d.ts.map +0 -1
  226. package/esm/models/topicTypesMappers.js +0 -9
  227. package/esm/models/topicTypesMappers.js.map +0 -1
  228. package/esm/models/topicsMappers.d.ts +0 -2
  229. package/esm/models/topicsMappers.d.ts.map +0 -1
  230. package/esm/models/topicsMappers.js +0 -9
  231. package/esm/models/topicsMappers.js.map +0 -1
  232. package/esm/operations/domainTopics.d.ts +0 -120
  233. package/esm/operations/domainTopics.d.ts.map +0 -1
  234. package/esm/operations/domainTopics.js +0 -233
  235. package/esm/operations/domainTopics.js.map +0 -1
  236. package/esm/operations/domains.d.ts +0 -214
  237. package/esm/operations/domains.d.ts.map +0 -1
  238. package/esm/operations/domains.js +0 -415
  239. package/esm/operations/domains.js.map +0 -1
  240. package/esm/operations/eventSubscriptions.d.ts +0 -666
  241. package/esm/operations/eventSubscriptions.d.ts.map +0 -1
  242. package/esm/operations/eventSubscriptions.js +0 -969
  243. package/esm/operations/eventSubscriptions.js.map +0 -1
  244. package/esm/operations/extensionTopics.d.ts +0 -47
  245. package/esm/operations/extensionTopics.d.ts.map +0 -1
  246. package/esm/operations/extensionTopics.js +0 -54
  247. package/esm/operations/extensionTopics.js.map +0 -1
  248. package/esm/operations/index.d.ts.map +0 -1
  249. package/esm/operations/index.js.map +0 -1
  250. package/esm/operations/operations.d.ts +0 -29
  251. package/esm/operations/operations.d.ts.map +0 -1
  252. package/esm/operations/operations.js +0 -50
  253. package/esm/operations/operations.js.map +0 -1
  254. package/esm/operations/privateEndpointConnections.d.ts +0 -152
  255. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  256. package/esm/operations/privateEndpointConnections.js +0 -263
  257. package/esm/operations/privateEndpointConnections.js.map +0 -1
  258. package/esm/operations/privateLinkResources.d.ts +0 -91
  259. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  260. package/esm/operations/privateLinkResources.js +0 -127
  261. package/esm/operations/privateLinkResources.js.map +0 -1
  262. package/esm/operations/systemTopicEventSubscriptions.d.ts +0 -213
  263. package/esm/operations/systemTopicEventSubscriptions.d.ts.map +0 -1
  264. package/esm/operations/systemTopicEventSubscriptions.js +0 -379
  265. package/esm/operations/systemTopicEventSubscriptions.js.map +0 -1
  266. package/esm/operations/systemTopics.d.ts +0 -167
  267. package/esm/operations/systemTopics.d.ts.map +0 -1
  268. package/esm/operations/systemTopics.js +0 -353
  269. package/esm/operations/systemTopics.js.map +0 -1
  270. package/esm/operations/topicTypes.d.ts +0 -67
  271. package/esm/operations/topicTypes.d.ts.map +0 -1
  272. package/esm/operations/topicTypes.js +0 -106
  273. package/esm/operations/topicTypes.js.map +0 -1
  274. package/esm/operations/topics.d.ts +0 -237
  275. package/esm/operations/topics.d.ts.map +0 -1
  276. package/esm/operations/topics.js +0 -471
  277. package/esm/operations/topics.js.map +0 -1
  278. package/src/eventGridManagementClientContext.ts +0 -68
  279. package/src/models/domainTopicsMappers.ts +0 -66
  280. package/src/models/domainsMappers.ts +0 -69
  281. package/src/models/eventSubscriptionsMappers.ts +0 -69
  282. package/src/models/extensionTopicsMappers.ts +0 -65
  283. package/src/models/privateEndpointConnectionsMappers.ts +0 -66
  284. package/src/models/systemTopicEventSubscriptionsMappers.ts +0 -69
  285. package/src/models/systemTopicsMappers.ts +0 -67
  286. package/src/models/topicTypesMappers.ts +0 -67
  287. package/src/models/topicsMappers.ts +0 -70
@@ -3,1653 +3,2075 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/eventSubscriptionsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { EventSubscriptions } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { EventGridManagementClientContext } from "../eventGridManagementClientContext";
14
+ import { EventGridManagementClient } from "../eventGridManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ EventSubscription,
19
+ EventSubscriptionsListGlobalBySubscriptionNextOptionalParams,
20
+ EventSubscriptionsListGlobalBySubscriptionOptionalParams,
21
+ EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams,
22
+ EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams,
23
+ EventSubscriptionsListGlobalByResourceGroupNextOptionalParams,
24
+ EventSubscriptionsListGlobalByResourceGroupOptionalParams,
25
+ EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams,
26
+ EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams,
27
+ EventSubscriptionsListRegionalBySubscriptionNextOptionalParams,
28
+ EventSubscriptionsListRegionalBySubscriptionOptionalParams,
29
+ EventSubscriptionsListRegionalByResourceGroupNextOptionalParams,
30
+ EventSubscriptionsListRegionalByResourceGroupOptionalParams,
31
+ EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams,
32
+ EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams,
33
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams,
34
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams,
35
+ EventSubscriptionsListByResourceNextOptionalParams,
36
+ EventSubscriptionsListByResourceOptionalParams,
37
+ EventSubscriptionsListByDomainTopicNextOptionalParams,
38
+ EventSubscriptionsListByDomainTopicOptionalParams,
39
+ EventSubscriptionsGetOptionalParams,
40
+ EventSubscriptionsGetResponse,
41
+ EventSubscriptionsCreateOrUpdateOptionalParams,
42
+ EventSubscriptionsCreateOrUpdateResponse,
43
+ EventSubscriptionsDeleteOptionalParams,
44
+ EventSubscriptionUpdateParameters,
45
+ EventSubscriptionsUpdateOptionalParams,
46
+ EventSubscriptionsUpdateResponse,
47
+ EventSubscriptionsGetFullUrlOptionalParams,
48
+ EventSubscriptionsGetFullUrlResponse,
49
+ EventSubscriptionsListGlobalBySubscriptionResponse,
50
+ EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse,
51
+ EventSubscriptionsListGlobalByResourceGroupResponse,
52
+ EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse,
53
+ EventSubscriptionsListRegionalBySubscriptionResponse,
54
+ EventSubscriptionsListRegionalByResourceGroupResponse,
55
+ EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse,
56
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse,
57
+ EventSubscriptionsListByResourceResponse,
58
+ EventSubscriptionsListByDomainTopicResponse,
59
+ EventSubscriptionsGetDeliveryAttributesOptionalParams,
60
+ EventSubscriptionsGetDeliveryAttributesResponse,
61
+ EventSubscriptionsListGlobalBySubscriptionNextResponse,
62
+ EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse,
63
+ EventSubscriptionsListGlobalByResourceGroupNextResponse,
64
+ EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse,
65
+ EventSubscriptionsListRegionalBySubscriptionNextResponse,
66
+ EventSubscriptionsListRegionalByResourceGroupNextResponse,
67
+ EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse,
68
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse,
69
+ EventSubscriptionsListByResourceNextResponse,
70
+ EventSubscriptionsListByDomainTopicNextResponse
71
+ } from "../models";
16
72
 
17
- /** Class representing a EventSubscriptions. */
18
- export class EventSubscriptions {
19
- private readonly client: EventGridManagementClientContext;
73
+ /// <reference lib="esnext.asynciterable" />
74
+ /** Class containing EventSubscriptions operations. */
75
+ export class EventSubscriptionsImpl implements EventSubscriptions {
76
+ private readonly client: EventGridManagementClient;
20
77
 
21
78
  /**
22
- * Create a EventSubscriptions.
23
- * @param {EventGridManagementClientContext} client Reference to the service client.
79
+ * Initialize a new instance of the class EventSubscriptions class.
80
+ * @param client Reference to the service client
24
81
  */
25
- constructor(client: EventGridManagementClientContext) {
82
+ constructor(client: EventGridManagementClient) {
26
83
  this.client = client;
27
84
  }
28
85
 
29
86
  /**
30
- * Get properties of an event subscription.
31
- * @summary Get an event subscription.
32
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
33
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
34
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
35
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
36
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
37
- * for a resource, and
38
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
39
- * for an EventGrid topic.
40
- * @param eventSubscriptionName Name of the event subscription.
41
- * @param [options] The optional parameters
42
- * @returns Promise<Models.EventSubscriptionsGetResponse>
43
- */
44
- get(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise<Models.EventSubscriptionsGetResponse>;
45
- /**
46
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
47
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
48
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
49
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
50
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
51
- * for a resource, and
52
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
53
- * for an EventGrid topic.
54
- * @param eventSubscriptionName Name of the event subscription.
55
- * @param callback The callback
56
- */
57
- get(scope: string, eventSubscriptionName: string, callback: msRest.ServiceCallback<Models.EventSubscription>): void;
58
- /**
59
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
60
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
61
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
62
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
63
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
64
- * for a resource, and
65
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
66
- * for an EventGrid topic.
67
- * @param eventSubscriptionName Name of the event subscription.
68
- * @param options The optional parameters
69
- * @param callback The callback
70
- */
71
- get(scope: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EventSubscription>): void;
72
- get(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EventSubscription>, callback?: msRest.ServiceCallback<Models.EventSubscription>): Promise<Models.EventSubscriptionsGetResponse> {
73
- return this.client.sendOperationRequest(
74
- {
75
- scope,
76
- eventSubscriptionName,
77
- options
87
+ * List all aggregated global event subscriptions under a specific Azure subscription.
88
+ * @param options The options parameters.
89
+ */
90
+ public listGlobalBySubscription(
91
+ options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
92
+ ): PagedAsyncIterableIterator<EventSubscription> {
93
+ const iter = this.listGlobalBySubscriptionPagingAll(options);
94
+ return {
95
+ next() {
96
+ return iter.next();
78
97
  },
79
- getOperationSpec,
80
- callback) as Promise<Models.EventSubscriptionsGetResponse>;
81
- }
82
-
83
- /**
84
- * Asynchronously creates a new event subscription or updates an existing event subscription based
85
- * on the specified scope.
86
- * @summary Create or update an event subscription.
87
- * @param scope The identifier of the resource to which the event subscription needs to be created
88
- * or updated. The scope can be a subscription, or a resource group, or a top level resource
89
- * belonging to a resource provider namespace, or an EventGrid topic. For example, use
90
- * '/subscriptions/{subscriptionId}/' for a subscription,
91
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
92
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
93
- * for a resource, and
94
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
95
- * for an EventGrid topic.
96
- * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
97
- * between 3 and 64 characters in length and should use alphanumeric letters only.
98
- * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
99
- * information.
100
- * @param [options] The optional parameters
101
- * @returns Promise<Models.EventSubscriptionsCreateOrUpdateResponse>
102
- */
103
- createOrUpdate(scope: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise<Models.EventSubscriptionsCreateOrUpdateResponse> {
104
- return this.beginCreateOrUpdate(scope,eventSubscriptionName,eventSubscriptionInfo,options)
105
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.EventSubscriptionsCreateOrUpdateResponse>;
98
+ [Symbol.asyncIterator]() {
99
+ return this;
100
+ },
101
+ byPage: () => {
102
+ return this.listGlobalBySubscriptionPagingPage(options);
103
+ }
104
+ };
106
105
  }
107
106
 
108
- /**
109
- * Delete an existing event subscription.
110
- * @summary Delete an event subscription.
111
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
112
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
113
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
114
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
115
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
116
- * for a resource, and
117
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
118
- * for an EventGrid topic.
119
- * @param eventSubscriptionName Name of the event subscription.
120
- * @param [options] The optional parameters
121
- * @returns Promise<msRest.RestResponse>
122
- */
123
- deleteMethod(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
124
- return this.beginDeleteMethod(scope,eventSubscriptionName,options)
125
- .then(lroPoller => lroPoller.pollUntilFinished());
107
+ private async *listGlobalBySubscriptionPagingPage(
108
+ options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
109
+ ): AsyncIterableIterator<EventSubscription[]> {
110
+ let result = await this._listGlobalBySubscription(options);
111
+ yield result.value || [];
112
+ let continuationToken = result.nextLink;
113
+ while (continuationToken) {
114
+ result = await this._listGlobalBySubscriptionNext(
115
+ continuationToken,
116
+ options
117
+ );
118
+ continuationToken = result.nextLink;
119
+ yield result.value || [];
120
+ }
126
121
  }
127
122
 
128
- /**
129
- * Asynchronously updates an existing event subscription.
130
- * @summary Update an event subscription.
131
- * @param scope The scope of existing event subscription. The scope can be a subscription, or a
132
- * resource group, or a top level resource belonging to a resource provider namespace, or an
133
- * EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
134
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
135
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
136
- * for a resource, and
137
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
138
- * for an EventGrid topic.
139
- * @param eventSubscriptionName Name of the event subscription to be updated.
140
- * @param eventSubscriptionUpdateParameters Updated event subscription information.
141
- * @param [options] The optional parameters
142
- * @returns Promise<Models.EventSubscriptionsUpdateResponse>
143
- */
144
- update(scope: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.EventSubscriptionsUpdateResponse> {
145
- return this.beginUpdate(scope,eventSubscriptionName,eventSubscriptionUpdateParameters,options)
146
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.EventSubscriptionsUpdateResponse>;
123
+ private async *listGlobalBySubscriptionPagingAll(
124
+ options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
125
+ ): AsyncIterableIterator<EventSubscription> {
126
+ for await (const page of this.listGlobalBySubscriptionPagingPage(options)) {
127
+ yield* page;
128
+ }
147
129
  }
148
130
 
149
131
  /**
150
- * Get the full endpoint URL for an event subscription.
151
- * @summary Get full URL of an event subscription.
152
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
153
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
154
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
155
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
156
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
157
- * for a resource, and
158
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
159
- * for an EventGrid topic.
160
- * @param eventSubscriptionName Name of the event subscription.
161
- * @param [options] The optional parameters
162
- * @returns Promise<Models.EventSubscriptionsGetFullUrlResponse>
163
- */
164
- getFullUrl(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise<Models.EventSubscriptionsGetFullUrlResponse>;
165
- /**
166
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
167
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
168
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
169
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
170
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
171
- * for a resource, and
172
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
173
- * for an EventGrid topic.
174
- * @param eventSubscriptionName Name of the event subscription.
175
- * @param callback The callback
176
- */
177
- getFullUrl(scope: string, eventSubscriptionName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionFullUrl>): void;
178
- /**
179
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
180
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
181
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
182
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
183
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
184
- * for a resource, and
185
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
186
- * for an EventGrid topic.
187
- * @param eventSubscriptionName Name of the event subscription.
188
- * @param options The optional parameters
189
- * @param callback The callback
190
- */
191
- getFullUrl(scope: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.EventSubscriptionFullUrl>): void;
192
- getFullUrl(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.EventSubscriptionFullUrl>, callback?: msRest.ServiceCallback<Models.EventSubscriptionFullUrl>): Promise<Models.EventSubscriptionsGetFullUrlResponse> {
193
- return this.client.sendOperationRequest(
194
- {
195
- scope,
196
- eventSubscriptionName,
197
- options
132
+ * List all global event subscriptions under an Azure subscription for a topic type.
133
+ * @param topicTypeName Name of the topic type.
134
+ * @param options The options parameters.
135
+ */
136
+ public listGlobalBySubscriptionForTopicType(
137
+ topicTypeName: string,
138
+ options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
139
+ ): PagedAsyncIterableIterator<EventSubscription> {
140
+ const iter = this.listGlobalBySubscriptionForTopicTypePagingAll(
141
+ topicTypeName,
142
+ options
143
+ );
144
+ return {
145
+ next() {
146
+ return iter.next();
198
147
  },
199
- getFullUrlOperationSpec,
200
- callback) as Promise<Models.EventSubscriptionsGetFullUrlResponse>;
201
- }
202
-
203
- /**
204
- * List all aggregated global event subscriptions under a specific Azure subscription.
205
- * @summary Get an aggregated list of all global event subscriptions under an Azure subscription.
206
- * @param [options] The optional parameters
207
- * @returns Promise<Models.EventSubscriptionsListGlobalBySubscriptionResponse>
208
- */
209
- listGlobalBySubscription(options?: Models.EventSubscriptionsListGlobalBySubscriptionOptionalParams): Promise<Models.EventSubscriptionsListGlobalBySubscriptionResponse>;
210
- /**
211
- * @param callback The callback
212
- */
213
- listGlobalBySubscription(callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
214
- /**
215
- * @param options The optional parameters
216
- * @param callback The callback
217
- */
218
- listGlobalBySubscription(options: Models.EventSubscriptionsListGlobalBySubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
219
- listGlobalBySubscription(options?: Models.EventSubscriptionsListGlobalBySubscriptionOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalBySubscriptionResponse> {
220
- return this.client.sendOperationRequest(
221
- {
222
- options
148
+ [Symbol.asyncIterator]() {
149
+ return this;
223
150
  },
224
- listGlobalBySubscriptionOperationSpec,
225
- callback) as Promise<Models.EventSubscriptionsListGlobalBySubscriptionResponse>;
151
+ byPage: () => {
152
+ return this.listGlobalBySubscriptionForTopicTypePagingPage(
153
+ topicTypeName,
154
+ options
155
+ );
156
+ }
157
+ };
226
158
  }
227
159
 
228
- /**
229
- * List all global event subscriptions under an Azure subscription for a topic type.
230
- * @summary List all global event subscriptions for a topic type.
231
- * @param topicTypeName Name of the topic type.
232
- * @param [options] The optional parameters
233
- * @returns Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse>
234
- */
235
- listGlobalBySubscriptionForTopicType(topicTypeName: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams): Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse>;
236
- /**
237
- * @param topicTypeName Name of the topic type.
238
- * @param callback The callback
239
- */
240
- listGlobalBySubscriptionForTopicType(topicTypeName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
241
- /**
242
- * @param topicTypeName Name of the topic type.
243
- * @param options The optional parameters
244
- * @param callback The callback
245
- */
246
- listGlobalBySubscriptionForTopicType(topicTypeName: string, options: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
247
- listGlobalBySubscriptionForTopicType(topicTypeName: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse> {
248
- return this.client.sendOperationRequest(
249
- {
160
+ private async *listGlobalBySubscriptionForTopicTypePagingPage(
161
+ topicTypeName: string,
162
+ options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
163
+ ): AsyncIterableIterator<EventSubscription[]> {
164
+ let result = await this._listGlobalBySubscriptionForTopicType(
165
+ topicTypeName,
166
+ options
167
+ );
168
+ yield result.value || [];
169
+ let continuationToken = result.nextLink;
170
+ while (continuationToken) {
171
+ result = await this._listGlobalBySubscriptionForTopicTypeNext(
250
172
  topicTypeName,
173
+ continuationToken,
251
174
  options
252
- },
253
- listGlobalBySubscriptionForTopicTypeOperationSpec,
254
- callback) as Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse>;
175
+ );
176
+ continuationToken = result.nextLink;
177
+ yield result.value || [];
178
+ }
179
+ }
180
+
181
+ private async *listGlobalBySubscriptionForTopicTypePagingAll(
182
+ topicTypeName: string,
183
+ options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
184
+ ): AsyncIterableIterator<EventSubscription> {
185
+ for await (const page of this.listGlobalBySubscriptionForTopicTypePagingPage(
186
+ topicTypeName,
187
+ options
188
+ )) {
189
+ yield* page;
190
+ }
255
191
  }
256
192
 
257
193
  /**
258
194
  * List all global event subscriptions under a specific Azure subscription and resource group.
259
- * @summary List all global event subscriptions under an Azure subscription and resource group.
260
195
  * @param resourceGroupName The name of the resource group within the user's subscription.
261
- * @param [options] The optional parameters
262
- * @returns Promise<Models.EventSubscriptionsListGlobalByResourceGroupResponse>
263
- */
264
- listGlobalByResourceGroup(resourceGroupName: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupOptionalParams): Promise<Models.EventSubscriptionsListGlobalByResourceGroupResponse>;
265
- /**
266
- * @param resourceGroupName The name of the resource group within the user's subscription.
267
- * @param callback The callback
268
- */
269
- listGlobalByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
270
- /**
271
- * @param resourceGroupName The name of the resource group within the user's subscription.
272
- * @param options The optional parameters
273
- * @param callback The callback
274
- */
275
- listGlobalByResourceGroup(resourceGroupName: string, options: Models.EventSubscriptionsListGlobalByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
276
- listGlobalByResourceGroup(resourceGroupName: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalByResourceGroupResponse> {
277
- return this.client.sendOperationRequest(
278
- {
196
+ * @param options The options parameters.
197
+ */
198
+ public listGlobalByResourceGroup(
199
+ resourceGroupName: string,
200
+ options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
201
+ ): PagedAsyncIterableIterator<EventSubscription> {
202
+ const iter = this.listGlobalByResourceGroupPagingAll(
203
+ resourceGroupName,
204
+ options
205
+ );
206
+ return {
207
+ next() {
208
+ return iter.next();
209
+ },
210
+ [Symbol.asyncIterator]() {
211
+ return this;
212
+ },
213
+ byPage: () => {
214
+ return this.listGlobalByResourceGroupPagingPage(
215
+ resourceGroupName,
216
+ options
217
+ );
218
+ }
219
+ };
220
+ }
221
+
222
+ private async *listGlobalByResourceGroupPagingPage(
223
+ resourceGroupName: string,
224
+ options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
225
+ ): AsyncIterableIterator<EventSubscription[]> {
226
+ let result = await this._listGlobalByResourceGroup(
227
+ resourceGroupName,
228
+ options
229
+ );
230
+ yield result.value || [];
231
+ let continuationToken = result.nextLink;
232
+ while (continuationToken) {
233
+ result = await this._listGlobalByResourceGroupNext(
279
234
  resourceGroupName,
235
+ continuationToken,
280
236
  options
281
- },
282
- listGlobalByResourceGroupOperationSpec,
283
- callback) as Promise<Models.EventSubscriptionsListGlobalByResourceGroupResponse>;
237
+ );
238
+ continuationToken = result.nextLink;
239
+ yield result.value || [];
240
+ }
241
+ }
242
+
243
+ private async *listGlobalByResourceGroupPagingAll(
244
+ resourceGroupName: string,
245
+ options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
246
+ ): AsyncIterableIterator<EventSubscription> {
247
+ for await (const page of this.listGlobalByResourceGroupPagingPage(
248
+ resourceGroupName,
249
+ options
250
+ )) {
251
+ yield* page;
252
+ }
284
253
  }
285
254
 
286
255
  /**
287
256
  * List all global event subscriptions under a resource group for a specific topic type.
288
- * @summary List all global event subscriptions under a resource group for a topic type.
289
- * @param resourceGroupName The name of the resource group within the user's subscription.
290
- * @param topicTypeName Name of the topic type.
291
- * @param [options] The optional parameters
292
- * @returns Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse>
293
- */
294
- listGlobalByResourceGroupForTopicType(resourceGroupName: string, topicTypeName: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams): Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse>;
295
- /**
296
- * @param resourceGroupName The name of the resource group within the user's subscription.
297
- * @param topicTypeName Name of the topic type.
298
- * @param callback The callback
299
- */
300
- listGlobalByResourceGroupForTopicType(resourceGroupName: string, topicTypeName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
301
- /**
302
257
  * @param resourceGroupName The name of the resource group within the user's subscription.
303
258
  * @param topicTypeName Name of the topic type.
304
- * @param options The optional parameters
305
- * @param callback The callback
306
- */
307
- listGlobalByResourceGroupForTopicType(resourceGroupName: string, topicTypeName: string, options: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
308
- listGlobalByResourceGroupForTopicType(resourceGroupName: string, topicTypeName: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse> {
309
- return this.client.sendOperationRequest(
310
- {
259
+ * @param options The options parameters.
260
+ */
261
+ public listGlobalByResourceGroupForTopicType(
262
+ resourceGroupName: string,
263
+ topicTypeName: string,
264
+ options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
265
+ ): PagedAsyncIterableIterator<EventSubscription> {
266
+ const iter = this.listGlobalByResourceGroupForTopicTypePagingAll(
267
+ resourceGroupName,
268
+ topicTypeName,
269
+ options
270
+ );
271
+ return {
272
+ next() {
273
+ return iter.next();
274
+ },
275
+ [Symbol.asyncIterator]() {
276
+ return this;
277
+ },
278
+ byPage: () => {
279
+ return this.listGlobalByResourceGroupForTopicTypePagingPage(
280
+ resourceGroupName,
281
+ topicTypeName,
282
+ options
283
+ );
284
+ }
285
+ };
286
+ }
287
+
288
+ private async *listGlobalByResourceGroupForTopicTypePagingPage(
289
+ resourceGroupName: string,
290
+ topicTypeName: string,
291
+ options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
292
+ ): AsyncIterableIterator<EventSubscription[]> {
293
+ let result = await this._listGlobalByResourceGroupForTopicType(
294
+ resourceGroupName,
295
+ topicTypeName,
296
+ options
297
+ );
298
+ yield result.value || [];
299
+ let continuationToken = result.nextLink;
300
+ while (continuationToken) {
301
+ result = await this._listGlobalByResourceGroupForTopicTypeNext(
311
302
  resourceGroupName,
312
303
  topicTypeName,
304
+ continuationToken,
313
305
  options
314
- },
315
- listGlobalByResourceGroupForTopicTypeOperationSpec,
316
- callback) as Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse>;
306
+ );
307
+ continuationToken = result.nextLink;
308
+ yield result.value || [];
309
+ }
310
+ }
311
+
312
+ private async *listGlobalByResourceGroupForTopicTypePagingAll(
313
+ resourceGroupName: string,
314
+ topicTypeName: string,
315
+ options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
316
+ ): AsyncIterableIterator<EventSubscription> {
317
+ for await (const page of this.listGlobalByResourceGroupForTopicTypePagingPage(
318
+ resourceGroupName,
319
+ topicTypeName,
320
+ options
321
+ )) {
322
+ yield* page;
323
+ }
317
324
  }
318
325
 
319
326
  /**
320
327
  * List all event subscriptions from the given location under a specific Azure subscription.
321
- * @summary List all regional event subscriptions under an Azure subscription.
322
328
  * @param location Name of the location.
323
- * @param [options] The optional parameters
324
- * @returns Promise<Models.EventSubscriptionsListRegionalBySubscriptionResponse>
325
- */
326
- listRegionalBySubscription(location: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionOptionalParams): Promise<Models.EventSubscriptionsListRegionalBySubscriptionResponse>;
327
- /**
328
- * @param location Name of the location.
329
- * @param callback The callback
330
- */
331
- listRegionalBySubscription(location: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
332
- /**
333
- * @param location Name of the location.
334
- * @param options The optional parameters
335
- * @param callback The callback
336
- */
337
- listRegionalBySubscription(location: string, options: Models.EventSubscriptionsListRegionalBySubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
338
- listRegionalBySubscription(location: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalBySubscriptionResponse> {
339
- return this.client.sendOperationRequest(
340
- {
329
+ * @param options The options parameters.
330
+ */
331
+ public listRegionalBySubscription(
332
+ location: string,
333
+ options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
334
+ ): PagedAsyncIterableIterator<EventSubscription> {
335
+ const iter = this.listRegionalBySubscriptionPagingAll(location, options);
336
+ return {
337
+ next() {
338
+ return iter.next();
339
+ },
340
+ [Symbol.asyncIterator]() {
341
+ return this;
342
+ },
343
+ byPage: () => {
344
+ return this.listRegionalBySubscriptionPagingPage(location, options);
345
+ }
346
+ };
347
+ }
348
+
349
+ private async *listRegionalBySubscriptionPagingPage(
350
+ location: string,
351
+ options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
352
+ ): AsyncIterableIterator<EventSubscription[]> {
353
+ let result = await this._listRegionalBySubscription(location, options);
354
+ yield result.value || [];
355
+ let continuationToken = result.nextLink;
356
+ while (continuationToken) {
357
+ result = await this._listRegionalBySubscriptionNext(
341
358
  location,
359
+ continuationToken,
342
360
  options
343
- },
344
- listRegionalBySubscriptionOperationSpec,
345
- callback) as Promise<Models.EventSubscriptionsListRegionalBySubscriptionResponse>;
361
+ );
362
+ continuationToken = result.nextLink;
363
+ yield result.value || [];
364
+ }
365
+ }
366
+
367
+ private async *listRegionalBySubscriptionPagingAll(
368
+ location: string,
369
+ options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
370
+ ): AsyncIterableIterator<EventSubscription> {
371
+ for await (const page of this.listRegionalBySubscriptionPagingPage(
372
+ location,
373
+ options
374
+ )) {
375
+ yield* page;
376
+ }
346
377
  }
347
378
 
348
379
  /**
349
380
  * List all event subscriptions from the given location under a specific Azure subscription and
350
381
  * resource group.
351
- * @summary List all regional event subscriptions under an Azure subscription and resource group.
352
- * @param resourceGroupName The name of the resource group within the user's subscription.
353
- * @param location Name of the location.
354
- * @param [options] The optional parameters
355
- * @returns Promise<Models.EventSubscriptionsListRegionalByResourceGroupResponse>
356
- */
357
- listRegionalByResourceGroup(resourceGroupName: string, location: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupOptionalParams): Promise<Models.EventSubscriptionsListRegionalByResourceGroupResponse>;
358
- /**
359
382
  * @param resourceGroupName The name of the resource group within the user's subscription.
360
383
  * @param location Name of the location.
361
- * @param callback The callback
362
- */
363
- listRegionalByResourceGroup(resourceGroupName: string, location: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
364
- /**
365
- * @param resourceGroupName The name of the resource group within the user's subscription.
366
- * @param location Name of the location.
367
- * @param options The optional parameters
368
- * @param callback The callback
369
- */
370
- listRegionalByResourceGroup(resourceGroupName: string, location: string, options: Models.EventSubscriptionsListRegionalByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
371
- listRegionalByResourceGroup(resourceGroupName: string, location: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalByResourceGroupResponse> {
372
- return this.client.sendOperationRequest(
373
- {
384
+ * @param options The options parameters.
385
+ */
386
+ public listRegionalByResourceGroup(
387
+ resourceGroupName: string,
388
+ location: string,
389
+ options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
390
+ ): PagedAsyncIterableIterator<EventSubscription> {
391
+ const iter = this.listRegionalByResourceGroupPagingAll(
392
+ resourceGroupName,
393
+ location,
394
+ options
395
+ );
396
+ return {
397
+ next() {
398
+ return iter.next();
399
+ },
400
+ [Symbol.asyncIterator]() {
401
+ return this;
402
+ },
403
+ byPage: () => {
404
+ return this.listRegionalByResourceGroupPagingPage(
405
+ resourceGroupName,
406
+ location,
407
+ options
408
+ );
409
+ }
410
+ };
411
+ }
412
+
413
+ private async *listRegionalByResourceGroupPagingPage(
414
+ resourceGroupName: string,
415
+ location: string,
416
+ options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
417
+ ): AsyncIterableIterator<EventSubscription[]> {
418
+ let result = await this._listRegionalByResourceGroup(
419
+ resourceGroupName,
420
+ location,
421
+ options
422
+ );
423
+ yield result.value || [];
424
+ let continuationToken = result.nextLink;
425
+ while (continuationToken) {
426
+ result = await this._listRegionalByResourceGroupNext(
374
427
  resourceGroupName,
375
428
  location,
429
+ continuationToken,
376
430
  options
377
- },
378
- listRegionalByResourceGroupOperationSpec,
379
- callback) as Promise<Models.EventSubscriptionsListRegionalByResourceGroupResponse>;
431
+ );
432
+ continuationToken = result.nextLink;
433
+ yield result.value || [];
434
+ }
435
+ }
436
+
437
+ private async *listRegionalByResourceGroupPagingAll(
438
+ resourceGroupName: string,
439
+ location: string,
440
+ options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
441
+ ): AsyncIterableIterator<EventSubscription> {
442
+ for await (const page of this.listRegionalByResourceGroupPagingPage(
443
+ resourceGroupName,
444
+ location,
445
+ options
446
+ )) {
447
+ yield* page;
448
+ }
380
449
  }
381
450
 
382
451
  /**
383
- * List all event subscriptions from the given location under a specific Azure subscription and
384
- * topic type.
385
- * @summary List all regional event subscriptions under an Azure subscription for a topic type.
386
- * @param location Name of the location.
387
- * @param topicTypeName Name of the topic type.
388
- * @param [options] The optional parameters
389
- * @returns Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse>
390
- */
391
- listRegionalBySubscriptionForTopicType(location: string, topicTypeName: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams): Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse>;
392
- /**
393
- * @param location Name of the location.
394
- * @param topicTypeName Name of the topic type.
395
- * @param callback The callback
396
- */
397
- listRegionalBySubscriptionForTopicType(location: string, topicTypeName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
398
- /**
452
+ * List all event subscriptions from the given location under a specific Azure subscription and topic
453
+ * type.
399
454
  * @param location Name of the location.
400
455
  * @param topicTypeName Name of the topic type.
401
- * @param options The optional parameters
402
- * @param callback The callback
403
- */
404
- listRegionalBySubscriptionForTopicType(location: string, topicTypeName: string, options: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
405
- listRegionalBySubscriptionForTopicType(location: string, topicTypeName: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse> {
406
- return this.client.sendOperationRequest(
407
- {
456
+ * @param options The options parameters.
457
+ */
458
+ public listRegionalBySubscriptionForTopicType(
459
+ location: string,
460
+ topicTypeName: string,
461
+ options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
462
+ ): PagedAsyncIterableIterator<EventSubscription> {
463
+ const iter = this.listRegionalBySubscriptionForTopicTypePagingAll(
464
+ location,
465
+ topicTypeName,
466
+ options
467
+ );
468
+ return {
469
+ next() {
470
+ return iter.next();
471
+ },
472
+ [Symbol.asyncIterator]() {
473
+ return this;
474
+ },
475
+ byPage: () => {
476
+ return this.listRegionalBySubscriptionForTopicTypePagingPage(
477
+ location,
478
+ topicTypeName,
479
+ options
480
+ );
481
+ }
482
+ };
483
+ }
484
+
485
+ private async *listRegionalBySubscriptionForTopicTypePagingPage(
486
+ location: string,
487
+ topicTypeName: string,
488
+ options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
489
+ ): AsyncIterableIterator<EventSubscription[]> {
490
+ let result = await this._listRegionalBySubscriptionForTopicType(
491
+ location,
492
+ topicTypeName,
493
+ options
494
+ );
495
+ yield result.value || [];
496
+ let continuationToken = result.nextLink;
497
+ while (continuationToken) {
498
+ result = await this._listRegionalBySubscriptionForTopicTypeNext(
408
499
  location,
409
500
  topicTypeName,
501
+ continuationToken,
410
502
  options
411
- },
412
- listRegionalBySubscriptionForTopicTypeOperationSpec,
413
- callback) as Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse>;
503
+ );
504
+ continuationToken = result.nextLink;
505
+ yield result.value || [];
506
+ }
507
+ }
508
+
509
+ private async *listRegionalBySubscriptionForTopicTypePagingAll(
510
+ location: string,
511
+ topicTypeName: string,
512
+ options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
513
+ ): AsyncIterableIterator<EventSubscription> {
514
+ for await (const page of this.listRegionalBySubscriptionForTopicTypePagingPage(
515
+ location,
516
+ topicTypeName,
517
+ options
518
+ )) {
519
+ yield* page;
520
+ }
414
521
  }
415
522
 
416
523
  /**
417
524
  * List all event subscriptions from the given location under a specific Azure subscription and
418
525
  * resource group and topic type.
419
- * @summary List all regional event subscriptions under an Azure subscription and resource group
420
- * for a topic type.
421
- * @param resourceGroupName The name of the resource group within the user's subscription.
422
- * @param location Name of the location.
423
- * @param topicTypeName Name of the topic type.
424
- * @param [options] The optional parameters
425
- * @returns Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse>
426
- */
427
- listRegionalByResourceGroupForTopicType(resourceGroupName: string, location: string, topicTypeName: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams): Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse>;
428
- /**
429
- * @param resourceGroupName The name of the resource group within the user's subscription.
430
- * @param location Name of the location.
431
- * @param topicTypeName Name of the topic type.
432
- * @param callback The callback
433
- */
434
- listRegionalByResourceGroupForTopicType(resourceGroupName: string, location: string, topicTypeName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
435
- /**
436
526
  * @param resourceGroupName The name of the resource group within the user's subscription.
437
527
  * @param location Name of the location.
438
528
  * @param topicTypeName Name of the topic type.
439
- * @param options The optional parameters
440
- * @param callback The callback
441
- */
442
- listRegionalByResourceGroupForTopicType(resourceGroupName: string, location: string, topicTypeName: string, options: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
443
- listRegionalByResourceGroupForTopicType(resourceGroupName: string, location: string, topicTypeName: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse> {
444
- return this.client.sendOperationRequest(
445
- {
529
+ * @param options The options parameters.
530
+ */
531
+ public listRegionalByResourceGroupForTopicType(
532
+ resourceGroupName: string,
533
+ location: string,
534
+ topicTypeName: string,
535
+ options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
536
+ ): PagedAsyncIterableIterator<EventSubscription> {
537
+ const iter = this.listRegionalByResourceGroupForTopicTypePagingAll(
538
+ resourceGroupName,
539
+ location,
540
+ topicTypeName,
541
+ options
542
+ );
543
+ return {
544
+ next() {
545
+ return iter.next();
546
+ },
547
+ [Symbol.asyncIterator]() {
548
+ return this;
549
+ },
550
+ byPage: () => {
551
+ return this.listRegionalByResourceGroupForTopicTypePagingPage(
552
+ resourceGroupName,
553
+ location,
554
+ topicTypeName,
555
+ options
556
+ );
557
+ }
558
+ };
559
+ }
560
+
561
+ private async *listRegionalByResourceGroupForTopicTypePagingPage(
562
+ resourceGroupName: string,
563
+ location: string,
564
+ topicTypeName: string,
565
+ options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
566
+ ): AsyncIterableIterator<EventSubscription[]> {
567
+ let result = await this._listRegionalByResourceGroupForTopicType(
568
+ resourceGroupName,
569
+ location,
570
+ topicTypeName,
571
+ options
572
+ );
573
+ yield result.value || [];
574
+ let continuationToken = result.nextLink;
575
+ while (continuationToken) {
576
+ result = await this._listRegionalByResourceGroupForTopicTypeNext(
446
577
  resourceGroupName,
447
578
  location,
448
579
  topicTypeName,
580
+ continuationToken,
449
581
  options
450
- },
451
- listRegionalByResourceGroupForTopicTypeOperationSpec,
452
- callback) as Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse>;
582
+ );
583
+ continuationToken = result.nextLink;
584
+ yield result.value || [];
585
+ }
586
+ }
587
+
588
+ private async *listRegionalByResourceGroupForTopicTypePagingAll(
589
+ resourceGroupName: string,
590
+ location: string,
591
+ topicTypeName: string,
592
+ options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
593
+ ): AsyncIterableIterator<EventSubscription> {
594
+ for await (const page of this.listRegionalByResourceGroupForTopicTypePagingPage(
595
+ resourceGroupName,
596
+ location,
597
+ topicTypeName,
598
+ options
599
+ )) {
600
+ yield* page;
601
+ }
453
602
  }
454
603
 
455
604
  /**
456
605
  * List all event subscriptions that have been created for a specific topic.
457
- * @summary List all event subscriptions for a specific topic.
458
- * @param resourceGroupName The name of the resource group within the user's subscription.
459
- * @param providerNamespace Namespace of the provider of the topic.
460
- * @param resourceTypeName Name of the resource type.
461
- * @param resourceName Name of the resource.
462
- * @param [options] The optional parameters
463
- * @returns Promise<Models.EventSubscriptionsListByResourceResponse>
464
- */
465
- listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, options?: Models.EventSubscriptionsListByResourceOptionalParams): Promise<Models.EventSubscriptionsListByResourceResponse>;
466
- /**
467
- * @param resourceGroupName The name of the resource group within the user's subscription.
468
- * @param providerNamespace Namespace of the provider of the topic.
469
- * @param resourceTypeName Name of the resource type.
470
- * @param resourceName Name of the resource.
471
- * @param callback The callback
472
- */
473
- listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
474
- /**
475
606
  * @param resourceGroupName The name of the resource group within the user's subscription.
476
607
  * @param providerNamespace Namespace of the provider of the topic.
477
608
  * @param resourceTypeName Name of the resource type.
478
609
  * @param resourceName Name of the resource.
479
- * @param options The optional parameters
480
- * @param callback The callback
481
- */
482
- listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, options: Models.EventSubscriptionsListByResourceOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
483
- listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, options?: Models.EventSubscriptionsListByResourceOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListByResourceResponse> {
484
- return this.client.sendOperationRequest(
485
- {
610
+ * @param options The options parameters.
611
+ */
612
+ public listByResource(
613
+ resourceGroupName: string,
614
+ providerNamespace: string,
615
+ resourceTypeName: string,
616
+ resourceName: string,
617
+ options?: EventSubscriptionsListByResourceOptionalParams
618
+ ): PagedAsyncIterableIterator<EventSubscription> {
619
+ const iter = this.listByResourcePagingAll(
620
+ resourceGroupName,
621
+ providerNamespace,
622
+ resourceTypeName,
623
+ resourceName,
624
+ options
625
+ );
626
+ return {
627
+ next() {
628
+ return iter.next();
629
+ },
630
+ [Symbol.asyncIterator]() {
631
+ return this;
632
+ },
633
+ byPage: () => {
634
+ return this.listByResourcePagingPage(
635
+ resourceGroupName,
636
+ providerNamespace,
637
+ resourceTypeName,
638
+ resourceName,
639
+ options
640
+ );
641
+ }
642
+ };
643
+ }
644
+
645
+ private async *listByResourcePagingPage(
646
+ resourceGroupName: string,
647
+ providerNamespace: string,
648
+ resourceTypeName: string,
649
+ resourceName: string,
650
+ options?: EventSubscriptionsListByResourceOptionalParams
651
+ ): AsyncIterableIterator<EventSubscription[]> {
652
+ let result = await this._listByResource(
653
+ resourceGroupName,
654
+ providerNamespace,
655
+ resourceTypeName,
656
+ resourceName,
657
+ options
658
+ );
659
+ yield result.value || [];
660
+ let continuationToken = result.nextLink;
661
+ while (continuationToken) {
662
+ result = await this._listByResourceNext(
486
663
  resourceGroupName,
487
664
  providerNamespace,
488
665
  resourceTypeName,
489
666
  resourceName,
667
+ continuationToken,
490
668
  options
491
- },
492
- listByResourceOperationSpec,
493
- callback) as Promise<Models.EventSubscriptionsListByResourceResponse>;
669
+ );
670
+ continuationToken = result.nextLink;
671
+ yield result.value || [];
672
+ }
673
+ }
674
+
675
+ private async *listByResourcePagingAll(
676
+ resourceGroupName: string,
677
+ providerNamespace: string,
678
+ resourceTypeName: string,
679
+ resourceName: string,
680
+ options?: EventSubscriptionsListByResourceOptionalParams
681
+ ): AsyncIterableIterator<EventSubscription> {
682
+ for await (const page of this.listByResourcePagingPage(
683
+ resourceGroupName,
684
+ providerNamespace,
685
+ resourceTypeName,
686
+ resourceName,
687
+ options
688
+ )) {
689
+ yield* page;
690
+ }
494
691
  }
495
692
 
496
693
  /**
497
694
  * List all event subscriptions that have been created for a specific domain topic.
498
- * @summary List all event subscriptions for a specific domain topic.
499
695
  * @param resourceGroupName The name of the resource group within the user's subscription.
500
696
  * @param domainName Name of the top level domain.
501
697
  * @param topicName Name of the domain topic.
502
- * @param [options] The optional parameters
503
- * @returns Promise<Models.EventSubscriptionsListByDomainTopicResponse>
504
- */
505
- listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options?: Models.EventSubscriptionsListByDomainTopicOptionalParams): Promise<Models.EventSubscriptionsListByDomainTopicResponse>;
506
- /**
507
- * @param resourceGroupName The name of the resource group within the user's subscription.
508
- * @param domainName Name of the top level domain.
509
- * @param topicName Name of the domain topic.
510
- * @param callback The callback
511
- */
512
- listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
513
- /**
514
- * @param resourceGroupName The name of the resource group within the user's subscription.
515
- * @param domainName Name of the top level domain.
516
- * @param topicName Name of the domain topic.
517
- * @param options The optional parameters
518
- * @param callback The callback
519
- */
520
- listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options: Models.EventSubscriptionsListByDomainTopicOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
521
- listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options?: Models.EventSubscriptionsListByDomainTopicOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListByDomainTopicResponse> {
522
- return this.client.sendOperationRequest(
523
- {
698
+ * @param options The options parameters.
699
+ */
700
+ public listByDomainTopic(
701
+ resourceGroupName: string,
702
+ domainName: string,
703
+ topicName: string,
704
+ options?: EventSubscriptionsListByDomainTopicOptionalParams
705
+ ): PagedAsyncIterableIterator<EventSubscription> {
706
+ const iter = this.listByDomainTopicPagingAll(
707
+ resourceGroupName,
708
+ domainName,
709
+ topicName,
710
+ options
711
+ );
712
+ return {
713
+ next() {
714
+ return iter.next();
715
+ },
716
+ [Symbol.asyncIterator]() {
717
+ return this;
718
+ },
719
+ byPage: () => {
720
+ return this.listByDomainTopicPagingPage(
721
+ resourceGroupName,
722
+ domainName,
723
+ topicName,
724
+ options
725
+ );
726
+ }
727
+ };
728
+ }
729
+
730
+ private async *listByDomainTopicPagingPage(
731
+ resourceGroupName: string,
732
+ domainName: string,
733
+ topicName: string,
734
+ options?: EventSubscriptionsListByDomainTopicOptionalParams
735
+ ): AsyncIterableIterator<EventSubscription[]> {
736
+ let result = await this._listByDomainTopic(
737
+ resourceGroupName,
738
+ domainName,
739
+ topicName,
740
+ options
741
+ );
742
+ yield result.value || [];
743
+ let continuationToken = result.nextLink;
744
+ while (continuationToken) {
745
+ result = await this._listByDomainTopicNext(
524
746
  resourceGroupName,
525
747
  domainName,
526
748
  topicName,
749
+ continuationToken,
527
750
  options
528
- },
529
- listByDomainTopicOperationSpec,
530
- callback) as Promise<Models.EventSubscriptionsListByDomainTopicResponse>;
751
+ );
752
+ continuationToken = result.nextLink;
753
+ yield result.value || [];
754
+ }
755
+ }
756
+
757
+ private async *listByDomainTopicPagingAll(
758
+ resourceGroupName: string,
759
+ domainName: string,
760
+ topicName: string,
761
+ options?: EventSubscriptionsListByDomainTopicOptionalParams
762
+ ): AsyncIterableIterator<EventSubscription> {
763
+ for await (const page of this.listByDomainTopicPagingPage(
764
+ resourceGroupName,
765
+ domainName,
766
+ topicName,
767
+ options
768
+ )) {
769
+ yield* page;
770
+ }
531
771
  }
532
772
 
533
773
  /**
534
- * Get all delivery attributes for an event subscription.
535
- * @summary Get delivery attributes for an event subscription.
774
+ * Get properties of an event subscription.
536
775
  * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
537
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
538
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
539
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
540
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
541
- * for a resource, and
542
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
543
- * for an EventGrid topic.
776
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
777
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
778
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
779
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
780
+ * for a resource, and
781
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
782
+ * for an EventGrid topic.
544
783
  * @param eventSubscriptionName Name of the event subscription.
545
- * @param [options] The optional parameters
546
- * @returns Promise<Models.EventSubscriptionsGetDeliveryAttributesResponse>
784
+ * @param options The options parameters.
547
785
  */
548
- getDeliveryAttributes(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise<Models.EventSubscriptionsGetDeliveryAttributesResponse>;
786
+ get(
787
+ scope: string,
788
+ eventSubscriptionName: string,
789
+ options?: EventSubscriptionsGetOptionalParams
790
+ ): Promise<EventSubscriptionsGetResponse> {
791
+ return this.client.sendOperationRequest(
792
+ { scope, eventSubscriptionName, options },
793
+ getOperationSpec
794
+ );
795
+ }
796
+
549
797
  /**
550
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
551
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
552
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
553
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
554
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
555
- * for a resource, and
556
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
557
- * for an EventGrid topic.
558
- * @param eventSubscriptionName Name of the event subscription.
559
- * @param callback The callback
560
- */
561
- getDeliveryAttributes(scope: string, eventSubscriptionName: string, callback: msRest.ServiceCallback<Models.DeliveryAttributeListResult>): void;
798
+ * Asynchronously creates a new event subscription or updates an existing event subscription based on
799
+ * the specified scope.
800
+ * @param scope The identifier of the resource to which the event subscription needs to be created or
801
+ * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
802
+ * a resource provider namespace, or an EventGrid topic. For example, use
803
+ * '/subscriptions/{subscriptionId}/' for a subscription,
804
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
805
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
806
+ * for a resource, and
807
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
808
+ * for an EventGrid topic.
809
+ * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
810
+ * between 3 and 64 characters in length and should use alphanumeric letters only.
811
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
812
+ * information.
813
+ * @param options The options parameters.
814
+ */
815
+ async beginCreateOrUpdate(
816
+ scope: string,
817
+ eventSubscriptionName: string,
818
+ eventSubscriptionInfo: EventSubscription,
819
+ options?: EventSubscriptionsCreateOrUpdateOptionalParams
820
+ ): Promise<
821
+ PollerLike<
822
+ PollOperationState<EventSubscriptionsCreateOrUpdateResponse>,
823
+ EventSubscriptionsCreateOrUpdateResponse
824
+ >
825
+ > {
826
+ const directSendOperation = async (
827
+ args: coreClient.OperationArguments,
828
+ spec: coreClient.OperationSpec
829
+ ): Promise<EventSubscriptionsCreateOrUpdateResponse> => {
830
+ return this.client.sendOperationRequest(args, spec);
831
+ };
832
+ const sendOperation = async (
833
+ args: coreClient.OperationArguments,
834
+ spec: coreClient.OperationSpec
835
+ ) => {
836
+ let currentRawResponse:
837
+ | coreClient.FullOperationResponse
838
+ | undefined = undefined;
839
+ const providedCallback = args.options?.onResponse;
840
+ const callback: coreClient.RawResponseCallback = (
841
+ rawResponse: coreClient.FullOperationResponse,
842
+ flatResponse: unknown
843
+ ) => {
844
+ currentRawResponse = rawResponse;
845
+ providedCallback?.(rawResponse, flatResponse);
846
+ };
847
+ const updatedArgs = {
848
+ ...args,
849
+ options: {
850
+ ...args.options,
851
+ onResponse: callback
852
+ }
853
+ };
854
+ const flatResponse = await directSendOperation(updatedArgs, spec);
855
+ return {
856
+ flatResponse,
857
+ rawResponse: {
858
+ statusCode: currentRawResponse!.status,
859
+ body: currentRawResponse!.parsedBody,
860
+ headers: currentRawResponse!.headers.toJSON()
861
+ }
862
+ };
863
+ };
864
+
865
+ const lro = new LroImpl(
866
+ sendOperation,
867
+ { scope, eventSubscriptionName, eventSubscriptionInfo, options },
868
+ createOrUpdateOperationSpec
869
+ );
870
+ return new LroEngine(lro, {
871
+ resumeFrom: options?.resumeFrom,
872
+ intervalInMs: options?.updateIntervalInMs
873
+ });
874
+ }
875
+
562
876
  /**
563
- * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
564
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
565
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
566
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
567
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
568
- * for a resource, and
569
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
570
- * for an EventGrid topic.
571
- * @param eventSubscriptionName Name of the event subscription.
572
- * @param options The optional parameters
573
- * @param callback The callback
574
- */
575
- getDeliveryAttributes(scope: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeliveryAttributeListResult>): void;
576
- getDeliveryAttributes(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeliveryAttributeListResult>, callback?: msRest.ServiceCallback<Models.DeliveryAttributeListResult>): Promise<Models.EventSubscriptionsGetDeliveryAttributesResponse> {
577
- return this.client.sendOperationRequest(
578
- {
579
- scope,
580
- eventSubscriptionName,
581
- options
582
- },
583
- getDeliveryAttributesOperationSpec,
584
- callback) as Promise<Models.EventSubscriptionsGetDeliveryAttributesResponse>;
877
+ * Asynchronously creates a new event subscription or updates an existing event subscription based on
878
+ * the specified scope.
879
+ * @param scope The identifier of the resource to which the event subscription needs to be created or
880
+ * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
881
+ * a resource provider namespace, or an EventGrid topic. For example, use
882
+ * '/subscriptions/{subscriptionId}/' for a subscription,
883
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
884
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
885
+ * for a resource, and
886
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
887
+ * for an EventGrid topic.
888
+ * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
889
+ * between 3 and 64 characters in length and should use alphanumeric letters only.
890
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
891
+ * information.
892
+ * @param options The options parameters.
893
+ */
894
+ async beginCreateOrUpdateAndWait(
895
+ scope: string,
896
+ eventSubscriptionName: string,
897
+ eventSubscriptionInfo: EventSubscription,
898
+ options?: EventSubscriptionsCreateOrUpdateOptionalParams
899
+ ): Promise<EventSubscriptionsCreateOrUpdateResponse> {
900
+ const poller = await this.beginCreateOrUpdate(
901
+ scope,
902
+ eventSubscriptionName,
903
+ eventSubscriptionInfo,
904
+ options
905
+ );
906
+ return poller.pollUntilDone();
585
907
  }
586
908
 
587
909
  /**
588
- * Asynchronously creates a new event subscription or updates an existing event subscription based
589
- * on the specified scope.
590
- * @summary Create or update an event subscription.
591
- * @param scope The identifier of the resource to which the event subscription needs to be created
592
- * or updated. The scope can be a subscription, or a resource group, or a top level resource
593
- * belonging to a resource provider namespace, or an EventGrid topic. For example, use
594
- * '/subscriptions/{subscriptionId}/' for a subscription,
595
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
596
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
597
- * for a resource, and
598
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
599
- * for an EventGrid topic.
600
- * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
601
- * between 3 and 64 characters in length and should use alphanumeric letters only.
602
- * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
603
- * information.
604
- * @param [options] The optional parameters
605
- * @returns Promise<msRestAzure.LROPoller>
606
- */
607
- beginCreateOrUpdate(scope: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
608
- return this.client.sendLRORequest(
609
- {
610
- scope,
611
- eventSubscriptionName,
612
- eventSubscriptionInfo,
613
- options
614
- },
615
- beginCreateOrUpdateOperationSpec,
616
- options);
910
+ * Delete an existing event subscription.
911
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
912
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
913
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
914
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
915
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
916
+ * for a resource, and
917
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
918
+ * for an EventGrid topic.
919
+ * @param eventSubscriptionName Name of the event subscription.
920
+ * @param options The options parameters.
921
+ */
922
+ async beginDelete(
923
+ scope: string,
924
+ eventSubscriptionName: string,
925
+ options?: EventSubscriptionsDeleteOptionalParams
926
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
927
+ const directSendOperation = async (
928
+ args: coreClient.OperationArguments,
929
+ spec: coreClient.OperationSpec
930
+ ): Promise<void> => {
931
+ return this.client.sendOperationRequest(args, spec);
932
+ };
933
+ const sendOperation = async (
934
+ args: coreClient.OperationArguments,
935
+ spec: coreClient.OperationSpec
936
+ ) => {
937
+ let currentRawResponse:
938
+ | coreClient.FullOperationResponse
939
+ | undefined = undefined;
940
+ const providedCallback = args.options?.onResponse;
941
+ const callback: coreClient.RawResponseCallback = (
942
+ rawResponse: coreClient.FullOperationResponse,
943
+ flatResponse: unknown
944
+ ) => {
945
+ currentRawResponse = rawResponse;
946
+ providedCallback?.(rawResponse, flatResponse);
947
+ };
948
+ const updatedArgs = {
949
+ ...args,
950
+ options: {
951
+ ...args.options,
952
+ onResponse: callback
953
+ }
954
+ };
955
+ const flatResponse = await directSendOperation(updatedArgs, spec);
956
+ return {
957
+ flatResponse,
958
+ rawResponse: {
959
+ statusCode: currentRawResponse!.status,
960
+ body: currentRawResponse!.parsedBody,
961
+ headers: currentRawResponse!.headers.toJSON()
962
+ }
963
+ };
964
+ };
965
+
966
+ const lro = new LroImpl(
967
+ sendOperation,
968
+ { scope, eventSubscriptionName, options },
969
+ deleteOperationSpec
970
+ );
971
+ return new LroEngine(lro, {
972
+ resumeFrom: options?.resumeFrom,
973
+ intervalInMs: options?.updateIntervalInMs
974
+ });
617
975
  }
618
976
 
619
977
  /**
620
978
  * Delete an existing event subscription.
621
- * @summary Delete an event subscription.
622
979
  * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
623
- * group, or a top level resource belonging to a resource provider namespace, or an EventGrid
624
- * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
625
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
626
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
627
- * for a resource, and
628
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
629
- * for an EventGrid topic.
980
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
981
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
982
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
983
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
984
+ * for a resource, and
985
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
986
+ * for an EventGrid topic.
630
987
  * @param eventSubscriptionName Name of the event subscription.
631
- * @param [options] The optional parameters
632
- * @returns Promise<msRestAzure.LROPoller>
633
- */
634
- beginDeleteMethod(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
635
- return this.client.sendLRORequest(
636
- {
637
- scope,
638
- eventSubscriptionName,
639
- options
640
- },
641
- beginDeleteMethodOperationSpec,
642
- options);
988
+ * @param options The options parameters.
989
+ */
990
+ async beginDeleteAndWait(
991
+ scope: string,
992
+ eventSubscriptionName: string,
993
+ options?: EventSubscriptionsDeleteOptionalParams
994
+ ): Promise<void> {
995
+ const poller = await this.beginDelete(
996
+ scope,
997
+ eventSubscriptionName,
998
+ options
999
+ );
1000
+ return poller.pollUntilDone();
643
1001
  }
644
1002
 
645
1003
  /**
646
1004
  * Asynchronously updates an existing event subscription.
647
- * @summary Update an event subscription.
648
1005
  * @param scope The scope of existing event subscription. The scope can be a subscription, or a
649
- * resource group, or a top level resource belonging to a resource provider namespace, or an
650
- * EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
651
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
652
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
653
- * for a resource, and
654
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
655
- * for an EventGrid topic.
1006
+ * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
1007
+ * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
1008
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
1009
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1010
+ * for a resource, and
1011
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1012
+ * for an EventGrid topic.
656
1013
  * @param eventSubscriptionName Name of the event subscription to be updated.
657
1014
  * @param eventSubscriptionUpdateParameters Updated event subscription information.
658
- * @param [options] The optional parameters
659
- * @returns Promise<msRestAzure.LROPoller>
660
- */
661
- beginUpdate(scope: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
662
- return this.client.sendLRORequest(
1015
+ * @param options The options parameters.
1016
+ */
1017
+ async beginUpdate(
1018
+ scope: string,
1019
+ eventSubscriptionName: string,
1020
+ eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,
1021
+ options?: EventSubscriptionsUpdateOptionalParams
1022
+ ): Promise<
1023
+ PollerLike<
1024
+ PollOperationState<EventSubscriptionsUpdateResponse>,
1025
+ EventSubscriptionsUpdateResponse
1026
+ >
1027
+ > {
1028
+ const directSendOperation = async (
1029
+ args: coreClient.OperationArguments,
1030
+ spec: coreClient.OperationSpec
1031
+ ): Promise<EventSubscriptionsUpdateResponse> => {
1032
+ return this.client.sendOperationRequest(args, spec);
1033
+ };
1034
+ const sendOperation = async (
1035
+ args: coreClient.OperationArguments,
1036
+ spec: coreClient.OperationSpec
1037
+ ) => {
1038
+ let currentRawResponse:
1039
+ | coreClient.FullOperationResponse
1040
+ | undefined = undefined;
1041
+ const providedCallback = args.options?.onResponse;
1042
+ const callback: coreClient.RawResponseCallback = (
1043
+ rawResponse: coreClient.FullOperationResponse,
1044
+ flatResponse: unknown
1045
+ ) => {
1046
+ currentRawResponse = rawResponse;
1047
+ providedCallback?.(rawResponse, flatResponse);
1048
+ };
1049
+ const updatedArgs = {
1050
+ ...args,
1051
+ options: {
1052
+ ...args.options,
1053
+ onResponse: callback
1054
+ }
1055
+ };
1056
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1057
+ return {
1058
+ flatResponse,
1059
+ rawResponse: {
1060
+ statusCode: currentRawResponse!.status,
1061
+ body: currentRawResponse!.parsedBody,
1062
+ headers: currentRawResponse!.headers.toJSON()
1063
+ }
1064
+ };
1065
+ };
1066
+
1067
+ const lro = new LroImpl(
1068
+ sendOperation,
663
1069
  {
664
1070
  scope,
665
1071
  eventSubscriptionName,
666
1072
  eventSubscriptionUpdateParameters,
667
1073
  options
668
1074
  },
669
- beginUpdateOperationSpec,
670
- options);
1075
+ updateOperationSpec
1076
+ );
1077
+ return new LroEngine(lro, {
1078
+ resumeFrom: options?.resumeFrom,
1079
+ intervalInMs: options?.updateIntervalInMs
1080
+ });
671
1081
  }
672
1082
 
673
1083
  /**
674
- * List all aggregated global event subscriptions under a specific Azure subscription.
675
- * @summary Get an aggregated list of all global event subscriptions under an Azure subscription.
676
- * @param nextPageLink The NextLink from the previous successful call to List operation.
677
- * @param [options] The optional parameters
678
- * @returns Promise<Models.EventSubscriptionsListGlobalBySubscriptionNextResponse>
679
- */
680
- listGlobalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams): Promise<Models.EventSubscriptionsListGlobalBySubscriptionNextResponse>;
1084
+ * Asynchronously updates an existing event subscription.
1085
+ * @param scope The scope of existing event subscription. The scope can be a subscription, or a
1086
+ * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
1087
+ * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
1088
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
1089
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1090
+ * for a resource, and
1091
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1092
+ * for an EventGrid topic.
1093
+ * @param eventSubscriptionName Name of the event subscription to be updated.
1094
+ * @param eventSubscriptionUpdateParameters Updated event subscription information.
1095
+ * @param options The options parameters.
1096
+ */
1097
+ async beginUpdateAndWait(
1098
+ scope: string,
1099
+ eventSubscriptionName: string,
1100
+ eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,
1101
+ options?: EventSubscriptionsUpdateOptionalParams
1102
+ ): Promise<EventSubscriptionsUpdateResponse> {
1103
+ const poller = await this.beginUpdate(
1104
+ scope,
1105
+ eventSubscriptionName,
1106
+ eventSubscriptionUpdateParameters,
1107
+ options
1108
+ );
1109
+ return poller.pollUntilDone();
1110
+ }
1111
+
681
1112
  /**
682
- * @param nextPageLink The NextLink from the previous successful call to List operation.
683
- * @param callback The callback
1113
+ * Get the full endpoint URL for an event subscription.
1114
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
1115
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
1116
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
1117
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
1118
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1119
+ * for a resource, and
1120
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1121
+ * for an EventGrid topic.
1122
+ * @param eventSubscriptionName Name of the event subscription.
1123
+ * @param options The options parameters.
684
1124
  */
685
- listGlobalBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1125
+ getFullUrl(
1126
+ scope: string,
1127
+ eventSubscriptionName: string,
1128
+ options?: EventSubscriptionsGetFullUrlOptionalParams
1129
+ ): Promise<EventSubscriptionsGetFullUrlResponse> {
1130
+ return this.client.sendOperationRequest(
1131
+ { scope, eventSubscriptionName, options },
1132
+ getFullUrlOperationSpec
1133
+ );
1134
+ }
1135
+
686
1136
  /**
687
- * @param nextPageLink The NextLink from the previous successful call to List operation.
688
- * @param options The optional parameters
689
- * @param callback The callback
1137
+ * List all aggregated global event subscriptions under a specific Azure subscription.
1138
+ * @param options The options parameters.
690
1139
  */
691
- listGlobalBySubscriptionNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
692
- listGlobalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalBySubscriptionNextResponse> {
1140
+ private _listGlobalBySubscription(
1141
+ options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams
1142
+ ): Promise<EventSubscriptionsListGlobalBySubscriptionResponse> {
693
1143
  return this.client.sendOperationRequest(
694
- {
695
- nextPageLink,
696
- options
697
- },
698
- listGlobalBySubscriptionNextOperationSpec,
699
- callback) as Promise<Models.EventSubscriptionsListGlobalBySubscriptionNextResponse>;
1144
+ { options },
1145
+ listGlobalBySubscriptionOperationSpec
1146
+ );
700
1147
  }
701
1148
 
702
1149
  /**
703
1150
  * List all global event subscriptions under an Azure subscription for a topic type.
704
- * @summary List all global event subscriptions for a topic type.
705
- * @param nextPageLink The NextLink from the previous successful call to List operation.
706
- * @param [options] The optional parameters
707
- * @returns Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse>
708
- */
709
- listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams): Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse>;
710
- /**
711
- * @param nextPageLink The NextLink from the previous successful call to List operation.
712
- * @param callback The callback
713
- */
714
- listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
715
- /**
716
- * @param nextPageLink The NextLink from the previous successful call to List operation.
717
- * @param options The optional parameters
718
- * @param callback The callback
1151
+ * @param topicTypeName Name of the topic type.
1152
+ * @param options The options parameters.
719
1153
  */
720
- listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
721
- listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse> {
1154
+ private _listGlobalBySubscriptionForTopicType(
1155
+ topicTypeName: string,
1156
+ options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams
1157
+ ): Promise<EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse> {
722
1158
  return this.client.sendOperationRequest(
723
- {
724
- nextPageLink,
725
- options
726
- },
727
- listGlobalBySubscriptionForTopicTypeNextOperationSpec,
728
- callback) as Promise<Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse>;
1159
+ { topicTypeName, options },
1160
+ listGlobalBySubscriptionForTopicTypeOperationSpec
1161
+ );
729
1162
  }
730
1163
 
731
1164
  /**
732
1165
  * List all global event subscriptions under a specific Azure subscription and resource group.
733
- * @summary List all global event subscriptions under an Azure subscription and resource group.
734
- * @param nextPageLink The NextLink from the previous successful call to List operation.
735
- * @param [options] The optional parameters
736
- * @returns Promise<Models.EventSubscriptionsListGlobalByResourceGroupNextResponse>
737
- */
738
- listGlobalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams): Promise<Models.EventSubscriptionsListGlobalByResourceGroupNextResponse>;
739
- /**
740
- * @param nextPageLink The NextLink from the previous successful call to List operation.
741
- * @param callback The callback
742
- */
743
- listGlobalByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
744
- /**
745
- * @param nextPageLink The NextLink from the previous successful call to List operation.
746
- * @param options The optional parameters
747
- * @param callback The callback
1166
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1167
+ * @param options The options parameters.
748
1168
  */
749
- listGlobalByResourceGroupNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
750
- listGlobalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalByResourceGroupNextResponse> {
1169
+ private _listGlobalByResourceGroup(
1170
+ resourceGroupName: string,
1171
+ options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams
1172
+ ): Promise<EventSubscriptionsListGlobalByResourceGroupResponse> {
751
1173
  return this.client.sendOperationRequest(
752
- {
753
- nextPageLink,
754
- options
755
- },
756
- listGlobalByResourceGroupNextOperationSpec,
757
- callback) as Promise<Models.EventSubscriptionsListGlobalByResourceGroupNextResponse>;
1174
+ { resourceGroupName, options },
1175
+ listGlobalByResourceGroupOperationSpec
1176
+ );
758
1177
  }
759
1178
 
760
1179
  /**
761
1180
  * List all global event subscriptions under a resource group for a specific topic type.
762
- * @summary List all global event subscriptions under a resource group for a topic type.
763
- * @param nextPageLink The NextLink from the previous successful call to List operation.
764
- * @param [options] The optional parameters
765
- * @returns Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse>
766
- */
767
- listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams): Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse>;
768
- /**
769
- * @param nextPageLink The NextLink from the previous successful call to List operation.
770
- * @param callback The callback
771
- */
772
- listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
773
- /**
774
- * @param nextPageLink The NextLink from the previous successful call to List operation.
775
- * @param options The optional parameters
776
- * @param callback The callback
1181
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1182
+ * @param topicTypeName Name of the topic type.
1183
+ * @param options The options parameters.
777
1184
  */
778
- listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
779
- listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse> {
1185
+ private _listGlobalByResourceGroupForTopicType(
1186
+ resourceGroupName: string,
1187
+ topicTypeName: string,
1188
+ options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams
1189
+ ): Promise<EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse> {
780
1190
  return this.client.sendOperationRequest(
781
- {
782
- nextPageLink,
783
- options
784
- },
785
- listGlobalByResourceGroupForTopicTypeNextOperationSpec,
786
- callback) as Promise<Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse>;
1191
+ { resourceGroupName, topicTypeName, options },
1192
+ listGlobalByResourceGroupForTopicTypeOperationSpec
1193
+ );
787
1194
  }
788
1195
 
789
1196
  /**
790
1197
  * List all event subscriptions from the given location under a specific Azure subscription.
791
- * @summary List all regional event subscriptions under an Azure subscription.
792
- * @param nextPageLink The NextLink from the previous successful call to List operation.
793
- * @param [options] The optional parameters
794
- * @returns Promise<Models.EventSubscriptionsListRegionalBySubscriptionNextResponse>
795
- */
796
- listRegionalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams): Promise<Models.EventSubscriptionsListRegionalBySubscriptionNextResponse>;
797
- /**
798
- * @param nextPageLink The NextLink from the previous successful call to List operation.
799
- * @param callback The callback
800
- */
801
- listRegionalBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
802
- /**
803
- * @param nextPageLink The NextLink from the previous successful call to List operation.
804
- * @param options The optional parameters
805
- * @param callback The callback
1198
+ * @param location Name of the location.
1199
+ * @param options The options parameters.
806
1200
  */
807
- listRegionalBySubscriptionNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
808
- listRegionalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalBySubscriptionNextResponse> {
1201
+ private _listRegionalBySubscription(
1202
+ location: string,
1203
+ options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams
1204
+ ): Promise<EventSubscriptionsListRegionalBySubscriptionResponse> {
809
1205
  return this.client.sendOperationRequest(
810
- {
811
- nextPageLink,
812
- options
813
- },
814
- listRegionalBySubscriptionNextOperationSpec,
815
- callback) as Promise<Models.EventSubscriptionsListRegionalBySubscriptionNextResponse>;
1206
+ { location, options },
1207
+ listRegionalBySubscriptionOperationSpec
1208
+ );
816
1209
  }
817
1210
 
818
1211
  /**
819
1212
  * List all event subscriptions from the given location under a specific Azure subscription and
820
1213
  * resource group.
821
- * @summary List all regional event subscriptions under an Azure subscription and resource group.
822
- * @param nextPageLink The NextLink from the previous successful call to List operation.
823
- * @param [options] The optional parameters
824
- * @returns Promise<Models.EventSubscriptionsListRegionalByResourceGroupNextResponse>
825
- */
826
- listRegionalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams): Promise<Models.EventSubscriptionsListRegionalByResourceGroupNextResponse>;
827
- /**
828
- * @param nextPageLink The NextLink from the previous successful call to List operation.
829
- * @param callback The callback
1214
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1215
+ * @param location Name of the location.
1216
+ * @param options The options parameters.
830
1217
  */
831
- listRegionalByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1218
+ private _listRegionalByResourceGroup(
1219
+ resourceGroupName: string,
1220
+ location: string,
1221
+ options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams
1222
+ ): Promise<EventSubscriptionsListRegionalByResourceGroupResponse> {
1223
+ return this.client.sendOperationRequest(
1224
+ { resourceGroupName, location, options },
1225
+ listRegionalByResourceGroupOperationSpec
1226
+ );
1227
+ }
1228
+
832
1229
  /**
833
- * @param nextPageLink The NextLink from the previous successful call to List operation.
834
- * @param options The optional parameters
835
- * @param callback The callback
1230
+ * List all event subscriptions from the given location under a specific Azure subscription and topic
1231
+ * type.
1232
+ * @param location Name of the location.
1233
+ * @param topicTypeName Name of the topic type.
1234
+ * @param options The options parameters.
836
1235
  */
837
- listRegionalByResourceGroupNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
838
- listRegionalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalByResourceGroupNextResponse> {
1236
+ private _listRegionalBySubscriptionForTopicType(
1237
+ location: string,
1238
+ topicTypeName: string,
1239
+ options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams
1240
+ ): Promise<EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse> {
839
1241
  return this.client.sendOperationRequest(
840
- {
841
- nextPageLink,
842
- options
843
- },
844
- listRegionalByResourceGroupNextOperationSpec,
845
- callback) as Promise<Models.EventSubscriptionsListRegionalByResourceGroupNextResponse>;
1242
+ { location, topicTypeName, options },
1243
+ listRegionalBySubscriptionForTopicTypeOperationSpec
1244
+ );
846
1245
  }
847
1246
 
848
1247
  /**
849
1248
  * List all event subscriptions from the given location under a specific Azure subscription and
850
- * topic type.
851
- * @summary List all regional event subscriptions under an Azure subscription for a topic type.
852
- * @param nextPageLink The NextLink from the previous successful call to List operation.
853
- * @param [options] The optional parameters
854
- * @returns Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse>
855
- */
856
- listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams): Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse>;
857
- /**
858
- * @param nextPageLink The NextLink from the previous successful call to List operation.
859
- * @param callback The callback
860
- */
861
- listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1249
+ * resource group and topic type.
1250
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1251
+ * @param location Name of the location.
1252
+ * @param topicTypeName Name of the topic type.
1253
+ * @param options The options parameters.
1254
+ */
1255
+ private _listRegionalByResourceGroupForTopicType(
1256
+ resourceGroupName: string,
1257
+ location: string,
1258
+ topicTypeName: string,
1259
+ options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams
1260
+ ): Promise<
1261
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse
1262
+ > {
1263
+ return this.client.sendOperationRequest(
1264
+ { resourceGroupName, location, topicTypeName, options },
1265
+ listRegionalByResourceGroupForTopicTypeOperationSpec
1266
+ );
1267
+ }
1268
+
862
1269
  /**
863
- * @param nextPageLink The NextLink from the previous successful call to List operation.
864
- * @param options The optional parameters
865
- * @param callback The callback
866
- */
867
- listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
868
- listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse> {
1270
+ * List all event subscriptions that have been created for a specific topic.
1271
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1272
+ * @param providerNamespace Namespace of the provider of the topic.
1273
+ * @param resourceTypeName Name of the resource type.
1274
+ * @param resourceName Name of the resource.
1275
+ * @param options The options parameters.
1276
+ */
1277
+ private _listByResource(
1278
+ resourceGroupName: string,
1279
+ providerNamespace: string,
1280
+ resourceTypeName: string,
1281
+ resourceName: string,
1282
+ options?: EventSubscriptionsListByResourceOptionalParams
1283
+ ): Promise<EventSubscriptionsListByResourceResponse> {
869
1284
  return this.client.sendOperationRequest(
870
1285
  {
871
- nextPageLink,
1286
+ resourceGroupName,
1287
+ providerNamespace,
1288
+ resourceTypeName,
1289
+ resourceName,
872
1290
  options
873
1291
  },
874
- listRegionalBySubscriptionForTopicTypeNextOperationSpec,
875
- callback) as Promise<Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse>;
1292
+ listByResourceOperationSpec
1293
+ );
876
1294
  }
877
1295
 
878
1296
  /**
879
- * List all event subscriptions from the given location under a specific Azure subscription and
880
- * resource group and topic type.
881
- * @summary List all regional event subscriptions under an Azure subscription and resource group
882
- * for a topic type.
883
- * @param nextPageLink The NextLink from the previous successful call to List operation.
884
- * @param [options] The optional parameters
885
- * @returns Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse>
886
- */
887
- listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams): Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse>;
1297
+ * List all event subscriptions that have been created for a specific domain topic.
1298
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1299
+ * @param domainName Name of the top level domain.
1300
+ * @param topicName Name of the domain topic.
1301
+ * @param options The options parameters.
1302
+ */
1303
+ private _listByDomainTopic(
1304
+ resourceGroupName: string,
1305
+ domainName: string,
1306
+ topicName: string,
1307
+ options?: EventSubscriptionsListByDomainTopicOptionalParams
1308
+ ): Promise<EventSubscriptionsListByDomainTopicResponse> {
1309
+ return this.client.sendOperationRequest(
1310
+ { resourceGroupName, domainName, topicName, options },
1311
+ listByDomainTopicOperationSpec
1312
+ );
1313
+ }
1314
+
888
1315
  /**
889
- * @param nextPageLink The NextLink from the previous successful call to List operation.
890
- * @param callback The callback
1316
+ * Get all delivery attributes for an event subscription.
1317
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
1318
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
1319
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
1320
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
1321
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1322
+ * for a resource, and
1323
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1324
+ * for an EventGrid topic.
1325
+ * @param eventSubscriptionName Name of the event subscription.
1326
+ * @param options The options parameters.
891
1327
  */
892
- listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1328
+ getDeliveryAttributes(
1329
+ scope: string,
1330
+ eventSubscriptionName: string,
1331
+ options?: EventSubscriptionsGetDeliveryAttributesOptionalParams
1332
+ ): Promise<EventSubscriptionsGetDeliveryAttributesResponse> {
1333
+ return this.client.sendOperationRequest(
1334
+ { scope, eventSubscriptionName, options },
1335
+ getDeliveryAttributesOperationSpec
1336
+ );
1337
+ }
1338
+
893
1339
  /**
894
- * @param nextPageLink The NextLink from the previous successful call to List operation.
895
- * @param options The optional parameters
896
- * @param callback The callback
1340
+ * ListGlobalBySubscriptionNext
1341
+ * @param nextLink The nextLink from the previous successful call to the ListGlobalBySubscription
1342
+ * method.
1343
+ * @param options The options parameters.
897
1344
  */
898
- listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
899
- listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse> {
1345
+ private _listGlobalBySubscriptionNext(
1346
+ nextLink: string,
1347
+ options?: EventSubscriptionsListGlobalBySubscriptionNextOptionalParams
1348
+ ): Promise<EventSubscriptionsListGlobalBySubscriptionNextResponse> {
900
1349
  return this.client.sendOperationRequest(
901
- {
902
- nextPageLink,
903
- options
904
- },
905
- listRegionalByResourceGroupForTopicTypeNextOperationSpec,
906
- callback) as Promise<Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse>;
1350
+ { nextLink, options },
1351
+ listGlobalBySubscriptionNextOperationSpec
1352
+ );
907
1353
  }
908
1354
 
909
1355
  /**
910
- * List all event subscriptions that have been created for a specific topic.
911
- * @summary List all event subscriptions for a specific topic.
912
- * @param nextPageLink The NextLink from the previous successful call to List operation.
913
- * @param [options] The optional parameters
914
- * @returns Promise<Models.EventSubscriptionsListByResourceNextResponse>
915
- */
916
- listByResourceNext(nextPageLink: string, options?: Models.EventSubscriptionsListByResourceNextOptionalParams): Promise<Models.EventSubscriptionsListByResourceNextResponse>;
1356
+ * ListGlobalBySubscriptionForTopicTypeNext
1357
+ * @param topicTypeName Name of the topic type.
1358
+ * @param nextLink The nextLink from the previous successful call to the
1359
+ * ListGlobalBySubscriptionForTopicType method.
1360
+ * @param options The options parameters.
1361
+ */
1362
+ private _listGlobalBySubscriptionForTopicTypeNext(
1363
+ topicTypeName: string,
1364
+ nextLink: string,
1365
+ options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams
1366
+ ): Promise<
1367
+ EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse
1368
+ > {
1369
+ return this.client.sendOperationRequest(
1370
+ { topicTypeName, nextLink, options },
1371
+ listGlobalBySubscriptionForTopicTypeNextOperationSpec
1372
+ );
1373
+ }
1374
+
917
1375
  /**
918
- * @param nextPageLink The NextLink from the previous successful call to List operation.
919
- * @param callback The callback
920
- */
921
- listByResourceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1376
+ * ListGlobalByResourceGroupNext
1377
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1378
+ * @param nextLink The nextLink from the previous successful call to the ListGlobalByResourceGroup
1379
+ * method.
1380
+ * @param options The options parameters.
1381
+ */
1382
+ private _listGlobalByResourceGroupNext(
1383
+ resourceGroupName: string,
1384
+ nextLink: string,
1385
+ options?: EventSubscriptionsListGlobalByResourceGroupNextOptionalParams
1386
+ ): Promise<EventSubscriptionsListGlobalByResourceGroupNextResponse> {
1387
+ return this.client.sendOperationRequest(
1388
+ { resourceGroupName, nextLink, options },
1389
+ listGlobalByResourceGroupNextOperationSpec
1390
+ );
1391
+ }
1392
+
922
1393
  /**
923
- * @param nextPageLink The NextLink from the previous successful call to List operation.
924
- * @param options The optional parameters
925
- * @param callback The callback
926
- */
927
- listByResourceNext(nextPageLink: string, options: Models.EventSubscriptionsListByResourceNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
928
- listByResourceNext(nextPageLink: string, options?: Models.EventSubscriptionsListByResourceNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListByResourceNextResponse> {
1394
+ * ListGlobalByResourceGroupForTopicTypeNext
1395
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1396
+ * @param topicTypeName Name of the topic type.
1397
+ * @param nextLink The nextLink from the previous successful call to the
1398
+ * ListGlobalByResourceGroupForTopicType method.
1399
+ * @param options The options parameters.
1400
+ */
1401
+ private _listGlobalByResourceGroupForTopicTypeNext(
1402
+ resourceGroupName: string,
1403
+ topicTypeName: string,
1404
+ nextLink: string,
1405
+ options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams
1406
+ ): Promise<
1407
+ EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse
1408
+ > {
929
1409
  return this.client.sendOperationRequest(
930
- {
931
- nextPageLink,
932
- options
933
- },
934
- listByResourceNextOperationSpec,
935
- callback) as Promise<Models.EventSubscriptionsListByResourceNextResponse>;
1410
+ { resourceGroupName, topicTypeName, nextLink, options },
1411
+ listGlobalByResourceGroupForTopicTypeNextOperationSpec
1412
+ );
936
1413
  }
937
1414
 
938
1415
  /**
939
- * List all event subscriptions that have been created for a specific domain topic.
940
- * @summary List all event subscriptions for a specific domain topic.
941
- * @param nextPageLink The NextLink from the previous successful call to List operation.
942
- * @param [options] The optional parameters
943
- * @returns Promise<Models.EventSubscriptionsListByDomainTopicNextResponse>
944
- */
945
- listByDomainTopicNext(nextPageLink: string, options?: Models.EventSubscriptionsListByDomainTopicNextOptionalParams): Promise<Models.EventSubscriptionsListByDomainTopicNextResponse>;
1416
+ * ListRegionalBySubscriptionNext
1417
+ * @param location Name of the location.
1418
+ * @param nextLink The nextLink from the previous successful call to the ListRegionalBySubscription
1419
+ * method.
1420
+ * @param options The options parameters.
1421
+ */
1422
+ private _listRegionalBySubscriptionNext(
1423
+ location: string,
1424
+ nextLink: string,
1425
+ options?: EventSubscriptionsListRegionalBySubscriptionNextOptionalParams
1426
+ ): Promise<EventSubscriptionsListRegionalBySubscriptionNextResponse> {
1427
+ return this.client.sendOperationRequest(
1428
+ { location, nextLink, options },
1429
+ listRegionalBySubscriptionNextOperationSpec
1430
+ );
1431
+ }
1432
+
946
1433
  /**
947
- * @param nextPageLink The NextLink from the previous successful call to List operation.
948
- * @param callback The callback
949
- */
950
- listByDomainTopicNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
1434
+ * ListRegionalByResourceGroupNext
1435
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1436
+ * @param location Name of the location.
1437
+ * @param nextLink The nextLink from the previous successful call to the ListRegionalByResourceGroup
1438
+ * method.
1439
+ * @param options The options parameters.
1440
+ */
1441
+ private _listRegionalByResourceGroupNext(
1442
+ resourceGroupName: string,
1443
+ location: string,
1444
+ nextLink: string,
1445
+ options?: EventSubscriptionsListRegionalByResourceGroupNextOptionalParams
1446
+ ): Promise<EventSubscriptionsListRegionalByResourceGroupNextResponse> {
1447
+ return this.client.sendOperationRequest(
1448
+ { resourceGroupName, location, nextLink, options },
1449
+ listRegionalByResourceGroupNextOperationSpec
1450
+ );
1451
+ }
1452
+
951
1453
  /**
952
- * @param nextPageLink The NextLink from the previous successful call to List operation.
953
- * @param options The optional parameters
954
- * @param callback The callback
955
- */
956
- listByDomainTopicNext(nextPageLink: string, options: Models.EventSubscriptionsListByDomainTopicNextOptionalParams, callback: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): void;
957
- listByDomainTopicNext(nextPageLink: string, options?: Models.EventSubscriptionsListByDomainTopicNextOptionalParams | msRest.ServiceCallback<Models.EventSubscriptionsListResult>, callback?: msRest.ServiceCallback<Models.EventSubscriptionsListResult>): Promise<Models.EventSubscriptionsListByDomainTopicNextResponse> {
1454
+ * ListRegionalBySubscriptionForTopicTypeNext
1455
+ * @param location Name of the location.
1456
+ * @param topicTypeName Name of the topic type.
1457
+ * @param nextLink The nextLink from the previous successful call to the
1458
+ * ListRegionalBySubscriptionForTopicType method.
1459
+ * @param options The options parameters.
1460
+ */
1461
+ private _listRegionalBySubscriptionForTopicTypeNext(
1462
+ location: string,
1463
+ topicTypeName: string,
1464
+ nextLink: string,
1465
+ options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams
1466
+ ): Promise<
1467
+ EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse
1468
+ > {
1469
+ return this.client.sendOperationRequest(
1470
+ { location, topicTypeName, nextLink, options },
1471
+ listRegionalBySubscriptionForTopicTypeNextOperationSpec
1472
+ );
1473
+ }
1474
+
1475
+ /**
1476
+ * ListRegionalByResourceGroupForTopicTypeNext
1477
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1478
+ * @param location Name of the location.
1479
+ * @param topicTypeName Name of the topic type.
1480
+ * @param nextLink The nextLink from the previous successful call to the
1481
+ * ListRegionalByResourceGroupForTopicType method.
1482
+ * @param options The options parameters.
1483
+ */
1484
+ private _listRegionalByResourceGroupForTopicTypeNext(
1485
+ resourceGroupName: string,
1486
+ location: string,
1487
+ topicTypeName: string,
1488
+ nextLink: string,
1489
+ options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams
1490
+ ): Promise<
1491
+ EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse
1492
+ > {
1493
+ return this.client.sendOperationRequest(
1494
+ { resourceGroupName, location, topicTypeName, nextLink, options },
1495
+ listRegionalByResourceGroupForTopicTypeNextOperationSpec
1496
+ );
1497
+ }
1498
+
1499
+ /**
1500
+ * ListByResourceNext
1501
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1502
+ * @param providerNamespace Namespace of the provider of the topic.
1503
+ * @param resourceTypeName Name of the resource type.
1504
+ * @param resourceName Name of the resource.
1505
+ * @param nextLink The nextLink from the previous successful call to the ListByResource method.
1506
+ * @param options The options parameters.
1507
+ */
1508
+ private _listByResourceNext(
1509
+ resourceGroupName: string,
1510
+ providerNamespace: string,
1511
+ resourceTypeName: string,
1512
+ resourceName: string,
1513
+ nextLink: string,
1514
+ options?: EventSubscriptionsListByResourceNextOptionalParams
1515
+ ): Promise<EventSubscriptionsListByResourceNextResponse> {
958
1516
  return this.client.sendOperationRequest(
959
1517
  {
960
- nextPageLink,
1518
+ resourceGroupName,
1519
+ providerNamespace,
1520
+ resourceTypeName,
1521
+ resourceName,
1522
+ nextLink,
961
1523
  options
962
1524
  },
963
- listByDomainTopicNextOperationSpec,
964
- callback) as Promise<Models.EventSubscriptionsListByDomainTopicNextResponse>;
1525
+ listByResourceNextOperationSpec
1526
+ );
965
1527
  }
966
- }
967
1528
 
1529
+ /**
1530
+ * ListByDomainTopicNext
1531
+ * @param resourceGroupName The name of the resource group within the user's subscription.
1532
+ * @param domainName Name of the top level domain.
1533
+ * @param topicName Name of the domain topic.
1534
+ * @param nextLink The nextLink from the previous successful call to the ListByDomainTopic method.
1535
+ * @param options The options parameters.
1536
+ */
1537
+ private _listByDomainTopicNext(
1538
+ resourceGroupName: string,
1539
+ domainName: string,
1540
+ topicName: string,
1541
+ nextLink: string,
1542
+ options?: EventSubscriptionsListByDomainTopicNextOptionalParams
1543
+ ): Promise<EventSubscriptionsListByDomainTopicNextResponse> {
1544
+ return this.client.sendOperationRequest(
1545
+ { resourceGroupName, domainName, topicName, nextLink, options },
1546
+ listByDomainTopicNextOperationSpec
1547
+ );
1548
+ }
1549
+ }
968
1550
  // Operation Specifications
969
- const serializer = new msRest.Serializer(Mappers);
970
- const getOperationSpec: msRest.OperationSpec = {
1551
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1552
+
1553
+ const getOperationSpec: coreClient.OperationSpec = {
1554
+ path:
1555
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
971
1556
  httpMethod: "GET",
972
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1557
+ responses: {
1558
+ 200: {
1559
+ bodyMapper: Mappers.EventSubscription
1560
+ },
1561
+ default: {}
1562
+ },
1563
+ queryParameters: [Parameters.apiVersion],
973
1564
  urlParameters: [
974
- Parameters.scope0,
1565
+ Parameters.$host,
1566
+ Parameters.scope,
975
1567
  Parameters.eventSubscriptionName
976
1568
  ],
977
- queryParameters: [
978
- Parameters.apiVersion
979
- ],
980
- headerParameters: [
981
- Parameters.acceptLanguage
982
- ],
1569
+ headerParameters: [Parameters.accept],
1570
+ serializer
1571
+ };
1572
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
1573
+ path:
1574
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1575
+ httpMethod: "PUT",
983
1576
  responses: {
984
1577
  200: {
985
1578
  bodyMapper: Mappers.EventSubscription
986
1579
  },
987
- default: {
988
- bodyMapper: Mappers.CloudError
989
- }
1580
+ 201: {
1581
+ bodyMapper: Mappers.EventSubscription
1582
+ },
1583
+ 202: {
1584
+ bodyMapper: Mappers.EventSubscription
1585
+ },
1586
+ 204: {
1587
+ bodyMapper: Mappers.EventSubscription
1588
+ },
1589
+ default: {}
990
1590
  },
1591
+ requestBody: Parameters.eventSubscriptionInfo,
1592
+ queryParameters: [Parameters.apiVersion],
1593
+ urlParameters: [
1594
+ Parameters.$host,
1595
+ Parameters.scope,
1596
+ Parameters.eventSubscriptionName
1597
+ ],
1598
+ headerParameters: [Parameters.accept, Parameters.contentType],
1599
+ mediaType: "json",
991
1600
  serializer
992
1601
  };
993
-
994
- const getFullUrlOperationSpec: msRest.OperationSpec = {
995
- httpMethod: "POST",
996
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl",
1602
+ const deleteOperationSpec: coreClient.OperationSpec = {
1603
+ path:
1604
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1605
+ httpMethod: "DELETE",
1606
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
1607
+ queryParameters: [Parameters.apiVersion],
997
1608
  urlParameters: [
998
- Parameters.scope0,
1609
+ Parameters.$host,
1610
+ Parameters.scope,
999
1611
  Parameters.eventSubscriptionName
1000
1612
  ],
1001
- queryParameters: [
1002
- Parameters.apiVersion
1003
- ],
1004
- headerParameters: [
1005
- Parameters.acceptLanguage
1613
+ serializer
1614
+ };
1615
+ const updateOperationSpec: coreClient.OperationSpec = {
1616
+ path:
1617
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1618
+ httpMethod: "PATCH",
1619
+ responses: {
1620
+ 200: {
1621
+ bodyMapper: Mappers.EventSubscription
1622
+ },
1623
+ 201: {
1624
+ bodyMapper: Mappers.EventSubscription
1625
+ },
1626
+ 202: {
1627
+ bodyMapper: Mappers.EventSubscription
1628
+ },
1629
+ 204: {
1630
+ bodyMapper: Mappers.EventSubscription
1631
+ },
1632
+ default: {}
1633
+ },
1634
+ requestBody: Parameters.eventSubscriptionUpdateParameters,
1635
+ queryParameters: [Parameters.apiVersion],
1636
+ urlParameters: [
1637
+ Parameters.$host,
1638
+ Parameters.scope,
1639
+ Parameters.eventSubscriptionName
1006
1640
  ],
1641
+ headerParameters: [Parameters.accept, Parameters.contentType],
1642
+ mediaType: "json",
1643
+ serializer
1644
+ };
1645
+ const getFullUrlOperationSpec: coreClient.OperationSpec = {
1646
+ path:
1647
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl",
1648
+ httpMethod: "POST",
1007
1649
  responses: {
1008
1650
  200: {
1009
1651
  bodyMapper: Mappers.EventSubscriptionFullUrl
1010
1652
  },
1011
- default: {
1012
- bodyMapper: Mappers.CloudError
1013
- }
1653
+ default: {}
1014
1654
  },
1655
+ queryParameters: [Parameters.apiVersion],
1656
+ urlParameters: [
1657
+ Parameters.$host,
1658
+ Parameters.scope,
1659
+ Parameters.eventSubscriptionName
1660
+ ],
1661
+ headerParameters: [Parameters.accept],
1015
1662
  serializer
1016
1663
  };
1017
-
1018
- const listGlobalBySubscriptionOperationSpec: msRest.OperationSpec = {
1664
+ const listGlobalBySubscriptionOperationSpec: coreClient.OperationSpec = {
1665
+ path:
1666
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions",
1019
1667
  httpMethod: "GET",
1020
- path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions",
1021
- urlParameters: [
1022
- Parameters.subscriptionId
1023
- ],
1024
- queryParameters: [
1025
- Parameters.apiVersion,
1026
- Parameters.filter,
1027
- Parameters.top
1028
- ],
1029
- headerParameters: [
1030
- Parameters.acceptLanguage
1031
- ],
1032
1668
  responses: {
1033
1669
  200: {
1034
1670
  bodyMapper: Mappers.EventSubscriptionsListResult
1035
1671
  },
1036
- default: {
1037
- bodyMapper: Mappers.CloudError
1038
- }
1672
+ default: {}
1039
1673
  },
1674
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1675
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1676
+ headerParameters: [Parameters.accept],
1040
1677
  serializer
1041
1678
  };
1042
-
1043
- const listGlobalBySubscriptionForTopicTypeOperationSpec: msRest.OperationSpec = {
1679
+ const listGlobalBySubscriptionForTopicTypeOperationSpec: coreClient.OperationSpec = {
1680
+ path:
1681
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1044
1682
  httpMethod: "GET",
1045
- path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1683
+ responses: {
1684
+ 200: {
1685
+ bodyMapper: Mappers.EventSubscriptionsListResult
1686
+ },
1687
+ default: {}
1688
+ },
1689
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1046
1690
  urlParameters: [
1691
+ Parameters.$host,
1047
1692
  Parameters.subscriptionId,
1048
1693
  Parameters.topicTypeName
1049
1694
  ],
1050
- queryParameters: [
1051
- Parameters.apiVersion,
1052
- Parameters.filter,
1053
- Parameters.top
1054
- ],
1055
- headerParameters: [
1056
- Parameters.acceptLanguage
1057
- ],
1695
+ headerParameters: [Parameters.accept],
1696
+ serializer
1697
+ };
1698
+ const listGlobalByResourceGroupOperationSpec: coreClient.OperationSpec = {
1699
+ path:
1700
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions",
1701
+ httpMethod: "GET",
1058
1702
  responses: {
1059
1703
  200: {
1060
1704
  bodyMapper: Mappers.EventSubscriptionsListResult
1061
1705
  },
1062
- default: {
1063
- bodyMapper: Mappers.CloudError
1064
- }
1706
+ default: {}
1065
1707
  },
1066
- serializer
1067
- };
1068
-
1069
- const listGlobalByResourceGroupOperationSpec: msRest.OperationSpec = {
1070
- httpMethod: "GET",
1071
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions",
1708
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1072
1709
  urlParameters: [
1710
+ Parameters.$host,
1073
1711
  Parameters.subscriptionId,
1074
1712
  Parameters.resourceGroupName
1075
1713
  ],
1076
- queryParameters: [
1077
- Parameters.apiVersion,
1078
- Parameters.filter,
1079
- Parameters.top
1080
- ],
1081
- headerParameters: [
1082
- Parameters.acceptLanguage
1083
- ],
1714
+ headerParameters: [Parameters.accept],
1715
+ serializer
1716
+ };
1717
+ const listGlobalByResourceGroupForTopicTypeOperationSpec: coreClient.OperationSpec = {
1718
+ path:
1719
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1720
+ httpMethod: "GET",
1084
1721
  responses: {
1085
1722
  200: {
1086
1723
  bodyMapper: Mappers.EventSubscriptionsListResult
1087
1724
  },
1088
- default: {
1089
- bodyMapper: Mappers.CloudError
1090
- }
1725
+ default: {}
1091
1726
  },
1092
- serializer
1093
- };
1094
-
1095
- const listGlobalByResourceGroupForTopicTypeOperationSpec: msRest.OperationSpec = {
1096
- httpMethod: "GET",
1097
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1727
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1098
1728
  urlParameters: [
1729
+ Parameters.$host,
1099
1730
  Parameters.subscriptionId,
1100
1731
  Parameters.resourceGroupName,
1101
1732
  Parameters.topicTypeName
1102
1733
  ],
1103
- queryParameters: [
1104
- Parameters.apiVersion,
1105
- Parameters.filter,
1106
- Parameters.top
1107
- ],
1108
- headerParameters: [
1109
- Parameters.acceptLanguage
1110
- ],
1734
+ headerParameters: [Parameters.accept],
1735
+ serializer
1736
+ };
1737
+ const listRegionalBySubscriptionOperationSpec: coreClient.OperationSpec = {
1738
+ path:
1739
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1740
+ httpMethod: "GET",
1111
1741
  responses: {
1112
1742
  200: {
1113
1743
  bodyMapper: Mappers.EventSubscriptionsListResult
1114
1744
  },
1115
- default: {
1116
- bodyMapper: Mappers.CloudError
1117
- }
1745
+ default: {}
1118
1746
  },
1119
- serializer
1120
- };
1121
-
1122
- const listRegionalBySubscriptionOperationSpec: msRest.OperationSpec = {
1123
- httpMethod: "GET",
1124
- path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1747
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1125
1748
  urlParameters: [
1749
+ Parameters.$host,
1126
1750
  Parameters.subscriptionId,
1127
1751
  Parameters.location
1128
1752
  ],
1129
- queryParameters: [
1130
- Parameters.apiVersion,
1131
- Parameters.filter,
1132
- Parameters.top
1133
- ],
1134
- headerParameters: [
1135
- Parameters.acceptLanguage
1136
- ],
1753
+ headerParameters: [Parameters.accept],
1754
+ serializer
1755
+ };
1756
+ const listRegionalByResourceGroupOperationSpec: coreClient.OperationSpec = {
1757
+ path:
1758
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1759
+ httpMethod: "GET",
1137
1760
  responses: {
1138
1761
  200: {
1139
1762
  bodyMapper: Mappers.EventSubscriptionsListResult
1140
1763
  },
1141
- default: {
1142
- bodyMapper: Mappers.CloudError
1143
- }
1764
+ default: {}
1144
1765
  },
1145
- serializer
1146
- };
1147
-
1148
- const listRegionalByResourceGroupOperationSpec: msRest.OperationSpec = {
1149
- httpMethod: "GET",
1150
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1766
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1151
1767
  urlParameters: [
1768
+ Parameters.$host,
1152
1769
  Parameters.subscriptionId,
1153
1770
  Parameters.resourceGroupName,
1154
1771
  Parameters.location
1155
1772
  ],
1156
- queryParameters: [
1157
- Parameters.apiVersion,
1158
- Parameters.filter,
1159
- Parameters.top
1160
- ],
1161
- headerParameters: [
1162
- Parameters.acceptLanguage
1163
- ],
1773
+ headerParameters: [Parameters.accept],
1774
+ serializer
1775
+ };
1776
+ const listRegionalBySubscriptionForTopicTypeOperationSpec: coreClient.OperationSpec = {
1777
+ path:
1778
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1779
+ httpMethod: "GET",
1164
1780
  responses: {
1165
1781
  200: {
1166
1782
  bodyMapper: Mappers.EventSubscriptionsListResult
1167
1783
  },
1168
- default: {
1169
- bodyMapper: Mappers.CloudError
1170
- }
1784
+ default: {}
1171
1785
  },
1172
- serializer
1173
- };
1174
-
1175
- const listRegionalBySubscriptionForTopicTypeOperationSpec: msRest.OperationSpec = {
1176
- httpMethod: "GET",
1177
- path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1786
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1178
1787
  urlParameters: [
1788
+ Parameters.$host,
1179
1789
  Parameters.subscriptionId,
1180
- Parameters.location,
1181
- Parameters.topicTypeName
1182
- ],
1183
- queryParameters: [
1184
- Parameters.apiVersion,
1185
- Parameters.filter,
1186
- Parameters.top
1187
- ],
1188
- headerParameters: [
1189
- Parameters.acceptLanguage
1790
+ Parameters.topicTypeName,
1791
+ Parameters.location
1190
1792
  ],
1793
+ headerParameters: [Parameters.accept],
1794
+ serializer
1795
+ };
1796
+ const listRegionalByResourceGroupForTopicTypeOperationSpec: coreClient.OperationSpec = {
1797
+ path:
1798
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1799
+ httpMethod: "GET",
1191
1800
  responses: {
1192
1801
  200: {
1193
1802
  bodyMapper: Mappers.EventSubscriptionsListResult
1194
1803
  },
1195
- default: {
1196
- bodyMapper: Mappers.CloudError
1197
- }
1804
+ default: {}
1198
1805
  },
1199
- serializer
1200
- };
1201
-
1202
- const listRegionalByResourceGroupForTopicTypeOperationSpec: msRest.OperationSpec = {
1203
- httpMethod: "GET",
1204
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1806
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1205
1807
  urlParameters: [
1808
+ Parameters.$host,
1206
1809
  Parameters.subscriptionId,
1207
1810
  Parameters.resourceGroupName,
1208
- Parameters.location,
1209
- Parameters.topicTypeName
1210
- ],
1211
- queryParameters: [
1212
- Parameters.apiVersion,
1213
- Parameters.filter,
1214
- Parameters.top
1215
- ],
1216
- headerParameters: [
1217
- Parameters.acceptLanguage
1811
+ Parameters.topicTypeName,
1812
+ Parameters.location
1218
1813
  ],
1814
+ headerParameters: [Parameters.accept],
1815
+ serializer
1816
+ };
1817
+ const listByResourceOperationSpec: coreClient.OperationSpec = {
1818
+ path:
1819
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions",
1820
+ httpMethod: "GET",
1219
1821
  responses: {
1220
1822
  200: {
1221
1823
  bodyMapper: Mappers.EventSubscriptionsListResult
1222
1824
  },
1223
- default: {
1224
- bodyMapper: Mappers.CloudError
1225
- }
1825
+ default: {}
1226
1826
  },
1227
- serializer
1228
- };
1229
-
1230
- const listByResourceOperationSpec: msRest.OperationSpec = {
1231
- httpMethod: "GET",
1232
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions",
1827
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1233
1828
  urlParameters: [
1829
+ Parameters.$host,
1234
1830
  Parameters.subscriptionId,
1235
1831
  Parameters.resourceGroupName,
1236
1832
  Parameters.providerNamespace,
1237
1833
  Parameters.resourceTypeName,
1238
1834
  Parameters.resourceName
1239
1835
  ],
1240
- queryParameters: [
1241
- Parameters.apiVersion,
1242
- Parameters.filter,
1243
- Parameters.top
1244
- ],
1245
- headerParameters: [
1246
- Parameters.acceptLanguage
1247
- ],
1836
+ headerParameters: [Parameters.accept],
1837
+ serializer
1838
+ };
1839
+ const listByDomainTopicOperationSpec: coreClient.OperationSpec = {
1840
+ path:
1841
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions",
1842
+ httpMethod: "GET",
1248
1843
  responses: {
1249
1844
  200: {
1250
1845
  bodyMapper: Mappers.EventSubscriptionsListResult
1251
1846
  },
1252
- default: {
1253
- bodyMapper: Mappers.CloudError
1254
- }
1847
+ default: {}
1255
1848
  },
1256
- serializer
1257
- };
1258
-
1259
- const listByDomainTopicOperationSpec: msRest.OperationSpec = {
1260
- httpMethod: "GET",
1261
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions",
1849
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1262
1850
  urlParameters: [
1851
+ Parameters.$host,
1263
1852
  Parameters.subscriptionId,
1264
1853
  Parameters.resourceGroupName,
1265
1854
  Parameters.domainName,
1266
1855
  Parameters.topicName
1267
1856
  ],
1268
- queryParameters: [
1269
- Parameters.apiVersion,
1270
- Parameters.filter,
1271
- Parameters.top
1272
- ],
1273
- headerParameters: [
1274
- Parameters.acceptLanguage
1275
- ],
1276
- responses: {
1277
- 200: {
1278
- bodyMapper: Mappers.EventSubscriptionsListResult
1279
- },
1280
- default: {
1281
- bodyMapper: Mappers.CloudError
1282
- }
1283
- },
1857
+ headerParameters: [Parameters.accept],
1284
1858
  serializer
1285
1859
  };
1286
-
1287
- const getDeliveryAttributesOperationSpec: msRest.OperationSpec = {
1860
+ const getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {
1861
+ path:
1862
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
1288
1863
  httpMethod: "POST",
1289
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
1290
- urlParameters: [
1291
- Parameters.scope0,
1292
- Parameters.eventSubscriptionName
1293
- ],
1294
- queryParameters: [
1295
- Parameters.apiVersion
1296
- ],
1297
- headerParameters: [
1298
- Parameters.acceptLanguage
1299
- ],
1300
1864
  responses: {
1301
1865
  200: {
1302
1866
  bodyMapper: Mappers.DeliveryAttributeListResult
1303
1867
  },
1304
- default: {
1305
- bodyMapper: Mappers.CloudError
1306
- }
1307
- },
1308
- serializer
1309
- };
1310
-
1311
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
1312
- httpMethod: "PUT",
1313
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1314
- urlParameters: [
1315
- Parameters.scope0,
1316
- Parameters.eventSubscriptionName
1317
- ],
1318
- queryParameters: [
1319
- Parameters.apiVersion
1320
- ],
1321
- headerParameters: [
1322
- Parameters.acceptLanguage
1323
- ],
1324
- requestBody: {
1325
- parameterPath: "eventSubscriptionInfo",
1326
- mapper: {
1327
- ...Mappers.EventSubscription,
1328
- required: true
1329
- }
1330
- },
1331
- responses: {
1332
- 201: {
1333
- bodyMapper: Mappers.EventSubscription
1334
- },
1335
- default: {
1336
- bodyMapper: Mappers.CloudError
1337
- }
1338
- },
1339
- serializer
1340
- };
1341
-
1342
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
1343
- httpMethod: "DELETE",
1344
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1345
- urlParameters: [
1346
- Parameters.scope0,
1347
- Parameters.eventSubscriptionName
1348
- ],
1349
- queryParameters: [
1350
- Parameters.apiVersion
1351
- ],
1352
- headerParameters: [
1353
- Parameters.acceptLanguage
1354
- ],
1355
- responses: {
1356
- 200: {},
1357
- 202: {},
1358
- 204: {},
1359
- default: {
1360
- bodyMapper: Mappers.CloudError
1361
- }
1868
+ default: {}
1362
1869
  },
1363
- serializer
1364
- };
1365
-
1366
- const beginUpdateOperationSpec: msRest.OperationSpec = {
1367
- httpMethod: "PATCH",
1368
- path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1870
+ queryParameters: [Parameters.apiVersion],
1369
1871
  urlParameters: [
1370
- Parameters.scope0,
1872
+ Parameters.$host,
1873
+ Parameters.scope,
1371
1874
  Parameters.eventSubscriptionName
1372
1875
  ],
1373
- queryParameters: [
1374
- Parameters.apiVersion
1375
- ],
1376
- headerParameters: [
1377
- Parameters.acceptLanguage
1378
- ],
1379
- requestBody: {
1380
- parameterPath: "eventSubscriptionUpdateParameters",
1381
- mapper: {
1382
- ...Mappers.EventSubscriptionUpdateParameters,
1383
- required: true
1384
- }
1385
- },
1386
- responses: {
1387
- 201: {
1388
- bodyMapper: Mappers.EventSubscription
1389
- },
1390
- default: {
1391
- bodyMapper: Mappers.CloudError
1392
- }
1393
- },
1876
+ headerParameters: [Parameters.accept],
1394
1877
  serializer
1395
1878
  };
1396
-
1397
- const listGlobalBySubscriptionNextOperationSpec: msRest.OperationSpec = {
1398
- httpMethod: "GET",
1399
- baseUrl: "https://management.azure.com",
1879
+ const listGlobalBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1400
1880
  path: "{nextLink}",
1401
- urlParameters: [
1402
- Parameters.nextPageLink
1403
- ],
1404
- queryParameters: [
1405
- Parameters.apiVersion,
1406
- Parameters.filter,
1407
- Parameters.top
1408
- ],
1409
- headerParameters: [
1410
- Parameters.acceptLanguage
1411
- ],
1881
+ httpMethod: "GET",
1412
1882
  responses: {
1413
1883
  200: {
1414
1884
  bodyMapper: Mappers.EventSubscriptionsListResult
1415
1885
  },
1416
- default: {
1417
- bodyMapper: Mappers.CloudError
1418
- }
1886
+ default: {}
1419
1887
  },
1888
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1889
+ urlParameters: [
1890
+ Parameters.$host,
1891
+ Parameters.subscriptionId,
1892
+ Parameters.nextLink
1893
+ ],
1894
+ headerParameters: [Parameters.accept],
1420
1895
  serializer
1421
1896
  };
1422
-
1423
- const listGlobalBySubscriptionForTopicTypeNextOperationSpec: msRest.OperationSpec = {
1424
- httpMethod: "GET",
1425
- baseUrl: "https://management.azure.com",
1897
+ const listGlobalBySubscriptionForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
1426
1898
  path: "{nextLink}",
1427
- urlParameters: [
1428
- Parameters.nextPageLink
1429
- ],
1430
- queryParameters: [
1431
- Parameters.apiVersion,
1432
- Parameters.filter,
1433
- Parameters.top
1434
- ],
1435
- headerParameters: [
1436
- Parameters.acceptLanguage
1437
- ],
1899
+ httpMethod: "GET",
1438
1900
  responses: {
1439
1901
  200: {
1440
1902
  bodyMapper: Mappers.EventSubscriptionsListResult
1441
1903
  },
1442
- default: {
1443
- bodyMapper: Mappers.CloudError
1444
- }
1904
+ default: {}
1445
1905
  },
1906
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1907
+ urlParameters: [
1908
+ Parameters.$host,
1909
+ Parameters.subscriptionId,
1910
+ Parameters.nextLink,
1911
+ Parameters.topicTypeName
1912
+ ],
1913
+ headerParameters: [Parameters.accept],
1446
1914
  serializer
1447
1915
  };
1448
-
1449
- const listGlobalByResourceGroupNextOperationSpec: msRest.OperationSpec = {
1450
- httpMethod: "GET",
1451
- baseUrl: "https://management.azure.com",
1916
+ const listGlobalByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1452
1917
  path: "{nextLink}",
1453
- urlParameters: [
1454
- Parameters.nextPageLink
1455
- ],
1456
- queryParameters: [
1457
- Parameters.apiVersion,
1458
- Parameters.filter,
1459
- Parameters.top
1460
- ],
1461
- headerParameters: [
1462
- Parameters.acceptLanguage
1463
- ],
1918
+ httpMethod: "GET",
1464
1919
  responses: {
1465
1920
  200: {
1466
1921
  bodyMapper: Mappers.EventSubscriptionsListResult
1467
1922
  },
1468
- default: {
1469
- bodyMapper: Mappers.CloudError
1470
- }
1923
+ default: {}
1471
1924
  },
1925
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1926
+ urlParameters: [
1927
+ Parameters.$host,
1928
+ Parameters.subscriptionId,
1929
+ Parameters.resourceGroupName,
1930
+ Parameters.nextLink
1931
+ ],
1932
+ headerParameters: [Parameters.accept],
1472
1933
  serializer
1473
1934
  };
1474
-
1475
- const listGlobalByResourceGroupForTopicTypeNextOperationSpec: msRest.OperationSpec = {
1476
- httpMethod: "GET",
1477
- baseUrl: "https://management.azure.com",
1935
+ const listGlobalByResourceGroupForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
1478
1936
  path: "{nextLink}",
1479
- urlParameters: [
1480
- Parameters.nextPageLink
1481
- ],
1482
- queryParameters: [
1483
- Parameters.apiVersion,
1484
- Parameters.filter,
1485
- Parameters.top
1486
- ],
1487
- headerParameters: [
1488
- Parameters.acceptLanguage
1489
- ],
1937
+ httpMethod: "GET",
1490
1938
  responses: {
1491
1939
  200: {
1492
1940
  bodyMapper: Mappers.EventSubscriptionsListResult
1493
1941
  },
1494
- default: {
1495
- bodyMapper: Mappers.CloudError
1496
- }
1942
+ default: {}
1497
1943
  },
1944
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1945
+ urlParameters: [
1946
+ Parameters.$host,
1947
+ Parameters.subscriptionId,
1948
+ Parameters.resourceGroupName,
1949
+ Parameters.nextLink,
1950
+ Parameters.topicTypeName
1951
+ ],
1952
+ headerParameters: [Parameters.accept],
1498
1953
  serializer
1499
1954
  };
1500
-
1501
- const listRegionalBySubscriptionNextOperationSpec: msRest.OperationSpec = {
1502
- httpMethod: "GET",
1503
- baseUrl: "https://management.azure.com",
1955
+ const listRegionalBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1504
1956
  path: "{nextLink}",
1505
- urlParameters: [
1506
- Parameters.nextPageLink
1507
- ],
1508
- queryParameters: [
1509
- Parameters.apiVersion,
1510
- Parameters.filter,
1511
- Parameters.top
1512
- ],
1513
- headerParameters: [
1514
- Parameters.acceptLanguage
1515
- ],
1957
+ httpMethod: "GET",
1516
1958
  responses: {
1517
1959
  200: {
1518
1960
  bodyMapper: Mappers.EventSubscriptionsListResult
1519
1961
  },
1520
- default: {
1521
- bodyMapper: Mappers.CloudError
1522
- }
1962
+ default: {}
1523
1963
  },
1964
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1965
+ urlParameters: [
1966
+ Parameters.$host,
1967
+ Parameters.subscriptionId,
1968
+ Parameters.nextLink,
1969
+ Parameters.location
1970
+ ],
1971
+ headerParameters: [Parameters.accept],
1524
1972
  serializer
1525
1973
  };
1526
-
1527
- const listRegionalByResourceGroupNextOperationSpec: msRest.OperationSpec = {
1528
- httpMethod: "GET",
1529
- baseUrl: "https://management.azure.com",
1974
+ const listRegionalByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1530
1975
  path: "{nextLink}",
1531
- urlParameters: [
1532
- Parameters.nextPageLink
1533
- ],
1534
- queryParameters: [
1535
- Parameters.apiVersion,
1536
- Parameters.filter,
1537
- Parameters.top
1538
- ],
1539
- headerParameters: [
1540
- Parameters.acceptLanguage
1541
- ],
1976
+ httpMethod: "GET",
1542
1977
  responses: {
1543
1978
  200: {
1544
1979
  bodyMapper: Mappers.EventSubscriptionsListResult
1545
1980
  },
1546
- default: {
1547
- bodyMapper: Mappers.CloudError
1548
- }
1981
+ default: {}
1549
1982
  },
1983
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1984
+ urlParameters: [
1985
+ Parameters.$host,
1986
+ Parameters.subscriptionId,
1987
+ Parameters.resourceGroupName,
1988
+ Parameters.nextLink,
1989
+ Parameters.location
1990
+ ],
1991
+ headerParameters: [Parameters.accept],
1550
1992
  serializer
1551
1993
  };
1552
-
1553
- const listRegionalBySubscriptionForTopicTypeNextOperationSpec: msRest.OperationSpec = {
1554
- httpMethod: "GET",
1555
- baseUrl: "https://management.azure.com",
1994
+ const listRegionalBySubscriptionForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
1556
1995
  path: "{nextLink}",
1557
- urlParameters: [
1558
- Parameters.nextPageLink
1559
- ],
1560
- queryParameters: [
1561
- Parameters.apiVersion,
1562
- Parameters.filter,
1563
- Parameters.top
1564
- ],
1565
- headerParameters: [
1566
- Parameters.acceptLanguage
1567
- ],
1996
+ httpMethod: "GET",
1568
1997
  responses: {
1569
1998
  200: {
1570
1999
  bodyMapper: Mappers.EventSubscriptionsListResult
1571
2000
  },
1572
- default: {
1573
- bodyMapper: Mappers.CloudError
1574
- }
2001
+ default: {}
1575
2002
  },
2003
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2004
+ urlParameters: [
2005
+ Parameters.$host,
2006
+ Parameters.subscriptionId,
2007
+ Parameters.nextLink,
2008
+ Parameters.topicTypeName,
2009
+ Parameters.location
2010
+ ],
2011
+ headerParameters: [Parameters.accept],
1576
2012
  serializer
1577
2013
  };
1578
-
1579
- const listRegionalByResourceGroupForTopicTypeNextOperationSpec: msRest.OperationSpec = {
1580
- httpMethod: "GET",
1581
- baseUrl: "https://management.azure.com",
2014
+ const listRegionalByResourceGroupForTopicTypeNextOperationSpec: coreClient.OperationSpec = {
1582
2015
  path: "{nextLink}",
1583
- urlParameters: [
1584
- Parameters.nextPageLink
1585
- ],
1586
- queryParameters: [
1587
- Parameters.apiVersion,
1588
- Parameters.filter,
1589
- Parameters.top
1590
- ],
1591
- headerParameters: [
1592
- Parameters.acceptLanguage
1593
- ],
2016
+ httpMethod: "GET",
1594
2017
  responses: {
1595
2018
  200: {
1596
2019
  bodyMapper: Mappers.EventSubscriptionsListResult
1597
2020
  },
1598
- default: {
1599
- bodyMapper: Mappers.CloudError
1600
- }
2021
+ default: {}
1601
2022
  },
2023
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2024
+ urlParameters: [
2025
+ Parameters.$host,
2026
+ Parameters.subscriptionId,
2027
+ Parameters.resourceGroupName,
2028
+ Parameters.nextLink,
2029
+ Parameters.topicTypeName,
2030
+ Parameters.location
2031
+ ],
2032
+ headerParameters: [Parameters.accept],
1602
2033
  serializer
1603
2034
  };
1604
-
1605
- const listByResourceNextOperationSpec: msRest.OperationSpec = {
1606
- httpMethod: "GET",
1607
- baseUrl: "https://management.azure.com",
2035
+ const listByResourceNextOperationSpec: coreClient.OperationSpec = {
1608
2036
  path: "{nextLink}",
1609
- urlParameters: [
1610
- Parameters.nextPageLink
1611
- ],
1612
- queryParameters: [
1613
- Parameters.apiVersion,
1614
- Parameters.filter,
1615
- Parameters.top
1616
- ],
1617
- headerParameters: [
1618
- Parameters.acceptLanguage
1619
- ],
2037
+ httpMethod: "GET",
1620
2038
  responses: {
1621
2039
  200: {
1622
2040
  bodyMapper: Mappers.EventSubscriptionsListResult
1623
2041
  },
1624
- default: {
1625
- bodyMapper: Mappers.CloudError
1626
- }
2042
+ default: {}
1627
2043
  },
2044
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2045
+ urlParameters: [
2046
+ Parameters.$host,
2047
+ Parameters.subscriptionId,
2048
+ Parameters.resourceGroupName,
2049
+ Parameters.nextLink,
2050
+ Parameters.providerNamespace,
2051
+ Parameters.resourceTypeName,
2052
+ Parameters.resourceName
2053
+ ],
2054
+ headerParameters: [Parameters.accept],
1628
2055
  serializer
1629
2056
  };
1630
-
1631
- const listByDomainTopicNextOperationSpec: msRest.OperationSpec = {
1632
- httpMethod: "GET",
1633
- baseUrl: "https://management.azure.com",
2057
+ const listByDomainTopicNextOperationSpec: coreClient.OperationSpec = {
1634
2058
  path: "{nextLink}",
1635
- urlParameters: [
1636
- Parameters.nextPageLink
1637
- ],
1638
- queryParameters: [
1639
- Parameters.apiVersion,
1640
- Parameters.filter,
1641
- Parameters.top
1642
- ],
1643
- headerParameters: [
1644
- Parameters.acceptLanguage
1645
- ],
2059
+ httpMethod: "GET",
1646
2060
  responses: {
1647
2061
  200: {
1648
2062
  bodyMapper: Mappers.EventSubscriptionsListResult
1649
2063
  },
1650
- default: {
1651
- bodyMapper: Mappers.CloudError
1652
- }
2064
+ default: {}
1653
2065
  },
2066
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2067
+ urlParameters: [
2068
+ Parameters.$host,
2069
+ Parameters.subscriptionId,
2070
+ Parameters.resourceGroupName,
2071
+ Parameters.domainName,
2072
+ Parameters.nextLink,
2073
+ Parameters.topicName
2074
+ ],
2075
+ headerParameters: [Parameters.accept],
1654
2076
  serializer
1655
2077
  };