@azure/arm-machinelearningcompute 2.1.1 → 3.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 -83
- package/dist/index.js +1821 -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/checkUpdateForAnOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.js +31 -0
- package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/deleteOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/deleteOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteOperationalizationCluster.js +31 -0
- package/dist-esm/samples-dev/deleteOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/getOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/getOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/getOperationalizationCluster.js +31 -0
- package/dist-esm/samples-dev/getOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.js +31 -0
- package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.js +43 -0
- package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.d.ts +2 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.js +29 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.js.map +1 -0
- package/dist-esm/samples-dev/patchOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/patchOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchOperationalizationCluster.js +34 -0
- package/dist-esm/samples-dev/patchOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/putOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/putOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/putOperationalizationCluster.js +54 -0
- package/dist-esm/samples-dev/putOperationalizationCluster.js.map +1 -0
- package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.d.ts +2 -0
- package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.js +31 -0
- package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.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/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/machineLearningComputeManagementClient.d.ts +19 -0
- package/dist-esm/src/machineLearningComputeManagementClient.d.ts.map +1 -0
- package/dist-esm/src/machineLearningComputeManagementClient.js +52 -0
- package/dist-esm/src/machineLearningComputeManagementClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +637 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +101 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +32 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +347 -401
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +130 -0
- package/dist-esm/src/models/parameters.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 +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/machineLearningCompute.d.ts +18 -0
- package/dist-esm/src/operations/machineLearningCompute.d.ts.map +1 -0
- package/dist-esm/src/operations/machineLearningCompute.js +43 -0
- package/dist-esm/src/operations/machineLearningCompute.js.map +1 -0
- package/dist-esm/src/operations/operationalizationClusters.d.ts +130 -0
- package/dist-esm/src/operations/operationalizationClusters.d.ts.map +1 -0
- package/dist-esm/src/operations/operationalizationClusters.js +579 -0
- package/dist-esm/src/operations/operationalizationClusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/models/machineLearningComputeMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/machineLearningCompute.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/machineLearningCompute.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/machineLearningCompute.js} +2 -1
- package/dist-esm/src/operationsInterfaces/machineLearningCompute.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationalizationClusters.d.ts +94 -0
- package/dist-esm/src/operationsInterfaces/operationalizationClusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationalizationClusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationalizationClusters.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 +80 -33
- package/review/arm-machinelearningcompute.api.md +545 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/machineLearningComputeManagementClient.ts +68 -34
- package/src/models/index.ts +518 -800
- package/src/models/mappers.ts +357 -411
- package/src/models/parameters.ts +89 -45
- package/src/operations/index.ts +1 -2
- package/src/operations/machineLearningCompute.ts +29 -43
- package/src/operations/operationalizationClusters.ts +589 -461
- package/src/{models/machineLearningComputeMappers.ts → operationsInterfaces/index.ts} +2 -6
- package/src/operationsInterfaces/machineLearningCompute.ts +23 -0
- package/src/operationsInterfaces/operationalizationClusters.ts +189 -0
- package/tsconfig.json +5 -4
- package/types/arm-machinelearningcompute.d.ts +826 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-machinelearningcompute.js +0 -1764
- package/dist/arm-machinelearningcompute.js.map +0 -1
- package/dist/arm-machinelearningcompute.min.js +0 -1
- package/dist/arm-machinelearningcompute.min.js.map +0 -1
- package/esm/machineLearningComputeManagementClient.d.ts +0 -25
- package/esm/machineLearningComputeManagementClient.d.ts.map +0 -1
- package/esm/machineLearningComputeManagementClient.js +0 -38
- package/esm/machineLearningComputeManagementClient.js.map +0 -1
- package/esm/machineLearningComputeManagementClientContext.d.ts +0 -22
- package/esm/machineLearningComputeManagementClientContext.d.ts.map +0 -1
- package/esm/machineLearningComputeManagementClientContext.js +0 -60
- package/esm/machineLearningComputeManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -925
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/machineLearningComputeMappers.d.ts +0 -2
- package/esm/models/machineLearningComputeMappers.d.ts.map +0 -1
- package/esm/models/machineLearningComputeMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -34
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationalizationClustersMappers.d.ts +0 -2
- package/esm/models/operationalizationClustersMappers.d.ts.map +0 -1
- package/esm/models/operationalizationClustersMappers.js +0 -9
- package/esm/models/operationalizationClustersMappers.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 -104
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/machineLearningCompute.d.ts +0 -28
- package/esm/operations/machineLearningCompute.d.ts.map +0 -1
- package/esm/operations/machineLearningCompute.js +0 -50
- package/esm/operations/machineLearningCompute.js.map +0 -1
- package/esm/operations/operationalizationClusters.d.ts +0 -223
- package/esm/operations/operationalizationClusters.d.ts.map +0 -1
- package/esm/operations/operationalizationClusters.js +0 -441
- package/esm/operations/operationalizationClusters.js.map +0 -1
- package/src/machineLearningComputeManagementClientContext.ts +0 -67
- package/src/models/operationalizationClustersMappers.ts +0 -39
|
@@ -0,0 +1,31 @@
|
|
|
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 credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function listKeysOfAnOperationalizationCluster() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const clusterName = "myCluster";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
26
|
+
const result = yield client.operationalizationClusters.listKeys(resourceGroupName, clusterName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
listKeysOfAnOperationalizationCluster().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=listKeysOfAnOperationalizationCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listKeysOfAnOperationalizationCluster.js","sourceRoot":"","sources":["../../samples-dev/listKeysOfAnOperationalizationCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;QAClD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,QAAQ,CAC7D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOperationalizationClustersByResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/listOperationalizationClustersByResourceGroup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Gets the clusters in the specified resource group.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets the clusters in the specified resource group.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function listOperationalizationClustersByResourceGroup() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const resourceGroupName = "myResourceGroup";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
26
|
+
const resArray = new Array();
|
|
27
|
+
try {
|
|
28
|
+
for (var _b = __asyncValues(client.operationalizationClusters.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
29
|
+
let item = _c.value;
|
|
30
|
+
resArray.push(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
34
|
+
finally {
|
|
35
|
+
try {
|
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
37
|
+
}
|
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
|
39
|
+
}
|
|
40
|
+
console.log(resArray);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
listOperationalizationClustersByResourceGroup().catch(console.error);
|
|
44
|
+
//# sourceMappingURL=listOperationalizationClustersByResourceGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOperationalizationClustersByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/listOperationalizationClustersByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,mBAAmB,CAC1E,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOperationalizationClustersBySubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/listOperationalizationClustersBySubscription.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 Gets the operationalization clusters in the specified subscription.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets the operationalization clusters in the specified subscription.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function listOperationalizationClustersBySubscription() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.operationalizationClusters.listBySubscriptionId()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
listOperationalizationClustersBySubscription().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=listOperationalizationClustersBySubscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOperationalizationClustersBySubscription.js","sourceRoot":"","sources":["../../samples-dev/listOperationalizationClustersBySubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4CAA4C;;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,oBAAoB,EAAE,CAAA,IAAA;gBAApE,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machineLearningComputeListAvailableOperations.d.ts","sourceRoot":"","sources":["../../samples-dev/machineLearningComputeListAvailableOperations.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 all available operations.
|
|
13
|
+
*
|
|
14
|
+
* @summary Gets all available operations.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function machineLearningComputeListAvailableOperations() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const credential = new DefaultAzureCredential();
|
|
23
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
24
|
+
const result = yield client.machineLearningCompute.listAvailableOperations();
|
|
25
|
+
console.log(result);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
machineLearningComputeListAvailableOperations().catch(console.error);
|
|
29
|
+
//# sourceMappingURL=machineLearningComputeListAvailableOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machineLearningComputeListAvailableOperations.js","sourceRoot":"","sources":["../../samples-dev/machineLearningComputeListAvailableOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchOperationalizationCluster.d.ts","sourceRoot":"","sources":["../../samples-dev/patchOperationalizationCluster.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
|
|
13
|
+
*
|
|
14
|
+
* @summary The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function patchOperationalizationCluster() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const clusterName = "myCluster";
|
|
24
|
+
const parameters = {
|
|
25
|
+
tags: { key1: "value1" }
|
|
26
|
+
};
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
29
|
+
const result = yield client.operationalizationClusters.update(resourceGroupName, clusterName, parameters);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
patchOperationalizationCluster().catch(console.error);
|
|
34
|
+
//# sourceMappingURL=patchOperationalizationCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchOperationalizationCluster.js","sourceRoot":"","sources":["../../samples-dev/patchOperationalizationCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,sCAAsC,EACvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAA8C;YAC5D,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putOperationalizationCluster.d.ts","sourceRoot":"","sources":["../../samples-dev/putOperationalizationCluster.ts"],"names":[],"mappings":""}
|
|
@@ -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 { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
/**
|
|
12
|
+
* This sample demonstrates how to Create or update an operationalization cluster.
|
|
13
|
+
*
|
|
14
|
+
* @summary Create or update an operationalization cluster.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function putOperationalizationCluster() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const clusterName = "myCluster";
|
|
24
|
+
const parameters = {
|
|
25
|
+
description: "My Operationalization Cluster",
|
|
26
|
+
clusterType: "ACS",
|
|
27
|
+
containerService: {
|
|
28
|
+
orchestratorProperties: {
|
|
29
|
+
servicePrincipal: {
|
|
30
|
+
clientId: "abcdefghijklmnopqrt",
|
|
31
|
+
secret: "<secret>"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
orchestratorType: "Kubernetes"
|
|
35
|
+
},
|
|
36
|
+
globalServiceConfiguration: {
|
|
37
|
+
ssl: {
|
|
38
|
+
cert: "afjdklq2131casfakld=",
|
|
39
|
+
cname: "foo.bar.com",
|
|
40
|
+
key: "flksdafkldsajf=",
|
|
41
|
+
status: "Enabled"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
location: "West US",
|
|
45
|
+
tags: { key1: "alpha", key2: "beta" }
|
|
46
|
+
};
|
|
47
|
+
const credential = new DefaultAzureCredential();
|
|
48
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
49
|
+
const result = yield client.operationalizationClusters.beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters);
|
|
50
|
+
console.log(result);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
putOperationalizationCluster().catch(console.error);
|
|
54
|
+
//# sourceMappingURL=putOperationalizationCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putOperationalizationCluster.js","sourceRoot":"","sources":["../../samples-dev/putOperationalizationCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,sCAAsC,EACvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAA8B;YAC5C,WAAW,EAAE,+BAA+B;YAC5C,WAAW,EAAE,KAAK;YAClB,gBAAgB,EAAE;gBAChB,sBAAsB,EAAE;oBACtB,gBAAgB,EAAE;wBAChB,QAAQ,EAAE,qBAAqB;wBAC/B,MAAM,EAAE,UAAU;qBACnB;iBACF;gBACD,gBAAgB,EAAE,YAAY;aAC/B;YACD,0BAA0B,EAAE;gBAC1B,GAAG,EAAE;oBACH,IAAI,EAAE,sBAAsB;oBAC5B,KAAK,EAAE,aAAa;oBACpB,GAAG,EAAE,iBAAiB;oBACtB,MAAM,EAAE,SAAS;iBAClB;aACF;YACD,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAC/E,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateSystemServicesInAnOperationalizationCluster.d.ts","sourceRoot":"","sources":["../../samples-dev/updateSystemServicesInAnOperationalizationCluster.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 system services in a cluster.
|
|
13
|
+
*
|
|
14
|
+
* @summary Updates system services in a cluster.
|
|
15
|
+
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json
|
|
16
|
+
*/
|
|
17
|
+
import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
|
|
18
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
+
function updateSystemServicesInAnOperationalizationCluster() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const clusterName = "myCluster";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
26
|
+
const result = yield client.operationalizationClusters.beginUpdateSystemServicesAndWait(resourceGroupName, clusterName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
updateSystemServicesInAnOperationalizationCluster().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=updateSystemServicesInAnOperationalizationCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateSystemServicesInAnOperationalizationCluster.js","sourceRoot":"","sources":["../../samples-dev/updateSystemServicesInAnOperationalizationCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iDAAiD;;QAC9D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sCAAsC,CACvD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,gCAAgC,CACrF,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iDAAiD,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,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,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 { MachineLearningComputeManagementClient } from "./machineLearningComputeManagementClient";
|
|
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,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare class LroImpl<T> implements LongRunningOperation<T> {
|
|
3
|
+
private sendOperationFn;
|
|
4
|
+
private args;
|
|
5
|
+
private spec;
|
|
6
|
+
requestPath: string;
|
|
7
|
+
requestMethod: string;
|
|
8
|
+
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
9
|
+
readonly requestBody?: unknown;
|
|
10
|
+
readonly path?: string;
|
|
11
|
+
readonly httpMethod: string;
|
|
12
|
+
} & Record<string, any>, requestPath?: string, requestMethod?: string);
|
|
13
|
+
sendInitialRequest(): Promise<LroResponse<T>>;
|
|
14
|
+
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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, __rest } from "tslib";
|
|
9
|
+
export class LroImpl {
|
|
10
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
|
+
this.sendOperationFn = sendOperationFn;
|
|
12
|
+
this.args = args;
|
|
13
|
+
this.spec = spec;
|
|
14
|
+
this.requestPath = requestPath;
|
|
15
|
+
this.requestMethod = requestMethod;
|
|
16
|
+
}
|
|
17
|
+
sendInitialRequest() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
sendPollRequest(path) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { OperationalizationClusters, MachineLearningCompute } from "./operationsInterfaces";
|
|
4
|
+
import { MachineLearningComputeManagementClientOptionalParams } from "./models";
|
|
5
|
+
export declare class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the MachineLearningComputeManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The Azure subscription ID.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MachineLearningComputeManagementClientOptionalParams);
|
|
16
|
+
operationalizationClusters: OperationalizationClusters;
|
|
17
|
+
machineLearningCompute: MachineLearningCompute;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=machineLearningComputeManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machineLearningComputeManagementClient.d.ts","sourceRoot":"","sources":["../../src/machineLearningComputeManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAK7C,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oDAAoD,EAAE,MAAM,UAAU,CAAC;AAEhF,qBAAa,sCAAuC,SAAQ,UAAU,CAAC,aAAa;IAClF,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,oDAAoD;IA8ChE,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,sBAAsB,EAAE,sBAAsB,CAAC;CAChD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { OperationalizationClustersImpl, MachineLearningComputeImpl } from "./operations";
|
|
10
|
+
export class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes a new instance of the MachineLearningComputeManagementClient class.
|
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
+
* @param subscriptionId The 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-machinelearningcompute/3.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-08-01-preview";
|
|
48
|
+
this.operationalizationClusters = new OperationalizationClustersImpl(this);
|
|
49
|
+
this.machineLearningCompute = new MachineLearningComputeImpl(this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=machineLearningComputeManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machineLearningComputeManagementClient.js","sourceRoot":"","sources":["../../src/machineLearningComputeManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,cAAc,CAAC;AAOtB,MAAM,OAAO,sCAAuC,SAAQ,UAAU,CAAC,aAAa;IAKlF;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8D;QAE9D,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,GAAyD;YACrE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,kDAAkD,CAAC;QAC1E,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,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC;CAIF"}
|