@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +183 -33
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +1 -0
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +1 -0
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/machineLearningComputeManagementClient.d.ts +2 -0
  12. package/dist-esm/src/machineLearningComputeManagementClient.d.ts.map +1 -1
  13. package/dist-esm/src/machineLearningComputeManagementClient.js +49 -18
  14. package/dist-esm/src/machineLearningComputeManagementClient.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +67 -2
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +65 -0
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/operations/operationalizationClusters.d.ts.map +1 -1
  20. package/dist-esm/src/operations/operationalizationClusters.js +37 -14
  21. package/dist-esm/src/operations/operationalizationClusters.js.map +1 -1
  22. package/dist-esm/src/pagingHelper.d.ts +13 -0
  23. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  24. package/dist-esm/src/pagingHelper.js +32 -0
  25. package/dist-esm/src/pagingHelper.js.map +1 -0
  26. package/dist-esm/test/sampleTest.js +11 -13
  27. package/dist-esm/test/sampleTest.js.map +1 -1
  28. package/package.json +15 -11
  29. package/review/arm-machinelearningcompute.api.md +12 -74
  30. package/src/index.ts +1 -0
  31. package/src/machineLearningComputeManagementClient.ts +60 -20
  32. package/src/models/index.ts +67 -2
  33. package/src/operations/operationalizationClusters.ts +46 -17
  34. package/src/pagingHelper.ts +39 -0
  35. package/types/arm-machinelearningcompute.d.ts +78 -2
  36. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Release History
2
2
 
3
- ## 3.0.0-beta.2 (2022-04-24)
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.2, which contains breaking changes.
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,7 +13,7 @@ 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://nodejs.org/about/releases/)
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
19
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var tslib = require('tslib');
5
6
  var coreClient = require('@azure/core-client');
6
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
8
8
  var coreLro = require('@azure/core-lro');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
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
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -38,94 +70,159 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
70
  /** Known values of {@link OperationStatus} that the service accepts. */
39
71
  exports.KnownOperationStatus = void 0;
40
72
  (function (KnownOperationStatus) {
73
+ /** Unknown */
41
74
  KnownOperationStatus["Unknown"] = "Unknown";
75
+ /** Updating */
42
76
  KnownOperationStatus["Updating"] = "Updating";
77
+ /** Creating */
43
78
  KnownOperationStatus["Creating"] = "Creating";
79
+ /** Deleting */
44
80
  KnownOperationStatus["Deleting"] = "Deleting";
81
+ /** Succeeded */
45
82
  KnownOperationStatus["Succeeded"] = "Succeeded";
83
+ /** Failed */
46
84
  KnownOperationStatus["Failed"] = "Failed";
85
+ /** Canceled */
47
86
  KnownOperationStatus["Canceled"] = "Canceled";
48
87
  })(exports.KnownOperationStatus || (exports.KnownOperationStatus = {}));
49
88
  /** Known values of {@link ClusterType} that the service accepts. */
50
89
  exports.KnownClusterType = void 0;
51
90
  (function (KnownClusterType) {
91
+ /** ACS */
52
92
  KnownClusterType["ACS"] = "ACS";
93
+ /** Local */
53
94
  KnownClusterType["Local"] = "Local";
54
95
  })(exports.KnownClusterType || (exports.KnownClusterType = {}));
55
96
  /** Known values of {@link OrchestratorType} that the service accepts. */
56
97
  exports.KnownOrchestratorType = void 0;
57
98
  (function (KnownOrchestratorType) {
99
+ /** Kubernetes */
58
100
  KnownOrchestratorType["Kubernetes"] = "Kubernetes";
101
+ /** None */
59
102
  KnownOrchestratorType["None"] = "None";
60
103
  })(exports.KnownOrchestratorType || (exports.KnownOrchestratorType = {}));
61
104
  /** Known values of {@link SystemServiceType} that the service accepts. */
62
105
  exports.KnownSystemServiceType = void 0;
