@azure/arm-machinelearningexperimentation 1.2.1 → 2.0.0-beta.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 (202) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1780 -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/samples-dev/accountCreate.d.ts +2 -0
  9. package/dist-esm/samples-dev/accountCreate.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accountCreate.js +33 -0
  11. package/dist-esm/samples-dev/accountCreate.js.map +1 -0
  12. package/dist-esm/samples-dev/accountGet.d.ts +2 -0
  13. package/dist-esm/samples-dev/accountGet.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accountGet.js +31 -0
  15. package/dist-esm/samples-dev/accountGet.js.map +1 -0
  16. package/dist-esm/samples-dev/accountUpdate.d.ts +2 -0
  17. package/dist-esm/samples-dev/accountUpdate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accountUpdate.js +35 -0
  19. package/dist-esm/samples-dev/accountUpdate.js.map +1 -0
  20. package/dist-esm/samples-dev/createProject.d.ts +2 -0
  21. package/dist-esm/samples-dev/createProject.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createProject.js +39 -0
  23. package/dist-esm/samples-dev/createProject.js.map +1 -0
  24. package/dist-esm/samples-dev/getProject.d.ts +2 -0
  25. package/dist-esm/samples-dev/getProject.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/getProject.js +33 -0
  27. package/dist-esm/samples-dev/getProject.js.map +1 -0
  28. package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts +2 -0
  29. package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/listWorkspacesByAccounts.js +45 -0
  31. package/dist-esm/samples-dev/listWorkspacesByAccounts.js.map +1 -0
  32. package/dist-esm/samples-dev/projectListByWorkspaces.d.ts +2 -0
  33. package/dist-esm/samples-dev/projectListByWorkspaces.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/projectListByWorkspaces.js +46 -0
  35. package/dist-esm/samples-dev/projectListByWorkspaces.js.map +1 -0
  36. package/dist-esm/samples-dev/updateProject.d.ts +2 -0
  37. package/dist-esm/samples-dev/updateProject.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/updateProject.js +37 -0
  39. package/dist-esm/samples-dev/updateProject.js.map +1 -0
  40. package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
  41. package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/workspaceCreate.js +37 -0
  43. package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
  44. package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
  45. package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/workspaceDelete.js +32 -0
  47. package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
  48. package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
  49. package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/workspaceGet.js +32 -0
  51. package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
  52. package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
  53. package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/workspaceUpdate.js +33 -0
  55. package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
  56. package/dist-esm/src/index.d.ts +5 -0
  57. package/dist-esm/src/index.d.ts.map +1 -0
  58. package/dist-esm/src/index.js +12 -0
  59. package/dist-esm/src/index.js.map +1 -0
  60. package/dist-esm/src/mLTeamAccountManagementClient.d.ts +21 -0
  61. package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -0
  62. package/dist-esm/src/mLTeamAccountManagementClient.js +54 -0
  63. package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -0
  64. package/dist-esm/src/models/index.d.ts +329 -0
  65. package/dist-esm/src/models/index.d.ts.map +1 -0
  66. package/dist-esm/src/models/index.js +9 -0
  67. package/dist-esm/src/models/index.js.map +1 -0
  68. package/dist-esm/src/models/mappers.d.ts +17 -0
  69. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  70. package/{esm → dist-esm/src}/models/mappers.js +273 -315
  71. package/dist-esm/src/models/mappers.js.map +1 -0
  72. package/dist-esm/src/models/parameters.d.ts +18 -0
  73. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  74. package/dist-esm/src/models/parameters.js +153 -0
  75. package/dist-esm/src/models/parameters.js.map +1 -0
  76. package/dist-esm/src/operations/accounts.d.ts +90 -0
  77. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  78. package/dist-esm/src/operations/accounts.js +366 -0
  79. package/dist-esm/src/operations/accounts.js.map +1 -0
  80. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  81. package/dist-esm/src/operations/index.d.ts.map +1 -0
  82. package/{esm → dist-esm/src}/operations/index.js +3 -5
  83. package/dist-esm/src/operations/index.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +26 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +90 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operations/projects.d.ts +86 -0
  89. package/dist-esm/src/operations/projects.d.ts.map +1 -0
  90. package/dist-esm/src/operations/projects.js +307 -0
  91. package/dist-esm/src/operations/projects.js.map +1 -0
  92. package/dist-esm/src/operations/workspaces.d.ts +79 -0
  93. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  94. package/dist-esm/src/operations/workspaces.js +280 -0
  95. package/dist-esm/src/operations/workspaces.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/accounts.d.ts +52 -0
  97. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  101. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  103. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/projects.d.ts +57 -0
  109. package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/projects.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +52 -0
  113. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +2 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +40 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +81 -34
  121. package/review/arm-machinelearningexperimentation.api.md +339 -0
  122. package/rollup.config.js +184 -27
  123. package/src/index.ts +12 -0
  124. package/src/mLTeamAccountManagementClient.ts +78 -41
  125. package/src/models/index.ts +287 -707
  126. package/src/models/mappers.ts +263 -305
  127. package/src/models/parameters.ts +116 -43
  128. package/src/operations/accounts.ts +290 -330
  129. package/src/operations/index.ts +3 -5
  130. package/src/operations/operations.ts +66 -42
  131. package/src/operations/projects.ts +256 -281
  132. package/src/operations/workspaces.ts +242 -283
  133. package/src/operationsInterfaces/accounts.ts +96 -0
  134. package/src/operationsInterfaces/index.ts +12 -0
  135. package/src/operationsInterfaces/operations.ts +22 -0
  136. package/src/operationsInterfaces/projects.ts +108 -0
  137. package/src/operationsInterfaces/workspaces.ts +98 -0
  138. package/tsconfig.json +6 -5
  139. package/types/arm-machinelearningexperimentation.d.ts +569 -0
  140. package/types/tsdoc-metadata.json +11 -0
  141. package/dist/arm-machinelearningexperimentation.js +0 -1725
  142. package/dist/arm-machinelearningexperimentation.js.map +0 -1
  143. package/dist/arm-machinelearningexperimentation.min.js +0 -1
  144. package/dist/arm-machinelearningexperimentation.min.js.map +0 -1
  145. package/esm/mLTeamAccountManagementClient.d.ts +0 -27
  146. package/esm/mLTeamAccountManagementClient.d.ts.map +0 -1
  147. package/esm/mLTeamAccountManagementClient.js +0 -41
  148. package/esm/mLTeamAccountManagementClient.js.map +0 -1
  149. package/esm/mLTeamAccountManagementClientContext.d.ts +0 -22
  150. package/esm/mLTeamAccountManagementClientContext.d.ts.map +0 -1
  151. package/esm/mLTeamAccountManagementClientContext.js +0 -61
  152. package/esm/mLTeamAccountManagementClientContext.js.map +0 -1
  153. package/esm/models/accountsMappers.d.ts +0 -2
  154. package/esm/models/accountsMappers.d.ts.map +0 -1
  155. package/esm/models/accountsMappers.js +0 -11
  156. package/esm/models/accountsMappers.js.map +0 -1
  157. package/esm/models/index.d.ts +0 -770
  158. package/esm/models/index.d.ts.map +0 -1
  159. package/esm/models/index.js +0 -10
  160. package/esm/models/index.js.map +0 -1
  161. package/esm/models/mappers.d.ts +0 -19
  162. package/esm/models/mappers.d.ts.map +0 -1
  163. package/esm/models/mappers.js.map +0 -1
  164. package/esm/models/operationsMappers.d.ts +0 -2
  165. package/esm/models/operationsMappers.d.ts.map +0 -1
  166. package/esm/models/operationsMappers.js +0 -11
  167. package/esm/models/operationsMappers.js.map +0 -1
  168. package/esm/models/parameters.d.ts +0 -10
  169. package/esm/models/parameters.d.ts.map +0 -1
  170. package/esm/models/parameters.js +0 -106
  171. package/esm/models/parameters.js.map +0 -1
  172. package/esm/models/projectsMappers.d.ts +0 -2
  173. package/esm/models/projectsMappers.d.ts.map +0 -1
  174. package/esm/models/projectsMappers.js +0 -11
  175. package/esm/models/projectsMappers.js.map +0 -1
  176. package/esm/models/workspacesMappers.d.ts +0 -2
  177. package/esm/models/workspacesMappers.d.ts.map +0 -1
  178. package/esm/models/workspacesMappers.js +0 -11
  179. package/esm/models/workspacesMappers.js.map +0 -1
  180. package/esm/operations/accounts.d.ts +0 -187
  181. package/esm/operations/accounts.d.ts.map +0 -1
  182. package/esm/operations/accounts.js +0 -272
  183. package/esm/operations/accounts.js.map +0 -1
  184. package/esm/operations/index.d.ts.map +0 -1
  185. package/esm/operations/index.js.map +0 -1
  186. package/esm/operations/operations.d.ts +0 -28
  187. package/esm/operations/operations.d.ts.map +0 -1
  188. package/esm/operations/operations.js +0 -51
  189. package/esm/operations/operations.js.map +0 -1
  190. package/esm/operations/projects.d.ts +0 -184
  191. package/esm/operations/projects.d.ts.map +0 -1
  192. package/esm/operations/projects.js +0 -239
  193. package/esm/operations/projects.js.map +0 -1
  194. package/esm/operations/workspaces.d.ts +0 -169
  195. package/esm/operations/workspaces.d.ts.map +0 -1
  196. package/esm/operations/workspaces.js +0 -229
  197. package/esm/operations/workspaces.js.map +0 -1
  198. package/src/mLTeamAccountManagementClientContext.ts +0 -68
  199. package/src/models/accountsMappers.ts +0 -22
  200. package/src/models/operationsMappers.ts +0 -17
  201. package/src/models/projectsMappers.ts +0 -22
  202. package/src/models/workspacesMappers.ts +0 -22
