@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
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { CaCertificatesImpl, ChannelsImpl, ClientGroupsImpl, ClientsImpl, DomainsImpl, DomainTopicsImpl, TopicEventSubscriptionsImpl, DomainEventSubscriptionsImpl, NamespaceTopicEventSubscriptionsImpl, EventSubscriptionsImpl, DomainTopicEventSubscriptionsImpl, SystemTopicEventSubscriptionsImpl, PartnerTopicEventSubscriptionsImpl, NamespacesImpl, NamespaceTopicsImpl, OperationsImpl, TopicsImpl, PartnerConfigurationsImpl, PartnerNamespacesImpl, PartnerRegistrationsImpl, PartnerTopicsImpl, PermissionBindingsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, SystemTopicsImpl, ExtensionTopicsImpl, TopicSpacesImpl, TopicTypesImpl, VerifiedPartnersImpl, } from "./operations/index.js";
11
11
  export class EventGridManagementClient extends coreClient.ServiceClient {
12
+ $host;
13
+ subscriptionId;
14
+ apiVersion;
12
15
  constructor(credentials, subscriptionIdOrOptions, options) {
13
- var _a, _b, _c;
14
16
  if (credentials === undefined) {
15
17
  throw new Error("'credentials' cannot be null");
16
18
  }
@@ -33,12 +35,17 @@ export class EventGridManagementClient extends coreClient.ServiceClient {
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
36
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
38
+ const optionsWithDefaults = {
39
+ ...defaults,
40
+ ...options,
41
+ userAgentOptions: {
37
42
  userAgentPrefix,
38
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
+ },
44
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
45
+ };
39
46
  super(optionsWithDefaults);
40
47
  let bearerTokenAuthenticationPolicyFound = false;
41
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
42
49
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
43
50
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
44
51
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -52,7 +59,8 @@ export class EventGridManagementClient extends coreClient.ServiceClient {
52
59
  });
53
60
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
54
61
  credential: credentials,
55
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
62
+ scopes: optionsWithDefaults.credentialScopes ??
63
+ `${optionsWithDefaults.endpoint}/.default`,
56
64
  challengeCallbacks: {
57
65
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
58
66
  },
@@ -121,5 +129,34 @@ export class EventGridManagementClient extends coreClient.ServiceClient {
121
129
  };
122
130
  this.pipeline.addPolicy(apiVersionPolicy);
123
131
  }
132
+ caCertificates;
133
+ channels;
134
+ clientGroups;
135
+ clients;
136
+ domains;
137
+ domainTopics;
138
+ topicEventSubscriptions;
139
+ domainEventSubscriptions;
140
+ namespaceTopicEventSubscriptions;
141
+ eventSubscriptions;
142
+ domainTopicEventSubscriptions;
143
+ systemTopicEventSubscriptions;
144
+ partnerTopicEventSubscriptions;
145
+ namespaces;
146
+ namespaceTopics;
147
+ operations;
148
+ topics;
149
+ partnerConfigurations;
150
+ partnerNamespaces;
151
+ partnerRegistrations;
152
+ partnerTopics;
153
+ permissionBindings;
154
+ privateEndpointConnections;
155
+ privateLinkResources;
156
+ systemTopics;
157
+ extensionTopics;
158
+ topicSpaces;
159
+ topicTypes;
160
+ verifiedPartners;
124
161
  }
