@azure/arm-extendedlocation 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -3
- package/LICENSE +4 -4
- package/README.md +27 -18
- package/{dist-esm/src → dist/browser}/customLocationsManagementClient.d.ts +2 -2
- package/dist/browser/customLocationsManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/customLocationsManagementClient.js +47 -38
- package/dist/browser/customLocationsManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +20 -20
- package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +55 -25
- 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/customLocations.d.ts +3 -3
- package/dist/browser/operations/customLocations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/customLocations.js +186 -203
- package/dist/browser/operations/customLocations.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/operationsInterfaces → dist/browser/operations}/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.d.ts +3 -3
- package/dist/browser/operations/resourceSyncRules.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.js +114 -116
- package/dist/browser/operations/resourceSyncRules.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/customLocations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/customLocations.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/operations → dist/browser/operationsInterfaces}/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/customLocationsManagementClient.d.ts +21 -0
- package/dist/commonjs/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/commonjs/customLocationsManagementClient.js +113 -0
- package/dist/commonjs/customLocationsManagementClient.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 +37 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-extendedlocation.d.ts → dist/commonjs/models/index.d.ts} +541 -781
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +37 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +26 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +810 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +27 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +188 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/customLocations.d.ts +155 -0
- package/dist/commonjs/operations/customLocations.d.ts.map +1 -0
- package/dist/commonjs/operations/customLocations.js +704 -0
- package/dist/commonjs/operations/customLocations.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/resourceSyncRules.d.ts +97 -0
- package/dist/commonjs/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/commonjs/operations/resourceSyncRules.js +403 -0
- package/dist/commonjs/operations/resourceSyncRules.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/commonjs/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/customLocations.js +10 -0
- package/dist/commonjs/operationsInterfaces/customLocations.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/resourceSyncRules.d.ts +71 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.js +10 -0
- package/dist/commonjs/operationsInterfaces/resourceSyncRules.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 +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/customLocationsManagementClient.d.ts +21 -0
- package/dist/esm/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/esm/customLocationsManagementClient.js +108 -0
- package/dist/esm/customLocationsManagementClient.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 -4
- 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 +33 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +541 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +26 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +807 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +27 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +185 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/customLocations.d.ts +155 -0
- package/dist/esm/operations/customLocations.d.ts.map +1 -0
- package/dist/esm/operations/customLocations.js +699 -0
- package/dist/esm/operations/customLocations.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/resourceSyncRules.d.ts +97 -0
- package/dist/esm/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/esm/operations/resourceSyncRules.js +398 -0
- package/dist/esm/operations/resourceSyncRules.js.map +1 -0
- package/dist/esm/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/esm/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/customLocations.js} +2 -3
- package/dist/esm/operationsInterfaces/customLocations.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/resourceSyncRules.d.ts +71 -0
- package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/resourceSyncRules.js} +2 -3
- package/dist/esm/operationsInterfaces/resourceSyncRules.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 +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/customLocationsManagementClient.d.ts +21 -0
- package/dist/react-native/customLocationsManagementClient.d.ts.map +1 -0
- package/dist/react-native/customLocationsManagementClient.js +108 -0
- package/dist/react-native/customLocationsManagementClient.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 +33 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +541 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +34 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +26 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +807 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +27 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +185 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/customLocations.d.ts +155 -0
- package/dist/react-native/operations/customLocations.d.ts.map +1 -0
- package/dist/react-native/operations/customLocations.js +699 -0
- package/dist/react-native/operations/customLocations.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/resourceSyncRules.d.ts +97 -0
- package/dist/react-native/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist/react-native/operations/resourceSyncRules.js +398 -0
- package/dist/react-native/operations/resourceSyncRules.js.map +1 -0
- package/dist/react-native/operationsInterfaces/customLocations.d.ts +86 -0
- package/dist/react-native/operationsInterfaces/customLocations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/customLocations.js +9 -0
- package/dist/react-native/operationsInterfaces/customLocations.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/resourceSyncRules.d.ts +71 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.js +9 -0
- package/dist/react-native/operationsInterfaces/resourceSyncRules.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 +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +88 -77
- package/review/{arm-extendedlocation.api.md → arm-extendedlocation-node.api.md} +3 -0
- package/dist/index.js +0 -2230
- 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/customLocationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +0 -42
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +0 -34
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsGetSample.js +0 -31
- package/dist-esm/samples-dev/customLocationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +0 -45
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js +0 -43
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customLocationsUpdateSample.js +0 -34
- package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +0 -41
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +0 -32
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +0 -32
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +0 -45
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +0 -34
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +0 -1
- package/dist-esm/src/customLocationsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/customLocationsManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- 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/customLocations.d.ts.map +0 -1
- package/dist-esm/src/operations/customLocations.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/resourceSyncRules.d.ts.map +0 -1
- package/dist-esm/src/operations/resourceSyncRules.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/customLocations.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/resourceSyncRules.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.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 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/customLocationsManagementClient.ts +0 -136
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -606
- package/src/models/mappers.ts +0 -832
- package/src/models/parameters.ts +0 -225
- package/src/operations/customLocations.ts +0 -927
- package/src/operations/resourceSyncRules.ts +0 -562
- package/src/operationsInterfaces/customLocations.ts +0 -160
- package/src/operationsInterfaces/resourceSyncRules.ts +0 -136
- package/tsconfig.json +0 -33
- /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.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/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/customLocations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.js +0 -0
package/dist/index.js
DELETED
|
@@ -1,2230 +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 _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n["default"] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
* Copyright (c) Microsoft Corporation.
|
|
33
|
-
* Licensed under the MIT License.
|
|
34
|
-
*
|
|
35
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
-
*/
|
|
38
|
-
/** Known values of {@link ResourceIdentityType} that the service accepts. */
|
|
39
|
-
exports.KnownResourceIdentityType = void 0;
|
|
40
|
-
(function (KnownResourceIdentityType) {
|
|
41
|
-
/** SystemAssigned */
|
|
42
|
-
KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
43
|
-
/** None */
|
|
44
|
-
KnownResourceIdentityType["None"] = "None";
|
|
45
|
-
})(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
|
|
46
|
-
/** Known values of {@link HostType} that the service accepts. */
|
|
47
|
-
exports.KnownHostType = void 0;
|
|
48
|
-
(function (KnownHostType) {
|
|
49
|
-
/** Kubernetes */
|
|
50
|
-
KnownHostType["Kubernetes"] = "Kubernetes";
|
|
51
|
-
})(exports.KnownHostType || (exports.KnownHostType = {}));
|
|
52
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
53
|
-
exports.KnownCreatedByType = void 0;
|
|
54
|
-
(function (KnownCreatedByType) {
|
|
55
|
-
/** User */
|
|
56
|
-
KnownCreatedByType["User"] = "User";
|
|
57
|
-
/** Application */
|
|
58
|
-
KnownCreatedByType["Application"] = "Application";
|
|
59
|
-
/** ManagedIdentity */
|
|
60
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
61
|
-
/** Key */
|
|
62
|
-
KnownCreatedByType["Key"] = "Key";
|
|
63
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
64
|
-
|
|
65
|
-
/*
|
|
66
|
-
* Copyright (c) Microsoft Corporation.
|
|
67
|
-
* Licensed under the MIT License.
|
|
68
|
-
*
|
|
69
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
70
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
71
|
-
*/
|
|
72
|
-
const CustomLocationOperationsList = {
|
|
73
|
-
type: {
|
|
74
|
-
name: "Composite",
|
|
75
|
-
className: "CustomLocationOperationsList",
|
|
76
|
-
modelProperties: {
|
|
77
|
-
nextLink: {
|
|
78
|
-
serializedName: "nextLink",
|
|
79
|
-
type: {
|
|
80
|
-
name: "String"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
value: {
|
|
84
|
-
serializedName: "value",
|
|
85
|
-
required: true,
|
|
86
|
-
type: {
|
|
87
|
-
name: "Sequence",
|
|
88
|
-
element: {
|
|
89
|
-
type: {
|
|
90
|
-
name: "Composite",
|
|
91
|
-
className: "CustomLocationOperation"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const CustomLocationOperation = {
|
|
100
|
-
type: {
|
|
101
|
-
name: "Composite",
|
|
102
|
-
className: "CustomLocationOperation",
|
|
103
|
-
modelProperties: {
|
|
104
|
-
isDataAction: {
|
|
105
|
-
serializedName: "isDataAction",
|
|
106
|
-
readOnly: true,
|
|
107
|
-
type: {
|
|
108
|
-
name: "Boolean"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
name: {
|
|
112
|
-
serializedName: "name",
|
|
113
|
-
readOnly: true,
|
|
114
|
-
type: {
|
|
115
|
-
name: "String"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
origin: {
|
|
119
|
-
serializedName: "origin",
|
|
120
|
-
readOnly: true,
|
|
121
|
-
type: {
|
|
122
|
-
name: "String"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
description: {
|
|
126
|
-
serializedName: "display.description",
|
|
127
|
-
readOnly: true,
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
operation: {
|
|
133
|
-
serializedName: "display.operation",
|
|
134
|
-
readOnly: true,
|
|
135
|
-
type: {
|
|
136
|
-
name: "String"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
provider: {
|
|
140
|
-
serializedName: "display.provider",
|
|
141
|
-
readOnly: true,
|
|
142
|
-
type: {
|
|
143
|
-
name: "String"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
resource: {
|
|
147
|
-
serializedName: "display.resource",
|
|
148
|
-
readOnly: true,
|
|
149
|
-
type: {
|
|
150
|
-
name: "String"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
const ErrorResponse = {
|
|
157
|
-
type: {
|
|
158
|
-
name: "Composite",
|
|
159
|
-
className: "ErrorResponse",
|
|
160
|
-
modelProperties: {
|
|
161
|
-
error: {
|
|
162
|
-
serializedName: "error",
|
|
163
|
-
type: {
|
|
164
|
-
name: "Composite",
|
|
165
|
-
className: "ErrorDetail"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const ErrorDetail = {
|
|
172
|
-
type: {
|
|
173
|
-
name: "Composite",
|
|
174
|
-
className: "ErrorDetail",
|
|
175
|
-
modelProperties: {
|
|
176
|
-
code: {
|
|
177
|
-
serializedName: "code",
|
|
178
|
-
readOnly: true,
|
|
179
|
-
type: {
|
|
180
|
-
name: "String"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
message: {
|
|
184
|
-
serializedName: "message",
|
|
185
|
-
readOnly: true,
|
|
186
|
-
type: {
|
|
187
|
-
name: "String"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
target: {
|
|
191
|
-
serializedName: "target",
|
|
192
|
-
readOnly: true,
|
|
193
|
-
type: {
|
|
194
|
-
name: "String"
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
details: {
|
|
198
|
-
serializedName: "details",
|
|
199
|
-
readOnly: true,
|
|
200
|
-
type: {
|
|
201
|
-
name: "Sequence",
|
|
202
|
-
element: {
|
|
203
|
-
type: {
|
|
204
|
-
name: "Composite",
|
|
205
|
-
className: "ErrorDetail"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
additionalInfo: {
|
|
211
|
-
serializedName: "additionalInfo",
|
|
212
|
-
readOnly: true,
|
|
213
|
-
type: {
|
|
214
|
-
name: "Sequence",
|
|
215
|
-
element: {
|
|
216
|
-
type: {
|
|
217
|
-
name: "Composite",
|
|
218
|
-
className: "ErrorAdditionalInfo"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
const ErrorAdditionalInfo = {
|
|
227
|
-
type: {
|
|
228
|
-
name: "Composite",
|
|
229
|
-
className: "ErrorAdditionalInfo",
|
|
230
|
-
modelProperties: {
|
|
231
|
-
type: {
|
|
232
|
-
serializedName: "type",
|
|
233
|
-
readOnly: true,
|
|
234
|
-
type: {
|
|
235
|
-
name: "String"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
info: {
|
|
239
|
-
serializedName: "info",
|
|
240
|
-
readOnly: true,
|
|
241
|
-
type: {
|
|
242
|
-
name: "Dictionary",
|
|
243
|
-
value: { type: { name: "any" } }
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
const CustomLocationListResult = {
|
|
250
|
-
type: {
|
|
251
|
-
name: "Composite",
|
|
252
|
-
className: "CustomLocationListResult",
|
|
253
|
-
modelProperties: {
|
|
254
|
-
nextLink: {
|
|
255
|
-
serializedName: "nextLink",
|
|
256
|
-
readOnly: true,
|
|
257
|
-
type: {
|
|
258
|
-
name: "String"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
value: {
|
|
262
|
-
serializedName: "value",
|
|
263
|
-
readOnly: true,
|
|
264
|
-
type: {
|
|
265
|
-
name: "Sequence",
|
|
266
|
-
element: {
|
|
267
|
-
type: {
|
|
268
|
-
name: "Composite",
|
|
269
|
-
className: "CustomLocation"
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
const Identity = {
|
|
278
|
-
type: {
|
|
279
|
-
name: "Composite",
|
|
280
|
-
className: "Identity",
|
|
281
|
-
modelProperties: {
|
|
282
|
-
principalId: {
|
|
283
|
-
serializedName: "principalId",
|
|
284
|
-
readOnly: true,
|
|
285
|
-
type: {
|
|
286
|
-
name: "String"
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
tenantId: {
|
|
290
|
-
serializedName: "tenantId",
|
|
291
|
-
readOnly: true,
|
|
292
|
-
type: {
|
|
293
|
-
name: "String"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
type: {
|
|
297
|
-
serializedName: "type",
|
|
298
|
-
type: {
|
|
299
|
-
name: "String"
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
const CustomLocationPropertiesAuthentication = {
|
|
306
|
-
type: {
|
|
307
|
-
name: "Composite",
|
|
308
|
-
className: "CustomLocationPropertiesAuthentication",
|
|
309
|
-
modelProperties: {
|
|
310
|
-
type: {
|
|
311
|
-
serializedName: "type",
|
|
312
|
-
type: {
|
|
313
|
-
name: "String"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
value: {
|
|
317
|
-
serializedName: "value",
|
|
318
|
-
type: {
|
|
319
|
-
name: "String"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
const SystemData = {
|
|
326
|
-
type: {
|
|
327
|
-
name: "Composite",
|
|
328
|
-
className: "SystemData",
|
|
329
|
-
modelProperties: {
|
|
330
|
-
createdBy: {
|
|
331
|
-
serializedName: "createdBy",
|
|
332
|
-
type: {
|
|
333
|
-
name: "String"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
createdByType: {
|
|
337
|
-
serializedName: "createdByType",
|
|
338
|
-
type: {
|
|
339
|
-
name: "String"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
createdAt: {
|
|
343
|
-
serializedName: "createdAt",
|
|
344
|
-
type: {
|
|
345
|
-
name: "DateTime"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
lastModifiedBy: {
|
|
349
|
-
serializedName: "lastModifiedBy",
|
|
350
|
-
type: {
|
|
351
|
-
name: "String"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
lastModifiedByType: {
|
|
355
|
-
serializedName: "lastModifiedByType",
|
|
356
|
-
type: {
|
|
357
|
-
name: "String"
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
lastModifiedAt: {
|
|
361
|
-
serializedName: "lastModifiedAt",
|
|
362
|
-
type: {
|
|
363
|
-
name: "DateTime"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
const Resource = {
|
|
370
|
-
type: {
|
|
371
|
-
name: "Composite",
|
|
372
|
-
className: "Resource",
|
|
373
|
-
modelProperties: {
|
|
374
|
-
id: {
|
|
375
|
-
serializedName: "id",
|
|
376
|
-
readOnly: true,
|
|
377
|
-
type: {
|
|
378
|
-
name: "String"
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
name: {
|
|
382
|
-
serializedName: "name",
|
|
383
|
-
readOnly: true,
|
|
384
|
-
type: {
|
|
385
|
-
name: "String"
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
type: {
|
|
389
|
-
serializedName: "type",
|
|
390
|
-
readOnly: true,
|
|
391
|
-
type: {
|
|
392
|
-
name: "String"
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
const PatchableCustomLocations = {
|
|
399
|
-
type: {
|
|
400
|
-
name: "Composite",
|
|
401
|
-
className: "PatchableCustomLocations",
|
|
402
|
-
modelProperties: {
|
|
403
|
-
identity: {
|
|
404
|
-
serializedName: "identity",
|
|
405
|
-
type: {
|
|
406
|
-
name: "Composite",
|
|
407
|
-
className: "Identity"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
tags: {
|
|
411
|
-
serializedName: "tags",
|
|
412
|
-
type: {
|
|
413
|
-
name: "Dictionary",
|
|
414
|
-
value: { type: { name: "String" } }
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
authentication: {
|
|
418
|
-
serializedName: "properties.authentication",
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "CustomLocationPropertiesAuthentication"
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
clusterExtensionIds: {
|
|
425
|
-
serializedName: "properties.clusterExtensionIds",
|
|
426
|
-
type: {
|
|
427
|
-
name: "Sequence",
|
|
428
|
-
element: {
|
|
429
|
-
type: {
|
|
430
|
-
name: "String"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
displayName: {
|
|
436
|
-
serializedName: "properties.displayName",
|
|
437
|
-
type: {
|
|
438
|
-
name: "String"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
hostResourceId: {
|
|
442
|
-
serializedName: "properties.hostResourceId",
|
|
443
|
-
type: {
|
|
444
|
-
name: "String"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
hostType: {
|
|
448
|
-
serializedName: "properties.hostType",
|
|
449
|
-
type: {
|
|
450
|
-
name: "String"
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
namespace: {
|
|
454
|
-
serializedName: "properties.namespace",
|
|
455
|
-
type: {
|
|
456
|
-
name: "String"
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
provisioningState: {
|
|
460
|
-
serializedName: "properties.provisioningState",
|
|
461
|
-
type: {
|
|
462
|
-
name: "String"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
const EnabledResourceTypesListResult = {
|
|
469
|
-
type: {
|
|
470
|
-
name: "Composite",
|
|
471
|
-
className: "EnabledResourceTypesListResult",
|
|
472
|
-
modelProperties: {
|
|
473
|
-
nextLink: {
|
|
474
|
-
serializedName: "nextLink",
|
|
475
|
-
readOnly: true,
|
|
476
|
-
type: {
|
|
477
|
-
name: "String"
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
value: {
|
|
481
|
-
serializedName: "value",
|
|
482
|
-
readOnly: true,
|
|
483
|
-
type: {
|
|
484
|
-
name: "Sequence",
|
|
485
|
-
element: {
|
|
486
|
-
type: {
|
|
487
|
-
name: "Composite",
|
|
488
|
-
className: "EnabledResourceType"
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
const EnabledResourceTypePropertiesTypesMetadataItem = {
|
|
497
|
-
type: {
|
|
498
|
-
name: "Composite",
|
|
499
|
-
className: "EnabledResourceTypePropertiesTypesMetadataItem",
|
|
500
|
-
modelProperties: {
|
|
501
|
-
apiVersion: {
|
|
502
|
-
serializedName: "apiVersion",
|
|
503
|
-
type: {
|
|
504
|
-
name: "String"
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
resourceProviderNamespace: {
|
|
508
|
-
serializedName: "resourceProviderNamespace",
|
|
509
|
-
type: {
|
|
510
|
-
name: "String"
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
resourceType: {
|
|
514
|
-
serializedName: "resourceType",
|
|
515
|
-
type: {
|
|
516
|
-
name: "String"
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
const CustomLocationFindTargetResourceGroupProperties = {
|
|
523
|
-
type: {
|
|
524
|
-
name: "Composite",
|
|
525
|
-
className: "CustomLocationFindTargetResourceGroupProperties",
|
|
526
|
-
modelProperties: {
|
|
527
|
-
labels: {
|
|
528
|
-
serializedName: "labels",
|
|
529
|
-
type: {
|
|
530
|
-
name: "Dictionary",
|
|
531
|
-
value: { type: { name: "String" } }
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
const CustomLocationFindTargetResourceGroupResult = {
|
|
538
|
-
type: {
|
|
539
|
-
name: "Composite",
|
|
540
|
-
className: "CustomLocationFindTargetResourceGroupResult",
|
|
541
|
-
modelProperties: {
|
|
542
|
-
matchedResourceSyncRule: {
|
|
543
|
-
serializedName: "matchedResourceSyncRule",
|
|
544
|
-
readOnly: true,
|
|
545
|
-
type: {
|
|
546
|
-
name: "String"
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
targetResourceGroup: {
|
|
550
|
-
serializedName: "targetResourceGroup",
|
|
551
|
-
readOnly: true,
|
|
552
|
-
type: {
|
|
553
|
-
name: "String"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
const ResourceSyncRuleListResult = {
|
|
560
|
-
type: {
|
|
561
|
-
name: "Composite",
|
|
562
|
-
className: "ResourceSyncRuleListResult",
|
|
563
|
-
modelProperties: {
|
|
564
|
-
nextLink: {
|
|
565
|
-
serializedName: "nextLink",
|
|
566
|
-
readOnly: true,
|
|
567
|
-
type: {
|
|
568
|
-
name: "String"
|
|
569
|
-
}
|
|
570
|
-
},
|
|
571
|
-
value: {
|
|
572
|
-
serializedName: "value",
|
|
573
|
-
readOnly: true,
|
|
574
|
-
type: {
|
|
575
|
-
name: "Sequence",
|
|
576
|
-
element: {
|
|
577
|
-
type: {
|
|
578
|
-
name: "Composite",
|
|
579
|
-
className: "ResourceSyncRule"
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
const ResourceSyncRulePropertiesSelector = {
|
|
588
|
-
type: {
|
|
589
|
-
name: "Composite",
|
|
590
|
-
className: "ResourceSyncRulePropertiesSelector",
|
|
591
|
-
modelProperties: {
|
|
592
|
-
matchExpressions: {
|
|
593
|
-
serializedName: "matchExpressions",
|
|
594
|
-
type: {
|
|
595
|
-
name: "Sequence",
|
|
596
|
-
element: {
|
|
597
|
-
type: {
|
|
598
|
-
name: "Composite",
|
|
599
|
-
className: "MatchExpressionsProperties"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
matchLabels: {
|
|
605
|
-
serializedName: "matchLabels",
|
|
606
|
-
type: {
|
|
607
|
-
name: "Dictionary",
|
|
608
|
-
value: { type: { name: "String" } }
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
const MatchExpressionsProperties = {
|
|
615
|
-
type: {
|
|
616
|
-
name: "Composite",
|
|
617
|
-
className: "MatchExpressionsProperties",
|
|
618
|
-
modelProperties: {
|
|
619
|
-
key: {
|
|
620
|
-
serializedName: "key",
|
|
621
|
-
type: {
|
|
622
|
-
name: "String"
|
|
623
|
-
}
|
|
624
|
-
},
|
|
625
|
-
operator: {
|
|
626
|
-
serializedName: "operator",
|
|
627
|
-
type: {
|
|
628
|
-
name: "String"
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
values: {
|
|
632
|
-
serializedName: "values",
|
|
633
|
-
type: {
|
|
634
|
-
name: "Sequence",
|
|
635
|
-
element: {
|
|
636
|
-
type: {
|
|
637
|
-
name: "String"
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
const PatchableResourceSyncRule = {
|
|
646
|
-
type: {
|
|
647
|
-
name: "Composite",
|
|
648
|
-
className: "PatchableResourceSyncRule",
|
|
649
|
-
modelProperties: {
|
|
650
|
-
tags: {
|
|
651
|
-
serializedName: "tags",
|
|
652
|
-
type: {
|
|
653
|
-
name: "Dictionary",
|
|
654
|
-
value: { type: { name: "String" } }
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
priority: {
|
|
658
|
-
serializedName: "properties.priority",
|
|
659
|
-
type: {
|
|
660
|
-
name: "Number"
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
provisioningState: {
|
|
664
|
-
serializedName: "properties.provisioningState",
|
|
665
|
-
readOnly: true,
|
|
666
|
-
type: {
|
|
667
|
-
name: "String"
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
selector: {
|
|
671
|
-
serializedName: "properties.selector",
|
|
672
|
-
type: {
|
|
673
|
-
name: "Composite",
|
|
674
|
-
className: "ResourceSyncRulePropertiesSelector"
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
targetResourceGroup: {
|
|
678
|
-
serializedName: "properties.targetResourceGroup",
|
|
679
|
-
type: {
|
|
680
|
-
name: "String"
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
const TrackedResource = {
|
|
687
|
-
type: {
|
|
688
|
-
name: "Composite",
|
|
689
|
-
className: "TrackedResource",
|
|
690
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
691
|
-
serializedName: "tags",
|
|
692
|
-
type: {
|
|
693
|
-
name: "Dictionary",
|
|
694
|
-
value: { type: { name: "String" } }
|
|
695
|
-
}
|
|
696
|
-
}, location: {
|
|
697
|
-
serializedName: "location",
|
|
698
|
-
required: true,
|
|
699
|
-
type: {
|
|
700
|
-
name: "String"
|
|
701
|
-
}
|
|
702
|
-
} })
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
const ProxyResource = {
|
|
706
|
-
type: {
|
|
707
|
-
name: "Composite",
|
|
708
|
-
className: "ProxyResource",
|
|
709
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
const CustomLocation = {
|
|
713
|
-
type: {
|
|
714
|
-
name: "Composite",
|
|
715
|
-
className: "CustomLocation",
|
|
716
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
717
|
-
serializedName: "identity",
|
|
718
|
-
type: {
|
|
719
|
-
name: "Composite",
|
|
720
|
-
className: "Identity"
|
|
721
|
-
}
|
|
722
|
-
}, systemData: {
|
|
723
|
-
serializedName: "systemData",
|
|
724
|
-
type: {
|
|
725
|
-
name: "Composite",
|
|
726
|
-
className: "SystemData"
|
|
727
|
-
}
|
|
728
|
-
}, authentication: {
|
|
729
|
-
serializedName: "properties.authentication",
|
|
730
|
-
type: {
|
|
731
|
-
name: "Composite",
|
|
732
|
-
className: "CustomLocationPropertiesAuthentication"
|
|
733
|
-
}
|
|
734
|
-
}, clusterExtensionIds: {
|
|
735
|
-
serializedName: "properties.clusterExtensionIds",
|
|
736
|
-
type: {
|
|
737
|
-
name: "Sequence",
|
|
738
|
-
element: {
|
|
739
|
-
type: {
|
|
740
|
-
name: "String"
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}, displayName: {
|
|
745
|
-
serializedName: "properties.displayName",
|
|
746
|
-
type: {
|
|
747
|
-
name: "String"
|
|
748
|
-
}
|
|
749
|
-
}, hostResourceId: {
|
|
750
|
-
serializedName: "properties.hostResourceId",
|
|
751
|
-
type: {
|
|
752
|
-
name: "String"
|
|
753
|
-
}
|
|
754
|
-
}, hostType: {
|
|
755
|
-
serializedName: "properties.hostType",
|
|
756
|
-
type: {
|
|
757
|
-
name: "String"
|
|
758
|
-
}
|
|
759
|
-
}, namespace: {
|
|
760
|
-
serializedName: "properties.namespace",
|
|
761
|
-
type: {
|
|
762
|
-
name: "String"
|
|
763
|
-
}
|
|
764
|
-
}, provisioningState: {
|
|
765
|
-
serializedName: "properties.provisioningState",
|
|
766
|
-
type: {
|
|
767
|
-
name: "String"
|
|
768
|
-
}
|
|
769
|
-
} })
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
const ResourceSyncRule = {
|
|
773
|
-
type: {
|
|
774
|
-
name: "Composite",
|
|
775
|
-
className: "ResourceSyncRule",
|
|
776
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
|
|
777
|
-
serializedName: "systemData",
|
|
778
|
-
type: {
|
|
779
|
-
name: "Composite",
|
|
780
|
-
className: "SystemData"
|
|
781
|
-
}
|
|
782
|
-
}, priority: {
|
|
783
|
-
serializedName: "properties.priority",
|
|
784
|
-
type: {
|
|
785
|
-
name: "Number"
|
|
786
|
-
}
|
|
787
|
-
}, provisioningState: {
|
|
788
|
-
serializedName: "properties.provisioningState",
|
|
789
|
-
readOnly: true,
|
|
790
|
-
type: {
|
|
791
|
-
name: "String"
|
|
792
|
-
}
|
|
793
|
-
}, selector: {
|
|
794
|
-
serializedName: "properties.selector",
|
|
795
|
-
type: {
|
|
796
|
-
name: "Composite",
|
|
797
|
-
className: "ResourceSyncRulePropertiesSelector"
|
|
798
|
-
}
|
|
799
|
-
}, targetResourceGroup: {
|
|
800
|
-
serializedName: "properties.targetResourceGroup",
|
|
801
|
-
type: {
|
|
802
|
-
name: "String"
|
|
803
|
-
}
|
|
804
|
-
} })
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const EnabledResourceType = {
|
|
808
|
-
type: {
|
|
809
|
-
name: "Composite",
|
|
810
|
-
className: "EnabledResourceType",
|
|
811
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
812
|
-
serializedName: "systemData",
|
|
813
|
-
type: {
|
|
814
|
-
name: "Composite",
|
|
815
|
-
className: "SystemData"
|
|
816
|
-
}
|
|
817
|
-
}, clusterExtensionId: {
|
|
818
|
-
serializedName: "properties.clusterExtensionId",
|
|
819
|
-
type: {
|
|
820
|
-
name: "String"
|
|
821
|
-
}
|
|
822
|
-
}, extensionType: {
|
|
823
|
-
serializedName: "properties.extensionType",
|
|
824
|
-
type: {
|
|
825
|
-
name: "String"
|
|
826
|
-
}
|
|
827
|
-
}, typesMetadata: {
|
|
828
|
-
serializedName: "properties.typesMetadata",
|
|
829
|
-
type: {
|
|
830
|
-
name: "Sequence",
|
|
831
|
-
element: {
|
|
832
|
-
type: {
|
|
833
|
-
name: "Composite",
|
|
834
|
-
className: "EnabledResourceTypePropertiesTypesMetadataItem"
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
} })
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
843
|
-
__proto__: null,
|
|
844
|
-
CustomLocationOperationsList: CustomLocationOperationsList,
|
|
845
|
-
CustomLocationOperation: CustomLocationOperation,
|
|
846
|
-
ErrorResponse: ErrorResponse,
|
|
847
|
-
ErrorDetail: ErrorDetail,
|
|
848
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
849
|
-
CustomLocationListResult: CustomLocationListResult,
|
|
850
|
-
Identity: Identity,
|
|
851
|
-
CustomLocationPropertiesAuthentication: CustomLocationPropertiesAuthentication,
|
|
852
|
-
SystemData: SystemData,
|
|
853
|
-
Resource: Resource,
|
|
854
|
-
PatchableCustomLocations: PatchableCustomLocations,
|
|
855
|
-
EnabledResourceTypesListResult: EnabledResourceTypesListResult,
|
|
856
|
-
EnabledResourceTypePropertiesTypesMetadataItem: EnabledResourceTypePropertiesTypesMetadataItem,
|
|
857
|
-
CustomLocationFindTargetResourceGroupProperties: CustomLocationFindTargetResourceGroupProperties,
|
|
858
|
-
CustomLocationFindTargetResourceGroupResult: CustomLocationFindTargetResourceGroupResult,
|
|
859
|
-
ResourceSyncRuleListResult: ResourceSyncRuleListResult,
|
|
860
|
-
ResourceSyncRulePropertiesSelector: ResourceSyncRulePropertiesSelector,
|
|
861
|
-
MatchExpressionsProperties: MatchExpressionsProperties,
|
|
862
|
-
PatchableResourceSyncRule: PatchableResourceSyncRule,
|
|
863
|
-
TrackedResource: TrackedResource,
|
|
864
|
-
ProxyResource: ProxyResource,
|
|
865
|
-
CustomLocation: CustomLocation,
|
|
866
|
-
ResourceSyncRule: ResourceSyncRule,
|
|
867
|
-
EnabledResourceType: EnabledResourceType
|
|
868
|
-
});
|
|
869
|
-
|
|
870
|
-
/*
|
|
871
|
-
* Copyright (c) Microsoft Corporation.
|
|
872
|
-
* Licensed under the MIT License.
|
|
873
|
-
*
|
|
874
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
875
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
876
|
-
*/
|
|
877
|
-
const accept = {
|
|
878
|
-
parameterPath: "accept",
|
|
879
|
-
mapper: {
|
|
880
|
-
defaultValue: "application/json",
|
|
881
|
-
isConstant: true,
|
|
882
|
-
serializedName: "Accept",
|
|
883
|
-
type: {
|
|
884
|
-
name: "String"
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const $host = {
|
|
889
|
-
parameterPath: "$host",
|
|
890
|
-
mapper: {
|
|
891
|
-
serializedName: "$host",
|
|
892
|
-
required: true,
|
|
893
|
-
type: {
|
|
894
|
-
name: "String"
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
skipEncoding: true
|
|
898
|
-
};
|
|
899
|
-
const apiVersion = {
|
|
900
|
-
parameterPath: "apiVersion",
|
|
901
|
-
mapper: {
|
|
902
|
-
defaultValue: "2021-08-31-preview",
|
|
903
|
-
isConstant: true,
|
|
904
|
-
serializedName: "api-version",
|
|
905
|
-
type: {
|
|
906
|
-
name: "String"
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
const subscriptionId = {
|
|
911
|
-
parameterPath: "subscriptionId",
|
|
912
|
-
mapper: {
|
|
913
|
-
constraints: {
|
|
914
|
-
MinLength: 1
|
|
915
|
-
},
|
|
916
|
-
serializedName: "subscriptionId",
|
|
917
|
-
required: true,
|
|
918
|
-
type: {
|
|
919
|
-
name: "String"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
|
-
const resourceGroupName = {
|
|
924
|
-
parameterPath: "resourceGroupName",
|
|
925
|
-
mapper: {
|
|
926
|
-
constraints: {
|
|
927
|
-
MaxLength: 90,
|
|
928
|
-
MinLength: 1
|
|
929
|
-
},
|
|
930
|
-
serializedName: "resourceGroupName",
|
|
931
|
-
required: true,
|
|
932
|
-
type: {
|
|
933
|
-
name: "String"
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
const resourceName = {
|
|
938
|
-
parameterPath: "resourceName",
|
|
939
|
-
mapper: {
|
|
940
|
-
constraints: {
|
|
941
|
-
Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
|
|
942
|
-
MaxLength: 63,
|
|
943
|
-
MinLength: 1
|
|
944
|
-
},
|
|
945
|
-
serializedName: "resourceName",
|
|
946
|
-
required: true,
|
|
947
|
-
type: {
|
|
948
|
-
name: "String"
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
|
-
const contentType = {
|
|
953
|
-
parameterPath: ["options", "contentType"],
|
|
954
|
-
mapper: {
|
|
955
|
-
defaultValue: "application/json",
|
|
956
|
-
isConstant: true,
|
|
957
|
-
serializedName: "Content-Type",
|
|
958
|
-
type: {
|
|
959
|
-
name: "String"
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
const parameters = {
|
|
964
|
-
parameterPath: "parameters",
|
|
965
|
-
mapper: CustomLocation
|
|
966
|
-
};
|
|
967
|
-
const parameters2 = {
|
|
968
|
-
parameterPath: "parameters",
|
|
969
|
-
mapper: CustomLocationFindTargetResourceGroupProperties
|
|
970
|
-
};
|
|
971
|
-
const nextLink = {
|
|
972
|
-
parameterPath: "nextLink",
|
|
973
|
-
mapper: {
|
|
974
|
-
serializedName: "nextLink",
|
|
975
|
-
required: true,
|
|
976
|
-
type: {
|
|
977
|
-
name: "String"
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
skipEncoding: true
|
|
981
|
-
};
|
|
982
|
-
const childResourceName = {
|
|
983
|
-
parameterPath: "childResourceName",
|
|
984
|
-
mapper: {
|
|
985
|
-
constraints: {
|
|
986
|
-
Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
|
|
987
|
-
MaxLength: 63,
|
|
988
|
-
MinLength: 1
|
|
989
|
-
},
|
|
990
|
-
serializedName: "childResourceName",
|
|
991
|
-
required: true,
|
|
992
|
-
type: {
|
|
993
|
-
name: "String"
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
const parameters3 = {
|
|
998
|
-
parameterPath: "parameters",
|
|
999
|
-
mapper: ResourceSyncRule
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
/*
|
|
1003
|
-
* Copyright (c) Microsoft Corporation.
|
|
1004
|
-
* Licensed under the MIT License.
|
|
1005
|
-
*
|
|
1006
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1007
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1008
|
-
*/
|
|
1009
|
-
class LroImpl {
|
|
1010
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1011
|
-
this.sendOperationFn = sendOperationFn;
|
|
1012
|
-
this.args = args;
|
|
1013
|
-
this.spec = spec;
|
|
1014
|
-
this.requestPath = requestPath;
|
|
1015
|
-
this.requestMethod = requestMethod;
|
|
1016
|
-
}
|
|
1017
|
-
sendInitialRequest() {
|
|
1018
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1019
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
sendPollRequest(path) {
|
|
1023
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1024
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1025
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
/*
|
|
1031
|
-
* Copyright (c) Microsoft Corporation.
|
|
1032
|
-
* Licensed under the MIT License.
|
|
1033
|
-
*
|
|
1034
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1035
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1036
|
-
*/
|
|
1037
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1038
|
-
/** Class containing CustomLocations operations. */
|
|
1039
|
-
class CustomLocationsImpl {
|
|
1040
|
-
/**
|
|
1041
|
-
* Initialize a new instance of the class CustomLocations class.
|
|
1042
|
-
* @param client Reference to the service client
|
|
1043
|
-
*/
|
|
1044
|
-
constructor(client) {
|
|
1045
|
-
this.client = client;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* Lists all available Custom Locations operations.
|
|
1049
|
-
* @param options The options parameters.
|
|
1050
|
-
*/
|
|
1051
|
-
listOperations(options) {
|
|
1052
|
-
const iter = this.listOperationsPagingAll(options);
|
|
1053
|
-
return {
|
|
1054
|
-
next() {
|
|
1055
|
-
return iter.next();
|
|
1056
|
-
},
|
|
1057
|
-
[Symbol.asyncIterator]() {
|
|
1058
|
-
return this;
|
|
1059
|
-
},
|
|
1060
|
-
byPage: () => {
|
|
1061
|
-
return this.listOperationsPagingPage(options);
|
|
1062
|
-
}
|
|
1063
|
-
};
|
|
1064
|
-
}
|
|
1065
|
-
listOperationsPagingPage(options) {
|
|
1066
|
-
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
1067
|
-
let result = yield tslib.__await(this._listOperations(options));
|
|
1068
|
-
yield yield tslib.__await(result.value || []);
|
|
1069
|
-
let continuationToken = result.nextLink;
|
|
1070
|
-
while (continuationToken) {
|
|
1071
|
-
result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
|
|
1072
|
-
continuationToken = result.nextLink;
|
|
1073
|
-
yield yield tslib.__await(result.value || []);
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
listOperationsPagingAll(options) {
|
|
1078
|
-
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
1079
|
-
var e_1, _a;
|
|
1080
|
-
try {
|
|
1081
|
-
for (var _b = tslib.__asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1082
|
-
const page = _c.value;
|
|
1083
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1087
|
-
finally {
|
|
1088
|
-
try {
|
|
1089
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1090
|
-
}
|
|
1091
|
-
finally { if (e_1) throw e_1.error; }
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* Gets a list of Custom Locations in the specified subscription. The operation returns properties of
|
|
1097
|
-
* each Custom Location
|
|
1098
|
-
* @param options The options parameters.
|
|
1099
|
-
*/
|
|
1100
|
-
listBySubscription(options) {
|
|
1101
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1102
|
-
return {
|
|
1103
|
-
next() {
|
|
1104
|
-
return iter.next();
|
|
1105
|
-
},
|
|
1106
|
-
[Symbol.asyncIterator]() {
|
|
1107
|
-
return this;
|
|
1108
|
-
},
|
|
1109
|
-
byPage: () => {
|
|
1110
|
-
return this.listBySubscriptionPagingPage(options);
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
}
|
|
1114
|
-
listBySubscriptionPagingPage(options) {
|
|
1115
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1116
|
-
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1117
|
-
yield yield tslib.__await(result.value || []);
|
|
1118
|
-
let continuationToken = result.nextLink;
|
|
1119
|
-
while (continuationToken) {
|
|
1120
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1121
|
-
continuationToken = result.nextLink;
|
|
1122
|
-
yield yield tslib.__await(result.value || []);
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
listBySubscriptionPagingAll(options) {
|
|
1127
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1128
|
-
var e_2, _a;
|
|
1129
|
-
try {
|
|
1130
|
-
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1131
|
-
const page = _c.value;
|
|
1132
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1136
|
-
finally {
|
|
1137
|
-
try {
|
|
1138
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1139
|
-
}
|
|
1140
|
-
finally { if (e_2) throw e_2.error; }
|
|
1141
|
-
}
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* Gets a list of Custom Locations in the specified subscription and resource group. The operation
|
|
1146
|
-
* returns properties of each Custom Location.
|
|
1147
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1148
|
-
* @param options The options parameters.
|
|
1149
|
-
*/
|
|
1150
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1151
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1152
|
-
return {
|
|
1153
|
-
next() {
|
|
1154
|
-
return iter.next();
|
|
1155
|
-
},
|
|
1156
|
-
[Symbol.asyncIterator]() {
|
|
1157
|
-
return this;
|
|
1158
|
-
},
|
|
1159
|
-
byPage: () => {
|
|
1160
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1161
|
-
}
|
|
1162
|
-
};
|
|
1163
|
-
}
|
|
1164
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1165
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1166
|
-
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1167
|
-
yield yield tslib.__await(result.value || []);
|
|
1168
|
-
let continuationToken = result.nextLink;
|
|
1169
|
-
while (continuationToken) {
|
|
1170
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1171
|
-
continuationToken = result.nextLink;
|
|
1172
|
-
yield yield tslib.__await(result.value || []);
|
|
1173
|
-
}
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1177
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1178
|
-
var e_3, _a;
|
|
1179
|
-
try {
|
|
1180
|
-
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1181
|
-
const page = _c.value;
|
|
1182
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1186
|
-
finally {
|
|
1187
|
-
try {
|
|
1188
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1189
|
-
}
|
|
1190
|
-
finally { if (e_3) throw e_3.error; }
|
|
1191
|
-
}
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* Gets the list of the Enabled Resource Types.
|
|
1196
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1197
|
-
* @param resourceName Custom Locations name.
|
|
1198
|
-
* @param options The options parameters.
|
|
1199
|
-
*/
|
|
1200
|
-
listEnabledResourceTypes(resourceGroupName, resourceName, options) {
|
|
1201
|
-
const iter = this.listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options);
|
|
1202
|
-
return {
|
|
1203
|
-
next() {
|
|
1204
|
-
return iter.next();
|
|
1205
|
-
},
|
|
1206
|
-
[Symbol.asyncIterator]() {
|
|
1207
|
-
return this;
|
|
1208
|
-
},
|
|
1209
|
-
byPage: () => {
|
|
1210
|
-
return this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options);
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options) {
|
|
1215
|
-
return tslib.__asyncGenerator(this, arguments, function* listEnabledResourceTypesPagingPage_1() {
|
|
1216
|
-
let result = yield tslib.__await(this._listEnabledResourceTypes(resourceGroupName, resourceName, options));
|
|
1217
|
-
yield yield tslib.__await(result.value || []);
|
|
1218
|
-
let continuationToken = result.nextLink;
|
|
1219
|
-
while (continuationToken) {
|
|
1220
|
-
result = yield tslib.__await(this._listEnabledResourceTypesNext(resourceGroupName, resourceName, continuationToken, options));
|
|
1221
|
-
continuationToken = result.nextLink;
|
|
1222
|
-
yield yield tslib.__await(result.value || []);
|
|
1223
|
-
}
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options) {
|
|
1227
|
-
return tslib.__asyncGenerator(this, arguments, function* listEnabledResourceTypesPagingAll_1() {
|
|
1228
|
-
var e_4, _a;
|
|
1229
|
-
try {
|
|
1230
|
-
for (var _b = tslib.__asyncValues(this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1231
|
-
const page = _c.value;
|
|
1232
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1236
|
-
finally {
|
|
1237
|
-
try {
|
|
1238
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1239
|
-
}
|
|
1240
|
-
finally { if (e_4) throw e_4.error; }
|
|
1241
|
-
}
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Lists all available Custom Locations operations.
|
|
1246
|
-
* @param options The options parameters.
|
|
1247
|
-
*/
|
|
1248
|
-
_listOperations(options) {
|
|
1249
|
-
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
|
|
1250
|
-
}
|
|
1251
|
-
/**
|
|
1252
|
-
* Gets a list of Custom Locations in the specified subscription. The operation returns properties of
|
|
1253
|
-
* each Custom Location
|
|
1254
|
-
* @param options The options parameters.
|
|
1255
|
-
*/
|
|
1256
|
-
_listBySubscription(options) {
|
|
1257
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1258
|
-
}
|
|
1259
|
-
/**
|
|
1260
|
-
* Gets a list of Custom Locations in the specified subscription and resource group. The operation
|
|
1261
|
-
* returns properties of each Custom Location.
|
|
1262
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1263
|
-
* @param options The options parameters.
|
|
1264
|
-
*/
|
|
1265
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1266
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* Gets the details of the customLocation with a specified resource group and name.
|
|
1270
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1271
|
-
* @param resourceName Custom Locations name.
|
|
1272
|
-
* @param options The options parameters.
|
|
1273
|
-
*/
|
|
1274
|
-
get(resourceGroupName, resourceName, options) {
|
|
1275
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$1);
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
1279
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1280
|
-
* @param resourceName Custom Locations name.
|
|
1281
|
-
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
1282
|
-
* @param options The options parameters.
|
|
1283
|
-
*/
|
|
1284
|
-
beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
1285
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1286
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1287
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1288
|
-
});
|
|
1289
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1290
|
-
var _a;
|
|
1291
|
-
let currentRawResponse = undefined;
|
|
1292
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1293
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1294
|
-
currentRawResponse = rawResponse;
|
|
1295
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1296
|
-
};
|
|
1297
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1298
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1299
|
-
return {
|
|
1300
|
-
flatResponse,
|
|
1301
|
-
rawResponse: {
|
|
1302
|
-
statusCode: currentRawResponse.status,
|
|
1303
|
-
body: currentRawResponse.parsedBody,
|
|
1304
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
|
-
});
|
|
1308
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1309
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1310
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1311
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1312
|
-
lroResourceLocationConfig: "azure-async-operation"
|
|
1313
|
-
});
|
|
1314
|
-
yield poller.poll();
|
|
1315
|
-
return poller;
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
/**
|
|
1319
|
-
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
1320
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1321
|
-
* @param resourceName Custom Locations name.
|
|
1322
|
-
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
1323
|
-
* @param options The options parameters.
|
|
1324
|
-
*/
|
|
1325
|
-
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
1326
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1327
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
1328
|
-
return poller.pollUntilDone();
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
1333
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1334
|
-
* @param resourceName Custom Locations name.
|
|
1335
|
-
* @param options The options parameters.
|
|
1336
|
-
*/
|
|
1337
|
-
beginDelete(resourceGroupName, resourceName, options) {
|
|
1338
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1339
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1340
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1341
|
-
});
|
|
1342
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1343
|
-
var _a;
|
|
1344
|
-
let currentRawResponse = undefined;
|
|
1345
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1346
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1347
|
-
currentRawResponse = rawResponse;
|
|
1348
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1349
|
-
};
|
|
1350
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1351
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1352
|
-
return {
|
|
1353
|
-
flatResponse,
|
|
1354
|
-
rawResponse: {
|
|
1355
|
-
statusCode: currentRawResponse.status,
|
|
1356
|
-
body: currentRawResponse.parsedBody,
|
|
1357
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
});
|
|
1361
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec$1);
|
|
1362
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1363
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1364
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1365
|
-
lroResourceLocationConfig: "azure-async-operation"
|
|
1366
|
-
});
|
|
1367
|
-
yield poller.poll();
|
|
1368
|
-
return poller;
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
1373
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1374
|
-
* @param resourceName Custom Locations name.
|
|
1375
|
-
* @param options The options parameters.
|
|
1376
|
-
*/
|
|
1377
|
-
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
1378
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1379
|
-
const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
|
|
1380
|
-
return poller.pollUntilDone();
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* Updates a Custom Location with the specified Resource Name in the specified Resource Group and
|
|
1385
|
-
* Subscription.
|
|
1386
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1387
|
-
* @param resourceName Custom Locations name.
|
|
1388
|
-
* @param options The options parameters.
|
|
1389
|
-
*/
|
|
1390
|
-
update(resourceGroupName, resourceName, options) {
|
|
1391
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$1);
|
|
1392
|
-
}
|
|
1393
|
-
/**
|
|
1394
|
-
* Gets the list of the Enabled Resource Types.
|
|
1395
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1396
|
-
* @param resourceName Custom Locations name.
|
|
1397
|
-
* @param options The options parameters.
|
|
1398
|
-
*/
|
|
1399
|
-
_listEnabledResourceTypes(resourceGroupName, resourceName, options) {
|
|
1400
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listEnabledResourceTypesOperationSpec);
|
|
1401
|
-
}
|
|
1402
|
-
/**
|
|
1403
|
-
* Returns the target resource group associated with the resource sync rules of the Custom Location
|
|
1404
|
-
* that match the rules passed in with the Find Target Resource Group Request.
|
|
1405
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1406
|
-
* @param resourceName Custom Locations name.
|
|
1407
|
-
* @param parameters Parameters of the find target resource group request.
|
|
1408
|
-
* @param options The options parameters.
|
|
1409
|
-
*/
|
|
1410
|
-
findTargetResourceGroup(resourceGroupName, resourceName, parameters, options) {
|
|
1411
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, parameters, options }, findTargetResourceGroupOperationSpec);
|
|
1412
|
-
}
|
|
1413
|
-
/**
|
|
1414
|
-
* ListOperationsNext
|
|
1415
|
-
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
1416
|
-
* @param options The options parameters.
|
|
1417
|
-
*/
|
|
1418
|
-
_listOperationsNext(nextLink, options) {
|
|
1419
|
-
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
|
|
1420
|
-
}
|
|
1421
|
-
/**
|
|
1422
|
-
* ListBySubscriptionNext
|
|
1423
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1424
|
-
* @param options The options parameters.
|
|
1425
|
-
*/
|
|
1426
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
1427
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1428
|
-
}
|
|
1429
|
-
/**
|
|
1430
|
-
* ListByResourceGroupNext
|
|
1431
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1432
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1433
|
-
* @param options The options parameters.
|
|
1434
|
-
*/
|
|
1435
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1436
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* ListEnabledResourceTypesNext
|
|
1440
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1441
|
-
* @param resourceName Custom Locations name.
|
|
1442
|
-
* @param nextLink The nextLink from the previous successful call to the ListEnabledResourceTypes
|
|
1443
|
-
* method.
|
|
1444
|
-
* @param options The options parameters.
|
|
1445
|
-
*/
|
|
1446
|
-
_listEnabledResourceTypesNext(resourceGroupName, resourceName, nextLink, options) {
|
|
1447
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listEnabledResourceTypesNextOperationSpec);
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
// Operation Specifications
|
|
1451
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1452
|
-
const listOperationsOperationSpec = {
|
|
1453
|
-
path: "/providers/Microsoft.ExtendedLocation/operations",
|
|
1454
|
-
httpMethod: "GET",
|
|
1455
|
-
responses: {
|
|
1456
|
-
200: {
|
|
1457
|
-
bodyMapper: CustomLocationOperationsList
|
|
1458
|
-
},
|
|
1459
|
-
default: {
|
|
1460
|
-
bodyMapper: ErrorResponse
|
|
1461
|
-
}
|
|
1462
|
-
},
|
|
1463
|
-
queryParameters: [apiVersion],
|
|
1464
|
-
urlParameters: [$host],
|
|
1465
|
-
headerParameters: [accept],
|
|
1466
|
-
serializer: serializer$1
|
|
1467
|
-
};
|
|
1468
|
-
const listBySubscriptionOperationSpec = {
|
|
1469
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations",
|
|
1470
|
-
httpMethod: "GET",
|
|
1471
|
-
responses: {
|
|
1472
|
-
200: {
|
|
1473
|
-
bodyMapper: CustomLocationListResult
|
|
1474
|
-
},
|
|
1475
|
-
default: {
|
|
1476
|
-
bodyMapper: ErrorResponse
|
|
1477
|
-
}
|
|
1478
|
-
},
|
|
1479
|
-
queryParameters: [apiVersion],
|
|
1480
|
-
urlParameters: [$host, subscriptionId],
|
|
1481
|
-
headerParameters: [accept],
|
|
1482
|
-
serializer: serializer$1
|
|
1483
|
-
};
|
|
1484
|
-
const listByResourceGroupOperationSpec = {
|
|
1485
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations",
|
|
1486
|
-
httpMethod: "GET",
|
|
1487
|
-
responses: {
|
|
1488
|
-
200: {
|
|
1489
|
-
bodyMapper: CustomLocationListResult
|
|
1490
|
-
},
|
|
1491
|
-
default: {
|
|
1492
|
-
bodyMapper: ErrorResponse
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
queryParameters: [apiVersion],
|
|
1496
|
-
urlParameters: [
|
|
1497
|
-
$host,
|
|
1498
|
-
subscriptionId,
|
|
1499
|
-
resourceGroupName
|
|
1500
|
-
],
|
|
1501
|
-
headerParameters: [accept],
|
|
1502
|
-
serializer: serializer$1
|
|
1503
|
-
};
|
|
1504
|
-
const getOperationSpec$1 = {
|
|
1505
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
1506
|
-
httpMethod: "GET",
|
|
1507
|
-
responses: {
|
|
1508
|
-
200: {
|
|
1509
|
-
bodyMapper: CustomLocation
|
|
1510
|
-
},
|
|
1511
|
-
default: {
|
|
1512
|
-
bodyMapper: ErrorResponse
|
|
1513
|
-
}
|
|
1514
|
-
},
|
|
1515
|
-
queryParameters: [apiVersion],
|
|
1516
|
-
urlParameters: [
|
|
1517
|
-
$host,
|
|
1518
|
-
subscriptionId,
|
|
1519
|
-
resourceGroupName,
|
|
1520
|
-
resourceName
|
|
1521
|
-
],
|
|
1522
|
-
headerParameters: [accept],
|
|
1523
|
-
serializer: serializer$1
|
|
1524
|
-
};
|
|
1525
|
-
const createOrUpdateOperationSpec$1 = {
|
|
1526
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
1527
|
-
httpMethod: "PUT",
|
|
1528
|
-
responses: {
|
|
1529
|
-
200: {
|
|
1530
|
-
bodyMapper: CustomLocation
|
|
1531
|
-
},
|
|
1532
|
-
201: {
|
|
1533
|
-
bodyMapper: CustomLocation
|
|
1534
|
-
},
|
|
1535
|
-
202: {
|
|
1536
|
-
bodyMapper: CustomLocation
|
|
1537
|
-
},
|
|
1538
|
-
204: {
|
|
1539
|
-
bodyMapper: CustomLocation
|
|
1540
|
-
},
|
|
1541
|
-
default: {
|
|
1542
|
-
bodyMapper: ErrorResponse
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
requestBody: parameters,
|
|
1546
|
-
queryParameters: [apiVersion],
|
|
1547
|
-
urlParameters: [
|
|
1548
|
-
$host,
|
|
1549
|
-
subscriptionId,
|
|
1550
|
-
resourceGroupName,
|
|
1551
|
-
resourceName
|
|
1552
|
-
],
|
|
1553
|
-
headerParameters: [accept, contentType],
|
|
1554
|
-
mediaType: "json",
|
|
1555
|
-
serializer: serializer$1
|
|
1556
|
-
};
|
|
1557
|
-
const deleteOperationSpec$1 = {
|
|
1558
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
1559
|
-
httpMethod: "DELETE",
|
|
1560
|
-
responses: {
|
|
1561
|
-
200: {},
|
|
1562
|
-
201: {},
|
|
1563
|
-
202: {},
|
|
1564
|
-
204: {},
|
|
1565
|
-
default: {
|
|
1566
|
-
bodyMapper: ErrorResponse
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
|
-
queryParameters: [apiVersion],
|
|
1570
|
-
urlParameters: [
|
|
1571
|
-
$host,
|
|
1572
|
-
subscriptionId,
|
|
1573
|
-
resourceGroupName,
|
|
1574
|
-
resourceName
|
|
1575
|
-
],
|
|
1576
|
-
headerParameters: [accept],
|
|
1577
|
-
serializer: serializer$1
|
|
1578
|
-
};
|
|
1579
|
-
const updateOperationSpec$1 = {
|
|
1580
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
1581
|
-
httpMethod: "PATCH",
|
|
1582
|
-
responses: {
|
|
1583
|
-
200: {
|
|
1584
|
-
bodyMapper: CustomLocation
|
|
1585
|
-
},
|
|
1586
|
-
default: {
|
|
1587
|
-
bodyMapper: ErrorResponse
|
|
1588
|
-
}
|
|
1589
|
-
},
|
|
1590
|
-
requestBody: {
|
|
1591
|
-
parameterPath: {
|
|
1592
|
-
identity: ["options", "identity"],
|
|
1593
|
-
tags: ["options", "tags"],
|
|
1594
|
-
authentication: ["options", "authentication"],
|
|
1595
|
-
clusterExtensionIds: ["options", "clusterExtensionIds"],
|
|
1596
|
-
displayName: ["options", "displayName"],
|
|
1597
|
-
hostResourceId: ["options", "hostResourceId"],
|
|
1598
|
-
hostType: ["options", "hostType"],
|
|
1599
|
-
namespace: ["options", "namespace"],
|
|
1600
|
-
provisioningState: ["options", "provisioningState"]
|
|
1601
|
-
},
|
|
1602
|
-
mapper: Object.assign(Object.assign({}, PatchableCustomLocations), { required: true })
|
|
1603
|
-
},
|
|
1604
|
-
queryParameters: [apiVersion],
|
|
1605
|
-
urlParameters: [
|
|
1606
|
-
$host,
|
|
1607
|
-
subscriptionId,
|
|
1608
|
-
resourceGroupName,
|
|
1609
|
-
resourceName
|
|
1610
|
-
],
|
|
1611
|
-
headerParameters: [accept, contentType],
|
|
1612
|
-
mediaType: "json",
|
|
1613
|
-
serializer: serializer$1
|
|
1614
|
-
};
|
|
1615
|
-
const listEnabledResourceTypesOperationSpec = {
|
|
1616
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes",
|
|
1617
|
-
httpMethod: "GET",
|
|
1618
|
-
responses: {
|
|
1619
|
-
200: {
|
|
1620
|
-
bodyMapper: EnabledResourceTypesListResult
|
|
1621
|
-
},
|
|
1622
|
-
default: {
|
|
1623
|
-
bodyMapper: ErrorResponse
|
|
1624
|
-
}
|
|
1625
|
-
},
|
|
1626
|
-
queryParameters: [apiVersion],
|
|
1627
|
-
urlParameters: [
|
|
1628
|
-
$host,
|
|
1629
|
-
subscriptionId,
|
|
1630
|
-
resourceGroupName,
|
|
1631
|
-
resourceName
|
|
1632
|
-
],
|
|
1633
|
-
headerParameters: [accept],
|
|
1634
|
-
serializer: serializer$1
|
|
1635
|
-
};
|
|
1636
|
-
const findTargetResourceGroupOperationSpec = {
|
|
1637
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup",
|
|
1638
|
-
httpMethod: "POST",
|
|
1639
|
-
responses: {
|
|
1640
|
-
200: {
|
|
1641
|
-
bodyMapper: CustomLocationFindTargetResourceGroupResult
|
|
1642
|
-
},
|
|
1643
|
-
204: {},
|
|
1644
|
-
default: {
|
|
1645
|
-
bodyMapper: ErrorResponse
|
|
1646
|
-
}
|
|
1647
|
-
},
|
|
1648
|
-
requestBody: parameters2,
|
|
1649
|
-
queryParameters: [apiVersion],
|
|
1650
|
-
urlParameters: [
|
|
1651
|
-
$host,
|
|
1652
|
-
subscriptionId,
|
|
1653
|
-
resourceGroupName,
|
|
1654
|
-
resourceName
|
|
1655
|
-
],
|
|
1656
|
-
headerParameters: [accept, contentType],
|
|
1657
|
-
mediaType: "json",
|
|
1658
|
-
serializer: serializer$1
|
|
1659
|
-
};
|
|
1660
|
-
const listOperationsNextOperationSpec = {
|
|
1661
|
-
path: "{nextLink}",
|
|
1662
|
-
httpMethod: "GET",
|
|
1663
|
-
responses: {
|
|
1664
|
-
200: {
|
|
1665
|
-
bodyMapper: CustomLocationOperationsList
|
|
1666
|
-
},
|
|
1667
|
-
default: {
|
|
1668
|
-
bodyMapper: ErrorResponse
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
queryParameters: [apiVersion],
|
|
1672
|
-
urlParameters: [$host, nextLink],
|
|
1673
|
-
headerParameters: [accept],
|
|
1674
|
-
serializer: serializer$1
|
|
1675
|
-
};
|
|
1676
|
-
const listBySubscriptionNextOperationSpec = {
|
|
1677
|
-
path: "{nextLink}",
|
|
1678
|
-
httpMethod: "GET",
|
|
1679
|
-
responses: {
|
|
1680
|
-
200: {
|
|
1681
|
-
bodyMapper: CustomLocationListResult
|
|
1682
|
-
},
|
|
1683
|
-
default: {
|
|
1684
|
-
bodyMapper: ErrorResponse
|
|
1685
|
-
}
|
|
1686
|
-
},
|
|
1687
|
-
queryParameters: [apiVersion],
|
|
1688
|
-
urlParameters: [
|
|
1689
|
-
$host,
|
|
1690
|
-
subscriptionId,
|
|
1691
|
-
nextLink
|
|
1692
|
-
],
|
|
1693
|
-
headerParameters: [accept],
|
|
1694
|
-
serializer: serializer$1
|
|
1695
|
-
};
|
|
1696
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1697
|
-
path: "{nextLink}",
|
|
1698
|
-
httpMethod: "GET",
|
|
1699
|
-
responses: {
|
|
1700
|
-
200: {
|
|
1701
|
-
bodyMapper: CustomLocationListResult
|
|
1702
|
-
},
|
|
1703
|
-
default: {
|
|
1704
|
-
bodyMapper: ErrorResponse
|
|
1705
|
-
}
|
|
1706
|
-
},
|
|
1707
|
-
queryParameters: [apiVersion],
|
|
1708
|
-
urlParameters: [
|
|
1709
|
-
$host,
|
|
1710
|
-
subscriptionId,
|
|
1711
|
-
resourceGroupName,
|
|
1712
|
-
nextLink
|
|
1713
|
-
],
|
|
1714
|
-
headerParameters: [accept],
|
|
1715
|
-
serializer: serializer$1
|
|
1716
|
-
};
|
|
1717
|
-
const listEnabledResourceTypesNextOperationSpec = {
|
|
1718
|
-
path: "{nextLink}",
|
|
1719
|
-
httpMethod: "GET",
|
|
1720
|
-
responses: {
|
|
1721
|
-
200: {
|
|
1722
|
-
bodyMapper: EnabledResourceTypesListResult
|
|
1723
|
-
},
|
|
1724
|
-
default: {
|
|
1725
|
-
bodyMapper: ErrorResponse
|
|
1726
|
-
}
|
|
1727
|
-
},
|
|
1728
|
-
queryParameters: [apiVersion],
|
|
1729
|
-
urlParameters: [
|
|
1730
|
-
$host,
|
|
1731
|
-
subscriptionId,
|
|
1732
|
-
resourceGroupName,
|
|
1733
|
-
resourceName,
|
|
1734
|
-
nextLink
|
|
1735
|
-
],
|
|
1736
|
-
headerParameters: [accept],
|
|
1737
|
-
serializer: serializer$1
|
|
1738
|
-
};
|
|
1739
|
-
|
|
1740
|
-
/*
|
|
1741
|
-
* Copyright (c) Microsoft Corporation.
|
|
1742
|
-
* Licensed under the MIT License.
|
|
1743
|
-
*
|
|
1744
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1745
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1746
|
-
*/
|
|
1747
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1748
|
-
/** Class containing ResourceSyncRules operations. */
|
|
1749
|
-
class ResourceSyncRulesImpl {
|
|
1750
|
-
/**
|
|
1751
|
-
* Initialize a new instance of the class ResourceSyncRules class.
|
|
1752
|
-
* @param client Reference to the service client
|
|
1753
|
-
*/
|
|
1754
|
-
constructor(client) {
|
|
1755
|
-
this.client = client;
|
|
1756
|
-
}
|
|
1757
|
-
/**
|
|
1758
|
-
* Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
|
|
1759
|
-
* of each Resource Sync Rule
|
|
1760
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1761
|
-
* @param resourceName Custom Locations name.
|
|
1762
|
-
* @param options The options parameters.
|
|
1763
|
-
*/
|
|
1764
|
-
listByCustomLocationID(resourceGroupName, resourceName, options) {
|
|
1765
|
-
const iter = this.listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options);
|
|
1766
|
-
return {
|
|
1767
|
-
next() {
|
|
1768
|
-
return iter.next();
|
|
1769
|
-
},
|
|
1770
|
-
[Symbol.asyncIterator]() {
|
|
1771
|
-
return this;
|
|
1772
|
-
},
|
|
1773
|
-
byPage: () => {
|
|
1774
|
-
return this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options);
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options) {
|
|
1779
|
-
return tslib.__asyncGenerator(this, arguments, function* listByCustomLocationIDPagingPage_1() {
|
|
1780
|
-
let result = yield tslib.__await(this._listByCustomLocationID(resourceGroupName, resourceName, options));
|
|
1781
|
-
yield yield tslib.__await(result.value || []);
|
|
1782
|
-
let continuationToken = result.nextLink;
|
|
1783
|
-
while (continuationToken) {
|
|
1784
|
-
result = yield tslib.__await(this._listByCustomLocationIDNext(resourceGroupName, resourceName, continuationToken, options));
|
|
1785
|
-
continuationToken = result.nextLink;
|
|
1786
|
-
yield yield tslib.__await(result.value || []);
|
|
1787
|
-
}
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options) {
|
|
1791
|
-
return tslib.__asyncGenerator(this, arguments, function* listByCustomLocationIDPagingAll_1() {
|
|
1792
|
-
var e_1, _a;
|
|
1793
|
-
try {
|
|
1794
|
-
for (var _b = tslib.__asyncValues(this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1795
|
-
const page = _c.value;
|
|
1796
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1800
|
-
finally {
|
|
1801
|
-
try {
|
|
1802
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1803
|
-
}
|
|
1804
|
-
finally { if (e_1) throw e_1.error; }
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
/**
|
|
1809
|
-
* Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
|
|
1810
|
-
* of each Resource Sync Rule
|
|
1811
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1812
|
-
* @param resourceName Custom Locations name.
|
|
1813
|
-
* @param options The options parameters.
|
|
1814
|
-
*/
|
|
1815
|
-
_listByCustomLocationID(resourceGroupName, resourceName, options) {
|
|
1816
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByCustomLocationIDOperationSpec);
|
|
1817
|
-
}
|
|
1818
|
-
/**
|
|
1819
|
-
* Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom
|
|
1820
|
-
* Location resource name and Resource Sync Rule name.
|
|
1821
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1822
|
-
* @param resourceName Custom Locations name.
|
|
1823
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1824
|
-
* @param options The options parameters.
|
|
1825
|
-
*/
|
|
1826
|
-
get(resourceGroupName, resourceName, childResourceName, options) {
|
|
1827
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, getOperationSpec);
|
|
1828
|
-
}
|
|
1829
|
-
/**
|
|
1830
|
-
* Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
|
|
1831
|
-
* Group
|
|
1832
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1833
|
-
* @param resourceName Custom Locations name.
|
|
1834
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1835
|
-
* @param parameters Parameters supplied to create or update a Resource Sync Rule.
|
|
1836
|
-
* @param options The options parameters.
|
|
1837
|
-
*/
|
|
1838
|
-
beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options) {
|
|
1839
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1840
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1841
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1842
|
-
});
|
|
1843
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1844
|
-
var _a;
|
|
1845
|
-
let currentRawResponse = undefined;
|
|
1846
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1847
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1848
|
-
currentRawResponse = rawResponse;
|
|
1849
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1850
|
-
};
|
|
1851
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1852
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1853
|
-
return {
|
|
1854
|
-
flatResponse,
|
|
1855
|
-
rawResponse: {
|
|
1856
|
-
statusCode: currentRawResponse.status,
|
|
1857
|
-
body: currentRawResponse.parsedBody,
|
|
1858
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1859
|
-
}
|
|
1860
|
-
};
|
|
1861
|
-
});
|
|
1862
|
-
const lro = new LroImpl(sendOperation, {
|
|
1863
|
-
resourceGroupName,
|
|
1864
|
-
resourceName,
|
|
1865
|
-
childResourceName,
|
|
1866
|
-
parameters,
|
|
1867
|
-
options
|
|
1868
|
-
}, createOrUpdateOperationSpec);
|
|
1869
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1870
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1871
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1872
|
-
lroResourceLocationConfig: "azure-async-operation"
|
|
1873
|
-
});
|
|
1874
|
-
yield poller.poll();
|
|
1875
|
-
return poller;
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
/**
|
|
1879
|
-
* Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
|
|
1880
|
-
* Group
|
|
1881
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1882
|
-
* @param resourceName Custom Locations name.
|
|
1883
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1884
|
-
* @param parameters Parameters supplied to create or update a Resource Sync Rule.
|
|
1885
|
-
* @param options The options parameters.
|
|
1886
|
-
*/
|
|
1887
|
-
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, childResourceName, parameters, options) {
|
|
1888
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1889
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options);
|
|
1890
|
-
return poller.pollUntilDone();
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
/**
|
|
1894
|
-
* Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource
|
|
1895
|
-
* Name, Resource Group, and Subscription Id.
|
|
1896
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1897
|
-
* @param resourceName Custom Locations name.
|
|
1898
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1899
|
-
* @param options The options parameters.
|
|
1900
|
-
*/
|
|
1901
|
-
delete(resourceGroupName, resourceName, childResourceName, options) {
|
|
1902
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, deleteOperationSpec);
|
|
1903
|
-
}
|
|
1904
|
-
/**
|
|
1905
|
-
* Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
|
|
1906
|
-
* Group, Subscription and Custom Location name.
|
|
1907
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1908
|
-
* @param resourceName Custom Locations name.
|
|
1909
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1910
|
-
* @param options The options parameters.
|
|
1911
|
-
*/
|
|
1912
|
-
beginUpdate(resourceGroupName, resourceName, childResourceName, options) {
|
|
1913
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1914
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1915
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1916
|
-
});
|
|
1917
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1918
|
-
var _a;
|
|
1919
|
-
let currentRawResponse = undefined;
|
|
1920
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1921
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1922
|
-
currentRawResponse = rawResponse;
|
|
1923
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1924
|
-
};
|
|
1925
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1926
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1927
|
-
return {
|
|
1928
|
-
flatResponse,
|
|
1929
|
-
rawResponse: {
|
|
1930
|
-
statusCode: currentRawResponse.status,
|
|
1931
|
-
body: currentRawResponse.parsedBody,
|
|
1932
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
});
|
|
1936
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, childResourceName, options }, updateOperationSpec);
|
|
1937
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
1938
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1939
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1940
|
-
lroResourceLocationConfig: "azure-async-operation"
|
|
1941
|
-
});
|
|
1942
|
-
yield poller.poll();
|
|
1943
|
-
return poller;
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
/**
|
|
1947
|
-
* Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
|
|
1948
|
-
* Group, Subscription and Custom Location name.
|
|
1949
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1950
|
-
* @param resourceName Custom Locations name.
|
|
1951
|
-
* @param childResourceName Resource Sync Rule name.
|
|
1952
|
-
* @param options The options parameters.
|
|
1953
|
-
*/
|
|
1954
|
-
beginUpdateAndWait(resourceGroupName, resourceName, childResourceName, options) {
|
|
1955
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1956
|
-
const poller = yield this.beginUpdate(resourceGroupName, resourceName, childResourceName, options);
|
|
1957
|
-
return poller.pollUntilDone();
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
/**
|
|
1961
|
-
* ListByCustomLocationIDNext
|
|
1962
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1963
|
-
* @param resourceName Custom Locations name.
|
|
1964
|
-
* @param nextLink The nextLink from the previous successful call to the ListByCustomLocationID method.
|
|
1965
|
-
* @param options The options parameters.
|
|
1966
|
-
*/
|
|
1967
|
-
_listByCustomLocationIDNext(resourceGroupName, resourceName, nextLink, options) {
|
|
1968
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listByCustomLocationIDNextOperationSpec);
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
// Operation Specifications
|
|
1972
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1973
|
-
const listByCustomLocationIDOperationSpec = {
|
|
1974
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules",
|
|
1975
|
-
httpMethod: "GET",
|
|
1976
|
-
responses: {
|
|
1977
|
-
200: {
|
|
1978
|
-
bodyMapper: ResourceSyncRuleListResult
|
|
1979
|
-
},
|
|
1980
|
-
default: {
|
|
1981
|
-
bodyMapper: ErrorResponse
|
|
1982
|
-
}
|
|
1983
|
-
},
|
|
1984
|
-
queryParameters: [apiVersion],
|
|
1985
|
-
urlParameters: [
|
|
1986
|
-
$host,
|
|
1987
|
-
subscriptionId,
|
|
1988
|
-
resourceGroupName,
|
|
1989
|
-
resourceName
|
|
1990
|
-
],
|
|
1991
|
-
headerParameters: [accept],
|
|
1992
|
-
serializer
|
|
1993
|
-
};
|
|
1994
|
-
const getOperationSpec = {
|
|
1995
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
|
|
1996
|
-
httpMethod: "GET",
|
|
1997
|
-
responses: {
|
|
1998
|
-
200: {
|
|
1999
|
-
bodyMapper: ResourceSyncRule
|
|
2000
|
-
},
|
|
2001
|
-
default: {
|
|
2002
|
-
bodyMapper: ErrorResponse
|
|
2003
|
-
}
|
|
2004
|
-
},
|
|
2005
|
-
queryParameters: [apiVersion],
|
|
2006
|
-
urlParameters: [
|
|
2007
|
-
$host,
|
|
2008
|
-
subscriptionId,
|
|
2009
|
-
resourceGroupName,
|
|
2010
|
-
resourceName,
|
|
2011
|
-
childResourceName
|
|
2012
|
-
],
|
|
2013
|
-
headerParameters: [accept],
|
|
2014
|
-
serializer
|
|
2015
|
-
};
|
|
2016
|
-
const createOrUpdateOperationSpec = {
|
|
2017
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
|
|
2018
|
-
httpMethod: "PUT",
|
|
2019
|
-
responses: {
|
|
2020
|
-
200: {
|
|
2021
|
-
bodyMapper: ResourceSyncRule
|
|
2022
|
-
},
|
|
2023
|
-
201: {
|
|
2024
|
-
bodyMapper: ResourceSyncRule
|
|
2025
|
-
},
|
|
2026
|
-
202: {
|
|
2027
|
-
bodyMapper: ResourceSyncRule
|
|
2028
|
-
},
|
|
2029
|
-
204: {
|
|
2030
|
-
bodyMapper: ResourceSyncRule
|
|
2031
|
-
},
|
|
2032
|
-
default: {
|
|
2033
|
-
bodyMapper: ErrorResponse
|
|
2034
|
-
}
|
|
2035
|
-
},
|
|
2036
|
-
requestBody: parameters3,
|
|
2037
|
-
queryParameters: [apiVersion],
|
|
2038
|
-
urlParameters: [
|
|
2039
|
-
$host,
|
|
2040
|
-
subscriptionId,
|
|
2041
|
-
resourceGroupName,
|
|
2042
|
-
resourceName,
|
|
2043
|
-
childResourceName
|
|
2044
|
-
],
|
|
2045
|
-
headerParameters: [accept, contentType],
|
|
2046
|
-
mediaType: "json",
|
|
2047
|
-
serializer
|
|
2048
|
-
};
|
|
2049
|
-
const deleteOperationSpec = {
|
|
2050
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
|
|
2051
|
-
httpMethod: "DELETE",
|
|
2052
|
-
responses: {
|
|
2053
|
-
200: {},
|
|
2054
|
-
204: {},
|
|
2055
|
-
default: {
|
|
2056
|
-
bodyMapper: ErrorResponse
|
|
2057
|
-
}
|
|
2058
|
-
},
|
|
2059
|
-
queryParameters: [apiVersion],
|
|
2060
|
-
urlParameters: [
|
|
2061
|
-
$host,
|
|
2062
|
-
subscriptionId,
|
|
2063
|
-
resourceGroupName,
|
|
2064
|
-
resourceName,
|
|
2065
|
-
childResourceName
|
|
2066
|
-
],
|
|
2067
|
-
headerParameters: [accept],
|
|
2068
|
-
serializer
|
|
2069
|
-
};
|
|
2070
|
-
const updateOperationSpec = {
|
|
2071
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
|
|
2072
|
-
httpMethod: "PATCH",
|
|
2073
|
-
responses: {
|
|
2074
|
-
200: {
|
|
2075
|
-
bodyMapper: ResourceSyncRule
|
|
2076
|
-
},
|
|
2077
|
-
201: {
|
|
2078
|
-
bodyMapper: ResourceSyncRule
|
|
2079
|
-
},
|
|
2080
|
-
202: {
|
|
2081
|
-
bodyMapper: ResourceSyncRule
|
|
2082
|
-
},
|
|
2083
|
-
204: {
|
|
2084
|
-
bodyMapper: ResourceSyncRule
|
|
2085
|
-
},
|
|
2086
|
-
default: {
|
|
2087
|
-
bodyMapper: ErrorResponse
|
|
2088
|
-
}
|
|
2089
|
-
},
|
|
2090
|
-
requestBody: {
|
|
2091
|
-
parameterPath: {
|
|
2092
|
-
tags: ["options", "tags"],
|
|
2093
|
-
priority: ["options", "priority"],
|
|
2094
|
-
selector: ["options", "selector"],
|
|
2095
|
-
targetResourceGroup: ["options", "targetResourceGroup"]
|
|
2096
|
-
},
|
|
2097
|
-
mapper: Object.assign(Object.assign({}, PatchableResourceSyncRule), { required: true })
|
|
2098
|
-
},
|
|
2099
|
-
queryParameters: [apiVersion],
|
|
2100
|
-
urlParameters: [
|
|
2101
|
-
$host,
|
|
2102
|
-
subscriptionId,
|
|
2103
|
-
resourceGroupName,
|
|
2104
|
-
resourceName,
|
|
2105
|
-
childResourceName
|
|
2106
|
-
],
|
|
2107
|
-
headerParameters: [accept, contentType],
|
|
2108
|
-
mediaType: "json",
|
|
2109
|
-
serializer
|
|
2110
|
-
};
|
|
2111
|
-
const listByCustomLocationIDNextOperationSpec = {
|
|
2112
|
-
path: "{nextLink}",
|
|
2113
|
-
httpMethod: "GET",
|
|
2114
|
-
responses: {
|
|
2115
|
-
200: {
|
|
2116
|
-
bodyMapper: ResourceSyncRuleListResult
|
|
2117
|
-
},
|
|
2118
|
-
default: {
|
|
2119
|
-
bodyMapper: ErrorResponse
|
|
2120
|
-
}
|
|
2121
|
-
},
|
|
2122
|
-
queryParameters: [apiVersion],
|
|
2123
|
-
urlParameters: [
|
|
2124
|
-
$host,
|
|
2125
|
-
subscriptionId,
|
|
2126
|
-
resourceGroupName,
|
|
2127
|
-
resourceName,
|
|
2128
|
-
nextLink
|
|
2129
|
-
],
|
|
2130
|
-
headerParameters: [accept],
|
|
2131
|
-
serializer
|
|
2132
|
-
};
|
|
2133
|
-
|
|
2134
|
-
/*
|
|
2135
|
-
* Copyright (c) Microsoft Corporation.
|
|
2136
|
-
* Licensed under the MIT License.
|
|
2137
|
-
*
|
|
2138
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2139
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2140
|
-
*/
|
|
2141
|
-
class CustomLocationsManagementClient extends coreClient__namespace.ServiceClient {
|
|
2142
|
-
/**
|
|
2143
|
-
* Initializes a new instance of the CustomLocationsManagementClient class.
|
|
2144
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2145
|
-
* @param subscriptionId The ID of the target subscription.
|
|
2146
|
-
* @param options The parameter options
|
|
2147
|
-
*/
|
|
2148
|
-
constructor(credentials, subscriptionId, options) {
|
|
2149
|
-
var _a, _b;
|
|
2150
|
-
if (credentials === undefined) {
|
|
2151
|
-
throw new Error("'credentials' cannot be null");
|
|
2152
|
-
}
|
|
2153
|
-
if (subscriptionId === undefined) {
|
|
2154
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
2155
|
-
}
|
|
2156
|
-
// Initializing default values for options
|
|
2157
|
-
if (!options) {
|
|
2158
|
-
options = {};
|
|
2159
|
-
}
|
|
2160
|
-
const defaults = {
|
|
2161
|
-
requestContentType: "application/json; charset=utf-8",
|
|
2162
|
-
credential: credentials
|
|
2163
|
-
};
|
|
2164
|
-
const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.2`;
|
|
2165
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2166
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2167
|
-
: `${packageDetails}`;
|
|
2168
|
-
if (!options.credentialScopes) {
|
|
2169
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2170
|
-
}
|
|
2171
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2172
|
-
userAgentPrefix
|
|
2173
|
-
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2174
|
-
super(optionsWithDefaults);
|
|
2175
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2176
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2177
|
-
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2178
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2179
|
-
if (!bearerTokenAuthenticationPolicyFound) {
|
|
2180
|
-
this.pipeline.removePolicy({
|
|
2181
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2182
|
-
});
|
|
2183
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2184
|
-
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
2185
|
-
challengeCallbacks: {
|
|
2186
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2187
|
-
}
|
|
2188
|
-
}));
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
// Parameter assignments
|
|
2192
|
-
this.subscriptionId = subscriptionId;
|
|
2193
|
-
// Assigning values to Constant parameters
|
|
2194
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
2195
|
-
this.apiVersion = options.apiVersion || "2021-08-31-preview";
|
|
2196
|
-
this.customLocations = new CustomLocationsImpl(this);
|
|
2197
|
-
this.resourceSyncRules = new ResourceSyncRulesImpl(this);
|
|
2198
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2199
|
-
}
|
|
2200
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2201
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
2202
|
-
if (!apiVersion) {
|
|
2203
|
-
return;
|
|
2204
|
-
}
|
|
2205
|
-
const apiVersionPolicy = {
|
|
2206
|
-
name: "CustomApiVersionPolicy",
|
|
2207
|
-
sendRequest(request, next) {
|
|
2208
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2209
|
-
const param = request.url.split("?");
|
|
2210
|
-
if (param.length > 1) {
|
|
2211
|
-
const newParams = param[1].split("&").map((item) => {
|
|
2212
|
-
if (item.indexOf("api-version") > -1) {
|
|
2213
|
-
return "api-version=" + apiVersion;
|
|
2214
|
-
}
|
|
2215
|
-
else {
|
|
2216
|
-
return item;
|
|
2217
|
-
}
|
|
2218
|
-
});
|
|
2219
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
2220
|
-
}
|
|
2221
|
-
return next(request);
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
};
|
|
2225
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
exports.CustomLocationsManagementClient = CustomLocationsManagementClient;
|
|
2230
|
-
//# sourceMappingURL=index.js.map
|