package/dist/index.js ADDED
@@ -0,0 +1,1780 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+
8
+ /*
9
+ * Copyright (c) Microsoft Corporation.
10
+ * Licensed under the MIT License.
11
+ *
12
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
+ */
15
+ const OperationListResult = {
16
+ type: {
17
+ name: "Composite",
18
+ className: "OperationListResult",
19
+ modelProperties: {
20
+ value: {
21
+ serializedName: "value",
22
+ type: {
23
+ name: "Sequence",
24
+ element: {
25
+ type: {
26
+ name: "Composite",
27
+ className: "Operation"
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ };
35
+ const Operation = {
36
+ type: {
37
+ name: "Composite",
38
+ className: "Operation",
39
+ modelProperties: {
40
+ name: {
41
+ serializedName: "name",
42
+ type: {
43
+ name: "String"
44
+ }
45
+ },
46
+ display: {
47
+ serializedName: "display",
48
+ type: {
49
+ name: "Composite",
50
+ className: "OperationDisplay"
51
+ }
52
+ }
53
+ }
54
+ }
55
+ };
56
+ const OperationDisplay = {
57
+ type: {
58
+ name: "Composite",
59
+ className: "OperationDisplay",
60
+ modelProperties: {
61
+ provider: {
62
+ serializedName: "provider",
63
+ type: {
64
+ name: "String"
65
+ }
66
+ },
67
+ resource: {
68
+ serializedName: "resource",
69
+ type: {
70
+ name: "String"
71
+ }
72
+ },
73
+ operation: {
74
+ serializedName: "operation",
75
+ type: {
76
+ name: "String"
77
+ }
78
+ },
79
+ description: {
80
+ serializedName: "description",
81
+ type: {
82
+ name: "String"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ };
88
+ const ErrorResponse = {
89
+ type: {
90
+ name: "Composite",
91
+ className: "ErrorResponse",
92
+ modelProperties: {
93
+ code: {
94
+ serializedName: "code",
95
+ required: true,
96
+ type: {
97
+ name: "String"
98
+ }
99
+ },
100
+ message: {
101
+ serializedName: "message",
102
+ required: true,
103
+ type: {
104
+ name: "String"
105
+ }
106
+ }
107
+ }
108
+ }
109
+ };
110
+ const StorageAccountProperties = {
111
+ type: {
112
+ name: "Composite",
113
+ className: "StorageAccountProperties",
114
+ modelProperties: {
115
+ storageAccountId: {
116
+ serializedName: "storageAccountId",
117
+ required: true,
118
+ type: {
119
+ name: "String"
120
+ }
121
+ },
122
+ accessKey: {
123
+ serializedName: "accessKey",
124
+ required: true,
125
+ type: {
126
+ name: "String"
127
+ }
128
+ }
129
+ }
130
+ }
131
+ };
132
+ const Resource = {
133
+ type: {
134
+ name: "Composite",
135
+ className: "Resource",
136
+ modelProperties: {
137
+ id: {
138
+ serializedName: "id",
139
+ readOnly: true,
140
+ type: {
141
+ name: "String"
142
+ }
143
+ },
144
+ name: {
145
+ serializedName: "name",
146
+ readOnly: true,
147
+ type: {
148
+ name: "String"
149
+ }
150
+ },
151
+ type: {
152
+ serializedName: "type",
153
+ readOnly: true,
154
+ type: {
155
+ name: "String"
156
+ }
157
+ },
158
+ location: {
159
+ serializedName: "location",
160
+ required: true,
161
+ type: {
162
+ name: "String"
163
+ }
164
+ },
165
+ tags: {
166
+ serializedName: "tags",
167
+ type: {
168
+ name: "Dictionary",
169
+ value: { type: { name: "String" } }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ };
175
+ const AccountUpdateParameters = {
176
+ type: {
177
+ name: "Composite",
178
+ className: "AccountUpdateParameters",
179
+ modelProperties: {
180
+ tags: {
181
+ serializedName: "tags",
182
+ type: {
183
+ name: "Dictionary",
184
+ value: { type: { name: "String" } }
185
+ }
186
+ },
187
+ description: {
188
+ serializedName: "properties.description",
189
+ type: {
190
+ name: "String"
191
+ }
192
+ },
193
+ friendlyName: {
194
+ serializedName: "properties.friendlyName",
195
+ type: {
196
+ name: "String"
197
+ }
198
+ },
199
+ seats: {
200
+ serializedName: "properties.seats",
201
+ type: {
202
+ name: "String"
203
+ }
204
+ },
205
+ storageAccountKey: {
206
+ serializedName: "properties.storageAccountKey",
207
+ type: {
208
+ name: "String"
209
+ }
210
+ }
211
+ }
212
+ }
213
+ };
214
+ const AccountListResult = {
215
+ type: {
216
+ name: "Composite",
217
+ className: "AccountListResult",
218
+ modelProperties: {
219
+ value: {
220
+ serializedName: "value",
221
+ type: {
222
+ name: "Sequence",
223
+ element: {
224
+ type: {
225
+ name: "Composite",
226
+ className: "Account"
227
+ }
228
+ }
229
+ }
230
+ },
231
+ nextLink: {
232
+ serializedName: "nextLink",
233
+ type: {
234
+ name: "String"
235
+ }
236
+ }
237
+ }
238
+ }
239
+ };
240
+ const WorkspaceUpdateParameters = {
241
+ type: {
242
+ name: "Composite",
243
+ className: "WorkspaceUpdateParameters",
244
+ modelProperties: {
245
+ tags: {
246
+ serializedName: "tags",
247
+ type: {
248
+ name: "Dictionary",
249
+ value: { type: { name: "String" } }
250
+ }
251
+ },
252
+ friendlyName: {
253
+ serializedName: "properties.friendlyName",
254
+ type: {
255
+ name: "String"
256
+ }
257
+ },
258
+ description: {
259
+ serializedName: "properties.description",
260
+ type: {
261
+ name: "String"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ };
267
+ const WorkspaceListResult = {
268
+ type: {
269
+ name: "Composite",
270
+ className: "WorkspaceListResult",
271
+ modelProperties: {
272
+ value: {
273
+ serializedName: "value",
274
+ type: {
275
+ name: "Sequence",
276
+ element: {
277
+ type: {
278
+ name: "Composite",
279
+ className: "Workspace"
280
+ }
281
+ }
282
+ }
283
+ },
284
+ nextLink: {
285
+ serializedName: "nextLink",
286
+ type: {
287
+ name: "String"
288
+ }
289
+ }
290
+ }
291
+ }
292
+ };
293
+ const ProjectUpdateParameters = {
294
+ type: {
295
+ name: "Composite",
296
+ className: "ProjectUpdateParameters",
297
+ modelProperties: {
298
+ tags: {
299
+ serializedName: "tags",
300
+ type: {
301
+ name: "Dictionary",
302
+ value: { type: { name: "String" } }
303
+ }
304
+ },
305
+ friendlyName: {
306
+ serializedName: "properties.friendlyName",
307
+ type: {
308
+ name: "String"
309
+ }
310
+ },
311
+ description: {
312
+ serializedName: "properties.description",
313
+ type: {
314
+ name: "String"
315
+ }
316
+ },
317
+ gitrepo: {
318
+ serializedName: "properties.gitrepo",
319
+ type: {
320
+ name: "String"
321
+ }
322
+ }
323
+ }
324
+ }
325
+ };
326
+ const ProjectListResult = {
327
+ type: {
328
+ name: "Composite",
329
+ className: "ProjectListResult",
330
+ modelProperties: {
331
+ value: {
332
+ serializedName: "value",
333
+ type: {
334
+ name: "Sequence",
335
+ element: {
336
+ type: {
337
+ name: "Composite",
338
+ className: "Project"
339
+ }
340
+ }
341
+ }
342
+ },
343
+ nextLink: {
344
+ serializedName: "nextLink",
345
+ type: {
346
+ name: "String"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ };
352
+ const Account = {
353
+ type: {
354
+ name: "Composite",
355
+ className: "Account",
356
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { vsoAccountId: {
357
+ serializedName: "properties.vsoAccountId",
358
+ type: {
359
+ name: "String"
360
+ }
361
+ }, accountId: {
362
+ serializedName: "properties.accountId",
363
+ readOnly: true,
364
+ type: {
365
+ name: "String"
366
+ }
367
+ }, description: {
368
+ serializedName: "properties.description",
369
+ type: {
370
+ name: "String"
371
+ }
372
+ }, friendlyName: {
373
+ serializedName: "properties.friendlyName",
374
+ type: {
375
+ name: "String"
376
+ }
377
+ }, keyVaultId: {
378
+ serializedName: "properties.keyVaultId",
379
+ type: {
380
+ name: "String"
381
+ }
382
+ }, seats: {
383
+ serializedName: "properties.seats",
384
+ type: {
385
+ name: "String"
386
+ }
387
+ }, discoveryUri: {
388
+ serializedName: "properties.discoveryUri",
389
+ readOnly: true,
390
+ type: {
391
+ name: "String"
392
+ }
393
+ }, creationDate: {
394
+ serializedName: "properties.creationDate",
395
+ readOnly: true,
396
+ type: {
397
+ name: "DateTime"
398
+ }
399
+ }, storageAccount: {
400
+ serializedName: "properties.storageAccount",
401
+ type: {
402
+ name: "Composite",
403
+ className: "StorageAccountProperties"
404
+ }
405
+ }, provisioningState: {
406
+ serializedName: "properties.provisioningState",
407
+ readOnly: true,
408
+ type: {
409
+ name: "Enum",
410
+ allowedValues: [
411
+ "Creating",
412
+ "Succeeded",
413
+ "Updating",
414
+ "Deleting",
415
+ "Failed"
416
+ ]
417
+ }
418
+ } })
419
+ }
420
+ };
421
+ const Workspace = {
422
+ type: {
423
+ name: "Composite",
424
+ className: "Workspace",
425
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { description: {
426
+ serializedName: "properties.description",
427
+ type: {
428
+ name: "String"
429
+ }
430
+ }, accountId: {
431
+ serializedName: "properties.accountId",
432
+ readOnly: true,
433
+ type: {
434
+ name: "String"
435
+ }
436
+ }, workspaceId: {
437
+ serializedName: "properties.workspaceId",
438
+ readOnly: true,
439
+ type: {
440
+ name: "String"
441
+ }
442
+ }, friendlyName: {
443
+ serializedName: "properties.friendlyName",
444
+ type: {
445
+ name: "String"
446
+ }
447
+ }, creationDate: {
448
+ serializedName: "properties.creationDate",
449
+ readOnly: true,
450
+ type: {
451
+ name: "DateTime"
452
+ }
453
+ }, provisioningState: {
454
+ serializedName: "properties.provisioningState",
455
+ readOnly: true,
456
+ type: {
457
+ name: "Enum",
458
+ allowedValues: [
459
+ "Creating",
460
+ "Succeeded",
461
+ "Updating",
462
+ "Deleting",
463
+ "Failed"
464
+ ]
465
+ }
466
+ } })
467
+ }
468
+ };
469
+ const Project = {
470
+ type: {
471
+ name: "Composite",
472
+ className: "Project",
473
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { description: {
474
+ serializedName: "properties.description",
475
+ type: {
476
+ name: "String"
477
+ }
478
+ }, accountId: {
479
+ serializedName: "properties.accountId",
480
+ readOnly: true,
481
+ type: {
482
+ name: "String"
483
+ }
484
+ }, workspaceId: {
485
+ serializedName: "properties.workspaceId",
486
+ readOnly: true,
487
+ type: {
488
+ name: "String"
489
+ }
490
+ }, projectId: {
491
+ serializedName: "properties.projectId",
492
+ readOnly: true,
493
+ type: {
494
+ name: "String"
495
+ }
496
+ }, gitrepo: {
497
+ serializedName: "properties.gitrepo",
498
+ type: {
499
+ name: "String"
500
+ }
501
+ }, friendlyName: {
502
+ serializedName: "properties.friendlyName",
503
+ type: {
504
+ name: "String"
505
+ }
506
+ }, creationDate: {
507
+ serializedName: "properties.creationDate",
508
+ readOnly: true,
509
+ type: {
510
+ name: "DateTime"
511
+ }
512
+ }, provisioningState: {
513
+ serializedName: "properties.provisioningState",
514
+ readOnly: true,
515
+ type: {
516
+ name: "Enum",
517
+ allowedValues: [
518
+ "Creating",
519
+ "Succeeded",
520
+ "Updating",
521
+ "Deleting",
522
+ "Failed"
523
+ ]
524
+ }
525
+ } })
526
+ }
527
+ };
528
+
529
+ var Mappers = /*#__PURE__*/Object.freeze({
530
+ __proto__: null,
531
+ OperationListResult: OperationListResult,
532
+ Operation: Operation,
533
+ OperationDisplay: OperationDisplay,
534
+ ErrorResponse: ErrorResponse,
535
+ StorageAccountProperties: StorageAccountProperties,
536
+ Resource: Resource,
537
+ AccountUpdateParameters: AccountUpdateParameters,
538
+ AccountListResult: AccountListResult,
539
+ WorkspaceUpdateParameters: WorkspaceUpdateParameters,
540
+ WorkspaceListResult: WorkspaceListResult,
541
+ ProjectUpdateParameters: ProjectUpdateParameters,
542
+ ProjectListResult: ProjectListResult,
543
+ Account: Account,
544
+ Workspace: Workspace,
545
+ Project: Project
546
+ });
547
+
548
+ /*
549
+ * Copyright (c) Microsoft Corporation.
550
+ * Licensed under the MIT License.
551
+ *
552
+ * Code generated by Microsoft (R) AutoRest Code Generator.
553
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
554
+ */
555
+ const accept = {
556
+ parameterPath: "accept",
557
+ mapper: {
558
+ defaultValue: "application/json",
559
+ isConstant: true,
560
+ serializedName: "Accept",
561
+ type: {
562
+ name: "String"
563
+ }
564
+ }
565
+ };
566
+ const $host = {
567
+ parameterPath: "$host",
568
+ mapper: {
569
+ serializedName: "$host",
570
+ required: true,
571
+ type: {
572
+ name: "String"
573
+ }
574
+ },
575
+ skipEncoding: true
576
+ };
577
+ const apiVersion = {
578
+ parameterPath: "apiVersion",
579
+ mapper: {
580
+ defaultValue: "2017-05-01-preview",
581
+ isConstant: true,
582
+ serializedName: "api-version",
583
+ type: {
584
+ name: "String"
585
+ }
586
+ }
587
+ };
588
+ const subscriptionId = {
589
+ parameterPath: "subscriptionId",
590
+ mapper: {
591
+ serializedName: "subscriptionId",
592
+ required: true,
593
+ type: {
594
+ name: "String"
595
+ }
596
+ }
597
+ };
598
+ const resourceGroupName = {
599
+ parameterPath: "resourceGroupName",
600
+ mapper: {
601
+ serializedName: "resourceGroupName",
602
+ required: true,
603
+ type: {
604
+ name: "String"
605
+ }
606
+ }
607
+ };
608
+ const accountName = {
609
+ parameterPath: "accountName",
610
+ mapper: {
611
+ constraints: {
612
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
613
+ MaxLength: 50,
614
+ MinLength: 5
615
+ },
616
+ serializedName: "accountName",
617
+ required: true,
618
+ type: {
619
+ name: "String"
620
+ }
621
+ }
622
+ };
623
+ const contentType = {
624
+ parameterPath: ["options", "contentType"],
625
+ mapper: {
626
+ defaultValue: "application/json",
627
+ isConstant: true,
628
+ serializedName: "Content-Type",
629
+ type: {
630
+ name: "String"
631
+ }
632
+ }
633
+ };
634
+ const parameters = {
635
+ parameterPath: "parameters",
636
+ mapper: Account
637
+ };
638
+ const parameters1 = {
639
+ parameterPath: "parameters",
640
+ mapper: AccountUpdateParameters
641
+ };
642
+ const nextLink = {
643
+ parameterPath: "nextLink",
644
+ mapper: {
645
+ serializedName: "nextLink",
646
+ required: true,
647
+ type: {
648
+ name: "String"
649
+ }
650
+ },
651
+ skipEncoding: true
652
+ };
653
+ const workspaceName = {
654
+ parameterPath: "workspaceName",
655
+ mapper: {
656
+ constraints: {
657
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
658
+ MaxLength: 50,
659
+ MinLength: 5
660
+ },
661
+ serializedName: "workspaceName",
662
+ required: true,
663
+ type: {
664
+ name: "String"
665
+ }
666
+ }
667
+ };
668
+ const parameters2 = {
669
+ parameterPath: "parameters",
670
+ mapper: Workspace
671
+ };
672
+ const parameters3 = {
673
+ parameterPath: "parameters",
674
+ mapper: WorkspaceUpdateParameters
675
+ };
676
+ const projectName = {
677
+ parameterPath: "projectName",
678
+ mapper: {
679
+ constraints: {
680
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
681
+ MaxLength: 50,
682
+ MinLength: 5
683
+ },
684
+ serializedName: "projectName",
685
+ required: true,
686
+ type: {
687
+ name: "String"
688
+ }
689
+ }
690
+ };
691
+ const parameters4 = {
692
+ parameterPath: "parameters",
693
+ mapper: Project
694
+ };
695
+ const parameters5 = {
696
+ parameterPath: "parameters",
697
+ mapper: ProjectUpdateParameters
698
+ };
699
+
700
+ /*
701
+ * Copyright (c) Microsoft Corporation.
702
+ * Licensed under the MIT License.
703
+ *
704
+ * Code generated by Microsoft (R) AutoRest Code Generator.
705
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
706
+ */
707
+ /// <reference lib="esnext.asynciterable" />
708
+ /** Class containing Operations operations. */
709
+ class OperationsImpl {
710
+ /**
711
+ * Initialize a new instance of the class Operations class.
712
+ * @param client Reference to the service client
713
+ */
714
+ constructor(client) {
715
+ this.client = client;
716
+ }
717
+ /**
718
+ * Lists all of the available Azure Machine Learning Team Accounts REST API operations.
719
+ * @param options The options parameters.
720
+ */
721
+ list(options) {
722
+ const iter = this.listPagingAll(options);
723
+ return {
724
+ next() {
725
+ return iter.next();
726
+ },
727
+ [Symbol.asyncIterator]() {
728
+ return this;
729
+ },
730
+ byPage: () => {
731
+ return this.listPagingPage(options);
732
+ }
733
+ };
734
+ }
735
+ listPagingPage(options) {
736
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
737
+ let result = yield tslib.__await(this._list(options));
738
+ yield yield tslib.__await(result.value || []);
739
+ });
740
+ }
741
+ listPagingAll(options) {
742
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
743
+ var e_1, _a;
744
+ try {
745
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
746
+ const page = _c.value;
747
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
748
+ }
749
+ }
750
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
751
+ finally {
752
+ try {
753
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
754
+ }
755
+ finally { if (e_1) throw e_1.error; }
756
+ }
757
+ });
758
+ }
759
+ /**
760
+ * Lists all of the available Azure Machine Learning Team Accounts REST API operations.
761
+ * @param options The options parameters.
762
+ */
763
+ _list(options) {
764
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
765
+ }
766
+ }
767
+ // Operation Specifications
768
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
769
+ const listOperationSpec = {
770
+ path: "/providers/Microsoft.MachineLearningExperimentation/operations",
771
+ httpMethod: "GET",
772
+ responses: {
773
+ 200: {
774
+ bodyMapper: OperationListResult
775
+ },
776
+ default: {
777
+ bodyMapper: ErrorResponse
778
+ }
779
+ },
780
+ queryParameters: [apiVersion],
781
+ urlParameters: [$host],
782
+ headerParameters: [accept],
783
+ serializer
784
+ };
785
+
786
+ /*
787
+ * Copyright (c) Microsoft Corporation.
788
+ * Licensed under the MIT License.
789
+ *
790
+ * Code generated by Microsoft (R) AutoRest Code Generator.
791
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
792
+ */
793
+ /// <reference lib="esnext.asynciterable" />
794
+ /** Class containing Accounts operations. */
795
+ class AccountsImpl {
796
+ /**
797
+ * Initialize a new instance of the class Accounts class.
798
+ * @param client Reference to the service client
799
+ */
800
+ constructor(client) {
801
+ this.client = client;
802
+ }
803
+ /**
804
+ * Lists all the available machine learning team accounts under the specified resource group.
805
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
806
+ * belongs.
807
+ * @param options The options parameters.
808
+ */
809
+ listByResourceGroup(resourceGroupName, options) {
810
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
811
+ return {
812
+ next() {
813
+ return iter.next();
814
+ },
815
+ [Symbol.asyncIterator]() {
816
+ return this;
817
+ },
818
+ byPage: () => {
819
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
820
+ }
821
+ };
822
+ }
823
+ listByResourceGroupPagingPage(resourceGroupName, options) {
824
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
825
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
826
+ yield yield tslib.__await(result.value || []);
827
+ let continuationToken = result.nextLink;
828
+ while (continuationToken) {
829
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
830
+ continuationToken = result.nextLink;
831
+ yield yield tslib.__await(result.value || []);
832
+ }
833
+ });
834
+ }
835
+ listByResourceGroupPagingAll(resourceGroupName, options) {
836
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
837
+ var e_1, _a;
838
+ try {
839
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
840
+ const page = _c.value;
841
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
842
+ }
843
+ }
844
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
845
+ finally {
846
+ try {
847
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
848
+ }
849
+ finally { if (e_1) throw e_1.error; }
850
+ }
851
+ });
852
+ }
853
+ /**
854
+ * Lists all the available machine learning team accounts under the specified subscription.
855
+ * @param options The options parameters.
856
+ */
857
+ list(options) {
858
+ const iter = this.listPagingAll(options);
859
+ return {
860
+ next() {
861
+ return iter.next();
862
+ },
863
+ [Symbol.asyncIterator]() {
864
+ return this;
865
+ },
866
+ byPage: () => {
867
+ return this.listPagingPage(options);
868
+ }
869
+ };
870
+ }
871
+ listPagingPage(options) {
872
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
873
+ let result = yield tslib.__await(this._list(options));
874
+ yield yield tslib.__await(result.value || []);
875
+ let continuationToken = result.nextLink;
876
+ while (continuationToken) {
877
+ result = yield tslib.__await(this._listNext(continuationToken, options));
878
+ continuationToken = result.nextLink;
879
+ yield yield tslib.__await(result.value || []);
880
+ }
881
+ });
882
+ }
883
+ listPagingAll(options) {
884
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
885
+ var e_2, _a;
886
+ try {
887
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
888
+ const page = _c.value;
889
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
890
+ }
891
+ }
892
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
893
+ finally {
894
+ try {
895
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
896
+ }
897
+ finally { if (e_2) throw e_2.error; }
898
+ }
899
+ });
900
+ }
901
+ /**
902
+ * Gets the properties of the specified machine learning team account.
903
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
904
+ * belongs.
905
+ * @param accountName The name of the machine learning team account.
906
+ * @param options The options parameters.
907
+ */
908
+ get(resourceGroupName, accountName, options) {
909
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
910
+ }
911
+ /**
912
+ * Creates or updates a team account with the specified parameters.
913
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
914
+ * belongs.
915
+ * @param accountName The name of the machine learning team account.
916
+ * @param parameters The parameters for creating or updating a machine learning team account.
917
+ * @param options The options parameters.
918
+ */
919
+ createOrUpdate(resourceGroupName, accountName, parameters, options) {
920
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, createOrUpdateOperationSpec);
921
+ }
922
+ /**
923
+ * Deletes a machine learning team account.
924
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
925
+ * belongs.
926
+ * @param accountName The name of the machine learning team account.
927
+ * @param options The options parameters.
928
+ */
929
+ delete(resourceGroupName, accountName, options) {
930
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
931
+ }
932
+ /**
933
+ * Updates a machine learning team account with the specified parameters.
934
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
935
+ * belongs.
936
+ * @param accountName The name of the machine learning team account.
937
+ * @param parameters The parameters for updating a machine learning team account.
938
+ * @param options The options parameters.
939
+ */
940
+ update(resourceGroupName, accountName, parameters, options) {
941
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
942
+ }
943
+ /**
944
+ * Lists all the available machine learning team accounts under the specified resource group.
945
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
946
+ * belongs.
947
+ * @param options The options parameters.
948
+ */
949
+ _listByResourceGroup(resourceGroupName, options) {
950
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
951
+ }
952
+ /**
953
+ * Lists all the available machine learning team accounts under the specified subscription.
954
+ * @param options The options parameters.
955
+ */
956
+ _list(options) {
957
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
958
+ }
959
+ /**
960
+ * ListByResourceGroupNext
961
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
962
+ * belongs.
963
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
964
+ * @param options The options parameters.
965
+ */
966
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
967
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
968
+ }
969
+ /**
970
+ * ListNext
971
+ * @param nextLink The nextLink from the previous successful call to the List method.
972
+ * @param options The options parameters.
973
+ */
974
+ _listNext(nextLink, options) {
975
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
976
+ }
977
+ }
978
+ // Operation Specifications
979
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
980
+ const getOperationSpec = {
981
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
982
+ httpMethod: "GET",
983
+ responses: {
984
+ 200: {
985
+ bodyMapper: Account
986
+ },
987
+ default: {
988
+ bodyMapper: ErrorResponse
989
+ }
990
+ },
991
+ queryParameters: [apiVersion],
992
+ urlParameters: [
993
+ $host,
994
+ subscriptionId,
995
+ resourceGroupName,
996
+ accountName
997
+ ],
998
+ headerParameters: [accept],
999
+ serializer: serializer$1
1000
+ };
1001
+ const createOrUpdateOperationSpec = {
1002
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1003
+ httpMethod: "PUT",
1004
+ responses: {
1005
+ 200: {
1006
+ bodyMapper: Account
1007
+ },
1008
+ 201: {
1009
+ bodyMapper: Account
1010
+ },
1011
+ default: {
1012
+ bodyMapper: ErrorResponse
1013
+ }
1014
+ },
1015
+ requestBody: parameters,
1016
+ queryParameters: [apiVersion],
1017
+ urlParameters: [
1018
+ $host,
1019
+ subscriptionId,
1020
+ resourceGroupName,
1021
+ accountName
1022
+ ],
1023
+ headerParameters: [accept, contentType],
1024
+ mediaType: "json",
1025
+ serializer: serializer$1
1026
+ };
1027
+ const deleteOperationSpec = {
1028
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1029
+ httpMethod: "DELETE",
1030
+ responses: {
1031
+ 200: {},
1032
+ 204: {},
1033
+ default: {
1034
+ bodyMapper: ErrorResponse
1035
+ }
1036
+ },
1037
+ queryParameters: [apiVersion],
1038
+ urlParameters: [
1039
+ $host,
1040
+ subscriptionId,
1041
+ resourceGroupName,
1042
+ accountName
1043
+ ],
1044
+ headerParameters: [accept],
1045
+ serializer: serializer$1
1046
+ };
1047
+ const updateOperationSpec = {
1048
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1049
+ httpMethod: "PATCH",
1050
+ responses: {
1051
+ 200: {
1052
+ bodyMapper: Account
1053
+ },
1054
+ default: {
1055
+ bodyMapper: ErrorResponse
1056
+ }
1057
+ },
1058
+ requestBody: parameters1,
1059
+ queryParameters: [apiVersion],
1060
+ urlParameters: [
1061
+ $host,
1062
+ subscriptionId,
1063
+ resourceGroupName,
1064
+ accountName
1065
+ ],
1066
+ headerParameters: [accept, contentType],
1067
+ mediaType: "json",
1068
+ serializer: serializer$1
1069
+ };
1070
+ const listByResourceGroupOperationSpec = {
1071
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts",
1072
+ httpMethod: "GET",
1073
+ responses: {
1074
+ 200: {
1075
+ bodyMapper: AccountListResult
1076
+ },
1077
+ default: {
1078
+ bodyMapper: ErrorResponse
1079
+ }
1080
+ },
1081
+ queryParameters: [apiVersion],
1082
+ urlParameters: [
1083
+ $host,
1084
+ subscriptionId,
1085
+ resourceGroupName
1086
+ ],
1087
+ headerParameters: [accept],
1088
+ serializer: serializer$1
1089
+ };
1090
+ const listOperationSpec$1 = {
1091
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningExperimentation/accounts",
1092
+ httpMethod: "GET",
1093
+ responses: {
1094
+ 200: {
1095
+ bodyMapper: AccountListResult
1096
+ },
1097
+ default: {
1098
+ bodyMapper: ErrorResponse
1099
+ }
1100
+ },
1101
+ queryParameters: [apiVersion],
1102
+ urlParameters: [$host, subscriptionId],
1103
+ headerParameters: [accept],
1104
+ serializer: serializer$1
1105
+ };
1106
+ const listByResourceGroupNextOperationSpec = {
1107
+ path: "{nextLink}",
1108
+ httpMethod: "GET",
1109
+ responses: {
1110
+ 200: {
1111
+ bodyMapper: AccountListResult
1112
+ },
1113
+ default: {
1114
+ bodyMapper: ErrorResponse
1115
+ }
1116
+ },
1117
+ queryParameters: [apiVersion],
1118
+ urlParameters: [
1119
+ $host,
1120
+ subscriptionId,
1121
+ resourceGroupName,
1122
+ nextLink
1123
+ ],
1124
+ headerParameters: [accept],
1125
+ serializer: serializer$1
1126
+ };
1127
+ const listNextOperationSpec = {
1128
+ path: "{nextLink}",
1129
+ httpMethod: "GET",
1130
+ responses: {
1131
+ 200: {
1132
+ bodyMapper: AccountListResult
1133
+ },
1134
+ default: {
1135
+ bodyMapper: ErrorResponse
1136
+ }
1137
+ },
1138
+ queryParameters: [apiVersion],
1139
+ urlParameters: [
1140
+ $host,
1141
+ subscriptionId,
1142
+ nextLink
1143
+ ],
1144
+ headerParameters: [accept],
1145
+ serializer: serializer$1
1146
+ };
1147
+
1148
+ /*
1149
+ * Copyright (c) Microsoft Corporation.
1150
+ * Licensed under the MIT License.
1151
+ *
1152
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1153
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1154
+ */
1155
+ /// <reference lib="esnext.asynciterable" />
1156
+ /** Class containing Workspaces operations. */
1157
+ class WorkspacesImpl {
1158
+ /**
1159
+ * Initialize a new instance of the class Workspaces class.
1160
+ * @param client Reference to the service client
1161
+ */
1162
+ constructor(client) {
1163
+ this.client = client;
1164
+ }
1165
+ /**
1166
+ * Lists all the available machine learning workspaces under the specified team account.
1167
+ * @param accountName The name of the machine learning team account.
1168
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1169
+ * belongs.
1170
+ * @param options The options parameters.
1171
+ */
1172
+ listByAccounts(accountName, resourceGroupName, options) {
1173
+ const iter = this.listByAccountsPagingAll(accountName, resourceGroupName, options);
1174
+ return {
1175
+ next() {
1176
+ return iter.next();
1177
+ },
1178
+ [Symbol.asyncIterator]() {
1179
+ return this;
1180
+ },
1181
+ byPage: () => {
1182
+ return this.listByAccountsPagingPage(accountName, resourceGroupName, options);
1183
+ }
1184
+ };
1185
+ }
1186
+ listByAccountsPagingPage(accountName, resourceGroupName, options) {
1187
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountsPagingPage_1() {
1188
+ let result = yield tslib.__await(this._listByAccounts(accountName, resourceGroupName, options));
1189
+ yield yield tslib.__await(result.value || []);
1190
+ let continuationToken = result.nextLink;
1191
+ while (continuationToken) {
1192
+ result = yield tslib.__await(this._listByAccountsNext(accountName, resourceGroupName, continuationToken, options));
1193
+ continuationToken = result.nextLink;
1194
+ yield yield tslib.__await(result.value || []);
1195
+ }
1196
+ });
1197
+ }
1198
+ listByAccountsPagingAll(accountName, resourceGroupName, options) {
1199
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountsPagingAll_1() {
1200
+ var e_1, _a;
1201
+ try {
1202
+ for (var _b = tslib.__asyncValues(this.listByAccountsPagingPage(accountName, resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1203
+ const page = _c.value;
1204
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1205
+ }
1206
+ }
1207
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1208
+ finally {
1209
+ try {
1210
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1211
+ }
1212
+ finally { if (e_1) throw e_1.error; }
1213
+ }
1214
+ });
1215
+ }
1216
+ /**
1217
+ * Gets the properties of the specified machine learning workspace.
1218
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1219
+ * belongs.
1220
+ * @param accountName The name of the machine learning team account.
1221
+ * @param workspaceName The name of the machine learning team account workspace.
1222
+ * @param options The options parameters.
1223
+ */
1224
+ get(resourceGroupName, accountName, workspaceName, options) {
1225
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, options }, getOperationSpec$1);
1226
+ }
1227
+ /**
1228
+ * Creates or updates a machine learning workspace with the specified parameters.
1229
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1230
+ * belongs.
1231
+ * @param accountName The name of the machine learning team account.
1232
+ * @param workspaceName The name of the machine learning team account workspace.
1233
+ * @param parameters The parameters for creating or updating a machine learning workspace.
1234
+ * @param options The options parameters.
1235
+ */
1236
+ createOrUpdate(resourceGroupName, accountName, workspaceName, parameters, options) {
1237
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
1238
+ }
1239
+ /**
1240
+ * Deletes a machine learning workspace.
1241
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1242
+ * belongs.
1243
+ * @param accountName The name of the machine learning team account.
1244
+ * @param workspaceName The name of the machine learning team account workspace.
1245
+ * @param options The options parameters.
1246
+ */
1247
+ delete(resourceGroupName, accountName, workspaceName, options) {
1248
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, options }, deleteOperationSpec$1);
1249
+ }
1250
+ /**
1251
+ * Updates a machine learning workspace with the specified parameters.
1252
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1253
+ * belongs.
1254
+ * @param accountName The name of the machine learning team account.
1255
+ * @param workspaceName The name of the machine learning team account workspace.
1256
+ * @param parameters The parameters for updating a machine learning workspace.
1257
+ * @param options The options parameters.
1258
+ */
1259
+ update(resourceGroupName, accountName, workspaceName, parameters, options) {
1260
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, parameters, options }, updateOperationSpec$1);
1261
+ }
1262
+ /**
1263
+ * Lists all the available machine learning workspaces under the specified team account.
1264
+ * @param accountName The name of the machine learning team account.
1265
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1266
+ * belongs.
1267
+ * @param options The options parameters.
1268
+ */
1269
+ _listByAccounts(accountName, resourceGroupName, options) {
1270
+ return this.client.sendOperationRequest({ accountName, resourceGroupName, options }, listByAccountsOperationSpec);
1271
+ }
1272
+ /**
1273
+ * ListByAccountsNext
1274
+ * @param accountName The name of the machine learning team account.
1275
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1276
+ * belongs.
1277
+ * @param nextLink The nextLink from the previous successful call to the ListByAccounts method.
1278
+ * @param options The options parameters.
1279
+ */
1280
+ _listByAccountsNext(accountName, resourceGroupName, nextLink, options) {
1281
+ return this.client.sendOperationRequest({ accountName, resourceGroupName, nextLink, options }, listByAccountsNextOperationSpec);
1282
+ }
1283
+ }
1284
+ // Operation Specifications
1285
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1286
+ const getOperationSpec$1 = {
1287
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
1288
+ httpMethod: "GET",
1289
+ responses: {
1290
+ 200: {
1291
+ bodyMapper: Workspace
1292
+ },
1293
+ default: {
1294
+ bodyMapper: ErrorResponse
1295
+ }
1296
+ },
1297
+ queryParameters: [apiVersion],
1298
+ urlParameters: [
1299
+ $host,
1300
+ subscriptionId,
1301
+ resourceGroupName,
1302
+ accountName,
1303
+ workspaceName
1304
+ ],
1305
+ headerParameters: [accept],
1306
+ serializer: serializer$2
1307
+ };
1308
+ const createOrUpdateOperationSpec$1 = {
1309
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
1310
+ httpMethod: "PUT",
1311
+ responses: {
1312
+ 200: {
1313
+ bodyMapper: Workspace
1314
+ },
1315
+ 201: {
1316
+ bodyMapper: Workspace
1317
+ },
1318
+ default: {
1319
+ bodyMapper: ErrorResponse
1320
+ }
1321
+ },
1322
+ requestBody: parameters2,
1323
+ queryParameters: [apiVersion],
1324
+ urlParameters: [
1325
+ $host,
1326
+ subscriptionId,
1327
+ resourceGroupName,
1328
+ accountName,
1329
+ workspaceName
1330
+ ],
1331
+ headerParameters: [accept, contentType],
1332
+ mediaType: "json",
1333
+ serializer: serializer$2
1334
+ };
1335
+ const deleteOperationSpec$1 = {
1336
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
1337
+ httpMethod: "DELETE",
1338
+ responses: {
1339
+ 200: {},
1340
+ 204: {},
1341
+ default: {
1342
+ bodyMapper: ErrorResponse
1343
+ }
1344
+ },
1345
+ queryParameters: [apiVersion],
1346
+ urlParameters: [
1347
+ $host,
1348
+ subscriptionId,
1349
+ resourceGroupName,
1350
+ accountName,
1351
+ workspaceName
1352
+ ],
1353
+ headerParameters: [accept],
1354
+ serializer: serializer$2
1355
+ };
1356
+ const updateOperationSpec$1 = {
1357
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
1358
+ httpMethod: "PATCH",
1359
+ responses: {
1360
+ 200: {
1361
+ bodyMapper: Workspace
1362
+ },
1363
+ default: {
1364
+ bodyMapper: ErrorResponse
1365
+ }
1366
+ },
1367
+ requestBody: parameters3,
1368
+ queryParameters: [apiVersion],
1369
+ urlParameters: [
1370
+ $host,
1371
+ subscriptionId,
1372
+ resourceGroupName,
1373
+ accountName,
1374
+ workspaceName
1375
+ ],
1376
+ headerParameters: [accept, contentType],
1377
+ mediaType: "json",
1378
+ serializer: serializer$2
1379
+ };
1380
+ const listByAccountsOperationSpec = {
1381
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces",
1382
+ httpMethod: "GET",
1383
+ responses: {
1384
+ 200: {
1385
+ bodyMapper: WorkspaceListResult
1386
+ },
1387
+ default: {
1388
+ bodyMapper: ErrorResponse
1389
+ }
1390
+ },
1391
+ queryParameters: [apiVersion],
1392
+ urlParameters: [
1393
+ $host,
1394
+ subscriptionId,
1395
+ resourceGroupName,
1396
+ accountName
1397
+ ],
1398
+ headerParameters: [accept],
1399
+ serializer: serializer$2
1400
+ };
1401
+ const listByAccountsNextOperationSpec = {
1402
+ path: "{nextLink}",
1403
+ httpMethod: "GET",
1404
+ responses: {
1405
+ 200: {
1406
+ bodyMapper: WorkspaceListResult
1407
+ },
1408
+ default: {
1409
+ bodyMapper: ErrorResponse
1410
+ }
1411
+ },
1412
+ queryParameters: [apiVersion],
1413
+ urlParameters: [
1414
+ $host,
1415
+ subscriptionId,
1416
+ resourceGroupName,
1417
+ accountName,
1418
+ nextLink
1419
+ ],
1420
+ headerParameters: [accept],
1421
+ serializer: serializer$2
1422
+ };
1423
+
1424
+ /*
1425
+ * Copyright (c) Microsoft Corporation.
1426
+ * Licensed under the MIT License.
1427
+ *
1428
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1429
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1430
+ */
1431
+ /// <reference lib="esnext.asynciterable" />
1432
+ /** Class containing Projects operations. */
1433
+ class ProjectsImpl {
1434
+ /**
1435
+ * Initialize a new instance of the class Projects class.
1436
+ * @param client Reference to the service client
1437
+ */
1438
+ constructor(client) {
1439
+ this.client = client;
1440
+ }
1441
+ /**
1442
+ * Lists all the available machine learning projects under the specified workspace.
1443
+ * @param accountName The name of the machine learning team account.
1444
+ * @param workspaceName The name of the machine learning team account workspace.
1445
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1446
+ * belongs.
1447
+ * @param options The options parameters.
1448
+ */
1449
+ listByWorkspace(accountName, workspaceName, resourceGroupName, options) {
1450
+ const iter = this.listByWorkspacePagingAll(accountName, workspaceName, resourceGroupName, options);
1451
+ return {
1452
+ next() {
1453
+ return iter.next();
1454
+ },
1455
+ [Symbol.asyncIterator]() {
1456
+ return this;
1457
+ },
1458
+ byPage: () => {
1459
+ return this.listByWorkspacePagingPage(accountName, workspaceName, resourceGroupName, options);
1460
+ }
1461
+ };
1462
+ }
1463
+ listByWorkspacePagingPage(accountName, workspaceName, resourceGroupName, options) {
1464
+ return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
1465
+ let result = yield tslib.__await(this._listByWorkspace(accountName, workspaceName, resourceGroupName, options));
1466
+ yield yield tslib.__await(result.value || []);
1467
+ let continuationToken = result.nextLink;
1468
+ while (continuationToken) {
1469
+ result = yield tslib.__await(this._listByWorkspaceNext(accountName, workspaceName, resourceGroupName, continuationToken, options));
1470
+ continuationToken = result.nextLink;
1471
+ yield yield tslib.__await(result.value || []);
1472
+ }
1473
+ });
1474
+ }
1475
+ listByWorkspacePagingAll(accountName, workspaceName, resourceGroupName, options) {
1476
+ return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
1477
+ var e_1, _a;
1478
+ try {
1479
+ for (var _b = tslib.__asyncValues(this.listByWorkspacePagingPage(accountName, workspaceName, resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1480
+ const page = _c.value;
1481
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1482
+ }
1483
+ }
1484
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1485
+ finally {
1486
+ try {
1487
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1488
+ }
1489
+ finally { if (e_1) throw e_1.error; }
1490
+ }
1491
+ });
1492
+ }
1493
+ /**
1494
+ * Gets the properties of the specified machine learning project.
1495
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1496
+ * belongs.
1497
+ * @param accountName The name of the machine learning team account.
1498
+ * @param workspaceName The name of the machine learning team account workspace.
1499
+ * @param projectName The name of the machine learning project under a team account workspace.
1500
+ * @param options The options parameters.
1501
+ */
1502
+ get(resourceGroupName, accountName, workspaceName, projectName, options) {
1503
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, getOperationSpec$2);
1504
+ }
1505
+ /**
1506
+ * Creates or updates a project with the specified parameters.
1507
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1508
+ * belongs.
1509
+ * @param accountName The name of the machine learning team account.
1510
+ * @param workspaceName The name of the machine learning team account workspace.
1511
+ * @param projectName The name of the machine learning project under a team account workspace.
1512
+ * @param parameters The parameters for creating or updating a project.
1513
+ * @param options The options parameters.
1514
+ */
1515
+ createOrUpdate(resourceGroupName, accountName, workspaceName, projectName, parameters, options) {
1516
+ return this.client.sendOperationRequest({
1517
+ resourceGroupName,
1518
+ accountName,
1519
+ workspaceName,
1520
+ projectName,
1521
+ parameters,
1522
+ options
1523
+ }, createOrUpdateOperationSpec$2);
1524
+ }
1525
+ /**
1526
+ * Deletes a project.
1527
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1528
+ * belongs.
1529
+ * @param accountName The name of the machine learning team account.
1530
+ * @param workspaceName The name of the machine learning team account workspace.
1531
+ * @param projectName The name of the machine learning project under a team account workspace.
1532
+ * @param options The options parameters.
1533
+ */
1534
+ delete(resourceGroupName, accountName, workspaceName, projectName, options) {
1535
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, deleteOperationSpec$2);
1536
+ }
1537
+ /**
1538
+ * Updates a project with the specified parameters.
1539
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1540
+ * belongs.
1541
+ * @param accountName The name of the machine learning team account.
1542
+ * @param workspaceName The name of the machine learning team account workspace.
1543
+ * @param projectName The name of the machine learning project under a team account workspace.
1544
+ * @param parameters The parameters for updating a machine learning team account.
1545
+ * @param options The options parameters.
1546
+ */
1547
+ update(resourceGroupName, accountName, workspaceName, projectName, parameters, options) {
1548
+ return this.client.sendOperationRequest({
1549
+ resourceGroupName,
1550
+ accountName,
1551
+ workspaceName,
1552
+ projectName,
1553
+ parameters,
1554
+ options
1555
+ }, updateOperationSpec$2);
1556
+ }
1557
+ /**
1558
+ * Lists all the available machine learning projects under the specified workspace.
1559
+ * @param accountName The name of the machine learning team account.
1560
+ * @param workspaceName The name of the machine learning team account workspace.
1561
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1562
+ * belongs.
1563
+ * @param options The options parameters.
1564
+ */
1565
+ _listByWorkspace(accountName, workspaceName, resourceGroupName, options) {
1566
+ return this.client.sendOperationRequest({ accountName, workspaceName, resourceGroupName, options }, listByWorkspaceOperationSpec);
1567
+ }
1568
+ /**
1569
+ * ListByWorkspaceNext
1570
+ * @param accountName The name of the machine learning team account.
1571
+ * @param workspaceName The name of the machine learning team account workspace.
1572
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
1573
+ * belongs.
1574
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
1575
+ * @param options The options parameters.
1576
+ */
1577
+ _listByWorkspaceNext(accountName, workspaceName, resourceGroupName, nextLink, options) {
1578
+ return this.client.sendOperationRequest({ accountName, workspaceName, resourceGroupName, nextLink, options }, listByWorkspaceNextOperationSpec);
1579
+ }
1580
+ }
1581
+ // Operation Specifications
1582
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
1583
+ const getOperationSpec$2 = {
1584
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1585
+ httpMethod: "GET",
1586
+ responses: {
1587
+ 200: {
1588
+ bodyMapper: Project
1589
+ },
1590
+ default: {
1591
+ bodyMapper: ErrorResponse
1592
+ }
1593
+ },
1594
+ queryParameters: [apiVersion],
1595
+ urlParameters: [
1596
+ $host,
1597
+ subscriptionId,
1598
+ resourceGroupName,
1599
+ accountName,
1600
+ workspaceName,
1601
+ projectName
1602
+ ],
1603
+ headerParameters: [accept],
1604
+ serializer: serializer$3
1605
+ };
1606
+ const createOrUpdateOperationSpec$2 = {
1607
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1608
+ httpMethod: "PUT",
1609
+ responses: {
1610
+ 200: {
1611
+ bodyMapper: Project
1612
+ },
1613
+ 201: {
1614
+ bodyMapper: Project
1615
+ },
1616
+ default: {
1617
+ bodyMapper: ErrorResponse
1618
+ }
1619
+ },
1620
+ requestBody: parameters4,
1621
+ queryParameters: [apiVersion],
1622
+ urlParameters: [
1623
+ $host,
1624
+ subscriptionId,
1625
+ resourceGroupName,
1626
+ accountName,
1627
+ workspaceName,
1628
+ projectName
1629
+ ],
1630
+ headerParameters: [accept, contentType],
1631
+ mediaType: "json",
1632
+ serializer: serializer$3
1633
+ };
1634
+ const deleteOperationSpec$2 = {
1635
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1636
+ httpMethod: "DELETE",
1637
+ responses: {
1638
+ 200: {},
1639
+ 204: {},
1640
+ default: {
1641
+ bodyMapper: ErrorResponse
1642
+ }
1643
+ },
1644
+ queryParameters: [apiVersion],
1645
+ urlParameters: [
1646
+ $host,
1647
+ subscriptionId,
1648
+ resourceGroupName,
1649
+ accountName,
1650
+ workspaceName,
1651
+ projectName
1652
+ ],
1653
+ headerParameters: [accept],
1654
+ serializer: serializer$3
1655
+ };
1656
+ const updateOperationSpec$2 = {
1657
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1658
+ httpMethod: "PATCH",
1659
+ responses: {
1660
+ 200: {
1661
+ bodyMapper: Project
1662
+ },
1663
+ default: {
1664
+ bodyMapper: ErrorResponse
1665
+ }
1666
+ },
1667
+ requestBody: parameters5,
1668
+ queryParameters: [apiVersion],
1669
+ urlParameters: [
1670
+ $host,
1671
+ subscriptionId,
1672
+ resourceGroupName,
1673
+ accountName,
1674
+ workspaceName,
1675
+ projectName
1676
+ ],
1677
+ headerParameters: [accept, contentType],
1678
+ mediaType: "json",
1679
+ serializer: serializer$3
1680
+ };
1681
+ const listByWorkspaceOperationSpec = {
1682
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects",
1683
+ httpMethod: "GET",
1684
+ responses: {
1685
+ 200: {
1686
+ bodyMapper: ProjectListResult
1687
+ },
1688
+ default: {
1689
+ bodyMapper: ErrorResponse
1690
+ }
1691
+ },
1692
+ queryParameters: [apiVersion],
1693
+ urlParameters: [
1694
+ $host,
1695
+ subscriptionId,
1696
+ resourceGroupName,
1697
+ accountName,
1698
+ workspaceName
1699
+ ],
1700
+ headerParameters: [accept],
1701
+ serializer: serializer$3
1702
+ };
1703
+ const listByWorkspaceNextOperationSpec = {
1704
+ path: "{nextLink}",
1705
+ httpMethod: "GET",
1706
+ responses: {
1707
+ 200: {
1708
+ bodyMapper: ProjectListResult
1709
+ },
1710
+ default: {
1711
+ bodyMapper: ErrorResponse
1712
+ }
1713
+ },
1714
+ queryParameters: [apiVersion],
1715
+ urlParameters: [
1716
+ $host,
1717
+ subscriptionId,
1718
+ resourceGroupName,
1719
+ accountName,
1720
+ nextLink,
1721
+ workspaceName
1722
+ ],
1723
+ headerParameters: [accept],
1724
+ serializer: serializer$3
1725
+ };
1726
+
1727
+ /*
1728
+ * Copyright (c) Microsoft Corporation.
1729
+ * Licensed under the MIT License.
1730
+ *
1731
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1732
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1733
+ */
1734
+ class MLTeamAccountManagementClient extends coreClient.ServiceClient {
1735
+ /**
1736
+ * Initializes a new instance of the MLTeamAccountManagementClient class.
1737
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1738
+ * @param subscriptionId The Microsoft Azure subscription ID.
1739
+ * @param options The parameter options
1740
+ */
1741
+ constructor(credentials, subscriptionId, options) {
1742
+ if (credentials === undefined) {
1743
+ throw new Error("'credentials' cannot be null");
1744
+ }
1745
+ if (subscriptionId === undefined) {
1746
+ throw new Error("'subscriptionId' cannot be null");
1747
+ }
1748
+ // Initializing default values for options
1749
+ if (!options) {
1750
+ options = {};
1751
+ }
1752
+ const defaults = {
1753
+ requestContentType: "application/json; charset=utf-8",
1754
+ credential: credentials
1755
+ };
1756
+ const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.1`;
1757
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1758
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1759
+ : `${packageDetails}`;
1760
+ if (!options.credentialScopes) {
1761
+ options.credentialScopes = ["https://management.azure.com/.default"];
1762
+ }
1763
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1764
+ userAgentPrefix
1765
+ }, baseUri: options.endpoint || "https://management.azure.com" });
1766
+ super(optionsWithDefaults);
1767
+ // Parameter assignments
1768
+ this.subscriptionId = subscriptionId;
1769
+ // Assigning values to Constant parameters
1770
+ this.$host = options.$host || "https://management.azure.com";
1771
+ this.apiVersion = options.apiVersion || "2017-05-01-preview";
1772
+ this.operations = new OperationsImpl(this);
1773
+ this.accounts = new AccountsImpl(this);
1774
+ this.workspaces = new WorkspacesImpl(this);
1775
+ this.projects = new ProjectsImpl(this);
1776
+ }
1777
+ }
1778
+
1779
+ exports.MLTeamAccountManagementClient = MLTeamAccountManagementClient;
1780
+ //# sourceMappingURL=index.js.map