@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
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CustomLocationsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
17
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
|
+
/// <reference lib="esnext.asynciterable" />
|
|
19
|
+
/** Class containing CustomLocations operations. */
|
|
20
|
+
class CustomLocationsImpl {
|
|
21
|
+
client;
|
|
22
|
+
/**
|
|
23
|
+
* Initialize a new instance of the class CustomLocations class.
|
|
24
|
+
* @param client Reference to the service client
|
|
25
|
+
*/
|
|
26
|
+
constructor(client) {
|
|
27
|
+
this.client = client;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Lists all available Custom Locations operations.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listOperations(options) {
|
|
34
|
+
const iter = this.listOperationsPagingAll(options);
|
|
35
|
+
return {
|
|
36
|
+
next() {
|
|
37
|
+
return iter.next();
|
|
38
|
+
},
|
|
39
|
+
[Symbol.asyncIterator]() {
|
|
40
|
+
return this;
|
|
41
|
+
},
|
|
42
|
+
byPage: (settings) => {
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
|
+
}
|
|
46
|
+
return this.listOperationsPagingPage(options, settings);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
async *listOperationsPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listOperations(options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listOperationsNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async *listOperationsPagingAll(options) {
|
|
69
|
+
for await (const page of this.listOperationsPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Gets a list of Custom Locations in the specified subscription. The operation returns properties of
|
|
75
|
+
* each Custom Location
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
listBySubscription(options) {
|
|
79
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
80
|
+
return {
|
|
81
|
+
next() {
|
|
82
|
+
return iter.next();
|
|
83
|
+
},
|
|
84
|
+
[Symbol.asyncIterator]() {
|
|
85
|
+
return this;
|
|
86
|
+
},
|
|
87
|
+
byPage: (settings) => {
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
89
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
90
|
+
}
|
|
91
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listBySubscription(options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async *listBySubscriptionPagingAll(options) {
|
|
114
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Gets a list of Custom Locations in the specified subscription and resource group. The operation
|
|
120
|
+
* returns properties of each Custom Location.
|
|
121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
125
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
126
|
+
return {
|
|
127
|
+
next() {
|
|
128
|
+
return iter.next();
|
|
129
|
+
},
|
|
130
|
+
[Symbol.asyncIterator]() {
|
|
131
|
+
return this;
|
|
132
|
+
},
|
|
133
|
+
byPage: (settings) => {
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
135
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
136
|
+
}
|
|
137
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
160
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Gets the list of the Enabled Resource Types.
|
|
166
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
|
+
* @param resourceName Custom Locations name.
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
listEnabledResourceTypes(resourceGroupName, resourceName, options) {
|
|
171
|
+
const iter = this.listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options);
|
|
172
|
+
return {
|
|
173
|
+
next() {
|
|
174
|
+
return iter.next();
|
|
175
|
+
},
|
|
176
|
+
[Symbol.asyncIterator]() {
|
|
177
|
+
return this;
|
|
178
|
+
},
|
|
179
|
+
byPage: (settings) => {
|
|
180
|
+
if (settings?.maxPageSize) {
|
|
181
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
182
|
+
}
|
|
183
|
+
return this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options, settings);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
async *listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
188
|
+
let result;
|
|
189
|
+
let continuationToken = settings?.continuationToken;
|
|
190
|
+
if (!continuationToken) {
|
|
191
|
+
result = await this._listEnabledResourceTypes(resourceGroupName, resourceName, options);
|
|
192
|
+
let page = result.value || [];
|
|
193
|
+
continuationToken = result.nextLink;
|
|
194
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
195
|
+
yield page;
|
|
196
|
+
}
|
|
197
|
+
while (continuationToken) {
|
|
198
|
+
result = await this._listEnabledResourceTypesNext(resourceGroupName, resourceName, continuationToken, options);
|
|
199
|
+
continuationToken = result.nextLink;
|
|
200
|
+
let page = result.value || [];
|
|
201
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
202
|
+
yield page;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
async *listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options) {
|
|
206
|
+
for await (const page of this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options)) {
|
|
207
|
+
yield* page;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Lists all available Custom Locations operations.
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
_listOperations(options) {
|
|
215
|
+
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Gets a list of Custom Locations in the specified subscription. The operation returns properties of
|
|
219
|
+
* each Custom Location
|
|
220
|
+
* @param options The options parameters.
|
|
221
|
+
*/
|
|
222
|
+
_listBySubscription(options) {
|
|
223
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Gets a list of Custom Locations in the specified subscription and resource group. The operation
|
|
227
|
+
* returns properties of each Custom Location.
|
|
228
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
229
|
+
* @param options The options parameters.
|
|
230
|
+
*/
|
|
231
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
232
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Gets the details of the customLocation with a specified resource group and name.
|
|
236
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
237
|
+
* @param resourceName Custom Locations name.
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
get(resourceGroupName, resourceName, options) {
|
|
241
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
245
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
246
|
+
* @param resourceName Custom Locations name.
|
|
247
|
+
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
248
|
+
* @param options The options parameters.
|
|
249
|
+
*/
|
|
250
|
+
async beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
251
|
+
const directSendOperation = async (args, spec) => {
|
|
252
|
+
return this.client.sendOperationRequest(args, spec);
|
|
253
|
+
};
|
|
254
|
+
const sendOperation = async (args, spec) => {
|
|
255
|
+
let currentRawResponse = undefined;
|
|
256
|
+
const providedCallback = args.options?.onResponse;
|
|
257
|
+
const callback = (rawResponse, flatResponse) => {
|
|
258
|
+
currentRawResponse = rawResponse;
|
|
259
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
260
|
+
};
|
|
261
|
+
const updatedArgs = {
|
|
262
|
+
...args,
|
|
263
|
+
options: {
|
|
264
|
+
...args.options,
|
|
265
|
+
onResponse: callback
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
269
|
+
return {
|
|
270
|
+
flatResponse,
|
|
271
|
+
rawResponse: {
|
|
272
|
+
statusCode: currentRawResponse.status,
|
|
273
|
+
body: currentRawResponse.parsedBody,
|
|
274
|
+
headers: currentRawResponse.headers.toJSON()
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec);
|
|
279
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
280
|
+
resumeFrom: options?.resumeFrom,
|
|
281
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
282
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
283
|
+
});
|
|
284
|
+
await poller.poll();
|
|
285
|
+
return poller;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Creates or updates a Custom Location in the specified Subscription and Resource Group
|
|
289
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
290
|
+
* @param resourceName Custom Locations name.
|
|
291
|
+
* @param parameters Parameters supplied to create or update a Custom Location.
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
295
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
296
|
+
return poller.pollUntilDone();
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
300
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
301
|
+
* @param resourceName Custom Locations name.
|
|
302
|
+
* @param options The options parameters.
|
|
303
|
+
*/
|
|
304
|
+
async beginDelete(resourceGroupName, resourceName, options) {
|
|
305
|
+
const directSendOperation = async (args, spec) => {
|
|
306
|
+
return this.client.sendOperationRequest(args, spec);
|
|
307
|
+
};
|
|
308
|
+
const sendOperation = async (args, spec) => {
|
|
309
|
+
let currentRawResponse = undefined;
|
|
310
|
+
const providedCallback = args.options?.onResponse;
|
|
311
|
+
const callback = (rawResponse, flatResponse) => {
|
|
312
|
+
currentRawResponse = rawResponse;
|
|
313
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
314
|
+
};
|
|
315
|
+
const updatedArgs = {
|
|
316
|
+
...args,
|
|
317
|
+
options: {
|
|
318
|
+
...args.options,
|
|
319
|
+
onResponse: callback
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
323
|
+
return {
|
|
324
|
+
flatResponse,
|
|
325
|
+
rawResponse: {
|
|
326
|
+
statusCode: currentRawResponse.status,
|
|
327
|
+
body: currentRawResponse.parsedBody,
|
|
328
|
+
headers: currentRawResponse.headers.toJSON()
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
|
|
333
|
+
const poller = new core_lro_1.LroEngine(lro, {
|
|
334
|
+
resumeFrom: options?.resumeFrom,
|
|
335
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
336
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
337
|
+
});
|
|
338
|
+
await poller.poll();
|
|
339
|
+
return poller;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
|
|
343
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
344
|
+
* @param resourceName Custom Locations name.
|
|
345
|
+
* @param options The options parameters.
|
|
346
|
+
*/
|
|
347
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
348
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, options);
|
|
349
|
+
return poller.pollUntilDone();
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Updates a Custom Location with the specified Resource Name in the specified Resource Group and
|
|
353
|
+
* Subscription.
|
|
354
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
355
|
+
* @param resourceName Custom Locations name.
|
|
356
|
+
* @param options The options parameters.
|
|
357
|
+
*/
|
|
358
|
+
update(resourceGroupName, resourceName, options) {
|
|
359
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Gets the list of the Enabled Resource Types.
|
|
363
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
364
|
+
* @param resourceName Custom Locations name.
|
|
365
|
+
* @param options The options parameters.
|
|
366
|
+
*/
|
|
367
|
+
_listEnabledResourceTypes(resourceGroupName, resourceName, options) {
|
|
368
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listEnabledResourceTypesOperationSpec);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Returns the target resource group associated with the resource sync rules of the Custom Location
|
|
372
|
+
* that match the rules passed in with the Find Target Resource Group Request.
|
|
373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
374
|
+
* @param resourceName Custom Locations name.
|
|
375
|
+
* @param parameters Parameters of the find target resource group request.
|
|
376
|
+
* @param options The options parameters.
|
|
377
|
+
*/
|
|
378
|
+
findTargetResourceGroup(resourceGroupName, resourceName, parameters, options) {
|
|
379
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, parameters, options }, findTargetResourceGroupOperationSpec);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* ListOperationsNext
|
|
383
|
+
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
384
|
+
* @param options The options parameters.
|
|
385
|
+
*/
|
|
386
|
+
_listOperationsNext(nextLink, options) {
|
|
387
|
+
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* ListBySubscriptionNext
|
|
391
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
392
|
+
* @param options The options parameters.
|
|
393
|
+
*/
|
|
394
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
395
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* ListByResourceGroupNext
|
|
399
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
400
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
401
|
+
* @param options The options parameters.
|
|
402
|
+
*/
|
|
403
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
404
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* ListEnabledResourceTypesNext
|
|
408
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
409
|
+
* @param resourceName Custom Locations name.
|
|
410
|
+
* @param nextLink The nextLink from the previous successful call to the ListEnabledResourceTypes
|
|
411
|
+
* method.
|
|
412
|
+
* @param options The options parameters.
|
|
413
|
+
*/
|
|
414
|
+
_listEnabledResourceTypesNext(resourceGroupName, resourceName, nextLink, options) {
|
|
415
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listEnabledResourceTypesNextOperationSpec);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
exports.CustomLocationsImpl = CustomLocationsImpl;
|
|
419
|
+
// Operation Specifications
|
|
420
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
421
|
+
const listOperationsOperationSpec = {
|
|
422
|
+
path: "/providers/Microsoft.ExtendedLocation/operations",
|
|
423
|
+
httpMethod: "GET",
|
|
424
|
+
responses: {
|
|
425
|
+
200: {
|
|
426
|
+
bodyMapper: Mappers.CustomLocationOperationsList
|
|
427
|
+
},
|
|
428
|
+
default: {
|
|
429
|
+
bodyMapper: Mappers.ErrorResponse
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
queryParameters: [Parameters.apiVersion],
|
|
433
|
+
urlParameters: [Parameters.$host],
|
|
434
|
+
headerParameters: [Parameters.accept],
|
|
435
|
+
serializer
|
|
436
|
+
};
|
|
437
|
+
const listBySubscriptionOperationSpec = {
|
|
438
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations",
|
|
439
|
+
httpMethod: "GET",
|
|
440
|
+
responses: {
|
|
441
|
+
200: {
|
|
442
|
+
bodyMapper: Mappers.CustomLocationListResult
|
|
443
|
+
},
|
|
444
|
+
default: {
|
|
445
|
+
bodyMapper: Mappers.ErrorResponse
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
queryParameters: [Parameters.apiVersion],
|
|
449
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
450
|
+
headerParameters: [Parameters.accept],
|
|
451
|
+
serializer
|
|
452
|
+
};
|
|
453
|
+
const listByResourceGroupOperationSpec = {
|
|
454
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations",
|
|
455
|
+
httpMethod: "GET",
|
|
456
|
+
responses: {
|
|
457
|
+
200: {
|
|
458
|
+
bodyMapper: Mappers.CustomLocationListResult
|
|
459
|
+
},
|
|
460
|
+
default: {
|
|
461
|
+
bodyMapper: Mappers.ErrorResponse
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
queryParameters: [Parameters.apiVersion],
|
|
465
|
+
urlParameters: [
|
|
466
|
+
Parameters.$host,
|
|
467
|
+
Parameters.subscriptionId,
|
|
468
|
+
Parameters.resourceGroupName
|
|
469
|
+
],
|
|
470
|
+
headerParameters: [Parameters.accept],
|
|
471
|
+
serializer
|
|
472
|
+
};
|
|
473
|
+
const getOperationSpec = {
|
|
474
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
475
|
+
httpMethod: "GET",
|
|
476
|
+
responses: {
|
|
477
|
+
200: {
|
|
478
|
+
bodyMapper: Mappers.CustomLocation
|
|
479
|
+
},
|
|
480
|
+
default: {
|
|
481
|
+
bodyMapper: Mappers.ErrorResponse
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
queryParameters: [Parameters.apiVersion],
|
|
485
|
+
urlParameters: [
|
|
486
|
+
Parameters.$host,
|
|
487
|
+
Parameters.subscriptionId,
|
|
488
|
+
Parameters.resourceGroupName,
|
|
489
|
+
Parameters.resourceName
|
|
490
|
+
],
|
|
491
|
+
headerParameters: [Parameters.accept],
|
|
492
|
+
serializer
|
|
493
|
+
};
|
|
494
|
+
const createOrUpdateOperationSpec = {
|
|
495
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
496
|
+
httpMethod: "PUT",
|
|
497
|
+
responses: {
|
|
498
|
+
200: {
|
|
499
|
+
bodyMapper: Mappers.CustomLocation
|
|
500
|
+
},
|
|
501
|
+
201: {
|
|
502
|
+
bodyMapper: Mappers.CustomLocation
|
|
503
|
+
},
|
|
504
|
+
202: {
|
|
505
|
+
bodyMapper: Mappers.CustomLocation
|
|
506
|
+
},
|
|
507
|
+
204: {
|
|
508
|
+
bodyMapper: Mappers.CustomLocation
|
|
509
|
+
},
|
|
510
|
+
default: {
|
|
511
|
+
bodyMapper: Mappers.ErrorResponse
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
requestBody: Parameters.parameters,
|
|
515
|
+
queryParameters: [Parameters.apiVersion],
|
|
516
|
+
urlParameters: [
|
|
517
|
+
Parameters.$host,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.resourceGroupName,
|
|
520
|
+
Parameters.resourceName
|
|
521
|
+
],
|
|
522
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
523
|
+
mediaType: "json",
|
|
524
|
+
serializer
|
|
525
|
+
};
|
|
526
|
+
const deleteOperationSpec = {
|
|
527
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
528
|
+
httpMethod: "DELETE",
|
|
529
|
+
responses: {
|
|
530
|
+
200: {},
|
|
531
|
+
201: {},
|
|
532
|
+
202: {},
|
|
533
|
+
204: {},
|
|
534
|
+
default: {
|
|
535
|
+
bodyMapper: Mappers.ErrorResponse
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
queryParameters: [Parameters.apiVersion],
|
|
539
|
+
urlParameters: [
|
|
540
|
+
Parameters.$host,
|
|
541
|
+
Parameters.subscriptionId,
|
|
542
|
+
Parameters.resourceGroupName,
|
|
543
|
+
Parameters.resourceName
|
|
544
|
+
],
|
|
545
|
+
headerParameters: [Parameters.accept],
|
|
546
|
+
serializer
|
|
547
|
+
};
|
|
548
|
+
const updateOperationSpec = {
|
|
549
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
|
|
550
|
+
httpMethod: "PATCH",
|
|
551
|
+
responses: {
|
|
552
|
+
200: {
|
|
553
|
+
bodyMapper: Mappers.CustomLocation
|
|
554
|
+
},
|
|
555
|
+
default: {
|
|
556
|
+
bodyMapper: Mappers.ErrorResponse
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
requestBody: {
|
|
560
|
+
parameterPath: {
|
|
561
|
+
identity: ["options", "identity"],
|
|
562
|
+
tags: ["options", "tags"],
|
|
563
|
+
authentication: ["options", "authentication"],
|
|
564
|
+
clusterExtensionIds: ["options", "clusterExtensionIds"],
|
|
565
|
+
displayName: ["options", "displayName"],
|
|
566
|
+
hostResourceId: ["options", "hostResourceId"],
|
|
567
|
+
hostType: ["options", "hostType"],
|
|
568
|
+
namespace: ["options", "namespace"],
|
|
569
|
+
provisioningState: ["options", "provisioningState"]
|
|
570
|
+
},
|
|
571
|
+
mapper: { ...Mappers.PatchableCustomLocations, required: true }
|
|
572
|
+
},
|
|
573
|
+
queryParameters: [Parameters.apiVersion],
|
|
574
|
+
urlParameters: [
|
|
575
|
+
Parameters.$host,
|
|
576
|
+
Parameters.subscriptionId,
|
|
577
|
+
Parameters.resourceGroupName,
|
|
578
|
+
Parameters.resourceName
|
|
579
|
+
],
|
|
580
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
581
|
+
mediaType: "json",
|
|
582
|
+
serializer
|
|
583
|
+
};
|
|
584
|
+
const listEnabledResourceTypesOperationSpec = {
|
|
585
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes",
|
|
586
|
+
httpMethod: "GET",
|
|
587
|
+
responses: {
|
|
588
|
+
200: {
|
|
589
|
+
bodyMapper: Mappers.EnabledResourceTypesListResult
|
|
590
|
+
},
|
|
591
|
+
default: {
|
|
592
|
+
bodyMapper: Mappers.ErrorResponse
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
queryParameters: [Parameters.apiVersion],
|
|
596
|
+
urlParameters: [
|
|
597
|
+
Parameters.$host,
|
|
598
|
+
Parameters.subscriptionId,
|
|
599
|
+
Parameters.resourceGroupName,
|
|
600
|
+
Parameters.resourceName
|
|
601
|
+
],
|
|
602
|
+
headerParameters: [Parameters.accept],
|
|
603
|
+
serializer
|
|
604
|
+
};
|
|
605
|
+
const findTargetResourceGroupOperationSpec = {
|
|
606
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup",
|
|
607
|
+
httpMethod: "POST",
|
|
608
|
+
responses: {
|
|
609
|
+
200: {
|
|
610
|
+
bodyMapper: Mappers.CustomLocationFindTargetResourceGroupResult
|
|
611
|
+
},
|
|
612
|
+
204: {},
|
|
613
|
+
default: {
|
|
614
|
+
bodyMapper: Mappers.ErrorResponse
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
requestBody: Parameters.parameters2,
|
|
618
|
+
queryParameters: [Parameters.apiVersion],
|
|
619
|
+
urlParameters: [
|
|
620
|
+
Parameters.$host,
|
|
621
|
+
Parameters.subscriptionId,
|
|
622
|
+
Parameters.resourceGroupName,
|
|
623
|
+
Parameters.resourceName
|
|
624
|
+
],
|
|
625
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
626
|
+
mediaType: "json",
|
|
627
|
+
serializer
|
|
628
|
+
};
|
|
629
|
+
const listOperationsNextOperationSpec = {
|
|
630
|
+
path: "{nextLink}",
|
|
631
|
+
httpMethod: "GET",
|
|
632
|
+
responses: {
|
|
633
|
+
200: {
|
|
634
|
+
bodyMapper: Mappers.CustomLocationOperationsList
|
|
635
|
+
},
|
|
636
|
+
default: {
|
|
637
|
+
bodyMapper: Mappers.ErrorResponse
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
641
|
+
headerParameters: [Parameters.accept],
|
|
642
|
+
serializer
|
|
643
|
+
};
|
|
644
|
+
const listBySubscriptionNextOperationSpec = {
|
|
645
|
+
path: "{nextLink}",
|
|
646
|
+
httpMethod: "GET",
|
|
647
|
+
responses: {
|
|
648
|
+
200: {
|
|
649
|
+
bodyMapper: Mappers.CustomLocationListResult
|
|
650
|
+
},
|
|
651
|
+
default: {
|
|
652
|
+
bodyMapper: Mappers.ErrorResponse
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
urlParameters: [
|
|
656
|
+
Parameters.$host,
|
|
657
|
+
Parameters.subscriptionId,
|
|
658
|
+
Parameters.nextLink
|
|
659
|
+
],
|
|
660
|
+
headerParameters: [Parameters.accept],
|
|
661
|
+
serializer
|
|
662
|
+
};
|
|
663
|
+
const listByResourceGroupNextOperationSpec = {
|
|
664
|
+
path: "{nextLink}",
|
|
665
|
+
httpMethod: "GET",
|
|
666
|
+
responses: {
|
|
667
|
+
200: {
|
|
668
|
+
bodyMapper: Mappers.CustomLocationListResult
|
|
669
|
+
},
|
|
670
|
+
default: {
|
|
671
|
+
bodyMapper: Mappers.ErrorResponse
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
urlParameters: [
|
|
675
|
+
Parameters.$host,
|
|
676
|
+
Parameters.subscriptionId,
|
|
677
|
+
Parameters.resourceGroupName,
|
|
678
|
+
Parameters.nextLink
|
|
679
|
+
],
|
|
680
|
+
headerParameters: [Parameters.accept],
|
|
681
|
+
serializer
|
|
682
|
+
};
|
|
683
|
+
const listEnabledResourceTypesNextOperationSpec = {
|
|
684
|
+
path: "{nextLink}",
|
|
685
|
+
httpMethod: "GET",
|
|
686
|
+
responses: {
|
|
687
|
+
200: {
|
|
688
|
+
bodyMapper: Mappers.EnabledResourceTypesListResult
|
|
689
|
+
},
|
|
690
|
+
default: {
|
|
691
|
+
bodyMapper: Mappers.ErrorResponse
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
urlParameters: [
|
|
695
|
+
Parameters.$host,
|
|
696
|
+
Parameters.subscriptionId,
|
|
697
|
+
Parameters.resourceGroupName,
|
|
698
|
+
Parameters.resourceName,
|
|
699
|
+
Parameters.nextLink
|
|
700
|
+
],
|
|
701
|
+
headerParameters: [Parameters.accept],
|
|
702
|
+
serializer
|
|
703
|
+
};
|
|
704
|
+
//# sourceMappingURL=customLocations.js.map
|