@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1780 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/accountCreate.d.ts +2 -0
- package/dist-esm/samples-dev/accountCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountCreate.js +33 -0
- package/dist-esm/samples-dev/accountCreate.js.map +1 -0
- package/dist-esm/samples-dev/accountGet.d.ts +2 -0
- package/dist-esm/samples-dev/accountGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountGet.js +31 -0
- package/dist-esm/samples-dev/accountGet.js.map +1 -0
- package/dist-esm/samples-dev/accountUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/accountUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountUpdate.js +35 -0
- package/dist-esm/samples-dev/accountUpdate.js.map +1 -0
- package/dist-esm/samples-dev/createProject.d.ts +2 -0
- package/dist-esm/samples-dev/createProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/createProject.js +39 -0
- package/dist-esm/samples-dev/createProject.js.map +1 -0
- package/dist-esm/samples-dev/getProject.d.ts +2 -0
- package/dist-esm/samples-dev/getProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/getProject.js +33 -0
- package/dist-esm/samples-dev/getProject.js.map +1 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts +2 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts.map +1 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.js +45 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.js.map +1 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.d.ts +2 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.js +46 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.js.map +1 -0
- package/dist-esm/samples-dev/updateProject.d.ts +2 -0
- package/dist-esm/samples-dev/updateProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateProject.js +37 -0
- package/dist-esm/samples-dev/updateProject.js.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.js +37 -0
- package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.js +32 -0
- package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.js +32 -0
- package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.js +33 -0
- package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/mLTeamAccountManagementClient.d.ts +21 -0
- package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -0
- package/dist-esm/src/mLTeamAccountManagementClient.js +54 -0
- package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +329 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +17 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +273 -315
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +153 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +90 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +366 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/projects.d.ts +86 -0
- package/dist-esm/src/operations/projects.d.ts.map +1 -0
- package/dist-esm/src/operations/projects.js +307 -0
- package/dist-esm/src/operations/projects.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +79 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +280 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.js +9 -0
- package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +81 -34
- package/review/arm-machinelearningexperimentation.api.md +339 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/mLTeamAccountManagementClient.ts +78 -41
- package/src/models/index.ts +287 -707
- package/src/models/mappers.ts +263 -305
- package/src/models/parameters.ts +116 -43
- package/src/operations/accounts.ts +290 -330
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +66 -42
- package/src/operations/projects.ts +256 -281
- package/src/operations/workspaces.ts +242 -283
- package/src/operationsInterfaces/accounts.ts +96 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/projects.ts +108 -0
- package/src/operationsInterfaces/workspaces.ts +98 -0
- package/tsconfig.json +6 -5
- package/types/arm-machinelearningexperimentation.d.ts +569 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-machinelearningexperimentation.js +0 -1725
- package/dist/arm-machinelearningexperimentation.js.map +0 -1
- package/dist/arm-machinelearningexperimentation.min.js +0 -1
- package/dist/arm-machinelearningexperimentation.min.js.map +0 -1
- package/esm/mLTeamAccountManagementClient.d.ts +0 -27
- package/esm/mLTeamAccountManagementClient.d.ts.map +0 -1
- package/esm/mLTeamAccountManagementClient.js +0 -41
- package/esm/mLTeamAccountManagementClient.js.map +0 -1
- package/esm/mLTeamAccountManagementClientContext.d.ts +0 -22
- package/esm/mLTeamAccountManagementClientContext.d.ts.map +0 -1
- package/esm/mLTeamAccountManagementClientContext.js +0 -61
- package/esm/mLTeamAccountManagementClientContext.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -11
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -770
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -106
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/projectsMappers.d.ts +0 -2
- package/esm/models/projectsMappers.d.ts.map +0 -1
- package/esm/models/projectsMappers.js +0 -11
- package/esm/models/projectsMappers.js.map +0 -1
- package/esm/models/workspacesMappers.d.ts +0 -2
- package/esm/models/workspacesMappers.d.ts.map +0 -1
- package/esm/models/workspacesMappers.js +0 -11
- package/esm/models/workspacesMappers.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -187
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -272
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -184
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -239
- package/esm/operations/projects.js.map +0 -1
- package/esm/operations/workspaces.d.ts +0 -169
- package/esm/operations/workspaces.d.ts.map +0 -1
- package/esm/operations/workspaces.js +0 -229
- package/esm/operations/workspaces.js.map +0 -1
- package/src/mLTeamAccountManagementClientContext.ts +0 -68
- package/src/models/accountsMappers.ts +0 -22
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/projectsMappers.ts +0 -22
- package/src/models/workspacesMappers.ts +0 -22
|
@@ -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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all the available machine learning workspaces under the specified team account.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all the available machine learning workspaces under the specified team account.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=listWorkspacesByAccounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWorkspacesByAccounts.js","sourceRoot":"","sources":["../../samples-dev/listWorkspacesByAccounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"projectListByWorkspaces.d.ts","sourceRoot":"","sources":["../../samples-dev/projectListByWorkspaces.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Lists all the available machine learning projects under the specified workspace.
|
|
13
|
+
*
|
|
14
|
+
* @summary Lists all the available machine learning projects under the specified workspace.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=projectListByWorkspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectListByWorkspaces.js","sourceRoot":"","sources":["../../samples-dev/projectListByWorkspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"updateProject.d.ts","sourceRoot":"","sources":["../../samples-dev/updateProject.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Updates a project with the specified parameters.
|
|
13
|
+
*
|
|
14
|
+
* @summary Updates a project with the specified parameters.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=updateProject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateProject.js","sourceRoot":"","sources":["../../samples-dev/updateProject.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCreate.d.ts","sourceRoot":"","sources":["../../samples-dev/workspaceCreate.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Creates or updates a machine learning workspace with the specified parameters.
|
|
13
|
+
*
|
|
14
|
+
* @summary Creates or updates a machine learning workspace with the specified parameters.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=workspaceCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCreate.js","sourceRoot":"","sources":["../../samples-dev/workspaceCreate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/workspaceDelete.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Deletes a machine learning workspace.
|
|
13
|
+
*
|
|
14
|
+
* @summary Deletes a machine learning workspace.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=workspaceDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceDelete.js","sourceRoot":"","sources":["../../samples-dev/workspaceDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceGet.d.ts","sourceRoot":"","sources":["../../samples-dev/workspaceGet.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Gets the properties of the specified machine learning workspace.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets the properties of the specified machine learning workspace.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=workspaceGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceGet.js","sourceRoot":"","sources":["../../samples-dev/workspaceGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/workspaceUpdate.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
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Updates a machine learning workspace with the specified parameters.
|
|
13
|
+
*
|
|
14
|
+
* @summary Updates a machine learning workspace with the specified parameters.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json
|
|
16
|
+
*/
|
|
17
|
+
import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=workspaceUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceUpdate.js","sourceRoot":"","sources":["../../samples-dev/workspaceUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,eAAe;;QAC5B,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,GAA8B,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;QAC9E,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,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
9
|
+
export * from "./models";
|
|
10
|
+
export { MLTeamAccountManagementClient } from "./mLTeamAccountManagementClient";
|
|
11
|
+
export * from "./operationsInterfaces";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, Accounts, Workspaces, Projects } from "./operationsInterfaces";
|
|
4
|
+
import { MLTeamAccountManagementClientOptionalParams } from "./models";
|
|
5
|
+
export declare class MLTeamAccountManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the MLTeamAccountManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MLTeamAccountManagementClientOptionalParams);
|
|
16
|
+
operations: Operations;
|
|
17
|
+
accounts: Accounts;
|
|
18
|
+
workspaces: Workspaces;
|
|
19
|
+
projects: Projects;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=mLTeamAccountManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mLTeamAccountManagementClient.d.ts","sourceRoot":"","sources":["../../src/mLTeamAccountManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,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;IAgDvD,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
|
+
import { OperationsImpl, AccountsImpl, WorkspacesImpl, ProjectsImpl } from "./operations";
|
|
10
|
+
export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes a new instance of the MLTeamAccountManagementClient class.
|
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
+
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
15
|
+
* @param options The parameter options
|
|
16
|
+
*/
|
|
17
|
+
constructor(credentials, subscriptionId, options) {
|
|
18
|
+
if (credentials === undefined) {
|
|
19
|
+
throw new Error("'credentials' cannot be null");
|
|
20
|
+
}
|
|
21
|
+
if (subscriptionId === undefined) {
|
|
22
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
23
|
+
}
|
|
24
|
+
// Initializing default values for options
|
|
25
|
+
if (!options) {
|
|
26
|
+
options = {};
|
|
27
|
+
}
|
|
28
|
+
const defaults = {
|
|
29
|
+
requestContentType: "application/json; charset=utf-8",
|
|
30
|
+
credential: credentials
|
|
31
|
+
};
|
|
32
|
+
const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.1`;
|
|
33
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
|
+
: `${packageDetails}`;
|
|
36
|
+
if (!options.credentialScopes) {
|
|
37
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
38
|
+
}
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix
|
|
41
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
// Parameter assignments
|
|
44
|
+
this.subscriptionId = subscriptionId;
|
|
45
|
+
// Assigning values to Constant parameters
|
|
46
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
47
|
+
this.apiVersion = options.apiVersion || "2017-05-01-preview";
|
|
48
|
+
this.operations = new OperationsImpl(this);
|
|
49
|
+
this.accounts = new AccountsImpl(this);
|
|
50
|
+
this.workspaces = new WorkspacesImpl(this);
|
|
51
|
+
this.projects = new ProjectsImpl(this);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=mLTeamAccountManagementClient.js.map
|
|
@@ -0,0 +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,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,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"}
|