@azure/arm-eventgrid 12.0.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +7613 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/eventGridManagementClient.d.ts +29 -0
  9. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/eventGridManagementClient.js +62 -0
  11. package/dist-esm/src/eventGridManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +1943 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +204 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +107 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +1216 -1303
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +42 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +347 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/domainTopics.d.ts +79 -0
  33. package/dist-esm/src/operations/domainTopics.d.ts.map +1 -0
  34. package/dist-esm/src/operations/domainTopics.js +310 -0
  35. package/dist-esm/src/operations/domainTopics.js.map +1 -0
  36. package/dist-esm/src/operations/domains.d.ts +122 -0
  37. package/dist-esm/src/operations/domains.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domains.js +522 -0
  39. package/dist-esm/src/operations/domains.js.map +1 -0
  40. package/dist-esm/src/operations/eventSubscriptions.d.ts +404 -0
  41. package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/eventSubscriptions.js +1504 -0
  43. package/dist-esm/src/operations/eventSubscriptions.js.map +1 -0
  44. package/dist-esm/src/operations/extensionTopics.d.ts +24 -0
  45. package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -0
  46. package/dist-esm/src/operations/extensionTopics.js +50 -0
  47. package/dist-esm/src/operations/extensionTopics.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/{esm → dist-esm/src}/operations/index.js +1 -2
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/operations.d.ts +26 -0
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/operations.js +88 -0
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/src/operations/privateEndpointConnections.d.ts +89 -0
  57. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  58. package/dist-esm/src/operations/privateEndpointConnections.js +346 -0
  59. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  60. package/dist-esm/src/operations/privateLinkResources.d.ts +50 -0
  61. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  62. package/dist-esm/src/operations/privateLinkResources.js +176 -0
  63. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  64. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +128 -0
  65. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -0
  66. package/dist-esm/src/operations/systemTopicEventSubscriptions.js +483 -0
  67. package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -0
  68. package/dist-esm/src/operations/systemTopics.d.ts +107 -0
  69. package/dist-esm/src/operations/systemTopics.d.ts.map +1 -0
  70. package/dist-esm/src/operations/systemTopics.js +482 -0
  71. package/dist-esm/src/operations/systemTopics.js.map +1 -0
  72. package/dist-esm/src/operations/topicTypes.d.ts +46 -0
  73. package/dist-esm/src/operations/topicTypes.d.ts.map +1 -0
  74. package/dist-esm/src/operations/topicTypes.js +175 -0
  75. package/dist-esm/src/operations/topicTypes.js.map +1 -0
  76. package/dist-esm/src/operations/topics.d.ts +150 -0
  77. package/dist-esm/src/operations/topics.d.ts.map +1 -0
  78. package/dist-esm/src/operations/topics.js +656 -0
  79. package/dist-esm/src/operations/topics.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts +54 -0
  81. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts.map +1 -0
  82. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/domainTopics.js} +2 -8
  83. package/dist-esm/src/operationsInterfaces/domainTopics.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/domains.d.ts +86 -0
  85. package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -0
  86. package/{src/models/privateLinkResourcesMappers.ts → dist-esm/src/operationsInterfaces/domains.js} +2 -7
  87. package/dist-esm/src/operationsInterfaces/domains.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts +217 -0
  89. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts.map +1 -0
  90. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/eventSubscriptions.js} +2 -2
  91. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts +16 -0
  93. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/extensionTopics.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/extensionTopics.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
  97. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/index.js +19 -0
  99. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +62 -0
  105. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +23 -0
  109. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts +103 -0
  113. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts +71 -0
  117. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/systemTopics.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/systemTopics.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts +23 -0
  121. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/topicTypes.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/topicTypes.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/topics.d.ts +103 -0
  125. package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
  126. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/topics.js} +2 -1
  127. package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
  128. package/dist-esm/test/eventgrid_examples.d.ts +4 -0
  129. package/dist-esm/test/eventgrid_examples.d.ts.map +1 -0
  130. package/dist-esm/test/eventgrid_examples.js +166 -0
  131. package/dist-esm/test/eventgrid_examples.js.map +1 -0
  132. package/package.json +65 -32
  133. package/review/arm-eventgrid.api.md +1777 -0
  134. package/rollup.config.js +181 -30
  135. package/src/eventGridManagementClient.ts +107 -53
  136. package/{esm/models/privateLinkResourcesMappers.js → src/index.ts} +5 -2
  137. package/src/lroImpl.ts +34 -0
  138. package/src/models/index.ts +1844 -3910
  139. package/src/models/mappers.ts +1261 -1339
  140. package/src/models/parameters.ts +239 -82
  141. package/src/operations/domainTopics.ts +346 -224
  142. package/src/operations/domains.ts +545 -454
  143. package/src/operations/eventSubscriptions.ts +1658 -1236
  144. package/src/operations/extensionTopics.ts +37 -66
  145. package/src/operations/index.ts +1 -2
  146. package/src/operations/operations.ts +65 -43
  147. package/src/operations/privateEndpointConnections.ts +386 -253
  148. package/src/operations/privateLinkResources.ts +178 -150
  149. package/src/operations/systemTopicEventSubscriptions.ts +537 -394
  150. package/src/operations/systemTopics.ts +505 -349
  151. package/src/operations/topicTypes.ts +138 -114
  152. package/src/operations/topics.ts +728 -494
  153. package/src/operationsInterfaces/domainTopics.ts +105 -0
  154. package/src/operationsInterfaces/domains.ts +162 -0
  155. package/src/operationsInterfaces/eventSubscriptions.ts +339 -0
  156. package/src/operationsInterfaces/extensionTopics.ts +30 -0
  157. package/src/operationsInterfaces/index.ts +19 -0
  158. package/src/operationsInterfaces/operations.ts +22 -0
  159. package/src/operationsInterfaces/privateEndpointConnections.ts +125 -0
  160. package/src/operationsInterfaces/privateLinkResources.ts +48 -0
  161. package/src/operationsInterfaces/systemTopicEventSubscriptions.ts +190 -0
  162. package/src/operationsInterfaces/systemTopics.ts +139 -0
  163. package/src/operationsInterfaces/topicTypes.ts +47 -0
  164. package/src/operationsInterfaces/topics.ts +197 -0
  165. package/tsconfig.json +3 -3
  166. package/types/arm-eventgrid.d.ts +2998 -0
  167. package/types/tsdoc-metadata.json +11 -0
  168. package/dist/arm-eventgrid.js +0 -6824
  169. package/dist/arm-eventgrid.js.map +0 -1
  170. package/dist/arm-eventgrid.min.js +0 -1
  171. package/dist/arm-eventgrid.min.js.map +0 -1
  172. package/esm/eventGridManagementClient.d.ts +0 -35
  173. package/esm/eventGridManagementClient.d.ts.map +0 -1
  174. package/esm/eventGridManagementClient.js +0 -48
  175. package/esm/eventGridManagementClient.js.map +0 -1
  176. package/esm/eventGridManagementClientContext.d.ts +0 -23
  177. package/esm/eventGridManagementClientContext.d.ts.map +0 -1
  178. package/esm/eventGridManagementClientContext.js +0 -61
  179. package/esm/eventGridManagementClientContext.js.map +0 -1
  180. package/esm/models/domainTopicsMappers.d.ts +0 -2
  181. package/esm/models/domainTopicsMappers.d.ts.map +0 -1
  182. package/esm/models/domainTopicsMappers.js +0 -9
  183. package/esm/models/domainTopicsMappers.js.map +0 -1
  184. package/esm/models/domainsMappers.d.ts +0 -2
  185. package/esm/models/domainsMappers.d.ts.map +0 -1
  186. package/esm/models/domainsMappers.js +0 -9
  187. package/esm/models/domainsMappers.js.map +0 -1
  188. package/esm/models/eventSubscriptionsMappers.d.ts +0 -2
  189. package/esm/models/eventSubscriptionsMappers.d.ts.map +0 -1
  190. package/esm/models/eventSubscriptionsMappers.js +0 -9
  191. package/esm/models/eventSubscriptionsMappers.js.map +0 -1
  192. package/esm/models/extensionTopicsMappers.d.ts +0 -2
  193. package/esm/models/extensionTopicsMappers.d.ts.map +0 -1
  194. package/esm/models/extensionTopicsMappers.js +0 -9
  195. package/esm/models/extensionTopicsMappers.js.map +0 -1
  196. package/esm/models/index.d.ts +0 -4080
  197. package/esm/models/index.d.ts.map +0 -1
  198. package/esm/models/index.js.map +0 -1
  199. package/esm/models/mappers.d.ts +0 -109
  200. package/esm/models/mappers.d.ts.map +0 -1
  201. package/esm/models/mappers.js.map +0 -1
  202. package/esm/models/operationsMappers.d.ts +0 -2
  203. package/esm/models/operationsMappers.d.ts.map +0 -1
  204. package/esm/models/operationsMappers.js.map +0 -1
  205. package/esm/models/parameters.d.ts +0 -25
  206. package/esm/models/parameters.d.ts.map +0 -1
  207. package/esm/models/parameters.js +0 -245
  208. package/esm/models/parameters.js.map +0 -1
  209. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  210. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  211. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  212. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  213. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  214. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  215. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  216. package/esm/models/systemTopicEventSubscriptionsMappers.d.ts +0 -2
  217. package/esm/models/systemTopicEventSubscriptionsMappers.d.ts.map +0 -1
  218. package/esm/models/systemTopicEventSubscriptionsMappers.js +0 -9
  219. package/esm/models/systemTopicEventSubscriptionsMappers.js.map +0 -1
  220. package/esm/models/systemTopicsMappers.d.ts +0 -2
  221. package/esm/models/systemTopicsMappers.d.ts.map +0 -1
  222. package/esm/models/systemTopicsMappers.js +0 -9
  223. package/esm/models/systemTopicsMappers.js.map +0 -1
  224. package/esm/models/topicTypesMappers.d.ts +0 -2
  225. package/esm/models/topicTypesMappers.d.ts.map +0 -1
  226. package/esm/models/topicTypesMappers.js +0 -9
  227. package/esm/models/topicTypesMappers.js.map +0 -1
  228. package/esm/models/topicsMappers.d.ts +0 -2
  229. package/esm/models/topicsMappers.d.ts.map +0 -1
  230. package/esm/models/topicsMappers.js +0 -9
  231. package/esm/models/topicsMappers.js.map +0 -1
  232. package/esm/operations/domainTopics.d.ts +0 -120
  233. package/esm/operations/domainTopics.d.ts.map +0 -1
  234. package/esm/operations/domainTopics.js +0 -233
  235. package/esm/operations/domainTopics.js.map +0 -1
  236. package/esm/operations/domains.d.ts +0 -214
  237. package/esm/operations/domains.d.ts.map +0 -1
  238. package/esm/operations/domains.js +0 -415
  239. package/esm/operations/domains.js.map +0 -1
  240. package/esm/operations/eventSubscriptions.d.ts +0 -666
  241. package/esm/operations/eventSubscriptions.d.ts.map +0 -1
  242. package/esm/operations/eventSubscriptions.js +0 -969
  243. package/esm/operations/eventSubscriptions.js.map +0 -1
  244. package/esm/operations/extensionTopics.d.ts +0 -47
  245. package/esm/operations/extensionTopics.d.ts.map +0 -1
  246. package/esm/operations/extensionTopics.js +0 -54
  247. package/esm/operations/extensionTopics.js.map +0 -1
  248. package/esm/operations/index.d.ts.map +0 -1
  249. package/esm/operations/index.js.map +0 -1
  250. package/esm/operations/operations.d.ts +0 -29
  251. package/esm/operations/operations.d.ts.map +0 -1
  252. package/esm/operations/operations.js +0 -50
  253. package/esm/operations/operations.js.map +0 -1
  254. package/esm/operations/privateEndpointConnections.d.ts +0 -152
  255. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  256. package/esm/operations/privateEndpointConnections.js +0 -263
  257. package/esm/operations/privateEndpointConnections.js.map +0 -1
  258. package/esm/operations/privateLinkResources.d.ts +0 -91
  259. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  260. package/esm/operations/privateLinkResources.js +0 -127
  261. package/esm/operations/privateLinkResources.js.map +0 -1
  262. package/esm/operations/systemTopicEventSubscriptions.d.ts +0 -213
  263. package/esm/operations/systemTopicEventSubscriptions.d.ts.map +0 -1
  264. package/esm/operations/systemTopicEventSubscriptions.js +0 -379
  265. package/esm/operations/systemTopicEventSubscriptions.js.map +0 -1
  266. package/esm/operations/systemTopics.d.ts +0 -167
  267. package/esm/operations/systemTopics.d.ts.map +0 -1
  268. package/esm/operations/systemTopics.js +0 -353
  269. package/esm/operations/systemTopics.js.map +0 -1
  270. package/esm/operations/topicTypes.d.ts +0 -67
  271. package/esm/operations/topicTypes.d.ts.map +0 -1
  272. package/esm/operations/topicTypes.js +0 -106
  273. package/esm/operations/topicTypes.js.map +0 -1
  274. package/esm/operations/topics.d.ts +0 -237
  275. package/esm/operations/topics.d.ts.map +0 -1
  276. package/esm/operations/topics.js +0 -471
  277. package/esm/operations/topics.js.map +0 -1
  278. package/src/eventGridManagementClientContext.ts +0 -68
  279. package/src/models/domainTopicsMappers.ts +0 -66
  280. package/src/models/domainsMappers.ts +0 -69
  281. package/src/models/eventSubscriptionsMappers.ts +0 -69
  282. package/src/models/extensionTopicsMappers.ts +0 -65
  283. package/src/models/privateEndpointConnectionsMappers.ts +0 -66
  284. package/src/models/systemTopicEventSubscriptionsMappers.ts +0 -69
  285. package/src/models/systemTopicsMappers.ts +0 -67
  286. package/src/models/topicTypesMappers.ts +0 -67
  287. package/src/models/topicsMappers.ts +0 -70
