@azure/arm-eventgrid 30.0.0-alpha.20210929.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +94 -0
  4. package/dist/index.js +10620 -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 +31 -0
  9. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/eventGridManagementClient.js +38 -0
  11. package/dist-esm/src/eventGridManagementClient.js.map +1 -0
  12. package/dist-esm/src/eventGridManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/eventGridManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/eventGridManagementClientContext.js +50 -0
  15. package/dist-esm/src/eventGridManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +2765 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +289 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +139 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/dist-esm/src/models/mappers.js +2979 -0
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +53 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +415 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/domainTopics.d.ts +79 -0
  37. package/dist-esm/src/operations/domainTopics.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domainTopics.js +310 -0
  39. package/dist-esm/src/operations/domainTopics.js.map +1 -0
  40. package/dist-esm/src/operations/domains.d.ts +122 -0
  41. package/dist-esm/src/operations/domains.d.ts.map +1 -0
  42. package/dist-esm/src/operations/domains.js +522 -0
  43. package/dist-esm/src/operations/domains.js.map +1 -0
  44. package/dist-esm/src/operations/eventChannels.d.ts +72 -0
  45. package/dist-esm/src/operations/eventChannels.d.ts.map +1 -0
  46. package/dist-esm/src/operations/eventChannels.js +269 -0
  47. package/dist-esm/src/operations/eventChannels.js.map +1 -0
  48. package/dist-esm/src/operations/eventSubscriptions.d.ts +404 -0
  49. package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -0
  50. package/dist-esm/src/operations/eventSubscriptions.js +1504 -0
  51. package/dist-esm/src/operations/eventSubscriptions.js.map +1 -0
  52. package/dist-esm/src/operations/extensionTopics.d.ts +24 -0
  53. package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -0
  54. package/dist-esm/src/operations/extensionTopics.js +50 -0
  55. package/dist-esm/src/operations/extensionTopics.js.map +1 -0
  56. package/dist-esm/src/operations/index.d.ts +17 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +24 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +26 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +88 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/partnerNamespaces.d.ts +122 -0
  65. package/dist-esm/src/operations/partnerNamespaces.d.ts.map +1 -0
  66. package/dist-esm/src/operations/partnerNamespaces.js +537 -0
  67. package/dist-esm/src/operations/partnerNamespaces.js.map +1 -0
  68. package/dist-esm/src/operations/partnerRegistrations.d.ts +83 -0
  69. package/dist-esm/src/operations/partnerRegistrations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/partnerRegistrations.js +349 -0
  71. package/dist-esm/src/operations/partnerRegistrations.js.map +1 -0
  72. package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts +128 -0
  73. package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts.map +1 -0
  74. package/dist-esm/src/operations/partnerTopicEventSubscriptions.js +483 -0
  75. package/dist-esm/src/operations/partnerTopicEventSubscriptions.js.map +1 -0
  76. package/dist-esm/src/operations/partnerTopics.d.ts +97 -0
  77. package/dist-esm/src/operations/partnerTopics.d.ts.map +1 -0
  78. package/dist-esm/src/operations/partnerTopics.js +408 -0
  79. package/dist-esm/src/operations/partnerTopics.js.map +1 -0
  80. package/dist-esm/src/operations/privateEndpointConnections.d.ts +105 -0
  81. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  82. package/dist-esm/src/operations/privateEndpointConnections.js +362 -0
  83. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  84. package/dist-esm/src/operations/privateLinkResources.d.ts +58 -0
  85. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  86. package/dist-esm/src/operations/privateLinkResources.js +184 -0
  87. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  88. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +128 -0
  89. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -0
  90. package/dist-esm/src/operations/systemTopicEventSubscriptions.js +483 -0
  91. package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -0
  92. package/dist-esm/src/operations/systemTopics.d.ts +107 -0
  93. package/dist-esm/src/operations/systemTopics.d.ts.map +1 -0
  94. package/dist-esm/src/operations/systemTopics.js +482 -0
  95. package/dist-esm/src/operations/systemTopics.js.map +1 -0
  96. package/dist-esm/src/operations/topicTypes.d.ts +46 -0
  97. package/dist-esm/src/operations/topicTypes.d.ts.map +1 -0
  98. package/dist-esm/src/operations/topicTypes.js +175 -0
  99. package/dist-esm/src/operations/topicTypes.js.map +1 -0
  100. package/dist-esm/src/operations/topics.d.ts +150 -0
  101. package/dist-esm/src/operations/topics.d.ts.map +1 -0
  102. package/dist-esm/src/operations/topics.js +656 -0
  103. package/dist-esm/src/operations/topics.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts +54 -0
  105. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/domainTopics.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/domainTopics.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/domains.d.ts +86 -0
  109. package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/domains.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/domains.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/eventChannels.d.ts +47 -0
  113. package/dist-esm/src/operationsInterfaces/eventChannels.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/eventChannels.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/eventChannels.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts +217 -0
  117. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts +16 -0
  121. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/extensionTopics.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/extensionTopics.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/index.js +24 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  129. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts +86 -0
  133. package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/partnerNamespaces.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/partnerNamespaces.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts +47 -0
  137. package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/partnerRegistrations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/partnerRegistrations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts +103 -0
  141. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts +61 -0
  145. package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/partnerTopics.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/partnerTopics.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +74 -0
  149. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +27 -0
  153. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts +103 -0
  157. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts +71 -0
  161. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/systemTopics.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/systemTopics.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts +23 -0
  165. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/topicTypes.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/topicTypes.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/topics.d.ts +103 -0
  169. package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/topics.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
  172. package/dist-esm/test/eventgrid_examples.d.ts +2 -0
  173. package/dist-esm/test/eventgrid_examples.d.ts.map +1 -0
  174. package/dist-esm/test/eventgrid_examples.js +163 -0
  175. package/dist-esm/test/eventgrid_examples.js.map +1 -0
  176. package/package.json +102 -0
  177. package/review/arm-eventgrid.api.md +2518 -0
  178. package/rollup.config.js +188 -0
  179. package/src/eventGridManagementClient.ts +101 -0
  180. package/src/eventGridManagementClientContext.ts +71 -0
  181. package/src/index.ts +13 -0
  182. package/src/lroImpl.ts +34 -0
  183. package/src/models/index.ts +3297 -0
  184. package/src/models/mappers.ts +3334 -0
  185. package/src/models/parameters.ts +490 -0
  186. package/src/operations/domainTopics.ts +452 -0
  187. package/src/operations/domains.ts +713 -0
  188. package/src/operations/eventChannels.ts +382 -0
  189. package/src/operations/eventSubscriptions.ts +2077 -0
  190. package/src/operations/extensionTopics.ts +67 -0
  191. package/src/operations/index.ts +24 -0
  192. package/src/operations/operations.ts +96 -0
  193. package/src/operations/partnerNamespaces.ts +729 -0
  194. package/src/operations/partnerRegistrations.ts +440 -0
  195. package/src/operations/partnerTopicEventSubscriptions.ts +699 -0
  196. package/src/operations/partnerTopics.ts +532 -0
  197. package/src/operations/privateEndpointConnections.ts +529 -0
  198. package/src/operations/privateLinkResources.ts +259 -0
  199. package/src/operations/systemTopicEventSubscriptions.ts +699 -0
  200. package/src/operations/systemTopics.ts +656 -0
  201. package/src/operations/topicTypes.ts +202 -0
  202. package/src/operations/topics.ts +921 -0
  203. package/src/operationsInterfaces/domainTopics.ts +105 -0
  204. package/src/operationsInterfaces/domains.ts +162 -0
  205. package/src/operationsInterfaces/eventChannels.ts +89 -0
  206. package/src/operationsInterfaces/eventSubscriptions.ts +339 -0
  207. package/src/operationsInterfaces/extensionTopics.ts +30 -0
  208. package/src/operationsInterfaces/index.ts +24 -0
  209. package/src/operationsInterfaces/operations.ts +22 -0
  210. package/src/operationsInterfaces/partnerNamespaces.ts +162 -0
  211. package/src/operationsInterfaces/partnerRegistrations.ts +91 -0
  212. package/src/operationsInterfaces/partnerTopicEventSubscriptions.ts +190 -0
  213. package/src/operationsInterfaces/partnerTopics.ts +114 -0
  214. package/src/operationsInterfaces/privateEndpointConnections.ts +137 -0
  215. package/src/operationsInterfaces/privateLinkResources.ts +52 -0
  216. package/src/operationsInterfaces/systemTopicEventSubscriptions.ts +190 -0
  217. package/src/operationsInterfaces/systemTopics.ts +139 -0
  218. package/src/operationsInterfaces/topicTypes.ts +47 -0
  219. package/src/operationsInterfaces/topics.ts +197 -0
  220. package/tsconfig.json +19 -0
  221. package/types/arm-eventgrid.d.ts +4299 -0
  222. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,1504 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing EventSubscriptions operations. */
