@azure/arm-machinelearningexperimentation 2.0.0-alpha.20220422.1 → 2.0.0-beta.2

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 (78) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +11 -0
  3. package/dist/index.js +87 -48
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +41 -0
  10. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  14. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  18. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
  22. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/accountsListSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/accountsListSample.js +43 -0
  26. package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
  27. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/accountsUpdateSample.js +35 -0
  30. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +39 -0
  34. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -0
  35. package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/projectsDeleteSample.js +33 -0
  38. package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
  39. package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/projectsGetSample.js +33 -0
  42. package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/projectsListByWorkspaceSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/projectsListByWorkspaceSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/projectsListByWorkspaceSample.js +46 -0
  46. package/dist-esm/samples-dev/projectsListByWorkspaceSample.js.map +1 -0
  47. package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/projectsUpdateSample.js +37 -0
  50. package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +37 -0
  54. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/workspacesDeleteSample.js +32 -0
  58. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/workspacesGetSample.js +32 -0
  62. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/workspacesListByAccountsSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/workspacesListByAccountsSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/workspacesListByAccountsSample.js +45 -0
  66. package/dist-esm/samples-dev/workspacesListByAccountsSample.js.map +1 -0
  67. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/workspacesUpdateSample.js +33 -0
  70. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  71. package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -1
  72. package/dist-esm/src/mLTeamAccountManagementClient.js +20 -2
  73. package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -1
  74. package/package.json +10 -10
  75. package/rollup.config.js +6 -72
  76. package/src/mLTeamAccountManagementClient.ts +27 -2
  77. package/tsconfig.json +18 -5
  78. package/LICENSE.txt +0 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAY;YAC1B,YAAY,EAAE,UAAU;YACxB,OAAO,EAAE,oBAAoB;YAC7B,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CACjD,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a project.
