@azure/arm-machinelearningcompute 3.0.0-beta.1 → 3.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.
- package/CHANGELOG.md +2 -2
- package/README.md +11 -0
- package/dist/index.js +79 -20
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperationsSample.js +29 -0
- package/dist-esm/samples-dev/machineLearningComputeListAvailableOperationsSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersCheckSystemServicesUpdatesAvailableSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersCheckSystemServicesUpdatesAvailableSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersCheckSystemServicesUpdatesAvailableSample.js +31 -0
- package/dist-esm/samples-dev/operationalizationClustersCheckSystemServicesUpdatesAvailableSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersCreateOrUpdateSample.js +54 -0
- package/dist-esm/samples-dev/operationalizationClustersCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersDeleteSample.js +31 -0
- package/dist-esm/samples-dev/operationalizationClustersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersGetSample.js +31 -0
- package/dist-esm/samples-dev/operationalizationClustersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/operationalizationClustersListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListBySubscriptionIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersListBySubscriptionIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListBySubscriptionIdSample.js +43 -0
- package/dist-esm/samples-dev/operationalizationClustersListBySubscriptionIdSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersListKeysSample.js +31 -0
- package/dist-esm/samples-dev/operationalizationClustersListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSample.js +34 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSystemServicesSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSystemServicesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSystemServicesSample.js +31 -0
- package/dist-esm/samples-dev/operationalizationClustersUpdateSystemServicesSample.js.map +1 -0
- package/dist-esm/src/machineLearningComputeManagementClient.d.ts.map +1 -1
- package/dist-esm/src/machineLearningComputeManagementClient.js +20 -2
- package/dist-esm/src/machineLearningComputeManagementClient.js.map +1 -1
- package/dist-esm/src/operations/operationalizationClusters.d.ts.map +1 -1
- package/dist-esm/src/operations/operationalizationClusters.js +9 -3
- package/dist-esm/src/operations/operationalizationClusters.js.map +1 -1
- package/package.json +27 -15
- package/rollup.config.js +6 -72
- package/src/machineLearningComputeManagementClient.ts +27 -2
- package/src/operations/operationalizationClusters.ts +9 -3
- package/tsconfig.json +18 -5
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 3.0.0-beta.
|
|
3
|
+
## 3.0.0-beta.2 (2022-04-24)
|
|
4
4
|
|
|
5
|
-
The package of @azure/arm-machinelearningcompute is using our next generation design principles since version 3.0.0-beta.
|
|
5
|
+
The package of @azure/arm-machinelearningcompute is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.
|
|
6
6
|
|
|
7
7
|
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
8
8
|
|
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ These APIs allow end users to operate on Azure Machine Learning Compute resource
|
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
19
21
|
### Prerequisites
|
|
20
22
|
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
49
51
|
```javascript
|
|
50
52
|
const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
|
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
|
+
|
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
57
|
const client = new MachineLearningComputeManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
|
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
+
// });
|
|
64
|
+
// const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
9
31
|
/*
|
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
|
11
33
|
* Licensed under the MIT License.
|
|
@@ -13,6 +35,8 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
37
|
*/
|
|
38
|
+
/** Known values of {@link OperationStatus} that the service accepts. */
|
|
39
|
+
exports.KnownOperationStatus = void 0;
|
|
16
40
|
(function (KnownOperationStatus) {
|
|
17
41
|
KnownOperationStatus["Unknown"] = "Unknown";
|
|
18
42
|
KnownOperationStatus["Updating"] = "Updating";
|
|
@@ -22,19 +46,27 @@ var coreLro = require('@azure/core-lro');
|
|
|
22
46
|
KnownOperationStatus["Failed"] = "Failed";
|
|
23
47
|
KnownOperationStatus["Canceled"] = "Canceled";
|
|
24
48
|
})(exports.KnownOperationStatus || (exports.KnownOperationStatus = {}));
|
|
49
|
+
/** Known values of {@link ClusterType} that the service accepts. */
|
|
50
|
+
exports.KnownClusterType = void 0;
|
|
25
51
|
(function (KnownClusterType) {
|
|
26
52
|
KnownClusterType["ACS"] = "ACS";
|
|
27
53
|
KnownClusterType["Local"] = "Local";
|
|
28
54
|
})(exports.KnownClusterType || (exports.KnownClusterType = {}));
|
|
55
|
+
/** Known values of {@link OrchestratorType} that the service accepts. */
|
|
56
|
+
exports.KnownOrchestratorType = void 0;
|
|
29
57
|
(function (KnownOrchestratorType) {
|
|
30
58
|
KnownOrchestratorType["Kubernetes"] = "Kubernetes";
|
|
31
59
|
KnownOrchestratorType["None"] = "None";
|
|
32
60
|
})(exports.KnownOrchestratorType || (exports.KnownOrchestratorType = {}));
|
|
61
|
+
/** Known values of {@link SystemServiceType} that the service accepts. */
|
|
62
|
+
exports.KnownSystemServiceType = void 0;
|
|
33
63
|
(function (KnownSystemServiceType) {
|
|
34
64
|
KnownSystemServiceType["None"] = "None";
|
|
35
65
|
KnownSystemServiceType["ScoringFrontEnd"] = "ScoringFrontEnd";
|
|
36
66
|
KnownSystemServiceType["BatchFrontEnd"] = "BatchFrontEnd";
|
|
37
67
|
})(exports.KnownSystemServiceType || (exports.KnownSystemServiceType = {}));
|
|
68
|
+
/** Known values of {@link AgentVMSizeTypes} that the service accepts. */
|
|
69
|
+
exports.KnownAgentVMSizeTypes = void 0;
|
|
38
70
|
(function (KnownAgentVMSizeTypes) {
|
|
39
71
|
KnownAgentVMSizeTypes["StandardA0"] = "Standard_A0";
|
|
40
72
|
KnownAgentVMSizeTypes["StandardA1"] = "Standard_A1";
|
|
@@ -84,10 +116,14 @@ var coreLro = require('@azure/core-lro');
|
|
|
84
116
|
KnownAgentVMSizeTypes["StandardGS4"] = "Standard_GS4";
|
|
85
117
|
KnownAgentVMSizeTypes["StandardGS5"] = "Standard_GS5";
|
|
86
118
|
})(exports.KnownAgentVMSizeTypes || (exports.KnownAgentVMSizeTypes = {}));
|
|
119
|
+
/** Known values of {@link Status} that the service accepts. */
|
|
120
|
+
exports.KnownStatus = void 0;
|
|
87
121
|
(function (KnownStatus) {
|
|
88
122
|
KnownStatus["Enabled"] = "Enabled";
|
|
89
123
|
KnownStatus["Disabled"] = "Disabled";
|
|
90
124
|
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
125
|
+
/** Known values of {@link UpdatesAvailable} that the service accepts. */
|
|
126
|
+
exports.KnownUpdatesAvailable = void 0;
|
|
91
127
|
(function (KnownUpdatesAvailable) {
|
|
92
128
|
KnownUpdatesAvailable["Yes"] = "Yes";
|
|
93
129
|
KnownUpdatesAvailable["No"] = "No";
|
|
@@ -1300,10 +1336,12 @@ class OperationalizationClustersImpl {
|
|
|
1300
1336
|
};
|
|
1301
1337
|
});
|
|
1302
1338
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec);
|
|
1303
|
-
|
|
1339
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1304
1340
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1305
1341
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1306
1342
|
});
|
|
1343
|
+
yield poller.poll();
|
|
1344
|
+
return poller;
|
|
1307
1345
|
});
|
|
1308
1346
|
}
|
|
1309
1347
|
/**
|
|
@@ -1371,10 +1409,12 @@ class OperationalizationClustersImpl {
|
|
|
1371
1409
|
};
|
|
1372
1410
|
});
|
|
1373
1411
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
|
|
1374
|
-
|
|
1412
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1375
1413
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1376
1414
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1377
1415
|
});
|
|
1416
|
+
yield poller.poll();
|
|
1417
|
+
return poller;
|
|
1378
1418
|
});
|
|
1379
1419
|
}
|
|
1380
1420
|
/**
|
|
@@ -1439,10 +1479,12 @@ class OperationalizationClustersImpl {
|
|
|
1439
1479
|
};
|
|
1440
1480
|
});
|
|
1441
1481
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, updateSystemServicesOperationSpec);
|
|
1442
|
-
|
|
1482
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1443
1483
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1444
1484
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1445
1485
|
});
|
|
1486
|
+
yield poller.poll();
|
|
1487
|
+
return poller;
|
|
1446
1488
|
});
|
|
1447
1489
|
}
|
|
1448
1490
|
/**
|
|
@@ -1491,7 +1533,7 @@ class OperationalizationClustersImpl {
|
|
|
1491
1533
|
}
|
|
1492
1534
|
}
|
|
1493
1535
|
// Operation Specifications
|
|
1494
|
-
const serializer =
|
|
1536
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1495
1537
|
const createOrUpdateOperationSpec = {
|
|
1496
1538
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
1497
1539
|
httpMethod: "PUT",
|
|
@@ -1522,7 +1564,7 @@ const createOrUpdateOperationSpec = {
|
|
|
1522
1564
|
],
|
|
1523
1565
|
headerParameters: [contentType, accept],
|
|
1524
1566
|
mediaType: "json",
|
|
1525
|
-
serializer
|
|
1567
|
+
serializer: serializer$1
|
|
1526
1568
|
};
|
|
1527
1569
|
const getOperationSpec = {
|
|
1528
1570
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1543,7 +1585,7 @@ const getOperationSpec = {
|
|
|
1543
1585
|
clusterName
|
|
1544
1586
|
],
|
|
1545
1587
|
headerParameters: [accept],
|
|
1546
|
-
serializer
|
|
1588
|
+
serializer: serializer$1
|
|
1547
1589
|
};
|
|
1548
1590
|
const updateOperationSpec = {
|
|
1549
1591
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1566,7 +1608,7 @@ const updateOperationSpec = {
|
|
|
1566
1608
|
],
|
|
1567
1609
|
headerParameters: [contentType, accept],
|
|
1568
1610
|
mediaType: "json",
|
|
1569
|
-
serializer
|
|
1611
|
+
serializer: serializer$1
|
|
1570
1612
|
};
|
|
1571
1613
|
const deleteOperationSpec = {
|
|
1572
1614
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1596,7 +1638,7 @@ const deleteOperationSpec = {
|
|
|
1596
1638
|
clusterName
|
|
1597
1639
|
],
|
|
1598
1640
|
headerParameters: [accept],
|
|
1599
|
-
serializer
|
|
1641
|
+
serializer: serializer$1
|
|
1600
1642
|
};
|
|
1601
1643
|
const listKeysOperationSpec = {
|
|
1602
1644
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
|
|
@@ -1614,7 +1656,7 @@ const listKeysOperationSpec = {
|
|
|
1614
1656
|
clusterName
|
|
1615
1657
|
],
|
|
1616
1658
|
headerParameters: [accept],
|
|
1617
|
-
serializer
|
|
1659
|
+
serializer: serializer$1
|
|
1618
1660
|
};
|
|
1619
1661
|
const checkSystemServicesUpdatesAvailableOperationSpec = {
|
|
1620
1662
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
|
|
@@ -1632,7 +1674,7 @@ const checkSystemServicesUpdatesAvailableOperationSpec = {
|
|
|
1632
1674
|
clusterName
|
|
1633
1675
|
],
|
|
1634
1676
|
headerParameters: [accept],
|
|
1635
|
-
serializer
|
|
1677
|
+
serializer: serializer$1
|
|
1636
1678
|
};
|
|
1637
1679
|
const updateSystemServicesOperationSpec = {
|
|
1638
1680
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
|
|
@@ -1659,7 +1701,7 @@ const updateSystemServicesOperationSpec = {
|
|
|
1659
1701
|
clusterName
|
|
1660
1702
|
],
|
|
1661
1703
|
headerParameters: [accept],
|
|
1662
|
-
serializer
|
|
1704
|
+
serializer: serializer$1
|
|
1663
1705
|
};
|
|
1664
1706
|
const listByResourceGroupOperationSpec = {
|
|
1665
1707
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
|
|
@@ -1676,7 +1718,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
1676
1718
|
resourceGroupName
|
|
1677
1719
|
],
|
|
1678
1720
|
headerParameters: [accept],
|
|
1679
|
-
serializer
|
|
1721
|
+
serializer: serializer$1
|
|
1680
1722
|
};
|
|
1681
1723
|
const listBySubscriptionIdOperationSpec = {
|
|
1682
1724
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
|
|
@@ -1689,7 +1731,7 @@ const listBySubscriptionIdOperationSpec = {
|
|
|
1689
1731
|
queryParameters: [apiVersion, skiptoken],
|
|
1690
1732
|
urlParameters: [$host, subscriptionId],
|
|
1691
1733
|
headerParameters: [accept],
|
|
1692
|
-
serializer
|
|
1734
|
+
serializer: serializer$1
|
|
1693
1735
|
};
|
|
1694
1736
|
const listByResourceGroupNextOperationSpec = {
|
|
1695
1737
|
path: "{nextLink}",
|
|
@@ -1707,7 +1749,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1707
1749
|
nextLink
|
|
1708
1750
|
],
|
|
1709
1751
|
headerParameters: [accept],
|
|
1710
|
-
serializer
|
|
1752
|
+
serializer: serializer$1
|
|
1711
1753
|
};
|
|
1712
1754
|
const listBySubscriptionIdNextOperationSpec = {
|
|
1713
1755
|
path: "{nextLink}",
|
|
@@ -1724,7 +1766,7 @@ const listBySubscriptionIdNextOperationSpec = {
|
|
|
1724
1766
|
nextLink
|
|
1725
1767
|
],
|
|
1726
1768
|
headerParameters: [accept],
|
|
1727
|
-
serializer
|
|
1769
|
+
serializer: serializer$1
|
|
1728
1770
|
};
|
|
1729
1771
|
|
|
1730
1772
|
/*
|
|
@@ -1752,7 +1794,7 @@ class MachineLearningComputeImpl {
|
|
|
1752
1794
|
}
|
|
1753
1795
|
}
|
|
1754
1796
|
// Operation Specifications
|
|
1755
|
-
const serializer
|
|
1797
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1756
1798
|
const listAvailableOperationsOperationSpec = {
|
|
1757
1799
|
path: "/providers/Microsoft.MachineLearningCompute/operations",
|
|
1758
1800
|
httpMethod: "GET",
|
|
@@ -1764,7 +1806,7 @@ const listAvailableOperationsOperationSpec = {
|
|
|
1764
1806
|
queryParameters: [apiVersion],
|
|
1765
1807
|
urlParameters: [$host],
|
|
1766
1808
|
headerParameters: [accept],
|
|
1767
|
-
serializer
|
|
1809
|
+
serializer
|
|
1768
1810
|
};
|
|
1769
1811
|
|
|
1770
1812
|
/*
|
|
@@ -1774,7 +1816,7 @@ const listAvailableOperationsOperationSpec = {
|
|
|
1774
1816
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1775
1817
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1776
1818
|
*/
|
|
1777
|
-
class MachineLearningComputeManagementClient extends
|
|
1819
|
+
class MachineLearningComputeManagementClient extends coreClient__namespace.ServiceClient {
|
|
1778
1820
|
/**
|
|
1779
1821
|
* Initializes a new instance of the MachineLearningComputeManagementClient class.
|
|
1780
1822
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1782,6 +1824,7 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1782
1824
|
* @param options The parameter options
|
|
1783
1825
|
*/
|
|
1784
1826
|
constructor(credentials, subscriptionId, options) {
|
|
1827
|
+
var _a, _b;
|
|
1785
1828
|
if (credentials === undefined) {
|
|
1786
1829
|
throw new Error("'credentials' cannot be null");
|
|
1787
1830
|
}
|
|
@@ -1796,7 +1839,7 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1796
1839
|
requestContentType: "application/json; charset=utf-8",
|
|
1797
1840
|
credential: credentials
|
|
1798
1841
|
};
|
|
1799
|
-
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.
|
|
1842
|
+
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.2`;
|
|
1800
1843
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1801
1844
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1802
1845
|
: `${packageDetails}`;
|
|
@@ -1805,8 +1848,24 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1805
1848
|
}
|
|
1806
1849
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1807
1850
|
userAgentPrefix
|
|
1808
|
-
}, baseUri: options.endpoint
|
|
1851
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1809
1852
|
super(optionsWithDefaults);
|
|
1853
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1854
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1855
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1856
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1857
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
1858
|
+
this.pipeline.removePolicy({
|
|
1859
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1860
|
+
});
|
|
1861
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1862
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
1863
|
+
challengeCallbacks: {
|
|
1864
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1865
|
+
}
|
|
1866
|
+
}));
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1810
1869
|
// Parameter assignments
|
|
1811
1870
|
this.subscriptionId = subscriptionId;
|
|
1812
1871
|
// Assigning values to Constant parameters
|