@azure/arm-datalake-analytics 1.1.1 → 2.0.0-alpha.20211220.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 (217) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +69 -91
  4. package/dist/index.js +4780 -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/dataLakeAnalyticsAccountManagementClient.d.ts +22 -0
  9. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +29 -0
  11. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -0
  12. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.js +50 -0
  15. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.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 +1346 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +31 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +56 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +1439 -1205
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +32 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +254 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/accounts.d.ts +120 -0
  37. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  38. package/dist-esm/src/operations/accounts.js +569 -0
  39. package/dist-esm/src/operations/accounts.js.map +1 -0
  40. package/dist-esm/src/operations/computePolicies.d.ts +76 -0
  41. package/dist-esm/src/operations/computePolicies.d.ts.map +1 -0
  42. package/dist-esm/src/operations/computePolicies.js +280 -0
  43. package/dist-esm/src/operations/computePolicies.js.map +1 -0
  44. package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts +64 -0
  45. package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts.map +1 -0
  46. package/dist-esm/src/operations/dataLakeStoreAccounts.js +250 -0
  47. package/dist-esm/src/operations/dataLakeStoreAccounts.js.map +1 -0
  48. package/dist-esm/src/operations/firewallRules.d.ts +72 -0
  49. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  50. package/dist-esm/src/operations/firewallRules.js +270 -0
  51. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +1 -2
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/locations.d.ts +20 -0
  57. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/locations.js +53 -0
  59. package/dist-esm/src/operations/locations.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +18 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +46 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/storageAccounts.d.ts +153 -0
  65. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  66. package/dist-esm/src/operations/storageAccounts.js +594 -0
  67. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/accounts.d.ts +82 -0
  69. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  70. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/accounts.js} +2 -1
  71. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/computePolicies.d.ts +50 -0
  73. package/dist-esm/src/operationsInterfaces/computePolicies.d.ts.map +1 -0
  74. package/{src/models/locationsMappers.ts → dist-esm/src/operationsInterfaces/computePolicies.js} +2 -7
  75. package/dist-esm/src/operationsInterfaces/computePolicies.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts +38 -0
  77. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts.map +1 -0
  78. package/{esm/models/locationsMappers.js → dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js} +2 -2
  79. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +47 -0
  81. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  85. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  87. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/locations.d.ts +12 -0
  89. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +81 -0
  97. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  100. package/dist-esm/test/sampleTest.d.ts +4 -0
  101. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  102. package/dist-esm/test/sampleTest.js +89 -0
  103. package/dist-esm/test/sampleTest.js.map +1 -0
  104. package/package.json +65 -22
  105. package/review/arm-datalake-analytics.api.md +935 -0
  106. package/rollup.config.js +181 -30
  107. package/src/dataLakeAnalyticsAccountManagementClient.ts +45 -44
  108. package/src/dataLakeAnalyticsAccountManagementClientContext.ts +46 -43
  109. package/src/index.ts +13 -0
  110. package/src/lroImpl.ts +34 -0
  111. package/src/models/index.ts +1160 -1948
  112. package/src/models/mappers.ts +1446 -1179
  113. package/src/models/parameters.ts +183 -93
  114. package/src/operations/accounts.ts +540 -372
  115. package/src/operations/computePolicies.ts +225 -254
  116. package/src/operations/dataLakeStoreAccounts.ts +213 -220
  117. package/src/operations/firewallRules.ts +222 -255
  118. package/src/operations/index.ts +1 -2
  119. package/src/operations/locations.ts +32 -44
  120. package/src/operations/operations.ts +24 -38
  121. package/src/operations/storageAccounts.ts +562 -476
  122. package/src/operationsInterfaces/accounts.ts +155 -0
  123. package/src/operationsInterfaces/computePolicies.ts +95 -0
  124. package/src/operationsInterfaces/dataLakeStoreAccounts.ts +73 -0
  125. package/src/operationsInterfaces/firewallRules.ts +92 -0
  126. package/src/operationsInterfaces/index.ts +15 -0
  127. package/src/operationsInterfaces/locations.ts +26 -0
  128. package/src/operationsInterfaces/operations.ts +21 -0
  129. package/src/operationsInterfaces/storageAccounts.ts +147 -0
  130. package/tsconfig.json +3 -3
  131. package/types/arm-datalake-analytics.d.ts +1829 -0
  132. package/types/tsdoc-metadata.json +11 -0
  133. package/dist/arm-datalake-analytics.js +0 -4239
  134. package/dist/arm-datalake-analytics.js.map +0 -1
  135. package/dist/arm-datalake-analytics.min.js +0 -1
  136. package/dist/arm-datalake-analytics.min.js.map +0 -1
  137. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts +0 -31
  138. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts.map +0 -1
  139. package/esm/dataLakeAnalyticsAccountManagementClient.js +0 -44
  140. package/esm/dataLakeAnalyticsAccountManagementClient.js.map +0 -1
  141. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts +0 -23
  142. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +0 -1
  143. package/esm/dataLakeAnalyticsAccountManagementClientContext.js +0 -61
  144. package/esm/dataLakeAnalyticsAccountManagementClientContext.js.map +0 -1
  145. package/esm/models/accountsMappers.d.ts +0 -2
  146. package/esm/models/accountsMappers.d.ts.map +0 -1
  147. package/esm/models/accountsMappers.js +0 -9
  148. package/esm/models/accountsMappers.js.map +0 -1
  149. package/esm/models/computePoliciesMappers.d.ts +0 -2
  150. package/esm/models/computePoliciesMappers.d.ts.map +0 -1
  151. package/esm/models/computePoliciesMappers.js +0 -9
  152. package/esm/models/computePoliciesMappers.js.map +0 -1
  153. package/esm/models/dataLakeStoreAccountsMappers.d.ts +0 -2
  154. package/esm/models/dataLakeStoreAccountsMappers.d.ts.map +0 -1
  155. package/esm/models/dataLakeStoreAccountsMappers.js +0 -9
  156. package/esm/models/dataLakeStoreAccountsMappers.js.map +0 -1
  157. package/esm/models/firewallRulesMappers.d.ts +0 -2
  158. package/esm/models/firewallRulesMappers.d.ts.map +0 -1
  159. package/esm/models/firewallRulesMappers.js +0 -9
  160. package/esm/models/firewallRulesMappers.js.map +0 -1
  161. package/esm/models/index.d.ts +0 -2162
  162. package/esm/models/index.d.ts.map +0 -1
  163. package/esm/models/index.js.map +0 -1
  164. package/esm/models/locationsMappers.d.ts +0 -2
  165. package/esm/models/locationsMappers.d.ts.map +0 -1
  166. package/esm/models/locationsMappers.js.map +0 -1
  167. package/esm/models/mappers.d.ts +0 -56
  168. package/esm/models/mappers.d.ts.map +0 -1
  169. package/esm/models/mappers.js.map +0 -1
  170. package/esm/models/operationsMappers.d.ts +0 -2
  171. package/esm/models/operationsMappers.d.ts.map +0 -1
  172. package/esm/models/operationsMappers.js +0 -9
  173. package/esm/models/operationsMappers.js.map +0 -1
  174. package/esm/models/parameters.d.ts +0 -20
  175. package/esm/models/parameters.d.ts.map +0 -1
  176. package/esm/models/parameters.js +0 -208
  177. package/esm/models/parameters.js.map +0 -1
  178. package/esm/models/storageAccountsMappers.d.ts +0 -2
  179. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  180. package/esm/models/storageAccountsMappers.js +0 -9
  181. package/esm/models/storageAccountsMappers.js.map +0 -1
  182. package/esm/operations/accounts.d.ts +0 -188
  183. package/esm/operations/accounts.d.ts.map +0 -1
  184. package/esm/operations/accounts.js +0 -406
  185. package/esm/operations/accounts.js.map +0 -1
  186. package/esm/operations/computePolicies.d.ts +0 -158
  187. package/esm/operations/computePolicies.d.ts.map +0 -1
  188. package/esm/operations/computePolicies.js +0 -230
  189. package/esm/operations/computePolicies.js.map +0 -1
  190. package/esm/operations/dataLakeStoreAccounts.d.ts +0 -128
  191. package/esm/operations/dataLakeStoreAccounts.d.ts.map +0 -1
  192. package/esm/operations/dataLakeStoreAccounts.js +0 -200
  193. package/esm/operations/dataLakeStoreAccounts.js.map +0 -1
  194. package/esm/operations/firewallRules.d.ts +0 -152
  195. package/esm/operations/firewallRules.d.ts.map +0 -1
  196. package/esm/operations/firewallRules.js +0 -230
  197. package/esm/operations/firewallRules.js.map +0 -1
  198. package/esm/operations/index.d.ts.map +0 -1
  199. package/esm/operations/index.js.map +0 -1
  200. package/esm/operations/locations.d.ts +0 -32
  201. package/esm/operations/locations.d.ts.map +0 -1
  202. package/esm/operations/locations.js +0 -56
  203. package/esm/operations/locations.js.map +0 -1
  204. package/esm/operations/operations.d.ts +0 -28
  205. package/esm/operations/operations.d.ts.map +0 -1
  206. package/esm/operations/operations.js +0 -50
  207. package/esm/operations/operations.js.map +0 -1
  208. package/esm/operations/storageAccounts.d.ts +0 -293
  209. package/esm/operations/storageAccounts.d.ts.map +0 -1
  210. package/esm/operations/storageAccounts.js +0 -398
  211. package/esm/operations/storageAccounts.js.map +0 -1
  212. package/src/models/accountsMappers.ts +0 -38
  213. package/src/models/computePoliciesMappers.ts +0 -28
  214. package/src/models/dataLakeStoreAccountsMappers.ts +0 -27
  215. package/src/models/firewallRulesMappers.ts +0 -28
  216. package/src/models/operationsMappers.ts +0 -21
  217. package/src/models/storageAccountsMappers.ts +0 -31
