@azure/arm-eventgrid 30.0.0-alpha.20210929.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +94 -0
  4. package/dist/index.js +10620 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/eventGridManagementClient.d.ts +31 -0
  9. package/dist-esm/src/eventGridManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/eventGridManagementClient.js +38 -0
  11. package/dist-esm/src/eventGridManagementClient.js.map +1 -0
  12. package/dist-esm/src/eventGridManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/eventGridManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/eventGridManagementClientContext.js +50 -0
  15. package/dist-esm/src/eventGridManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +2765 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +289 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +139 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/dist-esm/src/models/mappers.js +2979 -0
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +53 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +415 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/domainTopics.d.ts +79 -0
  37. package/dist-esm/src/operations/domainTopics.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domainTopics.js +310 -0
  39. package/dist-esm/src/operations/domainTopics.js.map +1 -0
  40. package/dist-esm/src/operations/domains.d.ts +122 -0
  41. package/dist-esm/src/operations/domains.d.ts.map +1 -0
  42. package/dist-esm/src/operations/domains.js +522 -0
  43. package/dist-esm/src/operations/domains.js.map +1 -0
  44. package/dist-esm/src/operations/eventChannels.d.ts +72 -0
  45. package/dist-esm/src/operations/eventChannels.d.ts.map +1 -0
  46. package/dist-esm/src/operations/eventChannels.js +269 -0
  47. package/dist-esm/src/operations/eventChannels.js.map +1 -0
  48. package/dist-esm/src/operations/eventSubscriptions.d.ts +404 -0
  49. package/dist-esm/src/operations/eventSubscriptions.d.ts.map +1 -0
  50. package/dist-esm/src/operations/eventSubscriptions.js +1504 -0
  51. package/dist-esm/src/operations/eventSubscriptions.js.map +1 -0
  52. package/dist-esm/src/operations/extensionTopics.d.ts +24 -0
  53. package/dist-esm/src/operations/extensionTopics.d.ts.map +1 -0
  54. package/dist-esm/src/operations/extensionTopics.js +50 -0
  55. package/dist-esm/src/operations/extensionTopics.js.map +1 -0
  56. package/dist-esm/src/operations/index.d.ts +17 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +24 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +26 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +88 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/partnerNamespaces.d.ts +122 -0
  65. package/dist-esm/src/operations/partnerNamespaces.d.ts.map +1 -0
  66. package/dist-esm/src/operations/partnerNamespaces.js +537 -0
  67. package/dist-esm/src/operations/partnerNamespaces.js.map +1 -0
  68. package/dist-esm/src/operations/partnerRegistrations.d.ts +83 -0
  69. package/dist-esm/src/operations/partnerRegistrations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/partnerRegistrations.js +349 -0
  71. package/dist-esm/src/operations/partnerRegistrations.js.map +1 -0
  72. package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts +128 -0
  73. package/dist-esm/src/operations/partnerTopicEventSubscriptions.d.ts.map +1 -0
  74. package/dist-esm/src/operations/partnerTopicEventSubscriptions.js +483 -0
  75. package/dist-esm/src/operations/partnerTopicEventSubscriptions.js.map +1 -0
  76. package/dist-esm/src/operations/partnerTopics.d.ts +97 -0
  77. package/dist-esm/src/operations/partnerTopics.d.ts.map +1 -0
  78. package/dist-esm/src/operations/partnerTopics.js +408 -0
  79. package/dist-esm/src/operations/partnerTopics.js.map +1 -0
  80. package/dist-esm/src/operations/privateEndpointConnections.d.ts +105 -0
  81. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  82. package/dist-esm/src/operations/privateEndpointConnections.js +362 -0
  83. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  84. package/dist-esm/src/operations/privateLinkResources.d.ts +58 -0
  85. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  86. package/dist-esm/src/operations/privateLinkResources.js +184 -0
  87. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  88. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts +128 -0
  89. package/dist-esm/src/operations/systemTopicEventSubscriptions.d.ts.map +1 -0
  90. package/dist-esm/src/operations/systemTopicEventSubscriptions.js +483 -0
  91. package/dist-esm/src/operations/systemTopicEventSubscriptions.js.map +1 -0
  92. package/dist-esm/src/operations/systemTopics.d.ts +107 -0
  93. package/dist-esm/src/operations/systemTopics.d.ts.map +1 -0
  94. package/dist-esm/src/operations/systemTopics.js +482 -0
  95. package/dist-esm/src/operations/systemTopics.js.map +1 -0
  96. package/dist-esm/src/operations/topicTypes.d.ts +46 -0
  97. package/dist-esm/src/operations/topicTypes.d.ts.map +1 -0
  98. package/dist-esm/src/operations/topicTypes.js +175 -0
  99. package/dist-esm/src/operations/topicTypes.js.map +1 -0
  100. package/dist-esm/src/operations/topics.d.ts +150 -0
  101. package/dist-esm/src/operations/topics.d.ts.map +1 -0
  102. package/dist-esm/src/operations/topics.js +656 -0
  103. package/dist-esm/src/operations/topics.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts +54 -0
  105. package/dist-esm/src/operationsInterfaces/domainTopics.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/domainTopics.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/domainTopics.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/domains.d.ts +86 -0
  109. package/dist-esm/src/operationsInterfaces/domains.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/domains.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/domains.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/eventChannels.d.ts +47 -0
  113. package/dist-esm/src/operationsInterfaces/eventChannels.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/eventChannels.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/eventChannels.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts +217 -0
  117. package/dist-esm/src/operationsInterfaces/eventSubscriptions.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/eventSubscriptions.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts +16 -0
  121. package/dist-esm/src/operationsInterfaces/extensionTopics.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/extensionTopics.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/extensionTopics.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/index.js +24 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  129. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts +86 -0
  133. package/dist-esm/src/operationsInterfaces/partnerNamespaces.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/partnerNamespaces.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/partnerNamespaces.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts +47 -0
  137. package/dist-esm/src/operationsInterfaces/partnerRegistrations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/partnerRegistrations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/partnerRegistrations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts +103 -0
  141. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/partnerTopicEventSubscriptions.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts +61 -0
  145. package/dist-esm/src/operationsInterfaces/partnerTopics.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/partnerTopics.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/partnerTopics.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +74 -0
  149. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +27 -0
  153. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts +103 -0
  157. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/systemTopicEventSubscriptions.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts +71 -0
  161. package/dist-esm/src/operationsInterfaces/systemTopics.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/systemTopics.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/systemTopics.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts +23 -0
  165. package/dist-esm/src/operationsInterfaces/topicTypes.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/topicTypes.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/topicTypes.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/topics.d.ts +103 -0
  169. package/dist-esm/src/operationsInterfaces/topics.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/topics.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/topics.js.map +1 -0
  172. package/dist-esm/test/eventgrid_examples.d.ts +2 -0
  173. package/dist-esm/test/eventgrid_examples.d.ts.map +1 -0
  174. package/dist-esm/test/eventgrid_examples.js +163 -0
  175. package/dist-esm/test/eventgrid_examples.js.map +1 -0
  176. package/package.json +102 -0
  177. package/review/arm-eventgrid.api.md +2518 -0
  178. package/rollup.config.js +188 -0
  179. package/src/eventGridManagementClient.ts +101 -0
  180. package/src/eventGridManagementClientContext.ts +71 -0
  181. package/src/index.ts +13 -0
  182. package/src/lroImpl.ts +34 -0
  183. package/src/models/index.ts +3297 -0
  184. package/src/models/mappers.ts +3334 -0
  185. package/src/models/parameters.ts +490 -0
  186. package/src/operations/domainTopics.ts +452 -0
  187. package/src/operations/domains.ts +713 -0
  188. package/src/operations/eventChannels.ts +382 -0
  189. package/src/operations/eventSubscriptions.ts +2077 -0
  190. package/src/operations/extensionTopics.ts +67 -0
  191. package/src/operations/index.ts +24 -0
  192. package/src/operations/operations.ts +96 -0
  193. package/src/operations/partnerNamespaces.ts +729 -0
  194. package/src/operations/partnerRegistrations.ts +440 -0
  195. package/src/operations/partnerTopicEventSubscriptions.ts +699 -0
  196. package/src/operations/partnerTopics.ts +532 -0
  197. package/src/operations/privateEndpointConnections.ts +529 -0
  198. package/src/operations/privateLinkResources.ts +259 -0
  199. package/src/operations/systemTopicEventSubscriptions.ts +699 -0
  200. package/src/operations/systemTopics.ts +656 -0
  201. package/src/operations/topicTypes.ts +202 -0
  202. package/src/operations/topics.ts +921 -0
  203. package/src/operationsInterfaces/domainTopics.ts +105 -0
  204. package/src/operationsInterfaces/domains.ts +162 -0
  205. package/src/operationsInterfaces/eventChannels.ts +89 -0
  206. package/src/operationsInterfaces/eventSubscriptions.ts +339 -0
  207. package/src/operationsInterfaces/extensionTopics.ts +30 -0
  208. package/src/operationsInterfaces/index.ts +24 -0
  209. package/src/operationsInterfaces/operations.ts +22 -0
  210. package/src/operationsInterfaces/partnerNamespaces.ts +162 -0
  211. package/src/operationsInterfaces/partnerRegistrations.ts +91 -0
  212. package/src/operationsInterfaces/partnerTopicEventSubscriptions.ts +190 -0
  213. package/src/operationsInterfaces/partnerTopics.ts +114 -0
  214. package/src/operationsInterfaces/privateEndpointConnections.ts +137 -0
  215. package/src/operationsInterfaces/privateLinkResources.ts +52 -0
  216. package/src/operationsInterfaces/systemTopicEventSubscriptions.ts +190 -0
  217. package/src/operationsInterfaces/systemTopics.ts +139 -0
  218. package/src/operationsInterfaces/topicTypes.ts +47 -0
  219. package/src/operationsInterfaces/topics.ts +197 -0
  220. package/tsconfig.json +19 -0
  221. package/types/arm-eventgrid.d.ts +4299 -0
  222. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,349 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PartnerRegistrations operations. */