63
106
  (function (KnownSystemServiceType) {
107
+ /** None */
64
108
  KnownSystemServiceType["None"] = "None";
109
+ /** ScoringFrontEnd */
65
110
  KnownSystemServiceType["ScoringFrontEnd"] = "ScoringFrontEnd";
111
+ /** BatchFrontEnd */
66
112
  KnownSystemServiceType["BatchFrontEnd"] = "BatchFrontEnd";
67
113
  })(exports.KnownSystemServiceType || (exports.KnownSystemServiceType = {}));
68
114
  /** Known values of {@link AgentVMSizeTypes} that the service accepts. */
69
115
  exports.KnownAgentVMSizeTypes = void 0;
70
116
  (function (KnownAgentVMSizeTypes) {
117
+ /** StandardA0 */
71
118
  KnownAgentVMSizeTypes["StandardA0"] = "Standard_A0";
119
+ /** StandardA1 */
72
120
  KnownAgentVMSizeTypes["StandardA1"] = "Standard_A1";
121
+ /** StandardA2 */
73
122
  KnownAgentVMSizeTypes["StandardA2"] = "Standard_A2";
123
+ /** StandardA3 */
74
124
  KnownAgentVMSizeTypes["StandardA3"] = "Standard_A3";
125
+ /** StandardA4 */
75
126
  KnownAgentVMSizeTypes["StandardA4"] = "Standard_A4";
127
+ /** StandardA5 */
76
128
  KnownAgentVMSizeTypes["StandardA5"] = "Standard_A5";
129
+ /** StandardA6 */
77
130
  KnownAgentVMSizeTypes["StandardA6"] = "Standard_A6";
131
+ /** StandardA7 */
78
132
  KnownAgentVMSizeTypes["StandardA7"] = "Standard_A7";
133
+ /** StandardA8 */
79
134
  KnownAgentVMSizeTypes["StandardA8"] = "Standard_A8";
135
+ /** StandardA9 */
80
136
  KnownAgentVMSizeTypes["StandardA9"] = "Standard_A9";
137
+ /** StandardA10 */
81
138
  KnownAgentVMSizeTypes["StandardA10"] = "Standard_A10";
139
+ /** StandardA11 */
82
140
  KnownAgentVMSizeTypes["StandardA11"] = "Standard_A11";
141
+ /** StandardD1 */
83
142
  KnownAgentVMSizeTypes["StandardD1"] = "Standard_D1";
143
+ /** StandardD2 */
84
144
  KnownAgentVMSizeTypes["StandardD2"] = "Standard_D2";
145
+ /** StandardD3 */
85
146
  KnownAgentVMSizeTypes["StandardD3"] = "Standard_D3";
147
+ /** StandardD4 */
86
148
  KnownAgentVMSizeTypes["StandardD4"] = "Standard_D4";
149
+ /** StandardD11 */
87
150
  KnownAgentVMSizeTypes["StandardD11"] = "Standard_D11";
151
+ /** StandardD12 */
88
152
  KnownAgentVMSizeTypes["StandardD12"] = "Standard_D12";
153
+ /** StandardD13 */
89
154
  KnownAgentVMSizeTypes["StandardD13"] = "Standard_D13";
155
+ /** StandardD14 */
90
156
  KnownAgentVMSizeTypes["StandardD14"] = "Standard_D14";
157
+ /** StandardD1V2 */
91
158
  KnownAgentVMSizeTypes["StandardD1V2"] = "Standard_D1_v2";
159
+ /** StandardD2V2 */
92
160
  KnownAgentVMSizeTypes["StandardD2V2"] = "Standard_D2_v2";
161
+ /** StandardD3V2 */
93
162
  KnownAgentVMSizeTypes["StandardD3V2"] = "Standard_D3_v2";
163
+ /** StandardD4V2 */
94
164
  KnownAgentVMSizeTypes["StandardD4V2"] = "Standard_D4_v2";
165
+ /** StandardD5V2 */
95
166
  KnownAgentVMSizeTypes["StandardD5V2"] = "Standard_D5_v2";
167
+ /** StandardD11V2 */
96
168
  KnownAgentVMSizeTypes["StandardD11V2"] = "Standard_D11_v2";
169
+ /** StandardD12V2 */
97
170
  KnownAgentVMSizeTypes["StandardD12V2"] = "Standard_D12_v2";
171
+ /** StandardD13V2 */
98
172
  KnownAgentVMSizeTypes["StandardD13V2"] = "Standard_D13_v2";
173
+ /** StandardD14V2 */
99
174
  KnownAgentVMSizeTypes["StandardD14V2"] = "Standard_D14_v2";
175
+ /** StandardG1 */
100
176
  KnownAgentVMSizeTypes["StandardG1"] = "Standard_G1";
177
+ /** StandardG2 */
101
178
  KnownAgentVMSizeTypes["StandardG2"] = "Standard_G2";
179
+ /** StandardG3 */
102
180
  KnownAgentVMSizeTypes["StandardG3"] = "Standard_G3";
181
+ /** StandardG4 */
103
182
  KnownAgentVMSizeTypes["StandardG4"] = "Standard_G4";
183
+ /** StandardG5 */
104
184
  KnownAgentVMSizeTypes["StandardG5"] = "Standard_G5";
185
+ /** StandardDS1 */
105
186
  KnownAgentVMSizeTypes["StandardDS1"] = "Standard_DS1";
187
+ /** StandardDS2 */
106
188
  KnownAgentVMSizeTypes["StandardDS2"] = "Standard_DS2";
189
+ /** StandardDS3 */
107
190
  KnownAgentVMSizeTypes["StandardDS3"] = "Standard_DS3";
191
+ /** StandardDS4 */
108
192
  KnownAgentVMSizeTypes["StandardDS4"] = "Standard_DS4";
193
+ /** StandardDS11 */
109
194
  KnownAgentVMSizeTypes["StandardDS11"] = "Standard_DS11";
195
+ /** StandardDS12 */
110
196
  KnownAgentVMSizeTypes["StandardDS12"] = "Standard_DS12";
197
+ /** StandardDS13 */
111
198
  KnownAgentVMSizeTypes["StandardDS13"] = "Standard_DS13";
199
+ /** StandardDS14 */
112
200
  KnownAgentVMSizeTypes["StandardDS14"] = "Standard_DS14";
201
+ /** StandardGS1 */
113
202
  KnownAgentVMSizeTypes["StandardGS1"] = "Standard_GS1";
203
+ /** StandardGS2 */
114
204
  KnownAgentVMSizeTypes["StandardGS2"] = "Standard_GS2";
205
+ /** StandardGS3 */
115
206
  KnownAgentVMSizeTypes["StandardGS3"] = "Standard_GS3";
207
+ /** StandardGS4 */
116
208
  KnownAgentVMSizeTypes["StandardGS4"] = "Standard_GS4";
209
+ /** StandardGS5 */
117
210
  KnownAgentVMSizeTypes["StandardGS5"] = "Standard_GS5";
118
211
  })(exports.KnownAgentVMSizeTypes || (exports.KnownAgentVMSizeTypes = {}));
