@azure/arm-resourcemover 2.2.0-alpha.20250217.1 → 2.2.0-alpha.20250219.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +4 -4
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/moveCollections.d.ts +3 -3
- package/dist/browser/operations/moveCollections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/moveCollections.js +264 -292
- package/dist/browser/operations/moveCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/moveResources.d.ts +3 -3
- package/dist/browser/operations/moveResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/moveResources.js +89 -97
- package/dist/browser/operations/moveResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationsDiscoveryOperations.d.ts +3 -3
- package/dist/browser/operations/operationsDiscoveryOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationsDiscoveryOperations.js +2 -2
- package/dist/browser/operations/operationsDiscoveryOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/unresolvedDependencies.d.ts +3 -3
- package/dist/browser/operations/unresolvedDependencies.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/unresolvedDependencies.js +3 -3
- package/dist/browser/operations/unresolvedDependencies.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +4 -4
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/moveCollections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/moveCollections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/moveCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/moveResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/moveResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/moveResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsDiscoveryOperations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/unresolvedDependencies.d.ts +1 -1
- package/dist/browser/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/unresolvedDependencies.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/resourceMoverServiceAPI.d.ts +2 -2
- package/dist/browser/resourceMoverServiceAPI.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/resourceMoverServiceAPI.js +15 -18
- package/dist/browser/resourceMoverServiceAPI.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 +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +17 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-resourcemover.d.ts → dist/commonjs/models/index.d.ts} +1338 -1752
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +145 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +88 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2024 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +23 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +176 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/moveCollections.d.ts +211 -0
- package/dist/commonjs/operations/moveCollections.d.ts.map +1 -0
- package/dist/commonjs/operations/moveCollections.js +1004 -0
- package/dist/commonjs/operations/moveCollections.js.map +1 -0
- package/dist/commonjs/operations/moveResources.d.ts +79 -0
- package/dist/commonjs/operations/moveResources.d.ts.map +1 -0
- package/dist/commonjs/operations/moveResources.js +370 -0
- package/dist/commonjs/operations/moveResources.js.map +1 -0
- package/dist/commonjs/operations/operationsDiscoveryOperations.d.ts +15 -0
- package/dist/commonjs/operations/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/operationsDiscoveryOperations.js +48 -0
- package/dist/commonjs/operations/operationsDiscoveryOperations.js.map +1 -0
- package/dist/commonjs/operations/unresolvedDependencies.d.ts +38 -0
- package/dist/commonjs/operations/unresolvedDependencies.d.ts.map +1 -0
- package/dist/commonjs/operations/unresolvedDependencies.js +159 -0
- package/dist/commonjs/operations/unresolvedDependencies.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/moveCollections.d.ts +173 -0
- package/dist/commonjs/operationsInterfaces/moveCollections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/moveCollections.js +10 -0
- package/dist/commonjs/operationsInterfaces/moveCollections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/moveResources.d.ts +54 -0
- package/dist/commonjs/operationsInterfaces/moveResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/moveResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/moveResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationsDiscoveryOperations.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationsDiscoveryOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/unresolvedDependencies.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/unresolvedDependencies.js +10 -0
- package/dist/commonjs/operationsInterfaces/unresolvedDependencies.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/resourceMoverServiceAPI.d.ts +24 -0
- package/dist/commonjs/resourceMoverServiceAPI.d.ts.map +1 -0
- package/dist/commonjs/resourceMoverServiceAPI.js +103 -0
- package/dist/commonjs/resourceMoverServiceAPI.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +14 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1338 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +142 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +88 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2020 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +23 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +173 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/moveCollections.d.ts +211 -0
- package/dist/esm/operations/moveCollections.d.ts.map +1 -0
- package/dist/esm/operations/moveCollections.js +1000 -0
- package/dist/esm/operations/moveCollections.js.map +1 -0
- package/dist/esm/operations/moveResources.d.ts +79 -0
- package/dist/esm/operations/moveResources.d.ts.map +1 -0
- package/dist/esm/operations/moveResources.js +366 -0
- package/dist/esm/operations/moveResources.js.map +1 -0
- package/dist/esm/operations/operationsDiscoveryOperations.d.ts +15 -0
- package/dist/esm/operations/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/esm/operations/operationsDiscoveryOperations.js +43 -0
- package/dist/esm/operations/operationsDiscoveryOperations.js.map +1 -0
- package/dist/esm/operations/unresolvedDependencies.d.ts +38 -0
- package/dist/esm/operations/unresolvedDependencies.d.ts.map +1 -0
- package/dist/esm/operations/unresolvedDependencies.js +155 -0
- package/dist/esm/operations/unresolvedDependencies.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/moveCollections.d.ts +173 -0
- package/dist/esm/operationsInterfaces/moveCollections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/moveCollections.js +9 -0
- package/dist/esm/operationsInterfaces/moveCollections.js.map +1 -0
- package/dist/esm/operationsInterfaces/moveResources.d.ts +54 -0
- package/dist/esm/operationsInterfaces/moveResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/moveResources.js +9 -0
- package/dist/esm/operationsInterfaces/moveResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/operationsDiscoveryOperations.d.ts +7 -0
- package/dist/esm/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operationsDiscoveryOperations.js +9 -0
- package/dist/esm/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/unresolvedDependencies.d.ts +13 -0
- package/dist/esm/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/unresolvedDependencies.js +9 -0
- package/dist/esm/operationsInterfaces/unresolvedDependencies.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/resourceMoverServiceAPI.d.ts +24 -0
- package/dist/esm/resourceMoverServiceAPI.d.ts.map +1 -0
- package/dist/esm/resourceMoverServiceAPI.js +98 -0
- package/dist/esm/resourceMoverServiceAPI.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 +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +14 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1338 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +142 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +88 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2020 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +23 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +173 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/moveCollections.d.ts +211 -0
- package/dist/react-native/operations/moveCollections.d.ts.map +1 -0
- package/dist/react-native/operations/moveCollections.js +1000 -0
- package/dist/react-native/operations/moveCollections.js.map +1 -0
- package/dist/react-native/operations/moveResources.d.ts +79 -0
- package/dist/react-native/operations/moveResources.d.ts.map +1 -0
- package/dist/react-native/operations/moveResources.js +366 -0
- package/dist/react-native/operations/moveResources.js.map +1 -0
- package/dist/react-native/operations/operationsDiscoveryOperations.d.ts +15 -0
- package/dist/react-native/operations/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/react-native/operations/operationsDiscoveryOperations.js +43 -0
- package/dist/react-native/operations/operationsDiscoveryOperations.js.map +1 -0
- package/dist/react-native/operations/unresolvedDependencies.d.ts +38 -0
- package/dist/react-native/operations/unresolvedDependencies.d.ts.map +1 -0
- package/dist/react-native/operations/unresolvedDependencies.js +155 -0
- package/dist/react-native/operations/unresolvedDependencies.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/moveCollections.d.ts +173 -0
- package/dist/react-native/operationsInterfaces/moveCollections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/moveCollections.js +9 -0
- package/dist/react-native/operationsInterfaces/moveCollections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/moveResources.d.ts +54 -0
- package/dist/react-native/operationsInterfaces/moveResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/moveResources.js +9 -0
- package/dist/react-native/operationsInterfaces/moveResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operationsDiscoveryOperations.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operationsDiscoveryOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/unresolvedDependencies.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/unresolvedDependencies.js +9 -0
- package/dist/react-native/operationsInterfaces/unresolvedDependencies.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/resourceMoverServiceAPI.d.ts +24 -0
- package/dist/react-native/resourceMoverServiceAPI.d.ts.map +1 -0
- package/dist/react-native/resourceMoverServiceAPI.js +98 -0
- package/dist/react-native/resourceMoverServiceAPI.js.map +1 -0
- package/package.json +67 -36
- package/dist/index.js +0 -4161
- 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/moveCollectionsBulkRemoveSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCommitSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsCommitSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCommitSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsCommitSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCreateSample.js +0 -39
- package/dist-esm/samples-dev/moveCollectionsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsGetSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js +0 -51
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js +0 -50
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js +0 -37
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.js +0 -34
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesCreateSample.js +0 -52
- package/dist-esm/samples-dev/moveResourcesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesDeleteSample.js +0 -37
- package/dist-esm/samples-dev/moveResourcesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesGetSample.js +0 -37
- package/dist-esm/samples-dev/moveResourcesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesListSample.js +0 -52
- package/dist-esm/samples-dev/moveResourcesListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.js +0 -33
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.js.map +0 -1
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js +0 -52
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/moveCollections.d.ts.map +0 -1
- package/dist-esm/src/operations/moveCollections.js.map +0 -1
- package/dist-esm/src/operations/moveResources.d.ts.map +0 -1
- package/dist-esm/src/operations/moveResources.js.map +0 -1
- package/dist-esm/src/operations/operationsDiscoveryOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/operationsDiscoveryOperations.js.map +0 -1
- package/dist-esm/src/operations/unresolvedDependencies.d.ts.map +0 -1
- package/dist-esm/src/operations/unresolvedDependencies.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/moveCollections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/moveCollections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/moveResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/moveResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/unresolvedDependencies.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +0 -1
- package/dist-esm/src/resourceMoverServiceAPI.js.map +0 -1
- package/dist-esm/test/resourcemover_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/resourcemover_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/resourcemover_operations_test.spec.js +0 -122
- package/dist-esm/test/resourcemover_operations_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -38
- package/src/models/index.ts +0 -1499
- package/src/models/mappers.ts +0 -2170
- package/src/models/parameters.ts +0 -208
- package/src/operations/index.ts +0 -12
- package/src/operations/moveCollections.ts +0 -1404
- package/src/operations/moveResources.ts +0 -520
- package/src/operations/operationsDiscoveryOperations.ts +0 -57
- package/src/operations/unresolvedDependencies.ts +0 -203
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/moveCollections.ts +0 -321
- package/src/operationsInterfaces/moveResources.ts +0 -111
- package/src/operationsInterfaces/operationsDiscoveryOperations.ts +0 -20
- package/src/operationsInterfaces/unresolvedDependencies.ts +0 -29
- package/src/pagingHelper.ts +0 -39
- package/src/resourceMoverServiceAPI.ts +0 -172
- 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}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/moveCollections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/moveResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationsDiscoveryOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/unresolvedDependencies.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
|
@@ -0,0 +1,1000 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing MoveCollections operations. */
|
|
17
|
+
export class MoveCollectionsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class MoveCollections class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get all the Move Collections in the subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listMoveCollectionsBySubscription(options) {
|
|
30
|
+
const iter = this.listMoveCollectionsBySubscriptionPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listMoveCollectionsBySubscriptionPagingPage(options, settings);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._listMoveCollectionsBySubscription(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listMoveCollectionsBySubscriptionNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listMoveCollectionsBySubscriptionPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get all the Move Collections in the resource group.
|
|
88
|
+
* @param resourceGroupName The Resource Group Name.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listMoveCollectionsByResourceGroup(resourceGroupName, options) {
|
|
92
|
+
const iter = this.listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listMoveCollectionsByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates or updates a move collection.
|
|
150
|
+
* @param resourceGroupName The Resource Group Name.
|
|
151
|
+
* @param moveCollectionName The Move Collection Name.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
create(resourceGroupName, moveCollectionName, options) {
|
|
155
|
+
return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, createOperationSpec);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Updates a move collection.
|
|
159
|
+
* @param resourceGroupName The Resource Group Name.
|
|
160
|
+
* @param moveCollectionName The Move Collection Name.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
update(resourceGroupName, moveCollectionName, options) {
|
|
164
|
+
return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, updateOperationSpec);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Deletes a move collection.
|
|
168
|
+
* @param resourceGroupName The Resource Group Name.
|
|
169
|
+
* @param moveCollectionName The Move Collection Name.
|
|
170
|
+
* @param options The options parameters.
|
|
171
|
+
*/
|
|
172
|
+
async beginDelete(resourceGroupName, moveCollectionName, options) {
|
|
173
|
+
const directSendOperation = async (args, spec) => {
|
|
174
|
+
return this.client.sendOperationRequest(args, spec);
|
|
175
|
+
};
|
|
176
|
+
const sendOperationFn = async (args, spec) => {
|
|
177
|
+
var _a;
|
|
178
|
+
let currentRawResponse = undefined;
|
|
179
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
180
|
+
const callback = (rawResponse, flatResponse) => {
|
|
181
|
+
currentRawResponse = rawResponse;
|
|
182
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
183
|
+
};
|
|
184
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
185
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
186
|
+
return {
|
|
187
|
+
flatResponse,
|
|
188
|
+
rawResponse: {
|
|
189
|
+
statusCode: currentRawResponse.status,
|
|
190
|
+
body: currentRawResponse.parsedBody,
|
|
191
|
+
headers: currentRawResponse.headers.toJSON()
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
const lro = createLroSpec({
|
|
196
|
+
sendOperationFn,
|
|
197
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
198
|
+
spec: deleteOperationSpec
|
|
199
|
+
});
|
|
200
|
+
const poller = await createHttpPoller(lro, {
|
|
201
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
202
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
203
|
+
resourceLocationConfig: "azure-async-operation"
|
|
204
|
+
});
|
|
205
|
+
await poller.poll();
|
|
206
|
+
return poller;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Deletes a move collection.
|
|
210
|
+
* @param resourceGroupName The Resource Group Name.
|
|
211
|
+
* @param moveCollectionName The Move Collection Name.
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
async beginDeleteAndWait(resourceGroupName, moveCollectionName, options) {
|
|
215
|
+
const poller = await this.beginDelete(resourceGroupName, moveCollectionName, options);
|
|
216
|
+
return poller.pollUntilDone();
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Gets the move collection.
|
|
220
|
+
* @param resourceGroupName The Resource Group Name.
|
|
221
|
+
* @param moveCollectionName The Move Collection Name.
|
|
222
|
+
* @param options The options parameters.
|
|
223
|
+
*/
|
|
224
|
+
get(resourceGroupName, moveCollectionName, options) {
|
|
225
|
+
return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, getOperationSpec);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Initiates prepare for the set of resources included in the request body. The prepare operation is on
|
|
229
|
+
* the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
|
|
230
|
+
* completion the moveResource moveState do a transition to MovePending. To aid the user to
|
|
231
|
+
* prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
232
|
+
* @param resourceGroupName The Resource Group Name.
|
|
233
|
+
* @param moveCollectionName The Move Collection Name.
|
|
234
|
+
* @param options The options parameters.
|
|
235
|
+
*/
|
|
236
|
+
async beginPrepare(resourceGroupName, moveCollectionName, options) {
|
|
237
|
+
const directSendOperation = async (args, spec) => {
|
|
238
|
+
return this.client.sendOperationRequest(args, spec);
|
|
239
|
+
};
|
|
240
|
+
const sendOperationFn = async (args, spec) => {
|
|
241
|
+
var _a;
|
|
242
|
+
let currentRawResponse = undefined;
|
|
243
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
244
|
+
const callback = (rawResponse, flatResponse) => {
|
|
245
|
+
currentRawResponse = rawResponse;
|
|
246
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
247
|
+
};
|
|
248
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
249
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
250
|
+
return {
|
|
251
|
+
flatResponse,
|
|
252
|
+
rawResponse: {
|
|
253
|
+
statusCode: currentRawResponse.status,
|
|
254
|
+
body: currentRawResponse.parsedBody,
|
|
255
|
+
headers: currentRawResponse.headers.toJSON()
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
const lro = createLroSpec({
|
|
260
|
+
sendOperationFn,
|
|
261
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
262
|
+
spec: prepareOperationSpec
|
|
263
|
+
});
|
|
264
|
+
const poller = await createHttpPoller(lro, {
|
|
265
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
266
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
267
|
+
resourceLocationConfig: "azure-async-operation"
|
|
268
|
+
});
|
|
269
|
+
await poller.poll();
|
|
270
|
+
return poller;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Initiates prepare for the set of resources included in the request body. The prepare operation is on
|
|
274
|
+
* the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
|
|
275
|
+
* completion the moveResource moveState do a transition to MovePending. To aid the user to
|
|
276
|
+
* prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
277
|
+
* @param resourceGroupName The Resource Group Name.
|
|
278
|
+
* @param moveCollectionName The Move Collection Name.
|
|
279
|
+
* @param options The options parameters.
|
|
280
|
+
*/
|
|
281
|
+
async beginPrepareAndWait(resourceGroupName, moveCollectionName, options) {
|
|
282
|
+
const poller = await this.beginPrepare(resourceGroupName, moveCollectionName, options);
|
|
283
|
+
return poller.pollUntilDone();
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Moves the set of resources included in the request body. The move operation is triggered after the
|
|
287
|
+
* moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
|
|
288
|
+
* moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
|
|
289
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
290
|
+
* @param resourceGroupName The Resource Group Name.
|
|
291
|
+
* @param moveCollectionName The Move Collection Name.
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
async beginInitiateMove(resourceGroupName, moveCollectionName, options) {
|
|
295
|
+
const directSendOperation = async (args, spec) => {
|
|
296
|
+
return this.client.sendOperationRequest(args, spec);
|
|
297
|
+
};
|
|
298
|
+
const sendOperationFn = async (args, spec) => {
|
|
299
|
+
var _a;
|
|
300
|
+
let currentRawResponse = undefined;
|
|
301
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
302
|
+
const callback = (rawResponse, flatResponse) => {
|
|
303
|
+
currentRawResponse = rawResponse;
|
|
304
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
305
|
+
};
|
|
306
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
307
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
|
+
return {
|
|
309
|
+
flatResponse,
|
|
310
|
+
rawResponse: {
|
|
311
|
+
statusCode: currentRawResponse.status,
|
|
312
|
+
body: currentRawResponse.parsedBody,
|
|
313
|
+
headers: currentRawResponse.headers.toJSON()
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
const lro = createLroSpec({
|
|
318
|
+
sendOperationFn,
|
|
319
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
320
|
+
spec: initiateMoveOperationSpec
|
|
321
|
+
});
|
|
322
|
+
const poller = await createHttpPoller(lro, {
|
|
323
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
324
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
325
|
+
resourceLocationConfig: "azure-async-operation"
|
|
326
|
+
});
|
|
327
|
+
await poller.poll();
|
|
328
|
+
return poller;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Moves the set of resources included in the request body. The move operation is triggered after the
|
|
332
|
+
* moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
|
|
333
|
+
* moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
|
|
334
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
335
|
+
* @param resourceGroupName The Resource Group Name.
|
|
336
|
+
* @param moveCollectionName The Move Collection Name.
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
async beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options) {
|
|
340
|
+
const poller = await this.beginInitiateMove(resourceGroupName, moveCollectionName, options);
|
|
341
|
+
return poller.pollUntilDone();
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Commits the set of resources included in the request body. The commit operation is triggered on the
|
|
345
|
+
* moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
|
|
346
|
+
* moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
|
|
347
|
+
* the client can call operation with validateOnly property set to true.
|
|
348
|
+
* @param resourceGroupName The Resource Group Name.
|
|
349
|
+
* @param moveCollectionName The Move Collection Name.
|
|
350
|
+
* @param options The options parameters.
|
|
351
|
+
*/
|
|
352
|
+
async beginCommit(resourceGroupName, moveCollectionName, options) {
|
|
353
|
+
const directSendOperation = async (args, spec) => {
|
|
354
|
+
return this.client.sendOperationRequest(args, spec);
|
|
355
|
+
};
|
|
356
|
+
const sendOperationFn = async (args, spec) => {
|
|
357
|
+
var _a;
|
|
358
|
+
let currentRawResponse = undefined;
|
|
359
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
360
|
+
const callback = (rawResponse, flatResponse) => {
|
|
361
|
+
currentRawResponse = rawResponse;
|
|
362
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
363
|
+
};
|
|
364
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
365
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
366
|
+
return {
|
|
367
|
+
flatResponse,
|
|
368
|
+
rawResponse: {
|
|
369
|
+
statusCode: currentRawResponse.status,
|
|
370
|
+
body: currentRawResponse.parsedBody,
|
|
371
|
+
headers: currentRawResponse.headers.toJSON()
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
const lro = createLroSpec({
|
|
376
|
+
sendOperationFn,
|
|
377
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
378
|
+
spec: commitOperationSpec
|
|
379
|
+
});
|
|
380
|
+
const poller = await createHttpPoller(lro, {
|
|
381
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
382
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
383
|
+
resourceLocationConfig: "azure-async-operation"
|
|
384
|
+
});
|
|
385
|
+
await poller.poll();
|
|
386
|
+
return poller;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Commits the set of resources included in the request body. The commit operation is triggered on the
|
|
390
|
+
* moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
|
|
391
|
+
* moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
|
|
392
|
+
* the client can call operation with validateOnly property set to true.
|
|
393
|
+
* @param resourceGroupName The Resource Group Name.
|
|
394
|
+
* @param moveCollectionName The Move Collection Name.
|
|
395
|
+
* @param options The options parameters.
|
|
396
|
+
*/
|
|
397
|
+
async beginCommitAndWait(resourceGroupName, moveCollectionName, options) {
|
|
398
|
+
const poller = await this.beginCommit(resourceGroupName, moveCollectionName, options);
|
|
399
|
+
return poller.pollUntilDone();
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Discards the set of resources included in the request body. The discard operation is triggered on
|
|
403
|
+
* the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
|
|
404
|
+
* the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
|
|
405
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
406
|
+
* @param resourceGroupName The Resource Group Name.
|
|
407
|
+
* @param moveCollectionName The Move Collection Name.
|
|
408
|
+
* @param options The options parameters.
|
|
409
|
+
*/
|
|
410
|
+
async beginDiscard(resourceGroupName, moveCollectionName, options) {
|
|
411
|
+
const directSendOperation = async (args, spec) => {
|
|
412
|
+
return this.client.sendOperationRequest(args, spec);
|
|
413
|
+
};
|
|
414
|
+
const sendOperationFn = async (args, spec) => {
|
|
415
|
+
var _a;
|
|
416
|
+
let currentRawResponse = undefined;
|
|
417
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
418
|
+
const callback = (rawResponse, flatResponse) => {
|
|
419
|
+
currentRawResponse = rawResponse;
|
|
420
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
421
|
+
};
|
|
422
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
423
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
424
|
+
return {
|
|
425
|
+
flatResponse,
|
|
426
|
+
rawResponse: {
|
|
427
|
+
statusCode: currentRawResponse.status,
|
|
428
|
+
body: currentRawResponse.parsedBody,
|
|
429
|
+
headers: currentRawResponse.headers.toJSON()
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
const lro = createLroSpec({
|
|
434
|
+
sendOperationFn,
|
|
435
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
436
|
+
spec: discardOperationSpec
|
|
437
|
+
});
|
|
438
|
+
const poller = await createHttpPoller(lro, {
|
|
439
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
440
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
441
|
+
resourceLocationConfig: "azure-async-operation"
|
|
442
|
+
});
|
|
443
|
+
await poller.poll();
|
|
444
|
+
return poller;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Discards the set of resources included in the request body. The discard operation is triggered on
|
|
448
|
+
* the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
|
|
449
|
+
* the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
|
|
450
|
+
* operation the client can call operation with validateOnly property set to true.
|
|
451
|
+
* @param resourceGroupName The Resource Group Name.
|
|
452
|
+
* @param moveCollectionName The Move Collection Name.
|
|
453
|
+
* @param options The options parameters.
|
|
454
|
+
*/
|
|
455
|
+
async beginDiscardAndWait(resourceGroupName, moveCollectionName, options) {
|
|
456
|
+
const poller = await this.beginDiscard(resourceGroupName, moveCollectionName, options);
|
|
457
|
+
return poller.pollUntilDone();
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
461
|
+
* @param resourceGroupName The Resource Group Name.
|
|
462
|
+
* @param moveCollectionName The Move Collection Name.
|
|
463
|
+
* @param options The options parameters.
|
|
464
|
+
*/
|
|
465
|
+
async beginResolveDependencies(resourceGroupName, moveCollectionName, options) {
|
|
466
|
+
const directSendOperation = async (args, spec) => {
|
|
467
|
+
return this.client.sendOperationRequest(args, spec);
|
|
468
|
+
};
|
|
469
|
+
const sendOperationFn = async (args, spec) => {
|
|
470
|
+
var _a;
|
|
471
|
+
let currentRawResponse = undefined;
|
|
472
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
473
|
+
const callback = (rawResponse, flatResponse) => {
|
|
474
|
+
currentRawResponse = rawResponse;
|
|
475
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
476
|
+
};
|
|
477
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
478
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
479
|
+
return {
|
|
480
|
+
flatResponse,
|
|
481
|
+
rawResponse: {
|
|
482
|
+
statusCode: currentRawResponse.status,
|
|
483
|
+
body: currentRawResponse.parsedBody,
|
|
484
|
+
headers: currentRawResponse.headers.toJSON()
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
const lro = createLroSpec({
|
|
489
|
+
sendOperationFn,
|
|
490
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
491
|
+
spec: resolveDependenciesOperationSpec
|
|
492
|
+
});
|
|
493
|
+
const poller = await createHttpPoller(lro, {
|
|
494
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
495
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
496
|
+
resourceLocationConfig: "azure-async-operation"
|
|
497
|
+
});
|
|
498
|
+
await poller.poll();
|
|
499
|
+
return poller;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
503
|
+
* @param resourceGroupName The Resource Group Name.
|
|
504
|
+
* @param moveCollectionName The Move Collection Name.
|
|
505
|
+
* @param options The options parameters.
|
|
506
|
+
*/
|
|
507
|
+
async beginResolveDependenciesAndWait(resourceGroupName, moveCollectionName, options) {
|
|
508
|
+
const poller = await this.beginResolveDependencies(resourceGroupName, moveCollectionName, options);
|
|
509
|
+
return poller.pollUntilDone();
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Removes the set of move resources included in the request body from move collection. The
|
|
513
|
+
* orchestration is done by service. To aid the user to prerequisite the operation the client can call
|
|
514
|
+
* operation with validateOnly property set to true.
|
|
515
|
+
* @param resourceGroupName
|
|
516
|
+
* @param moveCollectionName
|
|
517
|
+
* @param options The options parameters.
|
|
518
|
+
*/
|
|
519
|
+
async beginBulkRemove(resourceGroupName, moveCollectionName, options) {
|
|
520
|
+
const directSendOperation = async (args, spec) => {
|
|
521
|
+
return this.client.sendOperationRequest(args, spec);
|
|
522
|
+
};
|
|
523
|
+
const sendOperationFn = async (args, spec) => {
|
|
524
|
+
var _a;
|
|
525
|
+
let currentRawResponse = undefined;
|
|
526
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
527
|
+
const callback = (rawResponse, flatResponse) => {
|
|
528
|
+
currentRawResponse = rawResponse;
|
|
529
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
530
|
+
};
|
|
531
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
532
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
533
|
+
return {
|
|
534
|
+
flatResponse,
|
|
535
|
+
rawResponse: {
|
|
536
|
+
statusCode: currentRawResponse.status,
|
|
537
|
+
body: currentRawResponse.parsedBody,
|
|
538
|
+
headers: currentRawResponse.headers.toJSON()
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
const lro = createLroSpec({
|
|
543
|
+
sendOperationFn,
|
|
544
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
545
|
+
spec: bulkRemoveOperationSpec
|
|
546
|
+
});
|
|
547
|
+
const poller = await createHttpPoller(lro, {
|
|
548
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
549
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
550
|
+
resourceLocationConfig: "azure-async-operation"
|
|
551
|
+
});
|
|
552
|
+
await poller.poll();
|
|
553
|
+
return poller;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Removes the set of move resources included in the request body from move collection. The
|
|
557
|
+
* orchestration is done by service. To aid the user to prerequisite the operation the client can call
|
|
558
|
+
* operation with validateOnly property set to true.
|
|
559
|
+
* @param resourceGroupName
|
|
560
|
+
* @param moveCollectionName
|
|
561
|
+
* @param options The options parameters.
|
|
562
|
+
*/
|
|
563
|
+
async beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options) {
|
|
564
|
+
const poller = await this.beginBulkRemove(resourceGroupName, moveCollectionName, options);
|
|
565
|
+
return poller.pollUntilDone();
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Get all the Move Collections in the subscription.
|
|
569
|
+
* @param options The options parameters.
|
|
570
|
+
*/
|
|
571
|
+
_listMoveCollectionsBySubscription(options) {
|
|
572
|
+
return this.client.sendOperationRequest({ options }, listMoveCollectionsBySubscriptionOperationSpec);
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Get all the Move Collections in the resource group.
|
|
576
|
+
* @param resourceGroupName The Resource Group Name.
|
|
577
|
+
* @param options The options parameters.
|
|
578
|
+
*/
|
|
579
|
+
_listMoveCollectionsByResourceGroup(resourceGroupName, options) {
|
|
580
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listMoveCollectionsByResourceGroupOperationSpec);
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* List of the move resources for which an arm resource is required for.
|
|
584
|
+
* @param resourceGroupName The Resource Group Name.
|
|
585
|
+
* @param moveCollectionName The Move Collection Name.
|
|
586
|
+
* @param sourceId The sourceId for which the api is invoked.
|
|
587
|
+
* @param options The options parameters.
|
|
588
|
+
*/
|
|
589
|
+
listRequiredFor(resourceGroupName, moveCollectionName, sourceId, options) {
|
|
590
|
+
return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, sourceId, options }, listRequiredForOperationSpec);
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* ListMoveCollectionsBySubscriptionNext
|
|
594
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
595
|
+
* ListMoveCollectionsBySubscription method.
|
|
596
|
+
* @param options The options parameters.
|
|
597
|
+
*/
|
|
598
|
+
_listMoveCollectionsBySubscriptionNext(nextLink, options) {
|
|
599
|
+
return this.client.sendOperationRequest({ nextLink, options }, listMoveCollectionsBySubscriptionNextOperationSpec);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* ListMoveCollectionsByResourceGroupNext
|
|
603
|
+
* @param resourceGroupName The Resource Group Name.
|
|
604
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
605
|
+
* ListMoveCollectionsByResourceGroup method.
|
|
606
|
+
* @param options The options parameters.
|
|
607
|
+
*/
|
|
608
|
+
_listMoveCollectionsByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
609
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listMoveCollectionsByResourceGroupNextOperationSpec);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
// Operation Specifications
|
|
613
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
614
|
+
const createOperationSpec = {
|
|
615
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
616
|
+
httpMethod: "PUT",
|
|
617
|
+
responses: {
|
|
618
|
+
200: {
|
|
619
|
+
bodyMapper: Mappers.MoveCollection
|
|
620
|
+
},
|
|
621
|
+
201: {
|
|
622
|
+
bodyMapper: Mappers.MoveCollection
|
|
623
|
+
},
|
|
624
|
+
default: {
|
|
625
|
+
bodyMapper: Mappers.CloudError
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
requestBody: Parameters.body,
|
|
629
|
+
queryParameters: [Parameters.apiVersion],
|
|
630
|
+
urlParameters: [
|
|
631
|
+
Parameters.$host,
|
|
632
|
+
Parameters.subscriptionId,
|
|
633
|
+
Parameters.resourceGroupName,
|
|
634
|
+
Parameters.moveCollectionName
|
|
635
|
+
],
|
|
636
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
637
|
+
mediaType: "json",
|
|
638
|
+
serializer
|
|
639
|
+
};
|
|
640
|
+
const updateOperationSpec = {
|
|
641
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
642
|
+
httpMethod: "PATCH",
|
|
643
|
+
responses: {
|
|
644
|
+
200: {
|
|
645
|
+
bodyMapper: Mappers.MoveCollection
|
|
646
|
+
},
|
|
647
|
+
default: {
|
|
648
|
+
bodyMapper: Mappers.CloudError
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
requestBody: Parameters.body1,
|
|
652
|
+
queryParameters: [Parameters.apiVersion],
|
|
653
|
+
urlParameters: [
|
|
654
|
+
Parameters.$host,
|
|
655
|
+
Parameters.subscriptionId,
|
|
656
|
+
Parameters.resourceGroupName,
|
|
657
|
+
Parameters.moveCollectionName
|
|
658
|
+
],
|
|
659
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
660
|
+
mediaType: "json",
|
|
661
|
+
serializer
|
|
662
|
+
};
|
|
663
|
+
const deleteOperationSpec = {
|
|
664
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
665
|
+
httpMethod: "DELETE",
|
|
666
|
+
responses: {
|
|
667
|
+
200: {
|
|
668
|
+
bodyMapper: Mappers.OperationStatus
|
|
669
|
+
},
|
|
670
|
+
201: {
|
|
671
|
+
bodyMapper: Mappers.OperationStatus
|
|
672
|
+
},
|
|
673
|
+
202: {
|
|
674
|
+
bodyMapper: Mappers.OperationStatus
|
|
675
|
+
},
|
|
676
|
+
204: {
|
|
677
|
+
bodyMapper: Mappers.OperationStatus
|
|
678
|
+
},
|
|
679
|
+
default: {
|
|
680
|
+
bodyMapper: Mappers.CloudError
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
queryParameters: [Parameters.apiVersion],
|
|
684
|
+
urlParameters: [
|
|
685
|
+
Parameters.$host,
|
|
686
|
+
Parameters.subscriptionId,
|
|
687
|
+
Parameters.resourceGroupName,
|
|
688
|
+
Parameters.moveCollectionName
|
|
689
|
+
],
|
|
690
|
+
headerParameters: [Parameters.accept],
|
|
691
|
+
serializer
|
|
692
|
+
};
|
|
693
|
+
const getOperationSpec = {
|
|
694
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
|
|
695
|
+
httpMethod: "GET",
|
|
696
|
+
responses: {
|
|
697
|
+
200: {
|
|
698
|
+
bodyMapper: Mappers.MoveCollection
|
|
699
|
+
},
|
|
700
|
+
default: {
|
|
701
|
+
bodyMapper: Mappers.CloudError
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
queryParameters: [Parameters.apiVersion],
|
|
705
|
+
urlParameters: [
|
|
706
|
+
Parameters.$host,
|
|
707
|
+
Parameters.subscriptionId,
|
|
708
|
+
Parameters.resourceGroupName,
|
|
709
|
+
Parameters.moveCollectionName
|
|
710
|
+
],
|
|
711
|
+
headerParameters: [Parameters.accept],
|
|
712
|
+
serializer
|
|
713
|
+
};
|
|
714
|
+
const prepareOperationSpec = {
|
|
715
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
|
|
716
|
+
httpMethod: "POST",
|
|
717
|
+
responses: {
|
|
718
|
+
200: {
|
|
719
|
+
bodyMapper: Mappers.OperationStatus
|
|
720
|
+
},
|
|
721
|
+
201: {
|
|
722
|
+
bodyMapper: Mappers.OperationStatus
|
|
723
|
+
},
|
|
724
|
+
202: {
|
|
725
|
+
bodyMapper: Mappers.OperationStatus
|
|
726
|
+
},
|
|
727
|
+
204: {
|
|
728
|
+
bodyMapper: Mappers.OperationStatus
|
|
729
|
+
},
|
|
730
|
+
default: {
|
|
731
|
+
bodyMapper: Mappers.CloudError
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
requestBody: Parameters.body2,
|
|
735
|
+
queryParameters: [Parameters.apiVersion],
|
|
736
|
+
urlParameters: [
|
|
737
|
+
Parameters.$host,
|
|
738
|
+
Parameters.subscriptionId,
|
|
739
|
+
Parameters.resourceGroupName,
|
|
740
|
+
Parameters.moveCollectionName
|
|
741
|
+
],
|
|
742
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
743
|
+
mediaType: "json",
|
|
744
|
+
serializer
|
|
745
|
+
};
|
|
746
|
+
const initiateMoveOperationSpec = {
|
|
747
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
|
|
748
|
+
httpMethod: "POST",
|
|
749
|
+
responses: {
|
|
750
|
+
200: {
|
|
751
|
+
bodyMapper: Mappers.OperationStatus
|
|
752
|
+
},
|
|
753
|
+
201: {
|
|
754
|
+
bodyMapper: Mappers.OperationStatus
|
|
755
|
+
},
|
|
756
|
+
202: {
|
|
757
|
+
bodyMapper: Mappers.OperationStatus
|
|
758
|
+
},
|
|
759
|
+
204: {
|
|
760
|
+
bodyMapper: Mappers.OperationStatus
|
|
761
|
+
},
|
|
762
|
+
default: {
|
|
763
|
+
bodyMapper: Mappers.CloudError
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
requestBody: Parameters.body3,
|
|
767
|
+
queryParameters: [Parameters.apiVersion],
|
|
768
|
+
urlParameters: [
|
|
769
|
+
Parameters.$host,
|
|
770
|
+
Parameters.subscriptionId,
|
|
771
|
+
Parameters.resourceGroupName,
|
|
772
|
+
Parameters.moveCollectionName
|
|
773
|
+
],
|
|
774
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
775
|
+
mediaType: "json",
|
|
776
|
+
serializer
|
|
777
|
+
};
|
|
778
|
+
const commitOperationSpec = {
|
|
779
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
|
|
780
|
+
httpMethod: "POST",
|
|
781
|
+
responses: {
|
|
782
|
+
200: {
|
|
783
|
+
bodyMapper: Mappers.OperationStatus
|
|
784
|
+
},
|
|
785
|
+
201: {
|
|
786
|
+
bodyMapper: Mappers.OperationStatus
|
|
787
|
+
},
|
|
788
|
+
202: {
|
|
789
|
+
bodyMapper: Mappers.OperationStatus
|
|
790
|
+
},
|
|
791
|
+
204: {
|
|
792
|
+
bodyMapper: Mappers.OperationStatus
|
|
793
|
+
},
|
|
794
|
+
default: {
|
|
795
|
+
bodyMapper: Mappers.CloudError
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
requestBody: Parameters.body4,
|
|
799
|
+
queryParameters: [Parameters.apiVersion],
|
|
800
|
+
urlParameters: [
|
|
801
|
+
Parameters.$host,
|
|
802
|
+
Parameters.subscriptionId,
|
|
803
|
+
Parameters.resourceGroupName,
|
|
804
|
+
Parameters.moveCollectionName
|
|
805
|
+
],
|
|
806
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
807
|
+
mediaType: "json",
|
|
808
|
+
serializer
|
|
809
|
+
};
|
|
810
|
+
const discardOperationSpec = {
|
|
811
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
|
|
812
|
+
httpMethod: "POST",
|
|
813
|
+
responses: {
|
|
814
|
+
200: {
|
|
815
|
+
bodyMapper: Mappers.OperationStatus
|
|
816
|
+
},
|
|
817
|
+
201: {
|
|
818
|
+
bodyMapper: Mappers.OperationStatus
|
|
819
|
+
},
|
|
820
|
+
202: {
|
|
821
|
+
bodyMapper: Mappers.OperationStatus
|
|
822
|
+
},
|
|
823
|
+
204: {
|
|
824
|
+
bodyMapper: Mappers.OperationStatus
|
|
825
|
+
},
|
|
826
|
+
default: {
|
|
827
|
+
bodyMapper: Mappers.CloudError
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
requestBody: Parameters.body5,
|
|
831
|
+
queryParameters: [Parameters.apiVersion],
|
|
832
|
+
urlParameters: [
|
|
833
|
+
Parameters.$host,
|
|
834
|
+
Parameters.subscriptionId,
|
|
835
|
+
Parameters.resourceGroupName,
|
|
836
|
+
Parameters.moveCollectionName
|
|
837
|
+
],
|
|
838
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
839
|
+
mediaType: "json",
|
|
840
|
+
serializer
|
|
841
|
+
};
|
|
842
|
+
const resolveDependenciesOperationSpec = {
|
|
843
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies",
|
|
844
|
+
httpMethod: "POST",
|
|
845
|
+
responses: {
|
|
846
|
+
200: {
|
|
847
|
+
bodyMapper: Mappers.OperationStatus
|
|
848
|
+
},
|
|
849
|
+
201: {
|
|
850
|
+
bodyMapper: Mappers.OperationStatus
|
|
851
|
+
},
|
|
852
|
+
202: {
|
|
853
|
+
bodyMapper: Mappers.OperationStatus
|
|
854
|
+
},
|
|
855
|
+
204: {
|
|
856
|
+
bodyMapper: Mappers.OperationStatus
|
|
857
|
+
},
|
|
858
|
+
default: {
|
|
859
|
+
bodyMapper: Mappers.CloudError
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
queryParameters: [Parameters.apiVersion],
|
|
863
|
+
urlParameters: [
|
|
864
|
+
Parameters.$host,
|
|
865
|
+
Parameters.subscriptionId,
|
|
866
|
+
Parameters.resourceGroupName,
|
|
867
|
+
Parameters.moveCollectionName
|
|
868
|
+
],
|
|
869
|
+
headerParameters: [Parameters.accept],
|
|
870
|
+
serializer
|
|
871
|
+
};
|
|
872
|
+
const bulkRemoveOperationSpec = {
|
|
873
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
|
|
874
|
+
httpMethod: "POST",
|
|
875
|
+
responses: {
|
|
876
|
+
200: {
|
|
877
|
+
bodyMapper: Mappers.OperationStatus
|
|
878
|
+
},
|
|
879
|
+
201: {
|
|
880
|
+
bodyMapper: Mappers.OperationStatus
|
|
881
|
+
},
|
|
882
|
+
202: {
|
|
883
|
+
bodyMapper: Mappers.OperationStatus
|
|
884
|
+
},
|
|
885
|
+
204: {
|
|
886
|
+
bodyMapper: Mappers.OperationStatus
|
|
887
|
+
},
|
|
888
|
+
default: {
|
|
889
|
+
bodyMapper: Mappers.CloudError
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
requestBody: Parameters.body6,
|
|
893
|
+
queryParameters: [Parameters.apiVersion],
|
|
894
|
+
urlParameters: [
|
|
895
|
+
Parameters.$host,
|
|
896
|
+
Parameters.subscriptionId,
|
|
897
|
+
Parameters.resourceGroupName,
|
|
898
|
+
Parameters.moveCollectionName
|
|
899
|
+
],
|
|
900
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
901
|
+
mediaType: "json",
|
|
902
|
+
serializer
|
|
903
|
+
};
|
|
904
|
+
const listMoveCollectionsBySubscriptionOperationSpec = {
|
|
905
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
|
|
906
|
+
httpMethod: "GET",
|
|
907
|
+
responses: {
|
|
908
|
+
200: {
|
|
909
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
910
|
+
},
|
|
911
|
+
default: {
|
|
912
|
+
bodyMapper: Mappers.CloudError
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
queryParameters: [Parameters.apiVersion],
|
|
916
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
917
|
+
headerParameters: [Parameters.accept],
|
|
918
|
+
serializer
|
|
919
|
+
};
|
|
920
|
+
const listMoveCollectionsByResourceGroupOperationSpec = {
|
|
921
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
|
|
922
|
+
httpMethod: "GET",
|
|
923
|
+
responses: {
|
|
924
|
+
200: {
|
|
925
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
926
|
+
},
|
|
927
|
+
default: {
|
|
928
|
+
bodyMapper: Mappers.CloudError
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
queryParameters: [Parameters.apiVersion],
|
|
932
|
+
urlParameters: [
|
|
933
|
+
Parameters.$host,
|
|
934
|
+
Parameters.subscriptionId,
|
|
935
|
+
Parameters.resourceGroupName
|
|
936
|
+
],
|
|
937
|
+
headerParameters: [Parameters.accept],
|
|
938
|
+
serializer
|
|
939
|
+
};
|
|
940
|
+
const listRequiredForOperationSpec = {
|
|
941
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
|
|
942
|
+
httpMethod: "GET",
|
|
943
|
+
responses: {
|
|
944
|
+
200: {
|
|
945
|
+
bodyMapper: Mappers.RequiredForResourcesCollection
|
|
946
|
+
},
|
|
947
|
+
default: {
|
|
948
|
+
bodyMapper: Mappers.CloudError
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
queryParameters: [Parameters.apiVersion, Parameters.sourceId],
|
|
952
|
+
urlParameters: [
|
|
953
|
+
Parameters.$host,
|
|
954
|
+
Parameters.subscriptionId,
|
|
955
|
+
Parameters.resourceGroupName,
|
|
956
|
+
Parameters.moveCollectionName
|
|
957
|
+
],
|
|
958
|
+
headerParameters: [Parameters.accept],
|
|
959
|
+
serializer
|
|
960
|
+
};
|
|
961
|
+
const listMoveCollectionsBySubscriptionNextOperationSpec = {
|
|
962
|
+
path: "{nextLink}",
|
|
963
|
+
httpMethod: "GET",
|
|
964
|
+
responses: {
|
|
965
|
+
200: {
|
|
966
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
967
|
+
},
|
|
968
|
+
default: {
|
|
969
|
+
bodyMapper: Mappers.CloudError
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
urlParameters: [
|
|
973
|
+
Parameters.$host,
|
|
974
|
+
Parameters.subscriptionId,
|
|
975
|
+
Parameters.nextLink
|
|
976
|
+
],
|
|
977
|
+
headerParameters: [Parameters.accept],
|
|
978
|
+
serializer
|
|
979
|
+
};
|
|
980
|
+
const listMoveCollectionsByResourceGroupNextOperationSpec = {
|
|
981
|
+
path: "{nextLink}",
|
|
982
|
+
httpMethod: "GET",
|
|
983
|
+
responses: {
|
|
984
|
+
200: {
|
|
985
|
+
bodyMapper: Mappers.MoveCollectionResultList
|
|
986
|
+
},
|
|
987
|
+
default: {
|
|
988
|
+
bodyMapper: Mappers.CloudError
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
urlParameters: [
|
|
992
|
+
Parameters.$host,
|
|
993
|
+
Parameters.subscriptionId,
|
|
994
|
+
Parameters.resourceGroupName,
|
|
995
|
+
Parameters.nextLink
|
|
996
|
+
],
|
|
997
|
+
headerParameters: [Parameters.accept],
|
|
998
|
+
serializer
|
|
999
|
+
};
|
|
1000
|
+
//# sourceMappingURL=moveCollections.js.map
|