@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
|
@@ -1,748 +1,1300 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ReplicationRecoveryPlans } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { SiteRecoveryManagementClient } from "../siteRecoveryManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
RecoveryPlan,
|
|
19
|
+
ReplicationRecoveryPlansListNextOptionalParams,
|
|
20
|
+
ReplicationRecoveryPlansListOptionalParams,
|
|
21
|
+
ReplicationRecoveryPlansListResponse,
|
|
22
|
+
ReplicationRecoveryPlansGetOptionalParams,
|
|
23
|
+
ReplicationRecoveryPlansGetResponse,
|
|
24
|
+
CreateRecoveryPlanInput,
|
|
25
|
+
ReplicationRecoveryPlansCreateOptionalParams,
|
|
26
|
+
ReplicationRecoveryPlansCreateResponse,
|
|
27
|
+
ReplicationRecoveryPlansDeleteOptionalParams,
|
|
28
|
+
UpdateRecoveryPlanInput,
|
|
29
|
+
ReplicationRecoveryPlansUpdateOptionalParams,
|
|
30
|
+
ReplicationRecoveryPlansUpdateResponse,
|
|
31
|
+
ReplicationRecoveryPlansFailoverCancelOptionalParams,
|
|
32
|
+
ReplicationRecoveryPlansFailoverCancelResponse,
|
|
33
|
+
ReplicationRecoveryPlansFailoverCommitOptionalParams,
|
|
34
|
+
ReplicationRecoveryPlansFailoverCommitResponse,
|
|
35
|
+
RecoveryPlanPlannedFailoverInput,
|
|
36
|
+
ReplicationRecoveryPlansPlannedFailoverOptionalParams,
|
|
37
|
+
ReplicationRecoveryPlansPlannedFailoverResponse,
|
|
38
|
+
ReplicationRecoveryPlansReprotectOptionalParams,
|
|
39
|
+
ReplicationRecoveryPlansReprotectResponse,
|
|
40
|
+
RecoveryPlanTestFailoverInput,
|
|
41
|
+
ReplicationRecoveryPlansTestFailoverOptionalParams,
|
|
42
|
+
ReplicationRecoveryPlansTestFailoverResponse,
|
|
43
|
+
RecoveryPlanTestFailoverCleanupInput,
|
|
44
|
+
ReplicationRecoveryPlansTestFailoverCleanupOptionalParams,
|
|
45
|
+
ReplicationRecoveryPlansTestFailoverCleanupResponse,
|
|
46
|
+
RecoveryPlanUnplannedFailoverInput,
|
|
47
|
+
ReplicationRecoveryPlansUnplannedFailoverOptionalParams,
|
|
48
|
+
ReplicationRecoveryPlansUnplannedFailoverResponse,
|
|
49
|
+
ReplicationRecoveryPlansListNextResponse
|
|
50
|
+
} from "../models";
|
|
17
51
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
52
|
+
/// <reference lib="esnext.asynciterable" />
|
|
53
|
+
/** Class containing ReplicationRecoveryPlans operations. */
|
|
54
|
+
export class ReplicationRecoveryPlansImpl implements ReplicationRecoveryPlans {
|
|
55
|
+
private readonly client: SiteRecoveryManagementClient;
|
|
21
56
|
|
|
22
57
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
58
|
+
* Initialize a new instance of the class ReplicationRecoveryPlans class.
|
|
59
|
+
* @param client Reference to the service client
|
|
25
60
|
*/
|
|
26
|
-
constructor(client:
|
|
61
|
+
constructor(client: SiteRecoveryManagementClient) {
|
|
27
62
|
this.client = client;
|
|
28
63
|
}
|
|
29
64
|
|
|
30
65
|
/**
|
|
31
66
|
* Lists the recovery plans in the vault.
|
|
32
|
-
* @
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.ReplicationRecoveryPlansListResponse>
|
|
67
|
+
* @param options The options parameters.
|
|
35
68
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RecoveryPlanCollection>): void;
|
|
46
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RecoveryPlanCollection>, callback?: msRest.ServiceCallback<Models.RecoveryPlanCollection>): Promise<Models.ReplicationRecoveryPlansListResponse> {
|
|
47
|
-
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
options
|
|
69
|
+
public list(
|
|
70
|
+
options?: ReplicationRecoveryPlansListOptionalParams
|
|
71
|
+
): PagedAsyncIterableIterator<RecoveryPlan> {
|
|
72
|
+
const iter = this.listPagingAll(options);
|
|
73
|
+
return {
|
|
74
|
+
next() {
|
|
75
|
+
return iter.next();
|
|
50
76
|
},
|
|
51
|
-
|
|
52
|
-
|
|
77
|
+
[Symbol.asyncIterator]() {
|
|
78
|
+
return this;
|
|
79
|
+
},
|
|
80
|
+
byPage: () => {
|
|
81
|
+
return this.listPagingPage(options);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listPagingPage(
|
|
87
|
+
options?: ReplicationRecoveryPlansListOptionalParams
|
|
88
|
+
): AsyncIterableIterator<RecoveryPlan[]> {
|
|
89
|
+
let result = await this._list(options);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
let continuationToken = result.nextLink;
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listNext(continuationToken, options);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
yield result.value || [];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private async *listPagingAll(
|
|
100
|
+
options?: ReplicationRecoveryPlansListOptionalParams
|
|
101
|
+
): AsyncIterableIterator<RecoveryPlan> {
|
|
102
|
+
for await (const page of this.listPagingPage(options)) {
|
|
103
|
+
yield* page;
|
|
104
|
+
}
|
|
53
105
|
}
|
|
54
106
|
|
|
55
107
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @
|
|
58
|
-
* @param recoveryPlanName Name of the recovery plan.
|
|
59
|
-
* @param [options] The optional parameters
|
|
60
|
-
* @returns Promise<Models.ReplicationRecoveryPlansGetResponse>
|
|
61
|
-
*/
|
|
62
|
-
get(recoveryPlanName: string, options?: msRest.RequestOptionsBase): Promise<Models.ReplicationRecoveryPlansGetResponse>;
|
|
63
|
-
/**
|
|
64
|
-
* @param recoveryPlanName Name of the recovery plan.
|
|
65
|
-
* @param callback The callback
|
|
108
|
+
* Lists the recovery plans in the vault.
|
|
109
|
+
* @param options The options parameters.
|
|
66
110
|
*/
|
|
67
|
-
|
|
111
|
+
private _list(
|
|
112
|
+
options?: ReplicationRecoveryPlansListOptionalParams
|
|
113
|
+
): Promise<ReplicationRecoveryPlansListResponse> {
|
|
114
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
115
|
+
}
|
|
116
|
+
|
|
68
117
|
/**
|
|
118
|
+
* Gets the details of the recovery plan.
|
|
69
119
|
* @param recoveryPlanName Name of the recovery plan.
|
|
70
|
-
* @param options The
|
|
71
|
-
* @param callback The callback
|
|
120
|
+
* @param options The options parameters.
|
|
72
121
|
*/
|
|
73
|
-
get(
|
|
74
|
-
|
|
122
|
+
get(
|
|
123
|
+
recoveryPlanName: string,
|
|
124
|
+
options?: ReplicationRecoveryPlansGetOptionalParams
|
|
125
|
+
): Promise<ReplicationRecoveryPlansGetResponse> {
|
|
75
126
|
return this.client.sendOperationRequest(
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
getOperationSpec,
|
|
81
|
-
callback) as Promise<Models.ReplicationRecoveryPlansGetResponse>;
|
|
127
|
+
{ recoveryPlanName, options },
|
|
128
|
+
getOperationSpec
|
|
129
|
+
);
|
|
82
130
|
}
|
|
83
131
|
|
|
84
132
|
/**
|
|
85
133
|
* The operation to create a recovery plan.
|
|
86
|
-
* @summary Creates a recovery plan with the given details.
|
|
87
134
|
* @param recoveryPlanName Recovery plan name.
|
|
88
135
|
* @param input Recovery Plan creation input.
|
|
89
|
-
* @param
|
|
90
|
-
* @returns Promise<Models.ReplicationRecoveryPlansCreateResponse>
|
|
136
|
+
* @param options The options parameters.
|
|
91
137
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
138
|
+
async beginCreate(
|
|
139
|
+
recoveryPlanName: string,
|
|
140
|
+
input: CreateRecoveryPlanInput,
|
|
141
|
+
options?: ReplicationRecoveryPlansCreateOptionalParams
|
|
142
|
+
): Promise<
|
|
143
|
+
PollerLike<
|
|
144
|
+
PollOperationState<ReplicationRecoveryPlansCreateResponse>,
|
|
145
|
+
ReplicationRecoveryPlansCreateResponse
|
|
146
|
+
>
|
|
147
|
+
> {
|
|
148
|
+
const directSendOperation = async (
|
|
149
|
+
args: coreClient.OperationArguments,
|
|
150
|
+
spec: coreClient.OperationSpec
|
|
151
|
+
): Promise<ReplicationRecoveryPlansCreateResponse> => {
|
|
152
|
+
return this.client.sendOperationRequest(args, spec);
|
|
153
|
+
};
|
|
154
|
+
const sendOperation = async (
|
|
155
|
+
args: coreClient.OperationArguments,
|
|
156
|
+
spec: coreClient.OperationSpec
|
|
157
|
+
) => {
|
|
158
|
+
let currentRawResponse:
|
|
159
|
+
| coreClient.FullOperationResponse
|
|
160
|
+
| undefined = undefined;
|
|
161
|
+
const providedCallback = args.options?.onResponse;
|
|
162
|
+
const callback: coreClient.RawResponseCallback = (
|
|
163
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
164
|
+
flatResponse: unknown
|
|
165
|
+
) => {
|
|
166
|
+
currentRawResponse = rawResponse;
|
|
167
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
168
|
+
};
|
|
169
|
+
const updatedArgs = {
|
|
170
|
+
...args,
|
|
171
|
+
options: {
|
|
172
|
+
...args.options,
|
|
173
|
+
onResponse: callback
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
177
|
+
return {
|
|
178
|
+
flatResponse,
|
|
179
|
+
rawResponse: {
|
|
180
|
+
statusCode: currentRawResponse!.status,
|
|
181
|
+
body: currentRawResponse!.parsedBody,
|
|
182
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const lro = new LroImpl(
|
|
188
|
+
sendOperation,
|
|
189
|
+
{ recoveryPlanName, input, options },
|
|
190
|
+
createOperationSpec
|
|
191
|
+
);
|
|
192
|
+
return new LroEngine(lro, {
|
|
193
|
+
resumeFrom: options?.resumeFrom,
|
|
194
|
+
intervalInMs: options?.updateIntervalInMs
|
|
195
|
+
});
|
|
95
196
|
}
|
|
96
197
|
|
|
97
198
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @summary Deletes the specified recovery plan.
|
|
199
|
+
* The operation to create a recovery plan.
|
|
100
200
|
* @param recoveryPlanName Recovery plan name.
|
|
101
|
-
* @param
|
|
102
|
-
* @
|
|
201
|
+
* @param input Recovery Plan creation input.
|
|
202
|
+
* @param options The options parameters.
|
|
103
203
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
204
|
+
async beginCreateAndWait(
|
|
205
|
+
recoveryPlanName: string,
|
|
206
|
+
input: CreateRecoveryPlanInput,
|
|
207
|
+
options?: ReplicationRecoveryPlansCreateOptionalParams
|
|
208
|
+
): Promise<ReplicationRecoveryPlansCreateResponse> {
|
|
209
|
+
const poller = await this.beginCreate(recoveryPlanName, input, options);
|
|
210
|
+
return poller.pollUntilDone();
|
|
107
211
|
}
|
|
108
212
|
|
|
109
213
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @summary Updates the given recovery plan.
|
|
214
|
+
* Delete a recovery plan.
|
|
112
215
|
* @param recoveryPlanName Recovery plan name.
|
|
113
|
-
* @param
|
|
114
|
-
* @param [options] The optional parameters
|
|
115
|
-
* @returns Promise<Models.ReplicationRecoveryPlansUpdateResponse>
|
|
216
|
+
* @param options The options parameters.
|
|
116
217
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
218
|
+
async beginDelete(
|
|
219
|
+
recoveryPlanName: string,
|
|
220
|
+
options?: ReplicationRecoveryPlansDeleteOptionalParams
|
|
221
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
222
|
+
const directSendOperation = async (
|
|
223
|
+
args: coreClient.OperationArguments,
|
|
224
|
+
spec: coreClient.OperationSpec
|
|
225
|
+
): Promise<void> => {
|
|
226
|
+
return this.client.sendOperationRequest(args, spec);
|
|
227
|
+
};
|
|
228
|
+
const sendOperation = async (
|
|
229
|
+
args: coreClient.OperationArguments,
|
|
230
|
+
spec: coreClient.OperationSpec
|
|
231
|
+
) => {
|
|
232
|
+
let currentRawResponse:
|
|
233
|
+
| coreClient.FullOperationResponse
|
|
234
|
+
| undefined = undefined;
|
|
235
|
+
const providedCallback = args.options?.onResponse;
|
|
236
|
+
const callback: coreClient.RawResponseCallback = (
|
|
237
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
238
|
+
flatResponse: unknown
|
|
239
|
+
) => {
|
|
240
|
+
currentRawResponse = rawResponse;
|
|
241
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
242
|
+
};
|
|
243
|
+
const updatedArgs = {
|
|
244
|
+
...args,
|
|
245
|
+
options: {
|
|
246
|
+
...args.options,
|
|
247
|
+
onResponse: callback
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
251
|
+
return {
|
|
252
|
+
flatResponse,
|
|
253
|
+
rawResponse: {
|
|
254
|
+
statusCode: currentRawResponse!.status,
|
|
255
|
+
body: currentRawResponse!.parsedBody,
|
|
256
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
const lro = new LroImpl(
|
|
262
|
+
sendOperation,
|
|
263
|
+
{ recoveryPlanName, options },
|
|
264
|
+
deleteOperationSpec
|
|
265
|
+
);
|
|
266
|
+
return new LroEngine(lro, {
|
|
267
|
+
resumeFrom: options?.resumeFrom,
|
|
268
|
+
intervalInMs: options?.updateIntervalInMs
|
|
269
|
+
});
|
|
120
270
|
}
|
|
121
271
|
|
|
122
272
|
/**
|
|
123
|
-
*
|
|
124
|
-
* @summary Execute commit failover of the recovery plan.
|
|
273
|
+
* Delete a recovery plan.
|
|
125
274
|
* @param recoveryPlanName Recovery plan name.
|
|
126
|
-
* @param
|
|
127
|
-
* @returns Promise<Models.ReplicationRecoveryPlansFailoverCommitResponse>
|
|
275
|
+
* @param options The options parameters.
|
|
128
276
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
277
|
+
async beginDeleteAndWait(
|
|
278
|
+
recoveryPlanName: string,
|
|
279
|
+
options?: ReplicationRecoveryPlansDeleteOptionalParams
|
|
280
|
+
): Promise<void> {
|
|
281
|
+
const poller = await this.beginDelete(recoveryPlanName, options);
|
|
282
|
+
return poller.pollUntilDone();
|
|
132
283
|
}
|
|
133
284
|
|
|
134
285
|
/**
|
|
135
|
-
* The operation to
|
|
136
|
-
* @summary Execute planned failover of the recovery plan.
|
|
286
|
+
* The operation to update a recovery plan.
|
|
137
287
|
* @param recoveryPlanName Recovery plan name.
|
|
138
|
-
* @param input
|
|
139
|
-
* @param
|
|
140
|
-
* @returns Promise<Models.ReplicationRecoveryPlansPlannedFailoverResponse>
|
|
288
|
+
* @param input Update recovery plan input.
|
|
289
|
+
* @param options The options parameters.
|
|
141
290
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
291
|
+
async beginUpdate(
|
|
292
|
+
recoveryPlanName: string,
|
|
293
|
+
input: UpdateRecoveryPlanInput,
|
|
294
|
+
options?: ReplicationRecoveryPlansUpdateOptionalParams
|
|
295
|
+
): Promise<
|
|
296
|
+
PollerLike<
|
|
297
|
+
PollOperationState<ReplicationRecoveryPlansUpdateResponse>,
|
|
298
|
+
ReplicationRecoveryPlansUpdateResponse
|
|
299
|
+
>
|
|
300
|
+
> {
|
|
301
|
+
const directSendOperation = async (
|
|
302
|
+
args: coreClient.OperationArguments,
|
|
303
|
+
spec: coreClient.OperationSpec
|
|
304
|
+
): Promise<ReplicationRecoveryPlansUpdateResponse> => {
|
|
305
|
+
return this.client.sendOperationRequest(args, spec);
|
|
306
|
+
};
|
|
307
|
+
const sendOperation = async (
|
|
308
|
+
args: coreClient.OperationArguments,
|
|
309
|
+
spec: coreClient.OperationSpec
|
|
310
|
+
) => {
|
|
311
|
+
let currentRawResponse:
|
|
312
|
+
| coreClient.FullOperationResponse
|
|
313
|
+
| undefined = undefined;
|
|
314
|
+
const providedCallback = args.options?.onResponse;
|
|
315
|
+
const callback: coreClient.RawResponseCallback = (
|
|
316
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
317
|
+
flatResponse: unknown
|
|
318
|
+
) => {
|
|
319
|
+
currentRawResponse = rawResponse;
|
|
320
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
321
|
+
};
|
|
322
|
+
const updatedArgs = {
|
|
323
|
+
...args,
|
|
324
|
+
options: {
|
|
325
|
+
...args.options,
|
|
326
|
+
onResponse: callback
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
330
|
+
return {
|
|
331
|
+
flatResponse,
|
|
332
|
+
rawResponse: {
|
|
333
|
+
statusCode: currentRawResponse!.status,
|
|
334
|
+
body: currentRawResponse!.parsedBody,
|
|
335
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
const lro = new LroImpl(
|
|
341
|
+
sendOperation,
|
|
342
|
+
{ recoveryPlanName, input, options },
|
|
343
|
+
updateOperationSpec
|
|
344
|
+
);
|
|
345
|
+
return new LroEngine(lro, {
|
|
346
|
+
resumeFrom: options?.resumeFrom,
|
|
347
|
+
intervalInMs: options?.updateIntervalInMs
|
|
348
|
+
});
|
|
145
349
|
}
|
|
146
350
|
|
|
147
351
|
/**
|
|
148
|
-
* The operation to
|
|
149
|
-
* @summary Execute reprotect of the recovery plan.
|
|
352
|
+
* The operation to update a recovery plan.
|
|
150
353
|
* @param recoveryPlanName Recovery plan name.
|
|
151
|
-
* @param
|
|
152
|
-
* @
|
|
354
|
+
* @param input Update recovery plan input.
|
|
355
|
+
* @param options The options parameters.
|
|
153
356
|
*/
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
357
|
+
async beginUpdateAndWait(
|
|
358
|
+
recoveryPlanName: string,
|
|
359
|
+
input: UpdateRecoveryPlanInput,
|
|
360
|
+
options?: ReplicationRecoveryPlansUpdateOptionalParams
|
|
361
|
+
): Promise<ReplicationRecoveryPlansUpdateResponse> {
|
|
362
|
+
const poller = await this.beginUpdate(recoveryPlanName, input, options);
|
|
363
|
+
return poller.pollUntilDone();
|
|
157
364
|
}
|
|
158
365
|
|
|
159
366
|
/**
|
|
160
|
-
* The operation to
|
|
161
|
-
* @summary Execute test failover of the recovery plan.
|
|
367
|
+
* The operation to cancel the failover of a recovery plan.
|
|
162
368
|
* @param recoveryPlanName Recovery plan name.
|
|
163
|
-
* @param
|
|
164
|
-
* @param [options] The optional parameters
|
|
165
|
-
* @returns Promise<Models.ReplicationRecoveryPlansTestFailoverResponse>
|
|
369
|
+
* @param options The options parameters.
|
|
166
370
|
*/
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
371
|
+
async beginFailoverCancel(
|
|
372
|
+
recoveryPlanName: string,
|
|
373
|
+
options?: ReplicationRecoveryPlansFailoverCancelOptionalParams
|
|
374
|
+
): Promise<
|
|
375
|
+
PollerLike<
|
|
376
|
+
PollOperationState<ReplicationRecoveryPlansFailoverCancelResponse>,
|
|
377
|
+
ReplicationRecoveryPlansFailoverCancelResponse
|
|
378
|
+
>
|
|
379
|
+
> {
|
|
380
|
+
const directSendOperation = async (
|
|
381
|
+
args: coreClient.OperationArguments,
|
|
382
|
+
spec: coreClient.OperationSpec
|
|
383
|
+
): Promise<ReplicationRecoveryPlansFailoverCancelResponse> => {
|
|
384
|
+
return this.client.sendOperationRequest(args, spec);
|
|
385
|
+
};
|
|
386
|
+
const sendOperation = async (
|
|
387
|
+
args: coreClient.OperationArguments,
|
|
388
|
+
spec: coreClient.OperationSpec
|
|
389
|
+
) => {
|
|
390
|
+
let currentRawResponse:
|
|
391
|
+
| coreClient.FullOperationResponse
|
|
392
|
+
| undefined = undefined;
|
|
393
|
+
const providedCallback = args.options?.onResponse;
|
|
394
|
+
const callback: coreClient.RawResponseCallback = (
|
|
395
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
396
|
+
flatResponse: unknown
|
|
397
|
+
) => {
|
|
398
|
+
currentRawResponse = rawResponse;
|
|
399
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
400
|
+
};
|
|
401
|
+
const updatedArgs = {
|
|
402
|
+
...args,
|
|
403
|
+
options: {
|
|
404
|
+
...args.options,
|
|
405
|
+
onResponse: callback
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
409
|
+
return {
|
|
410
|
+
flatResponse,
|
|
411
|
+
rawResponse: {
|
|
412
|
+
statusCode: currentRawResponse!.status,
|
|
413
|
+
body: currentRawResponse!.parsedBody,
|
|
414
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
const lro = new LroImpl(
|
|
420
|
+
sendOperation,
|
|
421
|
+
{ recoveryPlanName, options },
|
|
422
|
+
failoverCancelOperationSpec
|
|
423
|
+
);
|
|
424
|
+
return new LroEngine(lro, {
|
|
425
|
+
resumeFrom: options?.resumeFrom,
|
|
426
|
+
intervalInMs: options?.updateIntervalInMs
|
|
427
|
+
});
|
|
170
428
|
}
|
|
171
429
|
|
|
172
430
|
/**
|
|
173
|
-
* The operation to
|
|
174
|
-
* @summary Execute test failover cleanup of the recovery plan.
|
|
431
|
+
* The operation to cancel the failover of a recovery plan.
|
|
175
432
|
* @param recoveryPlanName Recovery plan name.
|
|
176
|
-
* @param
|
|
177
|
-
* @param [options] The optional parameters
|
|
178
|
-
* @returns Promise<Models.ReplicationRecoveryPlansTestFailoverCleanupResponse>
|
|
433
|
+
* @param options The options parameters.
|
|
179
434
|
*/
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
435
|
+
async beginFailoverCancelAndWait(
|
|
436
|
+
recoveryPlanName: string,
|
|
437
|
+
options?: ReplicationRecoveryPlansFailoverCancelOptionalParams
|
|
438
|
+
): Promise<ReplicationRecoveryPlansFailoverCancelResponse> {
|
|
439
|
+
const poller = await this.beginFailoverCancel(recoveryPlanName, options);
|
|
440
|
+
return poller.pollUntilDone();
|
|
183
441
|
}
|
|
184
442
|
|
|
185
443
|
/**
|
|
186
|
-
* The operation to
|
|
187
|
-
* @summary Execute unplanned failover of the recovery plan.
|
|
444
|
+
* The operation to commit the failover of a recovery plan.
|
|
188
445
|
* @param recoveryPlanName Recovery plan name.
|
|
189
|
-
* @param
|
|
190
|
-
* @param [options] The optional parameters
|
|
191
|
-
* @returns Promise<Models.ReplicationRecoveryPlansUnplannedFailoverResponse>
|
|
446
|
+
* @param options The options parameters.
|
|
192
447
|
*/
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
448
|
+
async beginFailoverCommit(
|
|
449
|
+
recoveryPlanName: string,
|
|
450
|
+
options?: ReplicationRecoveryPlansFailoverCommitOptionalParams
|
|
451
|
+
): Promise<
|
|
452
|
+
PollerLike<
|
|
453
|
+
PollOperationState<ReplicationRecoveryPlansFailoverCommitResponse>,
|
|
454
|
+
ReplicationRecoveryPlansFailoverCommitResponse
|
|
455
|
+
>
|
|
456
|
+
> {
|
|
457
|
+
const directSendOperation = async (
|
|
458
|
+
args: coreClient.OperationArguments,
|
|
459
|
+
spec: coreClient.OperationSpec
|
|
460
|
+
): Promise<ReplicationRecoveryPlansFailoverCommitResponse> => {
|
|
461
|
+
return this.client.sendOperationRequest(args, spec);
|
|
462
|
+
};
|
|
463
|
+
const sendOperation = async (
|
|
464
|
+
args: coreClient.OperationArguments,
|
|
465
|
+
spec: coreClient.OperationSpec
|
|
466
|
+
) => {
|
|
467
|
+
let currentRawResponse:
|
|
468
|
+
| coreClient.FullOperationResponse
|
|
469
|
+
| undefined = undefined;
|
|
470
|
+
const providedCallback = args.options?.onResponse;
|
|
471
|
+
const callback: coreClient.RawResponseCallback = (
|
|
472
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
473
|
+
flatResponse: unknown
|
|
474
|
+
) => {
|
|
475
|
+
currentRawResponse = rawResponse;
|
|
476
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
477
|
+
};
|
|
478
|
+
const updatedArgs = {
|
|
479
|
+
...args,
|
|
480
|
+
options: {
|
|
481
|
+
...args.options,
|
|
482
|
+
onResponse: callback
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
486
|
+
return {
|
|
487
|
+
flatResponse,
|
|
488
|
+
rawResponse: {
|
|
489
|
+
statusCode: currentRawResponse!.status,
|
|
490
|
+
body: currentRawResponse!.parsedBody,
|
|
491
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
const lro = new LroImpl(
|
|
497
|
+
sendOperation,
|
|
498
|
+
{ recoveryPlanName, options },
|
|
499
|
+
failoverCommitOperationSpec
|
|
500
|
+
);
|
|
501
|
+
return new LroEngine(lro, {
|
|
502
|
+
resumeFrom: options?.resumeFrom,
|
|
503
|
+
intervalInMs: options?.updateIntervalInMs
|
|
504
|
+
});
|
|
196
505
|
}
|
|
197
506
|
|
|
198
507
|
/**
|
|
199
|
-
* The operation to
|
|
200
|
-
* @summary Creates a recovery plan with the given details.
|
|
508
|
+
* The operation to commit the failover of a recovery plan.
|
|
201
509
|
* @param recoveryPlanName Recovery plan name.
|
|
202
|
-
* @param
|
|
203
|
-
* @param [options] The optional parameters
|
|
204
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
510
|
+
* @param options The options parameters.
|
|
205
511
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
beginCreateOperationSpec,
|
|
214
|
-
options);
|
|
512
|
+
async beginFailoverCommitAndWait(
|
|
513
|
+
recoveryPlanName: string,
|
|
514
|
+
options?: ReplicationRecoveryPlansFailoverCommitOptionalParams
|
|
515
|
+
): Promise<ReplicationRecoveryPlansFailoverCommitResponse> {
|
|
516
|
+
const poller = await this.beginFailoverCommit(recoveryPlanName, options);
|
|
517
|
+
return poller.pollUntilDone();
|
|
215
518
|
}
|
|
216
519
|
|
|
217
520
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary Deletes the specified recovery plan.
|
|
521
|
+
* The operation to start the planned failover of a recovery plan.
|
|
220
522
|
* @param recoveryPlanName Recovery plan name.
|
|
221
|
-
* @param
|
|
222
|
-
* @
|
|
523
|
+
* @param input Failover input.
|
|
524
|
+
* @param options The options parameters.
|
|
223
525
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
526
|
+
async beginPlannedFailover(
|
|
527
|
+
recoveryPlanName: string,
|
|
528
|
+
input: RecoveryPlanPlannedFailoverInput,
|
|
529
|
+
options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams
|
|
530
|
+
): Promise<
|
|
531
|
+
PollerLike<
|
|
532
|
+
PollOperationState<ReplicationRecoveryPlansPlannedFailoverResponse>,
|
|
533
|
+
ReplicationRecoveryPlansPlannedFailoverResponse
|
|
534
|
+
>
|
|
535
|
+
> {
|
|
536
|
+
const directSendOperation = async (
|
|
537
|
+
args: coreClient.OperationArguments,
|
|
538
|
+
spec: coreClient.OperationSpec
|
|
539
|
+
): Promise<ReplicationRecoveryPlansPlannedFailoverResponse> => {
|
|
540
|
+
return this.client.sendOperationRequest(args, spec);
|
|
541
|
+
};
|
|
542
|
+
const sendOperation = async (
|
|
543
|
+
args: coreClient.OperationArguments,
|
|
544
|
+
spec: coreClient.OperationSpec
|
|
545
|
+
) => {
|
|
546
|
+
let currentRawResponse:
|
|
547
|
+
| coreClient.FullOperationResponse
|
|
548
|
+
| undefined = undefined;
|
|
549
|
+
const providedCallback = args.options?.onResponse;
|
|
550
|
+
const callback: coreClient.RawResponseCallback = (
|
|
551
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
552
|
+
flatResponse: unknown
|
|
553
|
+
) => {
|
|
554
|
+
currentRawResponse = rawResponse;
|
|
555
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
556
|
+
};
|
|
557
|
+
const updatedArgs = {
|
|
558
|
+
...args,
|
|
559
|
+
options: {
|
|
560
|
+
...args.options,
|
|
561
|
+
onResponse: callback
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
565
|
+
return {
|
|
566
|
+
flatResponse,
|
|
567
|
+
rawResponse: {
|
|
568
|
+
statusCode: currentRawResponse!.status,
|
|
569
|
+
body: currentRawResponse!.parsedBody,
|
|
570
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
const lro = new LroImpl(
|
|
576
|
+
sendOperation,
|
|
577
|
+
{ recoveryPlanName, input, options },
|
|
578
|
+
plannedFailoverOperationSpec
|
|
579
|
+
);
|
|
580
|
+
return new LroEngine(lro, {
|
|
581
|
+
resumeFrom: options?.resumeFrom,
|
|
582
|
+
intervalInMs: options?.updateIntervalInMs
|
|
583
|
+
});
|
|
232
584
|
}
|
|
233
585
|
|
|
234
586
|
/**
|
|
235
|
-
* The operation to
|
|
236
|
-
* @summary Updates the given recovery plan.
|
|
587
|
+
* The operation to start the planned failover of a recovery plan.
|
|
237
588
|
* @param recoveryPlanName Recovery plan name.
|
|
238
|
-
* @param input
|
|
239
|
-
* @param
|
|
240
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
589
|
+
* @param input Failover input.
|
|
590
|
+
* @param options The options parameters.
|
|
241
591
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
options
|
|
592
|
+
async beginPlannedFailoverAndWait(
|
|
593
|
+
recoveryPlanName: string,
|
|
594
|
+
input: RecoveryPlanPlannedFailoverInput,
|
|
595
|
+
options?: ReplicationRecoveryPlansPlannedFailoverOptionalParams
|
|
596
|
+
): Promise<ReplicationRecoveryPlansPlannedFailoverResponse> {
|
|
597
|
+
const poller = await this.beginPlannedFailover(
|
|
598
|
+
recoveryPlanName,
|
|
599
|
+
input,
|
|
600
|
+
options
|
|
601
|
+
);
|
|
602
|
+
return poller.pollUntilDone();
|
|
251
603
|
}
|
|
252
604
|
|
|
253
605
|
/**
|
|
254
|
-
* The operation to
|
|
255
|
-
* @summary Execute commit failover of the recovery plan.
|
|
606
|
+
* The operation to reprotect(reverse replicate) a recovery plan.
|
|
256
607
|
* @param recoveryPlanName Recovery plan name.
|
|
257
|
-
* @param
|
|
258
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
608
|
+
* @param options The options parameters.
|
|
259
609
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
610
|
+
async beginReprotect(
|
|
611
|
+
recoveryPlanName: string,
|
|
612
|
+
options?: ReplicationRecoveryPlansReprotectOptionalParams
|
|
613
|
+
): Promise<
|
|
614
|
+
PollerLike<
|
|
615
|
+
PollOperationState<ReplicationRecoveryPlansReprotectResponse>,
|
|
616
|
+
ReplicationRecoveryPlansReprotectResponse
|
|
617
|
+
>
|
|
618
|
+
> {
|
|
619
|
+
const directSendOperation = async (
|
|
620
|
+
args: coreClient.OperationArguments,
|
|
621
|
+
spec: coreClient.OperationSpec
|
|
622
|
+
): Promise<ReplicationRecoveryPlansReprotectResponse> => {
|
|
623
|
+
return this.client.sendOperationRequest(args, spec);
|
|
624
|
+
};
|
|
625
|
+
const sendOperation = async (
|
|
626
|
+
args: coreClient.OperationArguments,
|
|
627
|
+
spec: coreClient.OperationSpec
|
|
628
|
+
) => {
|
|
629
|
+
let currentRawResponse:
|
|
630
|
+
| coreClient.FullOperationResponse
|
|
631
|
+
| undefined = undefined;
|
|
632
|
+
const providedCallback = args.options?.onResponse;
|
|
633
|
+
const callback: coreClient.RawResponseCallback = (
|
|
634
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
635
|
+
flatResponse: unknown
|
|
636
|
+
) => {
|
|
637
|
+
currentRawResponse = rawResponse;
|
|
638
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
639
|
+
};
|
|
640
|
+
const updatedArgs = {
|
|
641
|
+
...args,
|
|
642
|
+
options: {
|
|
643
|
+
...args.options,
|
|
644
|
+
onResponse: callback
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
648
|
+
return {
|
|
649
|
+
flatResponse,
|
|
650
|
+
rawResponse: {
|
|
651
|
+
statusCode: currentRawResponse!.status,
|
|
652
|
+
body: currentRawResponse!.parsedBody,
|
|
653
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
const lro = new LroImpl(
|
|
659
|
+
sendOperation,
|
|
660
|
+
{ recoveryPlanName, options },
|
|
661
|
+
reprotectOperationSpec
|
|
662
|
+
);
|
|
663
|
+
return new LroEngine(lro, {
|
|
664
|
+
resumeFrom: options?.resumeFrom,
|
|
665
|
+
intervalInMs: options?.updateIntervalInMs
|
|
666
|
+
});
|
|
268
667
|
}
|
|
269
668
|
|
|
270
669
|
/**
|
|
271
|
-
* The operation to
|
|
272
|
-
* @summary Execute planned failover of the recovery plan.
|
|
670
|
+
* The operation to reprotect(reverse replicate) a recovery plan.
|
|
273
671
|
* @param recoveryPlanName Recovery plan name.
|
|
274
|
-
* @param
|
|
275
|
-
* @param [options] The optional parameters
|
|
276
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
672
|
+
* @param options The options parameters.
|
|
277
673
|
*/
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
beginPlannedFailoverOperationSpec,
|
|
286
|
-
options);
|
|
674
|
+
async beginReprotectAndWait(
|
|
675
|
+
recoveryPlanName: string,
|
|
676
|
+
options?: ReplicationRecoveryPlansReprotectOptionalParams
|
|
677
|
+
): Promise<ReplicationRecoveryPlansReprotectResponse> {
|
|
678
|
+
const poller = await this.beginReprotect(recoveryPlanName, options);
|
|
679
|
+
return poller.pollUntilDone();
|
|
287
680
|
}
|
|
288
681
|
|
|
289
682
|
/**
|
|
290
|
-
* The operation to
|
|
291
|
-
* @summary Execute reprotect of the recovery plan.
|
|
683
|
+
* The operation to start the test failover of a recovery plan.
|
|
292
684
|
* @param recoveryPlanName Recovery plan name.
|
|
293
|
-
* @param
|
|
294
|
-
* @
|
|
685
|
+
* @param input Recovery plan test failover input.
|
|
686
|
+
* @param options The options parameters.
|
|
295
687
|
*/
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
688
|
+
async beginTestFailover(
|
|
689
|
+
recoveryPlanName: string,
|
|
690
|
+
input: RecoveryPlanTestFailoverInput,
|
|
691
|
+
options?: ReplicationRecoveryPlansTestFailoverOptionalParams
|
|
692
|
+
): Promise<
|
|
693
|
+
PollerLike<
|
|
694
|
+
PollOperationState<ReplicationRecoveryPlansTestFailoverResponse>,
|
|
695
|
+
ReplicationRecoveryPlansTestFailoverResponse
|
|
696
|
+
>
|
|
697
|
+
> {
|
|
698
|
+
const directSendOperation = async (
|
|
699
|
+
args: coreClient.OperationArguments,
|
|
700
|
+
spec: coreClient.OperationSpec
|
|
701
|
+
): Promise<ReplicationRecoveryPlansTestFailoverResponse> => {
|
|
702
|
+
return this.client.sendOperationRequest(args, spec);
|
|
703
|
+
};
|
|
704
|
+
const sendOperation = async (
|
|
705
|
+
args: coreClient.OperationArguments,
|
|
706
|
+
spec: coreClient.OperationSpec
|
|
707
|
+
) => {
|
|
708
|
+
let currentRawResponse:
|
|
709
|
+
| coreClient.FullOperationResponse
|
|
710
|
+
| undefined = undefined;
|
|
711
|
+
const providedCallback = args.options?.onResponse;
|
|
712
|
+
const callback: coreClient.RawResponseCallback = (
|
|
713
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
714
|
+
flatResponse: unknown
|
|
715
|
+
) => {
|
|
716
|
+
currentRawResponse = rawResponse;
|
|
717
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
718
|
+
};
|
|
719
|
+
const updatedArgs = {
|
|
720
|
+
...args,
|
|
721
|
+
options: {
|
|
722
|
+
...args.options,
|
|
723
|
+
onResponse: callback
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
727
|
+
return {
|
|
728
|
+
flatResponse,
|
|
729
|
+
rawResponse: {
|
|
730
|
+
statusCode: currentRawResponse!.status,
|
|
731
|
+
body: currentRawResponse!.parsedBody,
|
|
732
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
const lro = new LroImpl(
|
|
738
|
+
sendOperation,
|
|
739
|
+
{ recoveryPlanName, input, options },
|
|
740
|
+
testFailoverOperationSpec
|
|
741
|
+
);
|
|
742
|
+
return new LroEngine(lro, {
|
|
743
|
+
resumeFrom: options?.resumeFrom,
|
|
744
|
+
intervalInMs: options?.updateIntervalInMs
|
|
745
|
+
});
|
|
304
746
|
}
|
|
305
747
|
|
|
306
748
|
/**
|
|
307
749
|
* The operation to start the test failover of a recovery plan.
|
|
308
|
-
* @summary Execute test failover of the recovery plan.
|
|
309
750
|
* @param recoveryPlanName Recovery plan name.
|
|
310
|
-
* @param input
|
|
311
|
-
* @param
|
|
312
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
751
|
+
* @param input Recovery plan test failover input.
|
|
752
|
+
* @param options The options parameters.
|
|
313
753
|
*/
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
options
|
|
754
|
+
async beginTestFailoverAndWait(
|
|
755
|
+
recoveryPlanName: string,
|
|
756
|
+
input: RecoveryPlanTestFailoverInput,
|
|
757
|
+
options?: ReplicationRecoveryPlansTestFailoverOptionalParams
|
|
758
|
+
): Promise<ReplicationRecoveryPlansTestFailoverResponse> {
|
|
759
|
+
const poller = await this.beginTestFailover(
|
|
760
|
+
recoveryPlanName,
|
|
761
|
+
input,
|
|
762
|
+
options
|
|
763
|
+
);
|
|
764
|
+
return poller.pollUntilDone();
|
|
323
765
|
}
|
|
324
766
|
|
|
325
767
|
/**
|
|
326
768
|
* The operation to cleanup test failover of a recovery plan.
|
|
327
|
-
* @summary Execute test failover cleanup of the recovery plan.
|
|
328
769
|
* @param recoveryPlanName Recovery plan name.
|
|
329
|
-
* @param input
|
|
330
|
-
* @param
|
|
331
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
770
|
+
* @param input Recovery plan test failover cleanup input.
|
|
771
|
+
* @param options The options parameters.
|
|
332
772
|
*/
|
|
333
|
-
beginTestFailoverCleanup(
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
773
|
+
async beginTestFailoverCleanup(
|
|
774
|
+
recoveryPlanName: string,
|
|
775
|
+
input: RecoveryPlanTestFailoverCleanupInput,
|
|
776
|
+
options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams
|
|
777
|
+
): Promise<
|
|
778
|
+
PollerLike<
|
|
779
|
+
PollOperationState<ReplicationRecoveryPlansTestFailoverCleanupResponse>,
|
|
780
|
+
ReplicationRecoveryPlansTestFailoverCleanupResponse
|
|
781
|
+
>
|
|
782
|
+
> {
|
|
783
|
+
const directSendOperation = async (
|
|
784
|
+
args: coreClient.OperationArguments,
|
|
785
|
+
spec: coreClient.OperationSpec
|
|
786
|
+
): Promise<ReplicationRecoveryPlansTestFailoverCleanupResponse> => {
|
|
787
|
+
return this.client.sendOperationRequest(args, spec);
|
|
788
|
+
};
|
|
789
|
+
const sendOperation = async (
|
|
790
|
+
args: coreClient.OperationArguments,
|
|
791
|
+
spec: coreClient.OperationSpec
|
|
792
|
+
) => {
|
|
793
|
+
let currentRawResponse:
|
|
794
|
+
| coreClient.FullOperationResponse
|
|
795
|
+
| undefined = undefined;
|
|
796
|
+
const providedCallback = args.options?.onResponse;
|
|
797
|
+
const callback: coreClient.RawResponseCallback = (
|
|
798
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
799
|
+
flatResponse: unknown
|
|
800
|
+
) => {
|
|
801
|
+
currentRawResponse = rawResponse;
|
|
802
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
803
|
+
};
|
|
804
|
+
const updatedArgs = {
|
|
805
|
+
...args,
|
|
806
|
+
options: {
|
|
807
|
+
...args.options,
|
|
808
|
+
onResponse: callback
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
812
|
+
return {
|
|
813
|
+
flatResponse,
|
|
814
|
+
rawResponse: {
|
|
815
|
+
statusCode: currentRawResponse!.status,
|
|
816
|
+
body: currentRawResponse!.parsedBody,
|
|
817
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
const lro = new LroImpl(
|
|
823
|
+
sendOperation,
|
|
824
|
+
{ recoveryPlanName, input, options },
|
|
825
|
+
testFailoverCleanupOperationSpec
|
|
826
|
+
);
|
|
827
|
+
return new LroEngine(lro, {
|
|
828
|
+
resumeFrom: options?.resumeFrom,
|
|
829
|
+
intervalInMs: options?.updateIntervalInMs
|
|
830
|
+
});
|
|
342
831
|
}
|
|
343
832
|
|
|
344
833
|
/**
|
|
345
|
-
* The operation to
|
|
346
|
-
* @summary Execute unplanned failover of the recovery plan.
|
|
834
|
+
* The operation to cleanup test failover of a recovery plan.
|
|
347
835
|
* @param recoveryPlanName Recovery plan name.
|
|
348
|
-
* @param input
|
|
349
|
-
* @param
|
|
350
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
836
|
+
* @param input Recovery plan test failover cleanup input.
|
|
837
|
+
* @param options The options parameters.
|
|
351
838
|
*/
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
options
|
|
839
|
+
async beginTestFailoverCleanupAndWait(
|
|
840
|
+
recoveryPlanName: string,
|
|
841
|
+
input: RecoveryPlanTestFailoverCleanupInput,
|
|
842
|
+
options?: ReplicationRecoveryPlansTestFailoverCleanupOptionalParams
|
|
843
|
+
): Promise<ReplicationRecoveryPlansTestFailoverCleanupResponse> {
|
|
844
|
+
const poller = await this.beginTestFailoverCleanup(
|
|
845
|
+
recoveryPlanName,
|
|
846
|
+
input,
|
|
847
|
+
options
|
|
848
|
+
);
|
|
849
|
+
return poller.pollUntilDone();
|
|
361
850
|
}
|
|
362
851
|
|
|
363
852
|
/**
|
|
364
|
-
*
|
|
365
|
-
* @
|
|
366
|
-
* @param
|
|
367
|
-
* @param
|
|
368
|
-
* @returns Promise<Models.ReplicationRecoveryPlansListNextResponse>
|
|
853
|
+
* The operation to start the unplanned failover of a recovery plan.
|
|
854
|
+
* @param recoveryPlanName Recovery plan name.
|
|
855
|
+
* @param input Recovery plan unplanned failover input.
|
|
856
|
+
* @param options The options parameters.
|
|
369
857
|
*/
|
|
370
|
-
|
|
858
|
+
async beginUnplannedFailover(
|
|
859
|
+
recoveryPlanName: string,
|
|
860
|
+
input: RecoveryPlanUnplannedFailoverInput,
|
|
861
|
+
options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams
|
|
862
|
+
): Promise<
|
|
863
|
+
PollerLike<
|
|
864
|
+
PollOperationState<ReplicationRecoveryPlansUnplannedFailoverResponse>,
|
|
865
|
+
ReplicationRecoveryPlansUnplannedFailoverResponse
|
|
866
|
+
>
|
|
867
|
+
> {
|
|
868
|
+
const directSendOperation = async (
|
|
869
|
+
args: coreClient.OperationArguments,
|
|
870
|
+
spec: coreClient.OperationSpec
|
|
871
|
+
): Promise<ReplicationRecoveryPlansUnplannedFailoverResponse> => {
|
|
872
|
+
return this.client.sendOperationRequest(args, spec);
|
|
873
|
+
};
|
|
874
|
+
const sendOperation = async (
|
|
875
|
+
args: coreClient.OperationArguments,
|
|
876
|
+
spec: coreClient.OperationSpec
|
|
877
|
+
) => {
|
|
878
|
+
let currentRawResponse:
|
|
879
|
+
| coreClient.FullOperationResponse
|
|
880
|
+
| undefined = undefined;
|
|
881
|
+
const providedCallback = args.options?.onResponse;
|
|
882
|
+
const callback: coreClient.RawResponseCallback = (
|
|
883
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
884
|
+
flatResponse: unknown
|
|
885
|
+
) => {
|
|
886
|
+
currentRawResponse = rawResponse;
|
|
887
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
888
|
+
};
|
|
889
|
+
const updatedArgs = {
|
|
890
|
+
...args,
|
|
891
|
+
options: {
|
|
892
|
+
...args.options,
|
|
893
|
+
onResponse: callback
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
897
|
+
return {
|
|
898
|
+
flatResponse,
|
|
899
|
+
rawResponse: {
|
|
900
|
+
statusCode: currentRawResponse!.status,
|
|
901
|
+
body: currentRawResponse!.parsedBody,
|
|
902
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
const lro = new LroImpl(
|
|
908
|
+
sendOperation,
|
|
909
|
+
{ recoveryPlanName, input, options },
|
|
910
|
+
unplannedFailoverOperationSpec
|
|
911
|
+
);
|
|
912
|
+
return new LroEngine(lro, {
|
|
913
|
+
resumeFrom: options?.resumeFrom,
|
|
914
|
+
intervalInMs: options?.updateIntervalInMs
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
|
|
371
918
|
/**
|
|
372
|
-
*
|
|
373
|
-
* @param
|
|
919
|
+
* The operation to start the unplanned failover of a recovery plan.
|
|
920
|
+
* @param recoveryPlanName Recovery plan name.
|
|
921
|
+
* @param input Recovery plan unplanned failover input.
|
|
922
|
+
* @param options The options parameters.
|
|
374
923
|
*/
|
|
375
|
-
|
|
924
|
+
async beginUnplannedFailoverAndWait(
|
|
925
|
+
recoveryPlanName: string,
|
|
926
|
+
input: RecoveryPlanUnplannedFailoverInput,
|
|
927
|
+
options?: ReplicationRecoveryPlansUnplannedFailoverOptionalParams
|
|
928
|
+
): Promise<ReplicationRecoveryPlansUnplannedFailoverResponse> {
|
|
929
|
+
const poller = await this.beginUnplannedFailover(
|
|
930
|
+
recoveryPlanName,
|
|
931
|
+
input,
|
|
932
|
+
options
|
|
933
|
+
);
|
|
934
|
+
return poller.pollUntilDone();
|
|
935
|
+
}
|
|
936
|
+
|
|
376
937
|
/**
|
|
377
|
-
*
|
|
378
|
-
* @param
|
|
379
|
-
* @param
|
|
938
|
+
* ListNext
|
|
939
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
940
|
+
* @param options The options parameters.
|
|
380
941
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
942
|
+
private _listNext(
|
|
943
|
+
nextLink: string,
|
|
944
|
+
options?: ReplicationRecoveryPlansListNextOptionalParams
|
|
945
|
+
): Promise<ReplicationRecoveryPlansListNextResponse> {
|
|
383
946
|
return this.client.sendOperationRequest(
|
|
384
|
-
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
},
|
|
388
|
-
listNextOperationSpec,
|
|
389
|
-
callback) as Promise<Models.ReplicationRecoveryPlansListNextResponse>;
|
|
947
|
+
{ nextLink, options },
|
|
948
|
+
listNextOperationSpec
|
|
949
|
+
);
|
|
390
950
|
}
|
|
391
951
|
}
|
|
392
|
-
|
|
393
952
|
// Operation Specifications
|
|
394
|
-
const serializer =
|
|
395
|
-
|
|
953
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
954
|
+
|
|
955
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
956
|
+
path:
|
|
957
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans",
|
|
396
958
|
httpMethod: "GET",
|
|
397
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans",
|
|
398
|
-
urlParameters: [
|
|
399
|
-
Parameters.resourceName,
|
|
400
|
-
Parameters.resourceGroupName,
|
|
401
|
-
Parameters.subscriptionId
|
|
402
|
-
],
|
|
403
|
-
queryParameters: [
|
|
404
|
-
Parameters.apiVersion
|
|
405
|
-
],
|
|
406
|
-
headerParameters: [
|
|
407
|
-
Parameters.acceptLanguage
|
|
408
|
-
],
|
|
409
959
|
responses: {
|
|
410
960
|
200: {
|
|
411
961
|
bodyMapper: Mappers.RecoveryPlanCollection
|
|
412
|
-
},
|
|
413
|
-
default: {
|
|
414
|
-
bodyMapper: Mappers.CloudError
|
|
415
962
|
}
|
|
416
963
|
},
|
|
417
|
-
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
421
|
-
httpMethod: "GET",
|
|
422
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
964
|
+
queryParameters: [Parameters.apiVersion],
|
|
423
965
|
urlParameters: [
|
|
424
|
-
Parameters
|
|
966
|
+
Parameters.$host,
|
|
425
967
|
Parameters.resourceGroupName,
|
|
426
968
|
Parameters.subscriptionId,
|
|
427
|
-
Parameters.
|
|
428
|
-
],
|
|
429
|
-
queryParameters: [
|
|
430
|
-
Parameters.apiVersion
|
|
431
|
-
],
|
|
432
|
-
headerParameters: [
|
|
433
|
-
Parameters.acceptLanguage
|
|
969
|
+
Parameters.resourceName
|
|
434
970
|
],
|
|
971
|
+
headerParameters: [Parameters.accept],
|
|
972
|
+
serializer
|
|
973
|
+
};
|
|
974
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
975
|
+
path:
|
|
976
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
977
|
+
httpMethod: "GET",
|
|
435
978
|
responses: {
|
|
436
979
|
200: {
|
|
437
980
|
bodyMapper: Mappers.RecoveryPlan
|
|
438
|
-
},
|
|
439
|
-
default: {
|
|
440
|
-
bodyMapper: Mappers.CloudError
|
|
441
981
|
}
|
|
442
982
|
},
|
|
443
|
-
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
447
|
-
httpMethod: "PUT",
|
|
448
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
983
|
+
queryParameters: [Parameters.apiVersion],
|
|
449
984
|
urlParameters: [
|
|
450
|
-
Parameters
|
|
985
|
+
Parameters.$host,
|
|
451
986
|
Parameters.resourceGroupName,
|
|
452
987
|
Parameters.subscriptionId,
|
|
988
|
+
Parameters.resourceName,
|
|
453
989
|
Parameters.recoveryPlanName
|
|
454
990
|
],
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
parameterPath: "input",
|
|
463
|
-
mapper: {
|
|
464
|
-
...Mappers.CreateRecoveryPlanInput,
|
|
465
|
-
required: true
|
|
466
|
-
}
|
|
467
|
-
},
|
|
991
|
+
headerParameters: [Parameters.accept],
|
|
992
|
+
serializer
|
|
993
|
+
};
|
|
994
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
995
|
+
path:
|
|
996
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
997
|
+
httpMethod: "PUT",
|
|
468
998
|
responses: {
|
|
469
999
|
200: {
|
|
470
1000
|
bodyMapper: Mappers.RecoveryPlan
|
|
471
1001
|
},
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
1002
|
+
201: {
|
|
1003
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1004
|
+
},
|
|
1005
|
+
202: {
|
|
1006
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1007
|
+
},
|
|
1008
|
+
204: {
|
|
1009
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
475
1010
|
}
|
|
476
1011
|
},
|
|
1012
|
+
requestBody: Parameters.input10,
|
|
1013
|
+
queryParameters: [Parameters.apiVersion],
|
|
1014
|
+
urlParameters: [
|
|
1015
|
+
Parameters.$host,
|
|
1016
|
+
Parameters.resourceGroupName,
|
|
1017
|
+
Parameters.subscriptionId,
|
|
1018
|
+
Parameters.resourceName,
|
|
1019
|
+
Parameters.recoveryPlanName
|
|
1020
|
+
],
|
|
1021
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1022
|
+
mediaType: "json",
|
|
477
1023
|
serializer
|
|
478
1024
|
};
|
|
479
|
-
|
|
480
|
-
|
|
1025
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1026
|
+
path:
|
|
1027
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
481
1028
|
httpMethod: "DELETE",
|
|
482
|
-
|
|
1029
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
1030
|
+
queryParameters: [Parameters.apiVersion],
|
|
483
1031
|
urlParameters: [
|
|
484
|
-
Parameters
|
|
1032
|
+
Parameters.$host,
|
|
485
1033
|
Parameters.resourceGroupName,
|
|
486
1034
|
Parameters.subscriptionId,
|
|
1035
|
+
Parameters.resourceName,
|
|
487
1036
|
Parameters.recoveryPlanName
|
|
488
1037
|
],
|
|
489
|
-
queryParameters: [
|
|
490
|
-
Parameters.apiVersion
|
|
491
|
-
],
|
|
492
|
-
headerParameters: [
|
|
493
|
-
Parameters.acceptLanguage
|
|
494
|
-
],
|
|
495
|
-
responses: {
|
|
496
|
-
202: {},
|
|
497
|
-
204: {},
|
|
498
|
-
default: {
|
|
499
|
-
bodyMapper: Mappers.CloudError
|
|
500
|
-
}
|
|
501
|
-
},
|
|
502
1038
|
serializer
|
|
503
1039
|
};
|
|
504
|
-
|
|
505
|
-
|
|
1040
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1041
|
+
path:
|
|
1042
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}",
|
|
506
1043
|
httpMethod: "PATCH",
|
|
507
|
-
|
|
1044
|
+
responses: {
|
|
1045
|
+
200: {
|
|
1046
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1047
|
+
},
|
|
1048
|
+
201: {
|
|
1049
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1050
|
+
},
|
|
1051
|
+
202: {
|
|
1052
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1053
|
+
},
|
|
1054
|
+
204: {
|
|
1055
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
requestBody: Parameters.input11,
|
|
1059
|
+
queryParameters: [Parameters.apiVersion],
|
|
508
1060
|
urlParameters: [
|
|
509
|
-
Parameters
|
|
1061
|
+
Parameters.$host,
|
|
510
1062
|
Parameters.resourceGroupName,
|
|
511
1063
|
Parameters.subscriptionId,
|
|
1064
|
+
Parameters.resourceName,
|
|
512
1065
|
Parameters.recoveryPlanName
|
|
513
1066
|
],
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
mapper: {
|
|
523
|
-
...Mappers.UpdateRecoveryPlanInput,
|
|
524
|
-
required: true
|
|
525
|
-
}
|
|
526
|
-
},
|
|
1067
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1068
|
+
mediaType: "json",
|
|
1069
|
+
serializer
|
|
1070
|
+
};
|
|
1071
|
+
const failoverCancelOperationSpec: coreClient.OperationSpec = {
|
|
1072
|
+
path:
|
|
1073
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCancel",
|
|
1074
|
+
httpMethod: "POST",
|
|
527
1075
|
responses: {
|
|
528
1076
|
200: {
|
|
529
1077
|
bodyMapper: Mappers.RecoveryPlan
|
|
530
1078
|
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
1079
|
+
201: {
|
|
1080
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1081
|
+
},
|
|
1082
|
+
202: {
|
|
1083
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1084
|
+
},
|
|
1085
|
+
204: {
|
|
1086
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
534
1087
|
}
|
|
535
1088
|
},
|
|
536
|
-
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
const beginFailoverCommitOperationSpec: msRest.OperationSpec = {
|
|
540
|
-
httpMethod: "POST",
|
|
541
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit",
|
|
1089
|
+
queryParameters: [Parameters.apiVersion],
|
|
542
1090
|
urlParameters: [
|
|
543
|
-
Parameters
|
|
1091
|
+
Parameters.$host,
|
|
544
1092
|
Parameters.resourceGroupName,
|
|
545
1093
|
Parameters.subscriptionId,
|
|
1094
|
+
Parameters.resourceName,
|
|
546
1095
|
Parameters.recoveryPlanName
|
|
547
1096
|
],
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
1097
|
+
headerParameters: [Parameters.accept],
|
|
1098
|
+
serializer
|
|
1099
|
+
};
|
|
1100
|
+
const failoverCommitOperationSpec: coreClient.OperationSpec = {
|
|
1101
|
+
path:
|
|
1102
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/failoverCommit",
|
|
1103
|
+
httpMethod: "POST",
|
|
554
1104
|
responses: {
|
|
555
1105
|
200: {
|
|
556
1106
|
bodyMapper: Mappers.RecoveryPlan
|
|
557
1107
|
},
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
1108
|
+
201: {
|
|
1109
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1110
|
+
},
|
|
1111
|
+
202: {
|
|
1112
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1113
|
+
},
|
|
1114
|
+
204: {
|
|
1115
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
561
1116
|
}
|
|
562
1117
|
},
|
|
563
|
-
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
const beginPlannedFailoverOperationSpec: msRest.OperationSpec = {
|
|
567
|
-
httpMethod: "POST",
|
|
568
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover",
|
|
1118
|
+
queryParameters: [Parameters.apiVersion],
|
|
569
1119
|
urlParameters: [
|
|
570
|
-
Parameters
|
|
1120
|
+
Parameters.$host,
|
|
571
1121
|
Parameters.resourceGroupName,
|
|
572
1122
|
Parameters.subscriptionId,
|
|
1123
|
+
Parameters.resourceName,
|
|
573
1124
|
Parameters.recoveryPlanName
|
|
574
1125
|
],
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
parameterPath: "input",
|
|
583
|
-
mapper: {
|
|
584
|
-
...Mappers.RecoveryPlanPlannedFailoverInput,
|
|
585
|
-
required: true
|
|
586
|
-
}
|
|
587
|
-
},
|
|
1126
|
+
headerParameters: [Parameters.accept],
|
|
1127
|
+
serializer
|
|
1128
|
+
};
|
|
1129
|
+
const plannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
1130
|
+
path:
|
|
1131
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/plannedFailover",
|
|
1132
|
+
httpMethod: "POST",
|
|
588
1133
|
responses: {
|
|
589
1134
|
200: {
|
|
590
1135
|
bodyMapper: Mappers.RecoveryPlan
|
|
591
1136
|
},
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
1137
|
+
201: {
|
|
1138
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1139
|
+
},
|
|
1140
|
+
202: {
|
|
1141
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1142
|
+
},
|
|
1143
|
+
204: {
|
|
1144
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
595
1145
|
}
|
|
596
1146
|
},
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
const beginReprotectOperationSpec: msRest.OperationSpec = {
|
|
601
|
-
httpMethod: "POST",
|
|
602
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect",
|
|
1147
|
+
requestBody: Parameters.input12,
|
|
1148
|
+
queryParameters: [Parameters.apiVersion],
|
|
603
1149
|
urlParameters: [
|
|
604
|
-
Parameters
|
|
1150
|
+
Parameters.$host,
|
|
605
1151
|
Parameters.resourceGroupName,
|
|
606
1152
|
Parameters.subscriptionId,
|
|
1153
|
+
Parameters.resourceName,
|
|
607
1154
|
Parameters.recoveryPlanName
|
|
608
1155
|
],
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
1156
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1157
|
+
mediaType: "json",
|
|
1158
|
+
serializer
|
|
1159
|
+
};
|
|
1160
|
+
const reprotectOperationSpec: coreClient.OperationSpec = {
|
|
1161
|
+
path:
|
|
1162
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/reProtect",
|
|
1163
|
+
httpMethod: "POST",
|
|
615
1164
|
responses: {
|
|
616
1165
|
200: {
|
|
617
1166
|
bodyMapper: Mappers.RecoveryPlan
|
|
618
1167
|
},
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
1168
|
+
201: {
|
|
1169
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1170
|
+
},
|
|
1171
|
+
202: {
|
|
1172
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1173
|
+
},
|
|
1174
|
+
204: {
|
|
1175
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
622
1176
|
}
|
|
623
1177
|
},
|
|
624
|
-
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
const beginTestFailoverOperationSpec: msRest.OperationSpec = {
|
|
628
|
-
httpMethod: "POST",
|
|
629
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover",
|
|
1178
|
+
queryParameters: [Parameters.apiVersion],
|
|
630
1179
|
urlParameters: [
|
|
631
|
-
Parameters
|
|
1180
|
+
Parameters.$host,
|
|
632
1181
|
Parameters.resourceGroupName,
|
|
633
1182
|
Parameters.subscriptionId,
|
|
1183
|
+
Parameters.resourceName,
|
|
634
1184
|
Parameters.recoveryPlanName
|
|
635
1185
|
],
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
parameterPath: "input",
|
|
644
|
-
mapper: {
|
|
645
|
-
...Mappers.RecoveryPlanTestFailoverInput,
|
|
646
|
-
required: true
|
|
647
|
-
}
|
|
648
|
-
},
|
|
1186
|
+
headerParameters: [Parameters.accept],
|
|
1187
|
+
serializer
|
|
1188
|
+
};
|
|
1189
|
+
const testFailoverOperationSpec: coreClient.OperationSpec = {
|
|
1190
|
+
path:
|
|
1191
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailover",
|
|
1192
|
+
httpMethod: "POST",
|
|
649
1193
|
responses: {
|
|
650
1194
|
200: {
|
|
651
1195
|
bodyMapper: Mappers.RecoveryPlan
|
|
652
1196
|
},
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
1197
|
+
201: {
|
|
1198
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1199
|
+
},
|
|
1200
|
+
202: {
|
|
1201
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1202
|
+
},
|
|
1203
|
+
204: {
|
|
1204
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
656
1205
|
}
|
|
657
1206
|
},
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
const beginTestFailoverCleanupOperationSpec: msRest.OperationSpec = {
|
|
662
|
-
httpMethod: "POST",
|
|
663
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup",
|
|
1207
|
+
requestBody: Parameters.input13,
|
|
1208
|
+
queryParameters: [Parameters.apiVersion],
|
|
664
1209
|
urlParameters: [
|
|
665
|
-
Parameters
|
|
1210
|
+
Parameters.$host,
|
|
666
1211
|
Parameters.resourceGroupName,
|
|
667
1212
|
Parameters.subscriptionId,
|
|
1213
|
+
Parameters.resourceName,
|
|
668
1214
|
Parameters.recoveryPlanName
|
|
669
1215
|
],
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
mapper: {
|
|
679
|
-
...Mappers.RecoveryPlanTestFailoverCleanupInput,
|
|
680
|
-
required: true
|
|
681
|
-
}
|
|
682
|
-
},
|
|
1216
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1217
|
+
mediaType: "json",
|
|
1218
|
+
serializer
|
|
1219
|
+
};
|
|
1220
|
+
const testFailoverCleanupOperationSpec: coreClient.OperationSpec = {
|
|
1221
|
+
path:
|
|
1222
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/testFailoverCleanup",
|
|
1223
|
+
httpMethod: "POST",
|
|
683
1224
|
responses: {
|
|
684
1225
|
200: {
|
|
685
1226
|
bodyMapper: Mappers.RecoveryPlan
|
|
686
1227
|
},
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
1228
|
+
201: {
|
|
1229
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1230
|
+
},
|
|
1231
|
+
202: {
|
|
1232
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1233
|
+
},
|
|
1234
|
+
204: {
|
|
1235
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
690
1236
|
}
|
|
691
1237
|
},
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
const beginUnplannedFailoverOperationSpec: msRest.OperationSpec = {
|
|
696
|
-
httpMethod: "POST",
|
|
697
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover",
|
|
1238
|
+
requestBody: Parameters.input14,
|
|
1239
|
+
queryParameters: [Parameters.apiVersion],
|
|
698
1240
|
urlParameters: [
|
|
699
|
-
Parameters
|
|
1241
|
+
Parameters.$host,
|
|
700
1242
|
Parameters.resourceGroupName,
|
|
701
1243
|
Parameters.subscriptionId,
|
|
1244
|
+
Parameters.resourceName,
|
|
702
1245
|
Parameters.recoveryPlanName
|
|
703
1246
|
],
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
mapper: {
|
|
713
|
-
...Mappers.RecoveryPlanUnplannedFailoverInput,
|
|
714
|
-
required: true
|
|
715
|
-
}
|
|
716
|
-
},
|
|
1247
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1248
|
+
mediaType: "json",
|
|
1249
|
+
serializer
|
|
1250
|
+
};
|
|
1251
|
+
const unplannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
1252
|
+
path:
|
|
1253
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryPlans/{recoveryPlanName}/unplannedFailover",
|
|
1254
|
+
httpMethod: "POST",
|
|
717
1255
|
responses: {
|
|
718
1256
|
200: {
|
|
719
1257
|
bodyMapper: Mappers.RecoveryPlan
|
|
720
1258
|
},
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
1259
|
+
201: {
|
|
1260
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1261
|
+
},
|
|
1262
|
+
202: {
|
|
1263
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
1264
|
+
},
|
|
1265
|
+
204: {
|
|
1266
|
+
bodyMapper: Mappers.RecoveryPlan
|
|
724
1267
|
}
|
|
725
1268
|
},
|
|
1269
|
+
requestBody: Parameters.input15,
|
|
1270
|
+
queryParameters: [Parameters.apiVersion],
|
|
1271
|
+
urlParameters: [
|
|
1272
|
+
Parameters.$host,
|
|
1273
|
+
Parameters.resourceGroupName,
|
|
1274
|
+
Parameters.subscriptionId,
|
|
1275
|
+
Parameters.resourceName,
|
|
1276
|
+
Parameters.recoveryPlanName
|
|
1277
|
+
],
|
|
1278
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1279
|
+
mediaType: "json",
|
|
726
1280
|
serializer
|
|
727
1281
|
};
|
|
728
|
-
|
|
729
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
730
|
-
httpMethod: "GET",
|
|
731
|
-
baseUrl: "https://management.azure.com",
|
|
1282
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
732
1283
|
path: "{nextLink}",
|
|
733
|
-
|
|
734
|
-
Parameters.nextPageLink
|
|
735
|
-
],
|
|
736
|
-
headerParameters: [
|
|
737
|
-
Parameters.acceptLanguage
|
|
738
|
-
],
|
|
1284
|
+
httpMethod: "GET",
|
|
739
1285
|
responses: {
|
|
740
1286
|
200: {
|
|
741
1287
|
bodyMapper: Mappers.RecoveryPlanCollection
|
|
742
|
-
},
|
|
743
|
-
default: {
|
|
744
|
-
bodyMapper: Mappers.CloudError
|
|
745
1288
|
}
|
|
746
1289
|
},
|
|
1290
|
+
queryParameters: [Parameters.apiVersion],
|
|
1291
|
+
urlParameters: [
|
|
1292
|
+
Parameters.$host,
|
|
1293
|
+
Parameters.resourceGroupName,
|
|
1294
|
+
Parameters.subscriptionId,
|
|
1295
|
+
Parameters.nextLink,
|
|
1296
|
+
Parameters.resourceName
|
|
1297
|
+
],
|
|
1298
|
+
headerParameters: [Parameters.accept],
|
|
747
1299
|
serializer
|
|
748
1300
|
};
|