16
+ export class EventSubscriptionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class EventSubscriptions class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List all aggregated global event subscriptions under a specific Azure subscription.
26
+ * @param options The options parameters.
27
+ */
28
+ listGlobalBySubscription(options) {
29
+ const iter = this.listGlobalBySubscriptionPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listGlobalBySubscriptionPagingPage(options);
39
+ }
40
+ };
41
+ }
42
+ listGlobalBySubscriptionPagingPage(options) {
43
+ return __asyncGenerator(this, arguments, function* listGlobalBySubscriptionPagingPage_1() {
44
+ let result = yield __await(this._listGlobalBySubscription(options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listGlobalBySubscriptionNext(continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listGlobalBySubscriptionPagingAll(options) {
55
+ return __asyncGenerator(this, arguments, function* listGlobalBySubscriptionPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listGlobalBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * List all global event subscriptions under an Azure subscription for a topic type.
74
+ * @param topicTypeName Name of the topic type.
75
+ * @param options The options parameters.
76
+ */
77
+ listGlobalBySubscriptionForTopicType(topicTypeName, options) {
78
+ const iter = this.listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options);
88
+ }
89
+ };
90
+ }
91
+ listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options) {
92
+ return __asyncGenerator(this, arguments, function* listGlobalBySubscriptionForTopicTypePagingPage_1() {
93
+ let result = yield __await(this._listGlobalBySubscriptionForTopicType(topicTypeName, options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listGlobalBySubscriptionForTopicTypeNext(topicTypeName, continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listGlobalBySubscriptionForTopicTypePagingAll(topicTypeName, options) {
104
+ return __asyncGenerator(this, arguments, function* listGlobalBySubscriptionForTopicTypePagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listGlobalBySubscriptionForTopicTypePagingPage(topicTypeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * List all global event subscriptions under a specific Azure subscription and resource group.
123
+ * @param resourceGroupName The name of the resource group within the user's subscription.
124
+ * @param options The options parameters.
125
+ */
126
+ listGlobalByResourceGroup(resourceGroupName, options) {
127
+ const iter = this.listGlobalByResourceGroupPagingAll(resourceGroupName, options);
128
+ return {
129
+ next() {
130
+ return iter.next();
131
+ },
132
+ [Symbol.asyncIterator]() {
133
+ return this;
134
+ },
135
+ byPage: () => {
136
+ return this.listGlobalByResourceGroupPagingPage(resourceGroupName, options);
137
+ }
138
+ };
139
+ }
140
+ listGlobalByResourceGroupPagingPage(resourceGroupName, options) {
141
+ return __asyncGenerator(this, arguments, function* listGlobalByResourceGroupPagingPage_1() {
142
+ let result = yield __await(this._listGlobalByResourceGroup(resourceGroupName, options));
143
+ yield yield __await(result.value || []);
144
+ let continuationToken = result.nextLink;
145
+ while (continuationToken) {
146
+ result = yield __await(this._listGlobalByResourceGroupNext(resourceGroupName, continuationToken, options));
147
+ continuationToken = result.nextLink;
148
+ yield yield __await(result.value || []);
149
+ }
150
+ });
151
+ }
152
+ listGlobalByResourceGroupPagingAll(resourceGroupName, options) {
153
+ return __asyncGenerator(this, arguments, function* listGlobalByResourceGroupPagingAll_1() {
154
+ var e_3, _a;
155
+ try {
156
+ for (var _b = __asyncValues(this.listGlobalByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
157
+ const page = _c.value;
158
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
159
+ }
160
+ }
161
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
162
+ finally {
163
+ try {
164
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
165
+ }
166
+ finally { if (e_3) throw e_3.error; }
167
+ }
168
+ });
169
+ }
170
+ /**
171
+ * List all global event subscriptions under a resource group for a specific topic type.
172
+ * @param resourceGroupName The name of the resource group within the user's subscription.
173
+ * @param topicTypeName Name of the topic type.
174
+ * @param options The options parameters.
175
+ */
176
+ listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options) {
177
+ const iter = this.listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options);
178
+ return {
179
+ next() {
180
+ return iter.next();
181
+ },
182
+ [Symbol.asyncIterator]() {
183
+ return this;
184
+ },
185
+ byPage: () => {
186
+ return this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options);
187
+ }
188
+ };
189
+ }
190
+ listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options) {
191
+ return __asyncGenerator(this, arguments, function* listGlobalByResourceGroupForTopicTypePagingPage_1() {
192
+ let result = yield __await(this._listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options));
193
+ yield yield __await(result.value || []);
194
+ let continuationToken = result.nextLink;
195
+ while (continuationToken) {
196
+ result = yield __await(this._listGlobalByResourceGroupForTopicTypeNext(resourceGroupName, topicTypeName, continuationToken, options));
197
+ continuationToken = result.nextLink;
198
+ yield yield __await(result.value || []);
199
+ }
200
+ });
201
+ }
202
+ listGlobalByResourceGroupForTopicTypePagingAll(resourceGroupName, topicTypeName, options) {
203
+ return __asyncGenerator(this, arguments, function* listGlobalByResourceGroupForTopicTypePagingAll_1() {
204
+ var e_4, _a;
205
+ try {
206
+ for (var _b = __asyncValues(this.listGlobalByResourceGroupForTopicTypePagingPage(resourceGroupName, topicTypeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
207
+ const page = _c.value;
208
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
209
+ }
210
+ }
211
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
212
+ finally {
213
+ try {
214
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
215
+ }
216
+ finally { if (e_4) throw e_4.error; }
217
+ }
218
+ });
219
+ }
220
+ /**
221
+ * List all event subscriptions from the given location under a specific Azure subscription.
222
+ * @param location Name of the location.
223
+ * @param options The options parameters.
224
+ */
225
+ listRegionalBySubscription(location, options) {
226
+ const iter = this.listRegionalBySubscriptionPagingAll(location, options);
227
+ return {
228
+ next() {
229
+ return iter.next();
230
+ },
231
+ [Symbol.asyncIterator]() {
232
+ return this;
233
+ },
234
+ byPage: () => {
235
+ return this.listRegionalBySubscriptionPagingPage(location, options);
236
+ }
237
+ };
238
+ }
239
+ listRegionalBySubscriptionPagingPage(location, options) {
240
+ return __asyncGenerator(this, arguments, function* listRegionalBySubscriptionPagingPage_1() {
241
+ let result = yield __await(this._listRegionalBySubscription(location, options));
242
+ yield yield __await(result.value || []);
243
+ let continuationToken = result.nextLink;
244
+ while (continuationToken) {
245
+ result = yield __await(this._listRegionalBySubscriptionNext(location, continuationToken, options));
246
+ continuationToken = result.nextLink;
247
+ yield yield __await(result.value || []);
248
+ }
249
+ });
250
+ }
251
+ listRegionalBySubscriptionPagingAll(location, options) {
252
+ return __asyncGenerator(this, arguments, function* listRegionalBySubscriptionPagingAll_1() {
253
+ var e_5, _a;
254
+ try {
255
+ for (var _b = __asyncValues(this.listRegionalBySubscriptionPagingPage(location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
256
+ const page = _c.value;
257
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
258
+ }
259
+ }
260
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
261
+ finally {
262
+ try {
263
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
264
+ }
265
+ finally { if (e_5) throw e_5.error; }
266
+ }
267
+ });
268
+ }
269
+ /**
270
+ * List all event subscriptions from the given location under a specific Azure subscription and
271
+ * resource group.
272
+ * @param resourceGroupName The name of the resource group within the user's subscription.
273
+ * @param location Name of the location.
274
+ * @param options The options parameters.
275
+ */
276
+ listRegionalByResourceGroup(resourceGroupName, location, options) {
277
+ const iter = this.listRegionalByResourceGroupPagingAll(resourceGroupName, location, options);
278
+ return {
279
+ next() {
280
+ return iter.next();
281
+ },
282
+ [Symbol.asyncIterator]() {
283
+ return this;
284
+ },
285
+ byPage: () => {
286
+ return this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options);
287
+ }
288
+ };
289
+ }
290
+ listRegionalByResourceGroupPagingPage(resourceGroupName, location, options) {
291
+ return __asyncGenerator(this, arguments, function* listRegionalByResourceGroupPagingPage_1() {
292
+ let result = yield __await(this._listRegionalByResourceGroup(resourceGroupName, location, options));
293
+ yield yield __await(result.value || []);
294
+ let continuationToken = result.nextLink;
295
+ while (continuationToken) {
296
+ result = yield __await(this._listRegionalByResourceGroupNext(resourceGroupName, location, continuationToken, options));
297
+ continuationToken = result.nextLink;
298
+ yield yield __await(result.value || []);
299
+ }
300
+ });
301
+ }
302
+ listRegionalByResourceGroupPagingAll(resourceGroupName, location, options) {
303
+ return __asyncGenerator(this, arguments, function* listRegionalByResourceGroupPagingAll_1() {
304
+ var e_6, _a;
305
+ try {
306
+ for (var _b = __asyncValues(this.listRegionalByResourceGroupPagingPage(resourceGroupName, location, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
307
+ const page = _c.value;
308
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
309
+ }
310
+ }
311
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
312
+ finally {
313
+ try {
314
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
315
+ }
316
+ finally { if (e_6) throw e_6.error; }
317
+ }
318
+ });
319
+ }
320
+ /**
321
+ * List all event subscriptions from the given location under a specific Azure subscription and topic
322
+ * type.
323
+ * @param location Name of the location.
324
+ * @param topicTypeName Name of the topic type.
325
+ * @param options The options parameters.
326
+ */
327
+ listRegionalBySubscriptionForTopicType(location, topicTypeName, options) {
328
+ const iter = this.listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options);
329
+ return {
330
+ next() {
331
+ return iter.next();
332
+ },
333
+ [Symbol.asyncIterator]() {
334
+ return this;
335
+ },
336
+ byPage: () => {
337
+ return this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options);
338
+ }
339
+ };
340
+ }
341
+ listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options) {
342
+ return __asyncGenerator(this, arguments, function* listRegionalBySubscriptionForTopicTypePagingPage_1() {
343
+ let result = yield __await(this._listRegionalBySubscriptionForTopicType(location, topicTypeName, options));
344
+ yield yield __await(result.value || []);
345
+ let continuationToken = result.nextLink;
346
+ while (continuationToken) {
347
+ result = yield __await(this._listRegionalBySubscriptionForTopicTypeNext(location, topicTypeName, continuationToken, options));
348
+ continuationToken = result.nextLink;
349
+ yield yield __await(result.value || []);
350
+ }
351
+ });
352
+ }
353
+ listRegionalBySubscriptionForTopicTypePagingAll(location, topicTypeName, options) {
354
+ return __asyncGenerator(this, arguments, function* listRegionalBySubscriptionForTopicTypePagingAll_1() {
355
+ var e_7, _a;
356
+ try {
357
+ for (var _b = __asyncValues(this.listRegionalBySubscriptionForTopicTypePagingPage(location, topicTypeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
358
+ const page = _c.value;
359
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
360
+ }
361
+ }
362
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
363
+ finally {
364
+ try {
365
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
366
+ }
367
+ finally { if (e_7) throw e_7.error; }
368
+ }
369
+ });
370
+ }
371
+ /**
372
+ * List all event subscriptions from the given location under a specific Azure subscription and
373
+ * resource group and topic type.
374
+ * @param resourceGroupName The name of the resource group within the user's subscription.
375
+ * @param location Name of the location.
376
+ * @param topicTypeName Name of the topic type.
377
+ * @param options The options parameters.
378
+ */
379
+ listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options) {
380
+ const iter = this.listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options);
381
+ return {
382
+ next() {
383
+ return iter.next();
384
+ },
385
+ [Symbol.asyncIterator]() {
386
+ return this;
387
+ },
388
+ byPage: () => {
389
+ return this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options);
390
+ }
391
+ };
392
+ }
393
+ listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options) {
394
+ return __asyncGenerator(this, arguments, function* listRegionalByResourceGroupForTopicTypePagingPage_1() {
395
+ let result = yield __await(this._listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options));
396
+ yield yield __await(result.value || []);
397
+ let continuationToken = result.nextLink;
398
+ while (continuationToken) {
399
+ result = yield __await(this._listRegionalByResourceGroupForTopicTypeNext(resourceGroupName, location, topicTypeName, continuationToken, options));
400
+ continuationToken = result.nextLink;
401
+ yield yield __await(result.value || []);
402
+ }
403
+ });
404
+ }
405
+ listRegionalByResourceGroupForTopicTypePagingAll(resourceGroupName, location, topicTypeName, options) {
406
+ return __asyncGenerator(this, arguments, function* listRegionalByResourceGroupForTopicTypePagingAll_1() {
407
+ var e_8, _a;
408
+ try {
409
+ for (var _b = __asyncValues(this.listRegionalByResourceGroupForTopicTypePagingPage(resourceGroupName, location, topicTypeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
410
+ const page = _c.value;
411
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
412
+ }
413
+ }
414
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
415
+ finally {
416
+ try {
417
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
418
+ }
419
+ finally { if (e_8) throw e_8.error; }
420
+ }
421
+ });
422
+ }
423
+ /**
424
+ * List all event subscriptions that have been created for a specific topic.
425
+ * @param resourceGroupName The name of the resource group within the user's subscription.
426
+ * @param providerNamespace Namespace of the provider of the topic.
427
+ * @param resourceTypeName Name of the resource type.
428
+ * @param resourceName Name of the resource.
429
+ * @param options The options parameters.
430
+ */
431
+ listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
432
+ const iter = this.listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options);
433
+ return {
434
+ next() {
435
+ return iter.next();
436
+ },
437
+ [Symbol.asyncIterator]() {
438
+ return this;
439
+ },
440
+ byPage: () => {
441
+ return this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options);
442
+ }
443
+ };
444
+ }
445
+ listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
446
+ return __asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
447
+ let result = yield __await(this._listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options));
448
+ yield yield __await(result.value || []);
449
+ let continuationToken = result.nextLink;
450
+ while (continuationToken) {
451
+ result = yield __await(this._listByResourceNext(resourceGroupName, providerNamespace, resourceTypeName, resourceName, continuationToken, options));
452
+ continuationToken = result.nextLink;
453
+ yield yield __await(result.value || []);
454
+ }
455
+ });
456
+ }
457
+ listByResourcePagingAll(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
458
+ return __asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
459
+ var e_9, _a;
460
+ try {
461
+ for (var _b = __asyncValues(this.listByResourcePagingPage(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
462
+ const page = _c.value;
463
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
464
+ }
465
+ }
466
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
467
+ finally {
468
+ try {
469
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
470
+ }
471
+ finally { if (e_9) throw e_9.error; }
472
+ }
473
+ });
474
+ }
475
+ /**
476
+ * List all event subscriptions that have been created for a specific domain topic.
477
+ * @param resourceGroupName The name of the resource group within the user's subscription.
478
+ * @param domainName Name of the top level domain.
479
+ * @param topicName Name of the domain topic.
480
+ * @param options The options parameters.
481
+ */
482
+ listByDomainTopic(resourceGroupName, domainName, topicName, options) {
483
+ const iter = this.listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options);
484
+ return {
485
+ next() {
486
+ return iter.next();
487
+ },
488
+ [Symbol.asyncIterator]() {
489
+ return this;
490
+ },
491
+ byPage: () => {
492
+ return this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options);
493
+ }
494
+ };
495
+ }
496
+ listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options) {
497
+ return __asyncGenerator(this, arguments, function* listByDomainTopicPagingPage_1() {
498
+ let result = yield __await(this._listByDomainTopic(resourceGroupName, domainName, topicName, options));
499
+ yield yield __await(result.value || []);
500
+ let continuationToken = result.nextLink;
501
+ while (continuationToken) {
502
+ result = yield __await(this._listByDomainTopicNext(resourceGroupName, domainName, topicName, continuationToken, options));
503
+ continuationToken = result.nextLink;
504
+ yield yield __await(result.value || []);
505
+ }
506
+ });
507
+ }
508
+ listByDomainTopicPagingAll(resourceGroupName, domainName, topicName, options) {
509
+ return __asyncGenerator(this, arguments, function* listByDomainTopicPagingAll_1() {
510
+ var e_10, _a;
511
+ try {
512
+ for (var _b = __asyncValues(this.listByDomainTopicPagingPage(resourceGroupName, domainName, topicName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
513
+ const page = _c.value;
514
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
515
+ }
516
+ }
517
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
518
+ finally {
519
+ try {
520
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
521
+ }
522
+ finally { if (e_10) throw e_10.error; }
523
+ }
524
+ });
525
+ }
526
+ /**
527
+ * Get properties of an event subscription.
528
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
529
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
530
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
531
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
532
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
533
+ * for a resource, and
534
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
535
+ * for an EventGrid topic.
536
+ * @param eventSubscriptionName Name of the event subscription.
537
+ * @param options The options parameters.
538
+ */
539
+ get(scope, eventSubscriptionName, options) {
540
+ return this.client.sendOperationRequest({ scope, eventSubscriptionName, options }, getOperationSpec);
541
+ }
542
+ /**
543
+ * Asynchronously creates a new event subscription or updates an existing event subscription based on
544
+ * the specified scope.
545
+ * @param scope The identifier of the resource to which the event subscription needs to be created or
546
+ * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
547
+ * a resource provider namespace, or an EventGrid topic. For example, use
548
+ * '/subscriptions/{subscriptionId}/' for a subscription,
549
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
550
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
551
+ * for a resource, and
552
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
553
+ * for an EventGrid topic.
554
+ * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
555
+ * between 3 and 64 characters in length and should use alphanumeric letters only.
556
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
557
+ * information.
558
+ * @param options The options parameters.
559
+ */
560
+ beginCreateOrUpdate(scope, eventSubscriptionName, eventSubscriptionInfo, options) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
563
+ return this.client.sendOperationRequest(args, spec);
564
+ });
565
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
566
+ var _a;
567
+ let currentRawResponse = undefined;
568
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
569
+ const callback = (rawResponse, flatResponse) => {
570
+ currentRawResponse = rawResponse;
571
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
572
+ };
573
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
574
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
575
+ return {
576
+ flatResponse,
577
+ rawResponse: {
578
+ statusCode: currentRawResponse.status,
579
+ body: currentRawResponse.parsedBody,
580
+ headers: currentRawResponse.headers.toJSON()
581
+ }
582
+ };
583
+ });
584
+ const lro = new LroImpl(sendOperation, { scope, eventSubscriptionName, eventSubscriptionInfo, options }, createOrUpdateOperationSpec);
585
+ return new LroEngine(lro, {
586
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
587
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
588
+ });
589
+ });
590
+ }
591
+ /**
592
+ * Asynchronously creates a new event subscription or updates an existing event subscription based on
593
+ * the specified scope.
594
+ * @param scope The identifier of the resource to which the event subscription needs to be created or
595
+ * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to
596
+ * a resource provider namespace, or an EventGrid topic. For example, use
597
+ * '/subscriptions/{subscriptionId}/' for a subscription,
598
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
599
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
600
+ * for a resource, and
601
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
602
+ * for an EventGrid topic.
603
+ * @param eventSubscriptionName Name of the event subscription. Event subscription names must be
604
+ * between 3 and 64 characters in length and should use alphanumeric letters only.
605
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
606
+ * information.
607
+ * @param options The options parameters.
608
+ */
609
+ beginCreateOrUpdateAndWait(scope, eventSubscriptionName, eventSubscriptionInfo, options) {
610
+ return __awaiter(this, void 0, void 0, function* () {
611
+ const poller = yield this.beginCreateOrUpdate(scope, eventSubscriptionName, eventSubscriptionInfo, options);
612
+ return poller.pollUntilDone();
613
+ });
614
+ }
615
+ /**
616
+ * Delete an existing event subscription.
617
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
618
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
619
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
620
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
621
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
622
+ * for a resource, and
623
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
624
+ * for an EventGrid topic.
625
+ * @param eventSubscriptionName Name of the event subscription.
626
+ * @param options The options parameters.
627
+ */
628
+ beginDelete(scope, eventSubscriptionName, options) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
631
+ return this.client.sendOperationRequest(args, spec);
632
+ });
633
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
634
+ var _a;
635
+ let currentRawResponse = undefined;
636
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
637
+ const callback = (rawResponse, flatResponse) => {
638
+ currentRawResponse = rawResponse;
639
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
640
+ };
641
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
642
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
643
+ return {
644
+ flatResponse,
645
+ rawResponse: {
646
+ statusCode: currentRawResponse.status,
647
+ body: currentRawResponse.parsedBody,
648
+ headers: currentRawResponse.headers.toJSON()
649
+ }
650
+ };
651
+ });
652
+ const lro = new LroImpl(sendOperation, { scope, eventSubscriptionName, options }, deleteOperationSpec);
653
+ return new LroEngine(lro, {
654
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
655
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
656
+ });
657
+ });
658
+ }
659
+ /**
660
+ * Delete an existing event subscription.
661
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
662
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
663
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
664
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
665
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
666
+ * for a resource, and
667
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
668
+ * for an EventGrid topic.
669
+ * @param eventSubscriptionName Name of the event subscription.
670
+ * @param options The options parameters.
671
+ */
672
+ beginDeleteAndWait(scope, eventSubscriptionName, options) {
673
+ return __awaiter(this, void 0, void 0, function* () {
674
+ const poller = yield this.beginDelete(scope, eventSubscriptionName, options);
675
+ return poller.pollUntilDone();
676
+ });
677
+ }
678
+ /**
679
+ * Asynchronously updates an existing event subscription.
680
+ * @param scope The scope of existing event subscription. The scope can be a subscription, or a
681
+ * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
682
+ * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
683
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
684
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
685
+ * for a resource, and
686
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
687
+ * for an EventGrid topic.
688
+ * @param eventSubscriptionName Name of the event subscription to be updated.
689
+ * @param eventSubscriptionUpdateParameters Updated event subscription information.
690
+ * @param options The options parameters.
691
+ */
692
+ beginUpdate(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, options) {
693
+ return __awaiter(this, void 0, void 0, function* () {
694
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
695
+ return this.client.sendOperationRequest(args, spec);
696
+ });
697
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
698
+ var _a;
699
+ let currentRawResponse = undefined;
700
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
701
+ const callback = (rawResponse, flatResponse) => {
702
+ currentRawResponse = rawResponse;
703
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
704
+ };
705
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
706
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
707
+ return {
708
+ flatResponse,
709
+ rawResponse: {
710
+ statusCode: currentRawResponse.status,
711
+ body: currentRawResponse.parsedBody,
712
+ headers: currentRawResponse.headers.toJSON()
713
+ }
714
+ };
715
+ });
716
+ const lro = new LroImpl(sendOperation, {
717
+ scope,
718
+ eventSubscriptionName,
719
+ eventSubscriptionUpdateParameters,
720
+ options
721
+ }, updateOperationSpec);
722
+ return new LroEngine(lro, {
723
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
724
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
725
+ });
726
+ });
727
+ }
728
+ /**
729
+ * Asynchronously updates an existing event subscription.
730
+ * @param scope The scope of existing event subscription. The scope can be a subscription, or a
731
+ * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid
732
+ * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription,
733
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
734
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
735
+ * for a resource, and
736
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
737
+ * for an EventGrid topic.
738
+ * @param eventSubscriptionName Name of the event subscription to be updated.
739
+ * @param eventSubscriptionUpdateParameters Updated event subscription information.
740
+ * @param options The options parameters.
741
+ */
742
+ beginUpdateAndWait(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, options) {
743
+ return __awaiter(this, void 0, void 0, function* () {
744
+ const poller = yield this.beginUpdate(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, options);
745
+ return poller.pollUntilDone();
746
+ });
747
+ }
748
+ /**
749
+ * Get the full endpoint URL for an event subscription.
750
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
751
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
752
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
753
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
754
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
755
+ * for a resource, and
756
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
757
+ * for an EventGrid topic.
758
+ * @param eventSubscriptionName Name of the event subscription.
759
+ * @param options The options parameters.
760
+ */
761
+ getFullUrl(scope, eventSubscriptionName, options) {
762
+ return this.client.sendOperationRequest({ scope, eventSubscriptionName, options }, getFullUrlOperationSpec);
763
+ }
764
+ /**
765
+ * List all aggregated global event subscriptions under a specific Azure subscription.
766
+ * @param options The options parameters.
767
+ */
768
+ _listGlobalBySubscription(options) {
769
+ return this.client.sendOperationRequest({ options }, listGlobalBySubscriptionOperationSpec);
770
+ }
771
+ /**
772
+ * List all global event subscriptions under an Azure subscription for a topic type.
773
+ * @param topicTypeName Name of the topic type.
774
+ * @param options The options parameters.
775
+ */
776
+ _listGlobalBySubscriptionForTopicType(topicTypeName, options) {
777
+ return this.client.sendOperationRequest({ topicTypeName, options }, listGlobalBySubscriptionForTopicTypeOperationSpec);
778
+ }
779
+ /**
780
+ * List all global event subscriptions under a specific Azure subscription and resource group.
781
+ * @param resourceGroupName The name of the resource group within the user's subscription.
782
+ * @param options The options parameters.
783
+ */
784
+ _listGlobalByResourceGroup(resourceGroupName, options) {
785
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listGlobalByResourceGroupOperationSpec);
786
+ }
787
+ /**
788
+ * List all global event subscriptions under a resource group for a specific topic type.
789
+ * @param resourceGroupName The name of the resource group within the user's subscription.
790
+ * @param topicTypeName Name of the topic type.
791
+ * @param options The options parameters.
792
+ */
793
+ _listGlobalByResourceGroupForTopicType(resourceGroupName, topicTypeName, options) {
794
+ return this.client.sendOperationRequest({ resourceGroupName, topicTypeName, options }, listGlobalByResourceGroupForTopicTypeOperationSpec);
795
+ }
796
+ /**
797
+ * List all event subscriptions from the given location under a specific Azure subscription.
798
+ * @param location Name of the location.
799
+ * @param options The options parameters.
800
+ */
801
+ _listRegionalBySubscription(location, options) {
802
+ return this.client.sendOperationRequest({ location, options }, listRegionalBySubscriptionOperationSpec);
803
+ }
804
+ /**
805
+ * List all event subscriptions from the given location under a specific Azure subscription and
806
+ * resource group.
807
+ * @param resourceGroupName The name of the resource group within the user's subscription.
808
+ * @param location Name of the location.
809
+ * @param options The options parameters.
810
+ */
811
+ _listRegionalByResourceGroup(resourceGroupName, location, options) {
812
+ return this.client.sendOperationRequest({ resourceGroupName, location, options }, listRegionalByResourceGroupOperationSpec);
813
+ }
814
+ /**
815
+ * List all event subscriptions from the given location under a specific Azure subscription and topic
816
+ * type.
817
+ * @param location Name of the location.
818
+ * @param topicTypeName Name of the topic type.
819
+ * @param options The options parameters.
820
+ */
821
+ _listRegionalBySubscriptionForTopicType(location, topicTypeName, options) {
822
+ return this.client.sendOperationRequest({ location, topicTypeName, options }, listRegionalBySubscriptionForTopicTypeOperationSpec);
823
+ }
824
+ /**
825
+ * List all event subscriptions from the given location under a specific Azure subscription and
826
+ * resource group and topic type.
827
+ * @param resourceGroupName The name of the resource group within the user's subscription.
828
+ * @param location Name of the location.
829
+ * @param topicTypeName Name of the topic type.
830
+ * @param options The options parameters.
831
+ */
832
+ _listRegionalByResourceGroupForTopicType(resourceGroupName, location, topicTypeName, options) {
833
+ return this.client.sendOperationRequest({ resourceGroupName, location, topicTypeName, options }, listRegionalByResourceGroupForTopicTypeOperationSpec);
834
+ }
835
+ /**
836
+ * List all event subscriptions that have been created for a specific topic.
837
+ * @param resourceGroupName The name of the resource group within the user's subscription.
838
+ * @param providerNamespace Namespace of the provider of the topic.
839
+ * @param resourceTypeName Name of the resource type.
840
+ * @param resourceName Name of the resource.
841
+ * @param options The options parameters.
842
+ */
843
+ _listByResource(resourceGroupName, providerNamespace, resourceTypeName, resourceName, options) {
844
+ return this.client.sendOperationRequest({
845
+ resourceGroupName,
846
+ providerNamespace,
847
+ resourceTypeName,
848
+ resourceName,
849
+ options
850
+ }, listByResourceOperationSpec);
851
+ }
852
+ /**
853
+ * List all event subscriptions that have been created for a specific domain topic.
854
+ * @param resourceGroupName The name of the resource group within the user's subscription.
855
+ * @param domainName Name of the top level domain.
856
+ * @param topicName Name of the domain topic.
857
+ * @param options The options parameters.
858
+ */
859
+ _listByDomainTopic(resourceGroupName, domainName, topicName, options) {
860
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, topicName, options }, listByDomainTopicOperationSpec);
861
+ }
862
+ /**
863
+ * Get all delivery attributes for an event subscription.
864
+ * @param scope The scope of the event subscription. The scope can be a subscription, or a resource
865
+ * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic.
866
+ * For example, use '/subscriptions/{subscriptionId}/' for a subscription,
867
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
868
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
869
+ * for a resource, and
870
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
871
+ * for an EventGrid topic.
872
+ * @param eventSubscriptionName Name of the event subscription.
873
+ * @param options The options parameters.
874
+ */
875
+ getDeliveryAttributes(scope, eventSubscriptionName, options) {
876
+ return this.client.sendOperationRequest({ scope, eventSubscriptionName, options }, getDeliveryAttributesOperationSpec);
877
+ }
878
+ /**
879
+ * ListGlobalBySubscriptionNext
880
+ * @param nextLink The nextLink from the previous successful call to the ListGlobalBySubscription
881
+ * method.
882
+ * @param options The options parameters.
883
+ */
884
+ _listGlobalBySubscriptionNext(nextLink, options) {
885
+ return this.client.sendOperationRequest({ nextLink, options }, listGlobalBySubscriptionNextOperationSpec);
886
+ }
887
+ /**
888
+ * ListGlobalBySubscriptionForTopicTypeNext
889
+ * @param topicTypeName Name of the topic type.
890
+ * @param nextLink The nextLink from the previous successful call to the
891
+ * ListGlobalBySubscriptionForTopicType method.
892
+ * @param options The options parameters.
893
+ */
894
+ _listGlobalBySubscriptionForTopicTypeNext(topicTypeName, nextLink, options) {
895
+ return this.client.sendOperationRequest({ topicTypeName, nextLink, options }, listGlobalBySubscriptionForTopicTypeNextOperationSpec);
896
+ }
897
+ /**
898
+ * ListGlobalByResourceGroupNext
899
+ * @param resourceGroupName The name of the resource group within the user's subscription.
900
+ * @param nextLink The nextLink from the previous successful call to the ListGlobalByResourceGroup
901
+ * method.
902
+ * @param options The options parameters.
903
+ */
904
+ _listGlobalByResourceGroupNext(resourceGroupName, nextLink, options) {
905
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listGlobalByResourceGroupNextOperationSpec);
906
+ }
907
+ /**
908
+ * ListGlobalByResourceGroupForTopicTypeNext
909
+ * @param resourceGroupName The name of the resource group within the user's subscription.
910
+ * @param topicTypeName Name of the topic type.
911
+ * @param nextLink The nextLink from the previous successful call to the
912
+ * ListGlobalByResourceGroupForTopicType method.
913
+ * @param options The options parameters.
914
+ */
915
+ _listGlobalByResourceGroupForTopicTypeNext(resourceGroupName, topicTypeName, nextLink, options) {
916
+ return this.client.sendOperationRequest({ resourceGroupName, topicTypeName, nextLink, options }, listGlobalByResourceGroupForTopicTypeNextOperationSpec);
917
+ }
918
+ /**
919
+ * ListRegionalBySubscriptionNext
920
+ * @param location Name of the location.
921
+ * @param nextLink The nextLink from the previous successful call to the ListRegionalBySubscription
922
+ * method.
923
+ * @param options The options parameters.
924
+ */
925
+ _listRegionalBySubscriptionNext(location, nextLink, options) {
926
+ return this.client.sendOperationRequest({ location, nextLink, options }, listRegionalBySubscriptionNextOperationSpec);
927
+ }
928
+ /**
929
+ * ListRegionalByResourceGroupNext
930
+ * @param resourceGroupName The name of the resource group within the user's subscription.
931
+ * @param location Name of the location.
932
+ * @param nextLink The nextLink from the previous successful call to the ListRegionalByResourceGroup
933
+ * method.
934
+ * @param options The options parameters.
935
+ */
936
+ _listRegionalByResourceGroupNext(resourceGroupName, location, nextLink, options) {
937
+ return this.client.sendOperationRequest({ resourceGroupName, location, nextLink, options }, listRegionalByResourceGroupNextOperationSpec);
938
+ }
939
+ /**
940
+ * ListRegionalBySubscriptionForTopicTypeNext
941
+ * @param location Name of the location.
942
+ * @param topicTypeName Name of the topic type.
943
+ * @param nextLink The nextLink from the previous successful call to the
944
+ * ListRegionalBySubscriptionForTopicType method.
945
+ * @param options The options parameters.
946
+ */
947
+ _listRegionalBySubscriptionForTopicTypeNext(location, topicTypeName, nextLink, options) {
948
+ return this.client.sendOperationRequest({ location, topicTypeName, nextLink, options }, listRegionalBySubscriptionForTopicTypeNextOperationSpec);
949
+ }
950
+ /**
951
+ * ListRegionalByResourceGroupForTopicTypeNext
952
+ * @param resourceGroupName The name of the resource group within the user's subscription.
953
+ * @param location Name of the location.
954
+ * @param topicTypeName Name of the topic type.
955
+ * @param nextLink The nextLink from the previous successful call to the
956
+ * ListRegionalByResourceGroupForTopicType method.
957
+ * @param options The options parameters.
958
+ */
959
+ _listRegionalByResourceGroupForTopicTypeNext(resourceGroupName, location, topicTypeName, nextLink, options) {
960
+ return this.client.sendOperationRequest({ resourceGroupName, location, topicTypeName, nextLink, options }, listRegionalByResourceGroupForTopicTypeNextOperationSpec);
961
+ }
962
+ /**
963
+ * ListByResourceNext
964
+ * @param resourceGroupName The name of the resource group within the user's subscription.
965
+ * @param providerNamespace Namespace of the provider of the topic.
966
+ * @param resourceTypeName Name of the resource type.
967
+ * @param resourceName Name of the resource.
968
+ * @param nextLink The nextLink from the previous successful call to the ListByResource method.
969
+ * @param options The options parameters.
970
+ */
971
+ _listByResourceNext(resourceGroupName, providerNamespace, resourceTypeName, resourceName, nextLink, options) {
972
+ return this.client.sendOperationRequest({
973
+ resourceGroupName,
974
+ providerNamespace,
975
+ resourceTypeName,
976
+ resourceName,
977
+ nextLink,
978
+ options
979
+ }, listByResourceNextOperationSpec);
980
+ }
981
+ /**
982
+ * ListByDomainTopicNext
983
+ * @param resourceGroupName The name of the resource group within the user's subscription.
984
+ * @param domainName Name of the top level domain.
985
+ * @param topicName Name of the domain topic.
986
+ * @param nextLink The nextLink from the previous successful call to the ListByDomainTopic method.
987
+ * @param options The options parameters.
988
+ */
989
+ _listByDomainTopicNext(resourceGroupName, domainName, topicName, nextLink, options) {
990
+ return this.client.sendOperationRequest({ resourceGroupName, domainName, topicName, nextLink, options }, listByDomainTopicNextOperationSpec);
991
+ }
992
+ }
993
+ // Operation Specifications
994
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
995
+ const getOperationSpec = {
996
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
997
+ httpMethod: "GET",
998
+ responses: {
999
+ 200: {
1000
+ bodyMapper: Mappers.EventSubscription
1001
+ },
1002
+ default: {}
1003
+ },
1004
+ queryParameters: [Parameters.apiVersion],
1005
+ urlParameters: [
1006
+ Parameters.$host,
1007
+ Parameters.scope,
1008
+ Parameters.eventSubscriptionName
1009
+ ],
1010
+ headerParameters: [Parameters.accept],
1011
+ serializer
1012
+ };
1013
+ const createOrUpdateOperationSpec = {
1014
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1015
+ httpMethod: "PUT",
1016
+ responses: {
1017
+ 200: {
1018
+ bodyMapper: Mappers.EventSubscription
1019
+ },
1020
+ 201: {
1021
+ bodyMapper: Mappers.EventSubscription
1022
+ },
1023
+ 202: {
1024
+ bodyMapper: Mappers.EventSubscription
1025
+ },
1026
+ 204: {
1027
+ bodyMapper: Mappers.EventSubscription
1028
+ },
1029
+ default: {}
1030
+ },
1031
+ requestBody: Parameters.eventSubscriptionInfo,
1032
+ queryParameters: [Parameters.apiVersion],
1033
+ urlParameters: [
1034
+ Parameters.$host,
1035
+ Parameters.scope,
1036
+ Parameters.eventSubscriptionName
1037
+ ],
1038
+ headerParameters: [Parameters.accept, Parameters.contentType],
1039
+ mediaType: "json",
1040
+ serializer
1041
+ };
1042
+ const deleteOperationSpec = {
1043
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1044
+ httpMethod: "DELETE",
1045
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
1046
+ queryParameters: [Parameters.apiVersion],
1047
+ urlParameters: [
1048
+ Parameters.$host,
1049
+ Parameters.scope,
1050
+ Parameters.eventSubscriptionName
1051
+ ],
1052
+ serializer
1053
+ };
1054
+ const updateOperationSpec = {
1055
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
1056
+ httpMethod: "PATCH",
1057
+ responses: {
1058
+ 200: {
1059
+ bodyMapper: Mappers.EventSubscription
1060
+ },
1061
+ 201: {
1062
+ bodyMapper: Mappers.EventSubscription
1063
+ },
1064
+ 202: {
1065
+ bodyMapper: Mappers.EventSubscription
1066
+ },
1067
+ 204: {
1068
+ bodyMapper: Mappers.EventSubscription
1069
+ },
1070
+ default: {}
1071
+ },
1072
+ requestBody: Parameters.eventSubscriptionUpdateParameters,
1073
+ queryParameters: [Parameters.apiVersion],
1074
+ urlParameters: [
1075
+ Parameters.$host,
1076
+ Parameters.scope,
1077
+ Parameters.eventSubscriptionName
1078
+ ],
1079
+ headerParameters: [Parameters.accept, Parameters.contentType],
1080
+ mediaType: "json",
1081
+ serializer
1082
+ };
1083
+ const getFullUrlOperationSpec = {
1084
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl",
1085
+ httpMethod: "POST",
1086
+ responses: {
1087
+ 200: {
1088
+ bodyMapper: Mappers.EventSubscriptionFullUrl
1089
+ },
1090
+ default: {}
1091
+ },
1092
+ queryParameters: [Parameters.apiVersion],
1093
+ urlParameters: [
1094
+ Parameters.$host,
1095
+ Parameters.scope,
1096
+ Parameters.eventSubscriptionName
1097
+ ],
1098
+ headerParameters: [Parameters.accept],
1099
+ serializer
1100
+ };
1101
+ const listGlobalBySubscriptionOperationSpec = {
1102
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions",
1103
+ httpMethod: "GET",
1104
+ responses: {
1105
+ 200: {
1106
+ bodyMapper: Mappers.EventSubscriptionsListResult
1107
+ },
1108
+ default: {}
1109
+ },
1110
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1111
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1112
+ headerParameters: [Parameters.accept],
1113
+ serializer
1114
+ };
1115
+ const listGlobalBySubscriptionForTopicTypeOperationSpec = {
1116
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1117
+ httpMethod: "GET",
1118
+ responses: {
1119
+ 200: {
1120
+ bodyMapper: Mappers.EventSubscriptionsListResult
1121
+ },
1122
+ default: {}
1123
+ },
1124
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1125
+ urlParameters: [
1126
+ Parameters.$host,
1127
+ Parameters.subscriptionId,
1128
+ Parameters.topicTypeName
1129
+ ],
1130
+ headerParameters: [Parameters.accept],
1131
+ serializer
1132
+ };
1133
+ const listGlobalByResourceGroupOperationSpec = {
1134
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions",
1135
+ httpMethod: "GET",
1136
+ responses: {
1137
+ 200: {
1138
+ bodyMapper: Mappers.EventSubscriptionsListResult
1139
+ },
1140
+ default: {}
1141
+ },
1142
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1143
+ urlParameters: [
1144
+ Parameters.$host,
1145
+ Parameters.subscriptionId,
1146
+ Parameters.resourceGroupName
1147
+ ],
1148
+ headerParameters: [Parameters.accept],
1149
+ serializer
1150
+ };
1151
+ const listGlobalByResourceGroupForTopicTypeOperationSpec = {
1152
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions",
1153
+ httpMethod: "GET",
1154
+ responses: {
1155
+ 200: {
1156
+ bodyMapper: Mappers.EventSubscriptionsListResult
1157
+ },
1158
+ default: {}
1159
+ },
1160
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1161
+ urlParameters: [
1162
+ Parameters.$host,
1163
+ Parameters.subscriptionId,
1164
+ Parameters.resourceGroupName,
1165
+ Parameters.topicTypeName
1166
+ ],
1167
+ headerParameters: [Parameters.accept],
1168
+ serializer
1169
+ };
1170
+ const listRegionalBySubscriptionOperationSpec = {
1171
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1172
+ httpMethod: "GET",
1173
+ responses: {
1174
+ 200: {
1175
+ bodyMapper: Mappers.EventSubscriptionsListResult
1176
+ },
1177
+ default: {}
1178
+ },
1179
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1180
+ urlParameters: [
1181
+ Parameters.$host,
1182
+ Parameters.subscriptionId,
1183
+ Parameters.location
1184
+ ],
1185
+ headerParameters: [Parameters.accept],
1186
+ serializer
1187
+ };
1188
+ const listRegionalByResourceGroupOperationSpec = {
1189
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions",
1190
+ httpMethod: "GET",
1191
+ responses: {
1192
+ 200: {
1193
+ bodyMapper: Mappers.EventSubscriptionsListResult
1194
+ },
1195
+ default: {}
1196
+ },
1197
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1198
+ urlParameters: [
1199
+ Parameters.$host,
1200
+ Parameters.subscriptionId,
1201
+ Parameters.resourceGroupName,
1202
+ Parameters.location
1203
+ ],
1204
+ headerParameters: [Parameters.accept],
1205
+ serializer
1206
+ };
1207
+ const listRegionalBySubscriptionForTopicTypeOperationSpec = {
1208
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1209
+ httpMethod: "GET",
1210
+ responses: {
1211
+ 200: {
1212
+ bodyMapper: Mappers.EventSubscriptionsListResult
1213
+ },
1214
+ default: {}
1215
+ },
1216
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1217
+ urlParameters: [
1218
+ Parameters.$host,
1219
+ Parameters.subscriptionId,
1220
+ Parameters.topicTypeName,
1221
+ Parameters.location
1222
+ ],
1223
+ headerParameters: [Parameters.accept],
1224
+ serializer
1225
+ };
1226
+ const listRegionalByResourceGroupForTopicTypeOperationSpec = {
1227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions",
1228
+ httpMethod: "GET",
1229
+ responses: {
1230
+ 200: {
1231
+ bodyMapper: Mappers.EventSubscriptionsListResult
1232
+ },
1233
+ default: {}
1234
+ },
1235
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1236
+ urlParameters: [
1237
+ Parameters.$host,
1238
+ Parameters.subscriptionId,
1239
+ Parameters.resourceGroupName,
1240
+ Parameters.topicTypeName,
1241
+ Parameters.location
1242
+ ],
1243
+ headerParameters: [Parameters.accept],
1244
+ serializer
1245
+ };
1246
+ const listByResourceOperationSpec = {
1247
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions",
1248
+ httpMethod: "GET",
1249
+ responses: {
1250
+ 200: {
1251
+ bodyMapper: Mappers.EventSubscriptionsListResult
1252
+ },
1253
+ default: {}
1254
+ },
1255
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1256
+ urlParameters: [
1257
+ Parameters.$host,
1258
+ Parameters.subscriptionId,
1259
+ Parameters.resourceGroupName,
1260
+ Parameters.providerNamespace,
1261
+ Parameters.resourceTypeName,
1262
+ Parameters.resourceName
1263
+ ],
1264
+ headerParameters: [Parameters.accept],
1265
+ serializer
1266
+ };
1267
+ const listByDomainTopicOperationSpec = {
1268
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions",
1269
+ httpMethod: "GET",
1270
+ responses: {
1271
+ 200: {
1272
+ bodyMapper: Mappers.EventSubscriptionsListResult
1273
+ },
1274
+ default: {}
1275
+ },
1276
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1277
+ urlParameters: [
1278
+ Parameters.$host,
1279
+ Parameters.subscriptionId,
1280
+ Parameters.resourceGroupName,
1281
+ Parameters.domainName,
1282
+ Parameters.topicName
1283
+ ],
1284
+ headerParameters: [Parameters.accept],
1285
+ serializer
1286
+ };
1287
+ const getDeliveryAttributesOperationSpec = {
1288
+ path: "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes",
1289
+ httpMethod: "POST",
1290
+ responses: {
1291
+ 200: {
1292
+ bodyMapper: Mappers.DeliveryAttributeListResult
1293
+ },
1294
+ default: {}
1295
+ },
1296
+ queryParameters: [Parameters.apiVersion],
1297
+ urlParameters: [
1298
+ Parameters.$host,
1299
+ Parameters.scope,
1300
+ Parameters.eventSubscriptionName
1301
+ ],
1302
+ headerParameters: [Parameters.accept],
1303
+ serializer
1304
+ };
1305
+ const listGlobalBySubscriptionNextOperationSpec = {
1306
+ path: "{nextLink}",
1307
+ httpMethod: "GET",
1308
+ responses: {
1309
+ 200: {
1310
+ bodyMapper: Mappers.EventSubscriptionsListResult
1311
+ },
1312
+ default: {}
1313
+ },
1314
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1315
+ urlParameters: [
1316
+ Parameters.$host,
1317
+ Parameters.subscriptionId,
1318
+ Parameters.nextLink
1319
+ ],
1320
+ headerParameters: [Parameters.accept],
1321
+ serializer
1322
+ };
1323
+ const listGlobalBySubscriptionForTopicTypeNextOperationSpec = {
1324
+ path: "{nextLink}",
1325
+ httpMethod: "GET",
1326
+ responses: {
1327
+ 200: {
1328
+ bodyMapper: Mappers.EventSubscriptionsListResult
1329
+ },
1330
+ default: {}
1331
+ },
1332
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1333
+ urlParameters: [
1334
+ Parameters.$host,
1335
+ Parameters.subscriptionId,
1336
+ Parameters.nextLink,
1337
+ Parameters.topicTypeName
1338
+ ],
1339
+ headerParameters: [Parameters.accept],
1340
+ serializer
1341
+ };
1342
+ const listGlobalByResourceGroupNextOperationSpec = {
1343
+ path: "{nextLink}",
1344
+ httpMethod: "GET",
1345
+ responses: {
1346
+ 200: {
1347
+ bodyMapper: Mappers.EventSubscriptionsListResult
1348
+ },
1349
+ default: {}
1350
+ },
1351
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1352
+ urlParameters: [
1353
+ Parameters.$host,
1354
+ Parameters.subscriptionId,
1355
+ Parameters.resourceGroupName,
1356
+ Parameters.nextLink
1357
+ ],
1358
+ headerParameters: [Parameters.accept],
1359
+ serializer
1360
+ };
1361
+ const listGlobalByResourceGroupForTopicTypeNextOperationSpec = {
1362
+ path: "{nextLink}",
1363
+ httpMethod: "GET",
1364
+ responses: {
1365
+ 200: {
1366
+ bodyMapper: Mappers.EventSubscriptionsListResult
1367
+ },
1368
+ default: {}
1369
+ },
1370
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1371
+ urlParameters: [
1372
+ Parameters.$host,
1373
+ Parameters.subscriptionId,
1374
+ Parameters.resourceGroupName,
1375
+ Parameters.nextLink,
1376
+ Parameters.topicTypeName
1377
+ ],
1378
+ headerParameters: [Parameters.accept],
1379
+ serializer
1380
+ };
1381
+ const listRegionalBySubscriptionNextOperationSpec = {
1382
+ path: "{nextLink}",
1383
+ httpMethod: "GET",
1384
+ responses: {
1385
+ 200: {
1386
+ bodyMapper: Mappers.EventSubscriptionsListResult
1387
+ },
1388
+ default: {}
1389
+ },
1390
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1391
+ urlParameters: [
1392
+ Parameters.$host,
1393
+ Parameters.subscriptionId,
1394
+ Parameters.nextLink,
1395
+ Parameters.location
1396
+ ],
1397
+ headerParameters: [Parameters.accept],
1398
+ serializer
1399
+ };
1400
+ const listRegionalByResourceGroupNextOperationSpec = {
1401
+ path: "{nextLink}",
1402
+ httpMethod: "GET",
1403
+ responses: {
1404
+ 200: {
1405
+ bodyMapper: Mappers.EventSubscriptionsListResult
1406
+ },
1407
+ default: {}
1408
+ },
1409
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1410
+ urlParameters: [
1411
+ Parameters.$host,
1412
+ Parameters.subscriptionId,
1413
+ Parameters.resourceGroupName,
1414
+ Parameters.nextLink,
1415
+ Parameters.location
1416
+ ],
1417
+ headerParameters: [Parameters.accept],
1418
+ serializer
1419
+ };
1420
+ const listRegionalBySubscriptionForTopicTypeNextOperationSpec = {
1421
+ path: "{nextLink}",
1422
+ httpMethod: "GET",
1423
+ responses: {
1424
+ 200: {
1425
+ bodyMapper: Mappers.EventSubscriptionsListResult
1426
+ },
1427
+ default: {}
1428
+ },
1429
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1430
+ urlParameters: [
1431
+ Parameters.$host,
1432
+ Parameters.subscriptionId,
1433
+ Parameters.nextLink,
1434
+ Parameters.topicTypeName,
1435
+ Parameters.location
1436
+ ],
1437
+ headerParameters: [Parameters.accept],
1438
+ serializer
1439
+ };
1440
+ const listRegionalByResourceGroupForTopicTypeNextOperationSpec = {
1441
+ path: "{nextLink}",
1442
+ httpMethod: "GET",
1443
+ responses: {
1444
+ 200: {
1445
+ bodyMapper: Mappers.EventSubscriptionsListResult
1446
+ },
1447
+ default: {}
1448
+ },
1449
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1450
+ urlParameters: [
1451
+ Parameters.$host,
1452
+ Parameters.subscriptionId,
1453
+ Parameters.resourceGroupName,
1454
+ Parameters.nextLink,
1455
+ Parameters.topicTypeName,
1456
+ Parameters.location
1457
+ ],
1458
+ headerParameters: [Parameters.accept],
1459
+ serializer
1460
+ };
1461
+ const listByResourceNextOperationSpec = {
1462
+ path: "{nextLink}",
1463
+ httpMethod: "GET",
1464
+ responses: {
1465
+ 200: {
1466
+ bodyMapper: Mappers.EventSubscriptionsListResult
1467
+ },
1468
+ default: {}
1469
+ },
1470
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1471
+ urlParameters: [
1472
+ Parameters.$host,
1473
+ Parameters.subscriptionId,
1474
+ Parameters.resourceGroupName,
1475
+ Parameters.nextLink,
1476
+ Parameters.providerNamespace,
1477
+ Parameters.resourceTypeName,
1478
+ Parameters.resourceName
1479
+ ],
1480
+ headerParameters: [Parameters.accept],
1481
+ serializer
1482
+ };
1483
+ const listByDomainTopicNextOperationSpec = {
1484
+ path: "{nextLink}",
1485
+ httpMethod: "GET",
1486
+ responses: {
1487
+ 200: {
1488
+ bodyMapper: Mappers.EventSubscriptionsListResult
1489
+ },
1490
+ default: {}
1491
+ },
1492
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1493
+ urlParameters: [
1494
+ Parameters.$host,
1495
+ Parameters.subscriptionId,
1496
+ Parameters.resourceGroupName,
1497
+ Parameters.domainName,
1498
+ Parameters.nextLink,
1499
+ Parameters.topicName
1500
+ ],
1501
+ headerParameters: [Parameters.accept],
1502
+ serializer
1503
+ };
1504
+ //# sourceMappingURL=eventSubscriptions.js.map