@@ -0,0 +1,280 @@
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 ComputePolicies operations. */
14
+ export class ComputePoliciesImpl {
15
+ /**
16
+ * Initialize a new instance of the class ComputePolicies class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An
24
+ * account supports, at most, 50 policies
25
+ * @param resourceGroupName The name of the Azure resource group.
26
+ * @param accountName The name of the Data Lake Analytics account.
27
+ * @param options The options parameters.
28
+ */
29
+ listByAccount(resourceGroupName, accountName, options) {
30
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
40
+ }
41
+ };
42
+ }
43
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
44
+ return __asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
45
+ let result = yield __await(this._listByAccount(resourceGroupName, accountName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
56
+ return __asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An
75
+ * account supports, at most, 50 policies
76
+ * @param resourceGroupName The name of the Azure resource group.
77
+ * @param accountName The name of the Data Lake Analytics account.
78
+ * @param options The options parameters.
79
+ */
80
+ _listByAccount(resourceGroupName, accountName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec);
82
+ }
83
+ /**
84
+ * Creates or updates the specified compute policy. During update, the compute policy with the
85
+ * specified name will be replaced with this new compute policy. An account supports, at most, 50
86
+ * policies
87
+ * @param resourceGroupName The name of the Azure resource group.
88
+ * @param accountName The name of the Data Lake Analytics account.
89
+ * @param computePolicyName The name of the compute policy to create or update.
90
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of
91
+ * parallelism per job property, min priority per job property, or both must be present.
92
+ * @param options The options parameters.
93
+ */
94
+ createOrUpdate(resourceGroupName, accountName, computePolicyName, parameters, options) {
95
+ return this.client.sendOperationRequest({
96
+ resourceGroupName,
97
+ accountName,
98
+ computePolicyName,
99
+ parameters,
100
+ options
101
+ }, createOrUpdateOperationSpec);
102
+ }
103
+ /**
104
+ * Gets the specified Data Lake Analytics compute policy.
105
+ * @param resourceGroupName The name of the Azure resource group.
106
+ * @param accountName The name of the Data Lake Analytics account.
107
+ * @param computePolicyName The name of the compute policy to retrieve.
108
+ * @param options The options parameters.
109
+ */
110
+ get(resourceGroupName, accountName, computePolicyName, options) {
111
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, getOperationSpec);
112
+ }
113
+ /**
114
+ * Updates the specified compute policy.
115
+ * @param resourceGroupName The name of the Azure resource group.
116
+ * @param accountName The name of the Data Lake Analytics account.
117
+ * @param computePolicyName The name of the compute policy to update.
118
+ * @param options The options parameters.
119
+ */
120
+ update(resourceGroupName, accountName, computePolicyName, options) {
121
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, updateOperationSpec);
122
+ }
123
+ /**
124
+ * Deletes the specified compute policy from the specified Data Lake Analytics account
125
+ * @param resourceGroupName The name of the Azure resource group.
126
+ * @param accountName The name of the Data Lake Analytics account.
127
+ * @param computePolicyName The name of the compute policy to delete.
128
+ * @param options The options parameters.
129
+ */
130
+ delete(resourceGroupName, accountName, computePolicyName, options) {
131
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, deleteOperationSpec);
132
+ }
133
+ /**
134
+ * ListByAccountNext
135
+ * @param resourceGroupName The name of the Azure resource group.
136
+ * @param accountName The name of the Data Lake Analytics account.
137
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
138
+ * @param options The options parameters.
139
+ */
140
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
141
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec);
142
+ }
143
+ }
144
+ // Operation Specifications
145
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
146
+ const listByAccountOperationSpec = {
147
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies",
148
+ httpMethod: "GET",
149
+ responses: {
150
+ 200: {
151
+ bodyMapper: Mappers.ComputePolicyListResult
152
+ },
153
+ default: {
154
+ bodyMapper: Mappers.ErrorResponse
155
+ }
156
+ },
157
+ queryParameters: [Parameters.apiVersion],
158
+ urlParameters: [
159
+ Parameters.$host,
160
+ Parameters.subscriptionId,
161
+ Parameters.resourceGroupName,
162
+ Parameters.accountName
163
+ ],
164
+ headerParameters: [Parameters.accept],
165
+ serializer
166
+ };
167
+ const createOrUpdateOperationSpec = {
168
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
169
+ httpMethod: "PUT",
170
+ responses: {
171
+ 200: {
172
+ bodyMapper: Mappers.ComputePolicy
173
+ },
174
+ default: {
175
+ bodyMapper: Mappers.ErrorResponse
176
+ }
177
+ },
178
+ requestBody: Parameters.parameters6,
179
+ queryParameters: [Parameters.apiVersion],
180
+ urlParameters: [
181
+ Parameters.$host,
182
+ Parameters.subscriptionId,
183
+ Parameters.resourceGroupName,
184
+ Parameters.accountName,
185
+ Parameters.computePolicyName
186
+ ],
187
+ headerParameters: [Parameters.accept, Parameters.contentType],
188
+ mediaType: "json",
189
+ serializer
190
+ };
191
+ const getOperationSpec = {
192
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
193
+ httpMethod: "GET",
194
+ responses: {
195
+ 200: {
196
+ bodyMapper: Mappers.ComputePolicy
197
+ },
198
+ default: {
199
+ bodyMapper: Mappers.ErrorResponse
200
+ }
201
+ },
202
+ queryParameters: [Parameters.apiVersion],
203
+ urlParameters: [
204
+ Parameters.$host,
205
+ Parameters.subscriptionId,
206
+ Parameters.resourceGroupName,
207
+ Parameters.accountName,
208
+ Parameters.computePolicyName
209
+ ],
210
+ headerParameters: [Parameters.accept],
211
+ serializer
212
+ };
213
+ const updateOperationSpec = {
214
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
215
+ httpMethod: "PATCH",
216
+ responses: {
217
+ 200: {
218
+ bodyMapper: Mappers.ComputePolicy
219
+ },
220
+ default: {
221
+ bodyMapper: Mappers.ErrorResponse
222
+ }
223
+ },
224
+ requestBody: Parameters.parameters7,
225
+ queryParameters: [Parameters.apiVersion],
226
+ urlParameters: [
227
+ Parameters.$host,
228
+ Parameters.subscriptionId,
229
+ Parameters.resourceGroupName,
230
+ Parameters.accountName,
231
+ Parameters.computePolicyName
232
+ ],
233
+ headerParameters: [Parameters.accept, Parameters.contentType],
234
+ mediaType: "json",
235
+ serializer
236
+ };
237
+ const deleteOperationSpec = {
238
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
239
+ httpMethod: "DELETE",
240
+ responses: {
241
+ 200: {},
242
+ 204: {},
243
+ default: {
244
+ bodyMapper: Mappers.ErrorResponse
245
+ }
246
+ },
247
+ queryParameters: [Parameters.apiVersion],
248
+ urlParameters: [
249
+ Parameters.$host,
250
+ Parameters.subscriptionId,
251
+ Parameters.resourceGroupName,
252
+ Parameters.accountName,
253
+ Parameters.computePolicyName
254
+ ],
255
+ headerParameters: [Parameters.accept],
256
+ serializer
257
+ };
258
+ const listByAccountNextOperationSpec = {
259
+ path: "{nextLink}",
260
+ httpMethod: "GET",
261
+ responses: {
262
+ 200: {
263
+ bodyMapper: Mappers.ComputePolicyListResult
264
+ },
265
+ default: {
266
+ bodyMapper: Mappers.ErrorResponse
267
+ }
268
+ },
269
+ queryParameters: [Parameters.apiVersion],
270
+ urlParameters: [
271
+ Parameters.$host,
272
+ Parameters.subscriptionId,
273
+ Parameters.resourceGroupName,
274
+ Parameters.accountName,
275
+ Parameters.nextLink
276
+ ],
277
+ headerParameters: [Parameters.accept],
278
+ serializer
279
+ };
280
+ //# sourceMappingURL=computePolicies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePolicies.js","sourceRoot":"","sources":["../../../src/operations/computePolicies.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;AAkBnD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAuD;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAoD;QAEpD,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,uBA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BAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { DataLakeStoreAccounts } from "../operationsInterfaces";
3
+ import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
4
+ import { DataLakeStoreAccountInformation, DataLakeStoreAccountsListByAccountOptionalParams, DataLakeStoreAccountsAddOptionalParams, DataLakeStoreAccountsGetOptionalParams, DataLakeStoreAccountsGetResponse, DataLakeStoreAccountsDeleteOptionalParams } from "../models";
5
+ /** Class containing DataLakeStoreAccounts operations. */
6
+ export declare class DataLakeStoreAccountsImpl implements DataLakeStoreAccounts {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class DataLakeStoreAccounts class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: DataLakeAnalyticsAccountManagementClientContext);
13
+ /**
14
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
15
+ * The response includes a link to the next page, if any.
16
+ * @param resourceGroupName The name of the Azure resource group.
17
+ * @param accountName The name of the Data Lake Analytics account.
18
+ * @param options The options parameters.
19
+ */
20
+ listByAccount(resourceGroupName: string, accountName: string, options?: DataLakeStoreAccountsListByAccountOptionalParams): PagedAsyncIterableIterator<DataLakeStoreAccountInformation>;
21
+ private listByAccountPagingPage;
22
+ private listByAccountPagingAll;
23
+ /**
24
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
25
+ * The response includes a link to the next page, if any.
26
+ * @param resourceGroupName The name of the Azure resource group.
27
+ * @param accountName The name of the Data Lake Analytics account.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listByAccount;
31
+ /**
32
+ * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
33
+ * @param resourceGroupName The name of the Azure resource group.
34
+ * @param accountName The name of the Data Lake Analytics account.
35
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to add.
36
+ * @param options The options parameters.
37
+ */
38
+ add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: DataLakeStoreAccountsAddOptionalParams): Promise<void>;
39
+ /**
40
+ * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
41
+ * @param resourceGroupName The name of the Azure resource group.
42
+ * @param accountName The name of the Data Lake Analytics account.
43
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve
44
+ * @param options The options parameters.
45
+ */
46
+ get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: DataLakeStoreAccountsGetOptionalParams): Promise<DataLakeStoreAccountsGetResponse>;
47
+ /**
48
+ * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
49
+ * @param resourceGroupName The name of the Azure resource group.
50
+ * @param accountName The name of the Data Lake Analytics account.
51
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove
52
+ * @param options The options parameters.
53
+ */
54
+ delete(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: DataLakeStoreAccountsDeleteOptionalParams): Promise<void>;
55
+ /**
56
+ * ListByAccountNext
57
+ * @param resourceGroupName The name of the Azure resource group.
58
+ * @param accountName The name of the Data Lake Analytics account.
59
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
60
+ * @param options The options parameters.
61
+ */
62
+ private _listByAccountNext;
63
+ }
64
+ //# sourceMappingURL=dataLakeStoreAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccounts.d.ts","sourceRoot":"","sources":["../../../src/operations/dataLakeStoreAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,OAAO,EAAE,+CAA+C,EAAE,MAAM,oDAAoD,CAAC;AACrH,OAAO,EACL,+BAA+B,EAE/B,gDAAgD,EAEhD,sCAAsC,EACtC,sCAAsC,EACtC,gCAAgC,EAChC,yCAAyC,EAE1C,MAAM,WAAW,CAAC;AAGnB,yDAAyD;AACzD,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkD;IAEzE;;;OAGG;gBACS,MAAM,EAAE,+CAA+C;IAInE;;;;;;OAMG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,+BAA+B,CAAC;YAuB/C,uBAAuB;YAwBvB,sBAAsB;IAcrC;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,MAAM,EAChC,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,MAAM,EAChC,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,MAAM,EAChC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -0,0 +1,250 @@
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 DataLakeStoreAccounts operations. */
14
+ export class DataLakeStoreAccountsImpl {
15
+ /**
16
+ * Initialize a new instance of the class DataLakeStoreAccounts class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
24
+ * The response includes a link to the next page, if any.
25
+ * @param resourceGroupName The name of the Azure resource group.
26
+ * @param accountName The name of the Data Lake Analytics account.
27
+ * @param options The options parameters.
28
+ */
29
+ listByAccount(resourceGroupName, accountName, options) {
30
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
40
+ }
41
+ };
42
+ }
43
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
44
+ return __asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
45
+ let result = yield __await(this._listByAccount(resourceGroupName, accountName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
56
+ return __asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
75
+ * The response includes a link to the next page, if any.
76
+ * @param resourceGroupName The name of the Azure resource group.
77
+ * @param accountName The name of the Data Lake Analytics account.
78
+ * @param options The options parameters.
79
+ */
80
+ _listByAccount(resourceGroupName, accountName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec);
82
+ }
83
+ /**
84
+ * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
85
+ * @param resourceGroupName The name of the Azure resource group.
86
+ * @param accountName The name of the Data Lake Analytics account.
87
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to add.
88
+ * @param options The options parameters.
89
+ */
90
+ add(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
91
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, addOperationSpec);
92
+ }
93
+ /**
94
+ * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
95
+ * @param resourceGroupName The name of the Azure resource group.
96
+ * @param accountName The name of the Data Lake Analytics account.
97
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve
98
+ * @param options The options parameters.
99
+ */
100
+ get(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
101
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, getOperationSpec);
102
+ }
103
+ /**
104
+ * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
105
+ * @param resourceGroupName The name of the Azure resource group.
106
+ * @param accountName The name of the Data Lake Analytics account.
107
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove
108
+ * @param options The options parameters.
109
+ */
110
+ delete(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
111
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, deleteOperationSpec);
112
+ }
113
+ /**
114
+ * ListByAccountNext
115
+ * @param resourceGroupName The name of the Azure resource group.
116
+ * @param accountName The name of the Data Lake Analytics account.
117
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
118
+ * @param options The options parameters.
119
+ */
120
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
121
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec);
122
+ }
123
+ }
124
+ // Operation Specifications
125
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
126
+ const listByAccountOperationSpec = {
127
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts",
128
+ httpMethod: "GET",
129
+ responses: {
130
+ 200: {
131
+ bodyMapper: Mappers.DataLakeStoreAccountInformationListResult
132
+ },
133
+ default: {
134
+ bodyMapper: Mappers.ErrorResponse
135
+ }
136
+ },
137
+ queryParameters: [
138
+ Parameters.filter,
139
+ Parameters.top,
140
+ Parameters.skip,
141
+ Parameters.select,
142
+ Parameters.orderby,
143
+ Parameters.count,
144
+ Parameters.apiVersion
145
+ ],
146
+ urlParameters: [
147
+ Parameters.$host,
148
+ Parameters.subscriptionId,
149
+ Parameters.resourceGroupName,
150
+ Parameters.accountName
151
+ ],
152
+ headerParameters: [Parameters.accept],
153
+ serializer
154
+ };
155
+ const addOperationSpec = {
156
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
157
+ httpMethod: "PUT",
158
+ responses: {
159
+ 200: {},
160
+ default: {
161
+ bodyMapper: Mappers.ErrorResponse
162
+ }
163
+ },
164
+ requestBody: Parameters.parameters3,
165
+ queryParameters: [Parameters.apiVersion],
166
+ urlParameters: [
167
+ Parameters.$host,
168
+ Parameters.subscriptionId,
169
+ Parameters.resourceGroupName,
170
+ Parameters.accountName,
171
+ Parameters.dataLakeStoreAccountName
172
+ ],
173
+ headerParameters: [Parameters.accept, Parameters.contentType],
174
+ mediaType: "json",
175
+ serializer
176
+ };
177
+ const getOperationSpec = {
178
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
179
+ httpMethod: "GET",
180
+ responses: {
181
+ 200: {
182
+ bodyMapper: Mappers.DataLakeStoreAccountInformation
183
+ },
184
+ default: {
185
+ bodyMapper: Mappers.ErrorResponse
186
+ }
187
+ },
188
+ queryParameters: [Parameters.apiVersion],
189
+ urlParameters: [
190
+ Parameters.$host,
191
+ Parameters.subscriptionId,
192
+ Parameters.resourceGroupName,
193
+ Parameters.accountName,
194
+ Parameters.dataLakeStoreAccountName
195
+ ],
196
+ headerParameters: [Parameters.accept],
197
+ serializer
198
+ };
199
+ const deleteOperationSpec = {
200
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
201
+ httpMethod: "DELETE",
202
+ responses: {
203
+ 200: {},
204
+ 204: {},
205
+ default: {
206
+ bodyMapper: Mappers.ErrorResponse
207
+ }
208
+ },
209
+ queryParameters: [Parameters.apiVersion],
210
+ urlParameters: [
211
+ Parameters.$host,
212
+ Parameters.subscriptionId,
213
+ Parameters.resourceGroupName,
214
+ Parameters.accountName,
215
+ Parameters.dataLakeStoreAccountName
216
+ ],
217
+ headerParameters: [Parameters.accept],
218
+ serializer
219
+ };
220
+ const listByAccountNextOperationSpec = {
221
+ path: "{nextLink}",
222
+ httpMethod: "GET",
223
+ responses: {
224
+ 200: {
225
+ bodyMapper: Mappers.DataLakeStoreAccountInformationListResult
226
+ },
227
+ default: {
228
+ bodyMapper: Mappers.ErrorResponse
229
+ }
230
+ },
231
+ queryParameters: [
232
+ Parameters.filter,
233
+ Parameters.top,
234
+ Parameters.skip,
235
+ Parameters.select,
236
+ Parameters.orderby,
237
+ Parameters.count,
238
+ Parameters.apiVersion
239
+ ],
240
+ urlParameters: [
241
+ Parameters.$host,
242
+ Parameters.subscriptionId,
243
+ Parameters.resourceGroupName,
244
+ Parameters.accountName,
245
+ Parameters.nextLink
246
+ ],
247
+ headerParameters: [Parameters.accept],
248
+ serializer
249
+ };
250
+ //# sourceMappingURL=dataLakeStoreAccounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccounts.js","sourceRoot":"","sources":["../../../src/operations/dataLakeStoreAccounts.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;AAcnD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAuD;QACjE,IAAI,CAAC,MAAM,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