14
+ export class PartnerRegistrationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class PartnerRegistrations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * List all the partner registrations under an Azure subscription.
24
+ * @param options The options parameters.
25
+ */
26
+ listBySubscription(options) {
27
+ const iter = this.listBySubscriptionPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listBySubscriptionPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listBySubscriptionPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
42
+ let result = yield __await(this._listBySubscription(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listBySubscriptionPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * List all the partner registrations under a resource group.
72
+ * @param resourceGroupName The name of the resource group within the user's subscription.
73
+ * @param options The options parameters.
74
+ */
75
+ listByResourceGroup(resourceGroupName, options) {
76
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: () => {
85
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
86
+ }
87
+ };
88
+ }
89
+ listByResourceGroupPagingPage(resourceGroupName, options) {
90
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
91
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
92
+ yield yield __await(result.value || []);
93
+ let continuationToken = result.nextLink;
94
+ while (continuationToken) {
95
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
96
+ continuationToken = result.nextLink;
97
+ yield yield __await(result.value || []);
98
+ }
99
+ });
100
+ }
101
+ listByResourceGroupPagingAll(resourceGroupName, options) {
102
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
103
+ var e_2, _a;
104
+ try {
105
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
106
+ const page = _c.value;
107
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
108
+ }
109
+ }
110
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
111
+ finally {
112
+ try {
113
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
114
+ }
115
+ finally { if (e_2) throw e_2.error; }
116
+ }
117
+ });
118
+ }
119
+ /**
120
+ * Gets a partner registration with the specified parameters.
121
+ * @param resourceGroupName The name of the resource group within the user's subscription.
122
+ * @param partnerRegistrationName Name of the partner registration.
123
+ * @param options The options parameters.
124
+ */
125
+ get(resourceGroupName, partnerRegistrationName, options) {
126
+ return this.client.sendOperationRequest({ resourceGroupName, partnerRegistrationName, options }, getOperationSpec);
127
+ }
128
+ /**
129
+ * Creates a new partner registration with the specified parameters.
130
+ * @param resourceGroupName The name of the resource group within the user's subscription.
131
+ * @param partnerRegistrationName Name of the partner registration.
132
+ * @param partnerRegistrationInfo PartnerRegistration information.
133
+ * @param options The options parameters.
134
+ */
135
+ createOrUpdate(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo, options) {
136
+ return this.client.sendOperationRequest({
137
+ resourceGroupName,
138
+ partnerRegistrationName,
139
+ partnerRegistrationInfo,
140
+ options
141
+ }, createOrUpdateOperationSpec);
142
+ }
143
+ /**
144
+ * Deletes a partner registration with the specified parameters.
145
+ * @param resourceGroupName The name of the resource group within the user's subscription.
146
+ * @param partnerRegistrationName Name of the partner registration.
147
+ * @param options The options parameters.
148
+ */
149
+ delete(resourceGroupName, partnerRegistrationName, options) {
150
+ return this.client.sendOperationRequest({ resourceGroupName, partnerRegistrationName, options }, deleteOperationSpec);
151
+ }
152
+ /**
153
+ * Updates a partner registration with the specified parameters.
154
+ * @param resourceGroupName The name of the resource group within the user's subscription.
155
+ * @param partnerRegistrationName Name of the partner registration.
156
+ * @param partnerRegistrationUpdateParameters Partner registration update information.
157
+ * @param options The options parameters.
158
+ */
159
+ update(resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters, options) {
160
+ return this.client.sendOperationRequest({
161
+ resourceGroupName,
162
+ partnerRegistrationName,
163
+ partnerRegistrationUpdateParameters,
164
+ options
165
+ }, updateOperationSpec);
166
+ }
167
+ /**
168
+ * List all the partner registrations under an Azure subscription.
169
+ * @param options The options parameters.
170
+ */
171
+ _listBySubscription(options) {
172
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
173
+ }
174
+ /**
175
+ * List all the partner registrations under a resource group.
176
+ * @param resourceGroupName The name of the resource group within the user's subscription.
177
+ * @param options The options parameters.
178
+ */
179
+ _listByResourceGroup(resourceGroupName, options) {
180
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
181
+ }
182
+ /**
183
+ * ListBySubscriptionNext
184
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
185
+ * @param options The options parameters.
186
+ */
187
+ _listBySubscriptionNext(nextLink, options) {
188
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
189
+ }
190
+ /**
191
+ * ListByResourceGroupNext
192
+ * @param resourceGroupName The name of the resource group within the user's subscription.
193
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
194
+ * @param options The options parameters.
195
+ */
196
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
197
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
198
+ }
199
+ }
200
+ // Operation Specifications
201
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
202
+ const getOperationSpec = {
203
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
204
+ httpMethod: "GET",
205
+ responses: {
206
+ 200: {
207
+ bodyMapper: Mappers.PartnerRegistration
208
+ },
209
+ default: {}
210
+ },
211
+ queryParameters: [Parameters.apiVersion],
212
+ urlParameters: [
213
+ Parameters.$host,
214
+ Parameters.subscriptionId,
215
+ Parameters.resourceGroupName,
216
+ Parameters.partnerRegistrationName
217
+ ],
218
+ headerParameters: [Parameters.accept],
219
+ serializer
220
+ };
221
+ const createOrUpdateOperationSpec = {
222
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
223
+ httpMethod: "PUT",
224
+ responses: {
225
+ 200: {
226
+ bodyMapper: Mappers.PartnerRegistration
227
+ },
228
+ 202: {
229
+ bodyMapper: Mappers.PartnerRegistration
230
+ },
231
+ default: {}
232
+ },
233
+ requestBody: Parameters.partnerRegistrationInfo,
234
+ queryParameters: [Parameters.apiVersion],
235
+ urlParameters: [
236
+ Parameters.$host,
237
+ Parameters.subscriptionId,
238
+ Parameters.resourceGroupName,
239
+ Parameters.partnerRegistrationName
240
+ ],
241
+ headerParameters: [Parameters.accept, Parameters.contentType],
242
+ mediaType: "json",
243
+ serializer
244
+ };
245
+ const deleteOperationSpec = {
246
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
247
+ httpMethod: "DELETE",
248
+ responses: { 200: {}, 202: {}, 204: {}, default: {} },
249
+ queryParameters: [Parameters.apiVersion],
250
+ urlParameters: [
251
+ Parameters.$host,
252
+ Parameters.subscriptionId,
253
+ Parameters.resourceGroupName,
254
+ Parameters.partnerRegistrationName
255
+ ],
256
+ serializer
257
+ };
258
+ const updateOperationSpec = {
259
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}",
260
+ httpMethod: "PATCH",
261
+ responses: {
262
+ 200: {},
263
+ 201: {
264
+ bodyMapper: Mappers.PartnerRegistration
265
+ },
266
+ default: {}
267
+ },
268
+ requestBody: Parameters.partnerRegistrationUpdateParameters,
269
+ queryParameters: [Parameters.apiVersion],
270
+ urlParameters: [
271
+ Parameters.$host,
272
+ Parameters.subscriptionId,
273
+ Parameters.resourceGroupName,
274
+ Parameters.partnerRegistrationName
275
+ ],
276
+ headerParameters: [Parameters.accept, Parameters.contentType],
277
+ mediaType: "json",
278
+ serializer
279
+ };
280
+ const listBySubscriptionOperationSpec = {
281
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerRegistrations",
282
+ httpMethod: "GET",
283
+ responses: {
284
+ 200: {
285
+ bodyMapper: Mappers.PartnerRegistrationsListResult
286
+ },
287
+ default: {}
288
+ },
289
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
290
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
291
+ headerParameters: [Parameters.accept],
292
+ serializer
293
+ };
294
+ const listByResourceGroupOperationSpec = {
295
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations",
296
+ httpMethod: "GET",
297
+ responses: {
298
+ 200: {
299
+ bodyMapper: Mappers.PartnerRegistrationsListResult
300
+ },
301
+ default: {}
302
+ },
303
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.subscriptionId,
307
+ Parameters.resourceGroupName
308
+ ],
309
+ headerParameters: [Parameters.accept],
310
+ serializer
311
+ };
312
+ const listBySubscriptionNextOperationSpec = {
313
+ path: "{nextLink}",
314
+ httpMethod: "GET",
315
+ responses: {
316
+ 200: {
317
+ bodyMapper: Mappers.PartnerRegistrationsListResult
318
+ },
319
+ default: {}
320
+ },
321
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
322
+ urlParameters: [
323
+ Parameters.$host,
324
+ Parameters.subscriptionId,
325
+ Parameters.nextLink
326
+ ],
327
+ headerParameters: [Parameters.accept],
328
+ serializer
329
+ };
330
+ const listByResourceGroupNextOperationSpec = {
331
+ path: "{nextLink}",
332
+ httpMethod: "GET",
333
+ responses: {
334
+ 200: {
335
+ bodyMapper: Mappers.PartnerRegistrationsListResult
336
+ },
337
+ default: {}
338
+ },
339
+ queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
340
+ urlParameters: [
341
+ Parameters.$host,
342
+ Parameters.subscriptionId,
343
+ Parameters.resourceGroupName,
344
+ Parameters.nextLink
345
+ ],
346
+ headerParameters: [Parameters.accept],
347
+ serializer
348
+ };
349
+ //# sourceMappingURL=partnerRegistrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partnerRegistrations.js","sourceRoot":"","sources":["../../../src/operations/partnerRegistrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAsBnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,OAA8D;;YAE9D,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA,CAAC;YACrD,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,uBAAuB,CAAC,iBAAiB,EA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AmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,128 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PartnerTopicEventSubscriptions } from "../operationsInterfaces";
3
+ import { EventGridManagementClientContext } from "../eventGridManagementClientContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { EventSubscription, PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams, PartnerTopicEventSubscriptionsGetOptionalParams, PartnerTopicEventSubscriptionsGetResponse, PartnerTopicEventSubscriptionsCreateOrUpdateOptionalParams, PartnerTopicEventSubscriptionsCreateOrUpdateResponse, PartnerTopicEventSubscriptionsDeleteOptionalParams, EventSubscriptionUpdateParameters, PartnerTopicEventSubscriptionsUpdateOptionalParams, PartnerTopicEventSubscriptionsUpdateResponse, PartnerTopicEventSubscriptionsGetFullUrlOptionalParams, PartnerTopicEventSubscriptionsGetFullUrlResponse, PartnerTopicEventSubscriptionsGetDeliveryAttributesOptionalParams, PartnerTopicEventSubscriptionsGetDeliveryAttributesResponse } from "../models";
6
+ /** Class containing PartnerTopicEventSubscriptions operations. */
7
+ export declare class PartnerTopicEventSubscriptionsImpl implements PartnerTopicEventSubscriptions {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PartnerTopicEventSubscriptions class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: EventGridManagementClientContext);
14
+ /**
15
+ * List event subscriptions that belong to a specific partner topic.
16
+ * @param resourceGroupName The name of the resource group within the user's subscription.
17
+ * @param partnerTopicName Name of the partner topic.
18
+ * @param options The options parameters.
19
+ */
20
+ listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options?: PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams): PagedAsyncIterableIterator<EventSubscription>;
21
+ private listByPartnerTopicPagingPage;
22
+ private listByPartnerTopicPagingAll;
23
+ /**
24
+ * Get an event subscription of a partner topic.
25
+ * @param resourceGroupName The name of the resource group within the user's subscription.
26
+ * @param partnerTopicName Name of the partner topic.
27
+ * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names
28
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
29
+ * @param options The options parameters.
30
+ */
31
+ get(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: PartnerTopicEventSubscriptionsGetOptionalParams): Promise<PartnerTopicEventSubscriptionsGetResponse>;
32
+ /**
33
+ * Asynchronously creates or updates an event subscription of a partner topic with the specified
34
+ * parameters. Existing event subscriptions will be updated with this API.
35
+ * @param resourceGroupName The name of the resource group within the user's subscription.
36
+ * @param partnerTopicName Name of the partner topic.
37
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
38
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
39
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
40
+ * information.
41
+ * @param options The options parameters.
42
+ */
43
+ beginCreateOrUpdate(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: EventSubscription, options?: PartnerTopicEventSubscriptionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PartnerTopicEventSubscriptionsCreateOrUpdateResponse>, PartnerTopicEventSubscriptionsCreateOrUpdateResponse>>;
44
+ /**
45
+ * Asynchronously creates or updates an event subscription of a partner topic with the specified
46
+ * parameters. Existing event subscriptions will be updated with this API.
47
+ * @param resourceGroupName The name of the resource group within the user's subscription.
48
+ * @param partnerTopicName Name of the partner topic.
49
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
50
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
51
+ * @param eventSubscriptionInfo Event subscription properties containing the destination and filter
52
+ * information.
53
+ * @param options The options parameters.
54
+ */
55
+ beginCreateOrUpdateAndWait(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: EventSubscription, options?: PartnerTopicEventSubscriptionsCreateOrUpdateOptionalParams): Promise<PartnerTopicEventSubscriptionsCreateOrUpdateResponse>;
56
+ /**
57
+ * Delete an event subscription of a partner topic.
58
+ * @param resourceGroupName The name of the resource group within the user's subscription.
59
+ * @param partnerTopicName Name of the partner topic.
60
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
61
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
62
+ * @param options The options parameters.
63
+ */
64
+ beginDelete(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: PartnerTopicEventSubscriptionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
65
+ /**
66
+ * Delete an event subscription of a partner topic.
67
+ * @param resourceGroupName The name of the resource group within the user's subscription.
68
+ * @param partnerTopicName Name of the partner topic.
69
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
70
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
71
+ * @param options The options parameters.
72
+ */
73
+ beginDeleteAndWait(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: PartnerTopicEventSubscriptionsDeleteOptionalParams): Promise<void>;
74
+ /**
75
+ * Update event subscription of a partner topic.
76
+ * @param resourceGroupName The name of the resource group within the user's subscription.
77
+ * @param partnerTopicName Name of the partner topic.
78
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
79
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
80
+ * @param eventSubscriptionUpdateParameters Updated event subscription information.
81
+ * @param options The options parameters.
82
+ */
83
+ beginUpdate(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters, options?: PartnerTopicEventSubscriptionsUpdateOptionalParams): Promise<PollerLike<PollOperationState<PartnerTopicEventSubscriptionsUpdateResponse>, PartnerTopicEventSubscriptionsUpdateResponse>>;
84
+ /**
85
+ * Update event subscription of a partner topic.
86
+ * @param resourceGroupName The name of the resource group within the user's subscription.
87
+ * @param partnerTopicName Name of the partner topic.
88
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
89
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
90
+ * @param eventSubscriptionUpdateParameters Updated event subscription information.
91
+ * @param options The options parameters.
92
+ */
93
+ beginUpdateAndWait(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters, options?: PartnerTopicEventSubscriptionsUpdateOptionalParams): Promise<PartnerTopicEventSubscriptionsUpdateResponse>;
94
+ /**
95
+ * Get the full endpoint URL for an event subscription of a partner topic.
96
+ * @param resourceGroupName The name of the resource group within the user's subscription.
97
+ * @param partnerTopicName Name of the partner topic.
98
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
99
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
100
+ * @param options The options parameters.
101
+ */
102
+ getFullUrl(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: PartnerTopicEventSubscriptionsGetFullUrlOptionalParams): Promise<PartnerTopicEventSubscriptionsGetFullUrlResponse>;
103
+ /**
104
+ * List event subscriptions that belong to a specific partner topic.
105
+ * @param resourceGroupName The name of the resource group within the user's subscription.
106
+ * @param partnerTopicName Name of the partner topic.
107
+ * @param options The options parameters.
108
+ */
109
+ private _listByPartnerTopic;
110
+ /**
111
+ * Get all delivery attributes for an event subscription of a partner topic.
112
+ * @param resourceGroupName The name of the resource group within the user's subscription.
113
+ * @param partnerTopicName Name of the partner topic.
114
+ * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names
115
+ * must be between 3 and 100 characters in length and use alphanumeric letters only.
116
+ * @param options The options parameters.
117
+ */
118
+ getDeliveryAttributes(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: PartnerTopicEventSubscriptionsGetDeliveryAttributesOptionalParams): Promise<PartnerTopicEventSubscriptionsGetDeliveryAttributesResponse>;
119
+ /**
120
+ * ListByPartnerTopicNext
121
+ * @param resourceGroupName The name of the resource group within the user's subscription.
122
+ * @param partnerTopicName Name of the partner topic.
123
+ * @param nextLink The nextLink from the previous successful call to the ListByPartnerTopic method.
124
+ * @param options The options parameters.
125
+ */
126
+ private _listByPartnerTopicNext;
127
+ }
128
+ //# sourceMappingURL=partnerTopicEventSubscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partnerTopicEventSubscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/partnerTopicEventSubscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAIzE,OAAO,E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