@azure/arm-machinelearningcompute 3.0.0-beta.1 → 3.0.0-beta.3
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 +12 -1
- package/dist/index.js +247 -38
- 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/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/machineLearningComputeManagementClient.d.ts +2 -0
- package/dist-esm/src/machineLearningComputeManagementClient.d.ts.map +1 -1
- package/dist-esm/src/machineLearningComputeManagementClient.js +54 -5
- package/dist-esm/src/machineLearningComputeManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +67 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +65 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/operationalizationClusters.d.ts.map +1 -1
- package/dist-esm/src/operations/operationalizationClusters.js +46 -17
- package/dist-esm/src/operations/operationalizationClusters.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +38 -22
- package/review/arm-machinelearningcompute.api.md +12 -74
- package/rollup.config.js +6 -72
- package/src/index.ts +1 -0
- package/src/machineLearningComputeManagementClient.ts +70 -5
- package/src/models/index.ts +67 -2
- package/src/operations/operationalizationClusters.ts +55 -20
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +18 -5
- package/types/arm-machinelearningcompute.d.ts +78 -2
- 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.3 (2022-11-29)
|
|
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.3, 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
|
@@ -13,9 +13,11 @@ These APIs allow end users to operate on Azure Machine Learning Compute resource
|
|
|
13
13
|
|
|
14
14
|
### Currently supported environments
|
|
15
15
|
|
|
16
|
-
- [LTS versions of Node.js](https://
|
|
16
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
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
|
@@ -2,10 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var coreClient = require('@azure/core-client');
|
|
6
5
|
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
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
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
9
63
|
/*
|
|
10
64
|
* Copyright (c) Microsoft Corporation.
|
|
11
65
|
* Licensed under the MIT License.
|
|
@@ -13,83 +67,162 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
67
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
68
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
69
|
*/
|
|
70
|
+
/** Known values of {@link OperationStatus} that the service accepts. */
|
|
71
|
+
exports.KnownOperationStatus = void 0;
|
|
16
72
|
(function (KnownOperationStatus) {
|
|
73
|
+
/** Unknown */
|
|
17
74
|
KnownOperationStatus["Unknown"] = "Unknown";
|
|
75
|
+
/** Updating */
|
|
18
76
|
KnownOperationStatus["Updating"] = "Updating";
|
|
77
|
+
/** Creating */
|
|
19
78
|
KnownOperationStatus["Creating"] = "Creating";
|
|
79
|
+
/** Deleting */
|
|
20
80
|
KnownOperationStatus["Deleting"] = "Deleting";
|
|
81
|
+
/** Succeeded */
|
|
21
82
|
KnownOperationStatus["Succeeded"] = "Succeeded";
|
|
83
|
+
/** Failed */
|
|
22
84
|
KnownOperationStatus["Failed"] = "Failed";
|
|
85
|
+
/** Canceled */
|
|
23
86
|
KnownOperationStatus["Canceled"] = "Canceled";
|
|
24
87
|
})(exports.KnownOperationStatus || (exports.KnownOperationStatus = {}));
|
|
88
|
+
/** Known values of {@link ClusterType} that the service accepts. */
|
|
89
|
+
exports.KnownClusterType = void 0;
|
|
25
90
|
(function (KnownClusterType) {
|
|
91
|
+
/** ACS */
|
|
26
92
|
KnownClusterType["ACS"] = "ACS";
|
|
93
|
+
/** Local */
|
|
27
94
|
KnownClusterType["Local"] = "Local";
|
|
28
95
|
})(exports.KnownClusterType || (exports.KnownClusterType = {}));
|
|
96
|
+
/** Known values of {@link OrchestratorType} that the service accepts. */
|
|
97
|
+
exports.KnownOrchestratorType = void 0;
|
|
29
98
|
(function (KnownOrchestratorType) {
|
|
99
|
+
/** Kubernetes */
|
|
30
100
|
KnownOrchestratorType["Kubernetes"] = "Kubernetes";
|
|
101
|
+
/** None */
|
|
31
102
|
KnownOrchestratorType["None"] = "None";
|
|
32
103
|
})(exports.KnownOrchestratorType || (exports.KnownOrchestratorType = {}));
|
|
104
|
+
/** Known values of {@link SystemServiceType} that the service accepts. */
|
|
105
|
+
exports.KnownSystemServiceType = void 0;
|
|
33
106
|
(function (KnownSystemServiceType) {
|
|
107
|
+
/** None */
|
|
34
108
|
KnownSystemServiceType["None"] = "None";
|
|
109
|
+
/** ScoringFrontEnd */
|
|
35
110
|
KnownSystemServiceType["ScoringFrontEnd"] = "ScoringFrontEnd";
|
|
111
|
+
/** BatchFrontEnd */
|
|
36
112
|
KnownSystemServiceType["BatchFrontEnd"] = "BatchFrontEnd";
|
|
37
113
|
})(exports.KnownSystemServiceType || (exports.KnownSystemServiceType = {}));
|
|
114
|
+
/** Known values of {@link AgentVMSizeTypes} that the service accepts. */
|
|
115
|
+
exports.KnownAgentVMSizeTypes = void 0;
|
|
38
116
|
(function (KnownAgentVMSizeTypes) {
|
|
117
|
+
/** StandardA0 */
|
|
39
118
|
KnownAgentVMSizeTypes["StandardA0"] = "Standard_A0";
|
|
119
|
+
/** StandardA1 */
|
|
40
120
|
KnownAgentVMSizeTypes["StandardA1"] = "Standard_A1";
|
|
121
|
+
/** StandardA2 */
|
|
41
122
|
KnownAgentVMSizeTypes["StandardA2"] = "Standard_A2";
|
|
123
|
+
/** StandardA3 */
|
|
42
124
|
KnownAgentVMSizeTypes["StandardA3"] = "Standard_A3";
|
|
125
|
+
/** StandardA4 */
|
|
43
126
|
KnownAgentVMSizeTypes["StandardA4"] = "Standard_A4";
|
|
127
|
+
/** StandardA5 */
|
|
44
128
|
KnownAgentVMSizeTypes["StandardA5"] = "Standard_A5";
|
|
129
|
+
/** StandardA6 */
|
|
45
130
|
KnownAgentVMSizeTypes["StandardA6"] = "Standard_A6";
|
|
131
|
+
/** StandardA7 */
|
|
46
132
|
KnownAgentVMSizeTypes["StandardA7"] = "Standard_A7";
|
|
133
|
+
/** StandardA8 */
|
|
47
134
|
KnownAgentVMSizeTypes["StandardA8"] = "Standard_A8";
|
|
135
|
+
/** StandardA9 */
|
|
48
136
|
KnownAgentVMSizeTypes["StandardA9"] = "Standard_A9";
|
|
137
|
+
/** StandardA10 */
|
|
49
138
|
KnownAgentVMSizeTypes["StandardA10"] = "Standard_A10";
|
|
139
|
+
/** StandardA11 */
|
|
50
140
|
KnownAgentVMSizeTypes["StandardA11"] = "Standard_A11";
|
|
141
|
+
/** StandardD1 */
|
|
51
142
|
KnownAgentVMSizeTypes["StandardD1"] = "Standard_D1";
|
|
143
|
+
/** StandardD2 */
|
|
52
144
|
KnownAgentVMSizeTypes["StandardD2"] = "Standard_D2";
|
|
145
|
+
/** StandardD3 */
|
|
53
146
|
KnownAgentVMSizeTypes["StandardD3"] = "Standard_D3";
|
|
147
|
+
/** StandardD4 */
|
|
54
148
|
KnownAgentVMSizeTypes["StandardD4"] = "Standard_D4";
|
|
149
|
+
/** StandardD11 */
|
|
55
150
|
KnownAgentVMSizeTypes["StandardD11"] = "Standard_D11";
|
|
151
|
+
/** StandardD12 */
|
|
56
152
|
KnownAgentVMSizeTypes["StandardD12"] = "Standard_D12";
|
|
153
|
+
/** StandardD13 */
|
|
57
154
|
KnownAgentVMSizeTypes["StandardD13"] = "Standard_D13";
|
|
155
|
+
/** StandardD14 */
|
|
58
156
|
KnownAgentVMSizeTypes["StandardD14"] = "Standard_D14";
|
|
157
|
+
/** StandardD1V2 */
|
|
59
158
|
KnownAgentVMSizeTypes["StandardD1V2"] = "Standard_D1_v2";
|
|
159
|
+
/** StandardD2V2 */
|
|
60
160
|
KnownAgentVMSizeTypes["StandardD2V2"] = "Standard_D2_v2";
|
|
161
|
+
/** StandardD3V2 */
|
|
61
162
|
KnownAgentVMSizeTypes["StandardD3V2"] = "Standard_D3_v2";
|
|
163
|
+
/** StandardD4V2 */
|
|
62
164
|
KnownAgentVMSizeTypes["StandardD4V2"] = "Standard_D4_v2";
|
|
165
|
+
/** StandardD5V2 */
|
|
63
166
|
KnownAgentVMSizeTypes["StandardD5V2"] = "Standard_D5_v2";
|
|
167
|
+
/** StandardD11V2 */
|
|
64
168
|
KnownAgentVMSizeTypes["StandardD11V2"] = "Standard_D11_v2";
|
|
169
|
+
/** StandardD12V2 */
|
|
65
170
|
KnownAgentVMSizeTypes["StandardD12V2"] = "Standard_D12_v2";
|
|
171
|
+
/** StandardD13V2 */
|
|
66
172
|
KnownAgentVMSizeTypes["StandardD13V2"] = "Standard_D13_v2";
|
|
173
|
+
/** StandardD14V2 */
|
|
67
174
|
KnownAgentVMSizeTypes["StandardD14V2"] = "Standard_D14_v2";
|
|
175
|
+
/** StandardG1 */
|
|
68
176
|
KnownAgentVMSizeTypes["StandardG1"] = "Standard_G1";
|
|
177
|
+
/** StandardG2 */
|
|
69
178
|
KnownAgentVMSizeTypes["StandardG2"] = "Standard_G2";
|
|
179
|
+
/** StandardG3 */
|
|
70
180
|
KnownAgentVMSizeTypes["StandardG3"] = "Standard_G3";
|
|
181
|
+
/** StandardG4 */
|
|
71
182
|
KnownAgentVMSizeTypes["StandardG4"] = "Standard_G4";
|
|
183
|
+
/** StandardG5 */
|
|
72
184
|
KnownAgentVMSizeTypes["StandardG5"] = "Standard_G5";
|
|
185
|
+
/** StandardDS1 */
|
|
73
186
|
KnownAgentVMSizeTypes["StandardDS1"] = "Standard_DS1";
|
|
187
|
+
/** StandardDS2 */
|
|
74
188
|
KnownAgentVMSizeTypes["StandardDS2"] = "Standard_DS2";
|
|
189
|
+
/** StandardDS3 */
|
|
75
190
|
KnownAgentVMSizeTypes["StandardDS3"] = "Standard_DS3";
|
|
191
|
+
/** StandardDS4 */
|
|
76
192
|
KnownAgentVMSizeTypes["StandardDS4"] = "Standard_DS4";
|
|
193
|
+
/** StandardDS11 */
|
|
77
194
|
KnownAgentVMSizeTypes["StandardDS11"] = "Standard_DS11";
|
|
195
|
+
/** StandardDS12 */
|
|
78
196
|
KnownAgentVMSizeTypes["StandardDS12"] = "Standard_DS12";
|
|
197
|
+
/** StandardDS13 */
|
|
79
198
|
KnownAgentVMSizeTypes["StandardDS13"] = "Standard_DS13";
|
|
199
|
+
/** StandardDS14 */
|
|
80
200
|
KnownAgentVMSizeTypes["StandardDS14"] = "Standard_DS14";
|
|
201
|
+
/** StandardGS1 */
|
|
81
202
|
KnownAgentVMSizeTypes["StandardGS1"] = "Standard_GS1";
|
|
203
|
+
/** StandardGS2 */
|
|
82
204
|
KnownAgentVMSizeTypes["StandardGS2"] = "Standard_GS2";
|
|
205
|
+
/** StandardGS3 */
|
|
83
206
|
KnownAgentVMSizeTypes["StandardGS3"] = "Standard_GS3";
|
|
207
|
+
/** StandardGS4 */
|
|
84
208
|
KnownAgentVMSizeTypes["StandardGS4"] = "Standard_GS4";
|
|
209
|
+
/** StandardGS5 */
|
|
85
210
|
KnownAgentVMSizeTypes["StandardGS5"] = "Standard_GS5";
|
|
86
211
|
})(exports.KnownAgentVMSizeTypes || (exports.KnownAgentVMSizeTypes = {}));
|
|
212
|
+
/** Known values of {@link Status} that the service accepts. */
|
|
213
|
+
exports.KnownStatus = void 0;
|
|
87
214
|
(function (KnownStatus) {
|
|
215
|
+
/** Enabled */
|
|
88
216
|
KnownStatus["Enabled"] = "Enabled";
|
|
217
|
+
/** Disabled */
|
|
89
218
|
KnownStatus["Disabled"] = "Disabled";
|
|
90
219
|
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
220
|
+
/** Known values of {@link UpdatesAvailable} that the service accepts. */
|
|
221
|
+
exports.KnownUpdatesAvailable = void 0;
|
|
91
222
|
(function (KnownUpdatesAvailable) {
|
|
223
|
+
/** Yes */
|
|
92
224
|
KnownUpdatesAvailable["Yes"] = "Yes";
|
|
225
|
+
/** No */
|
|
93
226
|
KnownUpdatesAvailable["No"] = "No";
|
|
94
227
|
})(exports.KnownUpdatesAvailable || (exports.KnownUpdatesAvailable = {}));
|
|
95
228
|
|
|
@@ -1185,20 +1318,31 @@ class OperationalizationClustersImpl {
|
|
|
1185
1318
|
[Symbol.asyncIterator]() {
|
|
1186
1319
|
return this;
|
|
1187
1320
|
},
|
|
1188
|
-
byPage: () => {
|
|
1189
|
-
|
|
1321
|
+
byPage: (settings) => {
|
|
1322
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1323
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1324
|
+
}
|
|
1325
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1190
1326
|
}
|
|
1191
1327
|
};
|
|
1192
1328
|
}
|
|
1193
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1329
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1194
1330
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1195
|
-
let result
|
|
1196
|
-
|
|
1197
|
-
|
|
1331
|
+
let result;
|
|
1332
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1333
|
+
if (!continuationToken) {
|
|
1334
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1335
|
+
let page = result.value || [];
|
|
1336
|
+
continuationToken = result.nextLink;
|
|
1337
|
+
setContinuationToken(page, continuationToken);
|
|
1338
|
+
yield yield tslib.__await(page);
|
|
1339
|
+
}
|
|
1198
1340
|
while (continuationToken) {
|
|
1199
1341
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1200
1342
|
continuationToken = result.nextLink;
|
|
1201
|
-
|
|
1343
|
+
let page = result.value || [];
|
|
1344
|
+
setContinuationToken(page, continuationToken);
|
|
1345
|
+
yield yield tslib.__await(page);
|
|
1202
1346
|
}
|
|
1203
1347
|
});
|
|
1204
1348
|
}
|
|
@@ -1233,20 +1377,31 @@ class OperationalizationClustersImpl {
|
|
|
1233
1377
|
[Symbol.asyncIterator]() {
|
|
1234
1378
|
return this;
|
|
1235
1379
|
},
|
|
1236
|
-
byPage: () => {
|
|
1237
|
-
|
|
1380
|
+
byPage: (settings) => {
|
|
1381
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1382
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1383
|
+
}
|
|
1384
|
+
return this.listBySubscriptionIdPagingPage(options, settings);
|
|
1238
1385
|
}
|
|
1239
1386
|
};
|
|
1240
1387
|
}
|
|
1241
|
-
listBySubscriptionIdPagingPage(options) {
|
|
1388
|
+
listBySubscriptionIdPagingPage(options, settings) {
|
|
1242
1389
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
|
1243
|
-
let result
|
|
1244
|
-
|
|
1245
|
-
|
|
1390
|
+
let result;
|
|
1391
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1392
|
+
if (!continuationToken) {
|
|
1393
|
+
result = yield tslib.__await(this._listBySubscriptionId(options));
|
|
1394
|
+
let page = result.value || [];
|
|
1395
|
+
continuationToken = result.nextLink;
|
|
1396
|
+
setContinuationToken(page, continuationToken);
|
|
1397
|
+
yield yield tslib.__await(page);
|
|
1398
|
+
}
|
|
1246
1399
|
while (continuationToken) {
|
|
1247
1400
|
result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
|
|
1248
1401
|
continuationToken = result.nextLink;
|
|
1249
|
-
|
|
1402
|
+
let page = result.value || [];
|
|
1403
|
+
setContinuationToken(page, continuationToken);
|
|
1404
|
+
yield yield tslib.__await(page);
|
|
1250
1405
|
}
|
|
1251
1406
|
});
|
|
1252
1407
|
}
|
|
@@ -1300,10 +1455,12 @@ class OperationalizationClustersImpl {
|
|
|
1300
1455
|
};
|
|
1301
1456
|
});
|
|
1302
1457
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec);
|
|
1303
|
-
|
|
1458
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1304
1459
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1305
1460
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1306
1461
|
});
|
|
1462
|
+
yield poller.poll();
|
|
1463
|
+
return poller;
|
|
1307
1464
|
});
|
|
1308
1465
|
}
|
|
1309
1466
|
/**
|
|
@@ -1371,10 +1528,12 @@ class OperationalizationClustersImpl {
|
|
|
1371
1528
|
};
|
|
1372
1529
|
});
|
|
1373
1530
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
|
|
1374
|
-
|
|
1531
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1375
1532
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1376
1533
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1377
1534
|
});
|
|
1535
|
+
yield poller.poll();
|
|
1536
|
+
return poller;
|
|
1378
1537
|
});
|
|
1379
1538
|
}
|
|
1380
1539
|
/**
|
|
@@ -1439,10 +1598,12 @@ class OperationalizationClustersImpl {
|
|
|
1439
1598
|
};
|
|
1440
1599
|
});
|
|
1441
1600
|
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, updateSystemServicesOperationSpec);
|
|
1442
|
-
|
|
1601
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1443
1602
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1444
1603
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1445
1604
|
});
|
|
1605
|
+
yield poller.poll();
|
|
1606
|
+
return poller;
|
|
1446
1607
|
});
|
|
1447
1608
|
}
|
|
1448
1609
|
/**
|
|
@@ -1491,7 +1652,7 @@ class OperationalizationClustersImpl {
|
|
|
1491
1652
|
}
|
|
1492
1653
|
}
|
|
1493
1654
|
// Operation Specifications
|
|
1494
|
-
const serializer =
|
|
1655
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1495
1656
|
const createOrUpdateOperationSpec = {
|
|
1496
1657
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
1497
1658
|
httpMethod: "PUT",
|
|
@@ -1522,7 +1683,7 @@ const createOrUpdateOperationSpec = {
|
|
|
1522
1683
|
],
|
|
1523
1684
|
headerParameters: [contentType, accept],
|
|
1524
1685
|
mediaType: "json",
|
|
1525
|
-
serializer
|
|
1686
|
+
serializer: serializer$1
|
|
1526
1687
|
};
|
|
1527
1688
|
const getOperationSpec = {
|
|
1528
1689
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1543,7 +1704,7 @@ const getOperationSpec = {
|
|
|
1543
1704
|
clusterName
|
|
1544
1705
|
],
|
|
1545
1706
|
headerParameters: [accept],
|
|
1546
|
-
serializer
|
|
1707
|
+
serializer: serializer$1
|
|
1547
1708
|
};
|
|
1548
1709
|
const updateOperationSpec = {
|
|
1549
1710
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1566,7 +1727,7 @@ const updateOperationSpec = {
|
|
|
1566
1727
|
],
|
|
1567
1728
|
headerParameters: [contentType, accept],
|
|
1568
1729
|
mediaType: "json",
|
|
1569
|
-
serializer
|
|
1730
|
+
serializer: serializer$1
|
|
1570
1731
|
};
|
|
1571
1732
|
const deleteOperationSpec = {
|
|
1572
1733
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
|
|
@@ -1596,7 +1757,7 @@ const deleteOperationSpec = {
|
|
|
1596
1757
|
clusterName
|
|
1597
1758
|
],
|
|
1598
1759
|
headerParameters: [accept],
|
|
1599
|
-
serializer
|
|
1760
|
+
serializer: serializer$1
|
|
1600
1761
|
};
|
|
1601
1762
|
const listKeysOperationSpec = {
|
|
1602
1763
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
|
|
@@ -1614,7 +1775,7 @@ const listKeysOperationSpec = {
|
|
|
1614
1775
|
clusterName
|
|
1615
1776
|
],
|
|
1616
1777
|
headerParameters: [accept],
|
|
1617
|
-
serializer
|
|
1778
|
+
serializer: serializer$1
|
|
1618
1779
|
};
|
|
1619
1780
|
const checkSystemServicesUpdatesAvailableOperationSpec = {
|
|
1620
1781
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
|
|
@@ -1632,7 +1793,7 @@ const checkSystemServicesUpdatesAvailableOperationSpec = {
|
|
|
1632
1793
|
clusterName
|
|
1633
1794
|
],
|
|
1634
1795
|
headerParameters: [accept],
|
|
1635
|
-
serializer
|
|
1796
|
+
serializer: serializer$1
|
|
1636
1797
|
};
|
|
1637
1798
|
const updateSystemServicesOperationSpec = {
|
|
1638
1799
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
|
|
@@ -1659,7 +1820,7 @@ const updateSystemServicesOperationSpec = {
|
|
|
1659
1820
|
clusterName
|
|
1660
1821
|
],
|
|
1661
1822
|
headerParameters: [accept],
|
|
1662
|
-
serializer
|
|
1823
|
+
serializer: serializer$1
|
|
1663
1824
|
};
|
|
1664
1825
|
const listByResourceGroupOperationSpec = {
|
|
1665
1826
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
|
|
@@ -1676,7 +1837,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
1676
1837
|
resourceGroupName
|
|
1677
1838
|
],
|
|
1678
1839
|
headerParameters: [accept],
|
|
1679
|
-
serializer
|
|
1840
|
+
serializer: serializer$1
|
|
1680
1841
|
};
|
|
1681
1842
|
const listBySubscriptionIdOperationSpec = {
|
|
1682
1843
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
|
|
@@ -1689,7 +1850,7 @@ const listBySubscriptionIdOperationSpec = {
|
|
|
1689
1850
|
queryParameters: [apiVersion, skiptoken],
|
|
1690
1851
|
urlParameters: [$host, subscriptionId],
|
|
1691
1852
|
headerParameters: [accept],
|
|
1692
|
-
serializer
|
|
1853
|
+
serializer: serializer$1
|
|
1693
1854
|
};
|
|
1694
1855
|
const listByResourceGroupNextOperationSpec = {
|
|
1695
1856
|
path: "{nextLink}",
|
|
@@ -1707,7 +1868,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1707
1868
|
nextLink
|
|
1708
1869
|
],
|
|
1709
1870
|
headerParameters: [accept],
|
|
1710
|
-
serializer
|
|
1871
|
+
serializer: serializer$1
|
|
1711
1872
|
};
|
|
1712
1873
|
const listBySubscriptionIdNextOperationSpec = {
|
|
1713
1874
|
path: "{nextLink}",
|
|
@@ -1724,7 +1885,7 @@ const listBySubscriptionIdNextOperationSpec = {
|
|
|
1724
1885
|
nextLink
|
|
1725
1886
|
],
|
|
1726
1887
|
headerParameters: [accept],
|
|
1727
|
-
serializer
|
|
1888
|
+
serializer: serializer$1
|
|
1728
1889
|
};
|
|
1729
1890
|
|
|
1730
1891
|
/*
|
|
@@ -1752,7 +1913,7 @@ class MachineLearningComputeImpl {
|
|
|
1752
1913
|
}
|
|
1753
1914
|
}
|
|
1754
1915
|
// Operation Specifications
|
|
1755
|
-
const serializer
|
|
1916
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1756
1917
|
const listAvailableOperationsOperationSpec = {
|
|
1757
1918
|
path: "/providers/Microsoft.MachineLearningCompute/operations",
|
|
1758
1919
|
httpMethod: "GET",
|
|
@@ -1764,7 +1925,7 @@ const listAvailableOperationsOperationSpec = {
|
|
|
1764
1925
|
queryParameters: [apiVersion],
|
|
1765
1926
|
urlParameters: [$host],
|
|
1766
1927
|
headerParameters: [accept],
|
|
1767
|
-
serializer
|
|
1928
|
+
serializer
|
|
1768
1929
|
};
|
|
1769
1930
|
|
|
1770
1931
|
/*
|
|
@@ -1774,7 +1935,7 @@ const listAvailableOperationsOperationSpec = {
|
|
|
1774
1935
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1775
1936
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1776
1937
|
*/
|
|
1777
|
-
class MachineLearningComputeManagementClient extends
|
|
1938
|
+
class MachineLearningComputeManagementClient extends coreClient__namespace.ServiceClient {
|
|
1778
1939
|
/**
|
|
1779
1940
|
* Initializes a new instance of the MachineLearningComputeManagementClient class.
|
|
1780
1941
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1782,6 +1943,7 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1782
1943
|
* @param options The parameter options
|
|
1783
1944
|
*/
|
|
1784
1945
|
constructor(credentials, subscriptionId, options) {
|
|
1946
|
+
var _a, _b, _c;
|
|
1785
1947
|
if (credentials === undefined) {
|
|
1786
1948
|
throw new Error("'credentials' cannot be null");
|
|
1787
1949
|
}
|
|
@@ -1796,17 +1958,35 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1796
1958
|
requestContentType: "application/json; charset=utf-8",
|
|
1797
1959
|
credential: credentials
|
|
1798
1960
|
};
|
|
1799
|
-
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.
|
|
1961
|
+
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.3`;
|
|
1800
1962
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1801
1963
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1802
1964
|
: `${packageDetails}`;
|
|
1803
|
-
if (!options.credentialScopes) {
|
|
1804
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1805
|
-
}
|
|
1806
1965
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1807
1966
|
userAgentPrefix
|
|
1808
|
-
},
|
|
1967
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1809
1968
|
super(optionsWithDefaults);
|
|
1969
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
1970
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1971
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1972
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1973
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1974
|
+
}
|
|
1975
|
+
if (!options ||
|
|
1976
|
+
!options.pipeline ||
|
|
1977
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1978
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
1979
|
+
this.pipeline.removePolicy({
|
|
1980
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1981
|
+
});
|
|
1982
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1983
|
+
credential: credentials,
|
|
1984
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1985
|
+
challengeCallbacks: {
|
|
1986
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1987
|
+
}
|
|
1988
|
+
}));
|
|
1989
|
+
}
|
|
1810
1990
|
// Parameter assignments
|
|
1811
1991
|
this.subscriptionId = subscriptionId;
|
|
1812
1992
|
// Assigning values to Constant parameters
|
|
@@ -1814,8 +1994,37 @@ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
|
|
|
1814
1994
|
this.apiVersion = options.apiVersion || "2017-08-01-preview";
|
|
1815
1995
|
this.operationalizationClusters = new OperationalizationClustersImpl(this);
|
|
1816
1996
|
this.machineLearningCompute = new MachineLearningComputeImpl(this);
|
|
1997
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1998
|
+
}
|
|
1999
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2000
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
2001
|
+
if (!apiVersion) {
|
|
2002
|
+
return;
|
|
2003
|
+
}
|
|
2004
|
+
const apiVersionPolicy = {
|
|
2005
|
+
name: "CustomApiVersionPolicy",
|
|
2006
|
+
sendRequest(request, next) {
|
|
2007
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2008
|
+
const param = request.url.split("?");
|
|
2009
|
+
if (param.length > 1) {
|
|
2010
|
+
const newParams = param[1].split("&").map((item) => {
|
|
2011
|
+
if (item.indexOf("api-version") > -1) {
|
|
2012
|
+
return "api-version=" + apiVersion;
|
|
2013
|
+
}
|
|
2014
|
+
else {
|
|
2015
|
+
return item;
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
2019
|
+
}
|
|
2020
|
+
return next(request);
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1817
2025
|
}
|
|
1818
2026
|
}
|
|
1819
2027
|
|
|
1820
2028
|
exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient;
|
|
2029
|
+
exports.getContinuationToken = getContinuationToken;
|
|
1821
2030
|
//# sourceMappingURL=index.js.map
|