@azure/arm-recoveryservices-siterecovery 3.3.1 → 4.0.0
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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +32127 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +9867 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +382 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +722 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +19684 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +90 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +593 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +36 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/migrationRecoveryPoints.d.ts +51 -0
- package/dist-esm/src/operations/migrationRecoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operations/migrationRecoveryPoints.js +186 -0
- package/dist-esm/src/operations/migrationRecoveryPoints.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +123 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts +51 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.js +191 -0
- package/dist-esm/src/operations/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operations/replicationAlertSettings.d.ts +45 -0
- package/dist-esm/src/operations/replicationAlertSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationAlertSettings.js +182 -0
- package/dist-esm/src/operations/replicationAlertSettings.js.map +1 -0
- package/dist-esm/src/operations/replicationAppliances.d.ts +32 -0
- package/dist-esm/src/operations/replicationAppliances.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationAppliances.js +125 -0
- package/dist-esm/src/operations/replicationAppliances.js.map +1 -0
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.d.ts +25 -0
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.js +75 -0
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.js.map +1 -0
- package/dist-esm/src/operations/replicationEvents.d.ts +38 -0
- package/dist-esm/src/operations/replicationEvents.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationEvents.js +152 -0
- package/dist-esm/src/operations/replicationEvents.js.map +1 -0
- package/dist-esm/src/operations/replicationFabrics.d.ts +129 -0
- package/dist-esm/src/operations/replicationFabrics.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationFabrics.js +649 -0
- package/dist-esm/src/operations/replicationFabrics.js.map +1 -0
- package/dist-esm/src/operations/replicationJobs.d.ts +89 -0
- package/dist-esm/src/operations/replicationJobs.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationJobs.js +459 -0
- package/dist-esm/src/operations/replicationJobs.js.map +1 -0
- package/dist-esm/src/operations/replicationLogicalNetworks.d.ts +43 -0
- package/dist-esm/src/operations/replicationLogicalNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationLogicalNetworks.js +160 -0
- package/dist-esm/src/operations/replicationLogicalNetworks.js.map +1 -0
- package/dist-esm/src/operations/replicationMigrationItems.d.ts +190 -0
- package/dist-esm/src/operations/replicationMigrationItems.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationMigrationItems.js +902 -0
- package/dist-esm/src/operations/replicationMigrationItems.js.map +1 -0
- package/dist-esm/src/operations/replicationNetworkMappings.d.ts +118 -0
- package/dist-esm/src/operations/replicationNetworkMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationNetworkMappings.js +506 -0
- package/dist-esm/src/operations/replicationNetworkMappings.js.map +1 -0
- package/dist-esm/src/operations/replicationNetworks.d.ts +61 -0
- package/dist-esm/src/operations/replicationNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationNetworks.js +260 -0
- package/dist-esm/src/operations/replicationNetworks.js.map +1 -0
- package/dist-esm/src/operations/replicationPolicies.d.ts +79 -0
- package/dist-esm/src/operations/replicationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationPolicies.js +373 -0
- package/dist-esm/src/operations/replicationPolicies.js.map +1 -0
- package/dist-esm/src/operations/replicationProtectableItems.d.ts +47 -0
- package/dist-esm/src/operations/replicationProtectableItems.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationProtectableItems.js +177 -0
- package/dist-esm/src/operations/replicationProtectableItems.js.map +1 -0
- package/dist-esm/src/operations/replicationProtectedItems.d.ts +412 -0
- package/dist-esm/src/operations/replicationProtectedItems.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationProtectedItems.js +1977 -0
- package/dist-esm/src/operations/replicationProtectedItems.js.map +1 -0
- package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts +136 -0
- package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationProtectionContainerMappings.js +596 -0
- package/dist-esm/src/operations/replicationProtectionContainerMappings.js.map +1 -0
- package/dist-esm/src/operations/replicationProtectionContainers.d.ts +124 -0
- package/dist-esm/src/operations/replicationProtectionContainers.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationProtectionContainers.js +577 -0
- package/dist-esm/src/operations/replicationProtectionContainers.js.map +1 -0
- package/dist-esm/src/operations/replicationProtectionIntents.d.ts +45 -0
- package/dist-esm/src/operations/replicationProtectionIntents.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationProtectionIntents.js +190 -0
- package/dist-esm/src/operations/replicationProtectionIntents.js.map +1 -0
- package/dist-esm/src/operations/replicationRecoveryPlans.d.ts +171 -0
- package/dist-esm/src/operations/replicationRecoveryPlans.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationRecoveryPlans.js +914 -0
- package/dist-esm/src/operations/replicationRecoveryPlans.js.map +1 -0
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts +120 -0
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.js +550 -0
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.js.map +1 -0
- package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts +100 -0
- package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationStorageClassificationMappings.js +437 -0
- package/dist-esm/src/operations/replicationStorageClassificationMappings.js.map +1 -0
- package/dist-esm/src/operations/replicationStorageClassifications.d.ts +61 -0
- package/dist-esm/src/operations/replicationStorageClassifications.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationStorageClassifications.js +260 -0
- package/dist-esm/src/operations/replicationStorageClassifications.js.map +1 -0
- package/dist-esm/src/operations/replicationVaultHealth.d.ts +29 -0
- package/dist-esm/src/operations/replicationVaultHealth.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationVaultHealth.js +123 -0
- package/dist-esm/src/operations/replicationVaultHealth.js.map +1 -0
- package/dist-esm/src/operations/replicationVaultSetting.d.ts +53 -0
- package/dist-esm/src/operations/replicationVaultSetting.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationVaultSetting.js +233 -0
- package/dist-esm/src/operations/replicationVaultSetting.js.map +1 -0
- package/dist-esm/src/operations/replicationvCenters.d.ts +108 -0
- package/dist-esm/src/operations/replicationvCenters.d.ts.map +1 -0
- package/dist-esm/src/operations/replicationvCenters.js +490 -0
- package/dist-esm/src/operations/replicationvCenters.js.map +1 -0
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.d.ts +18 -0
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.js +48 -0
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.js.map +1 -0
- package/dist-esm/src/operations/targetComputeSizes.d.ts +42 -0
- package/dist-esm/src/operations/targetComputeSizes.d.ts.map +1 -0
- package/dist-esm/src/operations/targetComputeSizes.js +152 -0
- package/dist-esm/src/operations/targetComputeSizes.js.map +1 -0
- package/{esm/operations/index.js → dist-esm/src/operationsInterfaces/index.d.ts} +8 -10
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +36 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationAlertSettings.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/replicationAlertSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationAlertSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationAlertSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationAppliances.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/replicationAppliances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationAppliances.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationAppliances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationEvents.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/replicationEvents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationEvents.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationEvents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts +108 -0
- package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationFabrics.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationFabrics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationJobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationJobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts +151 -0
- package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationMigrationItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationMigrationItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts +79 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworks.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectableItems.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectableItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectableItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectableItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts +373 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectedItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectedItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts +97 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts +87 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts +150 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts +83 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultHealth.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultHealth.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultSetting.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationVaultSetting.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicationvCenters.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicationvCenters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/targetComputeSizes.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/targetComputeSizes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/targetComputeSizes.js +9 -0
- package/dist-esm/src/operationsInterfaces/targetComputeSizes.js.map +1 -0
- package/dist-esm/src/siteRecoveryManagementClient.d.ts +50 -0
- package/dist-esm/src/siteRecoveryManagementClient.d.ts.map +1 -0
- package/dist-esm/src/siteRecoveryManagementClient.js +89 -0
- package/dist-esm/src/siteRecoveryManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +76 -33
- package/review/arm-recoveryservices-siterecovery.api.md +7219 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +9563 -11175
- package/src/models/mappers.ts +15885 -6664
- package/src/models/parameters.ts +541 -92
- package/src/operations/index.ts +10 -5
- package/src/operations/migrationRecoveryPoints.ts +263 -0
- package/src/operations/operations.ts +97 -85
- package/src/operations/recoveryPoints.ts +180 -129
- package/src/operations/replicationAlertSettings.ts +146 -175
- package/src/operations/replicationAppliances.ts +143 -0
- package/src/operations/replicationEligibilityResultsOperations.ts +104 -0
- package/src/operations/replicationEvents.ts +122 -128
- package/src/operations/replicationFabrics.ts +722 -417
- package/src/operations/replicationJobs.ts +485 -289
- package/src/operations/replicationLogicalNetworks.ts +143 -133
- package/src/operations/replicationMigrationItems.ts +1292 -0
- package/src/operations/replicationNetworkMappings.ts +541 -349
- package/src/operations/replicationNetworks.ts +225 -207
- package/src/operations/replicationPolicies.ts +385 -257
- package/src/operations/replicationProtectableItems.ts +177 -139
- package/src/operations/replicationProtectedItems.ts +2408 -756
- package/src/operations/replicationProtectionContainerMappings.ts +634 -382
- package/src/operations/replicationProtectionContainers.ts +623 -392
- package/src/operations/replicationProtectionIntents.ts +231 -0
- package/src/operations/replicationRecoveryPlans.ts +1045 -493
- package/src/operations/replicationRecoveryServicesProviders.ts +590 -321
- package/src/operations/replicationStorageClassificationMappings.ts +443 -288
- package/src/operations/replicationStorageClassifications.ts +227 -204
- package/src/operations/replicationVaultHealth.ts +119 -87
- package/src/operations/replicationVaultSetting.ts +297 -0
- package/src/operations/replicationvCenters.ts +511 -347
- package/src/operations/supportedOperatingSystemsOperations.ts +63 -0
- package/src/operations/targetComputeSizes.ts +154 -85
- package/src/operationsInterfaces/index.ts +36 -0
- package/src/operationsInterfaces/migrationRecoveryPoints.ts +48 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/recoveryPoints.ts +48 -0
- package/src/operationsInterfaces/replicationAlertSettings.ts +50 -0
- package/src/operationsInterfaces/replicationAppliances.ts +25 -0
- package/src/operationsInterfaces/replicationEligibilityResultsOperations.ts +36 -0
- package/src/operationsInterfaces/replicationEvents.ts +36 -0
- package/src/operationsInterfaces/replicationFabrics.ts +209 -0
- package/src/operationsInterfaces/replicationJobs.ts +143 -0
- package/src/operationsInterfaces/replicationLogicalNetworks.ts +40 -0
- package/src/operationsInterfaces/replicationMigrationItems.ts +308 -0
- package/src/operationsInterfaces/replicationNetworkMappings.ts +156 -0
- package/src/operationsInterfaces/replicationNetworks.ts +48 -0
- package/src/operationsInterfaces/replicationPolicies.ts +116 -0
- package/src/operationsInterfaces/replicationProtectableItems.ts +44 -0
- package/src/operationsInterfaces/replicationProtectedItems.ts +757 -0
- package/src/operationsInterfaces/replicationProtectionContainerMappings.ts +188 -0
- package/src/operationsInterfaces/replicationProtectionContainers.ts +178 -0
- package/src/operationsInterfaces/replicationProtectionIntents.ts +50 -0
- package/src/operationsInterfaces/replicationRecoveryPlans.ts +311 -0
- package/src/operationsInterfaces/replicationRecoveryServicesProviders.ts +160 -0
- package/src/operationsInterfaces/replicationStorageClassificationMappings.ts +120 -0
- package/src/operationsInterfaces/replicationStorageClassifications.ts +48 -0
- package/src/operationsInterfaces/replicationVaultHealth.ts +45 -0
- package/src/operationsInterfaces/replicationVaultSetting.ts +67 -0
- package/src/operationsInterfaces/replicationvCenters.ts +140 -0
- package/src/operationsInterfaces/supportedOperatingSystemsOperations.ts +23 -0
- package/src/operationsInterfaces/targetComputeSizes.ts +31 -0
- package/src/siteRecoveryManagementClient.ts +206 -77
- package/tsconfig.json +4 -4
- package/types/arm-recoveryservices-siterecovery.d.ts +12535 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-recoveryservices-siterecovery.js +0 -21622
- package/dist/arm-recoveryservices-siterecovery.js.map +0 -1
- package/dist/arm-recoveryservices-siterecovery.min.js +0 -1
- package/dist/arm-recoveryservices-siterecovery.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -12202
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -458
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -11364
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -29
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -285
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/recoveryPointsMappers.d.ts +0 -2
- package/esm/models/recoveryPointsMappers.d.ts.map +0 -1
- package/esm/models/recoveryPointsMappers.js +0 -11
- package/esm/models/recoveryPointsMappers.js.map +0 -1
- package/esm/models/replicationAlertSettingsMappers.d.ts +0 -2
- package/esm/models/replicationAlertSettingsMappers.d.ts.map +0 -1
- package/esm/models/replicationAlertSettingsMappers.js +0 -11
- package/esm/models/replicationAlertSettingsMappers.js.map +0 -1
- package/esm/models/replicationEventsMappers.d.ts +0 -2
- package/esm/models/replicationEventsMappers.d.ts.map +0 -1
- package/esm/models/replicationEventsMappers.js +0 -11
- package/esm/models/replicationEventsMappers.js.map +0 -1
- package/esm/models/replicationFabricsMappers.d.ts +0 -2
- package/esm/models/replicationFabricsMappers.d.ts.map +0 -1
- package/esm/models/replicationFabricsMappers.js +0 -11
- package/esm/models/replicationFabricsMappers.js.map +0 -1
- package/esm/models/replicationJobsMappers.d.ts +0 -2
- package/esm/models/replicationJobsMappers.d.ts.map +0 -1
- package/esm/models/replicationJobsMappers.js +0 -11
- package/esm/models/replicationJobsMappers.js.map +0 -1
- package/esm/models/replicationLogicalNetworksMappers.d.ts +0 -2
- package/esm/models/replicationLogicalNetworksMappers.d.ts.map +0 -1
- package/esm/models/replicationLogicalNetworksMappers.js +0 -11
- package/esm/models/replicationLogicalNetworksMappers.js.map +0 -1
- package/esm/models/replicationNetworkMappingsMappers.d.ts +0 -2
- package/esm/models/replicationNetworkMappingsMappers.d.ts.map +0 -1
- package/esm/models/replicationNetworkMappingsMappers.js +0 -11
- package/esm/models/replicationNetworkMappingsMappers.js.map +0 -1
- package/esm/models/replicationNetworksMappers.d.ts +0 -2
- package/esm/models/replicationNetworksMappers.d.ts.map +0 -1
- package/esm/models/replicationNetworksMappers.js +0 -11
- package/esm/models/replicationNetworksMappers.js.map +0 -1
- package/esm/models/replicationPoliciesMappers.d.ts +0 -2
- package/esm/models/replicationPoliciesMappers.d.ts.map +0 -1
- package/esm/models/replicationPoliciesMappers.js +0 -11
- package/esm/models/replicationPoliciesMappers.js.map +0 -1
- package/esm/models/replicationProtectableItemsMappers.d.ts +0 -2
- package/esm/models/replicationProtectableItemsMappers.d.ts.map +0 -1
- package/esm/models/replicationProtectableItemsMappers.js +0 -11
- package/esm/models/replicationProtectableItemsMappers.js.map +0 -1
- package/esm/models/replicationProtectedItemsMappers.d.ts +0 -2
- package/esm/models/replicationProtectedItemsMappers.d.ts.map +0 -1
- package/esm/models/replicationProtectedItemsMappers.js +0 -11
- package/esm/models/replicationProtectedItemsMappers.js.map +0 -1
- package/esm/models/replicationProtectionContainerMappingsMappers.d.ts +0 -2
- package/esm/models/replicationProtectionContainerMappingsMappers.d.ts.map +0 -1
- package/esm/models/replicationProtectionContainerMappingsMappers.js +0 -11
- package/esm/models/replicationProtectionContainerMappingsMappers.js.map +0 -1
- package/esm/models/replicationProtectionContainersMappers.d.ts +0 -2
- package/esm/models/replicationProtectionContainersMappers.d.ts.map +0 -1
- package/esm/models/replicationProtectionContainersMappers.js +0 -11
- package/esm/models/replicationProtectionContainersMappers.js.map +0 -1
- package/esm/models/replicationRecoveryPlansMappers.d.ts +0 -2
- package/esm/models/replicationRecoveryPlansMappers.d.ts.map +0 -1
- package/esm/models/replicationRecoveryPlansMappers.js +0 -11
- package/esm/models/replicationRecoveryPlansMappers.js.map +0 -1
- package/esm/models/replicationRecoveryServicesProvidersMappers.d.ts +0 -2
- package/esm/models/replicationRecoveryServicesProvidersMappers.d.ts.map +0 -1
- package/esm/models/replicationRecoveryServicesProvidersMappers.js +0 -11
- package/esm/models/replicationRecoveryServicesProvidersMappers.js.map +0 -1
- package/esm/models/replicationStorageClassificationMappingsMappers.d.ts +0 -2
- package/esm/models/replicationStorageClassificationMappingsMappers.d.ts.map +0 -1
- package/esm/models/replicationStorageClassificationMappingsMappers.js +0 -11
- package/esm/models/replicationStorageClassificationMappingsMappers.js.map +0 -1
- package/esm/models/replicationStorageClassificationsMappers.d.ts +0 -2
- package/esm/models/replicationStorageClassificationsMappers.d.ts.map +0 -1
- package/esm/models/replicationStorageClassificationsMappers.js +0 -11
- package/esm/models/replicationStorageClassificationsMappers.js.map +0 -1
- package/esm/models/replicationVaultHealthMappers.d.ts +0 -2
- package/esm/models/replicationVaultHealthMappers.d.ts.map +0 -1
- package/esm/models/replicationVaultHealthMappers.js +0 -11
- package/esm/models/replicationVaultHealthMappers.js.map +0 -1
- package/esm/models/replicationvCentersMappers.d.ts +0 -2
- package/esm/models/replicationvCentersMappers.d.ts.map +0 -1
- package/esm/models/replicationvCentersMappers.js +0 -11
- package/esm/models/replicationvCentersMappers.js.map +0 -1
- package/esm/models/targetComputeSizesMappers.d.ts +0 -2
- package/esm/models/targetComputeSizesMappers.d.ts.map +0 -1
- package/esm/models/targetComputeSizesMappers.js +0 -11
- package/esm/models/targetComputeSizesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -81
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/recoveryPoints.d.ts +0 -85
- package/esm/operations/recoveryPoints.d.ts.map +0 -1
- package/esm/operations/recoveryPoints.js +0 -125
- package/esm/operations/recoveryPoints.js.map +0 -1
- package/esm/operations/replicationAlertSettings.d.ts +0 -89
- package/esm/operations/replicationAlertSettings.d.ts.map +0 -1
- package/esm/operations/replicationAlertSettings.js +0 -150
- package/esm/operations/replicationAlertSettings.js.map +0 -1
- package/esm/operations/replicationEvents.d.ts +0 -67
- package/esm/operations/replicationEvents.d.ts.map +0 -1
- package/esm/operations/replicationEvents.js +0 -114
- package/esm/operations/replicationEvents.js.map +0 -1
- package/esm/operations/replicationFabrics.d.ts +0 -186
- package/esm/operations/replicationFabrics.d.ts.map +0 -1
- package/esm/operations/replicationFabrics.js +0 -479
- package/esm/operations/replicationFabrics.js.map +0 -1
- package/esm/operations/replicationJobs.d.ts +0 -134
- package/esm/operations/replicationJobs.d.ts.map +0 -1
- package/esm/operations/replicationJobs.js +0 -325
- package/esm/operations/replicationJobs.js.map +0 -1
- package/esm/operations/replicationLogicalNetworks.d.ts +0 -73
- package/esm/operations/replicationLogicalNetworks.d.ts.map +0 -1
- package/esm/operations/replicationLogicalNetworks.js +0 -117
- package/esm/operations/replicationLogicalNetworks.js.map +0 -1
- package/esm/operations/replicationNetworkMappings.d.ts +0 -179
- package/esm/operations/replicationNetworkMappings.d.ts.map +0 -1
- package/esm/operations/replicationNetworkMappings.js +0 -363
- package/esm/operations/replicationNetworkMappings.js.map +0 -1
- package/esm/operations/replicationNetworks.d.ts +0 -108
- package/esm/operations/replicationNetworks.d.ts.map +0 -1
- package/esm/operations/replicationNetworks.js +0 -172
- package/esm/operations/replicationNetworks.js.map +0 -1
- package/esm/operations/replicationPolicies.d.ts +0 -120
- package/esm/operations/replicationPolicies.d.ts.map +0 -1
- package/esm/operations/replicationPolicies.js +0 -276
- package/esm/operations/replicationPolicies.js.map +0 -1
- package/esm/operations/replicationProtectableItems.d.ts +0 -81
- package/esm/operations/replicationProtectableItems.d.ts.map +0 -1
- package/esm/operations/replicationProtectableItems.js +0 -122
- package/esm/operations/replicationProtectableItems.js.map +0 -1
- package/esm/operations/replicationProtectedItems.d.ts +0 -410
- package/esm/operations/replicationProtectedItems.d.ts.map +0 -1
- package/esm/operations/replicationProtectedItems.js +0 -1013
- package/esm/operations/replicationProtectedItems.js.map +0 -1
- package/esm/operations/replicationProtectionContainerMappings.d.ts +0 -203
- package/esm/operations/replicationProtectionContainerMappings.d.ts.map +0 -1
- package/esm/operations/replicationProtectionContainerMappings.js +0 -426
- package/esm/operations/replicationProtectionContainerMappings.js.map +0 -1
- package/esm/operations/replicationProtectionContainers.d.ts +0 -191
- package/esm/operations/replicationProtectionContainers.d.ts.map +0 -1
- package/esm/operations/replicationProtectionContainers.js +0 -412
- package/esm/operations/replicationProtectionContainers.js.map +0 -1
- package/esm/operations/replicationRecoveryPlans.d.ts +0 -224
- package/esm/operations/replicationRecoveryPlans.d.ts.map +0 -1
- package/esm/operations/replicationRecoveryPlans.js +0 -604
- package/esm/operations/replicationRecoveryPlans.js.map +0 -1
- package/esm/operations/replicationRecoveryServicesProviders.d.ts +0 -172
- package/esm/operations/replicationRecoveryServicesProviders.d.ts.map +0 -1
- package/esm/operations/replicationRecoveryServicesProviders.js +0 -336
- package/esm/operations/replicationRecoveryServicesProviders.js.map +0 -1
- package/esm/operations/replicationStorageClassificationMappings.d.ts +0 -159
- package/esm/operations/replicationStorageClassificationMappings.d.ts.map +0 -1
- package/esm/operations/replicationStorageClassificationMappings.js +0 -298
- package/esm/operations/replicationStorageClassificationMappings.js.map +0 -1
- package/esm/operations/replicationStorageClassifications.d.ts +0 -108
- package/esm/operations/replicationStorageClassifications.d.ts.map +0 -1
- package/esm/operations/replicationStorageClassifications.js +0 -172
- package/esm/operations/replicationStorageClassifications.js.map +0 -1
- package/esm/operations/replicationVaultHealth.d.ts +0 -42
- package/esm/operations/replicationVaultHealth.d.ts.map +0 -1
- package/esm/operations/replicationVaultHealth.js +0 -100
- package/esm/operations/replicationVaultHealth.js.map +0 -1
- package/esm/operations/replicationvCenters.d.ts +0 -167
- package/esm/operations/replicationvCenters.d.ts.map +0 -1
- package/esm/operations/replicationvCenters.js +0 -347
- package/esm/operations/replicationvCenters.js.map +0 -1
- package/esm/operations/targetComputeSizes.d.ts +0 -57
- package/esm/operations/targetComputeSizes.d.ts.map +0 -1
- package/esm/operations/targetComputeSizes.js +0 -88
- package/esm/operations/targetComputeSizes.js.map +0 -1
- package/esm/siteRecoveryManagementClient.d.ts +0 -47
- package/esm/siteRecoveryManagementClient.d.ts.map +0 -1
- package/esm/siteRecoveryManagementClient.js +0 -61
- package/esm/siteRecoveryManagementClient.js.map +0 -1
- package/esm/siteRecoveryManagementClientContext.d.ts +0 -27
- package/esm/siteRecoveryManagementClientContext.d.ts.map +0 -1
- package/esm/siteRecoveryManagementClientContext.js +0 -72
- package/esm/siteRecoveryManagementClientContext.js.map +0 -1
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/recoveryPointsMappers.ts +0 -169
- package/src/models/replicationAlertSettingsMappers.ts +0 -171
- package/src/models/replicationEventsMappers.ts +0 -169
- package/src/models/replicationFabricsMappers.ts +0 -178
- package/src/models/replicationJobsMappers.ts +0 -172
- package/src/models/replicationLogicalNetworksMappers.ts +0 -169
- package/src/models/replicationNetworkMappingsMappers.ts +0 -181
- package/src/models/replicationNetworksMappers.ts +0 -169
- package/src/models/replicationPoliciesMappers.ts +0 -181
- package/src/models/replicationProtectableItemsMappers.ts +0 -169
- package/src/models/replicationProtectedItemsMappers.ts +0 -226
- package/src/models/replicationProtectionContainerMappingsMappers.ts +0 -180
- package/src/models/replicationProtectionContainersMappers.ts +0 -184
- package/src/models/replicationRecoveryPlansMappers.ts +0 -187
- package/src/models/replicationRecoveryServicesProvidersMappers.ts +0 -169
- package/src/models/replicationStorageClassificationMappingsMappers.ts +0 -171
- package/src/models/replicationStorageClassificationsMappers.ts +0 -169
- package/src/models/replicationVaultHealthMappers.ts +0 -168
- package/src/models/replicationvCentersMappers.ts +0 -173
- package/src/models/targetComputeSizesMappers.ts +0 -19
- package/src/siteRecoveryManagementClientContext.ts +0 -81
|
@@ -0,0 +1,914 @@
|
|
|
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, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing ReplicationRecoveryPlans operations. */
|
|
16
|
+
export class ReplicationRecoveryPlansImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class ReplicationRecoveryPlans class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lists the recovery plans in the vault.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(options) {
|
|
29
|
+
const iter = this.listPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Lists the recovery plans in the vault.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
_list(options) {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Gets the details of the recovery plan.
|
|
81
|
+
* @param recoveryPlanName Name of the recovery plan.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
get(recoveryPlanName, options) {
|
|
85
|
+
return this.client.sendOperationRequest({ recoveryPlanName, options }, getOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The operation to create a recovery plan.
|
|
89
|
+
* @param recoveryPlanName Recovery plan name.
|
|
90
|
+
* @param input Recovery Plan creation input.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
beginCreate(recoveryPlanName, input, options) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return this.client.sendOperationRequest(args, spec);
|
|
97
|
+
});
|
|
98
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
var _a;
|
|
100
|
+
let currentRawResponse = undefined;
|
|
101
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
102
|
+
const callback = (rawResponse, flatResponse) => {
|
|
103
|
+
currentRawResponse = rawResponse;
|
|
104
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
105
|
+
};
|
|
106
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
107
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
108
|
+
return {
|
|
109
|
+
flatResponse,
|
|
110
|
+
rawResponse: {
|
|
111
|
+
statusCode: currentRawResponse.status,
|
|
112
|
+
body: currentRawResponse.parsedBody,
|
|
113
|
+
headers: currentRawResponse.headers.toJSON()
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, createOperationSpec);
|
|
118
|
+
return new LroEngine(lro, {
|
|
119
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
120
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The operation to create a recovery plan.
|
|
126
|
+
* @param recoveryPlanName Recovery plan name.
|
|
127
|
+
* @param input Recovery Plan creation input.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
beginCreateAndWait(recoveryPlanName, input, options) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const poller = yield this.beginCreate(recoveryPlanName, input, options);
|
|
133
|
+
return poller.pollUntilDone();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Delete a recovery plan.
|
|
138
|
+
* @param recoveryPlanName Recovery plan name.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
beginDelete(recoveryPlanName, options) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return this.client.sendOperationRequest(args, spec);
|
|
145
|
+
});
|
|
146
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
var _a;
|
|
148
|
+
let currentRawResponse = undefined;
|
|
149
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
150
|
+
const callback = (rawResponse, flatResponse) => {
|
|
151
|
+
currentRawResponse = rawResponse;
|
|
152
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
153
|
+
};
|
|
154
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
155
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
156
|
+
return {
|
|
157
|
+
flatResponse,
|
|
158
|
+
rawResponse: {
|
|
159
|
+
statusCode: currentRawResponse.status,
|
|
160
|
+
body: currentRawResponse.parsedBody,
|
|
161
|
+
headers: currentRawResponse.headers.toJSON()
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, options }, deleteOperationSpec);
|
|
166
|
+
return new LroEngine(lro, {
|
|
167
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
168
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Delete a recovery plan.
|
|
174
|
+
* @param recoveryPlanName Recovery plan name.
|
|
175
|
+
* @param options The options parameters.
|
|
176
|
+
*/
|
|
177
|
+
beginDeleteAndWait(recoveryPlanName, options) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
const poller = yield this.beginDelete(recoveryPlanName, options);
|
|
180
|
+
return poller.pollUntilDone();
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The operation to update a recovery plan.
|
|
185
|
+
* @param recoveryPlanName Recovery plan name.
|
|
186
|
+
* @param input Update recovery plan input.
|
|
187
|
+
* @param options The options parameters.
|
|
188
|
+
*/
|
|
189
|
+
beginUpdate(recoveryPlanName, input, options) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
return this.client.sendOperationRequest(args, spec);
|
|
193
|
+
});
|
|
194
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
var _a;
|
|
196
|
+
let currentRawResponse = undefined;
|
|
197
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
198
|
+
const callback = (rawResponse, flatResponse) => {
|
|
199
|
+
currentRawResponse = rawResponse;
|
|
200
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
201
|
+
};
|
|
202
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
203
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
204
|
+
return {
|
|
205
|
+
flatResponse,
|
|
206
|
+
rawResponse: {
|
|
207
|
+
statusCode: currentRawResponse.status,
|
|
208
|
+
body: currentRawResponse.parsedBody,
|
|
209
|
+
headers: currentRawResponse.headers.toJSON()
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
});
|
|
213
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, updateOperationSpec);
|
|
214
|
+
return new LroEngine(lro, {
|
|
215
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
216
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The operation to update a recovery plan.
|
|
222
|
+
* @param recoveryPlanName Recovery plan name.
|
|
223
|
+
* @param input Update recovery plan input.
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
beginUpdateAndWait(recoveryPlanName, input, options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const poller = yield this.beginUpdate(recoveryPlanName, input, options);
|
|
229
|
+
return poller.pollUntilDone();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The operation to cancel the failover of a recovery plan.
|
|
234
|
+
* @param recoveryPlanName Recovery plan name.
|
|
235
|
+
* @param options The options parameters.
|
|
236
|
+
*/
|
|
237
|
+
beginFailoverCancel(recoveryPlanName, options) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
return this.client.sendOperationRequest(args, spec);
|
|
241
|
+
});
|
|
242
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
var _a;
|
|
244
|
+
let currentRawResponse = undefined;
|
|
245
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
246
|
+
const callback = (rawResponse, flatResponse) => {
|
|
247
|
+
currentRawResponse = rawResponse;
|
|
248
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
249
|
+
};
|
|
250
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
251
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
252
|
+
return {
|
|
253
|
+
flatResponse,
|
|
254
|
+
rawResponse: {
|
|
255
|
+
statusCode: currentRawResponse.status,
|
|
256
|
+
body: currentRawResponse.parsedBody,
|
|
257
|
+
headers: currentRawResponse.headers.toJSON()
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, options }, failoverCancelOperationSpec);
|
|
262
|
+
return new LroEngine(lro, {
|
|
263
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
264
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* The operation to cancel the failover of a recovery plan.
|
|
270
|
+
* @param recoveryPlanName Recovery plan name.
|
|
271
|
+
* @param options The options parameters.
|
|
272
|
+
*/
|
|
273
|
+
beginFailoverCancelAndWait(recoveryPlanName, options) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const poller = yield this.beginFailoverCancel(recoveryPlanName, options);
|
|
276
|
+
return poller.pollUntilDone();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* The operation to commit the failover of a recovery plan.
|
|
281
|
+
* @param recoveryPlanName Recovery plan name.
|
|
282
|
+
* @param options The options parameters.
|
|
283
|
+
*/
|
|
284
|
+
beginFailoverCommit(recoveryPlanName, options) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
return this.client.sendOperationRequest(args, spec);
|
|
288
|
+
});
|
|
289
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
var _a;
|
|
291
|
+
let currentRawResponse = undefined;
|
|
292
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
293
|
+
const callback = (rawResponse, flatResponse) => {
|
|
294
|
+
currentRawResponse = rawResponse;
|
|
295
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
296
|
+
};
|
|
297
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
298
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
299
|
+
return {
|
|
300
|
+
flatResponse,
|
|
301
|
+
rawResponse: {
|
|
302
|
+
statusCode: currentRawResponse.status,
|
|
303
|
+
body: currentRawResponse.parsedBody,
|
|
304
|
+
headers: currentRawResponse.headers.toJSON()
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, options }, failoverCommitOperationSpec);
|
|
309
|
+
return new LroEngine(lro, {
|
|
310
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
311
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The operation to commit the failover of a recovery plan.
|
|
317
|
+
* @param recoveryPlanName Recovery plan name.
|
|
318
|
+
* @param options The options parameters.
|
|
319
|
+
*/
|
|
320
|
+
beginFailoverCommitAndWait(recoveryPlanName, options) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const poller = yield this.beginFailoverCommit(recoveryPlanName, options);
|
|
323
|
+
return poller.pollUntilDone();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* The operation to start the planned failover of a recovery plan.
|
|
328
|
+
* @param recoveryPlanName Recovery plan name.
|
|
329
|
+
* @param input Failover input.
|
|
330
|
+
* @param options The options parameters.
|
|
331
|
+
*/
|
|
332
|
+
beginPlannedFailover(recoveryPlanName, input, options) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
return this.client.sendOperationRequest(args, spec);
|
|
336
|
+
});
|
|
337
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
var _a;
|
|
339
|
+
let currentRawResponse = undefined;
|
|
340
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
341
|
+
const callback = (rawResponse, flatResponse) => {
|
|
342
|
+
currentRawResponse = rawResponse;
|
|
343
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
344
|
+
};
|
|
345
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
346
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
347
|
+
return {
|
|
348
|
+
flatResponse,
|
|
349
|
+
rawResponse: {
|
|
350
|
+
statusCode: currentRawResponse.status,
|
|
351
|
+
body: currentRawResponse.parsedBody,
|
|
352
|
+
headers: currentRawResponse.headers.toJSON()
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
});
|
|
356
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, plannedFailoverOperationSpec);
|
|
357
|
+
return new LroEngine(lro, {
|
|
358
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
359
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* The operation to start the planned failover of a recovery plan.
|
|
365
|
+
* @param recoveryPlanName Recovery plan name.
|
|
366
|
+
* @param input Failover input.
|
|
367
|
+
* @param options The options parameters.
|
|
368
|
+
*/
|
|
369
|
+
beginPlannedFailoverAndWait(recoveryPlanName, input, options) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const poller = yield this.beginPlannedFailover(recoveryPlanName, input, options);
|
|
372
|
+
return poller.pollUntilDone();
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* The operation to reprotect(reverse replicate) a recovery plan.
|
|
377
|
+
* @param recoveryPlanName Recovery plan name.
|
|
378
|
+
* @param options The options parameters.
|
|
379
|
+
*/
|
|
380
|
+
beginReprotect(recoveryPlanName, options) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
383
|
+
return this.client.sendOperationRequest(args, spec);
|
|
384
|
+
});
|
|
385
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
386
|
+
var _a;
|
|
387
|
+
let currentRawResponse = undefined;
|
|
388
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
389
|
+
const callback = (rawResponse, flatResponse) => {
|
|
390
|
+
currentRawResponse = rawResponse;
|
|
391
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
392
|
+
};
|
|
393
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
394
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
395
|
+
return {
|
|
396
|
+
flatResponse,
|
|
397
|
+
rawResponse: {
|
|
398
|
+
statusCode: currentRawResponse.status,
|
|
399
|
+
body: currentRawResponse.parsedBody,
|
|
400
|
+
headers: currentRawResponse.headers.toJSON()
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
});
|
|
404
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, options }, reprotectOperationSpec);
|
|
405
|
+
return new LroEngine(lro, {
|
|
406
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
407
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* The operation to reprotect(reverse replicate) a recovery plan.
|
|
413
|
+
* @param recoveryPlanName Recovery plan name.
|
|
414
|
+
* @param options The options parameters.
|
|
415
|
+
*/
|
|
416
|
+
beginReprotectAndWait(recoveryPlanName, options) {
|
|
417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
const poller = yield this.beginReprotect(recoveryPlanName, options);
|
|
419
|
+
return poller.pollUntilDone();
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* The operation to start the test failover of a recovery plan.
|
|
424
|
+
* @param recoveryPlanName Recovery plan name.
|
|
425
|
+
* @param input Recovery plan test failover input.
|
|
426
|
+
* @param options The options parameters.
|
|
427
|
+
*/
|
|
428
|
+
beginTestFailover(recoveryPlanName, input, options) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
return this.client.sendOperationRequest(args, spec);
|
|
432
|
+
});
|
|
433
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
var _a;
|
|
435
|
+
let currentRawResponse = undefined;
|
|
436
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
437
|
+
const callback = (rawResponse, flatResponse) => {
|
|
438
|
+
currentRawResponse = rawResponse;
|
|
439
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
440
|
+
};
|
|
441
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
442
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
443
|
+
return {
|
|
444
|
+
flatResponse,
|
|
445
|
+
rawResponse: {
|
|
446
|
+
statusCode: currentRawResponse.status,
|
|
447
|
+
body: currentRawResponse.parsedBody,
|
|
448
|
+
headers: currentRawResponse.headers.toJSON()
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
});
|
|
452
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, testFailoverOperationSpec);
|
|
453
|
+
return new LroEngine(lro, {
|
|
454
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
455
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
456
|
+
});
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The operation to start the test failover of a recovery plan.
|
|
461
|
+
* @param recoveryPlanName Recovery plan name.
|
|
462
|
+
* @param input Recovery plan test failover input.
|
|
463
|
+
* @param options The options parameters.
|
|
464
|
+
*/
|
|
465
|
+
beginTestFailoverAndWait(recoveryPlanName, input, options) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
const poller = yield this.beginTestFailover(recoveryPlanName, input, options);
|
|
468
|
+
return poller.pollUntilDone();
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* The operation to cleanup test failover of a recovery plan.
|
|
473
|
+
* @param recoveryPlanName Recovery plan name.
|
|
474
|
+
* @param input Recovery plan test failover cleanup input.
|
|
475
|
+
* @param options The options parameters.
|
|
476
|
+
*/
|
|
477
|
+
beginTestFailoverCleanup(recoveryPlanName, input, options) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
return this.client.sendOperationRequest(args, spec);
|
|
481
|
+
});
|
|
482
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
var _a;
|
|
484
|
+
let currentRawResponse = undefined;
|
|
485
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
486
|
+
const callback = (rawResponse, flatResponse) => {
|
|
487
|
+
currentRawResponse = rawResponse;
|
|
488
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
489
|
+
};
|
|
490
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
491
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
492
|
+
return {
|
|
493
|
+
flatResponse,
|
|
494
|
+
rawResponse: {
|
|
495
|
+
statusCode: currentRawResponse.status,
|
|
496
|
+
body: currentRawResponse.parsedBody,
|
|
497
|
+
headers: currentRawResponse.headers.toJSON()
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
});
|
|
501
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, testFailoverCleanupOperationSpec);
|
|
502
|
+
return new LroEngine(lro, {
|
|
503
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
504
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* The operation to cleanup test failover of a recovery plan.
|
|
510
|
+
* @param recoveryPlanName Recovery plan name.
|
|
511
|
+
* @param input Recovery plan test failover cleanup input.
|
|
512
|
+
* @param options The options parameters.
|
|
513
|
+
*/
|
|
514
|
+
beginTestFailoverCleanupAndWait(recoveryPlanName, input, options) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const poller = yield this.beginTestFailoverCleanup(recoveryPlanName, input, options);
|
|
517
|
+
return poller.pollUntilDone();
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* The operation to start the unplanned failover of a recovery plan.
|
|
522
|
+
* @param recoveryPlanName Recovery plan name.
|
|
523
|
+
* @param input Recovery plan unplanned failover input.
|
|
524
|
+
* @param options The options parameters.
|
|
525
|
+
*/
|
|
526
|
+
beginUnplannedFailover(recoveryPlanName, input, options) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
529
|
+
return this.client.sendOperationRequest(args, spec);
|
|
530
|
+
});
|
|
531
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
var _a;
|
|
533
|
+
let currentRawResponse = undefined;
|
|
534
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
535
|
+
const callback = (rawResponse, flatResponse) => {
|
|
536
|
+
currentRawResponse = rawResponse;
|
|
537
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
538
|
+
};
|
|
539
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
540
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
541
|
+
return {
|
|
542
|
+
flatResponse,
|
|
543
|
+
rawResponse: {
|
|
544
|
+
statusCode: currentRawResponse.status,
|
|
545
|
+
body: currentRawResponse.parsedBody,
|
|
546
|
+
headers: currentRawResponse.headers.toJSON()
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
});
|
|
550
|
+
const lro = new LroImpl(sendOperation, { recoveryPlanName, input, options }, unplannedFailoverOperationSpec);
|
|
551
|
+
return new LroEngine(lro, {
|
|
552
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
553
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* The operation to start the unplanned failover of a recovery plan.
|
|
559
|
+
* @param recoveryPlanName Recovery plan name.
|
|
560
|
+
* @param input Recovery plan unplanned failover input.
|
|
561
|
+
* @param options The options parameters.
|
|
562
|
+
*/
|
|
563
|
+
beginUnplannedFailoverAndWait(recoveryPlanName, input, options) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
const poller = yield this.beginUnplannedFailover(recoveryPlanName, input, options);
|
|
566
|
+
return poller.pollUntilDone();
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* ListNext
|
|
571
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
572
|
+
* @param options The options parameters.
|
|
573
|
+
*/
|
|
574
|
+
_listNext(nextLink, options) {
|
|
575
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
// Operation Specifications
|
|
579
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
580
|
+
const listOperationSpec = {
|
|
581
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans",
|
|
582
|
+
httpMethod: "GET",
|
|
583
|
+
responses: {
|
|
584
|
+
200: {
|
|
585
|
+
bodyMapper: Mappers.RecoveryPlanCollection
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
queryParameters: [Parameters.apiVersion],
|
|
589
|
+
urlParameters: [
|
|
590
|
+
Parameters.$host,
|
|
591
|
+
Parameters.resourceGroupName,
|
|
592
|
+
Parameters.subscriptionId,
|
|
593
|
+
Parameters.resourceName
|
|
594
|
+
],
|
|
595
|
+
headerParameters: [Parameters.accept],
|
|
596
|
+
serializer
|
|
597
|
+
};
|
|
598
|
+
const getOperationSpec = {
|
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
600
|
+
httpMethod: "GET",
|
|
601
|
+
responses: {
|
|
602
|
+
200: {
|
|
603
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
queryParameters: [Parameters.apiVersion],
|
|
607
|
+
urlParameters: [
|
|
608
|
+
Parameters.$host,
|
|
609
|
+
Parameters.resourceGroupName,
|
|
610
|
+
Parameters.subscriptionId,
|
|
611
|
+
Parameters.resourceName,
|
|
612
|
+
Parameters.recoveryPlanName
|
|
613
|
+
],
|
|
614
|
+
headerParameters: [Parameters.accept],
|
|
615
|
+
serializer
|
|
616
|
+
};
|
|
617
|
+
const createOperationSpec = {
|
|
618
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
619
|
+
httpMethod: "PUT",
|
|
620
|
+
responses: {
|
|
621
|
+
200: {
|
|
622
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
623
|
+
},
|
|
624
|
+
201: {
|
|
625
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
626
|
+
},
|
|
627
|
+
202: {
|
|
628
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
629
|
+
},
|
|
630
|
+
204: {
|
|
631
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
requestBody: Parameters.input10,
|
|
635
|
+
queryParameters: [Parameters.apiVersion],
|
|
636
|
+
urlParameters: [
|
|
637
|
+
Parameters.$host,
|
|
638
|
+
Parameters.resourceGroupName,
|
|
639
|
+
Parameters.subscriptionId,
|
|
640
|
+
Parameters.resourceName,
|
|
641
|
+
Parameters.recoveryPlanName
|
|
642
|
+
],
|
|
643
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
644
|
+
mediaType: "json",
|
|
645
|
+
serializer
|
|
646
|
+
};
|
|
647
|
+
const deleteOperationSpec = {
|
|
648
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
649
|
+
httpMethod: "DELETE",
|
|
650
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
651
|
+
queryParameters: [Parameters.apiVersion],
|
|
652
|
+
urlParameters: [
|
|
653
|
+
Parameters.$host,
|
|
654
|
+
Parameters.resourceGroupName,
|
|
655
|
+
Parameters.subscriptionId,
|
|
656
|
+
Parameters.resourceName,
|
|
657
|
+
Parameters.recoveryPlanName
|
|
658
|
+
],
|
|
659
|
+
serializer
|
|
660
|
+
};
|
|
661
|
+
const updateOperationSpec = {
|
|
662
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
663
|
+
httpMethod: "PATCH",
|
|
664
|
+
responses: {
|
|
665
|
+
200: {
|
|
666
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
667
|
+
},
|
|
668
|
+
201: {
|
|
669
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
670
|
+
},
|
|
671
|
+
202: {
|
|
672
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
673
|
+
},
|
|
674
|
+
204: {
|
|
675
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
requestBody: Parameters.input11,
|
|
679
|
+
queryParameters: [Parameters.apiVersion],
|
|
680
|
+
urlParameters: [
|
|
681
|
+
Parameters.$host,
|
|
682
|
+
Parameters.resourceGroupName,
|
|
683
|
+
Parameters.subscriptionId,
|
|
684
|
+
Parameters.resourceName,
|
|
685
|
+
Parameters.recoveryPlanName
|
|
686
|
+
],
|
|
687
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
688
|
+
mediaType: "json",
|
|
689
|
+
serializer
|
|
690
|
+
};
|
|
691
|
+
const failoverCancelOperationSpec = {
|
|
692
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel",
|
|
693
|
+
httpMethod: "POST",
|
|
694
|
+
responses: {
|
|
695
|
+
200: {
|
|
696
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
697
|
+
},
|
|
698
|
+
201: {
|
|
699
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
700
|
+
},
|
|
701
|
+
202: {
|
|
702
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
703
|
+
},
|
|
704
|
+
204: {
|
|
705
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
queryParameters: [Parameters.apiVersion],
|
|
709
|
+
urlParameters: [
|
|
710
|
+
Parameters.$host,
|
|
711
|
+
Parameters.resourceGroupName,
|
|
712
|
+
Parameters.subscriptionId,
|
|
713
|
+
Parameters.resourceName,
|
|
714
|
+
Parameters.recoveryPlanName
|
|
715
|
+
],
|
|
716
|
+
headerParameters: [Parameters.accept],
|
|
717
|
+
serializer
|
|
718
|
+
};
|
|
719
|
+
const failoverCommitOperationSpec = {
|
|
720
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit",
|
|
721
|
+
httpMethod: "POST",
|
|
722
|
+
responses: {
|
|
723
|
+
200: {
|
|
724
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
725
|
+
},
|
|
726
|
+
201: {
|
|
727
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
728
|
+
},
|
|
729
|
+
202: {
|
|
730
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
731
|
+
},
|
|
732
|
+
204: {
|
|
733
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
queryParameters: [Parameters.apiVersion],
|
|
737
|
+
urlParameters: [
|
|
738
|
+
Parameters.$host,
|
|
739
|
+
Parameters.resourceGroupName,
|
|
740
|
+
Parameters.subscriptionId,
|
|
741
|
+
Parameters.resourceName,
|
|
742
|
+
Parameters.recoveryPlanName
|
|
743
|
+
],
|
|
744
|
+
headerParameters: [Parameters.accept],
|
|
745
|
+
serializer
|
|
746
|
+
};
|
|
747
|
+
const plannedFailoverOperationSpec = {
|
|
748
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover",
|
|
749
|
+
httpMethod: "POST",
|
|
750
|
+
responses: {
|
|
751
|
+
200: {
|
|
752
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
753
|
+
},
|
|
754
|
+
201: {
|
|
755
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
756
|
+
},
|
|
757
|
+
202: {
|
|
758
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
759
|
+
},
|
|
760
|
+
204: {
|
|
761
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
requestBody: Parameters.input12,
|
|
765
|
+
queryParameters: [Parameters.apiVersion],
|
|
766
|
+
urlParameters: [
|
|
767
|
+
Parameters.$host,
|
|
768
|
+
Parameters.resourceGroupName,
|
|
769
|
+
Parameters.subscriptionId,
|
|
770
|
+
Parameters.resourceName,
|
|
771
|
+
Parameters.recoveryPlanName
|
|
772
|
+
],
|
|
773
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
774
|
+
mediaType: "json",
|
|
775
|
+
serializer
|
|
776
|
+
};
|
|
777
|
+
const reprotectOperationSpec = {
|
|
778
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect",
|
|
779
|
+
httpMethod: "POST",
|
|
780
|
+
responses: {
|
|
781
|
+
200: {
|
|
782
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
783
|
+
},
|
|
784
|
+
201: {
|
|
785
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
786
|
+
},
|
|
787
|
+
202: {
|
|
788
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
789
|
+
},
|
|
790
|
+
204: {
|
|
791
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
queryParameters: [Parameters.apiVersion],
|
|
795
|
+
urlParameters: [
|
|
796
|
+
Parameters.$host,
|
|
797
|
+
Parameters.resourceGroupName,
|
|
798
|
+
Parameters.subscriptionId,
|
|
799
|
+
Parameters.resourceName,
|
|
800
|
+
Parameters.recoveryPlanName
|
|
801
|
+
],
|
|
802
|
+
headerParameters: [Parameters.accept],
|
|
803
|
+
serializer
|
|
804
|
+
};
|
|
805
|
+
const testFailoverOperationSpec = {
|
|
806
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover",
|
|
807
|
+
httpMethod: "POST",
|
|
808
|
+
responses: {
|
|
809
|
+
200: {
|
|
810
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
811
|
+
},
|
|
812
|
+
201: {
|
|
813
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
814
|
+
},
|
|
815
|
+
202: {
|
|
816
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
817
|
+
},
|
|
818
|
+
204: {
|
|
819
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
requestBody: Parameters.input13,
|
|
823
|
+
queryParameters: [Parameters.apiVersion],
|
|
824
|
+
urlParameters: [
|
|
825
|
+
Parameters.$host,
|
|
826
|
+
Parameters.resourceGroupName,
|
|
827
|
+
Parameters.subscriptionId,
|
|
828
|
+
Parameters.resourceName,
|
|
829
|
+
Parameters.recoveryPlanName
|
|
830
|
+
],
|
|
831
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
832
|
+
mediaType: "json",
|
|
833
|
+
serializer
|
|
834
|
+
};
|
|
835
|
+
const testFailoverCleanupOperationSpec = {
|
|
836
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup",
|
|
837
|
+
httpMethod: "POST",
|
|
838
|
+
responses: {
|
|
839
|
+
200: {
|
|
840
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
841
|
+
},
|
|
842
|
+
201: {
|
|
843
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
844
|
+
},
|
|
845
|
+
202: {
|
|
846
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
847
|
+
},
|
|
848
|
+
204: {
|
|
849
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
requestBody: Parameters.input14,
|
|
853
|
+
queryParameters: [Parameters.apiVersion],
|
|
854
|
+
urlParameters: [
|
|
855
|
+
Parameters.$host,
|
|
856
|
+
Parameters.resourceGroupName,
|
|
857
|
+
Parameters.subscriptionId,
|
|
858
|
+
Parameters.resourceName,
|
|
859
|
+
Parameters.recoveryPlanName
|
|
860
|
+
],
|
|
861
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
862
|
+
mediaType: "json",
|
|
863
|
+
serializer
|
|
864
|
+
};
|
|
865
|
+
const unplannedFailoverOperationSpec = {
|
|
866
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover",
|
|
867
|
+
httpMethod: "POST",
|
|
868
|
+
responses: {
|
|
869
|
+
200: {
|
|
870
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
871
|
+
},
|
|
872
|
+
201: {
|
|
873
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
874
|
+
},
|
|
875
|
+
202: {
|
|
876
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
877
|
+
},
|
|
878
|
+
204: {
|
|
879
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
requestBody: Parameters.input15,
|
|
883
|
+
queryParameters: [Parameters.apiVersion],
|
|
884
|
+
urlParameters: [
|
|
885
|
+
Parameters.$host,
|
|
886
|
+
Parameters.resourceGroupName,
|
|
887
|
+
Parameters.subscriptionId,
|
|
888
|
+
Parameters.resourceName,
|
|
889
|
+
Parameters.recoveryPlanName
|
|
890
|
+
],
|
|
891
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
892
|
+
mediaType: "json",
|
|
893
|
+
serializer
|
|
894
|
+
};
|
|
895
|
+
const listNextOperationSpec = {
|
|
896
|
+
path: "{nextLink}",
|
|
897
|
+
httpMethod: "GET",
|
|
898
|
+
responses: {
|
|
899
|
+
200: {
|
|
900
|
+
bodyMapper: Mappers.RecoveryPlanCollection
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
queryParameters: [Parameters.apiVersion],
|
|
904
|
+
urlParameters: [
|
|
905
|
+
Parameters.$host,
|
|
906
|
+
Parameters.resourceGroupName,
|
|
907
|
+
Parameters.subscriptionId,
|
|
908
|
+
Parameters.nextLink,
|
|
909
|
+
Parameters.resourceName
|
|
910
|
+
],
|
|
911
|
+
headerParameters: [Parameters.accept],
|
|
912
|
+
serializer
|
|
913
|
+
};
|
|
914
|
+
//# sourceMappingURL=replicationRecoveryPlans.js.map
|