@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,602 +1,907 @@
|
|
|
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 { ReplicationFabrics } 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
|
+
Fabric,
|
|
19
|
+
ReplicationFabricsListNextOptionalParams,
|
|
20
|
+
ReplicationFabricsListOptionalParams,
|
|
21
|
+
ReplicationFabricsListResponse,
|
|
22
|
+
ReplicationFabricsGetOptionalParams,
|
|
23
|
+
ReplicationFabricsGetResponse,
|
|
24
|
+
FabricCreationInput,
|
|
25
|
+
ReplicationFabricsCreateOptionalParams,
|
|
26
|
+
ReplicationFabricsCreateResponse,
|
|
27
|
+
ReplicationFabricsPurgeOptionalParams,
|
|
28
|
+
ReplicationFabricsCheckConsistencyOptionalParams,
|
|
29
|
+
ReplicationFabricsCheckConsistencyResponse,
|
|
30
|
+
ReplicationFabricsMigrateToAadOptionalParams,
|
|
31
|
+
FailoverProcessServerRequest,
|
|
32
|
+
ReplicationFabricsReassociateGatewayOptionalParams,
|
|
33
|
+
ReplicationFabricsReassociateGatewayResponse,
|
|
34
|
+
ReplicationFabricsDeleteOptionalParams,
|
|
35
|
+
RenewCertificateInput,
|
|
36
|
+
ReplicationFabricsRenewCertificateOptionalParams,
|
|
37
|
+
ReplicationFabricsRenewCertificateResponse,
|
|
38
|
+
ReplicationFabricsListNextResponse
|
|
39
|
+
} from "../models";
|
|
17
40
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
41
|
+
/// <reference lib="esnext.asynciterable" />
|
|
42
|
+
/** Class containing ReplicationFabrics operations. */
|
|
43
|
+
export class ReplicationFabricsImpl implements ReplicationFabrics {
|
|
44
|
+
private readonly client: SiteRecoveryManagementClient;
|
|
21
45
|
|
|
22
46
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
47
|
+
* Initialize a new instance of the class ReplicationFabrics class.
|
|
48
|
+
* @param client Reference to the service client
|
|
25
49
|
*/
|
|
26
|
-
constructor(client:
|
|
50
|
+
constructor(client: SiteRecoveryManagementClient) {
|
|
27
51
|
this.client = client;
|
|
28
52
|
}
|
|
29
53
|
|
|
30
54
|
/**
|
|
31
55
|
* Gets a list of the Azure Site Recovery fabrics in the vault.
|
|
32
|
-
* @
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.ReplicationFabricsListResponse>
|
|
56
|
+
* @param options The options parameters.
|
|
35
57
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.FabricCollection>, callback?: msRest.ServiceCallback<Models.FabricCollection>): Promise<Models.ReplicationFabricsListResponse> {
|
|
47
|
-
return this.client.sendOperationRequest(
|
|
48
|
-
{
|
|
49
|
-
options
|
|
58
|
+
public list(
|
|
59
|
+
options?: ReplicationFabricsListOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<Fabric> {
|
|
61
|
+
const iter = this.listPagingAll(options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
50
68
|
},
|
|
51
|
-
|
|
52
|
-
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listPagingPage(options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listPagingPage(
|
|
76
|
+
options?: ReplicationFabricsListOptionalParams
|
|
77
|
+
): AsyncIterableIterator<Fabric[]> {
|
|
78
|
+
let result = await this._list(options);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
let continuationToken = result.nextLink;
|
|
81
|
+
while (continuationToken) {
|
|
82
|
+
result = await this._listNext(continuationToken, options);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listPagingAll(
|
|
89
|
+
options?: ReplicationFabricsListOptionalParams
|
|
90
|
+
): AsyncIterableIterator<Fabric> {
|
|
91
|
+
for await (const page of this.listPagingPage(options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
53
94
|
}
|
|
54
95
|
|
|
55
96
|
/**
|
|
56
|
-
* Gets
|
|
57
|
-
* @
|
|
58
|
-
* @param fabricName Fabric name.
|
|
59
|
-
* @param [options] The optional parameters
|
|
60
|
-
* @returns Promise<Models.ReplicationFabricsGetResponse>
|
|
61
|
-
*/
|
|
62
|
-
get(fabricName: string, options?: msRest.RequestOptionsBase): Promise<Models.ReplicationFabricsGetResponse>;
|
|
63
|
-
/**
|
|
64
|
-
* @param fabricName Fabric name.
|
|
65
|
-
* @param callback The callback
|
|
97
|
+
* Gets a list of the Azure Site Recovery fabrics in the vault.
|
|
98
|
+
* @param options The options parameters.
|
|
66
99
|
*/
|
|
67
|
-
|
|
100
|
+
private _list(
|
|
101
|
+
options?: ReplicationFabricsListOptionalParams
|
|
102
|
+
): Promise<ReplicationFabricsListResponse> {
|
|
103
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
104
|
+
}
|
|
105
|
+
|
|
68
106
|
/**
|
|
107
|
+
* Gets the details of an Azure Site Recovery fabric.
|
|
69
108
|
* @param fabricName Fabric name.
|
|
70
|
-
* @param options The
|
|
71
|
-
* @param callback The callback
|
|
109
|
+
* @param options The options parameters.
|
|
72
110
|
*/
|
|
73
|
-
get(
|
|
74
|
-
|
|
111
|
+
get(
|
|
112
|
+
fabricName: string,
|
|
113
|
+
options?: ReplicationFabricsGetOptionalParams
|
|
114
|
+
): Promise<ReplicationFabricsGetResponse> {
|
|
75
115
|
return this.client.sendOperationRequest(
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
getOperationSpec,
|
|
81
|
-
callback) as Promise<Models.ReplicationFabricsGetResponse>;
|
|
116
|
+
{ fabricName, options },
|
|
117
|
+
getOperationSpec
|
|
118
|
+
);
|
|
82
119
|
}
|
|
83
120
|
|
|
84
121
|
/**
|
|
85
|
-
* The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site)
|
|
86
|
-
* @summary Creates an Azure Site Recovery fabric.
|
|
122
|
+
* The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site).
|
|
87
123
|
* @param fabricName Name of the ASR fabric.
|
|
88
124
|
* @param input Fabric creation input.
|
|
89
|
-
* @param
|
|
90
|
-
* @returns Promise<Models.ReplicationFabricsCreateResponse>
|
|
125
|
+
* @param options The options parameters.
|
|
91
126
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
127
|
+
async beginCreate(
|
|
128
|
+
fabricName: string,
|
|
129
|
+
input: FabricCreationInput,
|
|
130
|
+
options?: ReplicationFabricsCreateOptionalParams
|
|
131
|
+
): Promise<
|
|
132
|
+
PollerLike<
|
|
133
|
+
PollOperationState<ReplicationFabricsCreateResponse>,
|
|
134
|
+
ReplicationFabricsCreateResponse
|
|
135
|
+
>
|
|
136
|
+
> {
|
|
137
|
+
const directSendOperation = async (
|
|
138
|
+
args: coreClient.OperationArguments,
|
|
139
|
+
spec: coreClient.OperationSpec
|
|
140
|
+
): Promise<ReplicationFabricsCreateResponse> => {
|
|
141
|
+
return this.client.sendOperationRequest(args, spec);
|
|
142
|
+
};
|
|
143
|
+
const sendOperation = async (
|
|
144
|
+
args: coreClient.OperationArguments,
|
|
145
|
+
spec: coreClient.OperationSpec
|
|
146
|
+
) => {
|
|
147
|
+
let currentRawResponse:
|
|
148
|
+
| coreClient.FullOperationResponse
|
|
149
|
+
| undefined = undefined;
|
|
150
|
+
const providedCallback = args.options?.onResponse;
|
|
151
|
+
const callback: coreClient.RawResponseCallback = (
|
|
152
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
153
|
+
flatResponse: unknown
|
|
154
|
+
) => {
|
|
155
|
+
currentRawResponse = rawResponse;
|
|
156
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
157
|
+
};
|
|
158
|
+
const updatedArgs = {
|
|
159
|
+
...args,
|
|
160
|
+
options: {
|
|
161
|
+
...args.options,
|
|
162
|
+
onResponse: callback
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
166
|
+
return {
|
|
167
|
+
flatResponse,
|
|
168
|
+
rawResponse: {
|
|
169
|
+
statusCode: currentRawResponse!.status,
|
|
170
|
+
body: currentRawResponse!.parsedBody,
|
|
171
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
};
|
|
96
175
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
176
|
+
const lro = new LroImpl(
|
|
177
|
+
sendOperation,
|
|
178
|
+
{ fabricName, input, options },
|
|
179
|
+
createOperationSpec
|
|
180
|
+
);
|
|
181
|
+
return new LroEngine(lro, {
|
|
182
|
+
resumeFrom: options?.resumeFrom,
|
|
183
|
+
intervalInMs: options?.updateIntervalInMs
|
|
184
|
+
});
|
|
107
185
|
}
|
|
108
186
|
|
|
109
187
|
/**
|
|
110
|
-
* The operation to
|
|
111
|
-
* @
|
|
112
|
-
* @param
|
|
113
|
-
* @param
|
|
114
|
-
* @returns Promise<Models.ReplicationFabricsCheckConsistencyResponse>
|
|
188
|
+
* The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site).
|
|
189
|
+
* @param fabricName Name of the ASR fabric.
|
|
190
|
+
* @param input Fabric creation input.
|
|
191
|
+
* @param options The options parameters.
|
|
115
192
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
193
|
+
async beginCreateAndWait(
|
|
194
|
+
fabricName: string,
|
|
195
|
+
input: FabricCreationInput,
|
|
196
|
+
options?: ReplicationFabricsCreateOptionalParams
|
|
197
|
+
): Promise<ReplicationFabricsCreateResponse> {
|
|
198
|
+
const poller = await this.beginCreate(fabricName, input, options);
|
|
199
|
+
return poller.pollUntilDone();
|
|
119
200
|
}
|
|
120
201
|
|
|
121
202
|
/**
|
|
122
|
-
* The operation to
|
|
123
|
-
* @
|
|
124
|
-
* @param
|
|
125
|
-
* @param [options] The optional parameters
|
|
126
|
-
* @returns Promise<msRest.RestResponse>
|
|
203
|
+
* The operation to purge(force delete) an Azure Site Recovery fabric.
|
|
204
|
+
* @param fabricName ASR fabric to purge.
|
|
205
|
+
* @param options The options parameters.
|
|
127
206
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
207
|
+
async beginPurge(
|
|
208
|
+
fabricName: string,
|
|
209
|
+
options?: ReplicationFabricsPurgeOptionalParams
|
|
210
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
211
|
+
const directSendOperation = async (
|
|
212
|
+
args: coreClient.OperationArguments,
|
|
213
|
+
spec: coreClient.OperationSpec
|
|
214
|
+
): Promise<void> => {
|
|
215
|
+
return this.client.sendOperationRequest(args, spec);
|
|
216
|
+
};
|
|
217
|
+
const sendOperation = async (
|
|
218
|
+
args: coreClient.OperationArguments,
|
|
219
|
+
spec: coreClient.OperationSpec
|
|
220
|
+
) => {
|
|
221
|
+
let currentRawResponse:
|
|
222
|
+
| coreClient.FullOperationResponse
|
|
223
|
+
| undefined = undefined;
|
|
224
|
+
const providedCallback = args.options?.onResponse;
|
|
225
|
+
const callback: coreClient.RawResponseCallback = (
|
|
226
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
227
|
+
flatResponse: unknown
|
|
228
|
+
) => {
|
|
229
|
+
currentRawResponse = rawResponse;
|
|
230
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
231
|
+
};
|
|
232
|
+
const updatedArgs = {
|
|
233
|
+
...args,
|
|
234
|
+
options: {
|
|
235
|
+
...args.options,
|
|
236
|
+
onResponse: callback
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
240
|
+
return {
|
|
241
|
+
flatResponse,
|
|
242
|
+
rawResponse: {
|
|
243
|
+
statusCode: currentRawResponse!.status,
|
|
244
|
+
body: currentRawResponse!.parsedBody,
|
|
245
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
};
|
|
132
249
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return this.beginReassociateGateway(fabricName,failoverProcessServerRequest,options)
|
|
143
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ReplicationFabricsReassociateGatewayResponse>;
|
|
250
|
+
const lro = new LroImpl(
|
|
251
|
+
sendOperation,
|
|
252
|
+
{ fabricName, options },
|
|
253
|
+
purgeOperationSpec
|
|
254
|
+
);
|
|
255
|
+
return new LroEngine(lro, {
|
|
256
|
+
resumeFrom: options?.resumeFrom,
|
|
257
|
+
intervalInMs: options?.updateIntervalInMs
|
|
258
|
+
});
|
|
144
259
|
}
|
|
145
260
|
|
|
146
261
|
/**
|
|
147
|
-
* The operation to delete
|
|
148
|
-
* @
|
|
149
|
-
* @param
|
|
150
|
-
* @param [options] The optional parameters
|
|
151
|
-
* @returns Promise<msRest.RestResponse>
|
|
262
|
+
* The operation to purge(force delete) an Azure Site Recovery fabric.
|
|
263
|
+
* @param fabricName ASR fabric to purge.
|
|
264
|
+
* @param options The options parameters.
|
|
152
265
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
266
|
+
async beginPurgeAndWait(
|
|
267
|
+
fabricName: string,
|
|
268
|
+
options?: ReplicationFabricsPurgeOptionalParams
|
|
269
|
+
): Promise<void> {
|
|
270
|
+
const poller = await this.beginPurge(fabricName, options);
|
|
271
|
+
return poller.pollUntilDone();
|
|
156
272
|
}
|
|
157
273
|
|
|
158
274
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @
|
|
161
|
-
* @param
|
|
162
|
-
* @param renewCertificateParameter Renew certificate input.
|
|
163
|
-
* @param [options] The optional parameters
|
|
164
|
-
* @returns Promise<Models.ReplicationFabricsRenewCertificateResponse>
|
|
275
|
+
* The operation to perform a consistency check on the fabric.
|
|
276
|
+
* @param fabricName Fabric name.
|
|
277
|
+
* @param options The options parameters.
|
|
165
278
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
279
|
+
async beginCheckConsistency(
|
|
280
|
+
fabricName: string,
|
|
281
|
+
options?: ReplicationFabricsCheckConsistencyOptionalParams
|
|
282
|
+
): Promise<
|
|
283
|
+
PollerLike<
|
|
284
|
+
PollOperationState<ReplicationFabricsCheckConsistencyResponse>,
|
|
285
|
+
ReplicationFabricsCheckConsistencyResponse
|
|
286
|
+
>
|
|
287
|
+
> {
|
|
288
|
+
const directSendOperation = async (
|
|
289
|
+
args: coreClient.OperationArguments,
|
|
290
|
+
spec: coreClient.OperationSpec
|
|
291
|
+
): Promise<ReplicationFabricsCheckConsistencyResponse> => {
|
|
292
|
+
return this.client.sendOperationRequest(args, spec);
|
|
293
|
+
};
|
|
294
|
+
const sendOperation = async (
|
|
295
|
+
args: coreClient.OperationArguments,
|
|
296
|
+
spec: coreClient.OperationSpec
|
|
297
|
+
) => {
|
|
298
|
+
let currentRawResponse:
|
|
299
|
+
| coreClient.FullOperationResponse
|
|
300
|
+
| undefined = undefined;
|
|
301
|
+
const providedCallback = args.options?.onResponse;
|
|
302
|
+
const callback: coreClient.RawResponseCallback = (
|
|
303
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
304
|
+
flatResponse: unknown
|
|
305
|
+
) => {
|
|
306
|
+
currentRawResponse = rawResponse;
|
|
307
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
308
|
+
};
|
|
309
|
+
const updatedArgs = {
|
|
310
|
+
...args,
|
|
311
|
+
options: {
|
|
312
|
+
...args.options,
|
|
313
|
+
onResponse: callback
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
317
|
+
return {
|
|
318
|
+
flatResponse,
|
|
319
|
+
rawResponse: {
|
|
320
|
+
statusCode: currentRawResponse!.status,
|
|
321
|
+
body: currentRawResponse!.parsedBody,
|
|
322
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
const lro = new LroImpl(
|
|
328
|
+
sendOperation,
|
|
329
|
+
{ fabricName, options },
|
|
330
|
+
checkConsistencyOperationSpec
|
|
331
|
+
);
|
|
332
|
+
return new LroEngine(lro, {
|
|
333
|
+
resumeFrom: options?.resumeFrom,
|
|
334
|
+
intervalInMs: options?.updateIntervalInMs
|
|
335
|
+
});
|
|
169
336
|
}
|
|
170
337
|
|
|
171
338
|
/**
|
|
172
|
-
* The operation to
|
|
173
|
-
* @
|
|
174
|
-
* @param
|
|
175
|
-
* @param input Fabric creation input.
|
|
176
|
-
* @param [options] The optional parameters
|
|
177
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
339
|
+
* The operation to perform a consistency check on the fabric.
|
|
340
|
+
* @param fabricName Fabric name.
|
|
341
|
+
* @param options The options parameters.
|
|
178
342
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
beginCreateOperationSpec,
|
|
187
|
-
options);
|
|
343
|
+
async beginCheckConsistencyAndWait(
|
|
344
|
+
fabricName: string,
|
|
345
|
+
options?: ReplicationFabricsCheckConsistencyOptionalParams
|
|
346
|
+
): Promise<ReplicationFabricsCheckConsistencyResponse> {
|
|
347
|
+
const poller = await this.beginCheckConsistency(fabricName, options);
|
|
348
|
+
return poller.pollUntilDone();
|
|
188
349
|
}
|
|
189
350
|
|
|
190
351
|
/**
|
|
191
|
-
* The operation to
|
|
192
|
-
* @
|
|
193
|
-
* @param
|
|
194
|
-
* @param [options] The optional parameters
|
|
195
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
352
|
+
* The operation to migrate an Azure Site Recovery fabric to AAD.
|
|
353
|
+
* @param fabricName ASR fabric to migrate.
|
|
354
|
+
* @param options The options parameters.
|
|
196
355
|
*/
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
356
|
+
async beginMigrateToAad(
|
|
357
|
+
fabricName: string,
|
|
358
|
+
options?: ReplicationFabricsMigrateToAadOptionalParams
|
|
359
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
360
|
+
const directSendOperation = async (
|
|
361
|
+
args: coreClient.OperationArguments,
|
|
362
|
+
spec: coreClient.OperationSpec
|
|
363
|
+
): Promise<void> => {
|
|
364
|
+
return this.client.sendOperationRequest(args, spec);
|
|
365
|
+
};
|
|
366
|
+
const sendOperation = async (
|
|
367
|
+
args: coreClient.OperationArguments,
|
|
368
|
+
spec: coreClient.OperationSpec
|
|
369
|
+
) => {
|
|
370
|
+
let currentRawResponse:
|
|
371
|
+
| coreClient.FullOperationResponse
|
|
372
|
+
| undefined = undefined;
|
|
373
|
+
const providedCallback = args.options?.onResponse;
|
|
374
|
+
const callback: coreClient.RawResponseCallback = (
|
|
375
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
376
|
+
flatResponse: unknown
|
|
377
|
+
) => {
|
|
378
|
+
currentRawResponse = rawResponse;
|
|
379
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
380
|
+
};
|
|
381
|
+
const updatedArgs = {
|
|
382
|
+
...args,
|
|
383
|
+
options: {
|
|
384
|
+
...args.options,
|
|
385
|
+
onResponse: callback
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
389
|
+
return {
|
|
390
|
+
flatResponse,
|
|
391
|
+
rawResponse: {
|
|
392
|
+
statusCode: currentRawResponse!.status,
|
|
393
|
+
body: currentRawResponse!.parsedBody,
|
|
394
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
const lro = new LroImpl(
|
|
400
|
+
sendOperation,
|
|
401
|
+
{ fabricName, options },
|
|
402
|
+
migrateToAadOperationSpec
|
|
403
|
+
);
|
|
404
|
+
return new LroEngine(lro, {
|
|
405
|
+
resumeFrom: options?.resumeFrom,
|
|
406
|
+
intervalInMs: options?.updateIntervalInMs
|
|
407
|
+
});
|
|
205
408
|
}
|
|
206
409
|
|
|
207
410
|
/**
|
|
208
|
-
* The operation to
|
|
209
|
-
* @
|
|
210
|
-
* @param
|
|
211
|
-
* @param [options] The optional parameters
|
|
212
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
411
|
+
* The operation to migrate an Azure Site Recovery fabric to AAD.
|
|
412
|
+
* @param fabricName ASR fabric to migrate.
|
|
413
|
+
* @param options The options parameters.
|
|
213
414
|
*/
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
beginCheckConsistencyOperationSpec,
|
|
221
|
-
options);
|
|
415
|
+
async beginMigrateToAadAndWait(
|
|
416
|
+
fabricName: string,
|
|
417
|
+
options?: ReplicationFabricsMigrateToAadOptionalParams
|
|
418
|
+
): Promise<void> {
|
|
419
|
+
const poller = await this.beginMigrateToAad(fabricName, options);
|
|
420
|
+
return poller.pollUntilDone();
|
|
222
421
|
}
|
|
223
422
|
|
|
224
423
|
/**
|
|
225
|
-
* The operation to
|
|
226
|
-
* @
|
|
227
|
-
* @param
|
|
228
|
-
* @param
|
|
229
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
424
|
+
* The operation to move replications from a process server to another process server.
|
|
425
|
+
* @param fabricName The name of the fabric containing the process server.
|
|
426
|
+
* @param failoverProcessServerRequest The input to the failover process server operation.
|
|
427
|
+
* @param options The options parameters.
|
|
230
428
|
*/
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
429
|
+
async beginReassociateGateway(
|
|
430
|
+
fabricName: string,
|
|
431
|
+
failoverProcessServerRequest: FailoverProcessServerRequest,
|
|
432
|
+
options?: ReplicationFabricsReassociateGatewayOptionalParams
|
|
433
|
+
): Promise<
|
|
434
|
+
PollerLike<
|
|
435
|
+
PollOperationState<ReplicationFabricsReassociateGatewayResponse>,
|
|
436
|
+
ReplicationFabricsReassociateGatewayResponse
|
|
437
|
+
>
|
|
438
|
+
> {
|
|
439
|
+
const directSendOperation = async (
|
|
440
|
+
args: coreClient.OperationArguments,
|
|
441
|
+
spec: coreClient.OperationSpec
|
|
442
|
+
): Promise<ReplicationFabricsReassociateGatewayResponse> => {
|
|
443
|
+
return this.client.sendOperationRequest(args, spec);
|
|
444
|
+
};
|
|
445
|
+
const sendOperation = async (
|
|
446
|
+
args: coreClient.OperationArguments,
|
|
447
|
+
spec: coreClient.OperationSpec
|
|
448
|
+
) => {
|
|
449
|
+
let currentRawResponse:
|
|
450
|
+
| coreClient.FullOperationResponse
|
|
451
|
+
| undefined = undefined;
|
|
452
|
+
const providedCallback = args.options?.onResponse;
|
|
453
|
+
const callback: coreClient.RawResponseCallback = (
|
|
454
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
455
|
+
flatResponse: unknown
|
|
456
|
+
) => {
|
|
457
|
+
currentRawResponse = rawResponse;
|
|
458
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
459
|
+
};
|
|
460
|
+
const updatedArgs = {
|
|
461
|
+
...args,
|
|
462
|
+
options: {
|
|
463
|
+
...args.options,
|
|
464
|
+
onResponse: callback
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
468
|
+
return {
|
|
469
|
+
flatResponse,
|
|
470
|
+
rawResponse: {
|
|
471
|
+
statusCode: currentRawResponse!.status,
|
|
472
|
+
body: currentRawResponse!.parsedBody,
|
|
473
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
const lro = new LroImpl(
|
|
479
|
+
sendOperation,
|
|
480
|
+
{ fabricName, failoverProcessServerRequest, options },
|
|
481
|
+
reassociateGatewayOperationSpec
|
|
482
|
+
);
|
|
483
|
+
return new LroEngine(lro, {
|
|
484
|
+
resumeFrom: options?.resumeFrom,
|
|
485
|
+
intervalInMs: options?.updateIntervalInMs
|
|
486
|
+
});
|
|
239
487
|
}
|
|
240
488
|
|
|
241
489
|
/**
|
|
242
490
|
* The operation to move replications from a process server to another process server.
|
|
243
|
-
* @summary Perform failover of the process server.
|
|
244
491
|
* @param fabricName The name of the fabric containing the process server.
|
|
245
492
|
* @param failoverProcessServerRequest The input to the failover process server operation.
|
|
246
|
-
* @param
|
|
247
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
493
|
+
* @param options The options parameters.
|
|
248
494
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
options
|
|
495
|
+
async beginReassociateGatewayAndWait(
|
|
496
|
+
fabricName: string,
|
|
497
|
+
failoverProcessServerRequest: FailoverProcessServerRequest,
|
|
498
|
+
options?: ReplicationFabricsReassociateGatewayOptionalParams
|
|
499
|
+
): Promise<ReplicationFabricsReassociateGatewayResponse> {
|
|
500
|
+
const poller = await this.beginReassociateGateway(
|
|
501
|
+
fabricName,
|
|
502
|
+
failoverProcessServerRequest,
|
|
503
|
+
options
|
|
504
|
+
);
|
|
505
|
+
return poller.pollUntilDone();
|
|
258
506
|
}
|
|
259
507
|
|
|
260
508
|
/**
|
|
261
509
|
* The operation to delete or remove an Azure Site Recovery fabric.
|
|
262
|
-
* @
|
|
263
|
-
* @param
|
|
264
|
-
* @param [options] The optional parameters
|
|
265
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
510
|
+
* @param fabricName ASR fabric to delete.
|
|
511
|
+
* @param options The options parameters.
|
|
266
512
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
513
|
+
async beginDelete(
|
|
514
|
+
fabricName: string,
|
|
515
|
+
options?: ReplicationFabricsDeleteOptionalParams
|
|
516
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
517
|
+
const directSendOperation = async (
|
|
518
|
+
args: coreClient.OperationArguments,
|
|
519
|
+
spec: coreClient.OperationSpec
|
|
520
|
+
): Promise<void> => {
|
|
521
|
+
return this.client.sendOperationRequest(args, spec);
|
|
522
|
+
};
|
|
523
|
+
const sendOperation = async (
|
|
524
|
+
args: coreClient.OperationArguments,
|
|
525
|
+
spec: coreClient.OperationSpec
|
|
526
|
+
) => {
|
|
527
|
+
let currentRawResponse:
|
|
528
|
+
| coreClient.FullOperationResponse
|
|
529
|
+
| undefined = undefined;
|
|
530
|
+
const providedCallback = args.options?.onResponse;
|
|
531
|
+
const callback: coreClient.RawResponseCallback = (
|
|
532
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
533
|
+
flatResponse: unknown
|
|
534
|
+
) => {
|
|
535
|
+
currentRawResponse = rawResponse;
|
|
536
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
537
|
+
};
|
|
538
|
+
const updatedArgs = {
|
|
539
|
+
...args,
|
|
540
|
+
options: {
|
|
541
|
+
...args.options,
|
|
542
|
+
onResponse: callback
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
546
|
+
return {
|
|
547
|
+
flatResponse,
|
|
548
|
+
rawResponse: {
|
|
549
|
+
statusCode: currentRawResponse!.status,
|
|
550
|
+
body: currentRawResponse!.parsedBody,
|
|
551
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
const lro = new LroImpl(
|
|
557
|
+
sendOperation,
|
|
558
|
+
{ fabricName, options },
|
|
559
|
+
deleteOperationSpec
|
|
560
|
+
);
|
|
561
|
+
return new LroEngine(lro, {
|
|
562
|
+
resumeFrom: options?.resumeFrom,
|
|
563
|
+
intervalInMs: options?.updateIntervalInMs
|
|
564
|
+
});
|
|
275
565
|
}
|
|
276
566
|
|
|
277
567
|
/**
|
|
278
|
-
*
|
|
279
|
-
* @
|
|
280
|
-
* @param
|
|
281
|
-
* @param renewCertificateParameter Renew certificate input.
|
|
282
|
-
* @param [options] The optional parameters
|
|
283
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
568
|
+
* The operation to delete or remove an Azure Site Recovery fabric.
|
|
569
|
+
* @param fabricName ASR fabric to delete.
|
|
570
|
+
* @param options The options parameters.
|
|
284
571
|
*/
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
beginRenewCertificateOperationSpec,
|
|
293
|
-
options);
|
|
572
|
+
async beginDeleteAndWait(
|
|
573
|
+
fabricName: string,
|
|
574
|
+
options?: ReplicationFabricsDeleteOptionalParams
|
|
575
|
+
): Promise<void> {
|
|
576
|
+
const poller = await this.beginDelete(fabricName, options);
|
|
577
|
+
return poller.pollUntilDone();
|
|
294
578
|
}
|
|
295
579
|
|
|
296
580
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
301
|
-
* @returns Promise<Models.ReplicationFabricsListNextResponse>
|
|
581
|
+
* Renews the connection certificate for the ASR replication fabric.
|
|
582
|
+
* @param fabricName fabric name to renew certs for.
|
|
583
|
+
* @param renewCertificate Renew certificate input.
|
|
584
|
+
* @param options The options parameters.
|
|
302
585
|
*/
|
|
303
|
-
|
|
586
|
+
async beginRenewCertificate(
|
|
587
|
+
fabricName: string,
|
|
588
|
+
renewCertificate: RenewCertificateInput,
|
|
589
|
+
options?: ReplicationFabricsRenewCertificateOptionalParams
|
|
590
|
+
): Promise<
|
|
591
|
+
PollerLike<
|
|
592
|
+
PollOperationState<ReplicationFabricsRenewCertificateResponse>,
|
|
593
|
+
ReplicationFabricsRenewCertificateResponse
|
|
594
|
+
>
|
|
595
|
+
> {
|
|
596
|
+
const directSendOperation = async (
|
|
597
|
+
args: coreClient.OperationArguments,
|
|
598
|
+
spec: coreClient.OperationSpec
|
|
599
|
+
): Promise<ReplicationFabricsRenewCertificateResponse> => {
|
|
600
|
+
return this.client.sendOperationRequest(args, spec);
|
|
601
|
+
};
|
|
602
|
+
const sendOperation = async (
|
|
603
|
+
args: coreClient.OperationArguments,
|
|
604
|
+
spec: coreClient.OperationSpec
|
|
605
|
+
) => {
|
|
606
|
+
let currentRawResponse:
|
|
607
|
+
| coreClient.FullOperationResponse
|
|
608
|
+
| undefined = undefined;
|
|
609
|
+
const providedCallback = args.options?.onResponse;
|
|
610
|
+
const callback: coreClient.RawResponseCallback = (
|
|
611
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
612
|
+
flatResponse: unknown
|
|
613
|
+
) => {
|
|
614
|
+
currentRawResponse = rawResponse;
|
|
615
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
616
|
+
};
|
|
617
|
+
const updatedArgs = {
|
|
618
|
+
...args,
|
|
619
|
+
options: {
|
|
620
|
+
...args.options,
|
|
621
|
+
onResponse: callback
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
625
|
+
return {
|
|
626
|
+
flatResponse,
|
|
627
|
+
rawResponse: {
|
|
628
|
+
statusCode: currentRawResponse!.status,
|
|
629
|
+
body: currentRawResponse!.parsedBody,
|
|
630
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
const lro = new LroImpl(
|
|
636
|
+
sendOperation,
|
|
637
|
+
{ fabricName, renewCertificate, options },
|
|
638
|
+
renewCertificateOperationSpec
|
|
639
|
+
);
|
|
640
|
+
return new LroEngine(lro, {
|
|
641
|
+
resumeFrom: options?.resumeFrom,
|
|
642
|
+
intervalInMs: options?.updateIntervalInMs
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
|
|
304
646
|
/**
|
|
305
|
-
*
|
|
306
|
-
* @param
|
|
647
|
+
* Renews the connection certificate for the ASR replication fabric.
|
|
648
|
+
* @param fabricName fabric name to renew certs for.
|
|
649
|
+
* @param renewCertificate Renew certificate input.
|
|
650
|
+
* @param options The options parameters.
|
|
307
651
|
*/
|
|
308
|
-
|
|
652
|
+
async beginRenewCertificateAndWait(
|
|
653
|
+
fabricName: string,
|
|
654
|
+
renewCertificate: RenewCertificateInput,
|
|
655
|
+
options?: ReplicationFabricsRenewCertificateOptionalParams
|
|
656
|
+
): Promise<ReplicationFabricsRenewCertificateResponse> {
|
|
657
|
+
const poller = await this.beginRenewCertificate(
|
|
658
|
+
fabricName,
|
|
659
|
+
renewCertificate,
|
|
660
|
+
options
|
|
661
|
+
);
|
|
662
|
+
return poller.pollUntilDone();
|
|
663
|
+
}
|
|
664
|
+
|
|
309
665
|
/**
|
|
310
|
-
*
|
|
311
|
-
* @param
|
|
312
|
-
* @param
|
|
666
|
+
* ListNext
|
|
667
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
668
|
+
* @param options The options parameters.
|
|
313
669
|
*/
|
|
314
|
-
|
|
315
|
-
|
|
670
|
+
private _listNext(
|
|
671
|
+
nextLink: string,
|
|
672
|
+
options?: ReplicationFabricsListNextOptionalParams
|
|
673
|
+
): Promise<ReplicationFabricsListNextResponse> {
|
|
316
674
|
return this.client.sendOperationRequest(
|
|
317
|
-
{
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
listNextOperationSpec,
|
|
322
|
-
callback) as Promise<Models.ReplicationFabricsListNextResponse>;
|
|
675
|
+
{ nextLink, options },
|
|
676
|
+
listNextOperationSpec
|
|
677
|
+
);
|
|
323
678
|
}
|
|
324
679
|
}
|
|
325
|
-
|
|
326
680
|
// Operation Specifications
|
|
327
|
-
const serializer =
|
|
328
|
-
|
|
681
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
682
|
+
|
|
683
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
684
|
+
path:
|
|
685
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics",
|
|
329
686
|
httpMethod: "GET",
|
|
330
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics",
|
|
331
|
-
urlParameters: [
|
|
332
|
-
Parameters.resourceName,
|
|
333
|
-
Parameters.resourceGroupName,
|
|
334
|
-
Parameters.subscriptionId
|
|
335
|
-
],
|
|
336
|
-
queryParameters: [
|
|
337
|
-
Parameters.apiVersion
|
|
338
|
-
],
|
|
339
|
-
headerParameters: [
|
|
340
|
-
Parameters.acceptLanguage
|
|
341
|
-
],
|
|
342
687
|
responses: {
|
|
343
688
|
200: {
|
|
344
689
|
bodyMapper: Mappers.FabricCollection
|
|
345
|
-
},
|
|
346
|
-
default: {
|
|
347
|
-
bodyMapper: Mappers.CloudError
|
|
348
690
|
}
|
|
349
691
|
},
|
|
350
|
-
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
354
|
-
httpMethod: "GET",
|
|
355
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
692
|
+
queryParameters: [Parameters.apiVersion],
|
|
356
693
|
urlParameters: [
|
|
357
|
-
Parameters
|
|
694
|
+
Parameters.$host,
|
|
358
695
|
Parameters.resourceGroupName,
|
|
359
696
|
Parameters.subscriptionId,
|
|
360
|
-
Parameters.
|
|
361
|
-
],
|
|
362
|
-
queryParameters: [
|
|
363
|
-
Parameters.apiVersion
|
|
364
|
-
],
|
|
365
|
-
headerParameters: [
|
|
366
|
-
Parameters.acceptLanguage
|
|
697
|
+
Parameters.resourceName
|
|
367
698
|
],
|
|
699
|
+
headerParameters: [Parameters.accept],
|
|
700
|
+
serializer
|
|
701
|
+
};
|
|
702
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
703
|
+
path:
|
|
704
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
705
|
+
httpMethod: "GET",
|
|
368
706
|
responses: {
|
|
369
707
|
200: {
|
|
370
708
|
bodyMapper: Mappers.Fabric
|
|
371
|
-
},
|
|
372
|
-
default: {
|
|
373
|
-
bodyMapper: Mappers.CloudError
|
|
374
709
|
}
|
|
375
710
|
},
|
|
376
|
-
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
380
|
-
httpMethod: "PUT",
|
|
381
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
711
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
382
712
|
urlParameters: [
|
|
383
|
-
Parameters
|
|
713
|
+
Parameters.$host,
|
|
384
714
|
Parameters.resourceGroupName,
|
|
385
715
|
Parameters.subscriptionId,
|
|
716
|
+
Parameters.resourceName,
|
|
386
717
|
Parameters.fabricName
|
|
387
718
|
],
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
parameterPath: "input",
|
|
396
|
-
mapper: {
|
|
397
|
-
...Mappers.FabricCreationInput,
|
|
398
|
-
required: true
|
|
399
|
-
}
|
|
400
|
-
},
|
|
719
|
+
headerParameters: [Parameters.accept],
|
|
720
|
+
serializer
|
|
721
|
+
};
|
|
722
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
723
|
+
path:
|
|
724
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
725
|
+
httpMethod: "PUT",
|
|
401
726
|
responses: {
|
|
402
727
|
200: {
|
|
403
728
|
bodyMapper: Mappers.Fabric
|
|
404
729
|
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
730
|
+
201: {
|
|
731
|
+
bodyMapper: Mappers.Fabric
|
|
732
|
+
},
|
|
733
|
+
202: {
|
|
734
|
+
bodyMapper: Mappers.Fabric
|
|
735
|
+
},
|
|
736
|
+
204: {
|
|
737
|
+
bodyMapper: Mappers.Fabric
|
|
408
738
|
}
|
|
409
739
|
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const beginPurgeOperationSpec: msRest.OperationSpec = {
|
|
414
|
-
httpMethod: "DELETE",
|
|
415
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
740
|
+
requestBody: Parameters.input,
|
|
741
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
742
|
urlParameters: [
|
|
417
|
-
Parameters
|
|
743
|
+
Parameters.$host,
|
|
418
744
|
Parameters.resourceGroupName,
|
|
419
745
|
Parameters.subscriptionId,
|
|
746
|
+
Parameters.resourceName,
|
|
420
747
|
Parameters.fabricName
|
|
421
748
|
],
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
],
|
|
425
|
-
headerParameters: [
|
|
426
|
-
Parameters.acceptLanguage
|
|
427
|
-
],
|
|
428
|
-
responses: {
|
|
429
|
-
202: {},
|
|
430
|
-
204: {},
|
|
431
|
-
default: {
|
|
432
|
-
bodyMapper: Mappers.CloudError
|
|
433
|
-
}
|
|
434
|
-
},
|
|
749
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
750
|
+
mediaType: "json",
|
|
435
751
|
serializer
|
|
436
752
|
};
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
753
|
+
const purgeOperationSpec: coreClient.OperationSpec = {
|
|
754
|
+
path:
|
|
755
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}",
|
|
756
|
+
httpMethod: "DELETE",
|
|
757
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
758
|
+
queryParameters: [Parameters.apiVersion],
|
|
441
759
|
urlParameters: [
|
|
442
|
-
Parameters
|
|
760
|
+
Parameters.$host,
|
|
443
761
|
Parameters.resourceGroupName,
|
|
444
762
|
Parameters.subscriptionId,
|
|
763
|
+
Parameters.resourceName,
|
|
445
764
|
Parameters.fabricName
|
|
446
765
|
],
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
766
|
+
serializer
|
|
767
|
+
};
|
|
768
|
+
const checkConsistencyOperationSpec: coreClient.OperationSpec = {
|
|
769
|
+
path:
|
|
770
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/checkConsistency",
|
|
771
|
+
httpMethod: "POST",
|
|
453
772
|
responses: {
|
|
454
773
|
200: {
|
|
455
774
|
bodyMapper: Mappers.Fabric
|
|
456
775
|
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
776
|
+
201: {
|
|
777
|
+
bodyMapper: Mappers.Fabric
|
|
778
|
+
},
|
|
779
|
+
202: {
|
|
780
|
+
bodyMapper: Mappers.Fabric
|
|
781
|
+
},
|
|
782
|
+
204: {
|
|
783
|
+
bodyMapper: Mappers.Fabric
|
|
460
784
|
}
|
|
461
785
|
},
|
|
462
|
-
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
const beginMigrateToAadOperationSpec: msRest.OperationSpec = {
|
|
466
|
-
httpMethod: "POST",
|
|
467
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad",
|
|
786
|
+
queryParameters: [Parameters.apiVersion],
|
|
468
787
|
urlParameters: [
|
|
469
|
-
Parameters
|
|
788
|
+
Parameters.$host,
|
|
470
789
|
Parameters.resourceGroupName,
|
|
471
790
|
Parameters.subscriptionId,
|
|
791
|
+
Parameters.resourceName,
|
|
472
792
|
Parameters.fabricName
|
|
473
793
|
],
|
|
474
|
-
|
|
475
|
-
Parameters.apiVersion
|
|
476
|
-
],
|
|
477
|
-
headerParameters: [
|
|
478
|
-
Parameters.acceptLanguage
|
|
479
|
-
],
|
|
480
|
-
responses: {
|
|
481
|
-
202: {},
|
|
482
|
-
204: {},
|
|
483
|
-
default: {
|
|
484
|
-
bodyMapper: Mappers.CloudError
|
|
485
|
-
}
|
|
486
|
-
},
|
|
794
|
+
headerParameters: [Parameters.accept],
|
|
487
795
|
serializer
|
|
488
796
|
};
|
|
489
|
-
|
|
490
|
-
|
|
797
|
+
const migrateToAadOperationSpec: coreClient.OperationSpec = {
|
|
798
|
+
path:
|
|
799
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/migratetoaad",
|
|
491
800
|
httpMethod: "POST",
|
|
492
|
-
|
|
801
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
802
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
803
|
urlParameters: [
|
|
494
|
-
Parameters
|
|
804
|
+
Parameters.$host,
|
|
495
805
|
Parameters.resourceGroupName,
|
|
496
806
|
Parameters.subscriptionId,
|
|
807
|
+
Parameters.resourceName,
|
|
497
808
|
Parameters.fabricName
|
|
498
809
|
],
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
requestBody: {
|
|
506
|
-
parameterPath: "failoverProcessServerRequest",
|
|
507
|
-
mapper: {
|
|
508
|
-
...Mappers.FailoverProcessServerRequest,
|
|
509
|
-
required: true
|
|
510
|
-
}
|
|
511
|
-
},
|
|
810
|
+
serializer
|
|
811
|
+
};
|
|
812
|
+
const reassociateGatewayOperationSpec: coreClient.OperationSpec = {
|
|
813
|
+
path:
|
|
814
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/reassociateGateway",
|
|
815
|
+
httpMethod: "POST",
|
|
512
816
|
responses: {
|
|
513
817
|
200: {
|
|
514
818
|
bodyMapper: Mappers.Fabric
|
|
515
819
|
},
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
820
|
+
201: {
|
|
821
|
+
bodyMapper: Mappers.Fabric
|
|
822
|
+
},
|
|
823
|
+
202: {
|
|
824
|
+
bodyMapper: Mappers.Fabric
|
|
825
|
+
},
|
|
826
|
+
204: {
|
|
827
|
+
bodyMapper: Mappers.Fabric
|
|
519
828
|
}
|
|
520
829
|
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
525
|
-
httpMethod: "POST",
|
|
526
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove",
|
|
830
|
+
requestBody: Parameters.failoverProcessServerRequest,
|
|
831
|
+
queryParameters: [Parameters.apiVersion],
|
|
527
832
|
urlParameters: [
|
|
528
|
-
Parameters
|
|
833
|
+
Parameters.$host,
|
|
529
834
|
Parameters.resourceGroupName,
|
|
530
835
|
Parameters.subscriptionId,
|
|
836
|
+
Parameters.resourceName,
|
|
531
837
|
Parameters.fabricName
|
|
532
838
|
],
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
],
|
|
536
|
-
headerParameters: [
|
|
537
|
-
Parameters.acceptLanguage
|
|
538
|
-
],
|
|
539
|
-
responses: {
|
|
540
|
-
202: {},
|
|
541
|
-
204: {},
|
|
542
|
-
default: {
|
|
543
|
-
bodyMapper: Mappers.CloudError
|
|
544
|
-
}
|
|
545
|
-
},
|
|
839
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
840
|
+
mediaType: "json",
|
|
546
841
|
serializer
|
|
547
842
|
};
|
|
548
|
-
|
|
549
|
-
|
|
843
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
844
|
+
path:
|
|
845
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/remove",
|
|
550
846
|
httpMethod: "POST",
|
|
551
|
-
|
|
847
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
848
|
+
queryParameters: [Parameters.apiVersion],
|
|
552
849
|
urlParameters: [
|
|
553
|
-
Parameters
|
|
850
|
+
Parameters.$host,
|
|
554
851
|
Parameters.resourceGroupName,
|
|
555
852
|
Parameters.subscriptionId,
|
|
853
|
+
Parameters.resourceName,
|
|
556
854
|
Parameters.fabricName
|
|
557
855
|
],
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
requestBody: {
|
|
565
|
-
parameterPath: "renewCertificateParameter",
|
|
566
|
-
mapper: {
|
|
567
|
-
...Mappers.RenewCertificateInput,
|
|
568
|
-
required: true
|
|
569
|
-
}
|
|
570
|
-
},
|
|
856
|
+
serializer
|
|
857
|
+
};
|
|
858
|
+
const renewCertificateOperationSpec: coreClient.OperationSpec = {
|
|
859
|
+
path:
|
|
860
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/renewCertificate",
|
|
861
|
+
httpMethod: "POST",
|
|
571
862
|
responses: {
|
|
572
863
|
200: {
|
|
573
864
|
bodyMapper: Mappers.Fabric
|
|
574
865
|
},
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
866
|
+
201: {
|
|
867
|
+
bodyMapper: Mappers.Fabric
|
|
868
|
+
},
|
|
869
|
+
202: {
|
|
870
|
+
bodyMapper: Mappers.Fabric
|
|
871
|
+
},
|
|
872
|
+
204: {
|
|
873
|
+
bodyMapper: Mappers.Fabric
|
|
578
874
|
}
|
|
579
875
|
},
|
|
876
|
+
requestBody: Parameters.renewCertificate,
|
|
877
|
+
queryParameters: [Parameters.apiVersion],
|
|
878
|
+
urlParameters: [
|
|
879
|
+
Parameters.$host,
|
|
880
|
+
Parameters.resourceGroupName,
|
|
881
|
+
Parameters.subscriptionId,
|
|
882
|
+
Parameters.resourceName,
|
|
883
|
+
Parameters.fabricName
|
|
884
|
+
],
|
|
885
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
886
|
+
mediaType: "json",
|
|
580
887
|
serializer
|
|
581
888
|
};
|
|
582
|
-
|
|
583
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
584
|
-
httpMethod: "GET",
|
|
585
|
-
baseUrl: "https://management.azure.com",
|
|
889
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
586
890
|
path: "{nextLink}",
|
|
587
|
-
|
|
588
|
-
Parameters.nextPageLink
|
|
589
|
-
],
|
|
590
|
-
headerParameters: [
|
|
591
|
-
Parameters.acceptLanguage
|
|
592
|
-
],
|
|
891
|
+
httpMethod: "GET",
|
|
593
892
|
responses: {
|
|
594
893
|
200: {
|
|
595
894
|
bodyMapper: Mappers.FabricCollection
|
|
596
|
-
},
|
|
597
|
-
default: {
|
|
598
|
-
bodyMapper: Mappers.CloudError
|
|
599
895
|
}
|
|
600
896
|
},
|
|
897
|
+
queryParameters: [Parameters.apiVersion],
|
|
898
|
+
urlParameters: [
|
|
899
|
+
Parameters.$host,
|
|
900
|
+
Parameters.resourceGroupName,
|
|
901
|
+
Parameters.subscriptionId,
|
|
902
|
+
Parameters.nextLink,
|
|
903
|
+
Parameters.resourceName
|
|
904
|
+
],
|
|
905
|
+
headerParameters: [Parameters.accept],
|
|
601
906
|
serializer
|
|
602
907
|
};
|