@@ -3,64 +3,143 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/privateEndpointConnectionsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { EventGridManagementClientContext } from "../eventGridManagementClientContext";
14
+ import { EventGridManagementClient } from "../eventGridManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ PrivateEndpointConnection,
19
+ Enum21,
20
+ PrivateEndpointConnectionsListByResourceNextOptionalParams,
21
+ PrivateEndpointConnectionsListByResourceOptionalParams,
22
+ Enum18,
23
+ PrivateEndpointConnectionsGetOptionalParams,
24
+ PrivateEndpointConnectionsGetResponse,
25
+ Enum19,
26
+ PrivateEndpointConnectionsUpdateOptionalParams,
27
+ PrivateEndpointConnectionsUpdateResponse,
28
+ Enum20,
29
+ PrivateEndpointConnectionsDeleteOptionalParams,
30
+ PrivateEndpointConnectionsListByResourceResponse,
31
+ PrivateEndpointConnectionsListByResourceNextResponse
32
+ } from "../models";
16
33
 
17
- /** Class representing a PrivateEndpointConnections. */
18
- export class PrivateEndpointConnections {
19
- private readonly client: EventGridManagementClientContext;
34
+ /// <reference lib="esnext.asynciterable" />
35
+ /** Class containing PrivateEndpointConnections operations. */
36
+ export class PrivateEndpointConnectionsImpl
37
+ implements PrivateEndpointConnections {
38
+ private readonly client: EventGridManagementClient;
20
39
 
21
40
  /**
22
- * Create a PrivateEndpointConnections.
23
- * @param {EventGridManagementClientContext} client Reference to the service client.
41
+ * Initialize a new instance of the class PrivateEndpointConnections class.
42
+ * @param client Reference to the service client
24
43
  */
25
- constructor(client: EventGridManagementClientContext) {
44
+ constructor(client: EventGridManagementClient) {
26
45
  this.client = client;
27
46
  }
28
47
 
29
48
  /**
30
- * Get a specific private endpoint connection under a topic or domain.
31
- * @summary Get a specific private endpoint connection.
32
- * @param resourceGroupName The name of the resource group within the user's subscription.
33
- * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
34
- * Possible values include: 'topics', 'domains'
35
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
36
- * name).
37
- * @param privateEndpointConnectionName The name of the private endpoint connection connection.
38
- * @param [options] The optional parameters
39
- * @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
40
- */
41
- get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
42
- /**
49
+ * Get all private endpoint connections under a topic or domain.
43
50
  * @param resourceGroupName The name of the resource group within the user's subscription.
44
51
  * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
45
- * Possible values include: 'topics', 'domains'
46
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
47
- * name).
48
- * @param privateEndpointConnectionName The name of the private endpoint connection connection.
49
- * @param callback The callback
52
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
53
+ * @param options The options parameters.
50
54
  */
51
- get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
55
+ public listByResource(
56
+ resourceGroupName: string,
57
+ parentType: Enum21,
58
+ parentName: string,
59
+ options?: PrivateEndpointConnectionsListByResourceOptionalParams
60
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
61
+ const iter = this.listByResourcePagingAll(
62
+ resourceGroupName,
63
+ parentType,
64
+ parentName,
65
+ options
66
+ );
67
+ return {
68
+ next() {
69
+ return iter.next();
70
+ },
71
+ [Symbol.asyncIterator]() {
72
+ return this;
73
+ },
74
+ byPage: () => {
75
+ return this.listByResourcePagingPage(
76
+ resourceGroupName,
77
+ parentType,
78
+ parentName,
79
+ options
80
+ );
81
+ }
82
+ };
83
+ }
84
+
85
+ private async *listByResourcePagingPage(
86
+ resourceGroupName: string,
87
+ parentType: Enum21,
88
+ parentName: string,
89
+ options?: PrivateEndpointConnectionsListByResourceOptionalParams
90
+ ): AsyncIterableIterator<PrivateEndpointConnection[]> {
91
+ let result = await this._listByResource(
92
+ resourceGroupName,
93
+ parentType,
94
+ parentName,
95
+ options
96
+ );
97
+ yield result.value || [];
98
+ let continuationToken = result.nextLink;
99
+ while (continuationToken) {
100
+ result = await this._listByResourceNext(
101
+ resourceGroupName,
102
+ parentType,
103
+ parentName,
104
+ continuationToken,
105
+ options
106
+ );
107
+ continuationToken = result.nextLink;
108
+ yield result.value || [];
109
+ }
110
+ }
111
+
112
+ private async *listByResourcePagingAll(
113
+ resourceGroupName: string,
114
+ parentType: Enum21,
115
+ parentName: string,
116
+ options?: PrivateEndpointConnectionsListByResourceOptionalParams
117
+ ): AsyncIterableIterator<PrivateEndpointConnection> {
118
+ for await (const page of this.listByResourcePagingPage(
119
+ resourceGroupName,
120
+ parentType,
121
+ parentName,
122
+ options
123
+ )) {
124
+ yield* page;
125
+ }
126
+ }
127
+
52
128
  /**
129
+ * Get a specific private endpoint connection under a topic or domain.
53
130
  * @param resourceGroupName The name of the resource group within the user's subscription.
54
131
  * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
55
- * Possible values include: 'topics', 'domains'
56
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
57
- * name).
132
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
58
133
  * @param privateEndpointConnectionName The name of the private endpoint connection connection.
59
- * @param options The optional parameters
60
- * @param callback The callback
134
+ * @param options The options parameters.
61
135
  */
62
- get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
63
- get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnection>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnection>): Promise<Models.PrivateEndpointConnectionsGetResponse> {
136
+ get(
137
+ resourceGroupName: string,
138
+ parentType: Enum18,
139
+ parentName: string,
140
+ privateEndpointConnectionName: string,
141
+ options?: PrivateEndpointConnectionsGetOptionalParams
142
+ ): Promise<PrivateEndpointConnectionsGetResponse> {
64
143
  return this.client.sendOperationRequest(
65
144
  {
66
145
  resourceGroupName,
@@ -69,129 +148,173 @@ export class PrivateEndpointConnections {
69
148
  privateEndpointConnectionName,
70
149
  options
71
150
  },
72
- getOperationSpec,
73
- callback) as Promise<Models.PrivateEndpointConnectionsGetResponse>;
151
+ getOperationSpec
152
+ );
74
153
  }
75
154
 
76
155
  /**
77
156
  * Update a specific private endpoint connection under a topic or domain.
78
- * @summary Update a specific private endpoint connection.
79
157
  * @param resourceGroupName The name of the resource group within the user's subscription.
80
158
  * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
81
- * Possible values include: 'topics', 'domains'
82
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
83
- * name).
159
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
84
160
  * @param privateEndpointConnectionName The name of the private endpoint connection connection.
85
161
  * @param privateEndpointConnection The private endpoint connection object to update.
86
- * @param [options] The optional parameters
87
- * @returns Promise<Models.PrivateEndpointConnectionsUpdateResponse>
162
+ * @param options The options parameters.
88
163
  */
89
- update(resourceGroupName: string, parentType: Models.ParentType1, parentName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsUpdateResponse> {
90
- return this.beginUpdate(resourceGroupName,parentType,parentName,privateEndpointConnectionName,privateEndpointConnection,options)
91
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PrivateEndpointConnectionsUpdateResponse>;
92
- }
164
+ async beginUpdate(
165
+ resourceGroupName: string,
166
+ parentType: Enum19,
167
+ parentName: string,
168
+ privateEndpointConnectionName: string,
169
+ privateEndpointConnection: PrivateEndpointConnection,
170
+ options?: PrivateEndpointConnectionsUpdateOptionalParams
171
+ ): Promise<
172
+ PollerLike<
173
+ PollOperationState<PrivateEndpointConnectionsUpdateResponse>,
174
+ PrivateEndpointConnectionsUpdateResponse
175
+ >
176
+ > {
177
+ const directSendOperation = async (
178
+ args: coreClient.OperationArguments,
179
+ spec: coreClient.OperationSpec
180
+ ): Promise<PrivateEndpointConnectionsUpdateResponse> => {
181
+ return this.client.sendOperationRequest(args, spec);
182
+ };
183
+ const sendOperation = async (
184
+ args: coreClient.OperationArguments,
185
+ spec: coreClient.OperationSpec
186
+ ) => {
187
+ let currentRawResponse:
188
+ | coreClient.FullOperationResponse
189
+ | undefined = undefined;
190
+ const providedCallback = args.options?.onResponse;
191
+ const callback: coreClient.RawResponseCallback = (
192
+ rawResponse: coreClient.FullOperationResponse,
193
+ flatResponse: unknown
194
+ ) => {
195
+ currentRawResponse = rawResponse;
196
+ providedCallback?.(rawResponse, flatResponse);
197
+ };
198
+ const updatedArgs = {
199
+ ...args,
200
+ options: {
201
+ ...args.options,
202
+ onResponse: callback
203
+ }
204
+ };
205
+ const flatResponse = await directSendOperation(updatedArgs, spec);
206
+ return {
207
+ flatResponse,
208
+ rawResponse: {
209
+ statusCode: currentRawResponse!.status,
210
+ body: currentRawResponse!.parsedBody,
211
+ headers: currentRawResponse!.headers.toJSON()
212
+ }
213
+ };
214
+ };
93
215
 
94
- /**
95
- * Delete a specific private endpoint connection under a topic or domain.
96
- * @summary Delete a specific private endpoint connection.
97
- * @param resourceGroupName The name of the resource group within the user's subscription.
98
- * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
99
- * Possible values include: 'topics', 'domains'
100
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
101
- * name).
102
- * @param privateEndpointConnectionName The name of the private endpoint connection connection.
103
- * @param [options] The optional parameters
104
- * @returns Promise<msRest.RestResponse>
105
- */
106
- deleteMethod(resourceGroupName: string, parentType: Models.ParentType2, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
107
- return this.beginDeleteMethod(resourceGroupName,parentType,parentName,privateEndpointConnectionName,options)
108
- .then(lroPoller => lroPoller.pollUntilFinished());
109
- }
110
-
111
- /**
112
- * Get all private endpoint connections under a topic or domain.
113
- * @summary Lists all private endpoint connections under a resource.
114
- * @param resourceGroupName The name of the resource group within the user's subscription.
115
- * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
116
- * Possible values include: 'topics', 'domains'
117
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
118
- * name).
119
- * @param [options] The optional parameters
120
- * @returns Promise<Models.PrivateEndpointConnectionsListByResourceResponse>
121
- */
122
- listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, options?: Models.PrivateEndpointConnectionsListByResourceOptionalParams): Promise<Models.PrivateEndpointConnectionsListByResourceResponse>;
123
- /**
124
- * @param resourceGroupName The name of the resource group within the user's subscription.
125
- * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
126
- * Possible values include: 'topics', 'domains'
127
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
128
- * name).
129
- * @param callback The callback
130
- */
131
- listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
132
- /**
133
- * @param resourceGroupName The name of the resource group within the user's subscription.
134
- * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
135
- * Possible values include: 'topics', 'domains'
136
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
137
- * name).
138
- * @param options The optional parameters
139
- * @param callback The callback
140
- */
141
- listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, options: Models.PrivateEndpointConnectionsListByResourceOptionalParams, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
142
- listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, options?: Models.PrivateEndpointConnectionsListByResourceOptionalParams | msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): Promise<Models.PrivateEndpointConnectionsListByResourceResponse> {
143
- return this.client.sendOperationRequest(
216
+ const lro = new LroImpl(
217
+ sendOperation,
144
218
  {
145
219
  resourceGroupName,
146
220
  parentType,
147
221
  parentName,
222
+ privateEndpointConnectionName,
223
+ privateEndpointConnection,
148
224
  options
149
225
  },
150
- listByResourceOperationSpec,
151
- callback) as Promise<Models.PrivateEndpointConnectionsListByResourceResponse>;
226
+ updateOperationSpec
227
+ );
228
+ return new LroEngine(lro, {
229
+ resumeFrom: options?.resumeFrom,
230
+ intervalInMs: options?.updateIntervalInMs
231
+ });
152
232
  }
153
233
 
154
234
  /**
155
235
  * Update a specific private endpoint connection under a topic or domain.
156
- * @summary Update a specific private endpoint connection.
157
236
  * @param resourceGroupName The name of the resource group within the user's subscription.
158
237
  * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
159
- * Possible values include: 'topics', 'domains'
160
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
161
- * name).
238
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
162
239
  * @param privateEndpointConnectionName The name of the private endpoint connection connection.
163
240
  * @param privateEndpointConnection The private endpoint connection object to update.
164
- * @param [options] The optional parameters
165
- * @returns Promise<msRestAzure.LROPoller>
241
+ * @param options The options parameters.
166
242
  */
167
- beginUpdate(resourceGroupName: string, parentType: Models.ParentType1, parentName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
168
- return this.client.sendLRORequest(
169
- {
170
- resourceGroupName,
171
- parentType,
172
- parentName,
173
- privateEndpointConnectionName,
174
- privateEndpointConnection,
175
- options
176
- },
177
- beginUpdateOperationSpec,
178
- options);
243
+ async beginUpdateAndWait(
244
+ resourceGroupName: string,
245
+ parentType: Enum19,
246
+ parentName: string,
247
+ privateEndpointConnectionName: string,
248
+ privateEndpointConnection: PrivateEndpointConnection,
249
+ options?: PrivateEndpointConnectionsUpdateOptionalParams
250
+ ): Promise<PrivateEndpointConnectionsUpdateResponse> {
251
+ const poller = await this.beginUpdate(
252
+ resourceGroupName,
253
+ parentType,
254
+ parentName,
255
+ privateEndpointConnectionName,
256
+ privateEndpointConnection,
257
+ options
258
+ );
259
+ return poller.pollUntilDone();
179
260
  }
180
261
 
181
262
  /**
182
263
  * Delete a specific private endpoint connection under a topic or domain.
183
- * @summary Delete a specific private endpoint connection.
184
264
  * @param resourceGroupName The name of the resource group within the user's subscription.
185
265
  * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
186
- * Possible values include: 'topics', 'domains'
187
- * @param parentName The name of the parent resource (namely, either, the topic name or domain
188
- * name).
266
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
189
267
  * @param privateEndpointConnectionName The name of the private endpoint connection connection.
190
- * @param [options] The optional parameters
191
- * @returns Promise<msRestAzure.LROPoller>
268
+ * @param options The options parameters.
192
269
  */
193
- beginDeleteMethod(resourceGroupName: string, parentType: Models.ParentType2, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
194
- return this.client.sendLRORequest(
270
+ async beginDelete(
271
+ resourceGroupName: string,
272
+ parentType: Enum20,
273
+ parentName: string,
274
+ privateEndpointConnectionName: string,
275
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
276
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
277
+ const directSendOperation = async (
278
+ args: coreClient.OperationArguments,
279
+ spec: coreClient.OperationSpec
280
+ ): Promise<void> => {
281
+ return this.client.sendOperationRequest(args, spec);
282
+ };
283
+ const sendOperation = async (
284
+ args: coreClient.OperationArguments,
285
+ spec: coreClient.OperationSpec
286
+ ) => {
287
+ let currentRawResponse:
288
+ | coreClient.FullOperationResponse
289
+ | undefined = undefined;
290
+ const providedCallback = args.options?.onResponse;
291
+ const callback: coreClient.RawResponseCallback = (
292
+ rawResponse: coreClient.FullOperationResponse,
293
+ flatResponse: unknown
294
+ ) => {
295
+ currentRawResponse = rawResponse;
296
+ providedCallback?.(rawResponse, flatResponse);
297
+ };
298
+ const updatedArgs = {
299
+ ...args,
300
+ options: {
301
+ ...args.options,
302
+ onResponse: callback
303
+ }
304
+ };
305
+ const flatResponse = await directSendOperation(updatedArgs, spec);
306
+ return {
307
+ flatResponse,
308
+ rawResponse: {
309
+ statusCode: currentRawResponse!.status,
310
+ body: currentRawResponse!.parsedBody,
311
+ headers: currentRawResponse!.headers.toJSON()
312
+ }
313
+ };
314
+ };
315
+
316
+ const lro = new LroImpl(
317
+ sendOperation,
195
318
  {
196
319
  resourceGroupName,
197
320
  parentType,
@@ -199,182 +322,192 @@ export class PrivateEndpointConnections {
199
322
  privateEndpointConnectionName,
200
323
  options
201
324
  },
202
- beginDeleteMethodOperationSpec,
203
- options);
325
+ deleteOperationSpec
326
+ );
327
+ return new LroEngine(lro, {
328
+ resumeFrom: options?.resumeFrom,
329
+ intervalInMs: options?.updateIntervalInMs
330
+ });
204
331
  }
205
332
 
206
333
  /**
207
- * Get all private endpoint connections under a topic or domain.
208
- * @summary Lists all private endpoint connections under a resource.
209
- * @param nextPageLink The NextLink from the previous successful call to List operation.
210
- * @param [options] The optional parameters
211
- * @returns Promise<Models.PrivateEndpointConnectionsListByResourceNextResponse>
334
+ * Delete a specific private endpoint connection under a topic or domain.
335
+ * @param resourceGroupName The name of the resource group within the user's subscription.
336
+ * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
337
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
338
+ * @param privateEndpointConnectionName The name of the private endpoint connection connection.
339
+ * @param options The options parameters.
212
340
  */
213
- listByResourceNext(nextPageLink: string, options?: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams): Promise<Models.PrivateEndpointConnectionsListByResourceNextResponse>;
341
+ async beginDeleteAndWait(
342
+ resourceGroupName: string,
343
+ parentType: Enum20,
344
+ parentName: string,
345
+ privateEndpointConnectionName: string,
346
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
347
+ ): Promise<void> {
348
+ const poller = await this.beginDelete(
349
+ resourceGroupName,
350
+ parentType,
351
+ parentName,
352
+ privateEndpointConnectionName,
353
+ options
354
+ );
355
+ return poller.pollUntilDone();
356
+ }
357
+
214
358
  /**
215
- * @param nextPageLink The NextLink from the previous successful call to List operation.
216
- * @param callback The callback
359
+ * Get all private endpoint connections under a topic or domain.
360
+ * @param resourceGroupName The name of the resource group within the user's subscription.
361
+ * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
362
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
363
+ * @param options The options parameters.
217
364
  */
218
- listByResourceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
365
+ private _listByResource(
366
+ resourceGroupName: string,
367
+ parentType: Enum21,
368
+ parentName: string,
369
+ options?: PrivateEndpointConnectionsListByResourceOptionalParams
370
+ ): Promise<PrivateEndpointConnectionsListByResourceResponse> {
371
+ return this.client.sendOperationRequest(
372
+ { resourceGroupName, parentType, parentName, options },
373
+ listByResourceOperationSpec
374
+ );
375
+ }
376
+
219
377
  /**
220
- * @param nextPageLink The NextLink from the previous successful call to List operation.
221
- * @param options The optional parameters
222
- * @param callback The callback
378
+ * ListByResourceNext
379
+ * @param resourceGroupName The name of the resource group within the user's subscription.
380
+ * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
381
+ * @param parentName The name of the parent resource (namely, either, the topic name or domain name).
382
+ * @param nextLink The nextLink from the previous successful call to the ListByResource method.
383
+ * @param options The options parameters.
223
384
  */
224
- listByResourceNext(nextPageLink: string, options: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
225
- listByResourceNext(nextPageLink: string, options?: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams | msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): Promise<Models.PrivateEndpointConnectionsListByResourceNextResponse> {
385
+ private _listByResourceNext(
386
+ resourceGroupName: string,
387
+ parentType: Enum21,
388
+ parentName: string,
389
+ nextLink: string,
390
+ options?: PrivateEndpointConnectionsListByResourceNextOptionalParams
391
+ ): Promise<PrivateEndpointConnectionsListByResourceNextResponse> {
226
392
  return this.client.sendOperationRequest(
227
- {
228
- nextPageLink,
229
- options
230
- },
231
- listByResourceNextOperationSpec,
232
- callback) as Promise<Models.PrivateEndpointConnectionsListByResourceNextResponse>;
393
+ { resourceGroupName, parentType, parentName, nextLink, options },
394
+ listByResourceNextOperationSpec
395
+ );
233
396
  }
234
397
  }
235
-
236
398
  // Operation Specifications
237
- const serializer = new msRest.Serializer(Mappers);
238
- const getOperationSpec: msRest.OperationSpec = {
399
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
400
+
401
+ const getOperationSpec: coreClient.OperationSpec = {
402
+ path:
403
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
239
404
  httpMethod: "GET",
240
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
405
+ responses: {
406
+ 200: {
407
+ bodyMapper: Mappers.PrivateEndpointConnection
408
+ },
409
+ default: {}
410
+ },
411
+ queryParameters: [Parameters.apiVersion],
241
412
  urlParameters: [
413
+ Parameters.$host,
242
414
  Parameters.subscriptionId,
243
415
  Parameters.resourceGroupName,
244
416
  Parameters.parentType,
245
417
  Parameters.parentName,
246
418
  Parameters.privateEndpointConnectionName
247
419
  ],
248
- queryParameters: [
249
- Parameters.apiVersion
250
- ],
251
- headerParameters: [
252
- Parameters.acceptLanguage
253
- ],
420
+ headerParameters: [Parameters.accept],
421
+ serializer
422
+ };
423
+ const updateOperationSpec: coreClient.OperationSpec = {
424
+ path:
425
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
426
+ httpMethod: "PUT",
254
427
  responses: {
255
428
  200: {
256
429
  bodyMapper: Mappers.PrivateEndpointConnection
257
430
  },
258
- default: {
259
- bodyMapper: Mappers.CloudError
260
- }
431
+ 201: {
432
+ bodyMapper: Mappers.PrivateEndpointConnection
433
+ },
434
+ 202: {
435
+ bodyMapper: Mappers.PrivateEndpointConnection
436
+ },
437
+ 204: {
438
+ bodyMapper: Mappers.PrivateEndpointConnection
439
+ },
440
+ default: {}
261
441
  },
262
- serializer
263
- };
264
-
265
- const listByResourceOperationSpec: msRest.OperationSpec = {
266
- httpMethod: "GET",
267
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections",
442
+ requestBody: Parameters.privateEndpointConnection,
443
+ queryParameters: [Parameters.apiVersion],
268
444
  urlParameters: [
445
+ Parameters.$host,
269
446
  Parameters.subscriptionId,
270
447
  Parameters.resourceGroupName,
271
- Parameters.parentType,
272
- Parameters.parentName
273
- ],
274
- queryParameters: [
275
- Parameters.apiVersion,
276
- Parameters.filter,
277
- Parameters.top
278
- ],
279
- headerParameters: [
280
- Parameters.acceptLanguage
448
+ Parameters.parentName,
449
+ Parameters.privateEndpointConnectionName,
450
+ Parameters.parentType1
281
451
  ],
282
- responses: {
283
- 200: {
284
- bodyMapper: Mappers.PrivateEndpointConnectionListResult
285
- },
286
- default: {
287
- bodyMapper: Mappers.CloudError
288
- }
289
- },
452
+ headerParameters: [Parameters.accept, Parameters.contentType],
453
+ mediaType: "json",
290
454
  serializer
291
455
  };
292
-
293
- const beginUpdateOperationSpec: msRest.OperationSpec = {
294
- httpMethod: "PUT",
295
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
456
+ const deleteOperationSpec: coreClient.OperationSpec = {
457
+ path:
458
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
459
+ httpMethod: "DELETE",
460
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
461
+ queryParameters: [Parameters.apiVersion],
296
462
  urlParameters: [
463
+ Parameters.$host,
297
464
  Parameters.subscriptionId,
298
465
  Parameters.resourceGroupName,
299
- Parameters.parentType,
300
466
  Parameters.parentName,
301
- Parameters.privateEndpointConnectionName
467
+ Parameters.privateEndpointConnectionName,
468
+ Parameters.parentType2
302
469
  ],
303
- queryParameters: [
304
- Parameters.apiVersion
305
- ],
306
- headerParameters: [
307
- Parameters.acceptLanguage
308
- ],
309
- requestBody: {
310
- parameterPath: "privateEndpointConnection",
311
- mapper: {
312
- ...Mappers.PrivateEndpointConnection,
313
- required: true
314
- }
315
- },
470
+ serializer
471
+ };
472
+ const listByResourceOperationSpec: coreClient.OperationSpec = {
473
+ path:
474
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections",
475
+ httpMethod: "GET",
316
476
  responses: {
317
477
  200: {
318
- bodyMapper: Mappers.PrivateEndpointConnection
319
- },
320
- 201: {
321
- bodyMapper: Mappers.PrivateEndpointConnection
478
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
322
479
  },
323
- default: {
324
- bodyMapper: Mappers.CloudError
325
- }
480
+ default: {}
326
481
  },
327
- serializer
328
- };
329
-
330
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
331
- httpMethod: "DELETE",
332
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}",
482
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
333
483
  urlParameters: [
484
+ Parameters.$host,
334
485
  Parameters.subscriptionId,
335
486
  Parameters.resourceGroupName,
336
- Parameters.parentType,
337
487
  Parameters.parentName,
338
- Parameters.privateEndpointConnectionName
488
+ Parameters.parentType3
339
489
  ],
340
- queryParameters: [
341
- Parameters.apiVersion
342
- ],
343
- headerParameters: [
344
- Parameters.acceptLanguage
345
- ],
346
- responses: {
347
- 202: {},
348
- 204: {},
349
- default: {
350
- bodyMapper: Mappers.CloudError
351
- }
352
- },
490
+ headerParameters: [Parameters.accept],
353
491
  serializer
354
492
  };
355
-
356
- const listByResourceNextOperationSpec: msRest.OperationSpec = {
357
- httpMethod: "GET",
358
- baseUrl: "https://management.azure.com",
493
+ const listByResourceNextOperationSpec: coreClient.OperationSpec = {
359
494
  path: "{nextLink}",
360
- urlParameters: [
361
- Parameters.nextPageLink
362
- ],
363
- queryParameters: [
364
- Parameters.apiVersion,
365
- Parameters.filter,
366
- Parameters.top
367
- ],
368
- headerParameters: [
369
- Parameters.acceptLanguage
370
- ],
495
+ httpMethod: "GET",
371
496
  responses: {
372
497
  200: {
373
498
  bodyMapper: Mappers.PrivateEndpointConnectionListResult
374
499
  },
375
- default: {
376
- bodyMapper: Mappers.CloudError
377
- }
500
+ default: {}
378
501
  },
502
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
503
+ urlParameters: [
504
+ Parameters.$host,
505
+ Parameters.subscriptionId,
506
+ Parameters.resourceGroupName,
507
+ Parameters.nextLink,
508
+ Parameters.parentName,
509
+ Parameters.parentType3
510
+ ],
511
+ headerParameters: [Parameters.accept],
379
512
  serializer
380
513
  };