@azure/arm-eventgrid 14.2.0-alpha.20250718.1 → 14.2.0-alpha.20250722.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 (267) hide show
  1. package/dist/browser/eventGridManagementClient.js +42 -5
  2. package/dist/browser/eventGridManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +700 -312
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/caCertificates.js +45 -52
  8. package/dist/browser/operations/caCertificates.js.map +1 -1
  9. package/dist/browser/operations/channels.js +34 -46
  10. package/dist/browser/operations/channels.js.map +1 -1
  11. package/dist/browser/operations/clientGroups.js +45 -52
  12. package/dist/browser/operations/clientGroups.js.map +1 -1
  13. package/dist/browser/operations/clients.js +45 -52
  14. package/dist/browser/operations/clients.js.map +1 -1
  15. package/dist/browser/operations/domainEventSubscriptions.js +56 -58
  16. package/dist/browser/operations/domainEventSubscriptions.js.map +1 -1
  17. package/dist/browser/operations/domainTopicEventSubscriptions.js +56 -58
  18. package/dist/browser/operations/domainTopicEventSubscriptions.js.map +1 -1
  19. package/dist/browser/operations/domainTopics.js +45 -52
  20. package/dist/browser/operations/domainTopics.js.map +1 -1
  21. package/dist/browser/operations/domains.js +78 -97
  22. package/dist/browser/operations/domains.js.map +1 -1
  23. package/dist/browser/operations/eventSubscriptions.js +254 -409
  24. package/dist/browser/operations/eventSubscriptions.js.map +1 -1
  25. package/dist/browser/operations/extensionTopics.js +1 -0
  26. package/dist/browser/operations/extensionTopics.js.map +1 -1
  27. package/dist/browser/operations/namespaceTopicEventSubscriptions.js +56 -58
  28. package/dist/browser/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  29. package/dist/browser/operations/namespaceTopics.js +67 -64
  30. package/dist/browser/operations/namespaceTopics.js.map +1 -1
  31. package/dist/browser/operations/namespaces.js +100 -109
  32. package/dist/browser/operations/namespaces.js.map +1 -1
  33. package/dist/browser/operations/operations.js +10 -27
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/partnerConfigurations.js +65 -84
  36. package/dist/browser/operations/partnerConfigurations.js.map +1 -1
  37. package/dist/browser/operations/partnerNamespaces.js +78 -97
  38. package/dist/browser/operations/partnerNamespaces.js.map +1 -1
  39. package/dist/browser/operations/partnerRegistrations.js +78 -97
  40. package/dist/browser/operations/partnerRegistrations.js.map +1 -1
  41. package/dist/browser/operations/partnerTopicEventSubscriptions.js +56 -58
  42. package/dist/browser/operations/partnerTopicEventSubscriptions.js.map +1 -1
  43. package/dist/browser/operations/partnerTopics.js +56 -85
  44. package/dist/browser/operations/partnerTopics.js.map +1 -1
  45. package/dist/browser/operations/permissionBindings.js +45 -52
  46. package/dist/browser/operations/permissionBindings.js.map +1 -1
  47. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  48. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  49. package/dist/browser/operations/privateLinkResources.js +23 -40
  50. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  51. package/dist/browser/operations/systemTopicEventSubscriptions.js +56 -58
  52. package/dist/browser/operations/systemTopicEventSubscriptions.js.map +1 -1
  53. package/dist/browser/operations/systemTopics.js +78 -97
  54. package/dist/browser/operations/systemTopics.js.map +1 -1
  55. package/dist/browser/operations/topicEventSubscriptions.js +56 -58
  56. package/dist/browser/operations/topicEventSubscriptions.js.map +1 -1
  57. package/dist/browser/operations/topicSpaces.js +45 -52
  58. package/dist/browser/operations/topicSpaces.js.map +1 -1
  59. package/dist/browser/operations/topicTypes.js +19 -53
  60. package/dist/browser/operations/topicTypes.js.map +1 -1
  61. package/dist/browser/operations/topics.js +98 -129
  62. package/dist/browser/operations/topics.js.map +1 -1
  63. package/dist/browser/operations/verifiedPartners.js +23 -40
  64. package/dist/browser/operations/verifiedPartners.js.map +1 -1
  65. package/dist/browser/pagingHelper.js +2 -4
  66. package/dist/browser/pagingHelper.js.map +1 -1
  67. package/dist/commonjs/eventGridManagementClient.js +42 -5
  68. package/dist/commonjs/eventGridManagementClient.js.map +1 -1
  69. package/dist/commonjs/lroImpl.js +7 -3
  70. package/dist/commonjs/lroImpl.js.map +1 -1
  71. package/dist/commonjs/models/mappers.js +700 -312
  72. package/dist/commonjs/models/mappers.js.map +1 -1
  73. package/dist/commonjs/operations/caCertificates.js +45 -51
  74. package/dist/commonjs/operations/caCertificates.js.map +1 -1
  75. package/dist/commonjs/operations/channels.js +34 -45
  76. package/dist/commonjs/operations/channels.js.map +1 -1
  77. package/dist/commonjs/operations/clientGroups.js +45 -51
  78. package/dist/commonjs/operations/clientGroups.js.map +1 -1
  79. package/dist/commonjs/operations/clients.js +45 -51
  80. package/dist/commonjs/operations/clients.js.map +1 -1
  81. package/dist/commonjs/operations/domainEventSubscriptions.js +56 -57
  82. package/dist/commonjs/operations/domainEventSubscriptions.js.map +1 -1
  83. package/dist/commonjs/operations/domainTopicEventSubscriptions.js +56 -57
  84. package/dist/commonjs/operations/domainTopicEventSubscriptions.js.map +1 -1
  85. package/dist/commonjs/operations/domainTopics.js +45 -51
  86. package/dist/commonjs/operations/domainTopics.js.map +1 -1
  87. package/dist/commonjs/operations/domains.js +78 -96
  88. package/dist/commonjs/operations/domains.js.map +1 -1
  89. package/dist/commonjs/operations/eventSubscriptions.js +254 -408
  90. package/dist/commonjs/operations/eventSubscriptions.js.map +1 -1
  91. package/dist/commonjs/operations/extensionTopics.js +1 -0
  92. package/dist/commonjs/operations/extensionTopics.js.map +1 -1
  93. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js +56 -57
  94. package/dist/commonjs/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  95. package/dist/commonjs/operations/namespaceTopics.js +67 -63
  96. package/dist/commonjs/operations/namespaceTopics.js.map +1 -1
  97. package/dist/commonjs/operations/namespaces.js +100 -108
  98. package/dist/commonjs/operations/namespaces.js.map +1 -1
  99. package/dist/commonjs/operations/operations.js +10 -26
  100. package/dist/commonjs/operations/operations.js.map +1 -1
  101. package/dist/commonjs/operations/partnerConfigurations.js +65 -83
  102. package/dist/commonjs/operations/partnerConfigurations.js.map +1 -1
  103. package/dist/commonjs/operations/partnerNamespaces.js +78 -96
  104. package/dist/commonjs/operations/partnerNamespaces.js.map +1 -1
  105. package/dist/commonjs/operations/partnerRegistrations.js +78 -96
  106. package/dist/commonjs/operations/partnerRegistrations.js.map +1 -1
  107. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js +56 -57
  108. package/dist/commonjs/operations/partnerTopicEventSubscriptions.js.map +1 -1
  109. package/dist/commonjs/operations/partnerTopics.js +56 -84
  110. package/dist/commonjs/operations/partnerTopics.js.map +1 -1
  111. package/dist/commonjs/operations/permissionBindings.js +45 -51
  112. package/dist/commonjs/operations/permissionBindings.js.map +1 -1
  113. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  114. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  115. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  116. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  117. package/dist/commonjs/operations/systemTopicEventSubscriptions.js +56 -57
  118. package/dist/commonjs/operations/systemTopicEventSubscriptions.js.map +1 -1
  119. package/dist/commonjs/operations/systemTopics.js +78 -96
  120. package/dist/commonjs/operations/systemTopics.js.map +1 -1
  121. package/dist/commonjs/operations/topicEventSubscriptions.js +56 -57
  122. package/dist/commonjs/operations/topicEventSubscriptions.js.map +1 -1
  123. package/dist/commonjs/operations/topicSpaces.js +45 -51
  124. package/dist/commonjs/operations/topicSpaces.js.map +1 -1
  125. package/dist/commonjs/operations/topicTypes.js +19 -52
  126. package/dist/commonjs/operations/topicTypes.js.map +1 -1
  127. package/dist/commonjs/operations/topics.js +98 -128
  128. package/dist/commonjs/operations/topics.js.map +1 -1
  129. package/dist/commonjs/operations/verifiedPartners.js +23 -39
  130. package/dist/commonjs/operations/verifiedPartners.js.map +1 -1
  131. package/dist/commonjs/pagingHelper.js +2 -4
  132. package/dist/commonjs/pagingHelper.js.map +1 -1
  133. package/dist/commonjs/tsdoc-metadata.json +11 -11
  134. package/dist/esm/eventGridManagementClient.js +42 -5
  135. package/dist/esm/eventGridManagementClient.js.map +1 -1
  136. package/dist/esm/lroImpl.js +7 -3
  137. package/dist/esm/lroImpl.js.map +1 -1
  138. package/dist/esm/models/mappers.js +700 -312
  139. package/dist/esm/models/mappers.js.map +1 -1
  140. package/dist/esm/operations/caCertificates.js +45 -52
  141. package/dist/esm/operations/caCertificates.js.map +1 -1
  142. package/dist/esm/operations/channels.js +34 -46
  143. package/dist/esm/operations/channels.js.map +1 -1
  144. package/dist/esm/operations/clientGroups.js +45 -52
  145. package/dist/esm/operations/clientGroups.js.map +1 -1
  146. package/dist/esm/operations/clients.js +45 -52
  147. package/dist/esm/operations/clients.js.map +1 -1
  148. package/dist/esm/operations/domainEventSubscriptions.js +56 -58
  149. package/dist/esm/operations/domainEventSubscriptions.js.map +1 -1
  150. package/dist/esm/operations/domainTopicEventSubscriptions.js +56 -58
  151. package/dist/esm/operations/domainTopicEventSubscriptions.js.map +1 -1
  152. package/dist/esm/operations/domainTopics.js +45 -52
  153. package/dist/esm/operations/domainTopics.js.map +1 -1
  154. package/dist/esm/operations/domains.js +78 -97
  155. package/dist/esm/operations/domains.js.map +1 -1
  156. package/dist/esm/operations/eventSubscriptions.js +254 -409
  157. package/dist/esm/operations/eventSubscriptions.js.map +1 -1
  158. package/dist/esm/operations/extensionTopics.js +1 -0
  159. package/dist/esm/operations/extensionTopics.js.map +1 -1
  160. package/dist/esm/operations/namespaceTopicEventSubscriptions.js +56 -58
  161. package/dist/esm/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  162. package/dist/esm/operations/namespaceTopics.js +67 -64
  163. package/dist/esm/operations/namespaceTopics.js.map +1 -1
  164. package/dist/esm/operations/namespaces.js +100 -109
  165. package/dist/esm/operations/namespaces.js.map +1 -1
  166. package/dist/esm/operations/operations.js +10 -27
  167. package/dist/esm/operations/operations.js.map +1 -1
  168. package/dist/esm/operations/partnerConfigurations.js +65 -84
  169. package/dist/esm/operations/partnerConfigurations.js.map +1 -1
  170. package/dist/esm/operations/partnerNamespaces.js +78 -97
  171. package/dist/esm/operations/partnerNamespaces.js.map +1 -1
  172. package/dist/esm/operations/partnerRegistrations.js +78 -97
  173. package/dist/esm/operations/partnerRegistrations.js.map +1 -1
  174. package/dist/esm/operations/partnerTopicEventSubscriptions.js +56 -58
  175. package/dist/esm/operations/partnerTopicEventSubscriptions.js.map +1 -1
  176. package/dist/esm/operations/partnerTopics.js +56 -85
  177. package/dist/esm/operations/partnerTopics.js.map +1 -1
  178. package/dist/esm/operations/permissionBindings.js +45 -52
  179. package/dist/esm/operations/permissionBindings.js.map +1 -1
  180. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  181. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  182. package/dist/esm/operations/privateLinkResources.js +23 -40
  183. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  184. package/dist/esm/operations/systemTopicEventSubscriptions.js +56 -58
  185. package/dist/esm/operations/systemTopicEventSubscriptions.js.map +1 -1
  186. package/dist/esm/operations/systemTopics.js +78 -97
  187. package/dist/esm/operations/systemTopics.js.map +1 -1
  188. package/dist/esm/operations/topicEventSubscriptions.js +56 -58
  189. package/dist/esm/operations/topicEventSubscriptions.js.map +1 -1
  190. package/dist/esm/operations/topicSpaces.js +45 -52
  191. package/dist/esm/operations/topicSpaces.js.map +1 -1
  192. package/dist/esm/operations/topicTypes.js +19 -53
  193. package/dist/esm/operations/topicTypes.js.map +1 -1
  194. package/dist/esm/operations/topics.js +98 -129
  195. package/dist/esm/operations/topics.js.map +1 -1
  196. package/dist/esm/operations/verifiedPartners.js +23 -40
  197. package/dist/esm/operations/verifiedPartners.js.map +1 -1
  198. package/dist/esm/pagingHelper.js +2 -4
  199. package/dist/esm/pagingHelper.js.map +1 -1
  200. package/dist/react-native/eventGridManagementClient.js +42 -5
  201. package/dist/react-native/eventGridManagementClient.js.map +1 -1
  202. package/dist/react-native/lroImpl.js +7 -3
  203. package/dist/react-native/lroImpl.js.map +1 -1
  204. package/dist/react-native/models/mappers.js +700 -312
  205. package/dist/react-native/models/mappers.js.map +1 -1
  206. package/dist/react-native/operations/caCertificates.js +45 -52
  207. package/dist/react-native/operations/caCertificates.js.map +1 -1
  208. package/dist/react-native/operations/channels.js +34 -46
  209. package/dist/react-native/operations/channels.js.map +1 -1
  210. package/dist/react-native/operations/clientGroups.js +45 -52
  211. package/dist/react-native/operations/clientGroups.js.map +1 -1
  212. package/dist/react-native/operations/clients.js +45 -52
  213. package/dist/react-native/operations/clients.js.map +1 -1
  214. package/dist/react-native/operations/domainEventSubscriptions.js +56 -58
  215. package/dist/react-native/operations/domainEventSubscriptions.js.map +1 -1
  216. package/dist/react-native/operations/domainTopicEventSubscriptions.js +56 -58
  217. package/dist/react-native/operations/domainTopicEventSubscriptions.js.map +1 -1
  218. package/dist/react-native/operations/domainTopics.js +45 -52
  219. package/dist/react-native/operations/domainTopics.js.map +1 -1
  220. package/dist/react-native/operations/domains.js +78 -97
  221. package/dist/react-native/operations/domains.js.map +1 -1
  222. package/dist/react-native/operations/eventSubscriptions.js +254 -409
  223. package/dist/react-native/operations/eventSubscriptions.js.map +1 -1
  224. package/dist/react-native/operations/extensionTopics.js +1 -0
  225. package/dist/react-native/operations/extensionTopics.js.map +1 -1
  226. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js +56 -58
  227. package/dist/react-native/operations/namespaceTopicEventSubscriptions.js.map +1 -1
  228. package/dist/react-native/operations/namespaceTopics.js +67 -64
  229. package/dist/react-native/operations/namespaceTopics.js.map +1 -1
  230. package/dist/react-native/operations/namespaces.js +100 -109
  231. package/dist/react-native/operations/namespaces.js.map +1 -1
  232. package/dist/react-native/operations/operations.js +10 -27
  233. package/dist/react-native/operations/operations.js.map +1 -1
  234. package/dist/react-native/operations/partnerConfigurations.js +65 -84
  235. package/dist/react-native/operations/partnerConfigurations.js.map +1 -1
  236. package/dist/react-native/operations/partnerNamespaces.js +78 -97
  237. package/dist/react-native/operations/partnerNamespaces.js.map +1 -1
  238. package/dist/react-native/operations/partnerRegistrations.js +78 -97
  239. package/dist/react-native/operations/partnerRegistrations.js.map +1 -1
  240. package/dist/react-native/operations/partnerTopicEventSubscriptions.js +56 -58
  241. package/dist/react-native/operations/partnerTopicEventSubscriptions.js.map +1 -1
  242. package/dist/react-native/operations/partnerTopics.js +56 -85
  243. package/dist/react-native/operations/partnerTopics.js.map +1 -1
  244. package/dist/react-native/operations/permissionBindings.js +45 -52
  245. package/dist/react-native/operations/permissionBindings.js.map +1 -1
  246. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  247. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  248. package/dist/react-native/operations/privateLinkResources.js +23 -40
  249. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  250. package/dist/react-native/operations/systemTopicEventSubscriptions.js +56 -58
  251. package/dist/react-native/operations/systemTopicEventSubscriptions.js.map +1 -1
  252. package/dist/react-native/operations/systemTopics.js +78 -97
  253. package/dist/react-native/operations/systemTopics.js.map +1 -1
  254. package/dist/react-native/operations/topicEventSubscriptions.js +56 -58
  255. package/dist/react-native/operations/topicEventSubscriptions.js.map +1 -1
  256. package/dist/react-native/operations/topicSpaces.js +45 -52
  257. package/dist/react-native/operations/topicSpaces.js.map +1 -1
  258. package/dist/react-native/operations/topicTypes.js +19 -53
  259. package/dist/react-native/operations/topicTypes.js.map +1 -1
  260. package/dist/react-native/operations/topics.js +98 -129
  261. package/dist/react-native/operations/topics.js.map +1 -1
  262. package/dist/react-native/operations/verifiedPartners.js +23 -40
  263. package/dist/react-native/operations/verifiedPartners.js.map +1 -1
  264. package/dist/react-native/pagingHelper.js +2 -4
  265. package/dist/react-native/pagingHelper.js.map +1 -1
  266. package/package.json +2 -2
  267. package/review/arm-eventgrid-node.api.md +4226 -4226
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing DomainEventSubscriptions operations. */
20
20
  class DomainEventSubscriptionsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class DomainEventSubscriptions class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class DomainEventSubscriptionsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(resourceGroupName, domainName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(resourceGroupName, domainName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(resourceGroupName, domainName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(resourceGroupName, domainName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(resourceGroupName, domainName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(resourceGroupName, domainName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(resourceGroupName, domainName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(resourceGroupName, domainName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, domainName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(resourceGroupName, domainName, options) {
71
+ for await (const page of this.listPagingPage(resourceGroupName, domainName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Get all delivery attributes for an event subscription for domain.
@@ -123,14 +107,19 @@ class DomainEventSubscriptionsImpl {
123
107
  return this.client.sendOperationRequest(args, spec);
124
108
  };
125
109
  const sendOperationFn = async (args, spec) => {
126
- var _a;
127
110
  let currentRawResponse = undefined;
128
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
111
+ const providedCallback = args.options?.onResponse;
129
112
  const callback = (rawResponse, flatResponse) => {
130
113
  currentRawResponse = rawResponse;
131
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
114
+ providedCallback?.(rawResponse, flatResponse);
115
+ };
116
+ const updatedArgs = {
117
+ ...args,
118
+ options: {
119
+ ...args.options,
120
+ onResponse: callback,
121
+ },
132
122
  };
133
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
134
123
  const flatResponse = await directSendOperation(updatedArgs, spec);
135
124
  return {
136
125
  flatResponse,
@@ -153,8 +142,8 @@ class DomainEventSubscriptionsImpl {
153
142
  spec: createOrUpdateOperationSpec,
154
143
  });
155
144
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
156
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
157
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
145
+ restoreFrom: options?.resumeFrom,
146
+ intervalInMs: options?.updateIntervalInMs,
158
147
  });
159
148
  await poller.poll();
160
149
  return poller;
@@ -185,14 +174,19 @@ class DomainEventSubscriptionsImpl {
185
174
  return this.client.sendOperationRequest(args, spec);
186
175
  };
187
176
  const sendOperationFn = async (args, spec) => {
188
- var _a;
189
177
  let currentRawResponse = undefined;
190
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
178
+ const providedCallback = args.options?.onResponse;
191
179
  const callback = (rawResponse, flatResponse) => {
192
180
  currentRawResponse = rawResponse;
193
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
181
+ providedCallback?.(rawResponse, flatResponse);
182
+ };
183
+ const updatedArgs = {
184
+ ...args,
185
+ options: {
186
+ ...args.options,
187
+ onResponse: callback,
188
+ },
194
189
  };
195
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
196
190
  const flatResponse = await directSendOperation(updatedArgs, spec);
197
191
  return {
198
192
  flatResponse,
@@ -209,8 +203,8 @@ class DomainEventSubscriptionsImpl {
209
203
  spec: deleteOperationSpec,
210
204
  });
211
205
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
212
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
213
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
206
+ restoreFrom: options?.resumeFrom,
207
+ intervalInMs: options?.updateIntervalInMs,
214
208
  });
215
209
  await poller.poll();
216
210
  return poller;
@@ -239,14 +233,19 @@ class DomainEventSubscriptionsImpl {
239
233
  return this.client.sendOperationRequest(args, spec);
240
234
  };
241
235
  const sendOperationFn = async (args, spec) => {
242
- var _a;
243
236
  let currentRawResponse = undefined;
244
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
237
+ const providedCallback = args.options?.onResponse;
245
238
  const callback = (rawResponse, flatResponse) => {
246
239
  currentRawResponse = rawResponse;
247
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
240
+ providedCallback?.(rawResponse, flatResponse);
241
+ };
242
+ const updatedArgs = {
243
+ ...args,
244
+ options: {
245
+ ...args.options,
246
+ onResponse: callback,
247
+ },
248
248
  };
249
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
250
249
  const flatResponse = await directSendOperation(updatedArgs, spec);
251
250
  return {
252
251
  flatResponse,
@@ -269,8 +268,8 @@ class DomainEventSubscriptionsImpl {
269
268
  spec: updateOperationSpec,
270
269
  });
271
270
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
272
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
273
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
271
+ restoreFrom: options?.resumeFrom,
272
+ intervalInMs: options?.updateIntervalInMs,
274
273
  });
275
274
  await poller.poll();
276
275
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"domainEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/domainEventSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,C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GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DomainEventSubscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n EventSubscription,\n DomainEventSubscriptionsListNextOptionalParams,\n DomainEventSubscriptionsListOptionalParams,\n DomainEventSubscriptionsListResponse,\n DomainEventSubscriptionsGetDeliveryAttributesOptionalParams,\n DomainEventSubscriptionsGetDeliveryAttributesResponse,\n DomainEventSubscriptionsGetOptionalParams,\n DomainEventSubscriptionsGetResponse,\n DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n DomainEventSubscriptionsCreateOrUpdateResponse,\n DomainEventSubscriptionsDeleteOptionalParams,\n EventSubscriptionUpdateParameters,\n DomainEventSubscriptionsUpdateOptionalParams,\n DomainEventSubscriptionsUpdateResponse,\n DomainEventSubscriptionsGetFullUrlOptionalParams,\n DomainEventSubscriptionsGetFullUrlResponse,\n DomainEventSubscriptionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DomainEventSubscriptions operations. */\nexport class DomainEventSubscriptionsImpl implements DomainEventSubscriptions {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class DomainEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List all event subscriptions that have been created for a specific topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): PagedAsyncIterableIterator<EventSubscription> {\n const iter = this.listPagingAll(resourceGroupName, domainName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n domainName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventSubscription[]> {\n let result: DomainEventSubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, domainName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n domainName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): AsyncIterableIterator<EventSubscription> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n domainName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all delivery attributes for an event subscription for domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<DomainEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * Get properties of an event subscription of a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetOptionalParams,\n ): Promise<DomainEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates a new event subscription or updates an existing event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DomainEventSubscriptionsCreateOrUpdateResponse>,\n DomainEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DomainEventSubscriptionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DomainEventSubscriptionsCreateOrUpdateResponse,\n OperationState<DomainEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new event subscription or updates an existing event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<DomainEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription for a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, domainName, eventSubscriptionName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an existing event subscription for a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription for a topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: DomainEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DomainEventSubscriptionsUpdateResponse>,\n DomainEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DomainEventSubscriptionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DomainEventSubscriptionsUpdateResponse,\n OperationState<DomainEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription for a topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: DomainEventSubscriptionsUpdateOptionalParams,\n ): Promise<DomainEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the full endpoint URL for an event subscription for domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<DomainEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * List all event subscriptions that have been created for a specific topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): Promise<DomainEventSubscriptionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n domainName: string,\n nextLink: string,\n options?: DomainEventSubscriptionsListNextOptionalParams,\n ): Promise<DomainEventSubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionFullUrl,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.domainName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"domainEventSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/domainEventSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAqB9C,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAA4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AAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DomainEventSubscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { EventGridManagementClient } from \"../eventGridManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n EventSubscription,\n DomainEventSubscriptionsListNextOptionalParams,\n DomainEventSubscriptionsListOptionalParams,\n DomainEventSubscriptionsListResponse,\n DomainEventSubscriptionsGetDeliveryAttributesOptionalParams,\n DomainEventSubscriptionsGetDeliveryAttributesResponse,\n DomainEventSubscriptionsGetOptionalParams,\n DomainEventSubscriptionsGetResponse,\n DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n DomainEventSubscriptionsCreateOrUpdateResponse,\n DomainEventSubscriptionsDeleteOptionalParams,\n EventSubscriptionUpdateParameters,\n DomainEventSubscriptionsUpdateOptionalParams,\n DomainEventSubscriptionsUpdateResponse,\n DomainEventSubscriptionsGetFullUrlOptionalParams,\n DomainEventSubscriptionsGetFullUrlResponse,\n DomainEventSubscriptionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DomainEventSubscriptions operations. */\nexport class DomainEventSubscriptionsImpl implements DomainEventSubscriptions {\n private readonly client: EventGridManagementClient;\n\n /**\n * Initialize a new instance of the class DomainEventSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: EventGridManagementClient) {\n this.client = client;\n }\n\n /**\n * List all event subscriptions that have been created for a specific topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): PagedAsyncIterableIterator<EventSubscription> {\n const iter = this.listPagingAll(resourceGroupName, domainName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n domainName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventSubscription[]> {\n let result: DomainEventSubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, domainName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n domainName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): AsyncIterableIterator<EventSubscription> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n domainName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all delivery attributes for an event subscription for domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getDeliveryAttributes(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetDeliveryAttributesOptionalParams,\n ): Promise<DomainEventSubscriptionsGetDeliveryAttributesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getDeliveryAttributesOperationSpec,\n );\n }\n\n /**\n * Get properties of an event subscription of a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be found.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetOptionalParams,\n ): Promise<DomainEventSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Asynchronously creates a new event subscription or updates an existing event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DomainEventSubscriptionsCreateOrUpdateResponse>,\n DomainEventSubscriptionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DomainEventSubscriptionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DomainEventSubscriptionsCreateOrUpdateResponse,\n OperationState<DomainEventSubscriptionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new event subscription or updates an existing event subscription.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names\n * must be between 3 and 64 characters in length and use alphanumeric letters only.\n * @param eventSubscriptionInfo Event subscription properties containing the destination and filter\n * information.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionInfo: EventSubscription,\n options?: DomainEventSubscriptionsCreateOrUpdateOptionalParams,\n ): Promise<DomainEventSubscriptionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionInfo,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an existing event subscription for a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, domainName, eventSubscriptionName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an existing event subscription for a domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing event subscription for a topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: DomainEventSubscriptionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DomainEventSubscriptionsUpdateResponse>,\n DomainEventSubscriptionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DomainEventSubscriptionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DomainEventSubscriptionsUpdateResponse,\n OperationState<DomainEventSubscriptionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing event subscription for a topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param eventSubscriptionName Name of the event subscription to be updated.\n * @param eventSubscriptionUpdateParameters Updated event subscription information.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters,\n options?: DomainEventSubscriptionsUpdateOptionalParams,\n ): Promise<DomainEventSubscriptionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n domainName,\n eventSubscriptionName,\n eventSubscriptionUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the full endpoint URL for an event subscription for domain.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain topic.\n * @param eventSubscriptionName Name of the event subscription.\n * @param options The options parameters.\n */\n getFullUrl(\n resourceGroupName: string,\n domainName: string,\n eventSubscriptionName: string,\n options?: DomainEventSubscriptionsGetFullUrlOptionalParams,\n ): Promise<DomainEventSubscriptionsGetFullUrlResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, eventSubscriptionName, options },\n getFullUrlOperationSpec,\n );\n }\n\n /**\n * List all event subscriptions that have been created for a specific topic.\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n domainName: string,\n options?: DomainEventSubscriptionsListOptionalParams,\n ): Promise<DomainEventSubscriptionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param domainName Name of the domain.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n domainName: string,\n nextLink: string,\n options?: DomainEventSubscriptionsListNextOptionalParams,\n ): Promise<DomainEventSubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, domainName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getDeliveryAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeliveryAttributeListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscription,\n },\n 201: {\n bodyMapper: Mappers.EventSubscription,\n },\n 202: {\n bodyMapper: Mappers.EventSubscription,\n },\n 204: {\n bodyMapper: Mappers.EventSubscription,\n },\n default: {},\n },\n requestBody: Parameters.eventSubscriptionUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getFullUrlOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionFullUrl,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n Parameters.eventSubscriptionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.domainName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventSubscriptionsListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.domainName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing DomainTopicEventSubscriptions operations. */
20
20
  class DomainTopicEventSubscriptionsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class DomainTopicEventSubscriptions class.
23
24
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class DomainTopicEventSubscriptionsImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listPagingPage(resourceGroupName, domainName, topicName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listPagingPage(resourceGroupName, domainName, topicName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._list(resourceGroupName, domainName, topicName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listNext(resourceGroupName, domainName, topicName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listPagingPage(resourceGroupName, domainName, topicName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._list(resourceGroupName, domainName, topicName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listNext(resourceGroupName, domainName, topicName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listPagingAll(resourceGroupName, domainName, topicName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, domainName, topicName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listPagingAll(resourceGroupName, domainName, topicName, options) {
72
+ for await (const page of this.listPagingPage(resourceGroupName, domainName, topicName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Get properties of a nested event subscription for a domain topic.
@@ -122,14 +106,19 @@ class DomainTopicEventSubscriptionsImpl {
122
106
  return this.client.sendOperationRequest(args, spec);
123
107
  };
124
108
  const sendOperationFn = async (args, spec) => {
125
- var _a;
126
109
  let currentRawResponse = undefined;
127
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
110
+ const providedCallback = args.options?.onResponse;
128
111
  const callback = (rawResponse, flatResponse) => {
129
112
  currentRawResponse = rawResponse;
130
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
113
+ providedCallback?.(rawResponse, flatResponse);
114
+ };
115
+ const updatedArgs = {
116
+ ...args,
117
+ options: {
118
+ ...args.options,
119
+ onResponse: callback,
120
+ },
131
121
  };
132
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
133
122
  const flatResponse = await directSendOperation(updatedArgs, spec);
134
123
  return {
135
124
  flatResponse,
@@ -153,8 +142,8 @@ class DomainTopicEventSubscriptionsImpl {
153
142
  spec: createOrUpdateOperationSpec,
154
143
  });
155
144
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
156
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
157
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
145
+ restoreFrom: options?.resumeFrom,
146
+ intervalInMs: options?.updateIntervalInMs,
158
147
  });
159
148
  await poller.poll();
160
149
  return poller;
@@ -187,14 +176,19 @@ class DomainTopicEventSubscriptionsImpl {
187
176
  return this.client.sendOperationRequest(args, spec);
188
177
  };
189
178
  const sendOperationFn = async (args, spec) => {
190
- var _a;
191
179
  let currentRawResponse = undefined;
192
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
180
+ const providedCallback = args.options?.onResponse;
193
181
  const callback = (rawResponse, flatResponse) => {
194
182
  currentRawResponse = rawResponse;
195
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
183
+ providedCallback?.(rawResponse, flatResponse);
184
+ };
185
+ const updatedArgs = {
186
+ ...args,
187
+ options: {
188
+ ...args.options,
189
+ onResponse: callback,
190
+ },
196
191
  };
197
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
198
192
  const flatResponse = await directSendOperation(updatedArgs, spec);
199
193
  return {
200
194
  flatResponse,
@@ -217,8 +211,8 @@ class DomainTopicEventSubscriptionsImpl {
217
211
  spec: deleteOperationSpec,
218
212
  });
219
213
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
220
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
221
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
214
+ restoreFrom: options?.resumeFrom,
215
+ intervalInMs: options?.updateIntervalInMs,
222
216
  });
223
217
  await poller.poll();
224
218
  return poller;
@@ -249,14 +243,19 @@ class DomainTopicEventSubscriptionsImpl {
249
243
  return this.client.sendOperationRequest(args, spec);
250
244
  };
251
245
  const sendOperationFn = async (args, spec) => {
252
- var _a;
253
246
  let currentRawResponse = undefined;
254
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
247
+ const providedCallback = args.options?.onResponse;
255
248
  const callback = (rawResponse, flatResponse) => {
256
249
  currentRawResponse = rawResponse;
257
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
250
+ providedCallback?.(rawResponse, flatResponse);
251
+ };
252
+ const updatedArgs = {
253
+ ...args,
254
+ options: {
255
+ ...args.options,
256
+ onResponse: callback,
257
+ },
258
258
  };
259
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
260
259
  const flatResponse = await directSendOperation(updatedArgs, spec);
261
260
  return {
262
261
  flatResponse,
@@ -280,8 +279,8 @@ class DomainTopicEventSubscriptionsImpl {
280
279
  spec: updateOperationSpec,
281
280
  });
282
281
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
283
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
284
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
282
+ restoreFrom: options?.resumeFrom,
283
+ intervalInMs: options?.updateIntervalInMs,
285
284
  });
286
285
  await poller.poll();
287
286
  return poller;