@azure/arm-datalake-analytics 1.0.0 → 2.0.0-alpha.20211214.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 +70 -82
  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 -21
  105. package/review/arm-datalake-analytics.api.md +935 -0
  106. package/rollup.config.js +181 -30
  107. package/src/dataLakeAnalyticsAccountManagementClient.ts +45 -38
  108. package/src/dataLakeAnalyticsAccountManagementClientContext.ts +46 -37
  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 -4229
  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 -25
  138. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts.map +0 -1
  139. package/esm/dataLakeAnalyticsAccountManagementClient.js +0 -39
  140. package/esm/dataLakeAnalyticsAccountManagementClient.js.map +0 -1
  141. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts +0 -17
  142. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +0 -1
  143. package/esm/dataLakeAnalyticsAccountManagementClientContext.js +0 -56
  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
package/dist/index.js ADDED
@@ -0,0 +1,4780 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var coreClient = require('@azure/core-client');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownAADObjectType) {
17
+ KnownAADObjectType["User"] = "User";
18
+ KnownAADObjectType["Group"] = "Group";
19
+ KnownAADObjectType["ServicePrincipal"] = "ServicePrincipal";
20
+ })(exports.KnownAADObjectType || (exports.KnownAADObjectType = {}));
21
+ (function (KnownOperationOrigin) {
22
+ KnownOperationOrigin["User"] = "user";
23
+ KnownOperationOrigin["System"] = "system";
24
+ KnownOperationOrigin["UserSystem"] = "user,system";
25
+ })(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
26
+ (function (KnownSubscriptionState) {
27
+ KnownSubscriptionState["Registered"] = "Registered";
28
+ KnownSubscriptionState["Suspended"] = "Suspended";
29
+ KnownSubscriptionState["Deleted"] = "Deleted";
30
+ KnownSubscriptionState["Unregistered"] = "Unregistered";
31
+ KnownSubscriptionState["Warned"] = "Warned";
32
+ })(exports.KnownSubscriptionState || (exports.KnownSubscriptionState = {}));
33
+
34
+ /*
35
+ * Copyright (c) Microsoft Corporation.
36
+ * Licensed under the MIT License.
37
+ *
38
+ * Code generated by Microsoft (R) AutoRest Code Generator.
39
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
40
+ */
41
+ const DataLakeAnalyticsAccountListResult = {
42
+ type: {
43
+ name: "Composite",
44
+ className: "DataLakeAnalyticsAccountListResult",
45
+ modelProperties: {
46
+ value: {
47
+ serializedName: "value",
48
+ readOnly: true,
49
+ type: {
50
+ name: "Sequence",
51
+ element: {
52
+ type: {
53
+ name: "Composite",
54
+ className: "DataLakeAnalyticsAccountBasic"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ count: {
60
+ serializedName: "count",
61
+ readOnly: true,
62
+ type: {
63
+ name: "Number"
64
+ }
65
+ },
66
+ nextLink: {
67
+ serializedName: "nextLink",
68
+ readOnly: true,
69
+ type: {
70
+ name: "String"
71
+ }
72
+ }
73
+ }
74
+ }
75
+ };
76
+ const DataLakeAnalyticsAccountPropertiesBasic = {
77
+ type: {
78
+ name: "Composite",
79
+ className: "DataLakeAnalyticsAccountPropertiesBasic",
80
+ modelProperties: {
81
+ accountId: {
82
+ serializedName: "accountId",
83
+ readOnly: true,
84
+ type: {
85
+ name: "Uuid"
86
+ }
87
+ },
88
+ provisioningState: {
89
+ serializedName: "provisioningState",
90
+ readOnly: true,
91
+ type: {
92
+ name: "Enum",
93
+ allowedValues: [
94
+ "Failed",
95
+ "Creating",
96
+ "Running",
97
+ "Succeeded",
98
+ "Patching",
99
+ "Suspending",
100
+ "Resuming",
101
+ "Deleting",
102
+ "Deleted",
103
+ "Undeleting",
104
+ "Canceled"
105
+ ]
106
+ }
107
+ },
108
+ state: {
109
+ serializedName: "state",
110
+ readOnly: true,
111
+ type: {
112
+ name: "Enum",
113
+ allowedValues: ["Active", "Suspended"]
114
+ }
115
+ },
116
+ creationTime: {
117
+ serializedName: "creationTime",
118
+ readOnly: true,
119
+ type: {
120
+ name: "DateTime"
121
+ }
122
+ },
123
+ lastModifiedTime: {
124
+ serializedName: "lastModifiedTime",
125
+ readOnly: true,
126
+ type: {
127
+ name: "DateTime"
128
+ }
129
+ },
130
+ endpoint: {
131
+ serializedName: "endpoint",
132
+ readOnly: true,
133
+ type: {
134
+ name: "String"
135
+ }
136
+ }
137
+ }
138
+ }
139
+ };
140
+ const Resource = {
141
+ type: {
142
+ name: "Composite",
143
+ className: "Resource",
144
+ modelProperties: {
145
+ id: {
146
+ serializedName: "id",
147
+ readOnly: true,
148
+ type: {
149
+ name: "String"
150
+ }
151
+ },
152
+ name: {
153
+ serializedName: "name",
154
+ readOnly: true,
155
+ type: {
156
+ name: "String"
157
+ }
158
+ },
159
+ type: {
160
+ serializedName: "type",
161
+ readOnly: true,
162
+ type: {
163
+ name: "String"
164
+ }
165
+ },
166
+ location: {
167
+ serializedName: "location",
168
+ readOnly: true,
169
+ type: {
170
+ name: "String"
171
+ }
172
+ },
173
+ tags: {
174
+ serializedName: "tags",
175
+ readOnly: true,
176
+ type: {
177
+ name: "Dictionary",
178
+ value: { type: { name: "String" } }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ };
184
+ const ErrorResponse = {
185
+ type: {
186
+ name: "Composite",
187
+ className: "ErrorResponse",
188
+ modelProperties: {
189
+ error: {
190
+ serializedName: "error",
191
+ type: {
192
+ name: "Composite",
193
+ className: "ErrorDetail"
194
+ }
195
+ }
196
+ }
197
+ }
198
+ };
199
+ const ErrorDetail = {
200
+ type: {
201
+ name: "Composite",
202
+ className: "ErrorDetail",
203
+ modelProperties: {
204
+ code: {
205
+ serializedName: "code",
206
+ readOnly: true,
207
+ type: {
208
+ name: "String"
209
+ }
210
+ },
211
+ message: {
212
+ serializedName: "message",
213
+ readOnly: true,
214
+ type: {
215
+ name: "String"
216
+ }
217
+ },
218
+ target: {
219
+ serializedName: "target",
220
+ readOnly: true,
221
+ type: {
222
+ name: "String"
223
+ }
224
+ },
225
+ details: {
226
+ serializedName: "details",
227
+ readOnly: true,
228
+ type: {
229
+ name: "Sequence",
230
+ element: {
231
+ type: {
232
+ name: "Composite",
233
+ className: "ErrorDetail"
234
+ }
235
+ }
236
+ }
237
+ },
238
+ additionalInfo: {
239
+ serializedName: "additionalInfo",
240
+ readOnly: true,
241
+ type: {
242
+ name: "Sequence",
243
+ element: {
244
+ type: {
245
+ name: "Composite",
246
+ className: "ErrorAdditionalInfo"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ };
254
+ const ErrorAdditionalInfo = {
255
+ type: {
256
+ name: "Composite",
257
+ className: "ErrorAdditionalInfo",
258
+ modelProperties: {
259
+ type: {
260
+ serializedName: "type",
261
+ readOnly: true,
262
+ type: {
263
+ name: "String"
264
+ }
265
+ },
266
+ info: {
267
+ serializedName: "info",
268
+ readOnly: true,
269
+ type: {
270
+ name: "Dictionary",
271
+ value: { type: { name: "any" } }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ };
277
+ const CreateDataLakeAnalyticsAccountParameters = {
278
+ type: {
279
+ name: "Composite",
280
+ className: "CreateDataLakeAnalyticsAccountParameters",
281
+ modelProperties: {
282
+ location: {
283
+ serializedName: "location",
284
+ required: true,
285
+ type: {
286
+ name: "String"
287
+ }
288
+ },
289
+ tags: {
290
+ serializedName: "tags",
291
+ type: {
292
+ name: "Dictionary",
293
+ value: { type: { name: "String" } }
294
+ }
295
+ },
296
+ defaultDataLakeStoreAccount: {
297
+ serializedName: "properties.defaultDataLakeStoreAccount",
298
+ required: true,
299
+ type: {
300
+ name: "String"
301
+ }
302
+ },
303
+ dataLakeStoreAccounts: {
304
+ serializedName: "properties.dataLakeStoreAccounts",
305
+ required: true,
306
+ type: {
307
+ name: "Sequence",
308
+ element: {
309
+ type: {
310
+ name: "Composite",
311
+ className: "AddDataLakeStoreWithAccountParameters"
312
+ }
313
+ }
314
+ }
315
+ },
316
+ storageAccounts: {
317
+ serializedName: "properties.storageAccounts",
318
+ type: {
319
+ name: "Sequence",
320
+ element: {
321
+ type: {
322
+ name: "Composite",
323
+ className: "AddStorageAccountWithAccountParameters"
324
+ }
325
+ }
326
+ }
327
+ },
328
+ computePolicies: {
329
+ serializedName: "properties.computePolicies",
330
+ type: {
331
+ name: "Sequence",
332
+ element: {
333
+ type: {
334
+ name: "Composite",
335
+ className: "CreateComputePolicyWithAccountParameters"
336
+ }
337
+ }
338
+ }
339
+ },
340
+ firewallRules: {
341
+ serializedName: "properties.firewallRules",
342
+ type: {
343
+ name: "Sequence",
344
+ element: {
345
+ type: {
346
+ name: "Composite",
347
+ className: "CreateFirewallRuleWithAccountParameters"
348
+ }
349
+ }
350
+ }
351
+ },
352
+ firewallState: {
353
+ serializedName: "properties.firewallState",
354
+ type: {
355
+ name: "Enum",
356
+ allowedValues: ["Enabled", "Disabled"]
357
+ }
358
+ },
359
+ firewallAllowAzureIps: {
360
+ serializedName: "properties.firewallAllowAzureIps",
361
+ type: {
362
+ name: "Enum",
363
+ allowedValues: ["Enabled", "Disabled"]
364
+ }
365
+ },
366
+ newTier: {
367
+ serializedName: "properties.newTier",
368
+ type: {
369
+ name: "Enum",
370
+ allowedValues: [
371
+ "Consumption",
372
+ "Commitment_100AUHours",
373
+ "Commitment_500AUHours",
374
+ "Commitment_1000AUHours",
375
+ "Commitment_5000AUHours",
376
+ "Commitment_10000AUHours",
377
+ "Commitment_50000AUHours",
378
+ "Commitment_100000AUHours",
379
+ "Commitment_500000AUHours"
380
+ ]
381
+ }
382
+ },
383
+ maxJobCount: {
384
+ defaultValue: 3,
385
+ constraints: {
386
+ InclusiveMinimum: 1
387
+ },
388
+ serializedName: "properties.maxJobCount",
389
+ type: {
390
+ name: "Number"
391
+ }
392
+ },
393
+ maxDegreeOfParallelism: {
394
+ defaultValue: 30,
395
+ constraints: {
396
+ InclusiveMinimum: 1
397
+ },
398
+ serializedName: "properties.maxDegreeOfParallelism",
399
+ type: {
400
+ name: "Number"
401
+ }
402
+ },
403
+ maxDegreeOfParallelismPerJob: {
404
+ defaultValue: 32,
405
+ constraints: {
406
+ InclusiveMinimum: 1
407
+ },
408
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
409
+ type: {
410
+ name: "Number"
411
+ }
412
+ },
413
+ minPriorityPerJob: {
414
+ constraints: {
415
+ InclusiveMinimum: 1
416
+ },
417
+ serializedName: "properties.minPriorityPerJob",
418
+ type: {
419
+ name: "Number"
420
+ }
421
+ },
422
+ queryStoreRetention: {
423
+ defaultValue: 30,
424
+ constraints: {
425
+ InclusiveMaximum: 180,
426
+ InclusiveMinimum: 1
427
+ },
428
+ serializedName: "properties.queryStoreRetention",
429
+ type: {
430
+ name: "Number"
431
+ }
432
+ }
433
+ }
434
+ }
435
+ };
436
+ const AddDataLakeStoreWithAccountParameters = {
437
+ type: {
438
+ name: "Composite",
439
+ className: "AddDataLakeStoreWithAccountParameters",
440
+ modelProperties: {
441
+ name: {
442
+ serializedName: "name",
443
+ required: true,
444
+ type: {
445
+ name: "String"
446
+ }
447
+ },
448
+ suffix: {
449
+ serializedName: "properties.suffix",
450
+ type: {
451
+ name: "String"
452
+ }
453
+ }
454
+ }
455
+ }
456
+ };
457
+ const AddStorageAccountWithAccountParameters = {
458
+ type: {
459
+ name: "Composite",
460
+ className: "AddStorageAccountWithAccountParameters",
461
+ modelProperties: {
462
+ name: {
463
+ serializedName: "name",
464
+ required: true,
465
+ type: {
466
+ name: "String"
467
+ }
468
+ },
469
+ accessKey: {
470
+ serializedName: "properties.accessKey",
471
+ required: true,
472
+ type: {
473
+ name: "String"
474
+ }
475
+ },
476
+ suffix: {
477
+ defaultValue: "azuredatalakestore.net",
478
+ serializedName: "properties.suffix",
479
+ type: {
480
+ name: "String"
481
+ }
482
+ }
483
+ }
484
+ }
485
+ };
486
+ const CreateComputePolicyWithAccountParameters = {
487
+ type: {
488
+ name: "Composite",
489
+ className: "CreateComputePolicyWithAccountParameters",
490
+ modelProperties: {
491
+ name: {
492
+ serializedName: "name",
493
+ required: true,
494
+ type: {
495
+ name: "String"
496
+ }
497
+ },
498
+ objectId: {
499
+ serializedName: "properties.objectId",
500
+ required: true,
501
+ type: {
502
+ name: "Uuid"
503
+ }
504
+ },
505
+ objectType: {
506
+ serializedName: "properties.objectType",
507
+ required: true,
508
+ type: {
509
+ name: "String"
510
+ }
511
+ },
512
+ maxDegreeOfParallelismPerJob: {
513
+ constraints: {
514
+ InclusiveMinimum: 1
515
+ },
516
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
517
+ type: {
518
+ name: "Number"
519
+ }
520
+ },
521
+ minPriorityPerJob: {
522
+ constraints: {
523
+ InclusiveMinimum: 1
524
+ },
525
+ serializedName: "properties.minPriorityPerJob",
526
+ type: {
527
+ name: "Number"
528
+ }
529
+ }
530
+ }
531
+ }
532
+ };
533
+ const CreateFirewallRuleWithAccountParameters = {
534
+ type: {
535
+ name: "Composite",
536
+ className: "CreateFirewallRuleWithAccountParameters",
537
+ modelProperties: {
538
+ name: {
539
+ serializedName: "name",
540
+ required: true,
541
+ type: {
542
+ name: "String"
543
+ }
544
+ },
545
+ startIpAddress: {
546
+ serializedName: "properties.startIpAddress",
547
+ required: true,
548
+ type: {
549
+ name: "String"
550
+ }
551
+ },
552
+ endIpAddress: {
553
+ serializedName: "properties.endIpAddress",
554
+ required: true,
555
+ type: {
556
+ name: "String"
557
+ }
558
+ }
559
+ }
560
+ }
561
+ };
562
+ const SubResource = {
563
+ type: {
564
+ name: "Composite",
565
+ className: "SubResource",
566
+ modelProperties: {
567
+ id: {
568
+ serializedName: "id",
569
+ readOnly: true,
570
+ type: {
571
+ name: "String"
572
+ }
573
+ },
574
+ name: {
575
+ serializedName: "name",
576
+ readOnly: true,
577
+ type: {
578
+ name: "String"
579
+ }
580
+ },
581
+ type: {
582
+ serializedName: "type",
583
+ readOnly: true,
584
+ type: {
585
+ name: "String"
586
+ }
587
+ }
588
+ }
589
+ }
590
+ };
591
+ const UpdateDataLakeAnalyticsAccountParameters = {
592
+ type: {
593
+ name: "Composite",
594
+ className: "UpdateDataLakeAnalyticsAccountParameters",
595
+ modelProperties: {
596
+ tags: {
597
+ serializedName: "tags",
598
+ type: {
599
+ name: "Dictionary",
600
+ value: { type: { name: "String" } }
601
+ }
602
+ },
603
+ dataLakeStoreAccounts: {
604
+ serializedName: "properties.dataLakeStoreAccounts",
605
+ type: {
606
+ name: "Sequence",
607
+ element: {
608
+ type: {
609
+ name: "Composite",
610
+ className: "UpdateDataLakeStoreWithAccountParameters"
611
+ }
612
+ }
613
+ }
614
+ },
615
+ storageAccounts: {
616
+ serializedName: "properties.storageAccounts",
617
+ type: {
618
+ name: "Sequence",
619
+ element: {
620
+ type: {
621
+ name: "Composite",
622
+ className: "UpdateStorageAccountWithAccountParameters"
623
+ }
624
+ }
625
+ }
626
+ },
627
+ computePolicies: {
628
+ serializedName: "properties.computePolicies",
629
+ type: {
630
+ name: "Sequence",
631
+ element: {
632
+ type: {
633
+ name: "Composite",
634
+ className: "UpdateComputePolicyWithAccountParameters"
635
+ }
636
+ }
637
+ }
638
+ },
639
+ firewallRules: {
640
+ serializedName: "properties.firewallRules",
641
+ type: {
642
+ name: "Sequence",
643
+ element: {
644
+ type: {
645
+ name: "Composite",
646
+ className: "UpdateFirewallRuleWithAccountParameters"
647
+ }
648
+ }
649
+ }
650
+ },
651
+ firewallState: {
652
+ serializedName: "properties.firewallState",
653
+ type: {
654
+ name: "Enum",
655
+ allowedValues: ["Enabled", "Disabled"]
656
+ }
657
+ },
658
+ firewallAllowAzureIps: {
659
+ serializedName: "properties.firewallAllowAzureIps",
660
+ type: {
661
+ name: "Enum",
662
+ allowedValues: ["Enabled", "Disabled"]
663
+ }
664
+ },
665
+ newTier: {
666
+ serializedName: "properties.newTier",
667
+ type: {
668
+ name: "Enum",
669
+ allowedValues: [
670
+ "Consumption",
671
+ "Commitment_100AUHours",
672
+ "Commitment_500AUHours",
673
+ "Commitment_1000AUHours",
674
+ "Commitment_5000AUHours",
675
+ "Commitment_10000AUHours",
676
+ "Commitment_50000AUHours",
677
+ "Commitment_100000AUHours",
678
+ "Commitment_500000AUHours"
679
+ ]
680
+ }
681
+ },
682
+ maxJobCount: {
683
+ constraints: {
684
+ InclusiveMinimum: 1
685
+ },
686
+ serializedName: "properties.maxJobCount",
687
+ type: {
688
+ name: "Number"
689
+ }
690
+ },
691
+ maxDegreeOfParallelism: {
692
+ constraints: {
693
+ InclusiveMinimum: 1
694
+ },
695
+ serializedName: "properties.maxDegreeOfParallelism",
696
+ type: {
697
+ name: "Number"
698
+ }
699
+ },
700
+ maxDegreeOfParallelismPerJob: {
701
+ constraints: {
702
+ InclusiveMinimum: 1
703
+ },
704
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
705
+ type: {
706
+ name: "Number"
707
+ }
708
+ },
709
+ minPriorityPerJob: {
710
+ constraints: {
711
+ InclusiveMinimum: 1
712
+ },
713
+ serializedName: "properties.minPriorityPerJob",
714
+ type: {
715
+ name: "Number"
716
+ }
717
+ },
718
+ queryStoreRetention: {
719
+ constraints: {
720
+ InclusiveMaximum: 180,
721
+ InclusiveMinimum: 1
722
+ },
723
+ serializedName: "properties.queryStoreRetention",
724
+ type: {
725
+ name: "Number"
726
+ }
727
+ }
728
+ }
729
+ }
730
+ };
731
+ const UpdateDataLakeStoreWithAccountParameters = {
732
+ type: {
733
+ name: "Composite",
734
+ className: "UpdateDataLakeStoreWithAccountParameters",
735
+ modelProperties: {
736
+ name: {
737
+ serializedName: "name",
738
+ required: true,
739
+ type: {
740
+ name: "String"
741
+ }
742
+ },
743
+ suffix: {
744
+ serializedName: "properties.suffix",
745
+ type: {
746
+ name: "String"
747
+ }
748
+ }
749
+ }
750
+ }
751
+ };
752
+ const UpdateStorageAccountWithAccountParameters = {
753
+ type: {
754
+ name: "Composite",
755
+ className: "UpdateStorageAccountWithAccountParameters",
756
+ modelProperties: {
757
+ name: {
758
+ serializedName: "name",
759
+ required: true,
760
+ type: {
761
+ name: "String"
762
+ }
763
+ },
764
+ accessKey: {
765
+ serializedName: "properties.accessKey",
766
+ type: {
767
+ name: "String"
768
+ }
769
+ },
770
+ suffix: {
771
+ serializedName: "properties.suffix",
772
+ type: {
773
+ name: "String"
774
+ }
775
+ }
776
+ }
777
+ }
778
+ };
779
+ const UpdateComputePolicyWithAccountParameters = {
780
+ type: {
781
+ name: "Composite",
782
+ className: "UpdateComputePolicyWithAccountParameters",
783
+ modelProperties: {
784
+ name: {
785
+ serializedName: "name",
786
+ required: true,
787
+ type: {
788
+ name: "String"
789
+ }
790
+ },
791
+ objectId: {
792
+ serializedName: "properties.objectId",
793
+ type: {
794
+ name: "Uuid"
795
+ }
796
+ },
797
+ objectType: {
798
+ serializedName: "properties.objectType",
799
+ type: {
800
+ name: "String"
801
+ }
802
+ },
803
+ maxDegreeOfParallelismPerJob: {
804
+ constraints: {
805
+ InclusiveMinimum: 1
806
+ },
807
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
808
+ type: {
809
+ name: "Number"
810
+ }
811
+ },
812
+ minPriorityPerJob: {
813
+ constraints: {
814
+ InclusiveMinimum: 1
815
+ },
816
+ serializedName: "properties.minPriorityPerJob",
817
+ type: {
818
+ name: "Number"
819
+ }
820
+ }
821
+ }
822
+ }
823
+ };
824
+ const UpdateFirewallRuleWithAccountParameters = {
825
+ type: {
826
+ name: "Composite",
827
+ className: "UpdateFirewallRuleWithAccountParameters",
828
+ modelProperties: {
829
+ name: {
830
+ serializedName: "name",
831
+ required: true,
832
+ type: {
833
+ name: "String"
834
+ }
835
+ },
836
+ startIpAddress: {
837
+ serializedName: "properties.startIpAddress",
838
+ type: {
839
+ name: "String"
840
+ }
841
+ },
842
+ endIpAddress: {
843
+ serializedName: "properties.endIpAddress",
844
+ type: {
845
+ name: "String"
846
+ }
847
+ }
848
+ }
849
+ }
850
+ };
851
+ const DataLakeStoreAccountInformationListResult = {
852
+ type: {
853
+ name: "Composite",
854
+ className: "DataLakeStoreAccountInformationListResult",
855
+ modelProperties: {
856
+ value: {
857
+ serializedName: "value",
858
+ readOnly: true,
859
+ type: {
860
+ name: "Sequence",
861
+ element: {
862
+ type: {
863
+ name: "Composite",
864
+ className: "DataLakeStoreAccountInformation"
865
+ }
866
+ }
867
+ }
868
+ },
869
+ nextLink: {
870
+ serializedName: "nextLink",
871
+ readOnly: true,
872
+ type: {
873
+ name: "String"
874
+ }
875
+ }
876
+ }
877
+ }
878
+ };
879
+ const AddDataLakeStoreParameters = {
880
+ type: {
881
+ name: "Composite",
882
+ className: "AddDataLakeStoreParameters",
883
+ modelProperties: {
884
+ suffix: {
885
+ serializedName: "properties.suffix",
886
+ type: {
887
+ name: "String"
888
+ }
889
+ }
890
+ }
891
+ }
892
+ };
893
+ const StorageAccountInformationListResult = {
894
+ type: {
895
+ name: "Composite",
896
+ className: "StorageAccountInformationListResult",
897
+ modelProperties: {
898
+ value: {
899
+ serializedName: "value",
900
+ readOnly: true,
901
+ type: {
902
+ name: "Sequence",
903
+ element: {
904
+ type: {
905
+ name: "Composite",
906
+ className: "StorageAccountInformation"
907
+ }
908
+ }
909
+ }
910
+ },
911
+ nextLink: {
912
+ serializedName: "nextLink",
913
+ readOnly: true,
914
+ type: {
915
+ name: "String"
916
+ }
917
+ }
918
+ }
919
+ }
920
+ };
921
+ const AddStorageAccountParameters = {
922
+ type: {
923
+ name: "Composite",
924
+ className: "AddStorageAccountParameters",
925
+ modelProperties: {
926
+ accessKey: {
927
+ serializedName: "properties.accessKey",
928
+ required: true,
929
+ type: {
930
+ name: "String"
931
+ }
932
+ },
933
+ suffix: {
934
+ defaultValue: "azuredatalakestore.net",
935
+ serializedName: "properties.suffix",
936
+ type: {
937
+ name: "String"
938
+ }
939
+ }
940
+ }
941
+ }
942
+ };
943
+ const UpdateStorageAccountParameters = {
944
+ type: {
945
+ name: "Composite",
946
+ className: "UpdateStorageAccountParameters",
947
+ modelProperties: {
948
+ accessKey: {
949
+ serializedName: "properties.accessKey",
950
+ type: {
951
+ name: "String"
952
+ }
953
+ },
954
+ suffix: {
955
+ serializedName: "properties.suffix",
956
+ type: {
957
+ name: "String"
958
+ }
959
+ }
960
+ }
961
+ }
962
+ };
963
+ const StorageContainerListResult = {
964
+ type: {
965
+ name: "Composite",
966
+ className: "StorageContainerListResult",
967
+ modelProperties: {
968
+ value: {
969
+ serializedName: "value",
970
+ readOnly: true,
971
+ type: {
972
+ name: "Sequence",
973
+ element: {
974
+ type: {
975
+ name: "Composite",
976
+ className: "StorageContainer"
977
+ }
978
+ }
979
+ }
980
+ },
981
+ nextLink: {
982
+ serializedName: "nextLink",
983
+ readOnly: true,
984
+ type: {
985
+ name: "String"
986
+ }
987
+ }
988
+ }
989
+ }
990
+ };
991
+ const SasTokenInformationListResult = {
992
+ type: {
993
+ name: "Composite",
994
+ className: "SasTokenInformationListResult",
995
+ modelProperties: {
996
+ value: {
997
+ serializedName: "value",
998
+ readOnly: true,
999
+ type: {
1000
+ name: "Sequence",
1001
+ element: {
1002
+ type: {
1003
+ name: "Composite",
1004
+ className: "SasTokenInformation"
1005
+ }
1006
+ }
1007
+ }
1008
+ },
1009
+ nextLink: {
1010
+ serializedName: "nextLink",
1011
+ readOnly: true,
1012
+ type: {
1013
+ name: "String"
1014
+ }
1015
+ }
1016
+ }
1017
+ }
1018
+ };
1019
+ const SasTokenInformation = {
1020
+ type: {
1021
+ name: "Composite",
1022
+ className: "SasTokenInformation",
1023
+ modelProperties: {
1024
+ accessToken: {
1025
+ serializedName: "accessToken",
1026
+ readOnly: true,
1027
+ type: {
1028
+ name: "String"
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ };
1034
+ const ComputePolicyListResult = {
1035
+ type: {
1036
+ name: "Composite",
1037
+ className: "ComputePolicyListResult",
1038
+ modelProperties: {
1039
+ value: {
1040
+ serializedName: "value",
1041
+ readOnly: true,
1042
+ type: {
1043
+ name: "Sequence",
1044
+ element: {
1045
+ type: {
1046
+ name: "Composite",
1047
+ className: "ComputePolicy"
1048
+ }
1049
+ }
1050
+ }
1051
+ },
1052
+ nextLink: {
1053
+ serializedName: "nextLink",
1054
+ readOnly: true,
1055
+ type: {
1056
+ name: "String"
1057
+ }
1058
+ }
1059
+ }
1060
+ }
1061
+ };
1062
+ const CreateOrUpdateComputePolicyParameters = {
1063
+ type: {
1064
+ name: "Composite",
1065
+ className: "CreateOrUpdateComputePolicyParameters",
1066
+ modelProperties: {
1067
+ objectId: {
1068
+ serializedName: "properties.objectId",
1069
+ required: true,
1070
+ type: {
1071
+ name: "Uuid"
1072
+ }
1073
+ },
1074
+ objectType: {
1075
+ serializedName: "properties.objectType",
1076
+ required: true,
1077
+ type: {
1078
+ name: "String"
1079
+ }
1080
+ },
1081
+ maxDegreeOfParallelismPerJob: {
1082
+ constraints: {
1083
+ InclusiveMinimum: 1
1084
+ },
1085
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
1086
+ type: {
1087
+ name: "Number"
1088
+ }
1089
+ },
1090
+ minPriorityPerJob: {
1091
+ constraints: {
1092
+ InclusiveMinimum: 1
1093
+ },
1094
+ serializedName: "properties.minPriorityPerJob",
1095
+ type: {
1096
+ name: "Number"
1097
+ }
1098
+ }
1099
+ }
1100
+ }
1101
+ };
1102
+ const UpdateComputePolicyParameters = {
1103
+ type: {
1104
+ name: "Composite",
1105
+ className: "UpdateComputePolicyParameters",
1106
+ modelProperties: {
1107
+ objectId: {
1108
+ serializedName: "properties.objectId",
1109
+ type: {
1110
+ name: "Uuid"
1111
+ }
1112
+ },
1113
+ objectType: {
1114
+ serializedName: "properties.objectType",
1115
+ type: {
1116
+ name: "String"
1117
+ }
1118
+ },
1119
+ maxDegreeOfParallelismPerJob: {
1120
+ constraints: {
1121
+ InclusiveMinimum: 1
1122
+ },
1123
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
1124
+ type: {
1125
+ name: "Number"
1126
+ }
1127
+ },
1128
+ minPriorityPerJob: {
1129
+ constraints: {
1130
+ InclusiveMinimum: 1
1131
+ },
1132
+ serializedName: "properties.minPriorityPerJob",
1133
+ type: {
1134
+ name: "Number"
1135
+ }
1136
+ }
1137
+ }
1138
+ }
1139
+ };
1140
+ const FirewallRuleListResult = {
1141
+ type: {
1142
+ name: "Composite",
1143
+ className: "FirewallRuleListResult",
1144
+ modelProperties: {
1145
+ value: {
1146
+ serializedName: "value",
1147
+ readOnly: true,
1148
+ type: {
1149
+ name: "Sequence",
1150
+ element: {
1151
+ type: {
1152
+ name: "Composite",
1153
+ className: "FirewallRule"
1154
+ }
1155
+ }
1156
+ }
1157
+ },
1158
+ nextLink: {
1159
+ serializedName: "nextLink",
1160
+ readOnly: true,
1161
+ type: {
1162
+ name: "String"
1163
+ }
1164
+ }
1165
+ }
1166
+ }
1167
+ };
1168
+ const CreateOrUpdateFirewallRuleParameters = {
1169
+ type: {
1170
+ name: "Composite",
1171
+ className: "CreateOrUpdateFirewallRuleParameters",
1172
+ modelProperties: {
1173
+ startIpAddress: {
1174
+ serializedName: "properties.startIpAddress",
1175
+ required: true,
1176
+ type: {
1177
+ name: "String"
1178
+ }
1179
+ },
1180
+ endIpAddress: {
1181
+ serializedName: "properties.endIpAddress",
1182
+ required: true,
1183
+ type: {
1184
+ name: "String"
1185
+ }
1186
+ }
1187
+ }
1188
+ }
1189
+ };
1190
+ const UpdateFirewallRuleParameters = {
1191
+ type: {
1192
+ name: "Composite",
1193
+ className: "UpdateFirewallRuleParameters",
1194
+ modelProperties: {
1195
+ startIpAddress: {
1196
+ serializedName: "properties.startIpAddress",
1197
+ type: {
1198
+ name: "String"
1199
+ }
1200
+ },
1201
+ endIpAddress: {
1202
+ serializedName: "properties.endIpAddress",
1203
+ type: {
1204
+ name: "String"
1205
+ }
1206
+ }
1207
+ }
1208
+ }
1209
+ };
1210
+ const OperationListResult = {
1211
+ type: {
1212
+ name: "Composite",
1213
+ className: "OperationListResult",
1214
+ modelProperties: {
1215
+ value: {
1216
+ serializedName: "value",
1217
+ readOnly: true,
1218
+ type: {
1219
+ name: "Sequence",
1220
+ element: {
1221
+ type: {
1222
+ name: "Composite",
1223
+ className: "Operation"
1224
+ }
1225
+ }
1226
+ }
1227
+ },
1228
+ nextLink: {
1229
+ serializedName: "nextLink",
1230
+ readOnly: true,
1231
+ type: {
1232
+ name: "String"
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ };
1238
+ const Operation = {
1239
+ type: {
1240
+ name: "Composite",
1241
+ className: "Operation",
1242
+ modelProperties: {
1243
+ name: {
1244
+ serializedName: "name",
1245
+ readOnly: true,
1246
+ type: {
1247
+ name: "String"
1248
+ }
1249
+ },
1250
+ display: {
1251
+ serializedName: "display",
1252
+ type: {
1253
+ name: "Composite",
1254
+ className: "OperationDisplay"
1255
+ }
1256
+ },
1257
+ properties: {
1258
+ serializedName: "properties",
1259
+ type: {
1260
+ name: "Composite",
1261
+ className: "OperationMetaPropertyInfo"
1262
+ }
1263
+ },
1264
+ origin: {
1265
+ serializedName: "origin",
1266
+ readOnly: true,
1267
+ type: {
1268
+ name: "String"
1269
+ }
1270
+ }
1271
+ }
1272
+ }
1273
+ };
1274
+ const OperationDisplay = {
1275
+ type: {
1276
+ name: "Composite",
1277
+ className: "OperationDisplay",
1278
+ modelProperties: {
1279
+ provider: {
1280
+ serializedName: "provider",
1281
+ readOnly: true,
1282
+ type: {
1283
+ name: "String"
1284
+ }
1285
+ },
1286
+ resource: {
1287
+ serializedName: "resource",
1288
+ readOnly: true,
1289
+ type: {
1290
+ name: "String"
1291
+ }
1292
+ },
1293
+ operation: {
1294
+ serializedName: "operation",
1295
+ readOnly: true,
1296
+ type: {
1297
+ name: "String"
1298
+ }
1299
+ },
1300
+ description: {
1301
+ serializedName: "description",
1302
+ readOnly: true,
1303
+ type: {
1304
+ name: "String"
1305
+ }
1306
+ }
1307
+ }
1308
+ }
1309
+ };
1310
+ const OperationMetaPropertyInfo = {
1311
+ type: {
1312
+ name: "Composite",
1313
+ className: "OperationMetaPropertyInfo",
1314
+ modelProperties: {
1315
+ serviceSpecification: {
1316
+ serializedName: "serviceSpecification",
1317
+ type: {
1318
+ name: "Composite",
1319
+ className: "OperationMetaServiceSpecification"
1320
+ }
1321
+ }
1322
+ }
1323
+ }
1324
+ };
1325
+ const OperationMetaServiceSpecification = {
1326
+ type: {
1327
+ name: "Composite",
1328
+ className: "OperationMetaServiceSpecification",
1329
+ modelProperties: {
1330
+ metricSpecifications: {
1331
+ serializedName: "metricSpecifications",
1332
+ type: {
1333
+ name: "Sequence",
1334
+ element: {
1335
+ type: {
1336
+ name: "Composite",
1337
+ className: "OperationMetaMetricSpecification"
1338
+ }
1339
+ }
1340
+ }
1341
+ },
1342
+ logSpecifications: {
1343
+ serializedName: "logSpecifications",
1344
+ type: {
1345
+ name: "Sequence",
1346
+ element: {
1347
+ type: {
1348
+ name: "Composite",
1349
+ className: "OperationMetaLogSpecification"
1350
+ }
1351
+ }
1352
+ }
1353
+ }
1354
+ }
1355
+ }
1356
+ };
1357
+ const OperationMetaMetricSpecification = {
1358
+ type: {
1359
+ name: "Composite",
1360
+ className: "OperationMetaMetricSpecification",
1361
+ modelProperties: {
1362
+ name: {
1363
+ serializedName: "name",
1364
+ type: {
1365
+ name: "String"
1366
+ }
1367
+ },
1368
+ displayDescription: {
1369
+ serializedName: "displayDescription",
1370
+ type: {
1371
+ name: "String"
1372
+ }
1373
+ },
1374
+ displayName: {
1375
+ serializedName: "displayName",
1376
+ type: {
1377
+ name: "String"
1378
+ }
1379
+ },
1380
+ unit: {
1381
+ serializedName: "unit",
1382
+ type: {
1383
+ name: "String"
1384
+ }
1385
+ },
1386
+ aggregationType: {
1387
+ serializedName: "aggregationType",
1388
+ type: {
1389
+ name: "String"
1390
+ }
1391
+ },
1392
+ availabilities: {
1393
+ serializedName: "availabilities",
1394
+ type: {
1395
+ name: "Sequence",
1396
+ element: {
1397
+ type: {
1398
+ name: "Composite",
1399
+ className: "OperationMetaMetricAvailabilitiesSpecification"
1400
+ }
1401
+ }
1402
+ }
1403
+ }
1404
+ }
1405
+ }
1406
+ };
1407
+ const OperationMetaMetricAvailabilitiesSpecification = {
1408
+ type: {
1409
+ name: "Composite",
1410
+ className: "OperationMetaMetricAvailabilitiesSpecification",
1411
+ modelProperties: {
1412
+ timeGrain: {
1413
+ serializedName: "timeGrain",
1414
+ type: {
1415
+ name: "String"
1416
+ }
1417
+ },
1418
+ blobDuration: {
1419
+ serializedName: "blobDuration",
1420
+ type: {
1421
+ name: "String"
1422
+ }
1423
+ }
1424
+ }
1425
+ }
1426
+ };
1427
+ const OperationMetaLogSpecification = {
1428
+ type: {
1429
+ name: "Composite",
1430
+ className: "OperationMetaLogSpecification",
1431
+ modelProperties: {
1432
+ name: {
1433
+ serializedName: "name",
1434
+ type: {
1435
+ name: "String"
1436
+ }
1437
+ },
1438
+ displayName: {
1439
+ serializedName: "displayName",
1440
+ type: {
1441
+ name: "String"
1442
+ }
1443
+ },
1444
+ blobDuration: {
1445
+ serializedName: "blobDuration",
1446
+ type: {
1447
+ name: "String"
1448
+ }
1449
+ }
1450
+ }
1451
+ }
1452
+ };
1453
+ const CapabilityInformation = {
1454
+ type: {
1455
+ name: "Composite",
1456
+ className: "CapabilityInformation",
1457
+ modelProperties: {
1458
+ subscriptionId: {
1459
+ serializedName: "subscriptionId",
1460
+ readOnly: true,
1461
+ type: {
1462
+ name: "Uuid"
1463
+ }
1464
+ },
1465
+ state: {
1466
+ serializedName: "state",
1467
+ readOnly: true,
1468
+ type: {
1469
+ name: "String"
1470
+ }
1471
+ },
1472
+ maxAccountCount: {
1473
+ serializedName: "maxAccountCount",
1474
+ readOnly: true,
1475
+ type: {
1476
+ name: "Number"
1477
+ }
1478
+ },
1479
+ accountCount: {
1480
+ serializedName: "accountCount",
1481
+ readOnly: true,
1482
+ type: {
1483
+ name: "Number"
1484
+ }
1485
+ },
1486
+ migrationState: {
1487
+ serializedName: "migrationState",
1488
+ readOnly: true,
1489
+ type: {
1490
+ name: "Boolean"
1491
+ }
1492
+ }
1493
+ }
1494
+ }
1495
+ };
1496
+ const CheckNameAvailabilityParameters = {
1497
+ type: {
1498
+ name: "Composite",
1499
+ className: "CheckNameAvailabilityParameters",
1500
+ modelProperties: {
1501
+ name: {
1502
+ serializedName: "name",
1503
+ required: true,
1504
+ type: {
1505
+ name: "String"
1506
+ }
1507
+ },
1508
+ type: {
1509
+ defaultValue: "Microsoft.DataLakeAnalytics/accounts",
1510
+ isConstant: true,
1511
+ serializedName: "type",
1512
+ type: {
1513
+ name: "String"
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ };
1519
+ const NameAvailabilityInformation = {
1520
+ type: {
1521
+ name: "Composite",
1522
+ className: "NameAvailabilityInformation",
1523
+ modelProperties: {
1524
+ nameAvailable: {
1525
+ serializedName: "nameAvailable",
1526
+ readOnly: true,
1527
+ type: {
1528
+ name: "Boolean"
1529
+ }
1530
+ },
1531
+ reason: {
1532
+ serializedName: "reason",
1533
+ readOnly: true,
1534
+ type: {
1535
+ name: "String"
1536
+ }
1537
+ },
1538
+ message: {
1539
+ serializedName: "message",
1540
+ readOnly: true,
1541
+ type: {
1542
+ name: "String"
1543
+ }
1544
+ }
1545
+ }
1546
+ }
1547
+ };
1548
+ const VirtualNetworkRuleListResult = {
1549
+ type: {
1550
+ name: "Composite",
1551
+ className: "VirtualNetworkRuleListResult",
1552
+ modelProperties: {
1553
+ value: {
1554
+ serializedName: "value",
1555
+ readOnly: true,
1556
+ type: {
1557
+ name: "Sequence",
1558
+ element: {
1559
+ type: {
1560
+ name: "Composite",
1561
+ className: "VirtualNetworkRule"
1562
+ }
1563
+ }
1564
+ }
1565
+ },
1566
+ nextLink: {
1567
+ serializedName: "nextLink",
1568
+ readOnly: true,
1569
+ type: {
1570
+ name: "String"
1571
+ }
1572
+ }
1573
+ }
1574
+ }
1575
+ };
1576
+ const HiveMetastoreListResult = {
1577
+ type: {
1578
+ name: "Composite",
1579
+ className: "HiveMetastoreListResult",
1580
+ modelProperties: {
1581
+ value: {
1582
+ serializedName: "value",
1583
+ readOnly: true,
1584
+ type: {
1585
+ name: "Sequence",
1586
+ element: {
1587
+ type: {
1588
+ name: "Composite",
1589
+ className: "HiveMetastore"
1590
+ }
1591
+ }
1592
+ }
1593
+ },
1594
+ nextLink: {
1595
+ serializedName: "nextLink",
1596
+ readOnly: true,
1597
+ type: {
1598
+ name: "String"
1599
+ }
1600
+ }
1601
+ }
1602
+ }
1603
+ };
1604
+ const DataLakeAnalyticsAccountProperties = {
1605
+ type: {
1606
+ name: "Composite",
1607
+ className: "DataLakeAnalyticsAccountProperties",
1608
+ modelProperties: Object.assign(Object.assign({}, DataLakeAnalyticsAccountPropertiesBasic.type.modelProperties), { defaultDataLakeStoreAccountType: {
1609
+ serializedName: "defaultDataLakeStoreAccountType",
1610
+ readOnly: true,
1611
+ type: {
1612
+ name: "String"
1613
+ }
1614
+ }, defaultDataLakeStoreAccount: {
1615
+ serializedName: "defaultDataLakeStoreAccount",
1616
+ readOnly: true,
1617
+ type: {
1618
+ name: "String"
1619
+ }
1620
+ }, dataLakeStoreAccounts: {
1621
+ serializedName: "dataLakeStoreAccounts",
1622
+ readOnly: true,
1623
+ type: {
1624
+ name: "Sequence",
1625
+ element: {
1626
+ type: {
1627
+ name: "Composite",
1628
+ className: "DataLakeStoreAccountInformation"
1629
+ }
1630
+ }
1631
+ }
1632
+ }, publicDataLakeStoreAccounts: {
1633
+ serializedName: "publicDataLakeStoreAccounts",
1634
+ type: {
1635
+ name: "Sequence",
1636
+ element: {
1637
+ type: {
1638
+ name: "Composite",
1639
+ className: "DataLakeStoreAccountInformation"
1640
+ }
1641
+ }
1642
+ }
1643
+ }, storageAccounts: {
1644
+ serializedName: "storageAccounts",
1645
+ readOnly: true,
1646
+ type: {
1647
+ name: "Sequence",
1648
+ element: {
1649
+ type: {
1650
+ name: "Composite",
1651
+ className: "StorageAccountInformation"
1652
+ }
1653
+ }
1654
+ }
1655
+ }, computePolicies: {
1656
+ serializedName: "computePolicies",
1657
+ readOnly: true,
1658
+ type: {
1659
+ name: "Sequence",
1660
+ element: {
1661
+ type: {
1662
+ name: "Composite",
1663
+ className: "ComputePolicy"
1664
+ }
1665
+ }
1666
+ }
1667
+ }, hiveMetastores: {
1668
+ serializedName: "hiveMetastores",
1669
+ readOnly: true,
1670
+ type: {
1671
+ name: "Sequence",
1672
+ element: {
1673
+ type: {
1674
+ name: "Composite",
1675
+ className: "HiveMetastore"
1676
+ }
1677
+ }
1678
+ }
1679
+ }, virtualNetworkRules: {
1680
+ serializedName: "virtualNetworkRules",
1681
+ readOnly: true,
1682
+ type: {
1683
+ name: "Sequence",
1684
+ element: {
1685
+ type: {
1686
+ name: "Composite",
1687
+ className: "VirtualNetworkRule"
1688
+ }
1689
+ }
1690
+ }
1691
+ }, firewallRules: {
1692
+ serializedName: "firewallRules",
1693
+ readOnly: true,
1694
+ type: {
1695
+ name: "Sequence",
1696
+ element: {
1697
+ type: {
1698
+ name: "Composite",
1699
+ className: "FirewallRule"
1700
+ }
1701
+ }
1702
+ }
1703
+ }, firewallState: {
1704
+ serializedName: "firewallState",
1705
+ type: {
1706
+ name: "Enum",
1707
+ allowedValues: ["Enabled", "Disabled"]
1708
+ }
1709
+ }, firewallAllowAzureIps: {
1710
+ serializedName: "firewallAllowAzureIps",
1711
+ type: {
1712
+ name: "Enum",
1713
+ allowedValues: ["Enabled", "Disabled"]
1714
+ }
1715
+ }, newTier: {
1716
+ serializedName: "newTier",
1717
+ type: {
1718
+ name: "Enum",
1719
+ allowedValues: [
1720
+ "Consumption",
1721
+ "Commitment_100AUHours",
1722
+ "Commitment_500AUHours",
1723
+ "Commitment_1000AUHours",
1724
+ "Commitment_5000AUHours",
1725
+ "Commitment_10000AUHours",
1726
+ "Commitment_50000AUHours",
1727
+ "Commitment_100000AUHours",
1728
+ "Commitment_500000AUHours"
1729
+ ]
1730
+ }
1731
+ }, currentTier: {
1732
+ serializedName: "currentTier",
1733
+ readOnly: true,
1734
+ type: {
1735
+ name: "Enum",
1736
+ allowedValues: [
1737
+ "Consumption",
1738
+ "Commitment_100AUHours",
1739
+ "Commitment_500AUHours",
1740
+ "Commitment_1000AUHours",
1741
+ "Commitment_5000AUHours",
1742
+ "Commitment_10000AUHours",
1743
+ "Commitment_50000AUHours",
1744
+ "Commitment_100000AUHours",
1745
+ "Commitment_500000AUHours"
1746
+ ]
1747
+ }
1748
+ }, maxJobCount: {
1749
+ defaultValue: 3,
1750
+ constraints: {
1751
+ InclusiveMinimum: 1
1752
+ },
1753
+ serializedName: "maxJobCount",
1754
+ type: {
1755
+ name: "Number"
1756
+ }
1757
+ }, maxActiveJobCountPerUser: {
1758
+ serializedName: "maxActiveJobCountPerUser",
1759
+ readOnly: true,
1760
+ type: {
1761
+ name: "Number"
1762
+ }
1763
+ }, maxQueuedJobCountPerUser: {
1764
+ serializedName: "maxQueuedJobCountPerUser",
1765
+ readOnly: true,
1766
+ type: {
1767
+ name: "Number"
1768
+ }
1769
+ }, maxJobRunningTimeInMin: {
1770
+ serializedName: "maxJobRunningTimeInMin",
1771
+ readOnly: true,
1772
+ type: {
1773
+ name: "Number"
1774
+ }
1775
+ }, systemMaxJobCount: {
1776
+ serializedName: "systemMaxJobCount",
1777
+ readOnly: true,
1778
+ type: {
1779
+ name: "Number"
1780
+ }
1781
+ }, maxDegreeOfParallelism: {
1782
+ defaultValue: 30,
1783
+ constraints: {
1784
+ InclusiveMinimum: 1
1785
+ },
1786
+ serializedName: "maxDegreeOfParallelism",
1787
+ type: {
1788
+ name: "Number"
1789
+ }
1790
+ }, systemMaxDegreeOfParallelism: {
1791
+ serializedName: "systemMaxDegreeOfParallelism",
1792
+ readOnly: true,
1793
+ type: {
1794
+ name: "Number"
1795
+ }
1796
+ }, maxDegreeOfParallelismPerJob: {
1797
+ constraints: {
1798
+ InclusiveMinimum: 1
1799
+ },
1800
+ serializedName: "maxDegreeOfParallelismPerJob",
1801
+ type: {
1802
+ name: "Number"
1803
+ }
1804
+ }, minPriorityPerJob: {
1805
+ constraints: {
1806
+ InclusiveMinimum: 1
1807
+ },
1808
+ serializedName: "minPriorityPerJob",
1809
+ readOnly: true,
1810
+ type: {
1811
+ name: "Number"
1812
+ }
1813
+ }, queryStoreRetention: {
1814
+ defaultValue: 30,
1815
+ constraints: {
1816
+ InclusiveMaximum: 180,
1817
+ InclusiveMinimum: 1
1818
+ },
1819
+ serializedName: "queryStoreRetention",
1820
+ type: {
1821
+ name: "Number"
1822
+ }
1823
+ }, debugDataAccessLevel: {
1824
+ serializedName: "debugDataAccessLevel",
1825
+ readOnly: true,
1826
+ type: {
1827
+ name: "Enum",
1828
+ allowedValues: ["All", "Customer", "None"]
1829
+ }
1830
+ } })
1831
+ }
1832
+ };
1833
+ const DataLakeAnalyticsAccountBasic = {
1834
+ type: {
1835
+ name: "Composite",
1836
+ className: "DataLakeAnalyticsAccountBasic",
1837
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { accountId: {
1838
+ serializedName: "properties.accountId",
1839
+ readOnly: true,
1840
+ type: {
1841
+ name: "Uuid"
1842
+ }
1843
+ }, provisioningState: {
1844
+ serializedName: "properties.provisioningState",
1845
+ readOnly: true,
1846
+ type: {
1847
+ name: "Enum",
1848
+ allowedValues: [
1849
+ "Failed",
1850
+ "Creating",
1851
+ "Running",
1852
+ "Succeeded",
1853
+ "Patching",
1854
+ "Suspending",
1855
+ "Resuming",
1856
+ "Deleting",
1857
+ "Deleted",
1858
+ "Undeleting",
1859
+ "Canceled"
1860
+ ]
1861
+ }
1862
+ }, state: {
1863
+ serializedName: "properties.state",
1864
+ readOnly: true,
1865
+ type: {
1866
+ name: "Enum",
1867
+ allowedValues: ["Active", "Suspended"]
1868
+ }
1869
+ }, creationTime: {
1870
+ serializedName: "properties.creationTime",
1871
+ readOnly: true,
1872
+ type: {
1873
+ name: "DateTime"
1874
+ }
1875
+ }, lastModifiedTime: {
1876
+ serializedName: "properties.lastModifiedTime",
1877
+ readOnly: true,
1878
+ type: {
1879
+ name: "DateTime"
1880
+ }
1881
+ }, endpoint: {
1882
+ serializedName: "properties.endpoint",
1883
+ readOnly: true,
1884
+ type: {
1885
+ name: "String"
1886
+ }
1887
+ } })
1888
+ }
1889
+ };
1890
+ const DataLakeAnalyticsAccount = {
1891
+ type: {
1892
+ name: "Composite",
1893
+ className: "DataLakeAnalyticsAccount",
1894
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { accountId: {
1895
+ serializedName: "properties.accountId",
1896
+ readOnly: true,
1897
+ type: {
1898
+ name: "Uuid"
1899
+ }
1900
+ }, provisioningState: {
1901
+ serializedName: "properties.provisioningState",
1902
+ readOnly: true,
1903
+ type: {
1904
+ name: "Enum",
1905
+ allowedValues: [
1906
+ "Failed",
1907
+ "Creating",
1908
+ "Running",
1909
+ "Succeeded",
1910
+ "Patching",
1911
+ "Suspending",
1912
+ "Resuming",
1913
+ "Deleting",
1914
+ "Deleted",
1915
+ "Undeleting",
1916
+ "Canceled"
1917
+ ]
1918
+ }
1919
+ }, state: {
1920
+ serializedName: "properties.state",
1921
+ readOnly: true,
1922
+ type: {
1923
+ name: "Enum",
1924
+ allowedValues: ["Active", "Suspended"]
1925
+ }
1926
+ }, creationTime: {
1927
+ serializedName: "properties.creationTime",
1928
+ readOnly: true,
1929
+ type: {
1930
+ name: "DateTime"
1931
+ }
1932
+ }, lastModifiedTime: {
1933
+ serializedName: "properties.lastModifiedTime",
1934
+ readOnly: true,
1935
+ type: {
1936
+ name: "DateTime"
1937
+ }
1938
+ }, endpoint: {
1939
+ serializedName: "properties.endpoint",
1940
+ readOnly: true,
1941
+ type: {
1942
+ name: "String"
1943
+ }
1944
+ }, defaultDataLakeStoreAccountType: {
1945
+ serializedName: "properties.defaultDataLakeStoreAccountType",
1946
+ readOnly: true,
1947
+ type: {
1948
+ name: "String"
1949
+ }
1950
+ }, defaultDataLakeStoreAccount: {
1951
+ serializedName: "properties.defaultDataLakeStoreAccount",
1952
+ readOnly: true,
1953
+ type: {
1954
+ name: "String"
1955
+ }
1956
+ }, dataLakeStoreAccounts: {
1957
+ serializedName: "properties.dataLakeStoreAccounts",
1958
+ readOnly: true,
1959
+ type: {
1960
+ name: "Sequence",
1961
+ element: {
1962
+ type: {
1963
+ name: "Composite",
1964
+ className: "DataLakeStoreAccountInformation"
1965
+ }
1966
+ }
1967
+ }
1968
+ }, publicDataLakeStoreAccounts: {
1969
+ serializedName: "properties.publicDataLakeStoreAccounts",
1970
+ type: {
1971
+ name: "Sequence",
1972
+ element: {
1973
+ type: {
1974
+ name: "Composite",
1975
+ className: "DataLakeStoreAccountInformation"
1976
+ }
1977
+ }
1978
+ }
1979
+ }, storageAccounts: {
1980
+ serializedName: "properties.storageAccounts",
1981
+ readOnly: true,
1982
+ type: {
1983
+ name: "Sequence",
1984
+ element: {
1985
+ type: {
1986
+ name: "Composite",
1987
+ className: "StorageAccountInformation"
1988
+ }
1989
+ }
1990
+ }
1991
+ }, computePolicies: {
1992
+ serializedName: "properties.computePolicies",
1993
+ readOnly: true,
1994
+ type: {
1995
+ name: "Sequence",
1996
+ element: {
1997
+ type: {
1998
+ name: "Composite",
1999
+ className: "ComputePolicy"
2000
+ }
2001
+ }
2002
+ }
2003
+ }, hiveMetastores: {
2004
+ serializedName: "properties.hiveMetastores",
2005
+ readOnly: true,
2006
+ type: {
2007
+ name: "Sequence",
2008
+ element: {
2009
+ type: {
2010
+ name: "Composite",
2011
+ className: "HiveMetastore"
2012
+ }
2013
+ }
2014
+ }
2015
+ }, virtualNetworkRules: {
2016
+ serializedName: "properties.virtualNetworkRules",
2017
+ readOnly: true,
2018
+ type: {
2019
+ name: "Sequence",
2020
+ element: {
2021
+ type: {
2022
+ name: "Composite",
2023
+ className: "VirtualNetworkRule"
2024
+ }
2025
+ }
2026
+ }
2027
+ }, firewallRules: {
2028
+ serializedName: "properties.firewallRules",
2029
+ readOnly: true,
2030
+ type: {
2031
+ name: "Sequence",
2032
+ element: {
2033
+ type: {
2034
+ name: "Composite",
2035
+ className: "FirewallRule"
2036
+ }
2037
+ }
2038
+ }
2039
+ }, firewallState: {
2040
+ serializedName: "properties.firewallState",
2041
+ type: {
2042
+ name: "Enum",
2043
+ allowedValues: ["Enabled", "Disabled"]
2044
+ }
2045
+ }, firewallAllowAzureIps: {
2046
+ serializedName: "properties.firewallAllowAzureIps",
2047
+ type: {
2048
+ name: "Enum",
2049
+ allowedValues: ["Enabled", "Disabled"]
2050
+ }
2051
+ }, newTier: {
2052
+ serializedName: "properties.newTier",
2053
+ type: {
2054
+ name: "Enum",
2055
+ allowedValues: [
2056
+ "Consumption",
2057
+ "Commitment_100AUHours",
2058
+ "Commitment_500AUHours",
2059
+ "Commitment_1000AUHours",
2060
+ "Commitment_5000AUHours",
2061
+ "Commitment_10000AUHours",
2062
+ "Commitment_50000AUHours",
2063
+ "Commitment_100000AUHours",
2064
+ "Commitment_500000AUHours"
2065
+ ]
2066
+ }
2067
+ }, currentTier: {
2068
+ serializedName: "properties.currentTier",
2069
+ readOnly: true,
2070
+ type: {
2071
+ name: "Enum",
2072
+ allowedValues: [
2073
+ "Consumption",
2074
+ "Commitment_100AUHours",
2075
+ "Commitment_500AUHours",
2076
+ "Commitment_1000AUHours",
2077
+ "Commitment_5000AUHours",
2078
+ "Commitment_10000AUHours",
2079
+ "Commitment_50000AUHours",
2080
+ "Commitment_100000AUHours",
2081
+ "Commitment_500000AUHours"
2082
+ ]
2083
+ }
2084
+ }, maxJobCount: {
2085
+ defaultValue: 3,
2086
+ constraints: {
2087
+ InclusiveMinimum: 1
2088
+ },
2089
+ serializedName: "properties.maxJobCount",
2090
+ type: {
2091
+ name: "Number"
2092
+ }
2093
+ }, maxActiveJobCountPerUser: {
2094
+ serializedName: "properties.maxActiveJobCountPerUser",
2095
+ readOnly: true,
2096
+ type: {
2097
+ name: "Number"
2098
+ }
2099
+ }, maxQueuedJobCountPerUser: {
2100
+ serializedName: "properties.maxQueuedJobCountPerUser",
2101
+ readOnly: true,
2102
+ type: {
2103
+ name: "Number"
2104
+ }
2105
+ }, maxJobRunningTimeInMin: {
2106
+ serializedName: "properties.maxJobRunningTimeInMin",
2107
+ readOnly: true,
2108
+ type: {
2109
+ name: "Number"
2110
+ }
2111
+ }, systemMaxJobCount: {
2112
+ serializedName: "properties.systemMaxJobCount",
2113
+ readOnly: true,
2114
+ type: {
2115
+ name: "Number"
2116
+ }
2117
+ }, maxDegreeOfParallelism: {
2118
+ defaultValue: 30,
2119
+ constraints: {
2120
+ InclusiveMinimum: 1
2121
+ },
2122
+ serializedName: "properties.maxDegreeOfParallelism",
2123
+ type: {
2124
+ name: "Number"
2125
+ }
2126
+ }, systemMaxDegreeOfParallelism: {
2127
+ serializedName: "properties.systemMaxDegreeOfParallelism",
2128
+ readOnly: true,
2129
+ type: {
2130
+ name: "Number"
2131
+ }
2132
+ }, maxDegreeOfParallelismPerJob: {
2133
+ constraints: {
2134
+ InclusiveMinimum: 1
2135
+ },
2136
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
2137
+ type: {
2138
+ name: "Number"
2139
+ }
2140
+ }, minPriorityPerJob: {
2141
+ constraints: {
2142
+ InclusiveMinimum: 1
2143
+ },
2144
+ serializedName: "properties.minPriorityPerJob",
2145
+ readOnly: true,
2146
+ type: {
2147
+ name: "Number"
2148
+ }
2149
+ }, queryStoreRetention: {
2150
+ defaultValue: 30,
2151
+ constraints: {
2152
+ InclusiveMaximum: 180,
2153
+ InclusiveMinimum: 1
2154
+ },
2155
+ serializedName: "properties.queryStoreRetention",
2156
+ type: {
2157
+ name: "Number"
2158
+ }
2159
+ }, debugDataAccessLevel: {
2160
+ serializedName: "properties.debugDataAccessLevel",
2161
+ readOnly: true,
2162
+ type: {
2163
+ name: "Enum",
2164
+ allowedValues: ["All", "Customer", "None"]
2165
+ }
2166
+ } })
2167
+ }
2168
+ };
2169
+ const DataLakeStoreAccountInformation = {
2170
+ type: {
2171
+ name: "Composite",
2172
+ className: "DataLakeStoreAccountInformation",
2173
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { suffix: {
2174
+ serializedName: "properties.suffix",
2175
+ readOnly: true,
2176
+ type: {
2177
+ name: "String"
2178
+ }
2179
+ } })
2180
+ }
2181
+ };
2182
+ const StorageAccountInformation = {
2183
+ type: {
2184
+ name: "Composite",
2185
+ className: "StorageAccountInformation",
2186
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { suffix: {
2187
+ serializedName: "properties.suffix",
2188
+ readOnly: true,
2189
+ type: {
2190
+ name: "String"
2191
+ }
2192
+ } })
2193
+ }
2194
+ };
2195
+ const ComputePolicy = {
2196
+ type: {
2197
+ name: "Composite",
2198
+ className: "ComputePolicy",
2199
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { objectId: {
2200
+ serializedName: "properties.objectId",
2201
+ readOnly: true,
2202
+ type: {
2203
+ name: "Uuid"
2204
+ }
2205
+ }, objectType: {
2206
+ serializedName: "properties.objectType",
2207
+ readOnly: true,
2208
+ type: {
2209
+ name: "String"
2210
+ }
2211
+ }, maxDegreeOfParallelismPerJob: {
2212
+ constraints: {
2213
+ InclusiveMinimum: 1
2214
+ },
2215
+ serializedName: "properties.maxDegreeOfParallelismPerJob",
2216
+ readOnly: true,
2217
+ type: {
2218
+ name: "Number"
2219
+ }
2220
+ }, minPriorityPerJob: {
2221
+ constraints: {
2222
+ InclusiveMinimum: 1
2223
+ },
2224
+ serializedName: "properties.minPriorityPerJob",
2225
+ readOnly: true,
2226
+ type: {
2227
+ name: "Number"
2228
+ }
2229
+ } })
2230
+ }
2231
+ };
2232
+ const HiveMetastore = {
2233
+ type: {
2234
+ name: "Composite",
2235
+ className: "HiveMetastore",
2236
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { serverUri: {
2237
+ serializedName: "properties.serverUri",
2238
+ readOnly: true,
2239
+ type: {
2240
+ name: "String"
2241
+ }
2242
+ }, databaseName: {
2243
+ serializedName: "properties.databaseName",
2244
+ readOnly: true,
2245
+ type: {
2246
+ name: "String"
2247
+ }
2248
+ }, runtimeVersion: {
2249
+ serializedName: "properties.runtimeVersion",
2250
+ readOnly: true,
2251
+ type: {
2252
+ name: "String"
2253
+ }
2254
+ }, userName: {
2255
+ serializedName: "properties.userName",
2256
+ readOnly: true,
2257
+ type: {
2258
+ name: "String"
2259
+ }
2260
+ }, password: {
2261
+ serializedName: "properties.password",
2262
+ readOnly: true,
2263
+ type: {
2264
+ name: "String"
2265
+ }
2266
+ }, nestedResourceProvisioningState: {
2267
+ serializedName: "properties.nestedResourceProvisioningState",
2268
+ readOnly: true,
2269
+ type: {
2270
+ name: "Enum",
2271
+ allowedValues: ["Succeeded", "Canceled", "Failed"]
2272
+ }
2273
+ } })
2274
+ }
2275
+ };
2276
+ const VirtualNetworkRule = {
2277
+ type: {
2278
+ name: "Composite",
2279
+ className: "VirtualNetworkRule",
2280
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { subnetId: {
2281
+ serializedName: "properties.subnetId",
2282
+ readOnly: true,
2283
+ type: {
2284
+ name: "String"
2285
+ }
2286
+ }, virtualNetworkRuleState: {
2287
+ serializedName: "properties.virtualNetworkRuleState",
2288
+ readOnly: true,
2289
+ type: {
2290
+ name: "Enum",
2291
+ allowedValues: ["Active", "NetworkSourceDeleted", "Failed"]
2292
+ }
2293
+ } })
2294
+ }
2295
+ };
2296
+ const FirewallRule = {
2297
+ type: {
2298
+ name: "Composite",
2299
+ className: "FirewallRule",
2300
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { startIpAddress: {
2301
+ serializedName: "properties.startIpAddress",
2302
+ readOnly: true,
2303
+ type: {
2304
+ name: "String"
2305
+ }
2306
+ }, endIpAddress: {
2307
+ serializedName: "properties.endIpAddress",
2308
+ readOnly: true,
2309
+ type: {
2310
+ name: "String"
2311
+ }
2312
+ } })
2313
+ }
2314
+ };
2315
+ const StorageContainer = {
2316
+ type: {
2317
+ name: "Composite",
2318
+ className: "StorageContainer",
2319
+ modelProperties: Object.assign(Object.assign({}, SubResource.type.modelProperties), { lastModifiedTime: {
2320
+ serializedName: "properties.lastModifiedTime",
2321
+ readOnly: true,
2322
+ type: {
2323
+ name: "DateTime"
2324
+ }
2325
+ } })
2326
+ }
2327
+ };
2328
+
2329
+ var Mappers = /*#__PURE__*/Object.freeze({
2330
+ __proto__: null,
2331
+ DataLakeAnalyticsAccountListResult: DataLakeAnalyticsAccountListResult,
2332
+ DataLakeAnalyticsAccountPropertiesBasic: DataLakeAnalyticsAccountPropertiesBasic,
2333
+ Resource: Resource,
2334
+ ErrorResponse: ErrorResponse,
2335
+ ErrorDetail: ErrorDetail,
2336
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
2337
+ CreateDataLakeAnalyticsAccountParameters: CreateDataLakeAnalyticsAccountParameters,
2338
+ AddDataLakeStoreWithAccountParameters: AddDataLakeStoreWithAccountParameters,
2339
+ AddStorageAccountWithAccountParameters: AddStorageAccountWithAccountParameters,
2340
+ CreateComputePolicyWithAccountParameters: CreateComputePolicyWithAccountParameters,
2341
+ CreateFirewallRuleWithAccountParameters: CreateFirewallRuleWithAccountParameters,
2342
+ SubResource: SubResource,
2343
+ UpdateDataLakeAnalyticsAccountParameters: UpdateDataLakeAnalyticsAccountParameters,
2344
+ UpdateDataLakeStoreWithAccountParameters: UpdateDataLakeStoreWithAccountParameters,
2345
+ UpdateStorageAccountWithAccountParameters: UpdateStorageAccountWithAccountParameters,
2346
+ UpdateComputePolicyWithAccountParameters: UpdateComputePolicyWithAccountParameters,
2347
+ UpdateFirewallRuleWithAccountParameters: UpdateFirewallRuleWithAccountParameters,
2348
+ DataLakeStoreAccountInformationListResult: DataLakeStoreAccountInformationListResult,
2349
+ AddDataLakeStoreParameters: AddDataLakeStoreParameters,
2350
+ StorageAccountInformationListResult: StorageAccountInformationListResult,
2351
+ AddStorageAccountParameters: AddStorageAccountParameters,
2352
+ UpdateStorageAccountParameters: UpdateStorageAccountParameters,
2353
+ StorageContainerListResult: StorageContainerListResult,
2354
+ SasTokenInformationListResult: SasTokenInformationListResult,
2355
+ SasTokenInformation: SasTokenInformation,
2356
+ ComputePolicyListResult: ComputePolicyListResult,
2357
+ CreateOrUpdateComputePolicyParameters: CreateOrUpdateComputePolicyParameters,
2358
+ UpdateComputePolicyParameters: UpdateComputePolicyParameters,
2359
+ FirewallRuleListResult: FirewallRuleListResult,
2360
+ CreateOrUpdateFirewallRuleParameters: CreateOrUpdateFirewallRuleParameters,
2361
+ UpdateFirewallRuleParameters: UpdateFirewallRuleParameters,
2362
+ OperationListResult: OperationListResult,
2363
+ Operation: Operation,
2364
+ OperationDisplay: OperationDisplay,
2365
+ OperationMetaPropertyInfo: OperationMetaPropertyInfo,
2366
+ OperationMetaServiceSpecification: OperationMetaServiceSpecification,
2367
+ OperationMetaMetricSpecification: OperationMetaMetricSpecification,
2368
+ OperationMetaMetricAvailabilitiesSpecification: OperationMetaMetricAvailabilitiesSpecification,
2369
+ OperationMetaLogSpecification: OperationMetaLogSpecification,
2370
+ CapabilityInformation: CapabilityInformation,
2371
+ CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
2372
+ NameAvailabilityInformation: NameAvailabilityInformation,
2373
+ VirtualNetworkRuleListResult: VirtualNetworkRuleListResult,
2374
+ HiveMetastoreListResult: HiveMetastoreListResult,
2375
+ DataLakeAnalyticsAccountProperties: DataLakeAnalyticsAccountProperties,
2376
+ DataLakeAnalyticsAccountBasic: DataLakeAnalyticsAccountBasic,
2377
+ DataLakeAnalyticsAccount: DataLakeAnalyticsAccount,
2378
+ DataLakeStoreAccountInformation: DataLakeStoreAccountInformation,
2379
+ StorageAccountInformation: StorageAccountInformation,
2380
+ ComputePolicy: ComputePolicy,
2381
+ HiveMetastore: HiveMetastore,
2382
+ VirtualNetworkRule: VirtualNetworkRule,
2383
+ FirewallRule: FirewallRule,
2384
+ StorageContainer: StorageContainer
2385
+ });
2386
+
2387
+ /*
2388
+ * Copyright (c) Microsoft Corporation.
2389
+ * Licensed under the MIT License.
2390
+ *
2391
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2392
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2393
+ */
2394
+ const accept = {
2395
+ parameterPath: "accept",
2396
+ mapper: {
2397
+ defaultValue: "application/json",
2398
+ isConstant: true,
2399
+ serializedName: "Accept",
2400
+ type: {
2401
+ name: "String"
2402
+ }
2403
+ }
2404
+ };
2405
+ const $host = {
2406
+ parameterPath: "$host",
2407
+ mapper: {
2408
+ serializedName: "$host",
2409
+ required: true,
2410
+ type: {
2411
+ name: "String"
2412
+ }
2413
+ },
2414
+ skipEncoding: true
2415
+ };
2416
+ const subscriptionId = {
2417
+ parameterPath: "subscriptionId",
2418
+ mapper: {
2419
+ serializedName: "subscriptionId",
2420
+ required: true,
2421
+ type: {
2422
+ name: "String"
2423
+ }
2424
+ }
2425
+ };
2426
+ const filter = {
2427
+ parameterPath: ["options", "filter"],
2428
+ mapper: {
2429
+ serializedName: "$filter",
2430
+ type: {
2431
+ name: "String"
2432
+ }
2433
+ }
2434
+ };
2435
+ const top = {
2436
+ parameterPath: ["options", "top"],
2437
+ mapper: {
2438
+ constraints: {
2439
+ InclusiveMinimum: 1
2440
+ },
2441
+ serializedName: "$top",
2442
+ type: {
2443
+ name: "Number"
2444
+ }
2445
+ }
2446
+ };
2447
+ const skip = {
2448
+ parameterPath: ["options", "skip"],
2449
+ mapper: {
2450
+ constraints: {
2451
+ InclusiveMinimum: 1
2452
+ },
2453
+ serializedName: "$skip",
2454
+ type: {
2455
+ name: "Number"
2456
+ }
2457
+ }
2458
+ };
2459
+ const select = {
2460
+ parameterPath: ["options", "select"],
2461
+ mapper: {
2462
+ serializedName: "$select",
2463
+ type: {
2464
+ name: "String"
2465
+ }
2466
+ }
2467
+ };
2468
+ const orderby = {
2469
+ parameterPath: ["options", "orderby"],
2470
+ mapper: {
2471
+ serializedName: "$orderby",
2472
+ type: {
2473
+ name: "String"
2474
+ }
2475
+ }
2476
+ };
2477
+ const count = {
2478
+ parameterPath: ["options", "count"],
2479
+ mapper: {
2480
+ serializedName: "$count",
2481
+ type: {
2482
+ name: "Boolean"
2483
+ }
2484
+ }
2485
+ };
2486
+ const apiVersion = {
2487
+ parameterPath: "apiVersion",
2488
+ mapper: {
2489
+ defaultValue: "2019-11-01-preview",
2490
+ isConstant: true,
2491
+ serializedName: "api-version",
2492
+ type: {
2493
+ name: "String"
2494
+ }
2495
+ }
2496
+ };
2497
+ const resourceGroupName = {
2498
+ parameterPath: "resourceGroupName",
2499
+ mapper: {
2500
+ serializedName: "resourceGroupName",
2501
+ required: true,
2502
+ type: {
2503
+ name: "String"
2504
+ }
2505
+ }
2506
+ };
2507
+ const contentType = {
2508
+ parameterPath: ["options", "contentType"],
2509
+ mapper: {
2510
+ defaultValue: "application/json",
2511
+ isConstant: true,
2512
+ serializedName: "Content-Type",
2513
+ type: {
2514
+ name: "String"
2515
+ }
2516
+ }
2517
+ };
2518
+ const parameters = {
2519
+ parameterPath: "parameters",
2520
+ mapper: CreateDataLakeAnalyticsAccountParameters
2521
+ };
2522
+ const accountName = {
2523
+ parameterPath: "accountName",
2524
+ mapper: {
2525
+ serializedName: "accountName",
2526
+ required: true,
2527
+ type: {
2528
+ name: "String"
2529
+ }
2530
+ }
2531
+ };
2532
+ const parameters1 = {
2533
+ parameterPath: ["options", "parameters"],
2534
+ mapper: UpdateDataLakeAnalyticsAccountParameters
2535
+ };
2536
+ const parameters2 = {
2537
+ parameterPath: "parameters",
2538
+ mapper: CheckNameAvailabilityParameters
2539
+ };
2540
+ const location = {
2541
+ parameterPath: "location",
2542
+ mapper: {
2543
+ serializedName: "location",
2544
+ required: true,
2545
+ type: {
2546
+ name: "String"
2547
+ }
2548
+ }
2549
+ };
2550
+ const nextLink = {
2551
+ parameterPath: "nextLink",
2552
+ mapper: {
2553
+ serializedName: "nextLink",
2554
+ required: true,
2555
+ type: {
2556
+ name: "String"
2557
+ }
2558
+ },
2559
+ skipEncoding: true
2560
+ };
2561
+ const parameters3 = {
2562
+ parameterPath: ["options", "parameters"],
2563
+ mapper: AddDataLakeStoreParameters
2564
+ };
2565
+ const dataLakeStoreAccountName = {
2566
+ parameterPath: "dataLakeStoreAccountName",
2567
+ mapper: {
2568
+ serializedName: "dataLakeStoreAccountName",
2569
+ required: true,
2570
+ type: {
2571
+ name: "String"
2572
+ }
2573
+ }
2574
+ };
2575
+ const parameters4 = {
2576
+ parameterPath: "parameters",
2577
+ mapper: AddStorageAccountParameters
2578
+ };
2579
+ const storageAccountName = {
2580
+ parameterPath: "storageAccountName",
2581
+ mapper: {
2582
+ serializedName: "storageAccountName",
2583
+ required: true,
2584
+ type: {
2585
+ name: "String"
2586
+ }
2587
+ }
2588
+ };
2589
+ const parameters5 = {
2590
+ parameterPath: ["options", "parameters"],
2591
+ mapper: UpdateStorageAccountParameters
2592
+ };
2593
+ const containerName = {
2594
+ parameterPath: "containerName",
2595
+ mapper: {
2596
+ serializedName: "containerName",
2597
+ required: true,
2598
+ type: {
2599
+ name: "String"
2600
+ }
2601
+ }
2602
+ };
2603
+ const parameters6 = {
2604
+ parameterPath: "parameters",
2605
+ mapper: CreateOrUpdateComputePolicyParameters
2606
+ };
2607
+ const computePolicyName = {
2608
+ parameterPath: "computePolicyName",
2609
+ mapper: {
2610
+ serializedName: "computePolicyName",
2611
+ required: true,
2612
+ type: {
2613
+ name: "String"
2614
+ }
2615
+ }
2616
+ };
2617
+ const parameters7 = {
2618
+ parameterPath: ["options", "parameters"],
2619
+ mapper: UpdateComputePolicyParameters
2620
+ };
2621
+ const parameters8 = {
2622
+ parameterPath: "parameters",
2623
+ mapper: CreateOrUpdateFirewallRuleParameters
2624
+ };
2625
+ const firewallRuleName = {
2626
+ parameterPath: "firewallRuleName",
2627
+ mapper: {
2628
+ serializedName: "firewallRuleName",
2629
+ required: true,
2630
+ type: {
2631
+ name: "String"
2632
+ }
2633
+ }
2634
+ };
2635
+ const parameters9 = {
2636
+ parameterPath: ["options", "parameters"],
2637
+ mapper: UpdateFirewallRuleParameters
2638
+ };
2639
+
2640
+ /*
2641
+ * Copyright (c) Microsoft Corporation.
2642
+ * Licensed under the MIT License.
2643
+ *
2644
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2645
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2646
+ */
2647
+ class LroImpl {
2648
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
2649
+ this.sendOperationFn = sendOperationFn;
2650
+ this.args = args;
2651
+ this.spec = spec;
2652
+ this.requestPath = requestPath;
2653
+ this.requestMethod = requestMethod;
2654
+ }
2655
+ sendInitialRequest() {
2656
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2657
+ return this.sendOperationFn(this.args, this.spec);
2658
+ });
2659
+ }
2660
+ sendPollRequest(path) {
2661
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2662
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
2663
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2664
+ });
2665
+ }
2666
+ }
2667
+
2668
+ /*
2669
+ * Copyright (c) Microsoft Corporation.
2670
+ * Licensed under the MIT License.
2671
+ *
2672
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2673
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2674
+ */
2675
+ /// <reference lib="esnext.asynciterable" />
2676
+ /** Class containing Accounts operations. */
2677
+ class AccountsImpl {
2678
+ /**
2679
+ * Initialize a new instance of the class Accounts class.
2680
+ * @param client Reference to the service client
2681
+ */
2682
+ constructor(client) {
2683
+ this.client = client;
2684
+ }
2685
+ /**
2686
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This
2687
+ * includes a link to the next page, if any.
2688
+ * @param options The options parameters.
2689
+ */
2690
+ list(options) {
2691
+ const iter = this.listPagingAll(options);
2692
+ return {
2693
+ next() {
2694
+ return iter.next();
2695
+ },
2696
+ [Symbol.asyncIterator]() {
2697
+ return this;
2698
+ },
2699
+ byPage: () => {
2700
+ return this.listPagingPage(options);
2701
+ }
2702
+ };
2703
+ }
2704
+ listPagingPage(options) {
2705
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2706
+ let result = yield tslib.__await(this._list(options));
2707
+ yield yield tslib.__await(result.value || []);
2708
+ let continuationToken = result.nextLink;
2709
+ while (continuationToken) {
2710
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2711
+ continuationToken = result.nextLink;
2712
+ yield yield tslib.__await(result.value || []);
2713
+ }
2714
+ });
2715
+ }
2716
+ listPagingAll(options) {
2717
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2718
+ var e_1, _a;
2719
+ try {
2720
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2721
+ const page = _c.value;
2722
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2723
+ }
2724
+ }
2725
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2726
+ finally {
2727
+ try {
2728
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2729
+ }
2730
+ finally { if (e_1) throw e_1.error; }
2731
+ }
2732
+ });
2733
+ }
2734
+ /**
2735
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This
2736
+ * includes a link to the next page, if any.
2737
+ * @param resourceGroupName The name of the Azure resource group.
2738
+ * @param options The options parameters.
2739
+ */
2740
+ listByResourceGroup(resourceGroupName, options) {
2741
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2742
+ return {
2743
+ next() {
2744
+ return iter.next();
2745
+ },
2746
+ [Symbol.asyncIterator]() {
2747
+ return this;
2748
+ },
2749
+ byPage: () => {
2750
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
2751
+ }
2752
+ };
2753
+ }
2754
+ listByResourceGroupPagingPage(resourceGroupName, options) {
2755
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2756
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2757
+ yield yield tslib.__await(result.value || []);
2758
+ let continuationToken = result.nextLink;
2759
+ while (continuationToken) {
2760
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2761
+ continuationToken = result.nextLink;
2762
+ yield yield tslib.__await(result.value || []);
2763
+ }
2764
+ });
2765
+ }
2766
+ listByResourceGroupPagingAll(resourceGroupName, options) {
2767
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2768
+ var e_2, _a;
2769
+ try {
2770
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2771
+ const page = _c.value;
2772
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2773
+ }
2774
+ }
2775
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2776
+ finally {
2777
+ try {
2778
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2779
+ }
2780
+ finally { if (e_2) throw e_2.error; }
2781
+ }
2782
+ });
2783
+ }
2784
+ /**
2785
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This
2786
+ * includes a link to the next page, if any.
2787
+ * @param options The options parameters.
2788
+ */
2789
+ _list(options) {
2790
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
2791
+ }
2792
+ /**
2793
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This
2794
+ * includes a link to the next page, if any.
2795
+ * @param resourceGroupName The name of the Azure resource group.
2796
+ * @param options The options parameters.
2797
+ */
2798
+ _listByResourceGroup(resourceGroupName, options) {
2799
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2800
+ }
2801
+ /**
2802
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services
2803
+ * for Data Lake Analytics workloads.
2804
+ * @param resourceGroupName The name of the Azure resource group.
2805
+ * @param accountName The name of the Data Lake Analytics account.
2806
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
2807
+ * @param options The options parameters.
2808
+ */
2809
+ beginCreate(resourceGroupName, accountName, parameters, options) {
2810
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2811
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2812
+ return this.client.sendOperationRequest(args, spec);
2813
+ });
2814
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2815
+ var _a;
2816
+ let currentRawResponse = undefined;
2817
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2818
+ const callback = (rawResponse, flatResponse) => {
2819
+ currentRawResponse = rawResponse;
2820
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2821
+ };
2822
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2823
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2824
+ return {
2825
+ flatResponse,
2826
+ rawResponse: {
2827
+ statusCode: currentRawResponse.status,
2828
+ body: currentRawResponse.parsedBody,
2829
+ headers: currentRawResponse.headers.toJSON()
2830
+ }
2831
+ };
2832
+ });
2833
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
2834
+ return new coreLro.LroEngine(lro, {
2835
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2836
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2837
+ });
2838
+ });
2839
+ }
2840
+ /**
2841
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services
2842
+ * for Data Lake Analytics workloads.
2843
+ * @param resourceGroupName The name of the Azure resource group.
2844
+ * @param accountName The name of the Data Lake Analytics account.
2845
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
2846
+ * @param options The options parameters.
2847
+ */
2848
+ beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
2849
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2850
+ const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
2851
+ return poller.pollUntilDone();
2852
+ });
2853
+ }
2854
+ /**
2855
+ * Gets details of the specified Data Lake Analytics account.
2856
+ * @param resourceGroupName The name of the Azure resource group.
2857
+ * @param accountName The name of the Data Lake Analytics account.
2858
+ * @param options The options parameters.
2859
+ */
2860
+ get(resourceGroupName, accountName, options) {
2861
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
2862
+ }
2863
+ /**
2864
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the
2865
+ * account object.
2866
+ * @param resourceGroupName The name of the Azure resource group.
2867
+ * @param accountName The name of the Data Lake Analytics account.
2868
+ * @param options The options parameters.
2869
+ */
2870
+ beginUpdate(resourceGroupName, accountName, options) {
2871
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2872
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2873
+ return this.client.sendOperationRequest(args, spec);
2874
+ });
2875
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2876
+ var _a;
2877
+ let currentRawResponse = undefined;
2878
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2879
+ const callback = (rawResponse, flatResponse) => {
2880
+ currentRawResponse = rawResponse;
2881
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2882
+ };
2883
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2884
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2885
+ return {
2886
+ flatResponse,
2887
+ rawResponse: {
2888
+ statusCode: currentRawResponse.status,
2889
+ body: currentRawResponse.parsedBody,
2890
+ headers: currentRawResponse.headers.toJSON()
2891
+ }
2892
+ };
2893
+ });
2894
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, updateOperationSpec);
2895
+ return new coreLro.LroEngine(lro, {
2896
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2897
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2898
+ });
2899
+ });
2900
+ }
2901
+ /**
2902
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the
2903
+ * account object.
2904
+ * @param resourceGroupName The name of the Azure resource group.
2905
+ * @param accountName The name of the Data Lake Analytics account.
2906
+ * @param options The options parameters.
2907
+ */
2908
+ beginUpdateAndWait(resourceGroupName, accountName, options) {
2909
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2910
+ const poller = yield this.beginUpdate(resourceGroupName, accountName, options);
2911
+ return poller.pollUntilDone();
2912
+ });
2913
+ }
2914
+ /**
2915
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
2916
+ * @param resourceGroupName The name of the Azure resource group.
2917
+ * @param accountName The name of the Data Lake Analytics account.
2918
+ * @param options The options parameters.
2919
+ */
2920
+ beginDelete(resourceGroupName, accountName, options) {
2921
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2922
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2923
+ return this.client.sendOperationRequest(args, spec);
2924
+ });
2925
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2926
+ var _a;
2927
+ let currentRawResponse = undefined;
2928
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2929
+ const callback = (rawResponse, flatResponse) => {
2930
+ currentRawResponse = rawResponse;
2931
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2932
+ };
2933
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2934
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2935
+ return {
2936
+ flatResponse,
2937
+ rawResponse: {
2938
+ statusCode: currentRawResponse.status,
2939
+ body: currentRawResponse.parsedBody,
2940
+ headers: currentRawResponse.headers.toJSON()
2941
+ }
2942
+ };
2943
+ });
2944
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec);
2945
+ return new coreLro.LroEngine(lro, {
2946
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2947
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2948
+ });
2949
+ });
2950
+ }
2951
+ /**
2952
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
2953
+ * @param resourceGroupName The name of the Azure resource group.
2954
+ * @param accountName The name of the Data Lake Analytics account.
2955
+ * @param options The options parameters.
2956
+ */
2957
+ beginDeleteAndWait(resourceGroupName, accountName, options) {
2958
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2959
+ const poller = yield this.beginDelete(resourceGroupName, accountName, options);
2960
+ return poller.pollUntilDone();
2961
+ });
2962
+ }
2963
+ /**
2964
+ * Checks whether the specified account name is available or taken.
2965
+ * @param location The resource location without whitespace.
2966
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
2967
+ * @param options The options parameters.
2968
+ */
2969
+ checkNameAvailability(location, parameters, options) {
2970
+ return this.client.sendOperationRequest({ location, parameters, options }, checkNameAvailabilityOperationSpec);
2971
+ }
2972
+ /**
2973
+ * ListNext
2974
+ * @param nextLink The nextLink from the previous successful call to the List method.
2975
+ * @param options The options parameters.
2976
+ */
2977
+ _listNext(nextLink, options) {
2978
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2979
+ }
2980
+ /**
2981
+ * ListByResourceGroupNext
2982
+ * @param resourceGroupName The name of the Azure resource group.
2983
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2984
+ * @param options The options parameters.
2985
+ */
2986
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2987
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2988
+ }
2989
+ }
2990
+ // Operation Specifications
2991
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2992
+ const listOperationSpec = {
2993
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts",
2994
+ httpMethod: "GET",
2995
+ responses: {
2996
+ 200: {
2997
+ bodyMapper: DataLakeAnalyticsAccountListResult
2998
+ },
2999
+ default: {
3000
+ bodyMapper: ErrorResponse
3001
+ }
3002
+ },
3003
+ queryParameters: [
3004
+ filter,
3005
+ top,
3006
+ skip,
3007
+ select,
3008
+ orderby,
3009
+ count,
3010
+ apiVersion
3011
+ ],
3012
+ urlParameters: [$host, subscriptionId],
3013
+ headerParameters: [accept],
3014
+ serializer
3015
+ };
3016
+ const listByResourceGroupOperationSpec = {
3017
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts",
3018
+ httpMethod: "GET",
3019
+ responses: {
3020
+ 200: {
3021
+ bodyMapper: DataLakeAnalyticsAccountListResult
3022
+ },
3023
+ default: {
3024
+ bodyMapper: ErrorResponse
3025
+ }
3026
+ },
3027
+ queryParameters: [
3028
+ filter,
3029
+ top,
3030
+ skip,
3031
+ select,
3032
+ orderby,
3033
+ count,
3034
+ apiVersion
3035
+ ],
3036
+ urlParameters: [
3037
+ $host,
3038
+ subscriptionId,
3039
+ resourceGroupName
3040
+ ],
3041
+ headerParameters: [accept],
3042
+ serializer
3043
+ };
3044
+ const createOperationSpec = {
3045
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
3046
+ httpMethod: "PUT",
3047
+ responses: {
3048
+ 200: {
3049
+ bodyMapper: DataLakeAnalyticsAccount
3050
+ },
3051
+ 201: {
3052
+ bodyMapper: DataLakeAnalyticsAccount
3053
+ },
3054
+ 202: {
3055
+ bodyMapper: DataLakeAnalyticsAccount
3056
+ },
3057
+ 204: {
3058
+ bodyMapper: DataLakeAnalyticsAccount
3059
+ },
3060
+ default: {
3061
+ bodyMapper: ErrorResponse
3062
+ }
3063
+ },
3064
+ requestBody: parameters,
3065
+ queryParameters: [apiVersion],
3066
+ urlParameters: [
3067
+ $host,
3068
+ subscriptionId,
3069
+ resourceGroupName,
3070
+ accountName
3071
+ ],
3072
+ headerParameters: [accept, contentType],
3073
+ mediaType: "json",
3074
+ serializer
3075
+ };
3076
+ const getOperationSpec = {
3077
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
3078
+ httpMethod: "GET",
3079
+ responses: {
3080
+ 200: {
3081
+ bodyMapper: DataLakeAnalyticsAccount
3082
+ },
3083
+ default: {
3084
+ bodyMapper: ErrorResponse
3085
+ }
3086
+ },
3087
+ queryParameters: [apiVersion],
3088
+ urlParameters: [
3089
+ $host,
3090
+ subscriptionId,
3091
+ resourceGroupName,
3092
+ accountName
3093
+ ],
3094
+ headerParameters: [accept],
3095
+ serializer
3096
+ };
3097
+ const updateOperationSpec = {
3098
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
3099
+ httpMethod: "PATCH",
3100
+ responses: {
3101
+ 200: {
3102
+ bodyMapper: DataLakeAnalyticsAccount
3103
+ },
3104
+ 201: {
3105
+ bodyMapper: DataLakeAnalyticsAccount
3106
+ },
3107
+ 202: {
3108
+ bodyMapper: DataLakeAnalyticsAccount
3109
+ },
3110
+ 204: {
3111
+ bodyMapper: DataLakeAnalyticsAccount
3112
+ },
3113
+ default: {
3114
+ bodyMapper: ErrorResponse
3115
+ }
3116
+ },
3117
+ requestBody: parameters1,
3118
+ queryParameters: [apiVersion],
3119
+ urlParameters: [
3120
+ $host,
3121
+ subscriptionId,
3122
+ resourceGroupName,
3123
+ accountName
3124
+ ],
3125
+ headerParameters: [accept, contentType],
3126
+ mediaType: "json",
3127
+ serializer
3128
+ };
3129
+ const deleteOperationSpec = {
3130
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
3131
+ httpMethod: "DELETE",
3132
+ responses: {
3133
+ 200: {},
3134
+ 201: {},
3135
+ 202: {},
3136
+ 204: {},
3137
+ default: {
3138
+ bodyMapper: ErrorResponse
3139
+ }
3140
+ },
3141
+ queryParameters: [apiVersion],
3142
+ urlParameters: [
3143
+ $host,
3144
+ subscriptionId,
3145
+ resourceGroupName,
3146
+ accountName
3147
+ ],
3148
+ headerParameters: [accept],
3149
+ serializer
3150
+ };
3151
+ const checkNameAvailabilityOperationSpec = {
3152
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability",
3153
+ httpMethod: "POST",
3154
+ responses: {
3155
+ 200: {
3156
+ bodyMapper: NameAvailabilityInformation
3157
+ },
3158
+ default: {
3159
+ bodyMapper: ErrorResponse
3160
+ }
3161
+ },
3162
+ requestBody: parameters2,
3163
+ queryParameters: [apiVersion],
3164
+ urlParameters: [
3165
+ $host,
3166
+ subscriptionId,
3167
+ location
3168
+ ],
3169
+ headerParameters: [accept, contentType],
3170
+ mediaType: "json",
3171
+ serializer
3172
+ };
3173
+ const listNextOperationSpec = {
3174
+ path: "{nextLink}",
3175
+ httpMethod: "GET",
3176
+ responses: {
3177
+ 200: {
3178
+ bodyMapper: DataLakeAnalyticsAccountListResult
3179
+ },
3180
+ default: {
3181
+ bodyMapper: ErrorResponse
3182
+ }
3183
+ },
3184
+ queryParameters: [
3185
+ filter,
3186
+ top,
3187
+ skip,
3188
+ select,
3189
+ orderby,
3190
+ count,
3191
+ apiVersion
3192
+ ],
3193
+ urlParameters: [
3194
+ $host,
3195
+ subscriptionId,
3196
+ nextLink
3197
+ ],
3198
+ headerParameters: [accept],
3199
+ serializer
3200
+ };
3201
+ const listByResourceGroupNextOperationSpec = {
3202
+ path: "{nextLink}",
3203
+ httpMethod: "GET",
3204
+ responses: {
3205
+ 200: {
3206
+ bodyMapper: DataLakeAnalyticsAccountListResult
3207
+ },
3208
+ default: {
3209
+ bodyMapper: ErrorResponse
3210
+ }
3211
+ },
3212
+ queryParameters: [
3213
+ filter,
3214
+ top,
3215
+ skip,
3216
+ select,
3217
+ orderby,
3218
+ count,
3219
+ apiVersion
3220
+ ],
3221
+ urlParameters: [
3222
+ $host,
3223
+ subscriptionId,
3224
+ resourceGroupName,
3225
+ nextLink
3226
+ ],
3227
+ headerParameters: [accept],
3228
+ serializer
3229
+ };
3230
+
3231
+ /*
3232
+ * Copyright (c) Microsoft Corporation.
3233
+ * Licensed under the MIT License.
3234
+ *
3235
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3236
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3237
+ */
3238
+ /// <reference lib="esnext.asynciterable" />
3239
+ /** Class containing DataLakeStoreAccounts operations. */
3240
+ class DataLakeStoreAccountsImpl {
3241
+ /**
3242
+ * Initialize a new instance of the class DataLakeStoreAccounts class.
3243
+ * @param client Reference to the service client
3244
+ */
3245
+ constructor(client) {
3246
+ this.client = client;
3247
+ }
3248
+ /**
3249
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
3250
+ * The response includes a link to the next page, if any.
3251
+ * @param resourceGroupName The name of the Azure resource group.
3252
+ * @param accountName The name of the Data Lake Analytics account.
3253
+ * @param options The options parameters.
3254
+ */
3255
+ listByAccount(resourceGroupName, accountName, options) {
3256
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
3257
+ return {
3258
+ next() {
3259
+ return iter.next();
3260
+ },
3261
+ [Symbol.asyncIterator]() {
3262
+ return this;
3263
+ },
3264
+ byPage: () => {
3265
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
3266
+ }
3267
+ };
3268
+ }
3269
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
3270
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
3271
+ let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
3272
+ yield yield tslib.__await(result.value || []);
3273
+ let continuationToken = result.nextLink;
3274
+ while (continuationToken) {
3275
+ result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
3276
+ continuationToken = result.nextLink;
3277
+ yield yield tslib.__await(result.value || []);
3278
+ }
3279
+ });
3280
+ }
3281
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
3282
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
3283
+ var e_1, _a;
3284
+ try {
3285
+ for (var _b = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3286
+ const page = _c.value;
3287
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3288
+ }
3289
+ }
3290
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3291
+ finally {
3292
+ try {
3293
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3294
+ }
3295
+ finally { if (e_1) throw e_1.error; }
3296
+ }
3297
+ });
3298
+ }
3299
+ /**
3300
+ * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account.
3301
+ * The response includes a link to the next page, if any.
3302
+ * @param resourceGroupName The name of the Azure resource group.
3303
+ * @param accountName The name of the Data Lake Analytics account.
3304
+ * @param options The options parameters.
3305
+ */
3306
+ _listByAccount(resourceGroupName, accountName, options) {
3307
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec);
3308
+ }
3309
+ /**
3310
+ * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
3311
+ * @param resourceGroupName The name of the Azure resource group.
3312
+ * @param accountName The name of the Data Lake Analytics account.
3313
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to add.
3314
+ * @param options The options parameters.
3315
+ */
3316
+ add(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
3317
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, addOperationSpec);
3318
+ }
3319
+ /**
3320
+ * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
3321
+ * @param resourceGroupName The name of the Azure resource group.
3322
+ * @param accountName The name of the Data Lake Analytics account.
3323
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve
3324
+ * @param options The options parameters.
3325
+ */
3326
+ get(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
3327
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, getOperationSpec$1);
3328
+ }
3329
+ /**
3330
+ * Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
3331
+ * @param resourceGroupName The name of the Azure resource group.
3332
+ * @param accountName The name of the Data Lake Analytics account.
3333
+ * @param dataLakeStoreAccountName The name of the Data Lake Store account to remove
3334
+ * @param options The options parameters.
3335
+ */
3336
+ delete(resourceGroupName, accountName, dataLakeStoreAccountName, options) {
3337
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, dataLakeStoreAccountName, options }, deleteOperationSpec$1);
3338
+ }
3339
+ /**
3340
+ * ListByAccountNext
3341
+ * @param resourceGroupName The name of the Azure resource group.
3342
+ * @param accountName The name of the Data Lake Analytics account.
3343
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
3344
+ * @param options The options parameters.
3345
+ */
3346
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
3347
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec);
3348
+ }
3349
+ }
3350
+ // Operation Specifications
3351
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
3352
+ const listByAccountOperationSpec = {
3353
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts",
3354
+ httpMethod: "GET",
3355
+ responses: {
3356
+ 200: {
3357
+ bodyMapper: DataLakeStoreAccountInformationListResult
3358
+ },
3359
+ default: {
3360
+ bodyMapper: ErrorResponse
3361
+ }
3362
+ },
3363
+ queryParameters: [
3364
+ filter,
3365
+ top,
3366
+ skip,
3367
+ select,
3368
+ orderby,
3369
+ count,
3370
+ apiVersion
3371
+ ],
3372
+ urlParameters: [
3373
+ $host,
3374
+ subscriptionId,
3375
+ resourceGroupName,
3376
+ accountName
3377
+ ],
3378
+ headerParameters: [accept],
3379
+ serializer: serializer$1
3380
+ };
3381
+ const addOperationSpec = {
3382
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
3383
+ httpMethod: "PUT",
3384
+ responses: {
3385
+ 200: {},
3386
+ default: {
3387
+ bodyMapper: ErrorResponse
3388
+ }
3389
+ },
3390
+ requestBody: parameters3,
3391
+ queryParameters: [apiVersion],
3392
+ urlParameters: [
3393
+ $host,
3394
+ subscriptionId,
3395
+ resourceGroupName,
3396
+ accountName,
3397
+ dataLakeStoreAccountName
3398
+ ],
3399
+ headerParameters: [accept, contentType],
3400
+ mediaType: "json",
3401
+ serializer: serializer$1
3402
+ };
3403
+ const getOperationSpec$1 = {
3404
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
3405
+ httpMethod: "GET",
3406
+ responses: {
3407
+ 200: {
3408
+ bodyMapper: DataLakeStoreAccountInformation
3409
+ },
3410
+ default: {
3411
+ bodyMapper: ErrorResponse
3412
+ }
3413
+ },
3414
+ queryParameters: [apiVersion],
3415
+ urlParameters: [
3416
+ $host,
3417
+ subscriptionId,
3418
+ resourceGroupName,
3419
+ accountName,
3420
+ dataLakeStoreAccountName
3421
+ ],
3422
+ headerParameters: [accept],
3423
+ serializer: serializer$1
3424
+ };
3425
+ const deleteOperationSpec$1 = {
3426
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}",
3427
+ httpMethod: "DELETE",
3428
+ responses: {
3429
+ 200: {},
3430
+ 204: {},
3431
+ default: {
3432
+ bodyMapper: ErrorResponse
3433
+ }
3434
+ },
3435
+ queryParameters: [apiVersion],
3436
+ urlParameters: [
3437
+ $host,
3438
+ subscriptionId,
3439
+ resourceGroupName,
3440
+ accountName,
3441
+ dataLakeStoreAccountName
3442
+ ],
3443
+ headerParameters: [accept],
3444
+ serializer: serializer$1
3445
+ };
3446
+ const listByAccountNextOperationSpec = {
3447
+ path: "{nextLink}",
3448
+ httpMethod: "GET",
3449
+ responses: {
3450
+ 200: {
3451
+ bodyMapper: DataLakeStoreAccountInformationListResult
3452
+ },
3453
+ default: {
3454
+ bodyMapper: ErrorResponse
3455
+ }
3456
+ },
3457
+ queryParameters: [
3458
+ filter,
3459
+ top,
3460
+ skip,
3461
+ select,
3462
+ orderby,
3463
+ count,
3464
+ apiVersion
3465
+ ],
3466
+ urlParameters: [
3467
+ $host,
3468
+ subscriptionId,
3469
+ resourceGroupName,
3470
+ accountName,
3471
+ nextLink
3472
+ ],
3473
+ headerParameters: [accept],
3474
+ serializer: serializer$1
3475
+ };
3476
+
3477
+ /*
3478
+ * Copyright (c) Microsoft Corporation.
3479
+ * Licensed under the MIT License.
3480
+ *
3481
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3482
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3483
+ */
3484
+ /// <reference lib="esnext.asynciterable" />
3485
+ /** Class containing StorageAccounts operations. */
3486
+ class StorageAccountsImpl {
3487
+ /**
3488
+ * Initialize a new instance of the class StorageAccounts class.
3489
+ * @param client Reference to the service client
3490
+ */
3491
+ constructor(client) {
3492
+ this.client = client;
3493
+ }
3494
+ /**
3495
+ * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics
3496
+ * account. The response includes a link to the next page, if any.
3497
+ * @param resourceGroupName The name of the Azure resource group.
3498
+ * @param accountName The name of the Data Lake Analytics account.
3499
+ * @param options The options parameters.
3500
+ */
3501
+ listByAccount(resourceGroupName, accountName, options) {
3502
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
3503
+ return {
3504
+ next() {
3505
+ return iter.next();
3506
+ },
3507
+ [Symbol.asyncIterator]() {
3508
+ return this;
3509
+ },
3510
+ byPage: () => {
3511
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
3512
+ }
3513
+ };
3514
+ }
3515
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
3516
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
3517
+ let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
3518
+ yield yield tslib.__await(result.value || []);
3519
+ let continuationToken = result.nextLink;
3520
+ while (continuationToken) {
3521
+ result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
3522
+ continuationToken = result.nextLink;
3523
+ yield yield tslib.__await(result.value || []);
3524
+ }
3525
+ });
3526
+ }
3527
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
3528
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
3529
+ var e_1, _a;
3530
+ try {
3531
+ for (var _b = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3532
+ const page = _c.value;
3533
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3534
+ }
3535
+ }
3536
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3537
+ finally {
3538
+ try {
3539
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3540
+ }
3541
+ finally { if (e_1) throw e_1.error; }
3542
+ }
3543
+ });
3544
+ }
3545
+ /**
3546
+ * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and
3547
+ * Azure Storage account combination. The response includes a link to the next page of results, if any.
3548
+ * @param resourceGroupName The name of the Azure resource group.
3549
+ * @param accountName The name of the Data Lake Analytics account.
3550
+ * @param storageAccountName The name of the Azure storage account from which to list blob containers.
3551
+ * @param options The options parameters.
3552
+ */
3553
+ listStorageContainers(resourceGroupName, accountName, storageAccountName, options) {
3554
+ const iter = this.listStorageContainersPagingAll(resourceGroupName, accountName, storageAccountName, options);
3555
+ return {
3556
+ next() {
3557
+ return iter.next();
3558
+ },
3559
+ [Symbol.asyncIterator]() {
3560
+ return this;
3561
+ },
3562
+ byPage: () => {
3563
+ return this.listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options);
3564
+ }
3565
+ };
3566
+ }
3567
+ listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options) {
3568
+ return tslib.__asyncGenerator(this, arguments, function* listStorageContainersPagingPage_1() {
3569
+ let result = yield tslib.__await(this._listStorageContainers(resourceGroupName, accountName, storageAccountName, options));
3570
+ yield yield tslib.__await(result.value || []);
3571
+ let continuationToken = result.nextLink;
3572
+ while (continuationToken) {
3573
+ result = yield tslib.__await(this._listStorageContainersNext(resourceGroupName, accountName, storageAccountName, continuationToken, options));
3574
+ continuationToken = result.nextLink;
3575
+ yield yield tslib.__await(result.value || []);
3576
+ }
3577
+ });
3578
+ }
3579
+ listStorageContainersPagingAll(resourceGroupName, accountName, storageAccountName, options) {
3580
+ return tslib.__asyncGenerator(this, arguments, function* listStorageContainersPagingAll_1() {
3581
+ var e_2, _a;
3582
+ try {
3583
+ for (var _b = tslib.__asyncValues(this.listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3584
+ const page = _c.value;
3585
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3586
+ }
3587
+ }
3588
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
3589
+ finally {
3590
+ try {
3591
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3592
+ }
3593
+ finally { if (e_2) throw e_2.error; }
3594
+ }
3595
+ });
3596
+ }
3597
+ /**
3598
+ * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and
3599
+ * container combination.
3600
+ * @param resourceGroupName The name of the Azure resource group.
3601
+ * @param accountName The name of the Data Lake Analytics account.
3602
+ * @param storageAccountName The name of the Azure storage account for which the SAS token is being
3603
+ * requested.
3604
+ * @param containerName The name of the Azure storage container for which the SAS token is being
3605
+ * requested.
3606
+ * @param options The options parameters.
3607
+ */
3608
+ listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, options) {
3609
+ const iter = this.listSasTokensPagingAll(resourceGroupName, accountName, storageAccountName, containerName, options);
3610
+ return {
3611
+ next() {
3612
+ return iter.next();
3613
+ },
3614
+ [Symbol.asyncIterator]() {
3615
+ return this;
3616
+ },
3617
+ byPage: () => {
3618
+ return this.listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options);
3619
+ }
3620
+ };
3621
+ }
3622
+ listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options) {
3623
+ return tslib.__asyncGenerator(this, arguments, function* listSasTokensPagingPage_1() {
3624
+ let result = yield tslib.__await(this._listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, options));
3625
+ yield yield tslib.__await(result.value || []);
3626
+ let continuationToken = result.nextLink;
3627
+ while (continuationToken) {
3628
+ result = yield tslib.__await(this._listSasTokensNext(resourceGroupName, accountName, storageAccountName, containerName, continuationToken, options));
3629
+ continuationToken = result.nextLink;
3630
+ yield yield tslib.__await(result.value || []);
3631
+ }
3632
+ });
3633
+ }
3634
+ listSasTokensPagingAll(resourceGroupName, accountName, storageAccountName, containerName, options) {
3635
+ return tslib.__asyncGenerator(this, arguments, function* listSasTokensPagingAll_1() {
3636
+ var e_3, _a;
3637
+ try {
3638
+ for (var _b = tslib.__asyncValues(this.listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3639
+ const page = _c.value;
3640
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3641
+ }
3642
+ }
3643
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
3644
+ finally {
3645
+ try {
3646
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3647
+ }
3648
+ finally { if (e_3) throw e_3.error; }
3649
+ }
3650
+ });
3651
+ }
3652
+ /**
3653
+ * Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics
3654
+ * account. The response includes a link to the next page, if any.
3655
+ * @param resourceGroupName The name of the Azure resource group.
3656
+ * @param accountName The name of the Data Lake Analytics account.
3657
+ * @param options The options parameters.
3658
+ */
3659
+ _listByAccount(resourceGroupName, accountName, options) {
3660
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec$1);
3661
+ }
3662
+ /**
3663
+ * Updates the specified Data Lake Analytics account to add an Azure Storage account.
3664
+ * @param resourceGroupName The name of the Azure resource group.
3665
+ * @param accountName The name of the Data Lake Analytics account.
3666
+ * @param storageAccountName The name of the Azure Storage account to add
3667
+ * @param parameters The parameters containing the access key and optional suffix for the Azure Storage
3668
+ * Account.
3669
+ * @param options The options parameters.
3670
+ */
3671
+ add(resourceGroupName, accountName, storageAccountName, parameters, options) {
3672
+ return this.client.sendOperationRequest({
3673
+ resourceGroupName,
3674
+ accountName,
3675
+ storageAccountName,
3676
+ parameters,
3677
+ options
3678
+ }, addOperationSpec$1);
3679
+ }
3680
+ /**
3681
+ * Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
3682
+ * @param resourceGroupName The name of the Azure resource group.
3683
+ * @param accountName The name of the Data Lake Analytics account.
3684
+ * @param storageAccountName The name of the Azure Storage account for which to retrieve the details.
3685
+ * @param options The options parameters.
3686
+ */
3687
+ get(resourceGroupName, accountName, storageAccountName, options) {
3688
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, storageAccountName, options }, getOperationSpec$2);
3689
+ }
3690
+ /**
3691
+ * Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the
3692
+ * access key and/or suffix.
3693
+ * @param resourceGroupName The name of the Azure resource group.
3694
+ * @param accountName The name of the Data Lake Analytics account.
3695
+ * @param storageAccountName The Azure Storage account to modify
3696
+ * @param options The options parameters.
3697
+ */
3698
+ update(resourceGroupName, accountName, storageAccountName, options) {
3699
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, storageAccountName, options }, updateOperationSpec$1);
3700
+ }
3701
+ /**
3702
+ * Updates the specified Data Lake Analytics account to remove an Azure Storage account.
3703
+ * @param resourceGroupName The name of the Azure resource group.
3704
+ * @param accountName The name of the Data Lake Analytics account.
3705
+ * @param storageAccountName The name of the Azure Storage account to remove
3706
+ * @param options The options parameters.
3707
+ */
3708
+ delete(resourceGroupName, accountName, storageAccountName, options) {
3709
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, storageAccountName, options }, deleteOperationSpec$2);
3710
+ }
3711
+ /**
3712
+ * Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and
3713
+ * Azure Storage account combination. The response includes a link to the next page of results, if any.
3714
+ * @param resourceGroupName The name of the Azure resource group.
3715
+ * @param accountName The name of the Data Lake Analytics account.
3716
+ * @param storageAccountName The name of the Azure storage account from which to list blob containers.
3717
+ * @param options The options parameters.
3718
+ */
3719
+ _listStorageContainers(resourceGroupName, accountName, storageAccountName, options) {
3720
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, storageAccountName, options }, listStorageContainersOperationSpec);
3721
+ }
3722
+ /**
3723
+ * Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure
3724
+ * Storage accounts.
3725
+ * @param resourceGroupName The name of the Azure resource group.
3726
+ * @param accountName The name of the Data Lake Analytics account.
3727
+ * @param storageAccountName The name of the Azure storage account from which to retrieve the blob
3728
+ * container.
3729
+ * @param containerName The name of the Azure storage container to retrieve
3730
+ * @param options The options parameters.
3731
+ */
3732
+ getStorageContainer(resourceGroupName, accountName, storageAccountName, containerName, options) {
3733
+ return this.client.sendOperationRequest({
3734
+ resourceGroupName,
3735
+ accountName,
3736
+ storageAccountName,
3737
+ containerName,
3738
+ options
3739
+ }, getStorageContainerOperationSpec);
3740
+ }
3741
+ /**
3742
+ * Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and
3743
+ * container combination.
3744
+ * @param resourceGroupName The name of the Azure resource group.
3745
+ * @param accountName The name of the Data Lake Analytics account.
3746
+ * @param storageAccountName The name of the Azure storage account for which the SAS token is being
3747
+ * requested.
3748
+ * @param containerName The name of the Azure storage container for which the SAS token is being
3749
+ * requested.
3750
+ * @param options The options parameters.
3751
+ */
3752
+ _listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, options) {
3753
+ return this.client.sendOperationRequest({
3754
+ resourceGroupName,
3755
+ accountName,
3756
+ storageAccountName,
3757
+ containerName,
3758
+ options
3759
+ }, listSasTokensOperationSpec);
3760
+ }
3761
+ /**
3762
+ * ListByAccountNext
3763
+ * @param resourceGroupName The name of the Azure resource group.
3764
+ * @param accountName The name of the Data Lake Analytics account.
3765
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
3766
+ * @param options The options parameters.
3767
+ */
3768
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
3769
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec$1);
3770
+ }
3771
+ /**
3772
+ * ListStorageContainersNext
3773
+ * @param resourceGroupName The name of the Azure resource group.
3774
+ * @param accountName The name of the Data Lake Analytics account.
3775
+ * @param storageAccountName The name of the Azure storage account from which to list blob containers.
3776
+ * @param nextLink The nextLink from the previous successful call to the ListStorageContainers method.
3777
+ * @param options The options parameters.
3778
+ */
3779
+ _listStorageContainersNext(resourceGroupName, accountName, storageAccountName, nextLink, options) {
3780
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, storageAccountName, nextLink, options }, listStorageContainersNextOperationSpec);
3781
+ }
3782
+ /**
3783
+ * ListSasTokensNext
3784
+ * @param resourceGroupName The name of the Azure resource group.
3785
+ * @param accountName The name of the Data Lake Analytics account.
3786
+ * @param storageAccountName The name of the Azure storage account for which the SAS token is being
3787
+ * requested.
3788
+ * @param containerName The name of the Azure storage container for which the SAS token is being
3789
+ * requested.
3790
+ * @param nextLink The nextLink from the previous successful call to the ListSasTokens method.
3791
+ * @param options The options parameters.
3792
+ */
3793
+ _listSasTokensNext(resourceGroupName, accountName, storageAccountName, containerName, nextLink, options) {
3794
+ return this.client.sendOperationRequest({
3795
+ resourceGroupName,
3796
+ accountName,
3797
+ storageAccountName,
3798
+ containerName,
3799
+ nextLink,
3800
+ options
3801
+ }, listSasTokensNextOperationSpec);
3802
+ }
3803
+ }
3804
+ // Operation Specifications
3805
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
3806
+ const listByAccountOperationSpec$1 = {
3807
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts",
3808
+ httpMethod: "GET",
3809
+ responses: {
3810
+ 200: {
3811
+ bodyMapper: StorageAccountInformationListResult
3812
+ },
3813
+ default: {
3814
+ bodyMapper: ErrorResponse
3815
+ }
3816
+ },
3817
+ queryParameters: [
3818
+ filter,
3819
+ top,
3820
+ skip,
3821
+ select,
3822
+ orderby,
3823
+ count,
3824
+ apiVersion
3825
+ ],
3826
+ urlParameters: [
3827
+ $host,
3828
+ subscriptionId,
3829
+ resourceGroupName,
3830
+ accountName
3831
+ ],
3832
+ headerParameters: [accept],
3833
+ serializer: serializer$2
3834
+ };
3835
+ const addOperationSpec$1 = {
3836
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}",
3837
+ httpMethod: "PUT",
3838
+ responses: {
3839
+ 200: {},
3840
+ default: {
3841
+ bodyMapper: ErrorResponse
3842
+ }
3843
+ },
3844
+ requestBody: parameters4,
3845
+ queryParameters: [apiVersion],
3846
+ urlParameters: [
3847
+ $host,
3848
+ subscriptionId,
3849
+ resourceGroupName,
3850
+ accountName,
3851
+ storageAccountName
3852
+ ],
3853
+ headerParameters: [accept, contentType],
3854
+ mediaType: "json",
3855
+ serializer: serializer$2
3856
+ };
3857
+ const getOperationSpec$2 = {
3858
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}",
3859
+ httpMethod: "GET",
3860
+ responses: {
3861
+ 200: {
3862
+ bodyMapper: StorageAccountInformation
3863
+ },
3864
+ default: {
3865
+ bodyMapper: ErrorResponse
3866
+ }
3867
+ },
3868
+ queryParameters: [apiVersion],
3869
+ urlParameters: [
3870
+ $host,
3871
+ subscriptionId,
3872
+ resourceGroupName,
3873
+ accountName,
3874
+ storageAccountName
3875
+ ],
3876
+ headerParameters: [accept],
3877
+ serializer: serializer$2
3878
+ };
3879
+ const updateOperationSpec$1 = {
3880
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}",
3881
+ httpMethod: "PATCH",
3882
+ responses: {
3883
+ 200: {},
3884
+ default: {
3885
+ bodyMapper: ErrorResponse
3886
+ }
3887
+ },
3888
+ requestBody: parameters5,
3889
+ queryParameters: [apiVersion],
3890
+ urlParameters: [
3891
+ $host,
3892
+ subscriptionId,
3893
+ resourceGroupName,
3894
+ accountName,
3895
+ storageAccountName
3896
+ ],
3897
+ headerParameters: [accept, contentType],
3898
+ mediaType: "json",
3899
+ serializer: serializer$2
3900
+ };
3901
+ const deleteOperationSpec$2 = {
3902
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}",
3903
+ httpMethod: "DELETE",
3904
+ responses: {
3905
+ 200: {},
3906
+ default: {
3907
+ bodyMapper: ErrorResponse
3908
+ }
3909
+ },
3910
+ queryParameters: [apiVersion],
3911
+ urlParameters: [
3912
+ $host,
3913
+ subscriptionId,
3914
+ resourceGroupName,
3915
+ accountName,
3916
+ storageAccountName
3917
+ ],
3918
+ headerParameters: [accept],
3919
+ serializer: serializer$2
3920
+ };
3921
+ const listStorageContainersOperationSpec = {
3922
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers",
3923
+ httpMethod: "GET",
3924
+ responses: {
3925
+ 200: {
3926
+ bodyMapper: StorageContainerListResult
3927
+ },
3928
+ default: {
3929
+ bodyMapper: ErrorResponse
3930
+ }
3931
+ },
3932
+ queryParameters: [apiVersion],
3933
+ urlParameters: [
3934
+ $host,
3935
+ subscriptionId,
3936
+ resourceGroupName,
3937
+ accountName,
3938
+ storageAccountName
3939
+ ],
3940
+ headerParameters: [accept],
3941
+ serializer: serializer$2
3942
+ };
3943
+ const getStorageContainerOperationSpec = {
3944
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}",
3945
+ httpMethod: "GET",
3946
+ responses: {
3947
+ 200: {
3948
+ bodyMapper: StorageContainer
3949
+ },
3950
+ default: {
3951
+ bodyMapper: ErrorResponse
3952
+ }
3953
+ },
3954
+ queryParameters: [apiVersion],
3955
+ urlParameters: [
3956
+ $host,
3957
+ subscriptionId,
3958
+ resourceGroupName,
3959
+ accountName,
3960
+ storageAccountName,
3961
+ containerName
3962
+ ],
3963
+ headerParameters: [accept],
3964
+ serializer: serializer$2
3965
+ };
3966
+ const listSasTokensOperationSpec = {
3967
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}/listSasTokens",
3968
+ httpMethod: "POST",
3969
+ responses: {
3970
+ 200: {
3971
+ bodyMapper: SasTokenInformationListResult
3972
+ },
3973
+ default: {
3974
+ bodyMapper: ErrorResponse
3975
+ }
3976
+ },
3977
+ queryParameters: [apiVersion],
3978
+ urlParameters: [
3979
+ $host,
3980
+ subscriptionId,
3981
+ resourceGroupName,
3982
+ accountName,
3983
+ storageAccountName,
3984
+ containerName
3985
+ ],
3986
+ headerParameters: [accept],
3987
+ serializer: serializer$2
3988
+ };
3989
+ const listByAccountNextOperationSpec$1 = {
3990
+ path: "{nextLink}",
3991
+ httpMethod: "GET",
3992
+ responses: {
3993
+ 200: {
3994
+ bodyMapper: StorageAccountInformationListResult
3995
+ },
3996
+ default: {
3997
+ bodyMapper: ErrorResponse
3998
+ }
3999
+ },
4000
+ queryParameters: [
4001
+ filter,
4002
+ top,
4003
+ skip,
4004
+ select,
4005
+ orderby,
4006
+ count,
4007
+ apiVersion
4008
+ ],
4009
+ urlParameters: [
4010
+ $host,
4011
+ subscriptionId,
4012
+ resourceGroupName,
4013
+ accountName,
4014
+ nextLink
4015
+ ],
4016
+ headerParameters: [accept],
4017
+ serializer: serializer$2
4018
+ };
4019
+ const listStorageContainersNextOperationSpec = {
4020
+ path: "{nextLink}",
4021
+ httpMethod: "GET",
4022
+ responses: {
4023
+ 200: {
4024
+ bodyMapper: StorageContainerListResult
4025
+ },
4026
+ default: {
4027
+ bodyMapper: ErrorResponse
4028
+ }
4029
+ },
4030
+ queryParameters: [apiVersion],
4031
+ urlParameters: [
4032
+ $host,
4033
+ subscriptionId,
4034
+ resourceGroupName,
4035
+ accountName,
4036
+ nextLink,
4037
+ storageAccountName
4038
+ ],
4039
+ headerParameters: [accept],
4040
+ serializer: serializer$2
4041
+ };
4042
+ const listSasTokensNextOperationSpec = {
4043
+ path: "{nextLink}",
4044
+ httpMethod: "GET",
4045
+ responses: {
4046
+ 200: {
4047
+ bodyMapper: SasTokenInformationListResult
4048
+ },
4049
+ default: {
4050
+ bodyMapper: ErrorResponse
4051
+ }
4052
+ },
4053
+ queryParameters: [apiVersion],
4054
+ urlParameters: [
4055
+ $host,
4056
+ subscriptionId,
4057
+ resourceGroupName,
4058
+ accountName,
4059
+ nextLink,
4060
+ storageAccountName,
4061
+ containerName
4062
+ ],
4063
+ headerParameters: [accept],
4064
+ serializer: serializer$2
4065
+ };
4066
+
4067
+ /*
4068
+ * Copyright (c) Microsoft Corporation.
4069
+ * Licensed under the MIT License.
4070
+ *
4071
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4072
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4073
+ */
4074
+ /// <reference lib="esnext.asynciterable" />
4075
+ /** Class containing ComputePolicies operations. */
4076
+ class ComputePoliciesImpl {
4077
+ /**
4078
+ * Initialize a new instance of the class ComputePolicies class.
4079
+ * @param client Reference to the service client
4080
+ */
4081
+ constructor(client) {
4082
+ this.client = client;
4083
+ }
4084
+ /**
4085
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An
4086
+ * account supports, at most, 50 policies
4087
+ * @param resourceGroupName The name of the Azure resource group.
4088
+ * @param accountName The name of the Data Lake Analytics account.
4089
+ * @param options The options parameters.
4090
+ */
4091
+ listByAccount(resourceGroupName, accountName, options) {
4092
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
4093
+ return {
4094
+ next() {
4095
+ return iter.next();
4096
+ },
4097
+ [Symbol.asyncIterator]() {
4098
+ return this;
4099
+ },
4100
+ byPage: () => {
4101
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
4102
+ }
4103
+ };
4104
+ }
4105
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
4106
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
4107
+ let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
4108
+ yield yield tslib.__await(result.value || []);
4109
+ let continuationToken = result.nextLink;
4110
+ while (continuationToken) {
4111
+ result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
4112
+ continuationToken = result.nextLink;
4113
+ yield yield tslib.__await(result.value || []);
4114
+ }
4115
+ });
4116
+ }
4117
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
4118
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
4119
+ var e_1, _a;
4120
+ try {
4121
+ for (var _b = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4122
+ const page = _c.value;
4123
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4124
+ }
4125
+ }
4126
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4127
+ finally {
4128
+ try {
4129
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4130
+ }
4131
+ finally { if (e_1) throw e_1.error; }
4132
+ }
4133
+ });
4134
+ }
4135
+ /**
4136
+ * Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An
4137
+ * account supports, at most, 50 policies
4138
+ * @param resourceGroupName The name of the Azure resource group.
4139
+ * @param accountName The name of the Data Lake Analytics account.
4140
+ * @param options The options parameters.
4141
+ */
4142
+ _listByAccount(resourceGroupName, accountName, options) {
4143
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec$2);
4144
+ }
4145
+ /**
4146
+ * Creates or updates the specified compute policy. During update, the compute policy with the
4147
+ * specified name will be replaced with this new compute policy. An account supports, at most, 50
4148
+ * policies
4149
+ * @param resourceGroupName The name of the Azure resource group.
4150
+ * @param accountName The name of the Data Lake Analytics account.
4151
+ * @param computePolicyName The name of the compute policy to create or update.
4152
+ * @param parameters Parameters supplied to create or update the compute policy. The max degree of
4153
+ * parallelism per job property, min priority per job property, or both must be present.
4154
+ * @param options The options parameters.
4155
+ */
4156
+ createOrUpdate(resourceGroupName, accountName, computePolicyName, parameters, options) {
4157
+ return this.client.sendOperationRequest({
4158
+ resourceGroupName,
4159
+ accountName,
4160
+ computePolicyName,
4161
+ parameters,
4162
+ options
4163
+ }, createOrUpdateOperationSpec);
4164
+ }
4165
+ /**
4166
+ * Gets the specified Data Lake Analytics compute policy.
4167
+ * @param resourceGroupName The name of the Azure resource group.
4168
+ * @param accountName The name of the Data Lake Analytics account.
4169
+ * @param computePolicyName The name of the compute policy to retrieve.
4170
+ * @param options The options parameters.
4171
+ */
4172
+ get(resourceGroupName, accountName, computePolicyName, options) {
4173
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, getOperationSpec$3);
4174
+ }
4175
+ /**
4176
+ * Updates the specified compute policy.
4177
+ * @param resourceGroupName The name of the Azure resource group.
4178
+ * @param accountName The name of the Data Lake Analytics account.
4179
+ * @param computePolicyName The name of the compute policy to update.
4180
+ * @param options The options parameters.
4181
+ */
4182
+ update(resourceGroupName, accountName, computePolicyName, options) {
4183
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, updateOperationSpec$2);
4184
+ }
4185
+ /**
4186
+ * Deletes the specified compute policy from the specified Data Lake Analytics account
4187
+ * @param resourceGroupName The name of the Azure resource group.
4188
+ * @param accountName The name of the Data Lake Analytics account.
4189
+ * @param computePolicyName The name of the compute policy to delete.
4190
+ * @param options The options parameters.
4191
+ */
4192
+ delete(resourceGroupName, accountName, computePolicyName, options) {
4193
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, computePolicyName, options }, deleteOperationSpec$3);
4194
+ }
4195
+ /**
4196
+ * ListByAccountNext
4197
+ * @param resourceGroupName The name of the Azure resource group.
4198
+ * @param accountName The name of the Data Lake Analytics account.
4199
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
4200
+ * @param options The options parameters.
4201
+ */
4202
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
4203
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec$2);
4204
+ }
4205
+ }
4206
+ // Operation Specifications
4207
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
4208
+ const listByAccountOperationSpec$2 = {
4209
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies",
4210
+ httpMethod: "GET",
4211
+ responses: {
4212
+ 200: {
4213
+ bodyMapper: ComputePolicyListResult
4214
+ },
4215
+ default: {
4216
+ bodyMapper: ErrorResponse
4217
+ }
4218
+ },
4219
+ queryParameters: [apiVersion],
4220
+ urlParameters: [
4221
+ $host,
4222
+ subscriptionId,
4223
+ resourceGroupName,
4224
+ accountName
4225
+ ],
4226
+ headerParameters: [accept],
4227
+ serializer: serializer$3
4228
+ };
4229
+ const createOrUpdateOperationSpec = {
4230
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
4231
+ httpMethod: "PUT",
4232
+ responses: {
4233
+ 200: {
4234
+ bodyMapper: ComputePolicy
4235
+ },
4236
+ default: {
4237
+ bodyMapper: ErrorResponse
4238
+ }
4239
+ },
4240
+ requestBody: parameters6,
4241
+ queryParameters: [apiVersion],
4242
+ urlParameters: [
4243
+ $host,
4244
+ subscriptionId,
4245
+ resourceGroupName,
4246
+ accountName,
4247
+ computePolicyName
4248
+ ],
4249
+ headerParameters: [accept, contentType],
4250
+ mediaType: "json",
4251
+ serializer: serializer$3
4252
+ };
4253
+ const getOperationSpec$3 = {
4254
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
4255
+ httpMethod: "GET",
4256
+ responses: {
4257
+ 200: {
4258
+ bodyMapper: ComputePolicy
4259
+ },
4260
+ default: {
4261
+ bodyMapper: ErrorResponse
4262
+ }
4263
+ },
4264
+ queryParameters: [apiVersion],
4265
+ urlParameters: [
4266
+ $host,
4267
+ subscriptionId,
4268
+ resourceGroupName,
4269
+ accountName,
4270
+ computePolicyName
4271
+ ],
4272
+ headerParameters: [accept],
4273
+ serializer: serializer$3
4274
+ };
4275
+ const updateOperationSpec$2 = {
4276
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
4277
+ httpMethod: "PATCH",
4278
+ responses: {
4279
+ 200: {
4280
+ bodyMapper: ComputePolicy
4281
+ },
4282
+ default: {
4283
+ bodyMapper: ErrorResponse
4284
+ }
4285
+ },
4286
+ requestBody: parameters7,
4287
+ queryParameters: [apiVersion],
4288
+ urlParameters: [
4289
+ $host,
4290
+ subscriptionId,
4291
+ resourceGroupName,
4292
+ accountName,
4293
+ computePolicyName
4294
+ ],
4295
+ headerParameters: [accept, contentType],
4296
+ mediaType: "json",
4297
+ serializer: serializer$3
4298
+ };
4299
+ const deleteOperationSpec$3 = {
4300
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}",
4301
+ httpMethod: "DELETE",
4302
+ responses: {
4303
+ 200: {},
4304
+ 204: {},
4305
+ default: {
4306
+ bodyMapper: ErrorResponse
4307
+ }
4308
+ },
4309
+ queryParameters: [apiVersion],
4310
+ urlParameters: [
4311
+ $host,
4312
+ subscriptionId,
4313
+ resourceGroupName,
4314
+ accountName,
4315
+ computePolicyName
4316
+ ],
4317
+ headerParameters: [accept],
4318
+ serializer: serializer$3
4319
+ };
4320
+ const listByAccountNextOperationSpec$2 = {
4321
+ path: "{nextLink}",
4322
+ httpMethod: "GET",
4323
+ responses: {
4324
+ 200: {
4325
+ bodyMapper: ComputePolicyListResult
4326
+ },
4327
+ default: {
4328
+ bodyMapper: ErrorResponse
4329
+ }
4330
+ },
4331
+ queryParameters: [apiVersion],
4332
+ urlParameters: [
4333
+ $host,
4334
+ subscriptionId,
4335
+ resourceGroupName,
4336
+ accountName,
4337
+ nextLink
4338
+ ],
4339
+ headerParameters: [accept],
4340
+ serializer: serializer$3
4341
+ };
4342
+
4343
+ /*
4344
+ * Copyright (c) Microsoft Corporation.
4345
+ * Licensed under the MIT License.
4346
+ *
4347
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4348
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4349
+ */
4350
+ /// <reference lib="esnext.asynciterable" />
4351
+ /** Class containing FirewallRules operations. */
4352
+ class FirewallRulesImpl {
4353
+ /**
4354
+ * Initialize a new instance of the class FirewallRules class.
4355
+ * @param client Reference to the service client
4356
+ */
4357
+ constructor(client) {
4358
+ this.client = client;
4359
+ }
4360
+ /**
4361
+ * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account.
4362
+ * @param resourceGroupName The name of the Azure resource group.
4363
+ * @param accountName The name of the Data Lake Analytics account.
4364
+ * @param options The options parameters.
4365
+ */
4366
+ listByAccount(resourceGroupName, accountName, options) {
4367
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
4368
+ return {
4369
+ next() {
4370
+ return iter.next();
4371
+ },
4372
+ [Symbol.asyncIterator]() {
4373
+ return this;
4374
+ },
4375
+ byPage: () => {
4376
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
4377
+ }
4378
+ };
4379
+ }
4380
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
4381
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
4382
+ let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
4383
+ yield yield tslib.__await(result.value || []);
4384
+ let continuationToken = result.nextLink;
4385
+ while (continuationToken) {
4386
+ result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
4387
+ continuationToken = result.nextLink;
4388
+ yield yield tslib.__await(result.value || []);
4389
+ }
4390
+ });
4391
+ }
4392
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
4393
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
4394
+ var e_1, _a;
4395
+ try {
4396
+ for (var _b = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
4397
+ const page = _c.value;
4398
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4399
+ }
4400
+ }
4401
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4402
+ finally {
4403
+ try {
4404
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
4405
+ }
4406
+ finally { if (e_1) throw e_1.error; }
4407
+ }
4408
+ });
4409
+ }
4410
+ /**
4411
+ * Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account.
4412
+ * @param resourceGroupName The name of the Azure resource group.
4413
+ * @param accountName The name of the Data Lake Analytics account.
4414
+ * @param options The options parameters.
4415
+ */
4416
+ _listByAccount(resourceGroupName, accountName, options) {
4417
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec$3);
4418
+ }
4419
+ /**
4420
+ * Creates or updates the specified firewall rule. During update, the firewall rule with the specified
4421
+ * name will be replaced with this new firewall rule.
4422
+ * @param resourceGroupName The name of the Azure resource group.
4423
+ * @param accountName The name of the Data Lake Analytics account.
4424
+ * @param firewallRuleName The name of the firewall rule to create or update.
4425
+ * @param parameters Parameters supplied to create or update the firewall rule.
4426
+ * @param options The options parameters.
4427
+ */
4428
+ createOrUpdate(resourceGroupName, accountName, firewallRuleName, parameters, options) {
4429
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec$1);
4430
+ }
4431
+ /**
4432
+ * Gets the specified Data Lake Analytics firewall rule.
4433
+ * @param resourceGroupName The name of the Azure resource group.
4434
+ * @param accountName The name of the Data Lake Analytics account.
4435
+ * @param firewallRuleName The name of the firewall rule to retrieve.
4436
+ * @param options The options parameters.
4437
+ */
4438
+ get(resourceGroupName, accountName, firewallRuleName, options) {
4439
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, firewallRuleName, options }, getOperationSpec$4);
4440
+ }
4441
+ /**
4442
+ * Updates the specified firewall rule.
4443
+ * @param resourceGroupName The name of the Azure resource group.
4444
+ * @param accountName The name of the Data Lake Analytics account.
4445
+ * @param firewallRuleName The name of the firewall rule to update.
4446
+ * @param options The options parameters.
4447
+ */
4448
+ update(resourceGroupName, accountName, firewallRuleName, options) {
4449
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, firewallRuleName, options }, updateOperationSpec$3);
4450
+ }
4451
+ /**
4452
+ * Deletes the specified firewall rule from the specified Data Lake Analytics account
4453
+ * @param resourceGroupName The name of the Azure resource group.
4454
+ * @param accountName The name of the Data Lake Analytics account.
4455
+ * @param firewallRuleName The name of the firewall rule to delete.
4456
+ * @param options The options parameters.
4457
+ */
4458
+ delete(resourceGroupName, accountName, firewallRuleName, options) {
4459
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, firewallRuleName, options }, deleteOperationSpec$4);
4460
+ }
4461
+ /**
4462
+ * ListByAccountNext
4463
+ * @param resourceGroupName The name of the Azure resource group.
4464
+ * @param accountName The name of the Data Lake Analytics account.
4465
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
4466
+ * @param options The options parameters.
4467
+ */
4468
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
4469
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec$3);
4470
+ }
4471
+ }
4472
+ // Operation Specifications
4473
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
4474
+ const listByAccountOperationSpec$3 = {
4475
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules",
4476
+ httpMethod: "GET",
4477
+ responses: {
4478
+ 200: {
4479
+ bodyMapper: FirewallRuleListResult
4480
+ },
4481
+ default: {
4482
+ bodyMapper: ErrorResponse
4483
+ }
4484
+ },
4485
+ queryParameters: [apiVersion],
4486
+ urlParameters: [
4487
+ $host,
4488
+ subscriptionId,
4489
+ resourceGroupName,
4490
+ accountName
4491
+ ],
4492
+ headerParameters: [accept],
4493
+ serializer: serializer$4
4494
+ };
4495
+ const createOrUpdateOperationSpec$1 = {
4496
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}",
4497
+ httpMethod: "PUT",
4498
+ responses: {
4499
+ 200: {
4500
+ bodyMapper: FirewallRule
4501
+ },
4502
+ default: {
4503
+ bodyMapper: ErrorResponse
4504
+ }
4505
+ },
4506
+ requestBody: parameters8,
4507
+ queryParameters: [apiVersion],
4508
+ urlParameters: [
4509
+ $host,
4510
+ subscriptionId,
4511
+ resourceGroupName,
4512
+ accountName,
4513
+ firewallRuleName
4514
+ ],
4515
+ headerParameters: [accept, contentType],
4516
+ mediaType: "json",
4517
+ serializer: serializer$4
4518
+ };
4519
+ const getOperationSpec$4 = {
4520
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}",
4521
+ httpMethod: "GET",
4522
+ responses: {
4523
+ 200: {
4524
+ bodyMapper: FirewallRule
4525
+ },
4526
+ default: {
4527
+ bodyMapper: ErrorResponse
4528
+ }
4529
+ },
4530
+ queryParameters: [apiVersion],
4531
+ urlParameters: [
4532
+ $host,
4533
+ subscriptionId,
4534
+ resourceGroupName,
4535
+ accountName,
4536
+ firewallRuleName
4537
+ ],
4538
+ headerParameters: [accept],
4539
+ serializer: serializer$4
4540
+ };
4541
+ const updateOperationSpec$3 = {
4542
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}",
4543
+ httpMethod: "PATCH",
4544
+ responses: {
4545
+ 200: {
4546
+ bodyMapper: FirewallRule
4547
+ },
4548
+ default: {
4549
+ bodyMapper: ErrorResponse
4550
+ }
4551
+ },
4552
+ requestBody: parameters9,
4553
+ queryParameters: [apiVersion],
4554
+ urlParameters: [
4555
+ $host,
4556
+ subscriptionId,
4557
+ resourceGroupName,
4558
+ accountName,
4559
+ firewallRuleName
4560
+ ],
4561
+ headerParameters: [accept, contentType],
4562
+ mediaType: "json",
4563
+ serializer: serializer$4
4564
+ };
4565
+ const deleteOperationSpec$4 = {
4566
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}",
4567
+ httpMethod: "DELETE",
4568
+ responses: {
4569
+ 200: {},
4570
+ 204: {},
4571
+ default: {
4572
+ bodyMapper: ErrorResponse
4573
+ }
4574
+ },
4575
+ queryParameters: [apiVersion],
4576
+ urlParameters: [
4577
+ $host,
4578
+ subscriptionId,
4579
+ resourceGroupName,
4580
+ accountName,
4581
+ firewallRuleName
4582
+ ],
4583
+ headerParameters: [accept],
4584
+ serializer: serializer$4
4585
+ };
4586
+ const listByAccountNextOperationSpec$3 = {
4587
+ path: "{nextLink}",
4588
+ httpMethod: "GET",
4589
+ responses: {
4590
+ 200: {
4591
+ bodyMapper: FirewallRuleListResult
4592
+ },
4593
+ default: {
4594
+ bodyMapper: ErrorResponse
4595
+ }
4596
+ },
4597
+ queryParameters: [apiVersion],
4598
+ urlParameters: [
4599
+ $host,
4600
+ subscriptionId,
4601
+ resourceGroupName,
4602
+ accountName,
4603
+ nextLink
4604
+ ],
4605
+ headerParameters: [accept],
4606
+ serializer: serializer$4
4607
+ };
4608
+
4609
+ /*
4610
+ * Copyright (c) Microsoft Corporation.
4611
+ * Licensed under the MIT License.
4612
+ *
4613
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4614
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4615
+ */
4616
+ /** Class containing Operations operations. */
4617
+ class OperationsImpl {
4618
+ /**
4619
+ * Initialize a new instance of the class Operations class.
4620
+ * @param client Reference to the service client
4621
+ */
4622
+ constructor(client) {
4623
+ this.client = client;
4624
+ }
4625
+ /**
4626
+ * Lists all of the available Data Lake Analytics REST API operations.
4627
+ * @param options The options parameters.
4628
+ */
4629
+ list(options) {
4630
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
4631
+ }
4632
+ }
4633
+ // Operation Specifications
4634
+ const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
4635
+ const listOperationSpec$1 = {
4636
+ path: "/providers/Microsoft.DataLakeAnalytics/operations",
4637
+ httpMethod: "GET",
4638
+ responses: {
4639
+ 200: {
4640
+ bodyMapper: OperationListResult
4641
+ },
4642
+ default: {
4643
+ bodyMapper: ErrorResponse
4644
+ }
4645
+ },
4646
+ queryParameters: [apiVersion],
4647
+ urlParameters: [$host],
4648
+ headerParameters: [accept],
4649
+ serializer: serializer$5
4650
+ };
4651
+
4652
+ /*
4653
+ * Copyright (c) Microsoft Corporation.
4654
+ * Licensed under the MIT License.
4655
+ *
4656
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4657
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4658
+ */
4659
+ /** Class containing Locations operations. */
4660
+ class LocationsImpl {
4661
+ /**
4662
+ * Initialize a new instance of the class Locations class.
4663
+ * @param client Reference to the service client
4664
+ */
4665
+ constructor(client) {
4666
+ this.client = client;
4667
+ }
4668
+ /**
4669
+ * Gets subscription-level properties and limits for Data Lake Analytics specified by resource
4670
+ * location.
4671
+ * @param location The resource location without whitespace.
4672
+ * @param options The options parameters.
4673
+ */
4674
+ getCapability(location, options) {
4675
+ return this.client.sendOperationRequest({ location, options }, getCapabilityOperationSpec);
4676
+ }
4677
+ }
4678
+ // Operation Specifications
4679
+ const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
4680
+ const getCapabilityOperationSpec = {
4681
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/capability",
4682
+ httpMethod: "GET",
4683
+ responses: {
4684
+ 200: {
4685
+ bodyMapper: CapabilityInformation
4686
+ },
4687
+ 404: {},
4688
+ default: {
4689
+ bodyMapper: ErrorResponse
4690
+ }
4691
+ },
4692
+ queryParameters: [apiVersion],
4693
+ urlParameters: [
4694
+ $host,
4695
+ subscriptionId,
4696
+ location
4697
+ ],
4698
+ headerParameters: [accept],
4699
+ serializer: serializer$6
4700
+ };
4701
+
4702
+ /*
4703
+ * Copyright (c) Microsoft Corporation.
4704
+ * Licensed under the MIT License.
4705
+ *
4706
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4707
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4708
+ */
4709
+ class DataLakeAnalyticsAccountManagementClientContext extends coreClient.ServiceClient {
4710
+ /**
4711
+ * Initializes a new instance of the DataLakeAnalyticsAccountManagementClientContext class.
4712
+ * @param credentials Subscription credentials which uniquely identify client subscription.
4713
+ * @param subscriptionId Get subscription credentials which uniquely identify Microsoft Azure
4714
+ * subscription. The subscription ID forms part of the URI for every service call.
4715
+ * @param options The parameter options
4716
+ */
4717
+ constructor(credentials, subscriptionId, options) {
4718
+ if (credentials === undefined) {
4719
+ throw new Error("'credentials' cannot be null");
4720
+ }
4721
+ if (subscriptionId === undefined) {
4722
+ throw new Error("'subscriptionId' cannot be null");
4723
+ }
4724
+ // Initializing default values for options
4725
+ if (!options) {
4726
+ options = {};
4727
+ }
4728
+ const defaults = {
4729
+ requestContentType: "application/json; charset=utf-8",
4730
+ credential: credentials
4731
+ };
4732
+ const packageDetails = `azsdk-js-arm-datalake-analytics/2.0.0-beta.1`;
4733
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4734
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4735
+ : `${packageDetails}`;
4736
+ if (!options.credentialScopes) {
4737
+ options.credentialScopes = ["https://management.azure.com/.default"];
4738
+ }
4739
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4740
+ userAgentPrefix
4741
+ }, baseUri: options.endpoint || "https://management.azure.com" });
4742
+ super(optionsWithDefaults);
4743
+ // Parameter assignments
4744
+ this.subscriptionId = subscriptionId;
4745
+ // Assigning values to Constant parameters
4746
+ this.$host = options.$host || "https://management.azure.com";
4747
+ this.apiVersion = options.apiVersion || "2019-11-01-preview";
4748
+ }
4749
+ }
4750
+
4751
+ /*
4752
+ * Copyright (c) Microsoft Corporation.
4753
+ * Licensed under the MIT License.
4754
+ *
4755
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4756
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4757
+ */
4758
+ class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsAccountManagementClientContext {
4759
+ /**
4760
+ * Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
4761
+ * @param credentials Subscription credentials which uniquely identify client subscription.
4762
+ * @param subscriptionId Get subscription credentials which uniquely identify Microsoft Azure
4763
+ * subscription. The subscription ID forms part of the URI for every service call.
4764
+ * @param options The parameter options
4765
+ */
4766
+ constructor(credentials, subscriptionId, options) {
4767
+ super(credentials, subscriptionId, options);
4768
+ this.accounts = new AccountsImpl(this);
4769
+ this.dataLakeStoreAccounts = new DataLakeStoreAccountsImpl(this);
4770
+ this.storageAccounts = new StorageAccountsImpl(this);
4771
+ this.computePolicies = new ComputePoliciesImpl(this);
4772
+ this.firewallRules = new FirewallRulesImpl(this);
4773
+ this.operations = new OperationsImpl(this);
4774
+ this.locations = new LocationsImpl(this);
4775
+ }
4776
+ }
4777
+
4778
+ exports.DataLakeAnalyticsAccountManagementClient = DataLakeAnalyticsAccountManagementClient;
4779
+ exports.DataLakeAnalyticsAccountManagementClientContext = DataLakeAnalyticsAccountManagementClientContext;
4780
+ //# sourceMappingURL=index.js.map