@azure/arm-kusto 6.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +8198 -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/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/kustoManagementClient.d.ts +30 -0
  13. package/dist-esm/src/kustoManagementClient.d.ts.map +1 -0
  14. package/dist-esm/src/kustoManagementClient.js +63 -0
  15. package/dist-esm/src/kustoManagementClient.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2023 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +256 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +89 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +1710 -1269
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +46 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +308 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts +81 -0
  33. package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/attachedDatabaseConfigurations.js +342 -0
  35. package/dist-esm/src/operations/attachedDatabaseConfigurations.js.map +1 -0
  36. package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts +81 -0
  37. package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts.map +1 -0
  38. package/dist-esm/src/operations/clusterPrincipalAssignments.js +332 -0
  39. package/dist-esm/src/operations/clusterPrincipalAssignments.js.map +1 -0
  40. package/dist-esm/src/operations/clusters.d.ts +276 -0
  41. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  42. package/dist-esm/src/operations/clusters.js +1317 -0
  43. package/dist-esm/src/operations/clusters.js.map +1 -0
  44. package/dist-esm/src/operations/dataConnections.d.ts +127 -0
  45. package/dist-esm/src/operations/dataConnections.d.ts.map +1 -0
  46. package/dist-esm/src/operations/dataConnections.js +547 -0
  47. package/dist-esm/src/operations/dataConnections.js.map +1 -0
  48. package/dist-esm/src/operations/databasePrincipalAssignments.d.ts +89 -0
  49. package/dist-esm/src/operations/databasePrincipalAssignments.d.ts.map +1 -0
  50. package/dist-esm/src/operations/databasePrincipalAssignments.js +364 -0
  51. package/dist-esm/src/operations/databasePrincipalAssignments.js.map +1 -0
  52. package/dist-esm/src/operations/databases.d.ts +135 -0
  53. package/dist-esm/src/operations/databases.d.ts.map +1 -0
  54. package/dist-esm/src/operations/databases.js +571 -0
  55. package/dist-esm/src/operations/databases.js.map +1 -0
  56. package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +20 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/managedPrivateEndpoints.d.ts +99 -0
  61. package/dist-esm/src/operations/managedPrivateEndpoints.d.ts.map +1 -0
  62. package/dist-esm/src/operations/managedPrivateEndpoints.js +424 -0
  63. package/dist-esm/src/operations/managedPrivateEndpoints.js.map +1 -0
  64. package/dist-esm/src/operations/operations.d.ts +32 -0
  65. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/operations.js +120 -0
  67. package/dist-esm/src/operations/operations.js.map +1 -0
  68. package/dist-esm/src/operations/operationsResults.d.ts +20 -0
  69. package/dist-esm/src/operations/operationsResults.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operationsResults.js +53 -0
  71. package/dist-esm/src/operations/operationsResults.js.map +1 -0
  72. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  73. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateEndpointConnections.js +309 -0
  75. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
  77. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateLinkResources.js +131 -0
  79. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operations/scripts.d.ts +109 -0
  81. package/dist-esm/src/operations/scripts.d.ts.map +1 -0
  82. package/dist-esm/src/operations/scripts.js +442 -0
  83. package/dist-esm/src/operations/scripts.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts +64 -0
  85. package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts.map +1 -0
  86. package/{src/models/operationsResultsMappers.ts → dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js} +2 -2
  87. package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts +64 -0
  89. package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts.map +1 -0
  90. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js} +2 -8
  91. package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/clusters.d.ts +201 -0
  93. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  94. package/{esm/models/operationsResultsMappers.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -2
  95. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/dataConnections.d.ts +109 -0
  97. package/dist-esm/src/operationsInterfaces/dataConnections.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/dataConnections.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/dataConnections.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts +71 -0
  101. package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/databases.d.ts +108 -0
  105. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/databases.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
  109. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/index.js +20 -0
  111. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts +82 -0
  113. package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  117. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/operationsResults.d.ts +12 -0
  121. package/dist-esm/src/operationsInterfaces/operationsResults.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/operationsResults.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/operationsResults.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  125. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  129. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/scripts.d.ts +91 -0
  133. package/dist-esm/src/operationsInterfaces/scripts.d.ts.map +1 -0
  134. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/scripts.js} +2 -1
  135. package/dist-esm/src/operationsInterfaces/scripts.js.map +1 -0
  136. package/dist-esm/test/kusto-client-test.d.ts +4 -0
  137. package/dist-esm/test/kusto-client-test.d.ts.map +1 -0
  138. package/dist-esm/test/kusto-client-test.js +117 -0
  139. package/dist-esm/test/kusto-client-test.js.map +1 -0
  140. package/package.json +65 -22
  141. package/review/arm-kusto.api.md +1798 -0
  142. package/rollup.config.js +181 -24
  143. package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
  144. package/src/kustoManagementClient.ts +112 -49
  145. package/src/lroImpl.ts +34 -0
  146. package/src/models/index.ts +1853 -2535
  147. package/src/models/mappers.ts +1798 -1302
  148. package/src/models/parameters.ts +264 -44
  149. package/src/operations/attachedDatabaseConfigurations.ts +314 -177
  150. package/src/operations/clusterPrincipalAssignments.ts +300 -264
  151. package/src/operations/clusters.ts +1396 -724
  152. package/src/operations/dataConnections.ts +499 -363
  153. package/src/operations/databasePrincipalAssignments.ts +326 -281
  154. package/src/operations/databases.ts +538 -517
  155. package/src/operations/index.ts +5 -3
  156. package/src/operations/managedPrivateEndpoints.ts +599 -0
  157. package/src/operations/operations.ts +85 -85
  158. package/src/operations/operationsResults.ts +34 -60
  159. package/src/operations/privateEndpointConnections.ts +427 -0
  160. package/src/operations/privateLinkResources.ts +167 -0
  161. package/src/operations/scripts.ts +408 -334
  162. package/src/operationsInterfaces/attachedDatabaseConfigurations.ts +125 -0
  163. package/src/operationsInterfaces/clusterPrincipalAssignments.ts +125 -0
  164. package/src/operationsInterfaces/clusters.ts +371 -0
  165. package/src/operationsInterfaces/dataConnections.ts +218 -0
  166. package/src/operationsInterfaces/databasePrincipalAssignments.ts +139 -0
  167. package/src/operationsInterfaces/databases.ts +212 -0
  168. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -4
  169. package/src/operationsInterfaces/managedPrivateEndpoints.ts +162 -0
  170. package/src/operationsInterfaces/operations.ts +22 -0
  171. package/src/operationsInterfaces/operationsResults.ts +27 -0
  172. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  173. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  174. package/src/operationsInterfaces/scripts.ts +177 -0
  175. package/tsconfig.json +14 -6
  176. package/types/arm-kusto.d.ts +3174 -0
  177. package/types/tsdoc-metadata.json +11 -0
  178. package/dist/arm-kusto.js +0 -5320
  179. package/dist/arm-kusto.js.map +0 -1
  180. package/dist/arm-kusto.min.js +0 -1
  181. package/dist/arm-kusto.min.js.map +0 -1
  182. package/esm/kustoManagementClient.d.ts +0 -33
  183. package/esm/kustoManagementClient.d.ts.map +0 -1
  184. package/esm/kustoManagementClient.js +0 -46
  185. package/esm/kustoManagementClient.js.map +0 -1
  186. package/esm/kustoManagementClientContext.d.ts +0 -23
  187. package/esm/kustoManagementClientContext.d.ts.map +0 -1
  188. package/esm/kustoManagementClientContext.js +0 -62
  189. package/esm/kustoManagementClientContext.js.map +0 -1
  190. package/esm/models/attachedDatabaseConfigurationsMappers.d.ts +0 -2
  191. package/esm/models/attachedDatabaseConfigurationsMappers.d.ts.map +0 -1
  192. package/esm/models/attachedDatabaseConfigurationsMappers.js +0 -9
  193. package/esm/models/attachedDatabaseConfigurationsMappers.js.map +0 -1
  194. package/esm/models/clusterPrincipalAssignmentsMappers.d.ts +0 -2
  195. package/esm/models/clusterPrincipalAssignmentsMappers.d.ts.map +0 -1
  196. package/esm/models/clusterPrincipalAssignmentsMappers.js +0 -9
  197. package/esm/models/clusterPrincipalAssignmentsMappers.js.map +0 -1
  198. package/esm/models/clustersMappers.d.ts +0 -2
  199. package/esm/models/clustersMappers.d.ts.map +0 -1
  200. package/esm/models/clustersMappers.js +0 -9
  201. package/esm/models/clustersMappers.js.map +0 -1
  202. package/esm/models/dataConnectionsMappers.d.ts +0 -2
  203. package/esm/models/dataConnectionsMappers.d.ts.map +0 -1
  204. package/esm/models/dataConnectionsMappers.js +0 -9
  205. package/esm/models/dataConnectionsMappers.js.map +0 -1
  206. package/esm/models/databasePrincipalAssignmentsMappers.d.ts +0 -2
  207. package/esm/models/databasePrincipalAssignmentsMappers.d.ts.map +0 -1
  208. package/esm/models/databasePrincipalAssignmentsMappers.js +0 -9
  209. package/esm/models/databasePrincipalAssignmentsMappers.js.map +0 -1
  210. package/esm/models/databasesMappers.d.ts +0 -2
  211. package/esm/models/databasesMappers.d.ts.map +0 -1
  212. package/esm/models/databasesMappers.js +0 -9
  213. package/esm/models/databasesMappers.js.map +0 -1
  214. package/esm/models/index.d.ts +0 -2705
  215. package/esm/models/index.d.ts.map +0 -1
  216. package/esm/models/index.js.map +0 -1
  217. package/esm/models/mappers.d.ts +0 -75
  218. package/esm/models/mappers.d.ts.map +0 -1
  219. package/esm/models/mappers.js.map +0 -1
  220. package/esm/models/operationsMappers.d.ts +0 -2
  221. package/esm/models/operationsMappers.d.ts.map +0 -1
  222. package/esm/models/operationsMappers.js.map +0 -1
  223. package/esm/models/operationsResultsMappers.d.ts +0 -2
  224. package/esm/models/operationsResultsMappers.d.ts.map +0 -1
  225. package/esm/models/operationsResultsMappers.js.map +0 -1
  226. package/esm/models/parameters.d.ts +0 -17
  227. package/esm/models/parameters.d.ts.map +0 -1
  228. package/esm/models/parameters.js +0 -158
  229. package/esm/models/parameters.js.map +0 -1
  230. package/esm/models/scriptsMappers.d.ts +0 -2
  231. package/esm/models/scriptsMappers.d.ts.map +0 -1
  232. package/esm/models/scriptsMappers.js +0 -9
  233. package/esm/models/scriptsMappers.js.map +0 -1
  234. package/esm/operations/attachedDatabaseConfigurations.d.ts +0 -97
  235. package/esm/operations/attachedDatabaseConfigurations.d.ts.map +0 -1
  236. package/esm/operations/attachedDatabaseConfigurations.js +0 -188
  237. package/esm/operations/attachedDatabaseConfigurations.js.map +0 -1
  238. package/esm/operations/clusterPrincipalAssignments.d.ts +0 -121
  239. package/esm/operations/clusterPrincipalAssignments.d.ts.map +0 -1
  240. package/esm/operations/clusterPrincipalAssignments.js +0 -213
  241. package/esm/operations/clusterPrincipalAssignments.js.map +0 -1
  242. package/esm/operations/clusters.d.ts +0 -323
  243. package/esm/operations/clusters.d.ts.map +0 -1
  244. package/esm/operations/clusters.js +0 -620
  245. package/esm/operations/clusters.js.map +0 -1
  246. package/esm/operations/dataConnections.d.ts +0 -176
  247. package/esm/operations/dataConnections.d.ts.map +0 -1
  248. package/esm/operations/dataConnections.js +0 -359
  249. package/esm/operations/dataConnections.js.map +0 -1
  250. package/esm/operations/databasePrincipalAssignments.d.ts +0 -134
  251. package/esm/operations/databasePrincipalAssignments.d.ts.map +0 -1
  252. package/esm/operations/databasePrincipalAssignments.js +0 -235
  253. package/esm/operations/databasePrincipalAssignments.js.map +0 -1
  254. package/esm/operations/databases.d.ts +0 -219
  255. package/esm/operations/databases.d.ts.map +0 -1
  256. package/esm/operations/databases.js +0 -374
  257. package/esm/operations/databases.js.map +0 -1
  258. package/esm/operations/index.d.ts.map +0 -1
  259. package/esm/operations/index.js.map +0 -1
  260. package/esm/operations/operations.d.ts +0 -46
  261. package/esm/operations/operations.d.ts.map +0 -1
  262. package/esm/operations/operations.js +0 -69
  263. package/esm/operations/operations.js.map +0 -1
  264. package/esm/operations/operationsResults.d.ts +0 -34
  265. package/esm/operations/operationsResults.d.ts.map +0 -1
  266. package/esm/operations/operationsResults.js +0 -49
  267. package/esm/operations/operationsResults.js.map +0 -1
  268. package/esm/operations/scripts.d.ts +0 -156
  269. package/esm/operations/scripts.d.ts.map +0 -1
  270. package/esm/operations/scripts.js +0 -300
  271. package/esm/operations/scripts.js.map +0 -1
  272. package/src/kustoManagementClientContext.ts +0 -75
  273. package/src/models/attachedDatabaseConfigurationsMappers.ts +0 -43
  274. package/src/models/clusterPrincipalAssignmentsMappers.ts +0 -45
  275. package/src/models/clustersMappers.ts +0 -54
  276. package/src/models/dataConnectionsMappers.ts +0 -48
  277. package/src/models/databasePrincipalAssignmentsMappers.ts +0 -45
  278. package/src/models/databasesMappers.ts +0 -48
  279. package/src/models/scriptsMappers.ts +0 -45