119
212
  /** Known values of {@link Status} that the service accepts. */
120
213
  exports.KnownStatus = void 0;
121
214
  (function (KnownStatus) {
215
+ /** Enabled */
122
216
  KnownStatus["Enabled"] = "Enabled";
217
+ /** Disabled */
123
218
  KnownStatus["Disabled"] = "Disabled";
124
219
  })(exports.KnownStatus || (exports.KnownStatus = {}));
125
220
  /** Known values of {@link UpdatesAvailable} that the service accepts. */
126
221
  exports.KnownUpdatesAvailable = void 0;
127
222
  (function (KnownUpdatesAvailable) {
223
+ /** Yes */
128
224
  KnownUpdatesAvailable["Yes"] = "Yes";
225
+ /** No */
129
226
  KnownUpdatesAvailable["No"] = "No";
130
227
  })(exports.KnownUpdatesAvailable || (exports.KnownUpdatesAvailable = {}));
131
228
 
@@ -1221,20 +1318,31 @@ class OperationalizationClustersImpl {
1221
1318
  [Symbol.asyncIterator]() {
1222
1319
  return this;
1223
1320
  },
1224
- byPage: () => {
1225
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
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);
1226
1326
  }
1227
1327
  };
1228
1328
  }
1229
- listByResourceGroupPagingPage(resourceGroupName, options) {
1329
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1230
1330
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1231
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1232
- yield yield tslib.__await(result.value || []);
1233
- let continuationToken = result.nextLink;
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
+ }
1234
1340
  while (continuationToken) {
1235
1341
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1236
1342
  continuationToken = result.nextLink;
1237
- yield yield tslib.__await(result.value || []);
1343
+ let page = result.value || [];
1344
+ setContinuationToken(page, continuationToken);
1345
+ yield yield tslib.__await(page);
1238
1346
  }