15
+ *
16
+ * @summary Deletes a project.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json
18
+ */
19
+ function accountCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const accountName = "myAccount";
24
+ const workspaceName = "testworkspace";
25
+ const projectName = "testProject";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
28
+ const result = yield client.projects.delete(resourceGroupName, accountName, workspaceName, projectName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ accountCreate().catch(console.error);
33
+ //# sourceMappingURL=projectsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the properties of the specified machine learning project.
15
+ *
16
+ * @summary Gets the properties of the specified machine learning project.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json
18
+ */
19
+ function getProject() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
22
+ const resourceGroupName = "accountcrud-1234";
23
+ const accountName = "accountcrud5678";
24
+ const workspaceName = "testworkspace";
25
+ const projectName = "testProject";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
28
+ const result = yield client.projects.get(resourceGroupName, accountName, workspaceName, projectName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ getProject().catch(console.error);
33
+ //# sourceMappingURL=projectsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGetSample.js","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,UAAU;;QACvB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CACtC,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsListByWorkspaceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListByWorkspaceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsListByWorkspaceSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all the available machine learning projects under the specified workspace.
15
+ *
16
+ * @summary Lists all the available machine learning projects under the specified workspace.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json
18
+ */
19
+ function projectListByWorkspaces() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
23
+ const accountName = "testaccount";
24
+ const workspaceName = "testworkspace";
25
+ const resourceGroupName = "testrg";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.projects.listByWorkspace(accountName, workspaceName, resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ projectListByWorkspaces().catch(console.error);
46
+ //# sourceMappingURL=projectsListByWorkspaceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListByWorkspaceSample.js","sourceRoot":"","sources":["../../samples-dev/projectsListByWorkspaceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,eAAe,CACpD,WAAW,EACX,aAAa,EACb,iBAAiB,CAClB,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates a project with the specified parameters.
15
+ *
16
+ * @summary Updates a project with the specified parameters.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json
18
+ */
19
+ function updateProject() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
22
+ const resourceGroupName = "accountcrud-1234";
23
+ const accountName = "accountcrud5678";
24
+ const workspaceName = "testworkspace";
25
+ const projectName = "testProject";
26
+ const parameters = {
27
+ friendlyName: "testName",
28
+ tags: { tagKey1: "TagValue1" }
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
32
+ const result = yield client.projects.update(resourceGroupName, accountName, workspaceName, projectName, parameters);
33
+ console.log(result);
34
+ });
35
+ }
36
+ updateProject().catch(console.error);
37
+ //# sourceMappingURL=projectsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAA4B;YAC1C,YAAY,EAAE,UAAU;YACxB,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates or updates a machine learning workspace with the specified parameters.
15
+ *
16
+ * @summary Creates or updates a machine learning workspace with the specified parameters.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json
18
+ */
19
+ function workspaceCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const accountName = "testaccount";
24
+ const workspaceName = "testworkspace";
25
+ const parameters = {
26
+ friendlyName: "testName",
27
+ location: "East US",
28
+ tags: { tagKey1: "TagValue1" }
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
32
+ const result = yield client.workspaces.createOrUpdate(resourceGroupName, accountName, workspaceName, parameters);
33
+ console.log(result);
34
+ });
35
+ }
36
+ workspaceCreate().catch(console.error);
37
+ //# sourceMappingURL=workspacesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/workspacesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAc;YAC5B,YAAY,EAAE,UAAU;YACxB,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,cAAc,CACnD,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a machine learning workspace.
15
+ *
16
+ * @summary Deletes a machine learning workspace.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json
18
+ */
19
+ function workspaceDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const accountName = "myAccount";
24
+ const workspaceName = "testworkspace";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.workspaces.delete(resourceGroupName, accountName, workspaceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ workspaceDelete().catch(console.error);
32
+ //# sourceMappingURL=workspacesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/workspacesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the properties of the specified machine learning workspace.
15
+ *
16
+ * @summary Gets the properties of the specified machine learning workspace.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json
18
+ */
19
+ function workspaceGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
22
+ const resourceGroupName = "accountcrud-1234";
23
+ const accountName = "accountcrud5678";
24
+ const workspaceName = "testworkspace";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.workspaces.get(resourceGroupName, accountName, workspaceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ workspaceGet().catch(console.error);
32
+ //# sourceMappingURL=workspacesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesGetSample.js","sourceRoot":"","sources":["../../samples-dev/workspacesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;QACzB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesListByAccountsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesListByAccountsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesListByAccountsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all the available machine learning workspaces under the specified team account.
15
+ *
16
+ * @summary Lists all the available machine learning workspaces under the specified team account.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json
18
+ */
19
+ function listWorkspacesByAccounts() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
23
+ const accountName = "testaccount";
24
+ const resourceGroupName = "accountcrud-1234";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.workspaces.listByAccounts(accountName, resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listWorkspacesByAccounts().catch(console.error);
45
+ //# sourceMappingURL=workspacesListByAccountsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesListByAccountsSample.js","sourceRoot":"","sources":["../../samples-dev/workspacesListByAccountsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,cAAc,CACrD,WAAW,EACX,iBAAiB,CAClB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspacesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspacesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates a machine learning workspace with the specified parameters.
15
+ *
16
+ * @summary Updates a machine learning workspace with the specified parameters.
17
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json
18
+ */
19
+ function workspaceUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
22
+ const resourceGroupName = "accountcrud-1234";
23
+ const accountName = "accountcrud5678";
24
+ const workspaceName = "testworkspace";
25
+ const parameters = { friendlyName: "testNameNew" };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
28
+ const result = yield client.workspaces.update(resourceGroupName, accountName, workspaceName, parameters);
29
+ console.log(result);
30
+ });
31
+ }
32
+ workspaceUpdate().catch(console.error);
33
+ //# sourceMappingURL=workspacesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/workspacesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB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AAE,2CAA2C;IAgDvD,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
1
+ {"version":3,"file":"mLTeamAccountManagementClient.d.ts","sourceRoot":"","sources":["../../src/mLTeamAccountManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAEvE,qBAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C;IAwEvD,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
9
10
  import { OperationsImpl, AccountsImpl, WorkspacesImpl, ProjectsImpl } from "./operations";
10
11
  export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
11
12
  /**
@@ -15,6 +16,7 @@ export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
15
16
  * @param options The parameter options
16
17
  */
17
18
  constructor(credentials, subscriptionId, options) {
19
+ var _a, _b;
18
20
  if (credentials === undefined) {
19
21
  throw new Error("'credentials' cannot be null");
20
22
  }
@@ -29,7 +31,7 @@ export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
29
31
  requestContentType: "application/json; charset=utf-8",
30
32
  credential: credentials
31
33
  };
32
- const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.1`;
34
+ const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.2`;
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
@@ -38,8 +40,24 @@ export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
38
40
  }
39
41
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
42
  userAgentPrefix
41
- }, baseUri: options.endpoint || "https://management.azure.com" });
43
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
44
  super(optionsWithDefaults);
