@azure/arm-devspaces 2.1.1-alpha.20250115.1 → 2.1.1-alpha.20250116.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/{dist-esm/src → dist/browser}/devSpacesManagementClient.d.ts +2 -2
- package/dist/browser/devSpacesManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/devSpacesManagementClient.js +15 -18
- package/dist/browser/devSpacesManagementClient.js.map +1 -0
- 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/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.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-esm/src → dist/browser}/operations/containerHostMappings.d.ts +3 -3
- package/dist/browser/operations/containerHostMappings.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerHostMappings.js +2 -2
- package/dist/browser/operations/containerHostMappings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/controllers.d.ts +3 -3
- package/dist/browser/operations/controllers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/controllers.js +69 -77
- package/dist/browser/operations/controllers.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- 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 +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/containerHostMappings.d.ts +1 -1
- package/dist/browser/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/controllers.d.ts +1 -1
- package/dist/browser/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/controllers.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
- 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/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/devSpacesManagementClient.d.ts +22 -0
- package/dist/commonjs/devSpacesManagementClient.d.ts.map +1 -0
- package/dist/commonjs/devSpacesManagementClient.js +104 -0
- package/dist/commonjs/devSpacesManagementClient.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/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +296 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +41 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +23 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +411 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +132 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/containerHostMappings.d.ts +23 -0
- package/dist/commonjs/operations/containerHostMappings.d.ts.map +1 -0
- package/dist/commonjs/operations/containerHostMappings.js +64 -0
- package/dist/commonjs/operations/containerHostMappings.js.map +1 -0
- package/dist/commonjs/operations/controllers.d.ts +111 -0
- package/dist/commonjs/operations/controllers.d.ts.map +1 -0
- package/dist/commonjs/operations/controllers.js +517 -0
- package/dist/commonjs/operations/controllers.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +34 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +134 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerHostMappings.d.ts +15 -0
- package/dist/commonjs/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerHostMappings.js +10 -0
- package/dist/commonjs/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/controllers.d.ts +74 -0
- package/dist/commonjs/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/controllers.js +10 -0
- package/dist/commonjs/operationsInterfaces/controllers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +12 -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/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/devSpacesManagementClient.d.ts +22 -0
- package/dist/esm/devSpacesManagementClient.d.ts.map +1 -0
- package/dist/esm/devSpacesManagementClient.js +99 -0
- package/dist/esm/devSpacesManagementClient.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/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +296 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +38 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +23 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +408 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +129 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/containerHostMappings.d.ts +23 -0
- package/dist/esm/operations/containerHostMappings.d.ts.map +1 -0
- package/dist/esm/operations/containerHostMappings.js +59 -0
- package/dist/esm/operations/containerHostMappings.js.map +1 -0
- package/dist/esm/operations/controllers.d.ts +111 -0
- package/dist/esm/operations/controllers.d.ts.map +1 -0
- package/dist/esm/operations/controllers.js +513 -0
- package/dist/esm/operations/controllers.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +34 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +130 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/containerHostMappings.d.ts +15 -0
- package/dist/esm/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/containerHostMappings.js} +2 -4
- package/dist/esm/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/dist/esm/operationsInterfaces/controllers.d.ts +74 -0
- package/dist/esm/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/controllers.js +9 -0
- package/dist/esm/operationsInterfaces/controllers.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +12 -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/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/devSpacesManagementClient.d.ts +22 -0
- package/dist/react-native/devSpacesManagementClient.d.ts.map +1 -0
- package/dist/react-native/devSpacesManagementClient.js +99 -0
- package/dist/react-native/devSpacesManagementClient.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/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +296 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +38 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +23 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +408 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +129 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/containerHostMappings.d.ts +23 -0
- package/dist/react-native/operations/containerHostMappings.d.ts.map +1 -0
- package/dist/react-native/operations/containerHostMappings.js +59 -0
- package/dist/react-native/operations/containerHostMappings.js.map +1 -0
- package/dist/react-native/operations/controllers.d.ts +111 -0
- package/dist/react-native/operations/controllers.d.ts.map +1 -0
- package/dist/react-native/operations/controllers.js +513 -0
- package/dist/react-native/operations/controllers.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +34 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +130 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/containerHostMappings.d.ts +15 -0
- package/dist/react-native/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/containerHostMappings.js +9 -0
- package/dist/react-native/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/dist/react-native/operationsInterfaces/controllers.d.ts +74 -0
- package/dist/react-native/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/controllers.js +9 -0
- package/dist/react-native/operationsInterfaces/controllers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +12 -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/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 +58 -28
- package/dist/index.js +0 -1481
- 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/containerHostMappingsGetContainerHostMappingSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.js +0 -34
- package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersCreateSample.js +0 -38
- package/dist-esm/samples-dev/controllersCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersDeleteSample.js +0 -31
- package/dist-esm/samples-dev/controllersDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersGetSample.js +0 -31
- package/dist-esm/samples-dev/controllersGetSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersListByResourceGroupSample.js +0 -46
- package/dist-esm/samples-dev/controllersListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersListConnectionDetailsSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersListConnectionDetailsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersListConnectionDetailsSample.js +0 -34
- package/dist-esm/samples-dev/controllersListConnectionDetailsSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersListSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersListSample.js +0 -45
- package/dist-esm/samples-dev/controllersListSample.js.map +0 -1
- package/dist-esm/samples-dev/controllersUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/controllersUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/controllersUpdateSample.js +0 -35
- package/dist-esm/samples-dev/controllersUpdateSample.js.map +0 -1
- package/dist-esm/src/devSpacesManagementClient.d.ts.map +0 -1
- package/dist-esm/src/devSpacesManagementClient.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/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.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/containerHostMappings.d.ts.map +0 -1
- package/dist-esm/src/operations/containerHostMappings.js.map +0 -1
- package/dist-esm/src/operations/controllers.d.ts.map +0 -1
- package/dist-esm/src/operations/controllers.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- 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/operationsInterfaces/containerHostMappings.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerHostMappings.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/controllers.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/controllers.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.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/devSpacesManagementClient.ts +0 -152
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -353
- package/src/models/mappers.ts +0 -444
- package/src/models/parameters.ts +0 -152
- package/src/operations/containerHostMappings.ts +0 -80
- package/src/operations/controllers.ts +0 -673
- package/src/operations/operations.ts +0 -146
- package/src/operationsInterfaces/containerHostMappings.ts +0 -32
- package/src/operationsInterfaces/controllers.ts +0 -140
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/operations.ts +0 -26
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-devspaces.d.ts +0 -471
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /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/containerHostMappings.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/controllers.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.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,1481 +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
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given a result page from a pageable operation, returns a
|
|
40
|
-
* continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage().
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
70
|
-
exports.KnownProvisioningState = void 0;
|
|
71
|
-
(function (KnownProvisioningState) {
|
|
72
|
-
/** Succeeded */
|
|
73
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
74
|
-
/** Failed */
|
|
75
|
-
KnownProvisioningState["Failed"] = "Failed";
|
|
76
|
-
/** Canceled */
|
|
77
|
-
KnownProvisioningState["Canceled"] = "Canceled";
|
|
78
|
-
/** Updating */
|
|
79
|
-
KnownProvisioningState["Updating"] = "Updating";
|
|
80
|
-
/** Creating */
|
|
81
|
-
KnownProvisioningState["Creating"] = "Creating";
|
|
82
|
-
/** Deleting */
|
|
83
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
|
84
|
-
/** Deleted */
|
|
85
|
-
KnownProvisioningState["Deleted"] = "Deleted";
|
|
86
|
-
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
87
|
-
/** Known values of {@link SkuName} that the service accepts. */
|
|
88
|
-
exports.KnownSkuName = void 0;
|
|
89
|
-
(function (KnownSkuName) {
|
|
90
|
-
/** S1 */
|
|
91
|
-
KnownSkuName["S1"] = "S1";
|
|
92
|
-
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
93
|
-
/** Known values of {@link SkuTier} that the service accepts. */
|
|
94
|
-
exports.KnownSkuTier = void 0;
|
|
95
|
-
(function (KnownSkuTier) {
|
|
96
|
-
/** Standard */
|
|
97
|
-
KnownSkuTier["Standard"] = "Standard";
|
|
98
|
-
})(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
|
|
99
|
-
|
|
100
|
-
/*
|
|
101
|
-
* Copyright (c) Microsoft Corporation.
|
|
102
|
-
* Licensed under the MIT License.
|
|
103
|
-
*
|
|
104
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
105
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
106
|
-
*/
|
|
107
|
-
const ContainerHostMapping = {
|
|
108
|
-
type: {
|
|
109
|
-
name: "Composite",
|
|
110
|
-
className: "ContainerHostMapping",
|
|
111
|
-
modelProperties: {
|
|
112
|
-
containerHostResourceId: {
|
|
113
|
-
serializedName: "containerHostResourceId",
|
|
114
|
-
type: {
|
|
115
|
-
name: "String"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
mappedControllerResourceId: {
|
|
119
|
-
serializedName: "mappedControllerResourceId",
|
|
120
|
-
readOnly: true,
|
|
121
|
-
type: {
|
|
122
|
-
name: "String"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
const DevSpacesErrorResponse = {
|
|
129
|
-
type: {
|
|
130
|
-
name: "Composite",
|
|
131
|
-
className: "DevSpacesErrorResponse",
|
|
132
|
-
modelProperties: {
|
|
133
|
-
error: {
|
|
134
|
-
serializedName: "error",
|
|
135
|
-
type: {
|
|
136
|
-
name: "Composite",
|
|
137
|
-
className: "ErrorDetails"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const ErrorDetails = {
|
|
144
|
-
type: {
|
|
145
|
-
name: "Composite",
|
|
146
|
-
className: "ErrorDetails",
|
|
147
|
-
modelProperties: {
|
|
148
|
-
code: {
|
|
149
|
-
serializedName: "code",
|
|
150
|
-
readOnly: true,
|
|
151
|
-
type: {
|
|
152
|
-
name: "String"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
message: {
|
|
156
|
-
serializedName: "message",
|
|
157
|
-
readOnly: true,
|
|
158
|
-
type: {
|
|
159
|
-
name: "String"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
target: {
|
|
163
|
-
serializedName: "target",
|
|
164
|
-
readOnly: true,
|
|
165
|
-
type: {
|
|
166
|
-
name: "String"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
const ResourceProviderOperationList = {
|
|
173
|
-
type: {
|
|
174
|
-
name: "Composite",
|
|
175
|
-
className: "ResourceProviderOperationList",
|
|
176
|
-
modelProperties: {
|
|
177
|
-
value: {
|
|
178
|
-
serializedName: "value",
|
|
179
|
-
type: {
|
|
180
|
-
name: "Sequence",
|
|
181
|
-
element: {
|
|
182
|
-
type: {
|
|
183
|
-
name: "Composite",
|
|
184
|
-
className: "ResourceProviderOperationDefinition"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
nextLink: {
|
|
190
|
-
serializedName: "nextLink",
|
|
191
|
-
readOnly: true,
|
|
192
|
-
type: {
|
|
193
|
-
name: "String"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
const ResourceProviderOperationDefinition = {
|
|
200
|
-
type: {
|
|
201
|
-
name: "Composite",
|
|
202
|
-
className: "ResourceProviderOperationDefinition",
|
|
203
|
-
modelProperties: {
|
|
204
|
-
name: {
|
|
205
|
-
serializedName: "name",
|
|
206
|
-
type: {
|
|
207
|
-
name: "String"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
display: {
|
|
211
|
-
serializedName: "display",
|
|
212
|
-
type: {
|
|
213
|
-
name: "Composite",
|
|
214
|
-
className: "ResourceProviderOperationDisplay"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
const ResourceProviderOperationDisplay = {
|
|
221
|
-
type: {
|
|
222
|
-
name: "Composite",
|
|
223
|
-
className: "ResourceProviderOperationDisplay",
|
|
224
|
-
modelProperties: {
|
|
225
|
-
provider: {
|
|
226
|
-
serializedName: "provider",
|
|
227
|
-
type: {
|
|
228
|
-
name: "String"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
resource: {
|
|
232
|
-
serializedName: "resource",
|
|
233
|
-
type: {
|
|
234
|
-
name: "String"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
operation: {
|
|
238
|
-
serializedName: "operation",
|
|
239
|
-
type: {
|
|
240
|
-
name: "String"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
description: {
|
|
244
|
-
serializedName: "description",
|
|
245
|
-
type: {
|
|
246
|
-
name: "String"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
const Sku = {
|
|
253
|
-
type: {
|
|
254
|
-
name: "Composite",
|
|
255
|
-
className: "Sku",
|
|
256
|
-
modelProperties: {
|
|
257
|
-
name: {
|
|
258
|
-
serializedName: "name",
|
|
259
|
-
required: true,
|
|
260
|
-
type: {
|
|
261
|
-
name: "String"
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
tier: {
|
|
265
|
-
serializedName: "tier",
|
|
266
|
-
type: {
|
|
267
|
-
name: "String"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
const Resource = {
|
|
274
|
-
type: {
|
|
275
|
-
name: "Composite",
|
|
276
|
-
className: "Resource",
|
|
277
|
-
modelProperties: {
|
|
278
|
-
id: {
|
|
279
|
-
serializedName: "id",
|
|
280
|
-
readOnly: true,
|
|
281
|
-
type: {
|
|
282
|
-
name: "String"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
name: {
|
|
286
|
-
serializedName: "name",
|
|
287
|
-
readOnly: true,
|
|
288
|
-
type: {
|
|
289
|
-
name: "String"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
type: {
|
|
293
|
-
serializedName: "type",
|
|
294
|
-
readOnly: true,
|
|
295
|
-
type: {
|
|
296
|
-
name: "String"
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
const ControllerUpdateParameters = {
|
|
303
|
-
type: {
|
|
304
|
-
name: "Composite",
|
|
305
|
-
className: "ControllerUpdateParameters",
|
|
306
|
-
modelProperties: {
|
|
307
|
-
tags: {
|
|
308
|
-
serializedName: "tags",
|
|
309
|
-
type: {
|
|
310
|
-
name: "Dictionary",
|
|
311
|
-
value: { type: { name: "String" } }
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
targetContainerHostCredentialsBase64: {
|
|
315
|
-
serializedName: "properties.targetContainerHostCredentialsBase64",
|
|
316
|
-
type: {
|
|
317
|
-
name: "String"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
const ControllerList = {
|
|
324
|
-
type: {
|
|
325
|
-
name: "Composite",
|
|
326
|
-
className: "ControllerList",
|
|
327
|
-
modelProperties: {
|
|
328
|
-
value: {
|
|
329
|
-
serializedName: "value",
|
|
330
|
-
type: {
|
|
331
|
-
name: "Sequence",
|
|
332
|
-
element: {
|
|
333
|
-
type: {
|
|
334
|
-
name: "Composite",
|
|
335
|
-
className: "Controller"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
nextLink: {
|
|
341
|
-
serializedName: "nextLink",
|
|
342
|
-
readOnly: true,
|
|
343
|
-
type: {
|
|
344
|
-
name: "String"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
const ListConnectionDetailsParameters = {
|
|
351
|
-
type: {
|
|
352
|
-
name: "Composite",
|
|
353
|
-
className: "ListConnectionDetailsParameters",
|
|
354
|
-
modelProperties: {
|
|
355
|
-
targetContainerHostResourceId: {
|
|
356
|
-
serializedName: "targetContainerHostResourceId",
|
|
357
|
-
required: true,
|
|
358
|
-
type: {
|
|
359
|
-
name: "String"
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
const ControllerConnectionDetailsList = {
|
|
366
|
-
type: {
|
|
367
|
-
name: "Composite",
|
|
368
|
-
className: "ControllerConnectionDetailsList",
|
|
369
|
-
modelProperties: {
|
|
370
|
-
connectionDetailsList: {
|
|
371
|
-
serializedName: "connectionDetailsList",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Sequence",
|
|
374
|
-
element: {
|
|
375
|
-
type: {
|
|
376
|
-
name: "Composite",
|
|
377
|
-
className: "ControllerConnectionDetails"
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
const ControllerConnectionDetails = {
|
|
386
|
-
type: {
|
|
387
|
-
name: "Composite",
|
|
388
|
-
className: "ControllerConnectionDetails",
|
|
389
|
-
modelProperties: {
|
|
390
|
-
orchestratorSpecificConnectionDetails: {
|
|
391
|
-
serializedName: "orchestratorSpecificConnectionDetails",
|
|
392
|
-
type: {
|
|
393
|
-
name: "Composite",
|
|
394
|
-
className: "OrchestratorSpecificConnectionDetails"
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
const OrchestratorSpecificConnectionDetails = {
|
|
401
|
-
type: {
|
|
402
|
-
name: "Composite",
|
|
403
|
-
className: "OrchestratorSpecificConnectionDetails",
|
|
404
|
-
uberParent: "OrchestratorSpecificConnectionDetails",
|
|
405
|
-
polymorphicDiscriminator: {
|
|
406
|
-
serializedName: "instanceType",
|
|
407
|
-
clientName: "instanceType"
|
|
408
|
-
},
|
|
409
|
-
modelProperties: {
|
|
410
|
-
instanceType: {
|
|
411
|
-
serializedName: "instanceType",
|
|
412
|
-
required: true,
|
|
413
|
-
readOnly: true,
|
|
414
|
-
type: {
|
|
415
|
-
name: "String"
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
const TrackedResource = {
|
|
422
|
-
type: {
|
|
423
|
-
name: "Composite",
|
|
424
|
-
className: "TrackedResource",
|
|
425
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
426
|
-
serializedName: "tags",
|
|
427
|
-
type: {
|
|
428
|
-
name: "Dictionary",
|
|
429
|
-
value: { type: { name: "String" } }
|
|
430
|
-
}
|
|
431
|
-
}, location: {
|
|
432
|
-
serializedName: "location",
|
|
433
|
-
type: {
|
|
434
|
-
name: "String"
|
|
435
|
-
}
|
|
436
|
-
} })
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
const KubernetesConnectionDetails = {
|
|
440
|
-
serializedName: "Kubernetes",
|
|
441
|
-
type: {
|
|
442
|
-
name: "Composite",
|
|
443
|
-
className: "KubernetesConnectionDetails",
|
|
444
|
-
uberParent: "OrchestratorSpecificConnectionDetails",
|
|
445
|
-
polymorphicDiscriminator: OrchestratorSpecificConnectionDetails.type.polymorphicDiscriminator,
|
|
446
|
-
modelProperties: Object.assign(Object.assign({}, OrchestratorSpecificConnectionDetails.type.modelProperties), { kubeConfig: {
|
|
447
|
-
serializedName: "kubeConfig",
|
|
448
|
-
type: {
|
|
449
|
-
name: "String"
|
|
450
|
-
}
|
|
451
|
-
} })
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
const Controller = {
|
|
455
|
-
type: {
|
|
456
|
-
name: "Composite",
|
|
457
|
-
className: "Controller",
|
|
458
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
459
|
-
serializedName: "sku",
|
|
460
|
-
type: {
|
|
461
|
-
name: "Composite",
|
|
462
|
-
className: "Sku"
|
|
463
|
-
}
|
|
464
|
-
}, provisioningState: {
|
|
465
|
-
serializedName: "properties.provisioningState",
|
|
466
|
-
readOnly: true,
|
|
467
|
-
type: {
|
|
468
|
-
name: "String"
|
|
469
|
-
}
|
|
470
|
-
}, hostSuffix: {
|
|
471
|
-
serializedName: "properties.hostSuffix",
|
|
472
|
-
readOnly: true,
|
|
473
|
-
type: {
|
|
474
|
-
name: "String"
|
|
475
|
-
}
|
|
476
|
-
}, dataPlaneFqdn: {
|
|
477
|
-
serializedName: "properties.dataPlaneFqdn",
|
|
478
|
-
readOnly: true,
|
|
479
|
-
type: {
|
|
480
|
-
name: "String"
|
|
481
|
-
}
|
|
482
|
-
}, targetContainerHostApiServerFqdn: {
|
|
483
|
-
serializedName: "properties.targetContainerHostApiServerFqdn",
|
|
484
|
-
readOnly: true,
|
|
485
|
-
type: {
|
|
486
|
-
name: "String"
|
|
487
|
-
}
|
|
488
|
-
}, targetContainerHostResourceId: {
|
|
489
|
-
serializedName: "properties.targetContainerHostResourceId",
|
|
490
|
-
required: true,
|
|
491
|
-
type: {
|
|
492
|
-
name: "String"
|
|
493
|
-
}
|
|
494
|
-
}, targetContainerHostCredentialsBase64: {
|
|
495
|
-
serializedName: "properties.targetContainerHostCredentialsBase64",
|
|
496
|
-
required: true,
|
|
497
|
-
type: {
|
|
498
|
-
name: "String"
|
|
499
|
-
}
|
|
500
|
-
} })
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
let discriminators = {
|
|
504
|
-
OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails,
|
|
505
|
-
"OrchestratorSpecificConnectionDetails.Kubernetes": KubernetesConnectionDetails
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
509
|
-
__proto__: null,
|
|
510
|
-
ContainerHostMapping: ContainerHostMapping,
|
|
511
|
-
Controller: Controller,
|
|
512
|
-
ControllerConnectionDetails: ControllerConnectionDetails,
|
|
513
|
-
ControllerConnectionDetailsList: ControllerConnectionDetailsList,
|
|
514
|
-
ControllerList: ControllerList,
|
|
515
|
-
ControllerUpdateParameters: ControllerUpdateParameters,
|
|
516
|
-
DevSpacesErrorResponse: DevSpacesErrorResponse,
|
|
517
|
-
ErrorDetails: ErrorDetails,
|
|
518
|
-
KubernetesConnectionDetails: KubernetesConnectionDetails,
|
|
519
|
-
ListConnectionDetailsParameters: ListConnectionDetailsParameters,
|
|
520
|
-
OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails,
|
|
521
|
-
Resource: Resource,
|
|
522
|
-
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
|
523
|
-
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
524
|
-
ResourceProviderOperationList: ResourceProviderOperationList,
|
|
525
|
-
Sku: Sku,
|
|
526
|
-
TrackedResource: TrackedResource,
|
|
527
|
-
discriminators: discriminators
|
|
528
|
-
});
|
|
529
|
-
|
|
530
|
-
/*
|
|
531
|
-
* Copyright (c) Microsoft Corporation.
|
|
532
|
-
* Licensed under the MIT License.
|
|
533
|
-
*
|
|
534
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
535
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
536
|
-
*/
|
|
537
|
-
const contentType = {
|
|
538
|
-
parameterPath: ["options", "contentType"],
|
|
539
|
-
mapper: {
|
|
540
|
-
defaultValue: "application/json",
|
|
541
|
-
isConstant: true,
|
|
542
|
-
serializedName: "Content-Type",
|
|
543
|
-
type: {
|
|
544
|
-
name: "String"
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
const containerHostMapping = {
|
|
549
|
-
parameterPath: "containerHostMapping",
|
|
550
|
-
mapper: ContainerHostMapping
|
|
551
|
-
};
|
|
552
|
-
const accept = {
|
|
553
|
-
parameterPath: "accept",
|
|
554
|
-
mapper: {
|
|
555
|
-
defaultValue: "application/json",
|
|
556
|
-
isConstant: true,
|
|
557
|
-
serializedName: "Accept",
|
|
558
|
-
type: {
|
|
559
|
-
name: "String"
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
const $host = {
|
|
564
|
-
parameterPath: "$host",
|
|
565
|
-
mapper: {
|
|
566
|
-
serializedName: "$host",
|
|
567
|
-
required: true,
|
|
568
|
-
type: {
|
|
569
|
-
name: "String"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
skipEncoding: true
|
|
573
|
-
};
|
|
574
|
-
const apiVersion = {
|
|
575
|
-
parameterPath: "apiVersion",
|
|
576
|
-
mapper: {
|
|
577
|
-
defaultValue: "2019-04-01",
|
|
578
|
-
isConstant: true,
|
|
579
|
-
serializedName: "api-version",
|
|
580
|
-
type: {
|
|
581
|
-
name: "String"
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
const subscriptionId = {
|
|
586
|
-
parameterPath: "subscriptionId",
|
|
587
|
-
mapper: {
|
|
588
|
-
serializedName: "subscriptionId",
|
|
589
|
-
required: true,
|
|
590
|
-
type: {
|
|
591
|
-
name: "String"
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
const resourceGroupName = {
|
|
596
|
-
parameterPath: "resourceGroupName",
|
|
597
|
-
mapper: {
|
|
598
|
-
constraints: {
|
|
599
|
-
MaxLength: 90,
|
|
600
|
-
MinLength: 1
|
|
601
|
-
},
|
|
602
|
-
serializedName: "resourceGroupName",
|
|
603
|
-
required: true,
|
|
604
|
-
type: {
|
|
605
|
-
name: "String"
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
const location = {
|
|
610
|
-
parameterPath: "location",
|
|
611
|
-
mapper: {
|
|
612
|
-
serializedName: "location",
|
|
613
|
-
required: true,
|
|
614
|
-
type: {
|
|
615
|
-
name: "String"
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
const nextLink = {
|
|
620
|
-
parameterPath: "nextLink",
|
|
621
|
-
mapper: {
|
|
622
|
-
serializedName: "nextLink",
|
|
623
|
-
required: true,
|
|
624
|
-
type: {
|
|
625
|
-
name: "String"
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
skipEncoding: true
|
|
629
|
-
};
|
|
630
|
-
const name = {
|
|
631
|
-
parameterPath: "name",
|
|
632
|
-
mapper: {
|
|
633
|
-
constraints: {
|
|
634
|
-
Pattern: new RegExp("^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"),
|
|
635
|
-
MaxLength: 63,
|
|
636
|
-
MinLength: 1
|
|
637
|
-
},
|
|
638
|
-
serializedName: "name",
|
|
639
|
-
required: true,
|
|
640
|
-
type: {
|
|
641
|
-
name: "String"
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
const controller = {
|
|
646
|
-
parameterPath: "controller",
|
|
647
|
-
mapper: Controller
|
|
648
|
-
};
|
|
649
|
-
const controllerUpdateParameters = {
|
|
650
|
-
parameterPath: "controllerUpdateParameters",
|
|
651
|
-
mapper: ControllerUpdateParameters
|
|
652
|
-
};
|
|
653
|
-
const listConnectionDetailsParameters = {
|
|
654
|
-
parameterPath: "listConnectionDetailsParameters",
|
|
655
|
-
mapper: ListConnectionDetailsParameters
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
/*
|
|
659
|
-
* Copyright (c) Microsoft Corporation.
|
|
660
|
-
* Licensed under the MIT License.
|
|
661
|
-
*
|
|
662
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
663
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
664
|
-
*/
|
|
665
|
-
/** Class containing ContainerHostMappings operations. */
|
|
666
|
-
class ContainerHostMappingsImpl {
|
|
667
|
-
/**
|
|
668
|
-
* Initialize a new instance of the class ContainerHostMappings class.
|
|
669
|
-
* @param client Reference to the service client
|
|
670
|
-
*/
|
|
671
|
-
constructor(client) {
|
|
672
|
-
this.client = client;
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* Returns container host mapping object for a container host resource ID if an associated controller
|
|
676
|
-
* exists.
|
|
677
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
678
|
-
* @param location Location of the container host.
|
|
679
|
-
* @param containerHostMapping Container host mapping object specifying the Container host resource ID
|
|
680
|
-
* and its associated Controller resource.
|
|
681
|
-
* @param options The options parameters.
|
|
682
|
-
*/
|
|
683
|
-
getContainerHostMapping(resourceGroupName, location, containerHostMapping, options) {
|
|
684
|
-
return this.client.sendOperationRequest({ resourceGroupName, location, containerHostMapping, options }, getContainerHostMappingOperationSpec);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
// Operation Specifications
|
|
688
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
689
|
-
const getContainerHostMappingOperationSpec = {
|
|
690
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping",
|
|
691
|
-
httpMethod: "POST",
|
|
692
|
-
responses: {
|
|
693
|
-
200: {
|
|
694
|
-
bodyMapper: ContainerHostMapping
|
|
695
|
-
},
|
|
696
|
-
204: {},
|
|
697
|
-
default: {
|
|
698
|
-
bodyMapper: DevSpacesErrorResponse
|
|
699
|
-
}
|
|
700
|
-
},
|
|
701
|
-
requestBody: containerHostMapping,
|
|
702
|
-
queryParameters: [apiVersion],
|
|
703
|
-
urlParameters: [
|
|
704
|
-
$host,
|
|
705
|
-
subscriptionId,
|
|
706
|
-
resourceGroupName,
|
|
707
|
-
location
|
|
708
|
-
],
|
|
709
|
-
headerParameters: [contentType, accept],
|
|
710
|
-
mediaType: "json",
|
|
711
|
-
serializer: serializer$2
|
|
712
|
-
};
|
|
713
|
-
|
|
714
|
-
/*
|
|
715
|
-
* Copyright (c) Microsoft Corporation.
|
|
716
|
-
* Licensed under the MIT License.
|
|
717
|
-
*
|
|
718
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
719
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
720
|
-
*/
|
|
721
|
-
/// <reference lib="esnext.asynciterable" />
|
|
722
|
-
/** Class containing Operations operations. */
|
|
723
|
-
class OperationsImpl {
|
|
724
|
-
/**
|
|
725
|
-
* Initialize a new instance of the class Operations class.
|
|
726
|
-
* @param client Reference to the service client
|
|
727
|
-
*/
|
|
728
|
-
constructor(client) {
|
|
729
|
-
this.client = client;
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
733
|
-
* description.
|
|
734
|
-
* @param options The options parameters.
|
|
735
|
-
*/
|
|
736
|
-
list(options) {
|
|
737
|
-
const iter = this.listPagingAll(options);
|
|
738
|
-
return {
|
|
739
|
-
next() {
|
|
740
|
-
return iter.next();
|
|
741
|
-
},
|
|
742
|
-
[Symbol.asyncIterator]() {
|
|
743
|
-
return this;
|
|
744
|
-
},
|
|
745
|
-
byPage: (settings) => {
|
|
746
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
747
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
748
|
-
}
|
|
749
|
-
return this.listPagingPage(options, settings);
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
listPagingPage(options, settings) {
|
|
754
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
755
|
-
let result;
|
|
756
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
757
|
-
if (!continuationToken) {
|
|
758
|
-
result = yield tslib.__await(this._list(options));
|
|
759
|
-
let page = result.value || [];
|
|
760
|
-
continuationToken = result.nextLink;
|
|
761
|
-
setContinuationToken(page, continuationToken);
|
|
762
|
-
yield yield tslib.__await(page);
|
|
763
|
-
}
|
|
764
|
-
while (continuationToken) {
|
|
765
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
766
|
-
continuationToken = result.nextLink;
|
|
767
|
-
let page = result.value || [];
|
|
768
|
-
setContinuationToken(page, continuationToken);
|
|
769
|
-
yield yield tslib.__await(page);
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
listPagingAll(options) {
|
|
774
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
775
|
-
var _a, e_1, _b, _c;
|
|
776
|
-
try {
|
|
777
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
778
|
-
_c = _f.value;
|
|
779
|
-
_d = false;
|
|
780
|
-
const page = _c;
|
|
781
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
785
|
-
finally {
|
|
786
|
-
try {
|
|
787
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
788
|
-
}
|
|
789
|
-
finally { if (e_1) throw e_1.error; }
|
|
790
|
-
}
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
795
|
-
* description.
|
|
796
|
-
* @param options The options parameters.
|
|
797
|
-
*/
|
|
798
|
-
_list(options) {
|
|
799
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* ListNext
|
|
803
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
804
|
-
* @param options The options parameters.
|
|
805
|
-
*/
|
|
806
|
-
_listNext(nextLink, options) {
|
|
807
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
// Operation Specifications
|
|
811
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
812
|
-
const listOperationSpec$1 = {
|
|
813
|
-
path: "/providers/Microsoft.DevSpaces/operations",
|
|
814
|
-
httpMethod: "GET",
|
|
815
|
-
responses: {
|
|
816
|
-
200: {
|
|
817
|
-
bodyMapper: ResourceProviderOperationList
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
queryParameters: [apiVersion],
|
|
821
|
-
urlParameters: [$host],
|
|
822
|
-
headerParameters: [accept],
|
|
823
|
-
serializer: serializer$1
|
|
824
|
-
};
|
|
825
|
-
const listNextOperationSpec$1 = {
|
|
826
|
-
path: "{nextLink}",
|
|
827
|
-
httpMethod: "GET",
|
|
828
|
-
responses: {
|
|
829
|
-
200: {
|
|
830
|
-
bodyMapper: ResourceProviderOperationList
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
queryParameters: [apiVersion],
|
|
834
|
-
urlParameters: [$host, nextLink],
|
|
835
|
-
headerParameters: [accept],
|
|
836
|
-
serializer: serializer$1
|
|
837
|
-
};
|
|
838
|
-
|
|
839
|
-
/*
|
|
840
|
-
* Copyright (c) Microsoft Corporation.
|
|
841
|
-
* Licensed under the MIT License.
|
|
842
|
-
*
|
|
843
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
844
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
845
|
-
*/
|
|
846
|
-
class LroImpl {
|
|
847
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
848
|
-
this.sendOperationFn = sendOperationFn;
|
|
849
|
-
this.args = args;
|
|
850
|
-
this.spec = spec;
|
|
851
|
-
this.requestPath = requestPath;
|
|
852
|
-
this.requestMethod = requestMethod;
|
|
853
|
-
}
|
|
854
|
-
sendInitialRequest() {
|
|
855
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
856
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
sendPollRequest(path) {
|
|
860
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
861
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
862
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/*
|
|
868
|
-
* Copyright (c) Microsoft Corporation.
|
|
869
|
-
* Licensed under the MIT License.
|
|
870
|
-
*
|
|
871
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
872
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
873
|
-
*/
|
|
874
|
-
/// <reference lib="esnext.asynciterable" />
|
|
875
|
-
/** Class containing Controllers operations. */
|
|
876
|
-
class ControllersImpl {
|
|
877
|
-
/**
|
|
878
|
-
* Initialize a new instance of the class Controllers class.
|
|
879
|
-
* @param client Reference to the service client
|
|
880
|
-
*/
|
|
881
|
-
constructor(client) {
|
|
882
|
-
this.client = client;
|
|
883
|
-
}
|
|
884
|
-
/**
|
|
885
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
886
|
-
* subscription.
|
|
887
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
888
|
-
* @param options The options parameters.
|
|
889
|
-
*/
|
|
890
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
891
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
892
|
-
return {
|
|
893
|
-
next() {
|
|
894
|
-
return iter.next();
|
|
895
|
-
},
|
|
896
|
-
[Symbol.asyncIterator]() {
|
|
897
|
-
return this;
|
|
898
|
-
},
|
|
899
|
-
byPage: (settings) => {
|
|
900
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
901
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
902
|
-
}
|
|
903
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
}
|
|
907
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
908
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
909
|
-
let result;
|
|
910
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
911
|
-
if (!continuationToken) {
|
|
912
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
913
|
-
let page = result.value || [];
|
|
914
|
-
continuationToken = result.nextLink;
|
|
915
|
-
setContinuationToken(page, continuationToken);
|
|
916
|
-
yield yield tslib.__await(page);
|
|
917
|
-
}
|
|
918
|
-
while (continuationToken) {
|
|
919
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
920
|
-
continuationToken = result.nextLink;
|
|
921
|
-
let page = result.value || [];
|
|
922
|
-
setContinuationToken(page, continuationToken);
|
|
923
|
-
yield yield tslib.__await(page);
|
|
924
|
-
}
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
928
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
929
|
-
var _a, e_1, _b, _c;
|
|
930
|
-
try {
|
|
931
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
932
|
-
_c = _f.value;
|
|
933
|
-
_d = false;
|
|
934
|
-
const page = _c;
|
|
935
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
939
|
-
finally {
|
|
940
|
-
try {
|
|
941
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
942
|
-
}
|
|
943
|
-
finally { if (e_1) throw e_1.error; }
|
|
944
|
-
}
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
/**
|
|
948
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
949
|
-
* @param options The options parameters.
|
|
950
|
-
*/
|
|
951
|
-
list(options) {
|
|
952
|
-
const iter = this.listPagingAll(options);
|
|
953
|
-
return {
|
|
954
|
-
next() {
|
|
955
|
-
return iter.next();
|
|
956
|
-
},
|
|
957
|
-
[Symbol.asyncIterator]() {
|
|
958
|
-
return this;
|
|
959
|
-
},
|
|
960
|
-
byPage: (settings) => {
|
|
961
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
962
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
963
|
-
}
|
|
964
|
-
return this.listPagingPage(options, settings);
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
}
|
|
968
|
-
listPagingPage(options, settings) {
|
|
969
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
970
|
-
let result;
|
|
971
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
972
|
-
if (!continuationToken) {
|
|
973
|
-
result = yield tslib.__await(this._list(options));
|
|
974
|
-
let page = result.value || [];
|
|
975
|
-
continuationToken = result.nextLink;
|
|
976
|
-
setContinuationToken(page, continuationToken);
|
|
977
|
-
yield yield tslib.__await(page);
|
|
978
|
-
}
|
|
979
|
-
while (continuationToken) {
|
|
980
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
981
|
-
continuationToken = result.nextLink;
|
|
982
|
-
let page = result.value || [];
|
|
983
|
-
setContinuationToken(page, continuationToken);
|
|
984
|
-
yield yield tslib.__await(page);
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
listPagingAll(options) {
|
|
989
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
990
|
-
var _a, e_2, _b, _c;
|
|
991
|
-
try {
|
|
992
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
993
|
-
_c = _f.value;
|
|
994
|
-
_d = false;
|
|
995
|
-
const page = _c;
|
|
996
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1000
|
-
finally {
|
|
1001
|
-
try {
|
|
1002
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1003
|
-
}
|
|
1004
|
-
finally { if (e_2) throw e_2.error; }
|
|
1005
|
-
}
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* Gets the properties for an Azure Dev Spaces Controller.
|
|
1010
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1011
|
-
* @param name Name of the resource.
|
|
1012
|
-
* @param options The options parameters.
|
|
1013
|
-
*/
|
|
1014
|
-
get(resourceGroupName, name, options) {
|
|
1015
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
1019
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1020
|
-
* @param name Name of the resource.
|
|
1021
|
-
* @param controller Controller create parameters.
|
|
1022
|
-
* @param options The options parameters.
|
|
1023
|
-
*/
|
|
1024
|
-
beginCreate(resourceGroupName, name, controller, options) {
|
|
1025
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1026
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1027
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1028
|
-
});
|
|
1029
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1030
|
-
var _a;
|
|
1031
|
-
let currentRawResponse = undefined;
|
|
1032
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
1033
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1034
|
-
currentRawResponse = rawResponse;
|
|
1035
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
1036
|
-
};
|
|
1037
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1038
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1039
|
-
return {
|
|
1040
|
-
flatResponse,
|
|
1041
|
-
rawResponse: {
|
|
1042
|
-
statusCode: currentRawResponse.status,
|
|
1043
|
-
body: currentRawResponse.parsedBody,
|
|
1044
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
});
|
|
1048
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, name, controller, options }, createOperationSpec);
|
|
1049
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1050
|
-
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
1051
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
1052
|
-
});
|
|
1053
|
-
yield poller.poll();
|
|
1054
|
-
return poller;
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
1059
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1060
|
-
* @param name Name of the resource.
|
|
1061
|
-
* @param controller Controller create parameters.
|
|
1062
|
-
* @param options The options parameters.
|
|
1063
|
-
*/
|
|
1064
|
-
beginCreateAndWait(resourceGroupName, name, controller, options) {
|
|
1065
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1066
|
-
const poller = yield this.beginCreate(resourceGroupName, name, controller, options);
|
|
1067
|
-
return poller.pollUntilDone();
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Deletes an existing Azure Dev Spaces Controller.
|
|
1072
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1073
|
-
* @param name Name of the resource.
|
|
1074
|
-
* @param options The options parameters.
|
|
1075
|
-
*/
|
|
1076
|
-
beginDelete(resourceGroupName, name, options) {
|
|
1077
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1078
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1079
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1080
|
-
});
|
|
1081
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1082
|
-
var _a;
|
|
1083
|
-
let currentRawResponse = undefined;
|
|
1084
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
1085
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1086
|
-
currentRawResponse = rawResponse;
|
|
1087
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
1088
|
-
};
|
|
1089
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1090
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1091
|
-
return {
|
|
1092
|
-
flatResponse,
|
|
1093
|
-
rawResponse: {
|
|
1094
|
-
statusCode: currentRawResponse.status,
|
|
1095
|
-
body: currentRawResponse.parsedBody,
|
|
1096
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1097
|
-
}
|
|
1098
|
-
};
|
|
1099
|
-
});
|
|
1100
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
|
|
1101
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1102
|
-
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
1103
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
1104
|
-
});
|
|
1105
|
-
yield poller.poll();
|
|
1106
|
-
return poller;
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* Deletes an existing Azure Dev Spaces Controller.
|
|
1111
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1112
|
-
* @param name Name of the resource.
|
|
1113
|
-
* @param options The options parameters.
|
|
1114
|
-
*/
|
|
1115
|
-
beginDeleteAndWait(resourceGroupName, name, options) {
|
|
1116
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1117
|
-
const poller = yield this.beginDelete(resourceGroupName, name, options);
|
|
1118
|
-
return poller.pollUntilDone();
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* Updates the properties of an existing Azure Dev Spaces Controller with the specified update
|
|
1123
|
-
* parameters.
|
|
1124
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1125
|
-
* @param name Name of the resource.
|
|
1126
|
-
* @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.
|
|
1127
|
-
* @param options The options parameters.
|
|
1128
|
-
*/
|
|
1129
|
-
update(resourceGroupName, name, controllerUpdateParameters, options) {
|
|
1130
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, controllerUpdateParameters, options }, updateOperationSpec);
|
|
1131
|
-
}
|
|
1132
|
-
/**
|
|
1133
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
1134
|
-
* subscription.
|
|
1135
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1136
|
-
* @param options The options parameters.
|
|
1137
|
-
*/
|
|
1138
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1139
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
1143
|
-
* @param options The options parameters.
|
|
1144
|
-
*/
|
|
1145
|
-
_list(options) {
|
|
1146
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
|
|
1150
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1151
|
-
* @param name Name of the resource.
|
|
1152
|
-
* @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces
|
|
1153
|
-
* Controller.
|
|
1154
|
-
* @param options The options parameters.
|
|
1155
|
-
*/
|
|
1156
|
-
listConnectionDetails(resourceGroupName, name, listConnectionDetailsParameters, options) {
|
|
1157
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, listConnectionDetailsParameters, options }, listConnectionDetailsOperationSpec);
|
|
1158
|
-
}
|
|
1159
|
-
/**
|
|
1160
|
-
* ListByResourceGroupNext
|
|
1161
|
-
* @param resourceGroupName Resource group to which the resource belongs.
|
|
1162
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1163
|
-
* @param options The options parameters.
|
|
1164
|
-
*/
|
|
1165
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1166
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* ListNext
|
|
1170
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1171
|
-
* @param options The options parameters.
|
|
1172
|
-
*/
|
|
1173
|
-
_listNext(nextLink, options) {
|
|
1174
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
// Operation Specifications
|
|
1178
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1179
|
-
const getOperationSpec = {
|
|
1180
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
1181
|
-
httpMethod: "GET",
|
|
1182
|
-
responses: {
|
|
1183
|
-
200: {
|
|
1184
|
-
bodyMapper: Controller
|
|
1185
|
-
},
|
|
1186
|
-
default: {
|
|
1187
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1188
|
-
}
|
|
1189
|
-
},
|
|
1190
|
-
queryParameters: [apiVersion],
|
|
1191
|
-
urlParameters: [
|
|
1192
|
-
$host,
|
|
1193
|
-
subscriptionId,
|
|
1194
|
-
resourceGroupName,
|
|
1195
|
-
name
|
|
1196
|
-
],
|
|
1197
|
-
headerParameters: [accept],
|
|
1198
|
-
serializer
|
|
1199
|
-
};
|
|
1200
|
-
const createOperationSpec = {
|
|
1201
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
1202
|
-
httpMethod: "PUT",
|
|
1203
|
-
responses: {
|
|
1204
|
-
200: {
|
|
1205
|
-
bodyMapper: Controller
|
|
1206
|
-
},
|
|
1207
|
-
201: {
|
|
1208
|
-
bodyMapper: Controller
|
|
1209
|
-
},
|
|
1210
|
-
202: {
|
|
1211
|
-
bodyMapper: Controller
|
|
1212
|
-
},
|
|
1213
|
-
204: {
|
|
1214
|
-
bodyMapper: Controller
|
|
1215
|
-
},
|
|
1216
|
-
default: {
|
|
1217
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
requestBody: controller,
|
|
1221
|
-
queryParameters: [apiVersion],
|
|
1222
|
-
urlParameters: [
|
|
1223
|
-
$host,
|
|
1224
|
-
subscriptionId,
|
|
1225
|
-
resourceGroupName,
|
|
1226
|
-
name
|
|
1227
|
-
],
|
|
1228
|
-
headerParameters: [contentType, accept],
|
|
1229
|
-
mediaType: "json",
|
|
1230
|
-
serializer
|
|
1231
|
-
};
|
|
1232
|
-
const deleteOperationSpec = {
|
|
1233
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
1234
|
-
httpMethod: "DELETE",
|
|
1235
|
-
responses: {
|
|
1236
|
-
200: {},
|
|
1237
|
-
201: {},
|
|
1238
|
-
202: {},
|
|
1239
|
-
204: {},
|
|
1240
|
-
default: {
|
|
1241
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
queryParameters: [apiVersion],
|
|
1245
|
-
urlParameters: [
|
|
1246
|
-
$host,
|
|
1247
|
-
subscriptionId,
|
|
1248
|
-
resourceGroupName,
|
|
1249
|
-
name
|
|
1250
|
-
],
|
|
1251
|
-
headerParameters: [accept],
|
|
1252
|
-
serializer
|
|
1253
|
-
};
|
|
1254
|
-
const updateOperationSpec = {
|
|
1255
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}",
|
|
1256
|
-
httpMethod: "PATCH",
|
|
1257
|
-
responses: {
|
|
1258
|
-
200: {
|
|
1259
|
-
bodyMapper: Controller
|
|
1260
|
-
},
|
|
1261
|
-
201: {
|
|
1262
|
-
bodyMapper: Controller
|
|
1263
|
-
},
|
|
1264
|
-
default: {
|
|
1265
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1266
|
-
}
|
|
1267
|
-
},
|
|
1268
|
-
requestBody: controllerUpdateParameters,
|
|
1269
|
-
queryParameters: [apiVersion],
|
|
1270
|
-
urlParameters: [
|
|
1271
|
-
$host,
|
|
1272
|
-
subscriptionId,
|
|
1273
|
-
resourceGroupName,
|
|
1274
|
-
name
|
|
1275
|
-
],
|
|
1276
|
-
headerParameters: [contentType, accept],
|
|
1277
|
-
mediaType: "json",
|
|
1278
|
-
serializer
|
|
1279
|
-
};
|
|
1280
|
-
const listByResourceGroupOperationSpec = {
|
|
1281
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers",
|
|
1282
|
-
httpMethod: "GET",
|
|
1283
|
-
responses: {
|
|
1284
|
-
200: {
|
|
1285
|
-
bodyMapper: ControllerList
|
|
1286
|
-
},
|
|
1287
|
-
default: {
|
|
1288
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1289
|
-
}
|
|
1290
|
-
},
|
|
1291
|
-
queryParameters: [apiVersion],
|
|
1292
|
-
urlParameters: [
|
|
1293
|
-
$host,
|
|
1294
|
-
subscriptionId,
|
|
1295
|
-
resourceGroupName
|
|
1296
|
-
],
|
|
1297
|
-
headerParameters: [accept],
|
|
1298
|
-
serializer
|
|
1299
|
-
};
|
|
1300
|
-
const listOperationSpec = {
|
|
1301
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers",
|
|
1302
|
-
httpMethod: "GET",
|
|
1303
|
-
responses: {
|
|
1304
|
-
200: {
|
|
1305
|
-
bodyMapper: ControllerList
|
|
1306
|
-
},
|
|
1307
|
-
default: {
|
|
1308
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1309
|
-
}
|
|
1310
|
-
},
|
|
1311
|
-
queryParameters: [apiVersion],
|
|
1312
|
-
urlParameters: [$host, subscriptionId],
|
|
1313
|
-
headerParameters: [accept],
|
|
1314
|
-
serializer
|
|
1315
|
-
};
|
|
1316
|
-
const listConnectionDetailsOperationSpec = {
|
|
1317
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails",
|
|
1318
|
-
httpMethod: "POST",
|
|
1319
|
-
responses: {
|
|
1320
|
-
200: {
|
|
1321
|
-
bodyMapper: ControllerConnectionDetailsList
|
|
1322
|
-
},
|
|
1323
|
-
default: {
|
|
1324
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1325
|
-
}
|
|
1326
|
-
},
|
|
1327
|
-
requestBody: listConnectionDetailsParameters,
|
|
1328
|
-
queryParameters: [apiVersion],
|
|
1329
|
-
urlParameters: [
|
|
1330
|
-
$host,
|
|
1331
|
-
subscriptionId,
|
|
1332
|
-
resourceGroupName,
|
|
1333
|
-
name
|
|
1334
|
-
],
|
|
1335
|
-
headerParameters: [contentType, accept],
|
|
1336
|
-
mediaType: "json",
|
|
1337
|
-
serializer
|
|
1338
|
-
};
|
|
1339
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1340
|
-
path: "{nextLink}",
|
|
1341
|
-
httpMethod: "GET",
|
|
1342
|
-
responses: {
|
|
1343
|
-
200: {
|
|
1344
|
-
bodyMapper: ControllerList
|
|
1345
|
-
},
|
|
1346
|
-
default: {
|
|
1347
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
queryParameters: [apiVersion],
|
|
1351
|
-
urlParameters: [
|
|
1352
|
-
$host,
|
|
1353
|
-
subscriptionId,
|
|
1354
|
-
resourceGroupName,
|
|
1355
|
-
nextLink
|
|
1356
|
-
],
|
|
1357
|
-
headerParameters: [accept],
|
|
1358
|
-
serializer
|
|
1359
|
-
};
|
|
1360
|
-
const listNextOperationSpec = {
|
|
1361
|
-
path: "{nextLink}",
|
|
1362
|
-
httpMethod: "GET",
|
|
1363
|
-
responses: {
|
|
1364
|
-
200: {
|
|
1365
|
-
bodyMapper: ControllerList
|
|
1366
|
-
},
|
|
1367
|
-
default: {
|
|
1368
|
-
bodyMapper: DevSpacesErrorResponse
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
queryParameters: [apiVersion],
|
|
1372
|
-
urlParameters: [
|
|
1373
|
-
$host,
|
|
1374
|
-
subscriptionId,
|
|
1375
|
-
nextLink
|
|
1376
|
-
],
|
|
1377
|
-
headerParameters: [accept],
|
|
1378
|
-
serializer
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
/*
|
|
1382
|
-
* Copyright (c) Microsoft Corporation.
|
|
1383
|
-
* Licensed under the MIT License.
|
|
1384
|
-
*
|
|
1385
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1386
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1387
|
-
*/
|
|
1388
|
-
class DevSpacesManagementClient extends coreClient__namespace.ServiceClient {
|
|
1389
|
-
/**
|
|
1390
|
-
* Initializes a new instance of the DevSpacesManagementClient class.
|
|
1391
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1392
|
-
* @param subscriptionId Azure subscription ID.
|
|
1393
|
-
* @param options The parameter options
|
|
1394
|
-
*/
|
|
1395
|
-
constructor(credentials, subscriptionId, options) {
|
|
1396
|
-
var _a, _b, _c;
|
|
1397
|
-
if (credentials === undefined) {
|
|
1398
|
-
throw new Error("'credentials' cannot be null");
|
|
1399
|
-
}
|
|
1400
|
-
if (subscriptionId === undefined) {
|
|
1401
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1402
|
-
}
|
|
1403
|
-
// Initializing default values for options
|
|
1404
|
-
if (!options) {
|
|
1405
|
-
options = {};
|
|
1406
|
-
}
|
|
1407
|
-
const defaults = {
|
|
1408
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1409
|
-
credential: credentials
|
|
1410
|
-
};
|
|
1411
|
-
const packageDetails = `azsdk-js-arm-devspaces/2.1.1`;
|
|
1412
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1413
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1414
|
-
: `${packageDetails}`;
|
|
1415
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1416
|
-
userAgentPrefix
|
|
1417
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
1418
|
-
super(optionsWithDefaults);
|
|
1419
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1420
|
-
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1421
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1422
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1423
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1424
|
-
}
|
|
1425
|
-
if (!options ||
|
|
1426
|
-
!options.pipeline ||
|
|
1427
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1428
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1429
|
-
this.pipeline.removePolicy({
|
|
1430
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1431
|
-
});
|
|
1432
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1433
|
-
credential: credentials,
|
|
1434
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1435
|
-
challengeCallbacks: {
|
|
1436
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1437
|
-
}
|
|
1438
|
-
}));
|
|
1439
|
-
}
|
|
1440
|
-
// Parameter assignments
|
|
1441
|
-
this.subscriptionId = subscriptionId;
|
|
1442
|
-
// Assigning values to Constant parameters
|
|
1443
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1444
|
-
this.apiVersion = options.apiVersion || "2019-04-01";
|
|
1445
|
-
this.containerHostMappings = new ContainerHostMappingsImpl(this);
|
|
1446
|
-
this.operations = new OperationsImpl(this);
|
|
1447
|
-
this.controllers = new ControllersImpl(this);
|
|
1448
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1449
|
-
}
|
|
1450
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1451
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1452
|
-
if (!apiVersion) {
|
|
1453
|
-
return;
|
|
1454
|
-
}
|
|
1455
|
-
const apiVersionPolicy = {
|
|
1456
|
-
name: "CustomApiVersionPolicy",
|
|
1457
|
-
sendRequest(request, next) {
|
|
1458
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1459
|
-
const param = request.url.split("?");
|
|
1460
|
-
if (param.length > 1) {
|
|
1461
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1462
|
-
if (item.indexOf("api-version") > -1) {
|
|
1463
|
-
return "api-version=" + apiVersion;
|
|
1464
|
-
}
|
|
1465
|
-
else {
|
|
1466
|
-
return item;
|
|
1467
|
-
}
|
|
1468
|
-
});
|
|
1469
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1470
|
-
}
|
|
1471
|
-
return next(request);
|
|
1472
|
-
});
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
exports.DevSpacesManagementClient = DevSpacesManagementClient;
|
|
1480
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1481
|
-
//# sourceMappingURL=index.js.map
|