@azure/arm-workspaces 1.1.1-alpha.20250210.1 → 1.1.1-alpha.20250211.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/README.md +21 -14
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/machineLearningWorkspacesManagementClient.d.ts +2 -2
- package/dist/browser/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/machineLearningWorkspacesManagementClient.js +15 -18
- package/dist/browser/machineLearningWorkspacesManagementClient.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
- package/dist/browser/operations/workspaces.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.js +3 -3
- package/dist/browser/operations/workspaces.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/machineLearningWorkspacesManagementClient.d.ts +21 -0
- package/dist/commonjs/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
- package/dist/commonjs/machineLearningWorkspacesManagementClient.js +103 -0
- package/dist/commonjs/machineLearningWorkspacesManagementClient.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +190 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +12 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +333 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +105 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +100 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/workspaces.d.ts +106 -0
- package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaces.js +454 -0
- package/dist/commonjs/operations/workspaces.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts +68 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/machineLearningWorkspacesManagementClient.d.ts +21 -0
- package/dist/esm/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
- package/dist/esm/machineLearningWorkspacesManagementClient.js +98 -0
- package/dist/esm/machineLearningWorkspacesManagementClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +190 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/models/index.js} +2 -3
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +12 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +330 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +102 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +96 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/workspaces.d.ts +106 -0
- package/dist/esm/operations/workspaces.d.ts.map +1 -0
- package/dist/esm/operations/workspaces.js +450 -0
- package/dist/esm/operations/workspaces.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts +68 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.js +9 -0
- package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/machineLearningWorkspacesManagementClient.d.ts +21 -0
- package/dist/react-native/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
- package/dist/react-native/machineLearningWorkspacesManagementClient.js +98 -0
- package/dist/react-native/machineLearningWorkspacesManagementClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +190 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +12 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +330 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +102 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +96 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/workspaces.d.ts +106 -0
- package/dist/react-native/operations/workspaces.d.ts.map +1 -0
- package/dist/react-native/operations/workspaces.js +450 -0
- package/dist/react-native/operations/workspaces.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts +68 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -1142
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/listWorkspaceKeys.d.ts +0 -2
- package/dist-esm/samples-dev/listWorkspaceKeys.d.ts.map +0 -1
- package/dist-esm/samples-dev/listWorkspaceKeys.js +0 -29
- package/dist-esm/samples-dev/listWorkspaceKeys.js.map +0 -1
- package/dist-esm/samples-dev/resyncStorageKeys.d.ts +0 -2
- package/dist-esm/samples-dev/resyncStorageKeys.d.ts.map +0 -1
- package/dist-esm/samples-dev/resyncStorageKeys.js +0 -29
- package/dist-esm/samples-dev/resyncStorageKeys.js.map +0 -1
- package/dist-esm/samples-dev/workspaceCreate.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceCreate.js +0 -23
- package/dist-esm/samples-dev/workspaceCreate.js.map +0 -1
- package/dist-esm/samples-dev/workspaceDelete.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceDelete.js +0 -29
- package/dist-esm/samples-dev/workspaceDelete.js.map +0 -1
- package/dist-esm/samples-dev/workspaceGet.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceGet.js +0 -29
- package/dist-esm/samples-dev/workspaceGet.js.map +0 -1
- package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceGetBySubscription.js +0 -43
- package/dist-esm/samples-dev/workspaceGetBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceListResourceGroup.js +0 -44
- package/dist-esm/samples-dev/workspaceListResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/workspaceUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceUpdate.js +0 -21
- package/dist-esm/samples-dev/workspaceUpdate.js.map +0 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +0 -29
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +0 -29
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +0 -29
- package/dist-esm/samples-dev/workspacesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesListSample.js +0 -43
- package/dist-esm/samples-dev/workspacesListSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js +0 -29
- package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js +0 -29
- package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +0 -27
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
- package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaces.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/machineLearningWorkspacesManagementClient.ts +0 -142
- package/src/models/index.ts +0 -238
- package/src/models/mappers.ts +0 -351
- package/src/models/parameters.ts +0 -120
- package/src/operations/operations.ts +0 -103
- package/src/operations/workspaces.ts +0 -561
- package/src/operationsInterfaces/index.ts +0 -10
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/workspaces.ts +0 -123
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -37
- package/types/arm-workspaces.d.ts +0 -327
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js
DELETED
|
@@ -1,1142 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
|
|
9
|
-
function _interopNamespaceDefault(e) {
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
27
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* Copyright (c) Microsoft Corporation.
|
|
31
|
-
* Licensed under the MIT License.
|
|
32
|
-
*
|
|
33
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
34
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
35
|
-
*/
|
|
36
|
-
const pageMap = new WeakMap();
|
|
37
|
-
/**
|
|
38
|
-
* Given a result page from a pageable operation, returns a
|
|
39
|
-
* continuation token that can be used to begin paging from
|
|
40
|
-
* that point later.
|
|
41
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
42
|
-
* @returns The continuation token that can be passed into byPage().
|
|
43
|
-
*/
|
|
44
|
-
function getContinuationToken(page) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (typeof page !== "object" || page === null) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
50
|
-
}
|
|
51
|
-
function setContinuationToken(page, continuationToken) {
|
|
52
|
-
var _a;
|
|
53
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
57
|
-
pageInfo.continuationToken = continuationToken;
|
|
58
|
-
pageMap.set(page, pageInfo);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/*
|
|
62
|
-
* Copyright (c) Microsoft Corporation.
|
|
63
|
-
* Licensed under the MIT License.
|
|
64
|
-
*
|
|
65
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
66
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
67
|
-
*/
|
|
68
|
-
const OperationListResult = {
|
|
69
|
-
type: {
|
|
70
|
-
name: "Composite",
|
|
71
|
-
className: "OperationListResult",
|
|
72
|
-
modelProperties: {
|
|
73
|
-
value: {
|
|
74
|
-
serializedName: "value",
|
|
75
|
-
type: {
|
|
76
|
-
name: "Sequence",
|
|
77
|
-
element: {
|
|
78
|
-
type: {
|
|
79
|
-
name: "Composite",
|
|
80
|
-
className: "Operation"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const Operation = {
|
|
89
|
-
type: {
|
|
90
|
-
name: "Composite",
|
|
91
|
-
className: "Operation",
|
|
92
|
-
modelProperties: {
|
|
93
|
-
name: {
|
|
94
|
-
serializedName: "name",
|
|
95
|
-
type: {
|
|
96
|
-
name: "String"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
display: {
|
|
100
|
-
serializedName: "display",
|
|
101
|
-
type: {
|
|
102
|
-
name: "Composite",
|
|
103
|
-
className: "OperationDisplay"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
const OperationDisplay = {
|
|
110
|
-
type: {
|
|
111
|
-
name: "Composite",
|
|
112
|
-
className: "OperationDisplay",
|
|
113
|
-
modelProperties: {
|
|
114
|
-
provider: {
|
|
115
|
-
serializedName: "provider",
|
|
116
|
-
type: {
|
|
117
|
-
name: "String"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
resource: {
|
|
121
|
-
serializedName: "resource",
|
|
122
|
-
type: {
|
|
123
|
-
name: "String"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
operation: {
|
|
127
|
-
serializedName: "operation",
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
description: {
|
|
133
|
-
serializedName: "description",
|
|
134
|
-
type: {
|
|
135
|
-
name: "String"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const ErrorResponse = {
|
|
142
|
-
type: {
|
|
143
|
-
name: "Composite",
|
|
144
|
-
className: "ErrorResponse",
|
|
145
|
-
modelProperties: {
|
|
146
|
-
code: {
|
|
147
|
-
serializedName: "code",
|
|
148
|
-
required: true,
|
|
149
|
-
type: {
|
|
150
|
-
name: "String"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
message: {
|
|
154
|
-
serializedName: "message",
|
|
155
|
-
required: true,
|
|
156
|
-
type: {
|
|
157
|
-
name: "String"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
const Resource = {
|
|
164
|
-
type: {
|
|
165
|
-
name: "Composite",
|
|
166
|
-
className: "Resource",
|
|
167
|
-
modelProperties: {
|
|
168
|
-
id: {
|
|
169
|
-
serializedName: "id",
|
|
170
|
-
readOnly: true,
|
|
171
|
-
type: {
|
|
172
|
-
name: "String"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
name: {
|
|
176
|
-
serializedName: "name",
|
|
177
|
-
readOnly: true,
|
|
178
|
-
type: {
|
|
179
|
-
name: "String"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
type: {
|
|
183
|
-
serializedName: "type",
|
|
184
|
-
readOnly: true,
|
|
185
|
-
type: {
|
|
186
|
-
name: "String"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
location: {
|
|
190
|
-
serializedName: "location",
|
|
191
|
-
required: true,
|
|
192
|
-
type: {
|
|
193
|
-
name: "String"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
tags: {
|
|
197
|
-
serializedName: "tags",
|
|
198
|
-
type: {
|
|
199
|
-
name: "Dictionary",
|
|
200
|
-
value: { type: { name: "String" } }
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
sku: {
|
|
204
|
-
serializedName: "sku",
|
|
205
|
-
type: {
|
|
206
|
-
name: "Composite",
|
|
207
|
-
className: "Sku"
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
const Sku = {
|
|
214
|
-
type: {
|
|
215
|
-
name: "Composite",
|
|
216
|
-
className: "Sku",
|
|
217
|
-
modelProperties: {
|
|
218
|
-
name: {
|
|
219
|
-
serializedName: "name",
|
|
220
|
-
type: {
|
|
221
|
-
name: "String"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
tier: {
|
|
225
|
-
serializedName: "tier",
|
|
226
|
-
type: {
|
|
227
|
-
name: "String"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
const WorkspaceUpdateParameters = {
|
|
234
|
-
type: {
|
|
235
|
-
name: "Composite",
|
|
236
|
-
className: "WorkspaceUpdateParameters",
|
|
237
|
-
modelProperties: {
|
|
238
|
-
tags: {
|
|
239
|
-
serializedName: "tags",
|
|
240
|
-
type: {
|
|
241
|
-
name: "Dictionary",
|
|
242
|
-
value: { type: { name: "String" } }
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
workspaceState: {
|
|
246
|
-
serializedName: "properties.workspaceState",
|
|
247
|
-
type: {
|
|
248
|
-
name: "Enum",
|
|
249
|
-
allowedValues: [
|
|
250
|
-
"Deleted",
|
|
251
|
-
"Enabled",
|
|
252
|
-
"Disabled",
|
|
253
|
-
"Migrated",
|
|
254
|
-
"Updated",
|
|
255
|
-
"Registered",
|
|
256
|
-
"Unregistered"
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
keyVaultIdentifierId: {
|
|
261
|
-
serializedName: "properties.keyVaultIdentifierId",
|
|
262
|
-
type: {
|
|
263
|
-
name: "String"
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
sku: {
|
|
267
|
-
serializedName: "properties.sku",
|
|
268
|
-
type: {
|
|
269
|
-
name: "Composite",
|
|
270
|
-
className: "Sku"
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
const WorkspaceKeysResponse = {
|
|
277
|
-
type: {
|
|
278
|
-
name: "Composite",
|
|
279
|
-
className: "WorkspaceKeysResponse",
|
|
280
|
-
modelProperties: {
|
|
281
|
-
primaryToken: {
|
|
282
|
-
serializedName: "primaryToken",
|
|
283
|
-
type: {
|
|
284
|
-
name: "String"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
secondaryToken: {
|
|
288
|
-
serializedName: "secondaryToken",
|
|
289
|
-
type: {
|
|
290
|
-
name: "String"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
const WorkspaceListResult = {
|
|
297
|
-
type: {
|
|
298
|
-
name: "Composite",
|
|
299
|
-
className: "WorkspaceListResult",
|
|
300
|
-
modelProperties: {
|
|
301
|
-
value: {
|
|
302
|
-
serializedName: "value",
|
|
303
|
-
type: {
|
|
304
|
-
name: "Sequence",
|
|
305
|
-
element: {
|
|
306
|
-
type: {
|
|
307
|
-
name: "Composite",
|
|
308
|
-
className: "Workspace"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
nextLink: {
|
|
314
|
-
serializedName: "nextLink",
|
|
315
|
-
type: {
|
|
316
|
-
name: "String"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
const Workspace = {
|
|
323
|
-
type: {
|
|
324
|
-
name: "Composite",
|
|
325
|
-
className: "Workspace",
|
|
326
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { userStorageAccountId: {
|
|
327
|
-
serializedName: "properties.userStorageAccountId",
|
|
328
|
-
type: {
|
|
329
|
-
name: "String"
|
|
330
|
-
}
|
|
331
|
-
}, ownerEmail: {
|
|
332
|
-
serializedName: "properties.ownerEmail",
|
|
333
|
-
type: {
|
|
334
|
-
name: "String"
|
|
335
|
-
}
|
|
336
|
-
}, workspaceType: {
|
|
337
|
-
serializedName: "properties.workspaceType",
|
|
338
|
-
readOnly: true,
|
|
339
|
-
type: {
|
|
340
|
-
name: "Enum",
|
|
341
|
-
allowedValues: [
|
|
342
|
-
"Production",
|
|
343
|
-
"Free",
|
|
344
|
-
"Anonymous",
|
|
345
|
-
"PaidStandard",
|
|
346
|
-
"PaidPremium"
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
}, workspaceState: {
|
|
350
|
-
serializedName: "properties.workspaceState",
|
|
351
|
-
readOnly: true,
|
|
352
|
-
type: {
|
|
353
|
-
name: "Enum",
|
|
354
|
-
allowedValues: [
|
|
355
|
-
"Deleted",
|
|
356
|
-
"Enabled",
|
|
357
|
-
"Disabled",
|
|
358
|
-
"Migrated",
|
|
359
|
-
"Updated",
|
|
360
|
-
"Registered",
|
|
361
|
-
"Unregistered"
|
|
362
|
-
]
|
|
363
|
-
}
|
|
364
|
-
}, workspaceId: {
|
|
365
|
-
serializedName: "properties.workspaceId",
|
|
366
|
-
readOnly: true,
|
|
367
|
-
type: {
|
|
368
|
-
name: "String"
|
|
369
|
-
}
|
|
370
|
-
}, creationTime: {
|
|
371
|
-
serializedName: "properties.creationTime",
|
|
372
|
-
readOnly: true,
|
|
373
|
-
type: {
|
|
374
|
-
name: "String"
|
|
375
|
-
}
|
|
376
|
-
}, studioEndpoint: {
|
|
377
|
-
serializedName: "properties.studioEndpoint",
|
|
378
|
-
readOnly: true,
|
|
379
|
-
type: {
|
|
380
|
-
name: "String"
|
|
381
|
-
}
|
|
382
|
-
}, keyVaultIdentifierId: {
|
|
383
|
-
serializedName: "properties.keyVaultIdentifierId",
|
|
384
|
-
type: {
|
|
385
|
-
name: "String"
|
|
386
|
-
}
|
|
387
|
-
} })
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
392
|
-
__proto__: null,
|
|
393
|
-
ErrorResponse: ErrorResponse,
|
|
394
|
-
Operation: Operation,
|
|
395
|
-
OperationDisplay: OperationDisplay,
|
|
396
|
-
OperationListResult: OperationListResult,
|
|
397
|
-
Resource: Resource,
|
|
398
|
-
Sku: Sku,
|
|
399
|
-
Workspace: Workspace,
|
|
400
|
-
WorkspaceKeysResponse: WorkspaceKeysResponse,
|
|
401
|
-
WorkspaceListResult: WorkspaceListResult,
|
|
402
|
-
WorkspaceUpdateParameters: WorkspaceUpdateParameters
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
/*
|
|
406
|
-
* Copyright (c) Microsoft Corporation.
|
|
407
|
-
* Licensed under the MIT License.
|
|
408
|
-
*
|
|
409
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
410
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
411
|
-
*/
|
|
412
|
-
const accept = {
|
|
413
|
-
parameterPath: "accept",
|
|
414
|
-
mapper: {
|
|
415
|
-
defaultValue: "application/json",
|
|
416
|
-
isConstant: true,
|
|
417
|
-
serializedName: "Accept",
|
|
418
|
-
type: {
|
|
419
|
-
name: "String"
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
const $host = {
|
|
424
|
-
parameterPath: "$host",
|
|
425
|
-
mapper: {
|
|
426
|
-
serializedName: "$host",
|
|
427
|
-
required: true,
|
|
428
|
-
type: {
|
|
429
|
-
name: "String"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
skipEncoding: true
|
|
433
|
-
};
|
|
434
|
-
const apiVersion = {
|
|
435
|
-
parameterPath: "apiVersion",
|
|
436
|
-
mapper: {
|
|
437
|
-
defaultValue: "2019-10-01",
|
|
438
|
-
isConstant: true,
|
|
439
|
-
serializedName: "api-version",
|
|
440
|
-
type: {
|
|
441
|
-
name: "String"
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
const subscriptionId = {
|
|
446
|
-
parameterPath: "subscriptionId",
|
|
447
|
-
mapper: {
|
|
448
|
-
serializedName: "subscriptionId",
|
|
449
|
-
required: true,
|
|
450
|
-
type: {
|
|
451
|
-
name: "String"
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
const resourceGroupName = {
|
|
456
|
-
parameterPath: "resourceGroupName",
|
|
457
|
-
mapper: {
|
|
458
|
-
serializedName: "resourceGroupName",
|
|
459
|
-
required: true,
|
|
460
|
-
type: {
|
|
461
|
-
name: "String"
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
const workspaceName = {
|
|
466
|
-
parameterPath: "workspaceName",
|
|
467
|
-
mapper: {
|
|
468
|
-
serializedName: "workspaceName",
|
|
469
|
-
required: true,
|
|
470
|
-
type: {
|
|
471
|
-
name: "String"
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
const contentType = {
|
|
476
|
-
parameterPath: ["options", "contentType"],
|
|
477
|
-
mapper: {
|
|
478
|
-
defaultValue: "application/json",
|
|
479
|
-
isConstant: true,
|
|
480
|
-
serializedName: "Content-Type",
|
|
481
|
-
type: {
|
|
482
|
-
name: "String"
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
const parameters = {
|
|
487
|
-
parameterPath: "parameters",
|
|
488
|
-
mapper: Workspace
|
|
489
|
-
};
|
|
490
|
-
const parameters1 = {
|
|
491
|
-
parameterPath: "parameters",
|
|
492
|
-
mapper: WorkspaceUpdateParameters
|
|
493
|
-
};
|
|
494
|
-
const nextLink = {
|
|
495
|
-
parameterPath: "nextLink",
|
|
496
|
-
mapper: {
|
|
497
|
-
serializedName: "nextLink",
|
|
498
|
-
required: true,
|
|
499
|
-
type: {
|
|
500
|
-
name: "String"
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
skipEncoding: true
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
/*
|
|
507
|
-
* Copyright (c) Microsoft Corporation.
|
|
508
|
-
* Licensed under the MIT License.
|
|
509
|
-
*
|
|
510
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
511
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
512
|
-
*/
|
|
513
|
-
/// <reference lib="esnext.asynciterable" />
|
|
514
|
-
/** Class containing Operations operations. */
|
|
515
|
-
class OperationsImpl {
|
|
516
|
-
/**
|
|
517
|
-
* Initialize a new instance of the class Operations class.
|
|
518
|
-
* @param client Reference to the service client
|
|
519
|
-
*/
|
|
520
|
-
constructor(client) {
|
|
521
|
-
this.client = client;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
525
|
-
* @param options The options parameters.
|
|
526
|
-
*/
|
|
527
|
-
list(options) {
|
|
528
|
-
const iter = this.listPagingAll(options);
|
|
529
|
-
return {
|
|
530
|
-
next() {
|
|
531
|
-
return iter.next();
|
|
532
|
-
},
|
|
533
|
-
[Symbol.asyncIterator]() {
|
|
534
|
-
return this;
|
|
535
|
-
},
|
|
536
|
-
byPage: (settings) => {
|
|
537
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
538
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
539
|
-
}
|
|
540
|
-
return this.listPagingPage(options, settings);
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
listPagingPage(options, _settings) {
|
|
545
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
546
|
-
let result;
|
|
547
|
-
result = yield tslib.__await(this._list(options));
|
|
548
|
-
yield yield tslib.__await(result.value || []);
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
listPagingAll(options) {
|
|
552
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
553
|
-
var _a, e_1, _b, _c;
|
|
554
|
-
try {
|
|
555
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
556
|
-
_c = _f.value;
|
|
557
|
-
_d = false;
|
|
558
|
-
const page = _c;
|
|
559
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
563
|
-
finally {
|
|
564
|
-
try {
|
|
565
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
566
|
-
}
|
|
567
|
-
finally { if (e_1) throw e_1.error; }
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
573
|
-
* @param options The options parameters.
|
|
574
|
-
*/
|
|
575
|
-
_list(options) {
|
|
576
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
// Operation Specifications
|
|
580
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
581
|
-
const listOperationSpec$1 = {
|
|
582
|
-
path: "/providers/Microsoft.MachineLearning/operations",
|
|
583
|
-
httpMethod: "GET",
|
|
584
|
-
responses: {
|
|
585
|
-
200: {
|
|
586
|
-
bodyMapper: OperationListResult
|
|
587
|
-
},
|
|
588
|
-
default: {
|
|
589
|
-
bodyMapper: ErrorResponse
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
queryParameters: [apiVersion],
|
|
593
|
-
urlParameters: [$host],
|
|
594
|
-
headerParameters: [accept],
|
|
595
|
-
serializer: serializer$1
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
/*
|
|
599
|
-
* Copyright (c) Microsoft Corporation.
|
|
600
|
-
* Licensed under the MIT License.
|
|
601
|
-
*
|
|
602
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
603
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
604
|
-
*/
|
|
605
|
-
/// <reference lib="esnext.asynciterable" />
|
|
606
|
-
/** Class containing Workspaces operations. */
|
|
607
|
-
class WorkspacesImpl {
|
|
608
|
-
/**
|
|
609
|
-
* Initialize a new instance of the class Workspaces class.
|
|
610
|
-
* @param client Reference to the service client
|
|
611
|
-
*/
|
|
612
|
-
constructor(client) {
|
|
613
|
-
this.client = client;
|
|
614
|
-
}
|
|
615
|
-
/**
|
|
616
|
-
* Lists all the available machine learning workspaces under the specified resource group.
|
|
617
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
618
|
-
* belongs.
|
|
619
|
-
* @param options The options parameters.
|
|
620
|
-
*/
|
|
621
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
622
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
623
|
-
return {
|
|
624
|
-
next() {
|
|
625
|
-
return iter.next();
|
|
626
|
-
},
|
|
627
|
-
[Symbol.asyncIterator]() {
|
|
628
|
-
return this;
|
|
629
|
-
},
|
|
630
|
-
byPage: (settings) => {
|
|
631
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
632
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
633
|
-
}
|
|
634
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
639
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
640
|
-
let result;
|
|
641
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
642
|
-
if (!continuationToken) {
|
|
643
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
644
|
-
let page = result.value || [];
|
|
645
|
-
continuationToken = result.nextLink;
|
|
646
|
-
setContinuationToken(page, continuationToken);
|
|
647
|
-
yield yield tslib.__await(page);
|
|
648
|
-
}
|
|
649
|
-
while (continuationToken) {
|
|
650
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
651
|
-
continuationToken = result.nextLink;
|
|
652
|
-
let page = result.value || [];
|
|
653
|
-
setContinuationToken(page, continuationToken);
|
|
654
|
-
yield yield tslib.__await(page);
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
659
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
660
|
-
var _a, e_1, _b, _c;
|
|
661
|
-
try {
|
|
662
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
663
|
-
_c = _f.value;
|
|
664
|
-
_d = false;
|
|
665
|
-
const page = _c;
|
|
666
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
670
|
-
finally {
|
|
671
|
-
try {
|
|
672
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
673
|
-
}
|
|
674
|
-
finally { if (e_1) throw e_1.error; }
|
|
675
|
-
}
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Lists all the available machine learning workspaces under the specified subscription.
|
|
680
|
-
* @param options The options parameters.
|
|
681
|
-
*/
|
|
682
|
-
list(options) {
|
|
683
|
-
const iter = this.listPagingAll(options);
|
|
684
|
-
return {
|
|
685
|
-
next() {
|
|
686
|
-
return iter.next();
|
|
687
|
-
},
|
|
688
|
-
[Symbol.asyncIterator]() {
|
|
689
|
-
return this;
|
|
690
|
-
},
|
|
691
|
-
byPage: (settings) => {
|
|
692
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
693
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
694
|
-
}
|
|
695
|
-
return this.listPagingPage(options, settings);
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
listPagingPage(options, settings) {
|
|
700
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
701
|
-
let result;
|
|
702
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
703
|
-
if (!continuationToken) {
|
|
704
|
-
result = yield tslib.__await(this._list(options));
|
|
705
|
-
let page = result.value || [];
|
|
706
|
-
continuationToken = result.nextLink;
|
|
707
|
-
setContinuationToken(page, continuationToken);
|
|
708
|
-
yield yield tslib.__await(page);
|
|
709
|
-
}
|
|
710
|
-
while (continuationToken) {
|
|
711
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
712
|
-
continuationToken = result.nextLink;
|
|
713
|
-
let page = result.value || [];
|
|
714
|
-
setContinuationToken(page, continuationToken);
|
|
715
|
-
yield yield tslib.__await(page);
|
|
716
|
-
}
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
listPagingAll(options) {
|
|
720
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
721
|
-
var _a, e_2, _b, _c;
|
|
722
|
-
try {
|
|
723
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
724
|
-
_c = _f.value;
|
|
725
|
-
_d = false;
|
|
726
|
-
const page = _c;
|
|
727
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
731
|
-
finally {
|
|
732
|
-
try {
|
|
733
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
734
|
-
}
|
|
735
|
-
finally { if (e_2) throw e_2.error; }
|
|
736
|
-
}
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* Gets the properties of the specified machine learning workspace.
|
|
741
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
742
|
-
* belongs.
|
|
743
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
744
|
-
* @param options The options parameters.
|
|
745
|
-
*/
|
|
746
|
-
get(resourceGroupName, workspaceName, options) {
|
|
747
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
748
|
-
}
|
|
749
|
-
/**
|
|
750
|
-
* Creates or updates a workspace with the specified parameters.
|
|
751
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
752
|
-
* belongs.
|
|
753
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
754
|
-
* @param parameters The parameters for creating or updating a machine learning workspace.
|
|
755
|
-
* @param options The options parameters.
|
|
756
|
-
*/
|
|
757
|
-
createOrUpdate(resourceGroupName, workspaceName, parameters, options) {
|
|
758
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* Deletes a machine learning workspace.
|
|
762
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
763
|
-
* belongs.
|
|
764
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
765
|
-
* @param options The options parameters.
|
|
766
|
-
*/
|
|
767
|
-
delete(resourceGroupName, workspaceName, options) {
|
|
768
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
769
|
-
}
|
|
770
|
-
/**
|
|
771
|
-
* Updates a machine learning workspace with the specified parameters.
|
|
772
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
773
|
-
* belongs.
|
|
774
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
775
|
-
* @param parameters The parameters for updating a machine learning workspace.
|
|
776
|
-
* @param options The options parameters.
|
|
777
|
-
*/
|
|
778
|
-
update(resourceGroupName, workspaceName, parameters, options) {
|
|
779
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* Resync storage keys associated with this workspace.
|
|
783
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
784
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
785
|
-
* belongs.
|
|
786
|
-
* @param options The options parameters.
|
|
787
|
-
*/
|
|
788
|
-
resyncStorageKeys(workspaceName, resourceGroupName, options) {
|
|
789
|
-
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, resyncStorageKeysOperationSpec);
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* List the authorization keys associated with this workspace.
|
|
793
|
-
* @param workspaceName The name of the machine learning workspace.
|
|
794
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
795
|
-
* belongs.
|
|
796
|
-
* @param options The options parameters.
|
|
797
|
-
*/
|
|
798
|
-
listWorkspaceKeys(workspaceName, resourceGroupName, options) {
|
|
799
|
-
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, listWorkspaceKeysOperationSpec);
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* Lists all the available machine learning workspaces under the specified resource group.
|
|
803
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
804
|
-
* belongs.
|
|
805
|
-
* @param options The options parameters.
|
|
806
|
-
*/
|
|
807
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
808
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
809
|
-
}
|
|
810
|
-
/**
|
|
811
|
-
* Lists all the available machine learning workspaces under the specified subscription.
|
|
812
|
-
* @param options The options parameters.
|
|
813
|
-
*/
|
|
814
|
-
_list(options) {
|
|
815
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
816
|
-
}
|
|
817
|
-
/**
|
|
818
|
-
* ListByResourceGroupNext
|
|
819
|
-
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
820
|
-
* belongs.
|
|
821
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
822
|
-
* @param options The options parameters.
|
|
823
|
-
*/
|
|
824
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
825
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* ListNext
|
|
829
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
830
|
-
* @param options The options parameters.
|
|
831
|
-
*/
|
|
832
|
-
_listNext(nextLink, options) {
|
|
833
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
// Operation Specifications
|
|
837
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
838
|
-
const getOperationSpec = {
|
|
839
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
840
|
-
httpMethod: "GET",
|
|
841
|
-
responses: {
|
|
842
|
-
200: {
|
|
843
|
-
bodyMapper: Workspace
|
|
844
|
-
},
|
|
845
|
-
default: {
|
|
846
|
-
bodyMapper: ErrorResponse
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
queryParameters: [apiVersion],
|
|
850
|
-
urlParameters: [
|
|
851
|
-
$host,
|
|
852
|
-
subscriptionId,
|
|
853
|
-
resourceGroupName,
|
|
854
|
-
workspaceName
|
|
855
|
-
],
|
|
856
|
-
headerParameters: [accept],
|
|
857
|
-
serializer
|
|
858
|
-
};
|
|
859
|
-
const createOrUpdateOperationSpec = {
|
|
860
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
861
|
-
httpMethod: "PUT",
|
|
862
|
-
responses: {
|
|
863
|
-
200: {
|
|
864
|
-
bodyMapper: Workspace
|
|
865
|
-
},
|
|
866
|
-
default: {
|
|
867
|
-
bodyMapper: ErrorResponse
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
requestBody: parameters,
|
|
871
|
-
queryParameters: [apiVersion],
|
|
872
|
-
urlParameters: [
|
|
873
|
-
$host,
|
|
874
|
-
subscriptionId,
|
|
875
|
-
resourceGroupName,
|
|
876
|
-
workspaceName
|
|
877
|
-
],
|
|
878
|
-
headerParameters: [accept, contentType],
|
|
879
|
-
mediaType: "json",
|
|
880
|
-
serializer
|
|
881
|
-
};
|
|
882
|
-
const deleteOperationSpec = {
|
|
883
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
884
|
-
httpMethod: "DELETE",
|
|
885
|
-
responses: {
|
|
886
|
-
200: {},
|
|
887
|
-
204: {},
|
|
888
|
-
default: {
|
|
889
|
-
bodyMapper: ErrorResponse
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
queryParameters: [apiVersion],
|
|
893
|
-
urlParameters: [
|
|
894
|
-
$host,
|
|
895
|
-
subscriptionId,
|
|
896
|
-
resourceGroupName,
|
|
897
|
-
workspaceName
|
|
898
|
-
],
|
|
899
|
-
headerParameters: [accept],
|
|
900
|
-
serializer
|
|
901
|
-
};
|
|
902
|
-
const updateOperationSpec = {
|
|
903
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
904
|
-
httpMethod: "PATCH",
|
|
905
|
-
responses: {
|
|
906
|
-
200: {
|
|
907
|
-
bodyMapper: Workspace
|
|
908
|
-
},
|
|
909
|
-
default: {
|
|
910
|
-
bodyMapper: ErrorResponse
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
requestBody: parameters1,
|
|
914
|
-
queryParameters: [apiVersion],
|
|
915
|
-
urlParameters: [
|
|
916
|
-
$host,
|
|
917
|
-
subscriptionId,
|
|
918
|
-
resourceGroupName,
|
|
919
|
-
workspaceName
|
|
920
|
-
],
|
|
921
|
-
headerParameters: [accept, contentType],
|
|
922
|
-
mediaType: "json",
|
|
923
|
-
serializer
|
|
924
|
-
};
|
|
925
|
-
const resyncStorageKeysOperationSpec = {
|
|
926
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
|
|
927
|
-
httpMethod: "POST",
|
|
928
|
-
responses: {
|
|
929
|
-
200: {},
|
|
930
|
-
default: {
|
|
931
|
-
bodyMapper: ErrorResponse
|
|
932
|
-
}
|
|
933
|
-
},
|
|
934
|
-
queryParameters: [apiVersion],
|
|
935
|
-
urlParameters: [
|
|
936
|
-
$host,
|
|
937
|
-
subscriptionId,
|
|
938
|
-
resourceGroupName,
|
|
939
|
-
workspaceName
|
|
940
|
-
],
|
|
941
|
-
headerParameters: [accept],
|
|
942
|
-
serializer
|
|
943
|
-
};
|
|
944
|
-
const listWorkspaceKeysOperationSpec = {
|
|
945
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
|
|
946
|
-
httpMethod: "POST",
|
|
947
|
-
responses: {
|
|
948
|
-
200: {
|
|
949
|
-
bodyMapper: WorkspaceKeysResponse
|
|
950
|
-
},
|
|
951
|
-
default: {
|
|
952
|
-
bodyMapper: ErrorResponse
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
queryParameters: [apiVersion],
|
|
956
|
-
urlParameters: [
|
|
957
|
-
$host,
|
|
958
|
-
subscriptionId,
|
|
959
|
-
resourceGroupName,
|
|
960
|
-
workspaceName
|
|
961
|
-
],
|
|
962
|
-
headerParameters: [accept],
|
|
963
|
-
serializer
|
|
964
|
-
};
|
|
965
|
-
const listByResourceGroupOperationSpec = {
|
|
966
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
|
|
967
|
-
httpMethod: "GET",
|
|
968
|
-
responses: {
|
|
969
|
-
200: {
|
|
970
|
-
bodyMapper: WorkspaceListResult
|
|
971
|
-
},
|
|
972
|
-
default: {
|
|
973
|
-
bodyMapper: ErrorResponse
|
|
974
|
-
}
|
|
975
|
-
},
|
|
976
|
-
queryParameters: [apiVersion],
|
|
977
|
-
urlParameters: [
|
|
978
|
-
$host,
|
|
979
|
-
subscriptionId,
|
|
980
|
-
resourceGroupName
|
|
981
|
-
],
|
|
982
|
-
headerParameters: [accept],
|
|
983
|
-
serializer
|
|
984
|
-
};
|
|
985
|
-
const listOperationSpec = {
|
|
986
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
|
|
987
|
-
httpMethod: "GET",
|
|
988
|
-
responses: {
|
|
989
|
-
200: {
|
|
990
|
-
bodyMapper: WorkspaceListResult
|
|
991
|
-
},
|
|
992
|
-
default: {
|
|
993
|
-
bodyMapper: ErrorResponse
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
queryParameters: [apiVersion],
|
|
997
|
-
urlParameters: [$host, subscriptionId],
|
|
998
|
-
headerParameters: [accept],
|
|
999
|
-
serializer
|
|
1000
|
-
};
|
|
1001
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1002
|
-
path: "{nextLink}",
|
|
1003
|
-
httpMethod: "GET",
|
|
1004
|
-
responses: {
|
|
1005
|
-
200: {
|
|
1006
|
-
bodyMapper: WorkspaceListResult
|
|
1007
|
-
},
|
|
1008
|
-
default: {
|
|
1009
|
-
bodyMapper: ErrorResponse
|
|
1010
|
-
}
|
|
1011
|
-
},
|
|
1012
|
-
queryParameters: [apiVersion],
|
|
1013
|
-
urlParameters: [
|
|
1014
|
-
$host,
|
|
1015
|
-
subscriptionId,
|
|
1016
|
-
resourceGroupName,
|
|
1017
|
-
nextLink
|
|
1018
|
-
],
|
|
1019
|
-
headerParameters: [accept],
|
|
1020
|
-
serializer
|
|
1021
|
-
};
|
|
1022
|
-
const listNextOperationSpec = {
|
|
1023
|
-
path: "{nextLink}",
|
|
1024
|
-
httpMethod: "GET",
|
|
1025
|
-
responses: {
|
|
1026
|
-
200: {
|
|
1027
|
-
bodyMapper: WorkspaceListResult
|
|
1028
|
-
},
|
|
1029
|
-
default: {
|
|
1030
|
-
bodyMapper: ErrorResponse
|
|
1031
|
-
}
|
|
1032
|
-
},
|
|
1033
|
-
queryParameters: [apiVersion],
|
|
1034
|
-
urlParameters: [
|
|
1035
|
-
$host,
|
|
1036
|
-
subscriptionId,
|
|
1037
|
-
nextLink
|
|
1038
|
-
],
|
|
1039
|
-
headerParameters: [accept],
|
|
1040
|
-
serializer
|
|
1041
|
-
};
|
|
1042
|
-
|
|
1043
|
-
/*
|
|
1044
|
-
* Copyright (c) Microsoft Corporation.
|
|
1045
|
-
* Licensed under the MIT License.
|
|
1046
|
-
*
|
|
1047
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1048
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1049
|
-
*/
|
|
1050
|
-
class MachineLearningWorkspacesManagementClient extends coreClient__namespace.ServiceClient {
|
|
1051
|
-
/**
|
|
1052
|
-
* Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
|
|
1053
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1054
|
-
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
1055
|
-
* @param options The parameter options
|
|
1056
|
-
*/
|
|
1057
|
-
constructor(credentials, subscriptionId, options) {
|
|
1058
|
-
var _a, _b, _c;
|
|
1059
|
-
if (credentials === undefined) {
|
|
1060
|
-
throw new Error("'credentials' cannot be null");
|
|
1061
|
-
}
|
|
1062
|
-
if (subscriptionId === undefined) {
|
|
1063
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1064
|
-
}
|
|
1065
|
-
// Initializing default values for options
|
|
1066
|
-
if (!options) {
|
|
1067
|
-
options = {};
|
|
1068
|
-
}
|
|
1069
|
-
const defaults = {
|
|
1070
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1071
|
-
credential: credentials
|
|
1072
|
-
};
|
|
1073
|
-
const packageDetails = `azsdk-js-arm-workspaces/1.1.1`;
|
|
1074
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1075
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1076
|
-
: `${packageDetails}`;
|
|
1077
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1078
|
-
userAgentPrefix
|
|
1079
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1080
|
-
super(optionsWithDefaults);
|
|
1081
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1082
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1083
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1084
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1085
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1086
|
-
}
|
|
1087
|
-
if (!options ||
|
|
1088
|
-
!options.pipeline ||
|
|
1089
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1090
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1091
|
-
this.pipeline.removePolicy({
|
|
1092
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1093
|
-
});
|
|
1094
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1095
|
-
credential: credentials,
|
|
1096
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1097
|
-
challengeCallbacks: {
|
|
1098
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1099
|
-
}
|
|
1100
|
-
}));
|
|
1101
|
-
}
|
|
1102
|
-
// Parameter assignments
|
|
1103
|
-
this.subscriptionId = subscriptionId;
|
|
1104
|
-
// Assigning values to Constant parameters
|
|
1105
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1106
|
-
this.apiVersion = options.apiVersion || "2019-10-01";
|
|
1107
|
-
this.operations = new OperationsImpl(this);
|
|
1108
|
-
this.workspaces = new WorkspacesImpl(this);
|
|
1109
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1110
|
-
}
|
|
1111
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1112
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1113
|
-
if (!apiVersion) {
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
|
-
const apiVersionPolicy = {
|
|
1117
|
-
name: "CustomApiVersionPolicy",
|
|
1118
|
-
sendRequest(request, next) {
|
|
1119
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1120
|
-
const param = request.url.split("?");
|
|
1121
|
-
if (param.length > 1) {
|
|
1122
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1123
|
-
if (item.indexOf("api-version") > -1) {
|
|
1124
|
-
return "api-version=" + apiVersion;
|
|
1125
|
-
}
|
|
1126
|
-
else {
|
|
1127
|
-
return item;
|
|
1128
|
-
}
|
|
1129
|
-
});
|
|
1130
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1131
|
-
}
|
|
1132
|
-
return next(request);
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
exports.MachineLearningWorkspacesManagementClient = MachineLearningWorkspacesManagementClient;
|
|
1141
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1142
|
-
//# sourceMappingURL=index.js.map
|