45
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
46
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
49
+ if (!bearerTokenAuthenticationPolicyFound) {
50
+ this.pipeline.removePolicy({
51
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
52
+ });
53
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
54
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
55
+ challengeCallbacks: {
56
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
57
+ }
58
+ }));
59
+ }
60
+ }
43
61
  // Parameter assignments
44
62
  this.subscriptionId = subscriptionId;
45
63
  // Assigning values to Constant parameters
@@ -1 +1 @@
1
- {"version":3,"file":"mLTeamAccountManagementClient.js","sourceRoot":"","sources":["../../src/mLTeamAccountManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IAKzE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAqD;QAErD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAgD;YAC5D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,0DAA0D,CAAC;QAClF,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAA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B,CAAC,OAAO,WAAW;oBACjD,kBAAkB,EAAE;wBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;qBAC9C;iBACF,CAAC,CACH,CAAC;aACH;SACF;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CAMF"}
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MLTeamAccountManagementClient.",
6
- "version": "2.0.0-alpha.20220422.1",
6
+ "version": "2.0.0-beta.2",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/core-paging": "^1.2.0",
12
- "@azure/core-client": "^1.0.0",
12
+ "@azure/core-client": "^1.5.0",
13
13
  "@azure/core-auth": "^1.3.0",
14
- "@azure/core-rest-pipeline": "^1.1.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
15
15
  "tslib": "^2.2.0"
16
16
  },
17
17
  "keywords": [
@@ -27,13 +27,13 @@
27
27
  "types": "./types/arm-machinelearningexperimentation.d.ts",
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "7.18.11",
30
- "@rollup/plugin-commonjs": "11.0.2",
31
- "@rollup/plugin-json": "^4.0.0",
32
- "@rollup/plugin-multi-entry": "^3.0.0",
33
- "@rollup/plugin-node-resolve": "^8.0.0",
30
+ "@rollup/plugin-commonjs": "^21.0.1",
31
+ "@rollup/plugin-json": "^4.1.0",
32
+ "@rollup/plugin-multi-entry": "^4.1.0",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
34
34
  "mkdirp": "^1.0.4",
35
- "rollup": "^1.16.3",
36
- "rollup-plugin-sourcemaps": "^0.4.2",
35
+ "rollup": "^2.66.1",
36
+ "rollup-plugin-sourcemaps": "^0.6.3",
37
37
  "typescript": "~4.2.0",
38
38
  "uglify-js": "^3.4.9",
39
39
  "rimraf": "^3.0.0",
@@ -99,7 +99,7 @@
99
99
  "//metadata": {
100
100
  "constantPaths": [
101
101
  {
102
- "path": "src/MLTeamAccountManagementClient.ts",
102
+ "path": "src/mLTeamAccountManagementClient.ts",
103
103
  "prefix": "packageDetails"
104
104
  }
105
105
  ]