@@ -0,0 +1,342 @@
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, __awaiter } 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
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing AttachedDatabaseConfigurations operations. */
16
+ export class AttachedDatabaseConfigurationsImpl {
17
+ /**
18
+ * Initialize a new instance of the class AttachedDatabaseConfigurations class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Returns the list of attached database configurations of the given Kusto cluster.
26
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
27
+ * @param clusterName The name of the Kusto cluster.
28
+ * @param options The options parameters.
29
+ */
30
+ listByCluster(resourceGroupName, clusterName, options) {
31
+ const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByClusterPagingPage(resourceGroupName, clusterName, options);
41
+ }
42
+ };
43
+ }
44
+ listByClusterPagingPage(resourceGroupName, clusterName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
46
+ let result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
47
+ yield yield __await(result.value || []);
48
+ });
49
+ }
50
+ listByClusterPagingAll(resourceGroupName, clusterName, options) {
51
+ return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
52
+ var e_1, _a;
53
+ try {
54
+ for (var _b = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
55
+ const page = _c.value;
56
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
57
+ }
58
+ }
59
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
+ finally {
61
+ try {
62
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
63
+ }
64
+ finally { if (e_1) throw e_1.error; }
65
+ }
66
+ });
67
+ }
68
+ /**
69
+ * Checks that the attached database configuration resource name is valid and is not already in use.
70
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
71
+ * @param clusterName The name of the Kusto cluster.
72
+ * @param resourceName The name of the resource.
73
+ * @param options The options parameters.
74
+ */
75
+ checkNameAvailability(resourceGroupName, clusterName, resourceName, options) {
76
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, resourceName, options }, checkNameAvailabilityOperationSpec);
77
+ }
78
+ /**
79
+ * Returns the list of attached database configurations of the given Kusto cluster.
80
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
81
+ * @param clusterName The name of the Kusto cluster.
82
+ * @param options The options parameters.
83
+ */
84
+ _listByCluster(resourceGroupName, clusterName, options) {
85
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
86
+ }
87
+ /**
88
+ * Returns an attached database configuration.
89
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
90
+ * @param clusterName The name of the Kusto cluster.
91
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
92
+ * @param options The options parameters.
93
+ */
94
+ get(resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) {
95
+ return this.client.sendOperationRequest({
96
+ resourceGroupName,
97
+ clusterName,
98
+ attachedDatabaseConfigurationName,
99
+ options
100
+ }, getOperationSpec);
101
+ }
102
+ /**
103
+ * Creates or updates an attached database configuration.
104
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
105
+ * @param clusterName The name of the Kusto cluster.
106
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
107
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
108
+ * @param options The options parameters.
109
+ */
110
+ beginCreateOrUpdate(resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, options) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
113
+ return this.client.sendOperationRequest(args, spec);
114
+ });
115
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
116
+ var _a;
117
+ let currentRawResponse = undefined;
118
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
119
+ const callback = (rawResponse, flatResponse) => {
120
+ currentRawResponse = rawResponse;
121
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
122
+ };
123
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
124
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
125
+ return {
126
+ flatResponse,
127
+ rawResponse: {
128
+ statusCode: currentRawResponse.status,
129
+ body: currentRawResponse.parsedBody,
130
+ headers: currentRawResponse.headers.toJSON()
131
+ }
132
+ };
133
+ });
134
+ const lro = new LroImpl(sendOperation, {
135
+ resourceGroupName,
136
+ clusterName,
137
+ attachedDatabaseConfigurationName,
138
+ parameters,
139
+ options
140
+ }, createOrUpdateOperationSpec);
141
+ return new LroEngine(lro, {
142
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
143
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
144
+ });
145
+ });
146
+ }
147
+ /**
148
+ * Creates or updates an attached database configuration.
149
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
150
+ * @param clusterName The name of the Kusto cluster.
151
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
152
+ * @param parameters The database parameters supplied to the CreateOrUpdate operation.
153
+ * @param options The options parameters.
154
+ */
155
+ beginCreateOrUpdateAndWait(resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, options) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, options);
158
+ return poller.pollUntilDone();
159
+ });
160
+ }
161
+ /**
162
+ * Deletes the attached database configuration with the given name.
163
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
164
+ * @param clusterName The name of the Kusto cluster.
165
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
166
+ * @param options The options parameters.
167
+ */
168
+ beginDelete(resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
171
+ return this.client.sendOperationRequest(args, spec);
172
+ });
173
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
174
+ var _a;
175
+ let currentRawResponse = undefined;
176
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
177
+ const callback = (rawResponse, flatResponse) => {
178
+ currentRawResponse = rawResponse;
179
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
180
+ };
181
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
182
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
183
+ return {
184
+ flatResponse,
185
+ rawResponse: {
186
+ statusCode: currentRawResponse.status,
187
+ body: currentRawResponse.parsedBody,
188
+ headers: currentRawResponse.headers.toJSON()
189
+ }
190
+ };
191
+ });
192
+ const lro = new LroImpl(sendOperation, {
193
+ resourceGroupName,
194
+ clusterName,
195
+ attachedDatabaseConfigurationName,
196
+ options
197
+ }, deleteOperationSpec);
198
+ return new LroEngine(lro, {
199
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
200
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
201
+ });
202
+ });
203
+ }
204
+ /**
205
+ * Deletes the attached database configuration with the given name.
206
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
207
+ * @param clusterName The name of the Kusto cluster.
208
+ * @param attachedDatabaseConfigurationName The name of the attached database configuration.
209
+ * @param options The options parameters.
210
+ */
211
+ beginDeleteAndWait(resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ const poller = yield this.beginDelete(resourceGroupName, clusterName, attachedDatabaseConfigurationName, options);
214
+ return poller.pollUntilDone();
215
+ });
216
+ }
217
+ }
218
+ // Operation Specifications
219
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
220
+ const checkNameAvailabilityOperationSpec = {
221
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurationCheckNameAvailability",
222
+ httpMethod: "POST",
223
+ responses: {
224
+ 200: {
225
+ bodyMapper: Mappers.CheckNameResult
226
+ },
227
+ default: {
228
+ bodyMapper: Mappers.CloudError
229
+ }
230
+ },
231
+ requestBody: Parameters.resourceName1,
232
+ queryParameters: [Parameters.apiVersion],
233
+ urlParameters: [
234
+ Parameters.$host,
235
+ Parameters.resourceGroupName,
236
+ Parameters.clusterName,
237
+ Parameters.subscriptionId
238
+ ],
239
+ headerParameters: [Parameters.accept, Parameters.contentType],
240
+ mediaType: "json",
241
+ serializer
242
+ };
243
+ const listByClusterOperationSpec = {
244
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations",
245
+ httpMethod: "GET",
246
+ responses: {
247
+ 200: {
248
+ bodyMapper: Mappers.AttachedDatabaseConfigurationListResult
249
+ },
250
+ default: {
251
+ bodyMapper: Mappers.CloudError
252
+ }
253
+ },
254
+ queryParameters: [Parameters.apiVersion],
255
+ urlParameters: [
256
+ Parameters.$host,
257
+ Parameters.resourceGroupName,
258
+ Parameters.clusterName,
259
+ Parameters.subscriptionId
260
+ ],
261
+ headerParameters: [Parameters.accept],
262
+ serializer
263
+ };
264
+ const getOperationSpec = {
265
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}",
266
+ httpMethod: "GET",
267
+ responses: {
268
+ 200: {
269
+ bodyMapper: Mappers.AttachedDatabaseConfiguration
270
+ },
271
+ default: {
272
+ bodyMapper: Mappers.CloudError
273
+ }
274
+ },
275
+ queryParameters: [Parameters.apiVersion],
276
+ urlParameters: [
277
+ Parameters.$host,
278
+ Parameters.resourceGroupName,
279
+ Parameters.clusterName,
280
+ Parameters.subscriptionId,
281
+ Parameters.attachedDatabaseConfigurationName
282
+ ],
283
+ headerParameters: [Parameters.accept],
284
+ serializer
285
+ };
286
+ const createOrUpdateOperationSpec = {
287
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}",
288
+ httpMethod: "PUT",
289
+ responses: {
290
+ 200: {
291
+ bodyMapper: Mappers.AttachedDatabaseConfiguration
292
+ },
293
+ 201: {
294
+ bodyMapper: Mappers.AttachedDatabaseConfiguration
295
+ },
296
+ 202: {
297
+ bodyMapper: Mappers.AttachedDatabaseConfiguration
298
+ },
299
+ 204: {
300
+ bodyMapper: Mappers.AttachedDatabaseConfiguration
301
+ },
302
+ default: {
303
+ bodyMapper: Mappers.CloudError
304
+ }
305
+ },
306
+ requestBody: Parameters.parameters4,
307
+ queryParameters: [Parameters.apiVersion],
308
+ urlParameters: [
309
+ Parameters.$host,
310
+ Parameters.resourceGroupName,
311
+ Parameters.clusterName,
312
+ Parameters.subscriptionId,
313
+ Parameters.attachedDatabaseConfigurationName
314
+ ],
315
+ headerParameters: [Parameters.accept, Parameters.contentType],
316
+ mediaType: "json",
317
+ serializer
318
+ };
319
+ const deleteOperationSpec = {
320
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}",
321
+ httpMethod: "DELETE",
322
+ responses: {
323
+ 200: {},
324
+ 201: {},
325
+ 202: {},
326
+ 204: {},
327
+ default: {
328
+ bodyMapper: Mappers.CloudError
329
+ }
330
+ },
331
+ queryParameters: [Parameters.apiVersion],
332
+ urlParameters: [
333
+ Parameters.$host,
334
+ Parameters.resourceGroupName,
335
+ Parameters.clusterName,
336
+ Parameters.subscriptionId,
337
+ Parameters.attachedDatabaseConfigurationName
338
+ ],
339
+ headerParameters: [Parameters.accept],
340
+ serializer
341
+ };
342
+ //# sourceMappingURL=attachedDatabaseConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachedDatabaseConfigurations.js","sourceRoot":"","sources":["../../../src/operations/attachedDatabaseConfigurations.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;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAerC,4CAA4C;AAC5C,kEAAkE;AAClE,MAAM,OAAO,kCAAkC;IAI7C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,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,uBAAuB,CACjC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,uBAAuB,CACpC,iBAAyB,EACzB,WAAmB,EACnB,OAAmE;;YAEnE,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,cAAc,CACpC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,CAAC;YACF,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,sBAAsB,CACnC,iBAAyB,EACzB,WA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D;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,wLAAwL;IAC1L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ClusterPrincipalAssignments } from "../operationsInterfaces";
3
+ import { KustoManagementClient } from "../kustoManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { ClusterPrincipalAssignment, ClusterPrincipalAssignmentsListOptionalParams, ClusterPrincipalAssignmentCheckNameRequest, ClusterPrincipalAssignmentsCheckNameAvailabilityOptionalParams, ClusterPrincipalAssignmentsCheckNameAvailabilityResponse, ClusterPrincipalAssignmentsGetOptionalParams, ClusterPrincipalAssignmentsGetResponse, ClusterPrincipalAssignmentsCreateOrUpdateOptionalParams, ClusterPrincipalAssignmentsCreateOrUpdateResponse, ClusterPrincipalAssignmentsDeleteOptionalParams } from "../models";
6
+ /** Class containing ClusterPrincipalAssignments operations. */
7
+ export declare class ClusterPrincipalAssignmentsImpl implements ClusterPrincipalAssignments {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class ClusterPrincipalAssignments class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: KustoManagementClient);
14
+ /**
15
+ * Lists all Kusto cluster principalAssignments.
16
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
17
+ * @param clusterName The name of the Kusto cluster.
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, clusterName: string, options?: ClusterPrincipalAssignmentsListOptionalParams): PagedAsyncIterableIterator<ClusterPrincipalAssignment>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Checks that the principal assignment name is valid and is not already in use.
25
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
26
+ * @param clusterName The name of the Kusto cluster.
27
+ * @param principalAssignmentName The name of the principal assignment.
28
+ * @param options The options parameters.
29
+ */
30
+ checkNameAvailability(resourceGroupName: string, clusterName: string, principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, options?: ClusterPrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise<ClusterPrincipalAssignmentsCheckNameAvailabilityResponse>;
31
+ /**
32
+ * Gets a Kusto cluster principalAssignment.
33
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
34
+ * @param clusterName The name of the Kusto cluster.
35
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
36
+ * @param options The options parameters.
37
+ */
38
+ get(resourceGroupName: string, clusterName: string, principalAssignmentName: string, options?: ClusterPrincipalAssignmentsGetOptionalParams): Promise<ClusterPrincipalAssignmentsGetResponse>;
39
+ /**
40
+ * Create a Kusto cluster principalAssignment.
41
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
42
+ * @param clusterName The name of the Kusto cluster.
43
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
44
+ * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation.
45
+ * @param options The options parameters.
46
+ */
47
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, principalAssignmentName: string, parameters: ClusterPrincipalAssignment, options?: ClusterPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ClusterPrincipalAssignmentsCreateOrUpdateResponse>, ClusterPrincipalAssignmentsCreateOrUpdateResponse>>;
48
+ /**
49
+ * Create a Kusto cluster principalAssignment.
50
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
51
+ * @param clusterName The name of the Kusto cluster.
52
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
53
+ * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation.
54
+ * @param options The options parameters.
55
+ */
56
+ beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, principalAssignmentName: string, parameters: ClusterPrincipalAssignment, options?: ClusterPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise<ClusterPrincipalAssignmentsCreateOrUpdateResponse>;
57
+ /**
58
+ * Deletes a Kusto cluster principalAssignment.
59
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
60
+ * @param clusterName The name of the Kusto cluster.
61
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
62
+ * @param options The options parameters.
63
+ */
64
+ beginDelete(resourceGroupName: string, clusterName: string, principalAssignmentName: string, options?: ClusterPrincipalAssignmentsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
65
+ /**
66
+ * Deletes a Kusto cluster principalAssignment.
67
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
68
+ * @param clusterName The name of the Kusto cluster.
69
+ * @param principalAssignmentName The name of the Kusto principalAssignment.
70
+ * @param options The options parameters.
71
+ */
72
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, principalAssignmentName: string, options?: ClusterPrincipalAssignmentsDeleteOptionalParams): Promise<void>;
73
+ /**
74
+ * Lists all Kusto cluster principalAssignments.
75
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
76
+ * @param clusterName The name of the Kusto cluster.
77
+ * @param options The options parameters.
78
+ */
79
+ private _list;
80
+ }
81
+ //# sourceMappingURL=clusterPrincipalAssignments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterPrincipalAssignments.d.ts","sourceRoot":"","sources":["../../../src/operations/clusterPrincipalAssignments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,0BAA0B,EAC1B,6CAA6C,EAC7C,0CAA0C,EAC1C,8DAA8D,EAC9D,wDAAwD,EACxD,4CAA4C,EAC5C,sCAAsC,EACtC,uDAAuD,EACvD,iDAAiD,EACjD,+CAA+C,EAEhD,MAAM,WAAW,CAAC;AAGnB,+DAA+D;AAC/D,qBAAa,+BACX,YAAW,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,0BAA0B,CAAC;YAe1C,cAAc;YASd,aAAa;IAc5B;;;;;;OAMG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