@azure/arm-machinelearningcompute 3.0.0-beta.2 → 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 +1 -1
- package/dist/index.js +183 -33
- 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/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 +49 -18
- 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 +37 -14
- 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 +15 -11
- package/review/arm-machinelearningcompute.api.md +12 -74
- package/src/index.ts +1 -0
- package/src/machineLearningComputeManagementClient.ts +60 -20
- package/src/models/index.ts +67 -2
- package/src/operations/operationalizationClusters.ts +46 -17
- package/src/pagingHelper.ts +39 -0
- package/types/arm-machinelearningcompute.d.ts +78 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,24 +6,22 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
-
],
|
|
20
|
-
queryParametersToSkip: []
|
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
+
const replaceableVariables = {
|
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
+
};
|
|
16
|
+
const recorderOptions = {
|
|
17
|
+
envSetupForPlayback: replaceableVariables
|
|
21
18
|
};
|
|
22
19
|
describe("My test", () => {
|
|
23
20
|
let recorder;
|
|
24
21
|
beforeEach(function () {
|
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
recorder =
|
|
23
|
+
recorder = new Recorder(this.currentTest);
|
|
24
|
+
yield recorder.start(recorderOptions);
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
27
|
afterEach(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for MachineLearningComputeManagementClient.",
|
|
6
|
-
"version": "3.0.0-beta.
|
|
6
|
+
"version": "3.0.0-beta.3",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.6.1",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"module": "./dist-esm/src/index.js",
|
|
29
29
|
"types": "./types/arm-machinelearningcompute.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@microsoft/api-extractor": "7.
|
|
31
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
32
32
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
33
|
"@rollup/plugin-json": "^4.1.0",
|
|
34
34
|
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
@@ -36,13 +36,18 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.8.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
43
|
-
"@azure-tools/test-recorder": "^
|
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
44
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
44
45
|
"mocha": "^7.1.1",
|
|
45
|
-
"
|
|
46
|
+
"@types/chai": "^4.2.8",
|
|
47
|
+
"chai": "^4.2.0",
|
|
48
|
+
"cross-env": "^7.0.2",
|
|
49
|
+
"@types/node": "^14.0.0",
|
|
50
|
+
"@azure/dev-tool": "^1.0.0"
|
|
46
51
|
},
|
|
47
52
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute",
|
|
48
53
|
"repository": {
|
|
@@ -93,9 +98,8 @@
|
|
|
93
98
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
99
|
"unit-test:browser": "echo skipped",
|
|
95
100
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
-
"integration-test:node": "
|
|
97
|
-
"integration-test:browser": "echo skipped"
|
|
98
|
-
"docs": "echo skipped"
|
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
102
|
+
"integration-test:browser": "echo skipped"
|
|
99
103
|
},
|
|
100
104
|
"sideEffects": false,
|
|
101
105
|
"//metadata": {
|
|
@@ -115,4 +119,4 @@
|
|
|
115
119
|
"disableDocsMs": true,
|
|
116
120
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningcompute?view=azure-node-preview"
|
|
117
121
|
}
|
|
118
|
-
}
|
|
122
|
+
}
|
|
@@ -95,6 +95,9 @@ export interface ErrorResponseWrapper {
|
|
|
95
95
|
error?: ErrorResponse;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
// @public
|
|
99
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
100
|
+
|
|
98
101
|
// @public
|
|
99
102
|
export interface GlobalServiceConfiguration {
|
|
100
103
|
[property: string]: any;
|
|
@@ -106,159 +109,94 @@ export interface GlobalServiceConfiguration {
|
|
|
106
109
|
|
|
107
110
|
// @public
|
|
108
111
|
export enum KnownAgentVMSizeTypes {
|
|
109
|
-
// (undocumented)
|
|
110
112
|
StandardA0 = "Standard_A0",
|
|
111
|
-
// (undocumented)
|
|
112
113
|
StandardA1 = "Standard_A1",
|
|
113
|
-
// (undocumented)
|
|
114
114
|
StandardA10 = "Standard_A10",
|
|
115
|
-
// (undocumented)
|
|
116
115
|
StandardA11 = "Standard_A11",
|
|
117
|
-
// (undocumented)
|
|
118
116
|
StandardA2 = "Standard_A2",
|
|
119
|
-
// (undocumented)
|
|
120
117
|
StandardA3 = "Standard_A3",
|
|
121
|
-
// (undocumented)
|
|
122
118
|
StandardA4 = "Standard_A4",
|
|
123
|
-
// (undocumented)
|
|
124
119
|
StandardA5 = "Standard_A5",
|
|
125
|
-
// (undocumented)
|
|
126
120
|
StandardA6 = "Standard_A6",
|
|
127
|
-
// (undocumented)
|
|
128
121
|
StandardA7 = "Standard_A7",
|
|
129
|
-
// (undocumented)
|
|
130
122
|
StandardA8 = "Standard_A8",
|
|
131
|
-
// (undocumented)
|
|
132
123
|
StandardA9 = "Standard_A9",
|
|
133
|
-
// (undocumented)
|
|
134
124
|
StandardD1 = "Standard_D1",
|
|
135
|
-
// (undocumented)
|
|
136
125
|
StandardD11 = "Standard_D11",
|
|
137
|
-
// (undocumented)
|
|
138
126
|
StandardD11V2 = "Standard_D11_v2",
|
|
139
|
-
// (undocumented)
|
|
140
127
|
StandardD12 = "Standard_D12",
|
|
141
|
-
// (undocumented)
|
|
142
128
|
StandardD12V2 = "Standard_D12_v2",
|
|
143
|
-
// (undocumented)
|
|
144
129
|
StandardD13 = "Standard_D13",
|
|
145
|
-
// (undocumented)
|
|
146
130
|
StandardD13V2 = "Standard_D13_v2",
|
|
147
|
-
// (undocumented)
|
|
148
131
|
StandardD14 = "Standard_D14",
|
|
149
|
-
// (undocumented)
|
|
150
132
|
StandardD14V2 = "Standard_D14_v2",
|
|
151
|
-
// (undocumented)
|
|
152
133
|
StandardD1V2 = "Standard_D1_v2",
|
|
153
|
-
// (undocumented)
|
|
154
134
|
StandardD2 = "Standard_D2",
|
|
155
|
-
// (undocumented)
|
|
156
135
|
StandardD2V2 = "Standard_D2_v2",
|
|
157
|
-
// (undocumented)
|
|
158
136
|
StandardD3 = "Standard_D3",
|
|
159
|
-
// (undocumented)
|
|
160
137
|
StandardD3V2 = "Standard_D3_v2",
|
|
161
|
-
// (undocumented)
|
|
162
138
|
StandardD4 = "Standard_D4",
|
|
163
|
-
// (undocumented)
|
|
164
139
|
StandardD4V2 = "Standard_D4_v2",
|
|
165
|
-
// (undocumented)
|
|
166
140
|
StandardD5V2 = "Standard_D5_v2",
|
|
167
|
-
// (undocumented)
|
|
168
141
|
StandardDS1 = "Standard_DS1",
|
|
169
|
-
// (undocumented)
|
|
170
142
|
StandardDS11 = "Standard_DS11",
|
|
171
|
-
// (undocumented)
|
|
172
143
|
StandardDS12 = "Standard_DS12",
|
|
173
|
-
// (undocumented)
|
|
174
144
|
StandardDS13 = "Standard_DS13",
|
|
175
|
-
// (undocumented)
|
|
176
145
|
StandardDS14 = "Standard_DS14",
|
|
177
|
-
// (undocumented)
|
|
178
146
|
StandardDS2 = "Standard_DS2",
|
|
179
|
-
// (undocumented)
|
|
180
147
|
StandardDS3 = "Standard_DS3",
|
|
181
|
-
// (undocumented)
|
|
182
148
|
StandardDS4 = "Standard_DS4",
|
|
183
|
-
// (undocumented)
|
|
184
149
|
StandardG1 = "Standard_G1",
|
|
185
|
-
// (undocumented)
|
|
186
150
|
StandardG2 = "Standard_G2",
|
|
187
|
-
// (undocumented)
|
|
188
151
|
StandardG3 = "Standard_G3",
|
|
189
|
-
// (undocumented)
|
|
190
152
|
StandardG4 = "Standard_G4",
|
|
191
|
-
// (undocumented)
|
|
192
153
|
StandardG5 = "Standard_G5",
|
|
193
|
-
// (undocumented)
|
|
194
154
|
StandardGS1 = "Standard_GS1",
|
|
195
|
-
// (undocumented)
|
|
196
155
|
StandardGS2 = "Standard_GS2",
|
|
197
|
-
// (undocumented)
|
|
198
156
|
StandardGS3 = "Standard_GS3",
|
|
199
|
-
// (undocumented)
|
|
200
157
|
StandardGS4 = "Standard_GS4",
|
|
201
|
-
// (undocumented)
|
|
202
158
|
StandardGS5 = "Standard_GS5"
|
|
203
159
|
}
|
|
204
160
|
|
|
205
161
|
// @public
|
|
206
162
|
export enum KnownClusterType {
|
|
207
|
-
// (undocumented)
|
|
208
163
|
ACS = "ACS",
|
|
209
|
-
// (undocumented)
|
|
210
164
|
Local = "Local"
|
|
211
165
|
}
|
|
212
166
|
|
|
213
167
|
// @public
|
|
214
168
|
export enum KnownOperationStatus {
|
|
215
|
-
// (undocumented)
|
|
216
169
|
Canceled = "Canceled",
|
|
217
|
-
// (undocumented)
|
|
218
170
|
Creating = "Creating",
|
|
219
|
-
// (undocumented)
|
|
220
171
|
Deleting = "Deleting",
|
|
221
|
-
// (undocumented)
|
|
222
172
|
Failed = "Failed",
|
|
223
|
-
// (undocumented)
|
|
224
173
|
Succeeded = "Succeeded",
|
|
225
|
-
// (undocumented)
|
|
226
174
|
Unknown = "Unknown",
|
|
227
|
-
// (undocumented)
|
|
228
175
|
Updating = "Updating"
|
|
229
176
|
}
|
|
230
177
|
|
|
231
178
|
// @public
|
|
232
179
|
export enum KnownOrchestratorType {
|
|
233
|
-
// (undocumented)
|
|
234
180
|
Kubernetes = "Kubernetes",
|
|
235
|
-
// (undocumented)
|
|
236
181
|
None = "None"
|
|
237
182
|
}
|
|
238
183
|
|
|
239
184
|
// @public
|
|
240
185
|
export enum KnownStatus {
|
|
241
|
-
// (undocumented)
|
|
242
186
|
Disabled = "Disabled",
|
|
243
|
-
// (undocumented)
|
|
244
187
|
Enabled = "Enabled"
|
|
245
188
|
}
|
|
246
189
|
|
|
247
190
|
// @public
|
|
248
191
|
export enum KnownSystemServiceType {
|
|
249
|
-
// (undocumented)
|
|
250
192
|
BatchFrontEnd = "BatchFrontEnd",
|
|
251
|
-
// (undocumented)
|
|
252
193
|
None = "None",
|
|
253
|
-
// (undocumented)
|
|
254
194
|
ScoringFrontEnd = "ScoringFrontEnd"
|
|
255
195
|
}
|
|
256
196
|
|
|
257
197
|
// @public
|
|
258
198
|
export enum KnownUpdatesAvailable {
|
|
259
|
-
// (undocumented)
|
|
260
199
|
No = "No",
|
|
261
|
-
// (undocumented)
|
|
262
200
|
Yes = "Yes"
|
|
263
201
|
}
|
|
264
202
|
|
|
@@ -302,19 +240,19 @@ export interface MachineLearningComputeManagementClientOptionalParams extends co
|
|
|
302
240
|
}
|
|
303
241
|
|
|
304
242
|
// @public
|
|
305
|
-
export
|
|
306
|
-
|
|
307
|
-
readonly createdOn?: Date;
|
|
308
|
-
readonly modifiedOn?: Date;
|
|
309
|
-
readonly provisioningState?: OperationStatus;
|
|
310
|
-
readonly provisioningErrors?: ErrorResponseWrapper[];
|
|
243
|
+
export interface OperationalizationCluster extends Resource {
|
|
244
|
+
appInsights?: AppInsightsProperties;
|
|
311
245
|
clusterType?: ClusterType;
|
|
312
|
-
storageAccount?: StorageAccountProperties;
|
|
313
246
|
containerRegistry?: ContainerRegistryProperties;
|
|
314
247
|
containerService?: AcsClusterProperties;
|
|
315
|
-
|
|
248
|
+
readonly createdOn?: Date;
|
|
249
|
+
description?: string;
|
|
316
250
|
globalServiceConfiguration?: GlobalServiceConfiguration;
|
|
317
|
-
|
|
251
|
+
readonly modifiedOn?: Date;
|
|
252
|
+
readonly provisioningErrors?: ErrorResponseWrapper[];
|
|
253
|
+
readonly provisioningState?: OperationStatus;
|
|
254
|
+
storageAccount?: StorageAccountProperties;
|
|
255
|
+
}
|
|
318
256
|
|
|
319
257
|
// @public
|
|
320
258
|
export interface OperationalizationClusterCredentials {
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { MachineLearningComputeManagementClient } from "./machineLearningComputeManagementClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
11
16
|
import * as coreAuth from "@azure/core-auth";
|
|
12
17
|
import {
|
|
13
18
|
OperationalizationClustersImpl,
|
|
@@ -51,47 +56,53 @@ export class MachineLearningComputeManagementClient extends coreClient.ServiceCl
|
|
|
51
56
|
credential: credentials
|
|
52
57
|
};
|
|
53
58
|
|
|
54
|
-
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.
|
|
59
|
+
const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.3`;
|
|
55
60
|
const userAgentPrefix =
|
|
56
61
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
57
62
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
58
63
|
: `${packageDetails}`;
|
|
59
64
|
|
|
60
|
-
if (!options.credentialScopes) {
|
|
61
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
62
|
-
}
|
|
63
65
|
const optionsWithDefaults = {
|
|
64
66
|
...defaults,
|
|
65
67
|
...options,
|
|
66
68
|
userAgentOptions: {
|
|
67
69
|
userAgentPrefix
|
|
68
70
|
},
|
|
69
|
-
|
|
71
|
+
endpoint:
|
|
70
72
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
71
73
|
};
|
|
72
74
|
super(optionsWithDefaults);
|
|
73
75
|
|
|
76
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
74
77
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
75
78
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
76
|
-
|
|
79
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
77
80
|
(pipelinePolicy) =>
|
|
78
81
|
pipelinePolicy.name ===
|
|
79
82
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
80
83
|
);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
}
|
|
85
|
+
if (
|
|
86
|
+
!options ||
|
|
87
|
+
!options.pipeline ||
|
|
88
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
89
|
+
!bearerTokenAuthenticationPolicyFound
|
|
90
|
+
) {
|
|
91
|
+
this.pipeline.removePolicy({
|
|
92
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
93
|
+
});
|
|
94
|
+
this.pipeline.addPolicy(
|
|
95
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
96
|
+
credential: credentials,
|
|
97
|
+
scopes:
|
|
98
|
+
optionsWithDefaults.credentialScopes ??
|
|
99
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
100
|
+
challengeCallbacks: {
|
|
101
|
+
authorizeRequestOnChallenge:
|
|
102
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
);
|
|
95
106
|
}
|
|
96
107
|
// Parameter assignments
|
|
97
108
|
this.subscriptionId = subscriptionId;
|
|
@@ -101,6 +112,35 @@ export class MachineLearningComputeManagementClient extends coreClient.ServiceCl
|
|
|
101
112
|
this.apiVersion = options.apiVersion || "2017-08-01-preview";
|
|
102
113
|
this.operationalizationClusters = new OperationalizationClustersImpl(this);
|
|
103
114
|
this.machineLearningCompute = new MachineLearningComputeImpl(this);
|
|
115
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
119
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
120
|
+
if (!apiVersion) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const apiVersionPolicy = {
|
|
124
|
+
name: "CustomApiVersionPolicy",
|
|
125
|
+
async sendRequest(
|
|
126
|
+
request: PipelineRequest,
|
|
127
|
+
next: SendRequest
|
|
128
|
+
): Promise<PipelineResponse> {
|
|
129
|
+
const param = request.url.split("?");
|
|
130
|
+
if (param.length > 1) {
|
|
131
|
+
const newParams = param[1].split("&").map((item) => {
|
|
132
|
+
if (item.indexOf("api-version") > -1) {
|
|
133
|
+
return "api-version=" + apiVersion;
|
|
134
|
+
} else {
|
|
135
|
+
return item;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
139
|
+
}
|
|
140
|
+
return next(request);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
104
144
|
}
|
|
105
145
|
|
|
106
146
|
operationalizationClusters: OperationalizationClusters;
|
package/src/models/index.ts
CHANGED
|
@@ -329,7 +329,7 @@ export interface ResourceOperationDisplay {
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/** Instance of an Azure ML Operationalization Cluster resource. */
|
|
332
|
-
export
|
|
332
|
+
export interface OperationalizationCluster extends Resource {
|
|
333
333
|
/** The description of the cluster. */
|
|
334
334
|
description?: string;
|
|
335
335
|
/**
|
|
@@ -364,7 +364,7 @@ export type OperationalizationCluster = Resource & {
|
|
|
364
364
|
appInsights?: AppInsightsProperties;
|
|
365
365
|
/** Contains global configuration for the web services in the cluster. */
|
|
366
366
|
globalServiceConfiguration?: GlobalServiceConfiguration;
|
|
367
|
-
}
|
|
367
|
+
}
|
|
368
368
|
|
|
369
369
|
/** Defines headers for OperationalizationClusters_delete operation. */
|
|
370
370
|
export interface OperationalizationClustersDeleteHeaders {
|
|
@@ -380,12 +380,19 @@ export interface OperationalizationClustersUpdateSystemServicesHeaders {
|
|
|
380
380
|
|
|
381
381
|
/** Known values of {@link OperationStatus} that the service accepts. */
|
|
382
382
|
export enum KnownOperationStatus {
|
|
383
|
+
/** Unknown */
|
|
383
384
|
Unknown = "Unknown",
|
|
385
|
+
/** Updating */
|
|
384
386
|
Updating = "Updating",
|
|
387
|
+
/** Creating */
|
|
385
388
|
Creating = "Creating",
|
|
389
|
+
/** Deleting */
|
|
386
390
|
Deleting = "Deleting",
|
|
391
|
+
/** Succeeded */
|
|
387
392
|
Succeeded = "Succeeded",
|
|
393
|
+
/** Failed */
|
|
388
394
|
Failed = "Failed",
|
|
395
|
+
/** Canceled */
|
|
389
396
|
Canceled = "Canceled"
|
|
390
397
|
}
|
|
391
398
|
|
|
@@ -406,7 +413,9 @@ export type OperationStatus = string;
|
|
|
406
413
|
|
|
407
414
|
/** Known values of {@link ClusterType} that the service accepts. */
|
|
408
415
|
export enum KnownClusterType {
|
|
416
|
+
/** ACS */
|
|
409
417
|
ACS = "ACS",
|
|
418
|
+
/** Local */
|
|
410
419
|
Local = "Local"
|
|
411
420
|
}
|
|
412
421
|
|
|
@@ -422,7 +431,9 @@ export type ClusterType = string;
|
|
|
422
431
|
|
|
423
432
|
/** Known values of {@link OrchestratorType} that the service accepts. */
|
|
424
433
|
export enum KnownOrchestratorType {
|
|
434
|
+
/** Kubernetes */
|
|
425
435
|
Kubernetes = "Kubernetes",
|
|
436
|
+
/** None */
|
|
426
437
|
None = "None"
|
|
427
438
|
}
|
|
428
439
|
|
|
@@ -438,8 +449,11 @@ export type OrchestratorType = string;
|
|
|
438
449
|
|
|
439
450
|
/** Known values of {@link SystemServiceType} that the service accepts. */
|
|
440
451
|
export enum KnownSystemServiceType {
|
|
452
|
+
/** None */
|
|
441
453
|
None = "None",
|
|
454
|
+
/** ScoringFrontEnd */
|
|
442
455
|
ScoringFrontEnd = "ScoringFrontEnd",
|
|
456
|
+
/** BatchFrontEnd */
|
|
443
457
|
BatchFrontEnd = "BatchFrontEnd"
|
|
444
458
|
}
|
|
445
459
|
|
|
@@ -456,52 +470,99 @@ export type SystemServiceType = string;
|
|
|
456
470
|
|
|
457
471
|
/** Known values of {@link AgentVMSizeTypes} that the service accepts. */
|
|
458
472
|
export enum KnownAgentVMSizeTypes {
|
|
473
|
+
/** StandardA0 */
|
|
459
474
|
StandardA0 = "Standard_A0",
|
|
475
|
+
/** StandardA1 */
|
|
460
476
|
StandardA1 = "Standard_A1",
|
|
477
|
+
/** StandardA2 */
|
|
461
478
|
StandardA2 = "Standard_A2",
|
|
479
|
+
/** StandardA3 */
|
|
462
480
|
StandardA3 = "Standard_A3",
|
|
481
|
+
/** StandardA4 */
|
|
463
482
|
StandardA4 = "Standard_A4",
|
|
483
|
+
/** StandardA5 */
|
|
464
484
|
StandardA5 = "Standard_A5",
|
|
485
|
+
/** StandardA6 */
|
|
465
486
|
StandardA6 = "Standard_A6",
|
|
487
|
+
/** StandardA7 */
|
|
466
488
|
StandardA7 = "Standard_A7",
|
|
489
|
+
/** StandardA8 */
|
|
467
490
|
StandardA8 = "Standard_A8",
|
|
491
|
+
/** StandardA9 */
|
|
468
492
|
StandardA9 = "Standard_A9",
|
|
493
|
+
/** StandardA10 */
|
|
469
494
|
StandardA10 = "Standard_A10",
|
|
495
|
+
/** StandardA11 */
|
|
470
496
|
StandardA11 = "Standard_A11",
|
|
497
|
+
/** StandardD1 */
|
|
471
498
|
StandardD1 = "Standard_D1",
|
|
499
|
+
/** StandardD2 */
|
|
472
500
|
StandardD2 = "Standard_D2",
|
|
501
|
+
/** StandardD3 */
|
|
473
502
|
StandardD3 = "Standard_D3",
|
|
503
|
+
/** StandardD4 */
|
|
474
504
|
StandardD4 = "Standard_D4",
|
|
505
|
+
/** StandardD11 */
|
|
475
506
|
StandardD11 = "Standard_D11",
|
|
507
|
+
/** StandardD12 */
|
|
476
508
|
StandardD12 = "Standard_D12",
|
|
509
|
+
/** StandardD13 */
|
|
477
510
|
StandardD13 = "Standard_D13",
|
|
511
|
+
/** StandardD14 */
|
|
478
512
|
StandardD14 = "Standard_D14",
|
|
513
|
+
/** StandardD1V2 */
|
|
479
514
|
StandardD1V2 = "Standard_D1_v2",
|
|
515
|
+
/** StandardD2V2 */
|
|
480
516
|
StandardD2V2 = "Standard_D2_v2",
|
|
517
|
+
/** StandardD3V2 */
|
|
481
518
|
StandardD3V2 = "Standard_D3_v2",
|
|
519
|
+
/** StandardD4V2 */
|
|
482
520
|
StandardD4V2 = "Standard_D4_v2",
|
|
521
|
+
/** StandardD5V2 */
|
|
483
522
|
StandardD5V2 = "Standard_D5_v2",
|
|
523
|
+
/** StandardD11V2 */
|
|
484
524
|
StandardD11V2 = "Standard_D11_v2",
|
|
525
|
+
/** StandardD12V2 */
|
|
485
526
|
StandardD12V2 = "Standard_D12_v2",
|
|
527
|
+
/** StandardD13V2 */
|
|
486
528
|
StandardD13V2 = "Standard_D13_v2",
|
|
529
|
+
/** StandardD14V2 */
|
|
487
530
|
StandardD14V2 = "Standard_D14_v2",
|
|
531
|
+
/** StandardG1 */
|
|
488
532
|
StandardG1 = "Standard_G1",
|
|
533
|
+
/** StandardG2 */
|
|
489
534
|
StandardG2 = "Standard_G2",
|
|
535
|
+
/** StandardG3 */
|
|
490
536
|
StandardG3 = "Standard_G3",
|
|
537
|
+
/** StandardG4 */
|
|
491
538
|
StandardG4 = "Standard_G4",
|
|
539
|
+
/** StandardG5 */
|
|
492
540
|
StandardG5 = "Standard_G5",
|
|
541
|
+
/** StandardDS1 */
|
|
493
542
|
StandardDS1 = "Standard_DS1",
|
|
543
|
+
/** StandardDS2 */
|
|
494
544
|
StandardDS2 = "Standard_DS2",
|
|
545
|
+
/** StandardDS3 */
|
|
495
546
|
StandardDS3 = "Standard_DS3",
|
|
547
|
+
/** StandardDS4 */
|
|
496
548
|
StandardDS4 = "Standard_DS4",
|
|
549
|
+
/** StandardDS11 */
|
|
497
550
|
StandardDS11 = "Standard_DS11",
|
|
551
|
+
/** StandardDS12 */
|
|
498
552
|
StandardDS12 = "Standard_DS12",
|
|
553
|
+
/** StandardDS13 */
|
|
499
554
|
StandardDS13 = "Standard_DS13",
|
|
555
|
+
/** StandardDS14 */
|
|
500
556
|
StandardDS14 = "Standard_DS14",
|
|
557
|
+
/** StandardGS1 */
|
|
501
558
|
StandardGS1 = "Standard_GS1",
|
|
559
|
+
/** StandardGS2 */
|
|
502
560
|
StandardGS2 = "Standard_GS2",
|
|
561
|
+
/** StandardGS3 */
|
|
503
562
|
StandardGS3 = "Standard_GS3",
|
|
563
|
+
/** StandardGS4 */
|
|
504
564
|
StandardGS4 = "Standard_GS4",
|
|
565
|
+
/** StandardGS5 */
|
|
505
566
|
StandardGS5 = "Standard_GS5"
|
|
506
567
|
}
|
|
507
568
|
|
|
@@ -562,7 +623,9 @@ export type AgentVMSizeTypes = string;
|
|
|
562
623
|
|
|
563
624
|
/** Known values of {@link Status} that the service accepts. */
|
|
564
625
|
export enum KnownStatus {
|
|
626
|
+
/** Enabled */
|
|
565
627
|
Enabled = "Enabled",
|
|
628
|
+
/** Disabled */
|
|
566
629
|
Disabled = "Disabled"
|
|
567
630
|
}
|
|
568
631
|
|
|
@@ -578,7 +641,9 @@ export type Status = string;
|
|
|
578
641
|
|
|
579
642
|
/** Known values of {@link UpdatesAvailable} that the service accepts. */
|
|
580
643
|
export enum KnownUpdatesAvailable {
|
|
644
|
+
/** Yes */
|
|
581
645
|
Yes = "Yes",
|
|
646
|
+
/** No */
|
|
582
647
|
No = "No"
|
|
583
648
|
}
|
|
584
649
|
|