1239
1347
  });
1240
1348
  }
@@ -1269,20 +1377,31 @@ class OperationalizationClustersImpl {
1269
1377
  [Symbol.asyncIterator]() {
1270
1378
  return this;
1271
1379
  },
1272
- byPage: () => {
1273
- return this.listBySubscriptionIdPagingPage(options);
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);
1274
1385
  }
1275
1386
  };
1276
1387
  }
1277
- listBySubscriptionIdPagingPage(options) {
1388
+ listBySubscriptionIdPagingPage(options, settings) {
1278
1389
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
1279
- let result = yield tslib.__await(this._listBySubscriptionId(options));
1280
- yield yield tslib.__await(result.value || []);
1281
- let continuationToken = result.nextLink;
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
+ }
1282
1399
  while (continuationToken) {
1283
1400
  result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
1284
1401
  continuationToken = result.nextLink;
1285
- yield yield tslib.__await(result.value || []);
1402
+ let page = result.value || [];
1403
+ setContinuationToken(page, continuationToken);
1404
+ yield yield tslib.__await(page);
1286
1405
  }
1287
1406
  });
1288
1407
  }
@@ -1824,7 +1943,7 @@ class MachineLearningComputeManagementClient extends coreClient__namespace.Servi
1824
1943
  * @param options The parameter options
1825
1944
  */
1826
1945
  constructor(credentials, subscriptionId, options) {
1827
- var _a, _b;
1946
+ var _a, _b, _c;
1828
1947
  if (credentials === undefined) {
1829
1948
  throw new Error("'credentials' cannot be null");
1830
1949
  }
@@ -1839,32 +1958,34 @@ class MachineLearningComputeManagementClient extends coreClient__namespace.Servi
1839
1958
  requestContentType: "application/json; charset=utf-8",
1840
1959
  credential: credentials
1841
1960
  };
1842
- const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.2`;
1961
+ const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.3`;
1843
1962
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1844
1963
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1845
1964
  : `${packageDetails}`;
1846
- if (!options.credentialScopes) {
1847
- options.credentialScopes = ["https://management.azure.com/.default"];
1848
- }
1849
1965
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1850
1966
  userAgentPrefix
1851
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1967
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1852
1968
  super(optionsWithDefaults);
1969
+ let bearerTokenAuthenticationPolicyFound = false;
1853
1970
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1854
1971
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
1855
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1972
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1856
1973
  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
- }
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
+ }));
1868
1989
  }
1869
1990
  // Parameter assignments
1870
1991
  this.subscriptionId = subscriptionId;
@@ -1873,8 +1994,37 @@ class MachineLearningComputeManagementClient extends coreClient__namespace.Servi
1873
1994
  this.apiVersion = options.apiVersion || "2017-08-01-preview";
1874
1995
  this.operationalizationClusters = new OperationalizationClustersImpl(this);
1875
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);
1876
2025
  }
1877
2026
  }
1878
2027
 
1879
2028
  exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient;
2029
+ exports.getContinuationToken = getContinuationToken;
1880
2030
  //# sourceMappingURL=index.js.map