125
162
  //# sourceMappingURL=eventGridManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"eventGridManagementClient.js","sourceRoot":"","sources":["../../src/eventGridManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,oCAAoC,EACpC,sBAAsB,EACtB,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EAClC,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAkC/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IAqBrE,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC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CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA+BF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n CaCertificatesImpl,\n ChannelsImpl,\n ClientGroupsImpl,\n ClientsImpl,\n DomainsImpl,\n DomainTopicsImpl,\n TopicEventSubscriptionsImpl,\n DomainEventSubscriptionsImpl,\n NamespaceTopicEventSubscriptionsImpl,\n EventSubscriptionsImpl,\n DomainTopicEventSubscriptionsImpl,\n SystemTopicEventSubscriptionsImpl,\n PartnerTopicEventSubscriptionsImpl,\n NamespacesImpl,\n NamespaceTopicsImpl,\n OperationsImpl,\n TopicsImpl,\n PartnerConfigurationsImpl,\n PartnerNamespacesImpl,\n PartnerRegistrationsImpl,\n PartnerTopicsImpl,\n PermissionBindingsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n SystemTopicsImpl,\n ExtensionTopicsImpl,\n TopicSpacesImpl,\n TopicTypesImpl,\n VerifiedPartnersImpl,\n} from \"./operations/index.js\";\nimport {\n CaCertificates,\n Channels,\n ClientGroups,\n Clients,\n Domains,\n DomainTopics,\n TopicEventSubscriptions,\n DomainEventSubscriptions,\n NamespaceTopicEventSubscriptions,\n EventSubscriptions,\n DomainTopicEventSubscriptions,\n SystemTopicEventSubscriptions,\n PartnerTopicEventSubscriptions,\n Namespaces,\n NamespaceTopics,\n Operations,\n Topics,\n PartnerConfigurations,\n PartnerNamespaces,\n PartnerRegistrations,\n PartnerTopics,\n PermissionBindings,\n PrivateEndpointConnections,\n PrivateLinkResources,\n SystemTopics,\n ExtensionTopics,\n TopicSpaces,\n TopicTypes,\n VerifiedPartners,\n} from \"./operationsInterfaces/index.js\";\nimport { EventGridManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class EventGridManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the EventGridManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: EventGridManagementClientOptionalParams | string,\n options?: EventGridManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: EventGridManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-eventgrid/14.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-15\";\n this.caCertificates = new CaCertificatesImpl(this);\n this.channels = new ChannelsImpl(this);\n this.clientGroups = new ClientGroupsImpl(this);\n this.clients = new ClientsImpl(this);\n this.domains = new DomainsImpl(this);\n this.domainTopics = new DomainTopicsImpl(this);\n this.topicEventSubscriptions = new TopicEventSubscriptionsImpl(this);\n this.domainEventSubscriptions = new DomainEventSubscriptionsImpl(this);\n this.namespaceTopicEventSubscriptions =\n new NamespaceTopicEventSubscriptionsImpl(this);\n this.eventSubscriptions = new EventSubscriptionsImpl(this);\n this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(\n this,\n );\n this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsImpl(\n this,\n );\n this.partnerTopicEventSubscriptions =\n new PartnerTopicEventSubscriptionsImpl(this);\n this.namespaces = new NamespacesImpl(this);\n this.namespaceTopics = new NamespaceTopicsImpl(this);\n this.operations = new OperationsImpl(this);\n this.topics = new TopicsImpl(this);\n this.partnerConfigurations = new PartnerConfigurationsImpl(this);\n this.partnerNamespaces = new PartnerNamespacesImpl(this);\n this.partnerRegistrations = new PartnerRegistrationsImpl(this);\n this.partnerTopics = new PartnerTopicsImpl(this);\n this.permissionBindings = new PermissionBindingsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.systemTopics = new SystemTopicsImpl(this);\n this.extensionTopics = new ExtensionTopicsImpl(this);\n this.topicSpaces = new TopicSpacesImpl(this);\n this.topicTypes = new TopicTypesImpl(this);\n this.verifiedPartners = new VerifiedPartnersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n caCertificates: CaCertificates;\n channels: Channels;\n clientGroups: ClientGroups;\n clients: Clients;\n domains: Domains;\n domainTopics: DomainTopics;\n topicEventSubscriptions: TopicEventSubscriptions;\n domainEventSubscriptions: DomainEventSubscriptions;\n namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;\n eventSubscriptions: EventSubscriptions;\n domainTopicEventSubscriptions: DomainTopicEventSubscriptions;\n systemTopicEventSubscriptions: SystemTopicEventSubscriptions;\n partnerTopicEventSubscriptions: PartnerTopicEventSubscriptions;\n namespaces: Namespaces;\n namespaceTopics: NamespaceTopics;\n operations: Operations;\n topics: Topics;\n partnerConfigurations: PartnerConfigurations;\n partnerNamespaces: PartnerNamespaces;\n partnerRegistrations: PartnerRegistrations;\n partnerTopics: PartnerTopics;\n permissionBindings: PermissionBindings;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n systemTopics: SystemTopics;\n extensionTopics: ExtensionTopics;\n topicSpaces: TopicSpaces;\n topicTypes: TopicTypes;\n verifiedPartners: VerifiedPartners;\n}\n"]}
