@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,921 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Topics } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { EventGridManagementClientContext } from "../eventGridManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ Topic,
19
+ TopicsListBySubscriptionNextOptionalParams,
20
+ TopicsListBySubscriptionOptionalParams,
21
+ TopicsListByResourceGroupNextOptionalParams,
22
+ TopicsListByResourceGroupOptionalParams,
23
+ EventType,
24
+ TopicsListEventTypesOptionalParams,
25
+ TopicsGetOptionalParams,
26
+ TopicsGetResponse,
27
+ TopicsCreateOrUpdateOptionalParams,
28
+ TopicsCreateOrUpdateResponse,
29
+ TopicsDeleteOptionalParams,
30
+ TopicUpdateParameters,
31
+ TopicsUpdateOptionalParams,
32
+ TopicsListBySubscriptionResponse,
33
+ TopicsListByResourceGroupResponse,
34
+ TopicsListSharedAccessKeysOptionalParams,
35
+ TopicsListSharedAccessKeysResponse,
36
+ TopicRegenerateKeyRequest,
37
+ TopicsRegenerateKeyOptionalParams,
38
+ TopicsRegenerateKeyResponse,
39
+ TopicsListEventTypesResponse,
40
+ TopicsListBySubscriptionNextResponse,
41
+ TopicsListByResourceGroupNextResponse
42
+ } from "../models";
43
+
44
+ /// <reference lib="esnext.asynciterable" />
45
+ /** Class containing Topics operations. */
46
+ export class TopicsImpl implements Topics {
47
+ private readonly client: EventGridManagementClientContext;
48
+
49
+ /**
50
+ * Initialize a new instance of the class Topics class.
51
+ * @param client Reference to the service client
52
+ */
53
+ constructor(client: EventGridManagementClientContext) {
54
+ this.client = client;
55
+ }
56
+
57
+ /**
58
+ * List all the topics under an Azure subscription.
59
+ * @param options The options parameters.
60
+ */
61
+ public listBySubscription(
62
+ options?: TopicsListBySubscriptionOptionalParams
63
+ ): PagedAsyncIterableIterator<Topic> {
64
+ const iter = this.listBySubscriptionPagingAll(options);
65
+ return {
66
+ next() {
67
+ return iter.next();
68
+ },
69
+ [Symbol.asyncIterator]() {
70
+ return this;
71
+ },
72
+ byPage: () => {
73
+ return this.listBySubscriptionPagingPage(options);
74
+ }
75
+ };
76
+ }
77
+
78
+ private async *listBySubscriptionPagingPage(
79
+ options?: TopicsListBySubscriptionOptionalParams
80
+ ): AsyncIterableIterator<Topic[]> {
81
+ let result = await this._listBySubscription(options);
82
+ yield result.value || [];
83
+ let continuationToken = result.nextLink;
84
+ while (continuationToken) {
85
+ result = await this._listBySubscriptionNext(continuationToken, options);
86
+ continuationToken = result.nextLink;
87
+ yield result.value || [];
88
+ }
89
+ }
90
+
91
+ private async *listBySubscriptionPagingAll(
92
+ options?: TopicsListBySubscriptionOptionalParams
93
+ ): AsyncIterableIterator<Topic> {
94
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
95
+ yield* page;
96
+ }
97
+ }
98
+
99
+ /**
100
+ * List all the topics under a resource group.
101
+ * @param resourceGroupName The name of the resource group within the user's subscription.
102
+ * @param options The options parameters.
103
+ */
104
+ public listByResourceGroup(
105
+ resourceGroupName: string,
106
+ options?: TopicsListByResourceGroupOptionalParams
107
+ ): PagedAsyncIterableIterator<Topic> {
108
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
109
+ return {
110
+ next() {
111
+ return iter.next();
112
+ },
113
+ [Symbol.asyncIterator]() {
114
+ return this;
115
+ },
116
+ byPage: () => {
117
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
118
+ }
119
+ };
120
+ }
121
+
122
+ private async *listByResourceGroupPagingPage(
123
+ resourceGroupName: string,
124
+ options?: TopicsListByResourceGroupOptionalParams
125
+ ): AsyncIterableIterator<Topic[]> {
126
+ let result = await this._listByResourceGroup(resourceGroupName, options);
127
+ yield result.value || [];
128
+ let continuationToken = result.nextLink;
129
+ while (continuationToken) {
130
+ result = await this._listByResourceGroupNext(
131
+ resourceGroupName,
132
+ continuationToken,
133
+ options
134
+ );
135
+ continuationToken = result.nextLink;
136
+ yield result.value || [];
137
+ }
138
+ }
139
+
140
+ private async *listByResourceGroupPagingAll(
141
+ resourceGroupName: string,
142
+ options?: TopicsListByResourceGroupOptionalParams
143
+ ): AsyncIterableIterator<Topic> {
144
+ for await (const page of this.listByResourceGroupPagingPage(
145
+ resourceGroupName,
146
+ options
147
+ )) {
148
+ yield* page;
149
+ }
150
+ }
151
+
152
+ /**
153
+ * List event types for a topic.
154
+ * @param resourceGroupName The name of the resource group within the user's subscription.
155
+ * @param providerNamespace Namespace of the provider of the topic.
156
+ * @param resourceTypeName Name of the topic type.
157
+ * @param resourceName Name of the topic.
158
+ * @param options The options parameters.
159
+ */
160
+ public listEventTypes(
161
+ resourceGroupName: string,
162
+ providerNamespace: string,
163
+ resourceTypeName: string,
164
+ resourceName: string,
165
+ options?: TopicsListEventTypesOptionalParams
166
+ ): PagedAsyncIterableIterator<EventType> {
167
+ const iter = this.listEventTypesPagingAll(
168
+ resourceGroupName,
169
+ providerNamespace,
170
+ resourceTypeName,
171
+ resourceName,
172
+ options
173
+ );
174
+ return {
175
+ next() {
176
+ return iter.next();
177
+ },
178
+ [Symbol.asyncIterator]() {
179
+ return this;
180
+ },
181
+ byPage: () => {
182
+ return this.listEventTypesPagingPage(
183
+ resourceGroupName,
184
+ providerNamespace,
185
+ resourceTypeName,
186
+ resourceName,
187
+ options
188
+ );
189
+ }
190
+ };
191
+ }
192
+
193
+ private async *listEventTypesPagingPage(
194
+ resourceGroupName: string,
195
+ providerNamespace: string,
196
+ resourceTypeName: string,
197
+ resourceName: string,
198
+ options?: TopicsListEventTypesOptionalParams
199
+ ): AsyncIterableIterator<EventType[]> {
200
+ let result = await this._listEventTypes(
201
+ resourceGroupName,
202
+ providerNamespace,
203
+ resourceTypeName,
204
+ resourceName,
205
+ options
206
+ );
207
+ yield result.value || [];
208
+ }
209
+
210
+ private async *listEventTypesPagingAll(
211
+ resourceGroupName: string,
212
+ providerNamespace: string,
213
+ resourceTypeName: string,
214
+ resourceName: string,
215
+ options?: TopicsListEventTypesOptionalParams
216
+ ): AsyncIterableIterator<EventType> {
217
+ for await (const page of this.listEventTypesPagingPage(
218
+ resourceGroupName,
219
+ providerNamespace,
220
+ resourceTypeName,
221
+ resourceName,
222
+ options
223
+ )) {
224
+ yield* page;
225
+ }
226
+ }
227
+
228
+ /**
229
+ * Get properties of a topic.
230
+ * @param resourceGroupName The name of the resource group within the user's subscription.
231
+ * @param topicName Name of the topic.
232
+ * @param options The options parameters.
233
+ */
234
+ get(
235
+ resourceGroupName: string,
236
+ topicName: string,
237
+ options?: TopicsGetOptionalParams
238
+ ): Promise<TopicsGetResponse> {
239
+ return this.client.sendOperationRequest(
240
+ { resourceGroupName, topicName, options },
241
+ getOperationSpec
242
+ );
243
+ }
244
+
245
+ /**
246
+ * Asynchronously creates a new topic with the specified parameters.
247
+ * @param resourceGroupName The name of the resource group within the user's subscription.
248
+ * @param topicName Name of the topic.
249
+ * @param topicInfo Topic information.
250
+ * @param options The options parameters.
251
+ */
252
+ async beginCreateOrUpdate(
253
+ resourceGroupName: string,
254
+ topicName: string,
255
+ topicInfo: Topic,
256
+ options?: TopicsCreateOrUpdateOptionalParams
257
+ ): Promise<
258
+ PollerLike<
259
+ PollOperationState<TopicsCreateOrUpdateResponse>,
260
+ TopicsCreateOrUpdateResponse
261
+ >
262
+ > {
263
+ const directSendOperation = async (
264
+ args: coreClient.OperationArguments,
265
+ spec: coreClient.OperationSpec
266
+ ): Promise<TopicsCreateOrUpdateResponse> => {
267
+ return this.client.sendOperationRequest(args, spec);
268
+ };
269
+ const sendOperation = async (
270
+ args: coreClient.OperationArguments,
271
+ spec: coreClient.OperationSpec
272
+ ) => {
273
+ let currentRawResponse:
274
+ | coreClient.FullOperationResponse
275
+ | undefined = undefined;
276
+ const providedCallback = args.options?.onResponse;
277
+ const callback: coreClient.RawResponseCallback = (
278
+ rawResponse: coreClient.FullOperationResponse,
279
+ flatResponse: unknown
280
+ ) => {
281
+ currentRawResponse = rawResponse;
282
+ providedCallback?.(rawResponse, flatResponse);
283
+ };
284
+ const updatedArgs = {
285
+ ...args,
286
+ options: {
287
+ ...args.options,
288
+ onResponse: callback
289
+ }
290
+ };
291
+ const flatResponse = await directSendOperation(updatedArgs, spec);
292
+ return {
293
+ flatResponse,
294
+ rawResponse: {
295
+ statusCode: currentRawResponse!.status,
296
+ body: currentRawResponse!.parsedBody,
297
+ headers: currentRawResponse!.headers.toJSON()
298
+ }
299
+ };
300
+ };
301
+
302
+ const lro = new LroImpl(
303
+ sendOperation,
304
+ { resourceGroupName, topicName, topicInfo, options },
305
+ createOrUpdateOperationSpec
306
+ );
307
+ return new LroEngine(lro, {
308
+ resumeFrom: options?.resumeFrom,
309
+ intervalInMs: options?.updateIntervalInMs
310
+ });
311
+ }
312
+
313
+ /**
314
+ * Asynchronously creates a new topic with the specified parameters.
315
+ * @param resourceGroupName The name of the resource group within the user's subscription.
316
+ * @param topicName Name of the topic.
317
+ * @param topicInfo Topic information.
318
+ * @param options The options parameters.
319
+ */
320
+ async beginCreateOrUpdateAndWait(
321
+ resourceGroupName: string,
322
+ topicName: string,
323
+ topicInfo: Topic,
324
+ options?: TopicsCreateOrUpdateOptionalParams
325
+ ): Promise<TopicsCreateOrUpdateResponse> {
326
+ const poller = await this.beginCreateOrUpdate(
327
+ resourceGroupName,
328
+ topicName,
329
+ topicInfo,
330
+ options
331
+ );
332
+ return poller.pollUntilDone();
333
+ }
334
+
335
+ /**
336
+ * Delete existing topic.
337
+ * @param resourceGroupName The name of the resource group within the user's subscription.
338
+ * @param topicName Name of the topic.
339
+ * @param options The options parameters.
340
+ */
341
+ async beginDelete(
342
+ resourceGroupName: string,
343
+ topicName: string,
344
+ options?: TopicsDeleteOptionalParams
345
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
346
+ const directSendOperation = async (
347
+ args: coreClient.OperationArguments,
348
+ spec: coreClient.OperationSpec
349
+ ): Promise<void> => {
350
+ return this.client.sendOperationRequest(args, spec);
351
+ };
352
+ const sendOperation = async (
353
+ args: coreClient.OperationArguments,
354
+ spec: coreClient.OperationSpec
355
+ ) => {
356
+ let currentRawResponse:
357
+ | coreClient.FullOperationResponse
358
+ | undefined = undefined;
359
+ const providedCallback = args.options?.onResponse;
360
+ const callback: coreClient.RawResponseCallback = (
361
+ rawResponse: coreClient.FullOperationResponse,
362
+ flatResponse: unknown
363
+ ) => {
364
+ currentRawResponse = rawResponse;
365
+ providedCallback?.(rawResponse, flatResponse);
366
+ };
367
+ const updatedArgs = {
368
+ ...args,
369
+ options: {
370
+ ...args.options,
371
+ onResponse: callback
372
+ }
373
+ };
374
+ const flatResponse = await directSendOperation(updatedArgs, spec);
375
+ return {
376
+ flatResponse,
377
+ rawResponse: {
378
+ statusCode: currentRawResponse!.status,
379
+ body: currentRawResponse!.parsedBody,
380
+ headers: currentRawResponse!.headers.toJSON()
381
+ }
382
+ };
383
+ };
384
+
385
+ const lro = new LroImpl(
386
+ sendOperation,
387
+ { resourceGroupName, topicName, options },
388
+ deleteOperationSpec
389
+ );
390
+ return new LroEngine(lro, {
391
+ resumeFrom: options?.resumeFrom,
392
+ intervalInMs: options?.updateIntervalInMs
393
+ });
394
+ }
395
+
396
+ /**
397
+ * Delete existing topic.
398
+ * @param resourceGroupName The name of the resource group within the user's subscription.
399
+ * @param topicName Name of the topic.
400
+ * @param options The options parameters.
401
+ */
402
+ async beginDeleteAndWait(
403
+ resourceGroupName: string,
404
+ topicName: string,
405
+ options?: TopicsDeleteOptionalParams
406
+ ): Promise<void> {
407
+ const poller = await this.beginDelete(
408
+ resourceGroupName,
409
+ topicName,
410
+ options
411
+ );
412
+ return poller.pollUntilDone();
413
+ }
414
+
415
+ /**
416
+ * Asynchronously updates a topic with the specified parameters.
417
+ * @param resourceGroupName The name of the resource group within the user's subscription.
418
+ * @param topicName Name of the topic.
419
+ * @param topicUpdateParameters Topic update information.
420
+ * @param options The options parameters.
421
+ */
422
+ async beginUpdate(
423
+ resourceGroupName: string,
424
+ topicName: string,
425
+ topicUpdateParameters: TopicUpdateParameters,
426
+ options?: TopicsUpdateOptionalParams
427
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
428
+ const directSendOperation = async (
429
+ args: coreClient.OperationArguments,
430
+ spec: coreClient.OperationSpec
431
+ ): Promise<void> => {
432
+ return this.client.sendOperationRequest(args, spec);
433
+ };
434
+ const sendOperation = async (
435
+ args: coreClient.OperationArguments,
436
+ spec: coreClient.OperationSpec
437
+ ) => {
438
+ let currentRawResponse:
439
+ | coreClient.FullOperationResponse
440
+ | undefined = undefined;
441
+ const providedCallback = args.options?.onResponse;
442
+ const callback: coreClient.RawResponseCallback = (
443
+ rawResponse: coreClient.FullOperationResponse,
444
+ flatResponse: unknown
445
+ ) => {
446
+ currentRawResponse = rawResponse;
447
+ providedCallback?.(rawResponse, flatResponse);
448
+ };
449
+ const updatedArgs = {
450
+ ...args,
451
+ options: {
452
+ ...args.options,
453
+ onResponse: callback
454
+ }
455
+ };
456
+ const flatResponse = await directSendOperation(updatedArgs, spec);
457
+ return {
458
+ flatResponse,
459
+ rawResponse: {
460
+ statusCode: currentRawResponse!.status,
461
+ body: currentRawResponse!.parsedBody,
462
+ headers: currentRawResponse!.headers.toJSON()
463
+ }
464
+ };
465
+ };
466
+
467
+ const lro = new LroImpl(
468
+ sendOperation,
469
+ { resourceGroupName, topicName, topicUpdateParameters, options },
470
+ updateOperationSpec
471
+ );
472
+ return new LroEngine(lro, {
473
+ resumeFrom: options?.resumeFrom,
474
+ intervalInMs: options?.updateIntervalInMs
475
+ });
476
+ }
477
+
478
+ /**
479
+ * Asynchronously updates a topic with the specified parameters.
480
+ * @param resourceGroupName The name of the resource group within the user's subscription.
481
+ * @param topicName Name of the topic.
482
+ * @param topicUpdateParameters Topic update information.
483
+ * @param options The options parameters.
484
+ */
485
+ async beginUpdateAndWait(
486
+ resourceGroupName: string,
487
+ topicName: string,
488
+ topicUpdateParameters: TopicUpdateParameters,
489
+ options?: TopicsUpdateOptionalParams
490
+ ): Promise<void> {
491
+ const poller = await this.beginUpdate(
492
+ resourceGroupName,
493
+ topicName,
494
+ topicUpdateParameters,
495
+ options
496
+ );
497
+ return poller.pollUntilDone();
498
+ }
499
+
500
+ /**
501
+ * List all the topics under an Azure subscription.
502
+ * @param options The options parameters.
503
+ */
504
+ private _listBySubscription(
505
+ options?: TopicsListBySubscriptionOptionalParams
506
+ ): Promise<TopicsListBySubscriptionResponse> {
507
+ return this.client.sendOperationRequest(
508
+ { options },
509
+ listBySubscriptionOperationSpec
510
+ );
511
+ }
512
+
513
+ /**
514
+ * List all the topics under a resource group.
515
+ * @param resourceGroupName The name of the resource group within the user's subscription.
516
+ * @param options The options parameters.
517
+ */
518
+ private _listByResourceGroup(
519
+ resourceGroupName: string,
520
+ options?: TopicsListByResourceGroupOptionalParams
521
+ ): Promise<TopicsListByResourceGroupResponse> {
522
+ return this.client.sendOperationRequest(
523
+ { resourceGroupName, options },
524
+ listByResourceGroupOperationSpec
525
+ );
526
+ }
527
+
528
+ /**
529
+ * List the two keys used to publish to a topic.
530
+ * @param resourceGroupName The name of the resource group within the user's subscription.
531
+ * @param topicName Name of the topic.
532
+ * @param options The options parameters.
533
+ */
534
+ listSharedAccessKeys(
535
+ resourceGroupName: string,
536
+ topicName: string,
537
+ options?: TopicsListSharedAccessKeysOptionalParams
538
+ ): Promise<TopicsListSharedAccessKeysResponse> {
539
+ return this.client.sendOperationRequest(
540
+ { resourceGroupName, topicName, options },
541
+ listSharedAccessKeysOperationSpec
542
+ );
543
+ }
544
+
545
+ /**
546
+ * Regenerate a shared access key for a topic.
547
+ * @param resourceGroupName The name of the resource group within the user's subscription.
548
+ * @param topicName Name of the topic.
549
+ * @param regenerateKeyRequest Request body to regenerate key.
550
+ * @param options The options parameters.
551
+ */
552
+ async beginRegenerateKey(
553
+ resourceGroupName: string,
554
+ topicName: string,
555
+ regenerateKeyRequest: TopicRegenerateKeyRequest,
556
+ options?: TopicsRegenerateKeyOptionalParams
557
+ ): Promise<
558
+ PollerLike<
559
+ PollOperationState<TopicsRegenerateKeyResponse>,
560
+ TopicsRegenerateKeyResponse
561
+ >
562
+ > {
563
+ const directSendOperation = async (
564
+ args: coreClient.OperationArguments,
565
+ spec: coreClient.OperationSpec
566
+ ): Promise<TopicsRegenerateKeyResponse> => {
567
+ return this.client.sendOperationRequest(args, spec);
568
+ };
569
+ const sendOperation = async (
570
+ args: coreClient.OperationArguments,
571
+ spec: coreClient.OperationSpec
572
+ ) => {
573
+ let currentRawResponse:
574
+ | coreClient.FullOperationResponse
575
+ | undefined = undefined;
576
+ const providedCallback = args.options?.onResponse;
577
+ const callback: coreClient.RawResponseCallback = (
578
+ rawResponse: coreClient.FullOperationResponse,
579
+ flatResponse: unknown
580
+ ) => {
581
+ currentRawResponse = rawResponse;
582
+ providedCallback?.(rawResponse, flatResponse);
583
+ };
584
+ const updatedArgs = {
585
+ ...args,
586
+ options: {
587
+ ...args.options,
588
+ onResponse: callback
589
+ }
590
+ };
591
+ const flatResponse = await directSendOperation(updatedArgs, spec);
592
+ return {
593
+ flatResponse,
594
+ rawResponse: {
595
+ statusCode: currentRawResponse!.status,
596
+ body: currentRawResponse!.parsedBody,
597
+ headers: currentRawResponse!.headers.toJSON()
598
+ }
599
+ };
600
+ };
601
+
602
+ const lro = new LroImpl(
603
+ sendOperation,
604
+ { resourceGroupName, topicName, regenerateKeyRequest, options },
605
+ regenerateKeyOperationSpec
606
+ );
607
+ return new LroEngine(lro, {
608
+ resumeFrom: options?.resumeFrom,
609
+ intervalInMs: options?.updateIntervalInMs
610
+ });
611
+ }
612
+
613
+ /**
614
+ * Regenerate a shared access key for a topic.
615
+ * @param resourceGroupName The name of the resource group within the user's subscription.
616
+ * @param topicName Name of the topic.
617
+ * @param regenerateKeyRequest Request body to regenerate key.
618
+ * @param options The options parameters.
619
+ */
620
+ async beginRegenerateKeyAndWait(
621
+ resourceGroupName: string,
622
+ topicName: string,
623
+ regenerateKeyRequest: TopicRegenerateKeyRequest,
624
+ options?: TopicsRegenerateKeyOptionalParams
625
+ ): Promise<TopicsRegenerateKeyResponse> {
626
+ const poller = await this.beginRegenerateKey(
627
+ resourceGroupName,
628
+ topicName,
629
+ regenerateKeyRequest,
630
+ options
631
+ );
632
+ return poller.pollUntilDone();
633
+ }
634
+
635
+ /**
636
+ * List event types for a topic.
637
+ * @param resourceGroupName The name of the resource group within the user's subscription.
638
+ * @param providerNamespace Namespace of the provider of the topic.
639
+ * @param resourceTypeName Name of the topic type.
640
+ * @param resourceName Name of the topic.
641
+ * @param options The options parameters.
642
+ */
643
+ private _listEventTypes(
644
+ resourceGroupName: string,
645
+ providerNamespace: string,
646
+ resourceTypeName: string,
647
+ resourceName: string,
648
+ options?: TopicsListEventTypesOptionalParams
649
+ ): Promise<TopicsListEventTypesResponse> {
650
+ return this.client.sendOperationRequest(
651
+ {
652
+ resourceGroupName,
653
+ providerNamespace,
654
+ resourceTypeName,
655
+ resourceName,
656
+ options
657
+ },
658
+ listEventTypesOperationSpec
659
+ );
660
+ }
661
+
662
+ /**
663
+ * ListBySubscriptionNext
664
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
665
+ * @param options The options parameters.
666
+ */
667
+ private _listBySubscriptionNext(
668
+ nextLink: string,
669
+ options?: TopicsListBySubscriptionNextOptionalParams
670
+ ): Promise<TopicsListBySubscriptionNextResponse> {
671
+ return this.client.sendOperationRequest(
672
+ { nextLink, options },
673
+ listBySubscriptionNextOperationSpec
674
+ );
675
+ }
676
+
677
+ /**
678
+ * ListByResourceGroupNext
679
+ * @param resourceGroupName The name of the resource group within the user's subscription.
680
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
681
+ * @param options The options parameters.
682
+ */
683
+ private _listByResourceGroupNext(
684
+ resourceGroupName: string,
685
+ nextLink: string,
686
+ options?: TopicsListByResourceGroupNextOptionalParams
687
+ ): Promise<TopicsListByResourceGroupNextResponse> {
688
+ return this.client.sendOperationRequest(
689
+ { resourceGroupName, nextLink, options },
690
+ listByResourceGroupNextOperationSpec
691
+ );
692
+ }
693
+ }
694
+ // Operation Specifications
695
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
696
+
697
+ const getOperationSpec: coreClient.OperationSpec = {
698
+ path:
699
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}",
700
+ httpMethod: "GET",
701
+ responses: {
702
+ 200: {
703
+ bodyMapper: Mappers.Topic
704
+ },
705
+ default: {}
706
+ },
707
+ queryParameters: [Parameters.apiVersion],
708
+ urlParameters: [
709
+ Parameters.$host,
710
+ Parameters.subscriptionId,
711
+ Parameters.resourceGroupName,
712
+ Parameters.topicName
713
+ ],
714
+ headerParameters: [Parameters.accept],
715
+ serializer
716
+ };
717
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
718
+ path:
719
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}",
720
+ httpMethod: "PUT",
721
+ responses: {
722
+ 200: {
723
+ bodyMapper: Mappers.Topic
724
+ },
725
+ 201: {
726
+ bodyMapper: Mappers.Topic
727
+ },
728
+ 202: {
729
+ bodyMapper: Mappers.Topic
730
+ },
731
+ 204: {
732
+ bodyMapper: Mappers.Topic
733
+ },
734
+ default: {}
735
+ },
736
+ requestBody: Parameters.topicInfo,
737
+ queryParameters: [Parameters.apiVersion],
738
+ urlParameters: [
739
+ Parameters.$host,
740
+ Parameters.subscriptionId,
741
+ Parameters.resourceGroupName,
742
+ Parameters.topicName
743
+ ],
744
+ headerParameters: [Parameters.accept, Parameters.contentType],
745
+ mediaType: "json",
746
+ serializer
747
+ };
748
+ const deleteOperationSpec: coreClient.OperationSpec = {
749
+ path:
750
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}",
751
+ httpMethod: "DELETE",
752
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
753
+ queryParameters: [Parameters.apiVersion],
754
+ urlParameters: [
755
+ Parameters.$host,
756
+ Parameters.subscriptionId,
757
+ Parameters.resourceGroupName,
758
+ Parameters.topicName
759
+ ],
760
+ serializer
761
+ };
762
+ const updateOperationSpec: coreClient.OperationSpec = {
763
+ path:
764
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}",
765
+ httpMethod: "PATCH",
766
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
767
+ requestBody: Parameters.topicUpdateParameters,
768
+ queryParameters: [Parameters.apiVersion],
769
+ urlParameters: [
770
+ Parameters.$host,
771
+ Parameters.subscriptionId,
772
+ Parameters.resourceGroupName,
773
+ Parameters.topicName
774
+ ],
775
+ headerParameters: [Parameters.accept, Parameters.contentType],
776
+ mediaType: "json",
777
+ serializer
778
+ };
779
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
780
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics",
781
+ httpMethod: "GET",
782
+ responses: {
783
+ 200: {
784
+ bodyMapper: Mappers.TopicsListResult
785
+ },
786
+ default: {}
787
+ },
788
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
789
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
790
+ headerParameters: [Parameters.accept],
791
+ serializer
792
+ };
793
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
794
+ path:
795
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics",
796
+ httpMethod: "GET",
797
+ responses: {
798
+ 200: {
799
+ bodyMapper: Mappers.TopicsListResult
800
+ },
801
+ default: {}
802
+ },
803
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
804
+ urlParameters: [
805
+ Parameters.$host,
806
+ Parameters.subscriptionId,
807
+ Parameters.resourceGroupName
808
+ ],
809
+ headerParameters: [Parameters.accept],
810
+ serializer
811
+ };
812
+ const listSharedAccessKeysOperationSpec: coreClient.OperationSpec = {
813
+ path:
814
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys",
815
+ httpMethod: "POST",
816
+ responses: {
817
+ 200: {
818
+ bodyMapper: Mappers.TopicSharedAccessKeys
819
+ },
820
+ default: {}
821
+ },
822
+ queryParameters: [Parameters.apiVersion],
823
+ urlParameters: [
824
+ Parameters.$host,
825
+ Parameters.subscriptionId,
826
+ Parameters.resourceGroupName,
827
+ Parameters.topicName
828
+ ],
829
+ headerParameters: [Parameters.accept],
830
+ serializer
831
+ };
832
+ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
833
+ path:
834
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey",
835
+ httpMethod: "POST",
836
+ responses: {
837
+ 200: {
838
+ bodyMapper: Mappers.TopicSharedAccessKeys
839
+ },
840
+ 201: {
841
+ bodyMapper: Mappers.TopicSharedAccessKeys
842
+ },
843
+ 202: {
844
+ bodyMapper: Mappers.TopicSharedAccessKeys
845
+ },
846
+ 204: {
847
+ bodyMapper: Mappers.TopicSharedAccessKeys
848
+ },
849
+ default: {}
850
+ },
851
+ requestBody: Parameters.regenerateKeyRequest2,
852
+ queryParameters: [Parameters.apiVersion],
853
+ urlParameters: [
854
+ Parameters.$host,
855
+ Parameters.subscriptionId,
856
+ Parameters.resourceGroupName,
857
+ Parameters.topicName
858
+ ],
859
+ headerParameters: [Parameters.accept, Parameters.contentType],
860
+ mediaType: "json",
861
+ serializer
862
+ };
863
+ const listEventTypesOperationSpec: coreClient.OperationSpec = {
864
+ path:
865
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes",
866
+ httpMethod: "GET",
867
+ responses: {
868
+ 200: {
869
+ bodyMapper: Mappers.EventTypesListResult
870
+ },
871
+ default: {}
872
+ },
873
+ queryParameters: [Parameters.apiVersion],
874
+ urlParameters: [
875
+ Parameters.$host,
876
+ Parameters.subscriptionId,
877
+ Parameters.resourceGroupName,
878
+ Parameters.providerNamespace,
879
+ Parameters.resourceTypeName,
880
+ Parameters.resourceName
881
+ ],
882
+ headerParameters: [Parameters.accept],
883
+ serializer
884
+ };
885
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
886
+ path: "{nextLink}",
887
+ httpMethod: "GET",
888
+ responses: {
889
+ 200: {
890
+ bodyMapper: Mappers.TopicsListResult
891
+ },
892
+ default: {}
893
+ },
894
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
895
+ urlParameters: [
896
+ Parameters.$host,
897
+ Parameters.subscriptionId,
898
+ Parameters.nextLink
899
+ ],
900
+ headerParameters: [Parameters.accept],
901
+ serializer
902
+ };
903
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
904
+ path: "{nextLink}",
905
+ httpMethod: "GET",
906
+ responses: {
907
+ 200: {
908
+ bodyMapper: Mappers.TopicsListResult
909
+ },
910
+ default: {}
911
+ },
912
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
913
+ urlParameters: [
914
+ Parameters.$host,
915
+ Parameters.subscriptionId,
916
+ Parameters.resourceGroupName,
917
+ Parameters.nextLink
918
+ ],
919
+ headerParameters: [Parameters.accept],
920
+ serializer
921
+ };