@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,568 +1,799 @@
|
|
|
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 { ReplicationProtectionContainers } 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
|
+
ProtectionContainer,
|
|
19
|
+
ReplicationProtectionContainersListByReplicationFabricsNextOptionalParams,
|
|
20
|
+
ReplicationProtectionContainersListByReplicationFabricsOptionalParams,
|
|
21
|
+
ReplicationProtectionContainersListNextOptionalParams,
|
|
22
|
+
ReplicationProtectionContainersListOptionalParams,
|
|
23
|
+
ReplicationProtectionContainersListByReplicationFabricsResponse,
|
|
24
|
+
ReplicationProtectionContainersGetOptionalParams,
|
|
25
|
+
ReplicationProtectionContainersGetResponse,
|
|
26
|
+
CreateProtectionContainerInput,
|
|
27
|
+
ReplicationProtectionContainersCreateOptionalParams,
|
|
28
|
+
ReplicationProtectionContainersCreateResponse,
|
|
29
|
+
DiscoverProtectableItemRequest,
|
|
30
|
+
ReplicationProtectionContainersDiscoverProtectableItemOptionalParams,
|
|
31
|
+
ReplicationProtectionContainersDiscoverProtectableItemResponse,
|
|
32
|
+
ReplicationProtectionContainersDeleteOptionalParams,
|
|
33
|
+
SwitchProtectionInput,
|
|
34
|
+
ReplicationProtectionContainersSwitchProtectionOptionalParams,
|
|
35
|
+
ReplicationProtectionContainersSwitchProtectionResponse,
|
|
36
|
+
ReplicationProtectionContainersListResponse,
|
|
37
|
+
ReplicationProtectionContainersListByReplicationFabricsNextResponse,
|
|
38
|
+
ReplicationProtectionContainersListNextResponse
|
|
39
|
+
} from "../models";
|
|
17
40
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
41
|
+
/// <reference lib="esnext.asynciterable" />
|
|
42
|
+
/** Class containing ReplicationProtectionContainers operations. */
|
|
43
|
+
export class ReplicationProtectionContainersImpl
|
|
44
|
+
implements ReplicationProtectionContainers {
|
|
45
|
+
private readonly client: SiteRecoveryManagementClient;
|
|
21
46
|
|
|
22
47
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
48
|
+
* Initialize a new instance of the class ReplicationProtectionContainers class.
|
|
49
|
+
* @param client Reference to the service client
|
|
25
50
|
*/
|
|
26
|
-
constructor(client:
|
|
51
|
+
constructor(client: SiteRecoveryManagementClient) {
|
|
27
52
|
this.client = client;
|
|
28
53
|
}
|
|
29
54
|
|
|
30
55
|
/**
|
|
31
56
|
* Lists the protection containers in the specified fabric.
|
|
32
|
-
* @summary Gets the list of protection container for a fabric.
|
|
33
57
|
* @param fabricName Fabric name.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.ReplicationProtectionContainersListByReplicationFabricsResponse>
|
|
58
|
+
* @param options The options parameters.
|
|
36
59
|
*/
|
|
37
|
-
listByReplicationFabrics(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
public listByReplicationFabrics(
|
|
61
|
+
fabricName: string,
|
|
62
|
+
options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams
|
|
63
|
+
): PagedAsyncIterableIterator<ProtectionContainer> {
|
|
64
|
+
const iter = this.listByReplicationFabricsPagingAll(fabricName, options);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: () => {
|
|
73
|
+
return this.listByReplicationFabricsPagingPage(fabricName, options);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listByReplicationFabricsPagingPage(
|
|
79
|
+
fabricName: string,
|
|
80
|
+
options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams
|
|
81
|
+
): AsyncIterableIterator<ProtectionContainer[]> {
|
|
82
|
+
let result = await this._listByReplicationFabrics(fabricName, options);
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
let continuationToken = result.nextLink;
|
|
85
|
+
while (continuationToken) {
|
|
86
|
+
result = await this._listByReplicationFabricsNext(
|
|
52
87
|
fabricName,
|
|
88
|
+
continuationToken,
|
|
53
89
|
options
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
90
|
+
);
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
yield result.value || [];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private async *listByReplicationFabricsPagingAll(
|
|
97
|
+
fabricName: string,
|
|
98
|
+
options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams
|
|
99
|
+
): AsyncIterableIterator<ProtectionContainer> {
|
|
100
|
+
for await (const page of this.listByReplicationFabricsPagingPage(
|
|
101
|
+
fabricName,
|
|
102
|
+
options
|
|
103
|
+
)) {
|
|
104
|
+
yield* page;
|
|
105
|
+
}
|
|
57
106
|
}
|
|
58
107
|
|
|
59
108
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @
|
|
62
|
-
* @param fabricName Fabric name.
|
|
63
|
-
* @param protectionContainerName Protection container name.
|
|
64
|
-
* @param [options] The optional parameters
|
|
65
|
-
* @returns Promise<Models.ReplicationProtectionContainersGetResponse>
|
|
109
|
+
* Lists the protection containers in a vault.
|
|
110
|
+
* @param options The options parameters.
|
|
66
111
|
*/
|
|
67
|
-
|
|
112
|
+
public list(
|
|
113
|
+
options?: ReplicationProtectionContainersListOptionalParams
|
|
114
|
+
): PagedAsyncIterableIterator<ProtectionContainer> {
|
|
115
|
+
const iter = this.listPagingAll(options);
|
|
116
|
+
return {
|
|
117
|
+
next() {
|
|
118
|
+
return iter.next();
|
|
119
|
+
},
|
|
120
|
+
[Symbol.asyncIterator]() {
|
|
121
|
+
return this;
|
|
122
|
+
},
|
|
123
|
+
byPage: () => {
|
|
124
|
+
return this.listPagingPage(options);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
private async *listPagingPage(
|
|
130
|
+
options?: ReplicationProtectionContainersListOptionalParams
|
|
131
|
+
): AsyncIterableIterator<ProtectionContainer[]> {
|
|
132
|
+
let result = await this._list(options);
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
let continuationToken = result.nextLink;
|
|
135
|
+
while (continuationToken) {
|
|
136
|
+
result = await this._listNext(continuationToken, options);
|
|
137
|
+
continuationToken = result.nextLink;
|
|
138
|
+
yield result.value || [];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
private async *listPagingAll(
|
|
143
|
+
options?: ReplicationProtectionContainersListOptionalParams
|
|
144
|
+
): AsyncIterableIterator<ProtectionContainer> {
|
|
145
|
+
for await (const page of this.listPagingPage(options)) {
|
|
146
|
+
yield* page;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
68
150
|
/**
|
|
151
|
+
* Lists the protection containers in the specified fabric.
|
|
69
152
|
* @param fabricName Fabric name.
|
|
70
|
-
* @param
|
|
71
|
-
* @param callback The callback
|
|
153
|
+
* @param options The options parameters.
|
|
72
154
|
*/
|
|
73
|
-
|
|
155
|
+
private _listByReplicationFabrics(
|
|
156
|
+
fabricName: string,
|
|
157
|
+
options?: ReplicationProtectionContainersListByReplicationFabricsOptionalParams
|
|
158
|
+
): Promise<ReplicationProtectionContainersListByReplicationFabricsResponse> {
|
|
159
|
+
return this.client.sendOperationRequest(
|
|
160
|
+
{ fabricName, options },
|
|
161
|
+
listByReplicationFabricsOperationSpec
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
74
165
|
/**
|
|
166
|
+
* Gets the details of a protection container.
|
|
75
167
|
* @param fabricName Fabric name.
|
|
76
168
|
* @param protectionContainerName Protection container name.
|
|
77
|
-
* @param options The
|
|
78
|
-
* @param callback The callback
|
|
169
|
+
* @param options The options parameters.
|
|
79
170
|
*/
|
|
80
|
-
get(
|
|
81
|
-
|
|
171
|
+
get(
|
|
172
|
+
fabricName: string,
|
|
173
|
+
protectionContainerName: string,
|
|
174
|
+
options?: ReplicationProtectionContainersGetOptionalParams
|
|
175
|
+
): Promise<ReplicationProtectionContainersGetResponse> {
|
|
82
176
|
return this.client.sendOperationRequest(
|
|
83
|
-
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
options
|
|
87
|
-
},
|
|
88
|
-
getOperationSpec,
|
|
89
|
-
callback) as Promise<Models.ReplicationProtectionContainersGetResponse>;
|
|
177
|
+
{ fabricName, protectionContainerName, options },
|
|
178
|
+
getOperationSpec
|
|
179
|
+
);
|
|
90
180
|
}
|
|
91
181
|
|
|
92
182
|
/**
|
|
93
183
|
* Operation to create a protection container.
|
|
94
|
-
* @summary Create a protection container.
|
|
95
184
|
* @param fabricName Unique fabric ARM name.
|
|
96
185
|
* @param protectionContainerName Unique protection container ARM name.
|
|
97
186
|
* @param creationInput Creation input.
|
|
98
|
-
* @param
|
|
99
|
-
* @returns Promise<Models.ReplicationProtectionContainersCreateResponse>
|
|
187
|
+
* @param options The options parameters.
|
|
100
188
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
189
|
+
async beginCreate(
|
|
190
|
+
fabricName: string,
|
|
191
|
+
protectionContainerName: string,
|
|
192
|
+
creationInput: CreateProtectionContainerInput,
|
|
193
|
+
options?: ReplicationProtectionContainersCreateOptionalParams
|
|
194
|
+
): Promise<
|
|
195
|
+
PollerLike<
|
|
196
|
+
PollOperationState<ReplicationProtectionContainersCreateResponse>,
|
|
197
|
+
ReplicationProtectionContainersCreateResponse
|
|
198
|
+
>
|
|
199
|
+
> {
|
|
200
|
+
const directSendOperation = async (
|
|
201
|
+
args: coreClient.OperationArguments,
|
|
202
|
+
spec: coreClient.OperationSpec
|
|
203
|
+
): Promise<ReplicationProtectionContainersCreateResponse> => {
|
|
204
|
+
return this.client.sendOperationRequest(args, spec);
|
|
205
|
+
};
|
|
206
|
+
const sendOperation = async (
|
|
207
|
+
args: coreClient.OperationArguments,
|
|
208
|
+
spec: coreClient.OperationSpec
|
|
209
|
+
) => {
|
|
210
|
+
let currentRawResponse:
|
|
211
|
+
| coreClient.FullOperationResponse
|
|
212
|
+
| undefined = undefined;
|
|
213
|
+
const providedCallback = args.options?.onResponse;
|
|
214
|
+
const callback: coreClient.RawResponseCallback = (
|
|
215
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
216
|
+
flatResponse: unknown
|
|
217
|
+
) => {
|
|
218
|
+
currentRawResponse = rawResponse;
|
|
219
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
220
|
+
};
|
|
221
|
+
const updatedArgs = {
|
|
222
|
+
...args,
|
|
223
|
+
options: {
|
|
224
|
+
...args.options,
|
|
225
|
+
onResponse: callback
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
229
|
+
return {
|
|
230
|
+
flatResponse,
|
|
231
|
+
rawResponse: {
|
|
232
|
+
statusCode: currentRawResponse!.status,
|
|
233
|
+
body: currentRawResponse!.parsedBody,
|
|
234
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
};
|
|
105
238
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
discoverProtectableItem(fabricName: string, protectionContainerName: string, discoverProtectableItemRequest: Models.DiscoverProtectableItemRequest, options?: msRest.RequestOptionsBase): Promise<Models.ReplicationProtectionContainersDiscoverProtectableItemResponse> {
|
|
116
|
-
return this.beginDiscoverProtectableItem(fabricName,protectionContainerName,discoverProtectableItemRequest,options)
|
|
117
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ReplicationProtectionContainersDiscoverProtectableItemResponse>;
|
|
239
|
+
const lro = new LroImpl(
|
|
240
|
+
sendOperation,
|
|
241
|
+
{ fabricName, protectionContainerName, creationInput, options },
|
|
242
|
+
createOperationSpec
|
|
243
|
+
);
|
|
244
|
+
return new LroEngine(lro, {
|
|
245
|
+
resumeFrom: options?.resumeFrom,
|
|
246
|
+
intervalInMs: options?.updateIntervalInMs
|
|
247
|
+
});
|
|
118
248
|
}
|
|
119
249
|
|
|
120
250
|
/**
|
|
121
|
-
* Operation to
|
|
122
|
-
* @summary Removes a protection container.
|
|
251
|
+
* Operation to create a protection container.
|
|
123
252
|
* @param fabricName Unique fabric ARM name.
|
|
124
253
|
* @param protectionContainerName Unique protection container ARM name.
|
|
125
|
-
* @param
|
|
126
|
-
* @
|
|
127
|
-
*/
|
|
128
|
-
deleteMethod(fabricName: string, protectionContainerName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
129
|
-
return this.beginDeleteMethod(fabricName,protectionContainerName,options)
|
|
130
|
-
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Operation to switch protection from one container to another or one replication provider to
|
|
135
|
-
* another.
|
|
136
|
-
* @summary Switches protection from one container to another or one replication provider to
|
|
137
|
-
* another.
|
|
138
|
-
* @param fabricName Unique fabric name.
|
|
139
|
-
* @param protectionContainerName Protection container name.
|
|
140
|
-
* @param switchInput Switch protection input.
|
|
141
|
-
* @param [options] The optional parameters
|
|
142
|
-
* @returns Promise<Models.ReplicationProtectionContainersSwitchProtectionResponse>
|
|
254
|
+
* @param creationInput Creation input.
|
|
255
|
+
* @param options The options parameters.
|
|
143
256
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
257
|
+
async beginCreateAndWait(
|
|
258
|
+
fabricName: string,
|
|
259
|
+
protectionContainerName: string,
|
|
260
|
+
creationInput: CreateProtectionContainerInput,
|
|
261
|
+
options?: ReplicationProtectionContainersCreateOptionalParams
|
|
262
|
+
): Promise<ReplicationProtectionContainersCreateResponse> {
|
|
263
|
+
const poller = await this.beginCreate(
|
|
264
|
+
fabricName,
|
|
265
|
+
protectionContainerName,
|
|
266
|
+
creationInput,
|
|
267
|
+
options
|
|
268
|
+
);
|
|
269
|
+
return poller.pollUntilDone();
|
|
147
270
|
}
|
|
148
271
|
|
|
149
272
|
/**
|
|
150
|
-
*
|
|
151
|
-
* @
|
|
152
|
-
* @param
|
|
153
|
-
* @
|
|
154
|
-
|
|
155
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.ReplicationProtectionContainersListResponse>;
|
|
156
|
-
/**
|
|
157
|
-
* @param callback The callback
|
|
158
|
-
*/
|
|
159
|
-
list(callback: msRest.ServiceCallback<Models.ProtectionContainerCollection>): void;
|
|
160
|
-
/**
|
|
161
|
-
* @param options The optional parameters
|
|
162
|
-
* @param callback The callback
|
|
273
|
+
* The operation to a add a protectable item to a protection container(Add physical server).
|
|
274
|
+
* @param fabricName The name of the fabric.
|
|
275
|
+
* @param protectionContainerName The name of the protection container.
|
|
276
|
+
* @param discoverProtectableItemRequest The request object to add a protectable item.
|
|
277
|
+
* @param options The options parameters.
|
|
163
278
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
279
|
+
async beginDiscoverProtectableItem(
|
|
280
|
+
fabricName: string,
|
|
281
|
+
protectionContainerName: string,
|
|
282
|
+
discoverProtectableItemRequest: DiscoverProtectableItemRequest,
|
|
283
|
+
options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams
|
|
284
|
+
): Promise<
|
|
285
|
+
PollerLike<
|
|
286
|
+
PollOperationState<
|
|
287
|
+
ReplicationProtectionContainersDiscoverProtectableItemResponse
|
|
288
|
+
>,
|
|
289
|
+
ReplicationProtectionContainersDiscoverProtectableItemResponse
|
|
290
|
+
>
|
|
291
|
+
> {
|
|
292
|
+
const directSendOperation = async (
|
|
293
|
+
args: coreClient.OperationArguments,
|
|
294
|
+
spec: coreClient.OperationSpec
|
|
295
|
+
): Promise<ReplicationProtectionContainersDiscoverProtectableItemResponse> => {
|
|
296
|
+
return this.client.sendOperationRequest(args, spec);
|
|
297
|
+
};
|
|
298
|
+
const sendOperation = async (
|
|
299
|
+
args: coreClient.OperationArguments,
|
|
300
|
+
spec: coreClient.OperationSpec
|
|
301
|
+
) => {
|
|
302
|
+
let currentRawResponse:
|
|
303
|
+
| coreClient.FullOperationResponse
|
|
304
|
+
| undefined = undefined;
|
|
305
|
+
const providedCallback = args.options?.onResponse;
|
|
306
|
+
const callback: coreClient.RawResponseCallback = (
|
|
307
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
308
|
+
flatResponse: unknown
|
|
309
|
+
) => {
|
|
310
|
+
currentRawResponse = rawResponse;
|
|
311
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
312
|
+
};
|
|
313
|
+
const updatedArgs = {
|
|
314
|
+
...args,
|
|
315
|
+
options: {
|
|
316
|
+
...args.options,
|
|
317
|
+
onResponse: callback
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
321
|
+
return {
|
|
322
|
+
flatResponse,
|
|
323
|
+
rawResponse: {
|
|
324
|
+
statusCode: currentRawResponse!.status,
|
|
325
|
+
body: currentRawResponse!.parsedBody,
|
|
326
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
};
|
|
173
330
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
* @summary Create a protection container.
|
|
177
|
-
* @param fabricName Unique fabric ARM name.
|
|
178
|
-
* @param protectionContainerName Unique protection container ARM name.
|
|
179
|
-
* @param creationInput Creation input.
|
|
180
|
-
* @param [options] The optional parameters
|
|
181
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
182
|
-
*/
|
|
183
|
-
beginCreate(fabricName: string, protectionContainerName: string, creationInput: Models.CreateProtectionContainerInput, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
184
|
-
return this.client.sendLRORequest(
|
|
331
|
+
const lro = new LroImpl(
|
|
332
|
+
sendOperation,
|
|
185
333
|
{
|
|
186
334
|
fabricName,
|
|
187
335
|
protectionContainerName,
|
|
188
|
-
|
|
336
|
+
discoverProtectableItemRequest,
|
|
189
337
|
options
|
|
190
338
|
},
|
|
191
|
-
|
|
192
|
-
|
|
339
|
+
discoverProtectableItemOperationSpec
|
|
340
|
+
);
|
|
341
|
+
return new LroEngine(lro, {
|
|
342
|
+
resumeFrom: options?.resumeFrom,
|
|
343
|
+
intervalInMs: options?.updateIntervalInMs
|
|
344
|
+
});
|
|
193
345
|
}
|
|
194
346
|
|
|
195
347
|
/**
|
|
196
|
-
* The operation to a add a protectable item to a protection container(Add physical server.
|
|
197
|
-
* @summary Adds a protectable item to the replication protection container.
|
|
348
|
+
* The operation to a add a protectable item to a protection container(Add physical server).
|
|
198
349
|
* @param fabricName The name of the fabric.
|
|
199
350
|
* @param protectionContainerName The name of the protection container.
|
|
200
351
|
* @param discoverProtectableItemRequest The request object to add a protectable item.
|
|
201
|
-
* @param
|
|
202
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
352
|
+
* @param options The options parameters.
|
|
203
353
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
354
|
+
async beginDiscoverProtectableItemAndWait(
|
|
355
|
+
fabricName: string,
|
|
356
|
+
protectionContainerName: string,
|
|
357
|
+
discoverProtectableItemRequest: DiscoverProtectableItemRequest,
|
|
358
|
+
options?: ReplicationProtectionContainersDiscoverProtectableItemOptionalParams
|
|
359
|
+
): Promise<ReplicationProtectionContainersDiscoverProtectableItemResponse> {
|
|
360
|
+
const poller = await this.beginDiscoverProtectableItem(
|
|
361
|
+
fabricName,
|
|
362
|
+
protectionContainerName,
|
|
363
|
+
discoverProtectableItemRequest,
|
|
364
|
+
options
|
|
365
|
+
);
|
|
366
|
+
return poller.pollUntilDone();
|
|
214
367
|
}
|
|
215
368
|
|
|
216
369
|
/**
|
|
217
370
|
* Operation to remove a protection container.
|
|
218
|
-
* @summary Removes a protection container.
|
|
219
371
|
* @param fabricName Unique fabric ARM name.
|
|
220
372
|
* @param protectionContainerName Unique protection container ARM name.
|
|
221
|
-
* @param
|
|
222
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
373
|
+
* @param options The options parameters.
|
|
223
374
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
375
|
+
async beginDelete(
|
|
376
|
+
fabricName: string,
|
|
377
|
+
protectionContainerName: string,
|
|
378
|
+
options?: ReplicationProtectionContainersDeleteOptionalParams
|
|
379
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
380
|
+
const directSendOperation = async (
|
|
381
|
+
args: coreClient.OperationArguments,
|
|
382
|
+
spec: coreClient.OperationSpec
|
|
383
|
+
): Promise<void> => {
|
|
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
|
+
{ fabricName, protectionContainerName, options },
|
|
422
|
+
deleteOperationSpec
|
|
423
|
+
);
|
|
424
|
+
return new LroEngine(lro, {
|
|
425
|
+
resumeFrom: options?.resumeFrom,
|
|
426
|
+
intervalInMs: options?.updateIntervalInMs
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Operation to remove a protection container.
|
|
432
|
+
* @param fabricName Unique fabric ARM name.
|
|
433
|
+
* @param protectionContainerName Unique protection container ARM name.
|
|
434
|
+
* @param options The options parameters.
|
|
435
|
+
*/
|
|
436
|
+
async beginDeleteAndWait(
|
|
437
|
+
fabricName: string,
|
|
438
|
+
protectionContainerName: string,
|
|
439
|
+
options?: ReplicationProtectionContainersDeleteOptionalParams
|
|
440
|
+
): Promise<void> {
|
|
441
|
+
const poller = await this.beginDelete(
|
|
442
|
+
fabricName,
|
|
443
|
+
protectionContainerName,
|
|
444
|
+
options
|
|
445
|
+
);
|
|
446
|
+
return poller.pollUntilDone();
|
|
233
447
|
}
|
|
234
448
|
|
|
235
449
|
/**
|
|
236
|
-
* Operation to switch protection from one container to another or one replication provider to
|
|
237
|
-
* another.
|
|
238
|
-
* @summary Switches protection from one container to another or one replication provider to
|
|
239
|
-
* another.
|
|
450
|
+
* Operation to switch protection from one container to another or one replication provider to another.
|
|
240
451
|
* @param fabricName Unique fabric name.
|
|
241
452
|
* @param protectionContainerName Protection container name.
|
|
242
453
|
* @param switchInput Switch protection input.
|
|
243
|
-
* @param
|
|
244
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
454
|
+
* @param options The options parameters.
|
|
245
455
|
*/
|
|
246
|
-
beginSwitchProtection(
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
456
|
+
async beginSwitchProtection(
|
|
457
|
+
fabricName: string,
|
|
458
|
+
protectionContainerName: string,
|
|
459
|
+
switchInput: SwitchProtectionInput,
|
|
460
|
+
options?: ReplicationProtectionContainersSwitchProtectionOptionalParams
|
|
461
|
+
): Promise<
|
|
462
|
+
PollerLike<
|
|
463
|
+
PollOperationState<
|
|
464
|
+
ReplicationProtectionContainersSwitchProtectionResponse
|
|
465
|
+
>,
|
|
466
|
+
ReplicationProtectionContainersSwitchProtectionResponse
|
|
467
|
+
>
|
|
468
|
+
> {
|
|
469
|
+
const directSendOperation = async (
|
|
470
|
+
args: coreClient.OperationArguments,
|
|
471
|
+
spec: coreClient.OperationSpec
|
|
472
|
+
): Promise<ReplicationProtectionContainersSwitchProtectionResponse> => {
|
|
473
|
+
return this.client.sendOperationRequest(args, spec);
|
|
474
|
+
};
|
|
475
|
+
const sendOperation = async (
|
|
476
|
+
args: coreClient.OperationArguments,
|
|
477
|
+
spec: coreClient.OperationSpec
|
|
478
|
+
) => {
|
|
479
|
+
let currentRawResponse:
|
|
480
|
+
| coreClient.FullOperationResponse
|
|
481
|
+
| undefined = undefined;
|
|
482
|
+
const providedCallback = args.options?.onResponse;
|
|
483
|
+
const callback: coreClient.RawResponseCallback = (
|
|
484
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
485
|
+
flatResponse: unknown
|
|
486
|
+
) => {
|
|
487
|
+
currentRawResponse = rawResponse;
|
|
488
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
489
|
+
};
|
|
490
|
+
const updatedArgs = {
|
|
491
|
+
...args,
|
|
492
|
+
options: {
|
|
493
|
+
...args.options,
|
|
494
|
+
onResponse: callback
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
498
|
+
return {
|
|
499
|
+
flatResponse,
|
|
500
|
+
rawResponse: {
|
|
501
|
+
statusCode: currentRawResponse!.status,
|
|
502
|
+
body: currentRawResponse!.parsedBody,
|
|
503
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
const lro = new LroImpl(
|
|
509
|
+
sendOperation,
|
|
510
|
+
{ fabricName, protectionContainerName, switchInput, options },
|
|
511
|
+
switchProtectionOperationSpec
|
|
512
|
+
);
|
|
513
|
+
return new LroEngine(lro, {
|
|
514
|
+
resumeFrom: options?.resumeFrom,
|
|
515
|
+
intervalInMs: options?.updateIntervalInMs
|
|
516
|
+
});
|
|
256
517
|
}
|
|
257
518
|
|
|
258
519
|
/**
|
|
259
|
-
*
|
|
260
|
-
* @
|
|
261
|
-
* @param
|
|
262
|
-
* @param
|
|
263
|
-
* @
|
|
264
|
-
*/
|
|
265
|
-
listByReplicationFabricsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ReplicationProtectionContainersListByReplicationFabricsNextResponse>;
|
|
266
|
-
/**
|
|
267
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
268
|
-
* @param callback The callback
|
|
269
|
-
*/
|
|
270
|
-
listByReplicationFabricsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProtectionContainerCollection>): void;
|
|
271
|
-
/**
|
|
272
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
273
|
-
* @param options The optional parameters
|
|
274
|
-
* @param callback The callback
|
|
520
|
+
* Operation to switch protection from one container to another or one replication provider to another.
|
|
521
|
+
* @param fabricName Unique fabric name.
|
|
522
|
+
* @param protectionContainerName Protection container name.
|
|
523
|
+
* @param switchInput Switch protection input.
|
|
524
|
+
* @param options The options parameters.
|
|
275
525
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
526
|
+
async beginSwitchProtectionAndWait(
|
|
527
|
+
fabricName: string,
|
|
528
|
+
protectionContainerName: string,
|
|
529
|
+
switchInput: SwitchProtectionInput,
|
|
530
|
+
options?: ReplicationProtectionContainersSwitchProtectionOptionalParams
|
|
531
|
+
): Promise<ReplicationProtectionContainersSwitchProtectionResponse> {
|
|
532
|
+
const poller = await this.beginSwitchProtection(
|
|
533
|
+
fabricName,
|
|
534
|
+
protectionContainerName,
|
|
535
|
+
switchInput,
|
|
536
|
+
options
|
|
537
|
+
);
|
|
538
|
+
return poller.pollUntilDone();
|
|
285
539
|
}
|
|
286
540
|
|
|
287
541
|
/**
|
|
288
542
|
* Lists the protection containers in a vault.
|
|
289
|
-
* @
|
|
290
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
291
|
-
* @param [options] The optional parameters
|
|
292
|
-
* @returns Promise<Models.ReplicationProtectionContainersListNextResponse>
|
|
543
|
+
* @param options The options parameters.
|
|
293
544
|
*/
|
|
294
|
-
|
|
545
|
+
private _list(
|
|
546
|
+
options?: ReplicationProtectionContainersListOptionalParams
|
|
547
|
+
): Promise<ReplicationProtectionContainersListResponse> {
|
|
548
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
549
|
+
}
|
|
550
|
+
|
|
295
551
|
/**
|
|
296
|
-
*
|
|
297
|
-
* @param
|
|
552
|
+
* ListByReplicationFabricsNext
|
|
553
|
+
* @param fabricName Fabric name.
|
|
554
|
+
* @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics
|
|
555
|
+
* method.
|
|
556
|
+
* @param options The options parameters.
|
|
298
557
|
*/
|
|
299
|
-
|
|
558
|
+
private _listByReplicationFabricsNext(
|
|
559
|
+
fabricName: string,
|
|
560
|
+
nextLink: string,
|
|
561
|
+
options?: ReplicationProtectionContainersListByReplicationFabricsNextOptionalParams
|
|
562
|
+
): Promise<
|
|
563
|
+
ReplicationProtectionContainersListByReplicationFabricsNextResponse
|
|
564
|
+
> {
|
|
565
|
+
return this.client.sendOperationRequest(
|
|
566
|
+
{ fabricName, nextLink, options },
|
|
567
|
+
listByReplicationFabricsNextOperationSpec
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
300
571
|
/**
|
|
301
|
-
*
|
|
302
|
-
* @param
|
|
303
|
-
* @param
|
|
572
|
+
* ListNext
|
|
573
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
574
|
+
* @param options The options parameters.
|
|
304
575
|
*/
|
|
305
|
-
|
|
306
|
-
|
|
576
|
+
private _listNext(
|
|
577
|
+
nextLink: string,
|
|
578
|
+
options?: ReplicationProtectionContainersListNextOptionalParams
|
|
579
|
+
): Promise<ReplicationProtectionContainersListNextResponse> {
|
|
307
580
|
return this.client.sendOperationRequest(
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
listNextOperationSpec,
|
|
313
|
-
callback) as Promise<Models.ReplicationProtectionContainersListNextResponse>;
|
|
581
|
+
{ nextLink, options },
|
|
582
|
+
listNextOperationSpec
|
|
583
|
+
);
|
|
314
584
|
}
|
|
315
585
|
}
|
|
316
|
-
|
|
317
586
|
// Operation Specifications
|
|
318
|
-
const serializer =
|
|
319
|
-
|
|
587
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
588
|
+
|
|
589
|
+
const listByReplicationFabricsOperationSpec: coreClient.OperationSpec = {
|
|
590
|
+
path:
|
|
591
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers",
|
|
320
592
|
httpMethod: "GET",
|
|
321
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers",
|
|
322
|
-
urlParameters: [
|
|
323
|
-
Parameters.resourceName,
|
|
324
|
-
Parameters.resourceGroupName,
|
|
325
|
-
Parameters.subscriptionId,
|
|
326
|
-
Parameters.fabricName
|
|
327
|
-
],
|
|
328
|
-
queryParameters: [
|
|
329
|
-
Parameters.apiVersion
|
|
330
|
-
],
|
|
331
|
-
headerParameters: [
|
|
332
|
-
Parameters.acceptLanguage
|
|
333
|
-
],
|
|
334
593
|
responses: {
|
|
335
594
|
200: {
|
|
336
595
|
bodyMapper: Mappers.ProtectionContainerCollection
|
|
337
|
-
},
|
|
338
|
-
default: {
|
|
339
|
-
bodyMapper: Mappers.CloudError
|
|
340
596
|
}
|
|
341
597
|
},
|
|
342
|
-
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
346
|
-
httpMethod: "GET",
|
|
347
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
|
|
598
|
+
queryParameters: [Parameters.apiVersion],
|
|
348
599
|
urlParameters: [
|
|
349
|
-
Parameters
|
|
600
|
+
Parameters.$host,
|
|
350
601
|
Parameters.resourceGroupName,
|
|
351
602
|
Parameters.subscriptionId,
|
|
352
|
-
Parameters.
|
|
353
|
-
Parameters.
|
|
354
|
-
],
|
|
355
|
-
queryParameters: [
|
|
356
|
-
Parameters.apiVersion
|
|
357
|
-
],
|
|
358
|
-
headerParameters: [
|
|
359
|
-
Parameters.acceptLanguage
|
|
603
|
+
Parameters.resourceName,
|
|
604
|
+
Parameters.fabricName
|
|
360
605
|
],
|
|
361
|
-
|
|
362
|
-
200: {
|
|
363
|
-
bodyMapper: Mappers.ProtectionContainer
|
|
364
|
-
},
|
|
365
|
-
default: {
|
|
366
|
-
bodyMapper: Mappers.CloudError
|
|
367
|
-
}
|
|
368
|
-
},
|
|
606
|
+
headerParameters: [Parameters.accept],
|
|
369
607
|
serializer
|
|
370
608
|
};
|
|
371
|
-
|
|
372
|
-
|
|
609
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
610
|
+
path:
|
|
611
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
|
|
373
612
|
httpMethod: "GET",
|
|
374
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers",
|
|
375
|
-
urlParameters: [
|
|
376
|
-
Parameters.resourceName,
|
|
377
|
-
Parameters.resourceGroupName,
|
|
378
|
-
Parameters.subscriptionId
|
|
379
|
-
],
|
|
380
|
-
queryParameters: [
|
|
381
|
-
Parameters.apiVersion
|
|
382
|
-
],
|
|
383
|
-
headerParameters: [
|
|
384
|
-
Parameters.acceptLanguage
|
|
385
|
-
],
|
|
386
613
|
responses: {
|
|
387
614
|
200: {
|
|
388
|
-
bodyMapper: Mappers.
|
|
389
|
-
},
|
|
390
|
-
default: {
|
|
391
|
-
bodyMapper: Mappers.CloudError
|
|
615
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
392
616
|
}
|
|
393
617
|
},
|
|
394
|
-
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
398
|
-
httpMethod: "PUT",
|
|
399
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
|
|
618
|
+
queryParameters: [Parameters.apiVersion],
|
|
400
619
|
urlParameters: [
|
|
401
|
-
Parameters
|
|
620
|
+
Parameters.$host,
|
|
402
621
|
Parameters.resourceGroupName,
|
|
403
622
|
Parameters.subscriptionId,
|
|
623
|
+
Parameters.resourceName,
|
|
404
624
|
Parameters.fabricName,
|
|
405
625
|
Parameters.protectionContainerName
|
|
406
626
|
],
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
parameterPath: "creationInput",
|
|
415
|
-
mapper: {
|
|
416
|
-
...Mappers.CreateProtectionContainerInput,
|
|
417
|
-
required: true
|
|
418
|
-
}
|
|
419
|
-
},
|
|
627
|
+
headerParameters: [Parameters.accept],
|
|
628
|
+
serializer
|
|
629
|
+
};
|
|
630
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
631
|
+
path:
|
|
632
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}",
|
|
633
|
+
httpMethod: "PUT",
|
|
420
634
|
responses: {
|
|
421
635
|
200: {
|
|
422
636
|
bodyMapper: Mappers.ProtectionContainer
|
|
423
637
|
},
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
638
|
+
201: {
|
|
639
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
640
|
+
},
|
|
641
|
+
202: {
|
|
642
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
643
|
+
},
|
|
644
|
+
204: {
|
|
645
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
427
646
|
}
|
|
428
647
|
},
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
const beginDiscoverProtectableItemOperationSpec: msRest.OperationSpec = {
|
|
433
|
-
httpMethod: "POST",
|
|
434
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem",
|
|
648
|
+
requestBody: Parameters.creationInput,
|
|
649
|
+
queryParameters: [Parameters.apiVersion],
|
|
435
650
|
urlParameters: [
|
|
436
|
-
Parameters
|
|
651
|
+
Parameters.$host,
|
|
437
652
|
Parameters.resourceGroupName,
|
|
438
653
|
Parameters.subscriptionId,
|
|
654
|
+
Parameters.resourceName,
|
|
439
655
|
Parameters.fabricName,
|
|
440
656
|
Parameters.protectionContainerName
|
|
441
657
|
],
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
mapper: {
|
|
451
|
-
...Mappers.DiscoverProtectableItemRequest,
|
|
452
|
-
required: true
|
|
453
|
-
}
|
|
454
|
-
},
|
|
658
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
659
|
+
mediaType: "json",
|
|
660
|
+
serializer
|
|
661
|
+
};
|
|
662
|
+
const discoverProtectableItemOperationSpec: coreClient.OperationSpec = {
|
|
663
|
+
path:
|
|
664
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/discoverProtectableItem",
|
|
665
|
+
httpMethod: "POST",
|
|
455
666
|
responses: {
|
|
456
667
|
200: {
|
|
457
668
|
bodyMapper: Mappers.ProtectionContainer
|
|
458
669
|
},
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
670
|
+
201: {
|
|
671
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
672
|
+
},
|
|
673
|
+
202: {
|
|
674
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
675
|
+
},
|
|
676
|
+
204: {
|
|
677
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
462
678
|
}
|
|
463
679
|
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
468
|
-
httpMethod: "POST",
|
|
469
|
-
path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove",
|
|
680
|
+
requestBody: Parameters.discoverProtectableItemRequest,
|
|
681
|
+
queryParameters: [Parameters.apiVersion],
|
|
470
682
|
urlParameters: [
|
|
471
|
-
Parameters
|
|
683
|
+
Parameters.$host,
|
|
472
684
|
Parameters.resourceGroupName,
|
|
473
685
|
Parameters.subscriptionId,
|
|
686
|
+
Parameters.resourceName,
|
|
474
687
|
Parameters.fabricName,
|
|
475
688
|
Parameters.protectionContainerName
|
|
476
689
|
],
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
],
|
|
480
|
-
headerParameters: [
|
|
481
|
-
Parameters.acceptLanguage
|
|
482
|
-
],
|
|
483
|
-
responses: {
|
|
484
|
-
202: {},
|
|
485
|
-
204: {},
|
|
486
|
-
default: {
|
|
487
|
-
bodyMapper: Mappers.CloudError
|
|
488
|
-
}
|
|
489
|
-
},
|
|
690
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
691
|
+
mediaType: "json",
|
|
490
692
|
serializer
|
|
491
693
|
};
|
|
492
|
-
|
|
493
|
-
|
|
694
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
695
|
+
path:
|
|
696
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/remove",
|
|
494
697
|
httpMethod: "POST",
|
|
495
|
-
|
|
698
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
699
|
+
queryParameters: [Parameters.apiVersion],
|
|
496
700
|
urlParameters: [
|
|
497
|
-
Parameters
|
|
701
|
+
Parameters.$host,
|
|
498
702
|
Parameters.resourceGroupName,
|
|
499
703
|
Parameters.subscriptionId,
|
|
704
|
+
Parameters.resourceName,
|
|
500
705
|
Parameters.fabricName,
|
|
501
706
|
Parameters.protectionContainerName
|
|
502
707
|
],
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
requestBody: {
|
|
510
|
-
parameterPath: "switchInput",
|
|
511
|
-
mapper: {
|
|
512
|
-
...Mappers.SwitchProtectionInput,
|
|
513
|
-
required: true
|
|
514
|
-
}
|
|
515
|
-
},
|
|
708
|
+
serializer
|
|
709
|
+
};
|
|
710
|
+
const switchProtectionOperationSpec: coreClient.OperationSpec = {
|
|
711
|
+
path:
|
|
712
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/switchprotection",
|
|
713
|
+
httpMethod: "POST",
|
|
516
714
|
responses: {
|
|
517
715
|
200: {
|
|
518
716
|
bodyMapper: Mappers.ProtectionContainer
|
|
519
717
|
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
718
|
+
201: {
|
|
719
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
720
|
+
},
|
|
721
|
+
202: {
|
|
722
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
723
|
+
},
|
|
724
|
+
204: {
|
|
725
|
+
bodyMapper: Mappers.ProtectionContainer
|
|
523
726
|
}
|
|
524
727
|
},
|
|
728
|
+
requestBody: Parameters.switchInput,
|
|
729
|
+
queryParameters: [Parameters.apiVersion],
|
|
730
|
+
urlParameters: [
|
|
731
|
+
Parameters.$host,
|
|
732
|
+
Parameters.resourceGroupName,
|
|
733
|
+
Parameters.subscriptionId,
|
|
734
|
+
Parameters.resourceName,
|
|
735
|
+
Parameters.fabricName,
|
|
736
|
+
Parameters.protectionContainerName
|
|
737
|
+
],
|
|
738
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
739
|
+
mediaType: "json",
|
|
525
740
|
serializer
|
|
526
741
|
};
|
|
527
|
-
|
|
528
|
-
|
|
742
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
743
|
+
path:
|
|
744
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers",
|
|
529
745
|
httpMethod: "GET",
|
|
530
|
-
baseUrl: "https://management.azure.com",
|
|
531
|
-
path: "{nextLink}",
|
|
532
|
-
urlParameters: [
|
|
533
|
-
Parameters.nextPageLink
|
|
534
|
-
],
|
|
535
|
-
headerParameters: [
|
|
536
|
-
Parameters.acceptLanguage
|
|
537
|
-
],
|
|
538
746
|
responses: {
|
|
539
747
|
200: {
|
|
540
748
|
bodyMapper: Mappers.ProtectionContainerCollection
|
|
541
|
-
},
|
|
542
|
-
default: {
|
|
543
|
-
bodyMapper: Mappers.CloudError
|
|
544
749
|
}
|
|
545
750
|
},
|
|
751
|
+
queryParameters: [Parameters.apiVersion],
|
|
752
|
+
urlParameters: [
|
|
753
|
+
Parameters.$host,
|
|
754
|
+
Parameters.resourceGroupName,
|
|
755
|
+
Parameters.subscriptionId,
|
|
756
|
+
Parameters.resourceName
|
|
757
|
+
],
|
|
758
|
+
headerParameters: [Parameters.accept],
|
|
546
759
|
serializer
|
|
547
760
|
};
|
|
548
|
-
|
|
549
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
550
|
-
httpMethod: "GET",
|
|
551
|
-
baseUrl: "https://management.azure.com",
|
|
761
|
+
const listByReplicationFabricsNextOperationSpec: coreClient.OperationSpec = {
|
|
552
762
|
path: "{nextLink}",
|
|
763
|
+
httpMethod: "GET",
|
|
764
|
+
responses: {
|
|
765
|
+
200: {
|
|
766
|
+
bodyMapper: Mappers.ProtectionContainerCollection
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
queryParameters: [Parameters.apiVersion],
|
|
553
770
|
urlParameters: [
|
|
554
|
-
Parameters
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
Parameters.
|
|
771
|
+
Parameters.$host,
|
|
772
|
+
Parameters.resourceGroupName,
|
|
773
|
+
Parameters.subscriptionId,
|
|
774
|
+
Parameters.nextLink,
|
|
775
|
+
Parameters.resourceName,
|
|
776
|
+
Parameters.fabricName
|
|
558
777
|
],
|
|
778
|
+
headerParameters: [Parameters.accept],
|
|
779
|
+
serializer
|
|
780
|
+
};
|
|
781
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
782
|
+
path: "{nextLink}",
|
|
783
|
+
httpMethod: "GET",
|
|
559
784
|
responses: {
|
|
560
785
|
200: {
|
|
561
786
|
bodyMapper: Mappers.ProtectionContainerCollection
|
|
562
|
-
},
|
|
563
|
-
default: {
|
|
564
|
-
bodyMapper: Mappers.CloudError
|
|
565
787
|
}
|
|
566
788
|
},
|
|
789
|
+
queryParameters: [Parameters.apiVersion],
|
|
790
|
+
urlParameters: [
|
|
791
|
+
Parameters.$host,
|
|
792
|
+
Parameters.resourceGroupName,
|
|
793
|
+
Parameters.subscriptionId,
|
|
794
|
+
Parameters.nextLink,
|
|
795
|
+
Parameters.resourceName
|
|
796
|
+
],
|
|
797
|
+
headerParameters: [Parameters.accept],
|
|
567
798
|
serializer
|
|
568
799
|
};
|