1
+ {"version":3,"file":"eventGridManagementClient.js","sourceRoot":"","sources":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kB;IACjC,UAAU,CAAa;IACvB,MAAM,CAAS;IACf,qBAAqB,CAAwB;IAC7C,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,aAAa,CAAgB;IAC7B,kBAAkB,CAAqB;IACvC,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;IAC3C,YAAY,CAAe;IAC3B,eAAe,CAAkB;IACjC,WAAW,CAAc;IACzB,UAAU,CAAa;IACvB,gBAAgB,CAAmB;CACpC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n CaCertificatesImpl,\n ChannelsImpl,\n ClientGroupsImpl,\n ClientsImpl,\n DomainsImpl,\n DomainTopicsImpl,\n TopicEventSubscriptionsImpl,\n DomainEventSubscriptionsImpl,\n NamespaceTopicEventSubscriptionsImpl,\n EventSubscriptionsImpl,\n DomainTopicEventSubscriptionsImpl,\n SystemTopicEventSubscriptionsImpl,\n PartnerTopicEventSubscriptionsImpl,\n NamespacesImpl,\n NamespaceTopicsImpl,\n OperationsImpl,\n TopicsImpl,\n PartnerConfigurationsImpl,\n PartnerNamespacesImpl,\n PartnerRegistrationsImpl,\n PartnerTopicsImpl,\n PermissionBindingsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n SystemTopicsImpl,\n ExtensionTopicsImpl,\n TopicSpacesImpl,\n TopicTypesImpl,\n VerifiedPartnersImpl,\n} from \"./operations/index.js\";\nimport {\n CaCertificates,\n Channels,\n ClientGroups,\n Clients,\n Domains,\n DomainTopics,\n TopicEventSubscriptions,\n DomainEventSubscriptions,\n NamespaceTopicEventSubscriptions,\n EventSubscriptions,\n DomainTopicEventSubscriptions,\n SystemTopicEventSubscriptions,\n PartnerTopicEventSubscriptions,\n Namespaces,\n NamespaceTopics,\n Operations,\n Topics,\n PartnerConfigurations,\n PartnerNamespaces,\n PartnerRegistrations,\n PartnerTopics,\n PermissionBindings,\n PrivateEndpointConnections,\n PrivateLinkResources,\n SystemTopics,\n ExtensionTopics,\n TopicSpaces,\n TopicTypes,\n VerifiedPartners,\n} from \"./operationsInterfaces/index.js\";\nimport { EventGridManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class EventGridManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the EventGridManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: EventGridManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: EventGridManagementClientOptionalParams | string,\n options?: EventGridManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: EventGridManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-eventgrid/14.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-15\";\n this.caCertificates = new CaCertificatesImpl(this);\n this.channels = new ChannelsImpl(this);\n this.clientGroups = new ClientGroupsImpl(this);\n this.clients = new ClientsImpl(this);\n this.domains = new DomainsImpl(this);\n this.domainTopics = new DomainTopicsImpl(this);\n this.topicEventSubscriptions = new TopicEventSubscriptionsImpl(this);\n this.domainEventSubscriptions = new DomainEventSubscriptionsImpl(this);\n this.namespaceTopicEventSubscriptions =\n new NamespaceTopicEventSubscriptionsImpl(this);\n this.eventSubscriptions = new EventSubscriptionsImpl(this);\n this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsImpl(\n this,\n );\n this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsImpl(\n this,\n );\n this.partnerTopicEventSubscriptions =\n new PartnerTopicEventSubscriptionsImpl(this);\n this.namespaces = new NamespacesImpl(this);\n this.namespaceTopics = new NamespaceTopicsImpl(this);\n this.operations = new OperationsImpl(this);\n this.topics = new TopicsImpl(this);\n this.partnerConfigurations = new PartnerConfigurationsImpl(this);\n this.partnerNamespaces = new PartnerNamespacesImpl(this);\n this.partnerRegistrations = new PartnerRegistrationsImpl(this);\n this.partnerTopics = new PartnerTopicsImpl(this);\n this.permissionBindings = new PermissionBindingsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.systemTopics = new SystemTopicsImpl(this);\n this.extensionTopics = new ExtensionTopicsImpl(this);\n this.topicSpaces = new TopicSpacesImpl(this);\n this.topicTypes = new TopicTypesImpl(this);\n this.verifiedPartners = new VerifiedPartnersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n caCertificates: CaCertificates;\n channels: Channels;\n clientGroups: ClientGroups;\n clients: Clients;\n domains: Domains;\n domainTopics: DomainTopics;\n topicEventSubscriptions: TopicEventSubscriptions;\n domainEventSubscriptions: DomainEventSubscriptions;\n namespaceTopicEventSubscriptions: NamespaceTopicEventSubscriptions;\n eventSubscriptions: EventSubscriptions;\n domainTopicEventSubscriptions: DomainTopicEventSubscriptions;\n systemTopicEventSubscriptions: SystemTopicEventSubscriptions;\n partnerTopicEventSubscriptions: PartnerTopicEventSubscriptions;\n namespaces: Namespaces;\n namespaceTopics: NamespaceTopics;\n operations: Operations;\n topics: Topics;\n partnerConfigurations: PartnerConfigurations;\n partnerNamespaces: PartnerNamespaces;\n partnerRegistrations: PartnerRegistrations;\n partnerTopics: PartnerTopics;\n permissionBindings: PermissionBindings;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n systemTopics: SystemTopics;\n extensionTopics: ExtensionTopics;\n topicSpaces: TopicSpaces;\n topicTypes: TopicTypes;\n verifiedPartners: VerifiedPartners;\n}\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}