@azure/arm-recoveryservices-siterecovery 5.1.0-alpha.20240221.1 → 5.2.0-alpha.20240223.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/LICENSE +1 -1
- package/dist/index.js +8402 -8155
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/migrationRecoveryPointsGetSample.js +1 -1
- package/dist-esm/samples-dev/migrationRecoveryPointsListByReplicationMigrationItemsSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsListByReplicationProtectedItemsSample.js +1 -1
- package/dist-esm/samples-dev/replicationAlertSettingsCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationAlertSettingsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationAlertSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationAlertSettingsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationAppliancesListSample.js +1 -1
- package/dist-esm/samples-dev/replicationEligibilityResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationEligibilityResultsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationEventsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationEventsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsCheckConsistencySample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsCreateSample.js +2 -2
- package/dist-esm/samples-dev/replicationFabricsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationFabricsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsMigrateToAadSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/replicationFabricsReassociateGatewaySample.js +4 -4
- package/dist-esm/samples-dev/replicationFabricsReassociateGatewaySample.js.map +1 -1
- package/dist-esm/samples-dev/replicationFabricsRemoveInfraSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicationFabricsRemoveInfraSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicationFabricsRemoveInfraSample.js +41 -0
- package/dist-esm/samples-dev/replicationFabricsRemoveInfraSample.js.map +1 -0
- package/dist-esm/samples-dev/replicationFabricsRenewCertificateSample.js +3 -3
- package/dist-esm/samples-dev/replicationFabricsRenewCertificateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationJobsCancelSample.js +1 -1
- package/dist-esm/samples-dev/replicationJobsExportSample.js +3 -3
- package/dist-esm/samples-dev/replicationJobsExportSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationJobsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationJobsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationJobsRestartSample.js +1 -1
- package/dist-esm/samples-dev/replicationJobsResumeSample.js +2 -2
- package/dist-esm/samples-dev/replicationJobsResumeSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationLogicalNetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationLogicalNetworksListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsCreateSample.js +7 -7
- package/dist-esm/samples-dev/replicationMigrationItemsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsListByReplicationProtectionContainersSample.js +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsMigrateSample.js +5 -5
- package/dist-esm/samples-dev/replicationMigrationItemsMigrateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsPauseReplicationSample.js +3 -3
- package/dist-esm/samples-dev/replicationMigrationItemsPauseReplicationSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsResumeReplicationSample.js +5 -5
- package/dist-esm/samples-dev/replicationMigrationItemsResumeReplicationSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsResyncSample.js +5 -5
- package/dist-esm/samples-dev/replicationMigrationItemsResyncSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateCleanupSample.js +3 -3
- package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateCleanupSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateSample.js +5 -5
- package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationMigrationItemsUpdateSample.js +3 -3
- package/dist-esm/samples-dev/replicationMigrationItemsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationNetworkMappingsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsListByReplicationNetworksSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworkMappingsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/replicationNetworkMappingsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationNetworksGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworksListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationNetworksListSample.js +1 -1
- package/dist-esm/samples-dev/replicationPoliciesCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationPoliciesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/replicationPoliciesUpdateSample.js +4 -4
- package/dist-esm/samples-dev/replicationPoliciesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectableItemsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectableItemsListByReplicationProtectionContainersSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsAddDisksSample.js +7 -7
- package/dist-esm/samples-dev/replicationProtectedItemsAddDisksSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsApplyRecoveryPointSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsApplyRecoveryPointSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/replicationProtectedItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsFailoverCancelSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsFailoverCancelSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsFailoverCommitSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsFailoverCommitSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsListByReplicationProtectionContainersSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsPlannedFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsPlannedFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsRemoveDisksSample.js +6 -6
- package/dist-esm/samples-dev/replicationProtectedItemsRemoveDisksSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsRepairReplicationSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsRepairReplicationSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsReprotectSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsReprotectSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsResolveHealthErrorsSample.js +3 -3
- package/dist-esm/samples-dev/replicationProtectedItemsResolveHealthErrorsSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsSwitchProviderSample.js +5 -5
- package/dist-esm/samples-dev/replicationProtectedItemsSwitchProviderSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverCleanupSample.js +3 -3
- package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverCleanupSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsUnplannedFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectedItemsUnplannedFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateApplianceSample.js +5 -5
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateApplianceSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateMobilityServiceSample.js +3 -3
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateMobilityServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/replicationProtectedItemsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsListByReplicationProtectionContainersSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsPurgeSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsUpdateSample.js +5 -5
- package/dist-esm/samples-dev/replicationProtectionContainerMappingsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersCreateSample.js +2 -2
- package/dist-esm/samples-dev/replicationProtectionContainersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersDiscoverProtectableItemSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectionContainersDiscoverProtectableItemSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersListSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionContainersSwitchProtectionSample.js +4 -4
- package/dist-esm/samples-dev/replicationProtectionContainersSwitchProtectionSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionIntentsCreateSample.js +5 -5
- package/dist-esm/samples-dev/replicationProtectionIntentsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationProtectionIntentsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationProtectionIntentsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansCreateSample.js +8 -8
- package/dist-esm/samples-dev/replicationRecoveryPlansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCancelSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCancelSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCommitSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCommitSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansListSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansPlannedFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationRecoveryPlansPlannedFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansReprotectSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverCleanupSample.js +3 -3
- package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverCleanupSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansUnplannedFailoverSample.js +4 -4
- package/dist-esm/samples-dev/replicationRecoveryPlansUnplannedFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryPlansUpdateSample.js +13 -13
- package/dist-esm/samples-dev/replicationRecoveryPlansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersCreateSample.js +6 -6
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersPurgeSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersPurgeSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersRefreshProviderSample.js +1 -1
- package/dist-esm/samples-dev/replicationRecoveryServicesProvidersRefreshProviderSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsListByReplicationStorageClassificationsSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationMappingsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationsGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationsListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationStorageClassificationsListSample.js +1 -1
- package/dist-esm/samples-dev/replicationVaultHealthGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationVaultHealthRefreshSample.js +1 -1
- package/dist-esm/samples-dev/replicationVaultSettingCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationVaultSettingCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationVaultSettingGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationVaultSettingListSample.js +1 -1
- package/dist-esm/samples-dev/replicationvCentersCreateSample.js +4 -4
- package/dist-esm/samples-dev/replicationvCentersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/replicationvCentersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/replicationvCentersGetSample.js +1 -1
- package/dist-esm/samples-dev/replicationvCentersListByReplicationFabricsSample.js +1 -1
- package/dist-esm/samples-dev/replicationvCentersListSample.js +1 -1
- package/dist-esm/samples-dev/replicationvCentersUpdateSample.js +3 -3
- package/dist-esm/samples-dev/replicationvCentersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/supportedOperatingSystemsGetSample.js +1 -1
- package/dist-esm/samples-dev/targetComputeSizesListByReplicationProtectedItemsSample.js +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +61 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +6827 -6707
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +193 -167
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/migrationRecoveryPoints.d.ts.map +1 -1
- package/dist-esm/src/operations/migrationRecoveryPoints.js +16 -16
- package/dist-esm/src/operations/migrationRecoveryPoints.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/recoveryPoints.js +16 -16
- package/dist-esm/src/operations/recoveryPoints.js.map +1 -1
- package/dist-esm/src/operations/replicationAlertSettings.js +17 -17
- package/dist-esm/src/operations/replicationAlertSettings.js.map +1 -1
- package/dist-esm/src/operations/replicationAppliances.js +9 -9
- package/dist-esm/src/operations/replicationAppliances.js.map +1 -1
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.js +8 -8
- package/dist-esm/src/operations/replicationEligibilityResultsOperations.js.map +1 -1
- package/dist-esm/src/operations/replicationEvents.js +13 -13
- package/dist-esm/src/operations/replicationEvents.js.map +1 -1
- package/dist-esm/src/operations/replicationFabrics.d.ts +19 -1
- package/dist-esm/src/operations/replicationFabrics.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationFabrics.js +168 -78
- package/dist-esm/src/operations/replicationFabrics.js.map +1 -1
- package/dist-esm/src/operations/replicationJobs.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationJobs.js +59 -59
- package/dist-esm/src/operations/replicationJobs.js.map +1 -1
- package/dist-esm/src/operations/replicationLogicalNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationLogicalNetworks.js +14 -14
- package/dist-esm/src/operations/replicationLogicalNetworks.js.map +1 -1
- package/dist-esm/src/operations/replicationMigrationItems.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationMigrationItems.js +131 -131
- package/dist-esm/src/operations/replicationMigrationItems.js.map +1 -1
- package/dist-esm/src/operations/replicationNetworkMappings.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationNetworkMappings.js +56 -56
- package/dist-esm/src/operations/replicationNetworkMappings.js.map +1 -1
- package/dist-esm/src/operations/replicationNetworks.js +22 -22
- package/dist-esm/src/operations/replicationNetworks.js.map +1 -1
- package/dist-esm/src/operations/replicationPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationPolicies.js +42 -42
- package/dist-esm/src/operations/replicationPolicies.js.map +1 -1
- package/dist-esm/src/operations/replicationProtectableItems.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationProtectableItems.js +17 -17
- package/dist-esm/src/operations/replicationProtectableItems.js.map +1 -1
- package/dist-esm/src/operations/replicationProtectedItems.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationProtectedItems.js +245 -245
- package/dist-esm/src/operations/replicationProtectedItems.js.map +1 -1
- package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationProtectionContainerMappings.js +64 -64
- package/dist-esm/src/operations/replicationProtectionContainerMappings.js.map +1 -1
- package/dist-esm/src/operations/replicationProtectionContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationProtectionContainers.js +67 -67
- package/dist-esm/src/operations/replicationProtectionContainers.js.map +1 -1
- package/dist-esm/src/operations/replicationProtectionIntents.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationProtectionIntents.js +18 -18
- package/dist-esm/src/operations/replicationProtectionIntents.js.map +1 -1
- package/dist-esm/src/operations/replicationRecoveryPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationRecoveryPlans.js +125 -125
- package/dist-esm/src/operations/replicationRecoveryPlans.js.map +1 -1
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.js +61 -61
- package/dist-esm/src/operations/replicationRecoveryServicesProviders.js.map +1 -1
- package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationStorageClassificationMappings.js +45 -45
- package/dist-esm/src/operations/replicationStorageClassificationMappings.js.map +1 -1
- package/dist-esm/src/operations/replicationStorageClassifications.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationStorageClassifications.js +23 -23
- package/dist-esm/src/operations/replicationStorageClassifications.js.map +1 -1
- package/dist-esm/src/operations/replicationVaultHealth.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationVaultHealth.js +16 -16
- package/dist-esm/src/operations/replicationVaultHealth.js.map +1 -1
- package/dist-esm/src/operations/replicationVaultSetting.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationVaultSetting.js +26 -26
- package/dist-esm/src/operations/replicationVaultSetting.js.map +1 -1
- package/dist-esm/src/operations/replicationvCenters.d.ts.map +1 -1
- package/dist-esm/src/operations/replicationvCenters.js +54 -54
- package/dist-esm/src/operations/replicationvCenters.js.map +1 -1
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.js +4 -4
- package/dist-esm/src/operations/supportedOperatingSystemsOperations.js.map +1 -1
- package/dist-esm/src/operations/targetComputeSizes.js +11 -11
- package/dist-esm/src/operations/targetComputeSizes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts +19 -1
- package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts.map +1 -1
- package/dist-esm/src/siteRecoveryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/siteRecoveryManagementClient.js +23 -16
- package/dist-esm/src/siteRecoveryManagementClient.js.map +1 -1
- package/package.json +9 -9
- package/review/arm-recoveryservices-siterecovery.api.md +38 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +272 -127
- package/src/models/mappers.ts +10025 -9693
- package/src/models/parameters.ts +196 -168
- package/src/operations/migrationRecoveryPoints.ts +52 -55
- package/src/operations/operations.ts +19 -20
- package/src/operations/recoveryPoints.ts +51 -52
- package/src/operations/replicationAlertSettings.ts +35 -38
- package/src/operations/replicationAppliances.ts +21 -22
- package/src/operations/replicationEligibilityResultsOperations.ts +17 -18
- package/src/operations/replicationEvents.ts +28 -30
- package/src/operations/replicationFabrics.ts +299 -186
- package/src/operations/replicationJobs.ts +118 -128
- package/src/operations/replicationLogicalNetworks.ts +33 -34
- package/src/operations/replicationMigrationItems.ts +298 -320
- package/src/operations/replicationNetworkMappings.ts +119 -127
- package/src/operations/replicationNetworks.ts +50 -53
- package/src/operations/replicationPolicies.ts +90 -98
- package/src/operations/replicationProtectableItems.ts +75 -78
- package/src/operations/replicationProtectedItems.ts +518 -560
- package/src/operations/replicationProtectionContainerMappings.ts +172 -184
- package/src/operations/replicationProtectionContainers.ts +144 -160
- package/src/operations/replicationProtectionIntents.ts +38 -40
- package/src/operations/replicationRecoveryPlans.ts +250 -272
- package/src/operations/replicationRecoveryServicesProviders.ts +139 -157
- package/src/operations/replicationStorageClassificationMappings.ts +131 -139
- package/src/operations/replicationStorageClassifications.ts +55 -61
- package/src/operations/replicationVaultHealth.ts +31 -34
- package/src/operations/replicationVaultSetting.ts +52 -56
- package/src/operations/replicationvCenters.ts +115 -124
- package/src/operations/supportedOperatingSystemsOperations.ts +10 -10
- package/src/operations/targetComputeSizes.ts +43 -43
- package/src/operationsInterfaces/migrationRecoveryPoints.ts +3 -3
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/recoveryPoints.ts +3 -3
- package/src/operationsInterfaces/replicationAlertSettings.ts +4 -4
- package/src/operationsInterfaces/replicationAppliances.ts +2 -2
- package/src/operationsInterfaces/replicationEligibilityResultsOperations.ts +3 -3
- package/src/operationsInterfaces/replicationEvents.ts +3 -3
- package/src/operationsInterfaces/replicationFabrics.ts +52 -17
- package/src/operationsInterfaces/replicationJobs.ts +11 -11
- package/src/operationsInterfaces/replicationLogicalNetworks.ts +3 -3
- package/src/operationsInterfaces/replicationMigrationItems.ts +22 -22
- package/src/operationsInterfaces/replicationNetworkMappings.ts +10 -10
- package/src/operationsInterfaces/replicationNetworks.ts +4 -4
- package/src/operationsInterfaces/replicationPolicies.ts +9 -9
- package/src/operationsInterfaces/replicationProtectableItems.ts +3 -3
- package/src/operationsInterfaces/replicationProtectedItems.ts +42 -42
- package/src/operationsInterfaces/replicationProtectionContainerMappings.ts +12 -12
- package/src/operationsInterfaces/replicationProtectionContainers.ts +13 -15
- package/src/operationsInterfaces/replicationProtectionIntents.ts +4 -4
- package/src/operationsInterfaces/replicationRecoveryPlans.ts +23 -23
- package/src/operationsInterfaces/replicationRecoveryServicesProviders.ts +13 -15
- package/src/operationsInterfaces/replicationStorageClassificationMappings.ts +8 -8
- package/src/operationsInterfaces/replicationStorageClassifications.ts +4 -4
- package/src/operationsInterfaces/replicationVaultHealth.ts +4 -4
- package/src/operationsInterfaces/replicationVaultSetting.ts +5 -5
- package/src/operationsInterfaces/replicationvCenters.ts +10 -10
- package/src/operationsInterfaces/supportedOperatingSystemsOperations.ts +2 -2
- package/src/operationsInterfaces/targetComputeSizes.ts +2 -2
- package/src/pagingHelper.ts +1 -1
- package/src/siteRecoveryManagementClient.ts +34 -40
- package/types/arm-recoveryservices-siterecovery.d.ts +85 -0
- package/types/tsdoc-metadata.json +1 -1
|
@@ -16,7 +16,7 @@ import { SiteRecoveryManagementClient } from "../siteRecoveryManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -81,13 +81,14 @@ import {
|
|
|
81
81
|
ReplicationProtectedItemsUpdateMobilityServiceOptionalParams,
|
|
82
82
|
ReplicationProtectedItemsUpdateMobilityServiceResponse,
|
|
83
83
|
ReplicationProtectedItemsListByReplicationProtectionContainersNextResponse,
|
|
84
|
-
ReplicationProtectedItemsListNextResponse
|
|
84
|
+
ReplicationProtectedItemsListNextResponse,
|
|
85
85
|
} from "../models";
|
|
86
86
|
|
|
87
87
|
/// <reference lib="esnext.asynciterable" />
|
|
88
88
|
/** Class containing ReplicationProtectedItems operations. */
|
|
89
89
|
export class ReplicationProtectedItemsImpl
|
|
90
|
-
implements ReplicationProtectedItems
|
|
90
|
+
implements ReplicationProtectedItems
|
|
91
|
+
{
|
|
91
92
|
private readonly client: SiteRecoveryManagementClient;
|
|
92
93
|
|
|
93
94
|
/**
|
|
@@ -112,14 +113,14 @@ export class ReplicationProtectedItemsImpl
|
|
|
112
113
|
resourceGroupName: string,
|
|
113
114
|
fabricName: string,
|
|
114
115
|
protectionContainerName: string,
|
|
115
|
-
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams
|
|
116
|
+
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams,
|
|
116
117
|
): PagedAsyncIterableIterator<ReplicationProtectedItem> {
|
|
117
118
|
const iter = this.listByReplicationProtectionContainersPagingAll(
|
|
118
119
|
resourceName,
|
|
119
120
|
resourceGroupName,
|
|
120
121
|
fabricName,
|
|
121
122
|
protectionContainerName,
|
|
122
|
-
options
|
|
123
|
+
options,
|
|
123
124
|
);
|
|
124
125
|
return {
|
|
125
126
|
next() {
|
|
@@ -138,9 +139,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
138
139
|
fabricName,
|
|
139
140
|
protectionContainerName,
|
|
140
141
|
options,
|
|
141
|
-
settings
|
|
142
|
+
settings,
|
|
142
143
|
);
|
|
143
|
-
}
|
|
144
|
+
},
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
147
|
|
|
@@ -150,7 +151,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
150
151
|
fabricName: string,
|
|
151
152
|
protectionContainerName: string,
|
|
152
153
|
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams,
|
|
153
|
-
settings?: PageSettings
|
|
154
|
+
settings?: PageSettings,
|
|
154
155
|
): AsyncIterableIterator<ReplicationProtectedItem[]> {
|
|
155
156
|
let result: ReplicationProtectedItemsListByReplicationProtectionContainersResponse;
|
|
156
157
|
let continuationToken = settings?.continuationToken;
|
|
@@ -160,7 +161,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
160
161
|
resourceGroupName,
|
|
161
162
|
fabricName,
|
|
162
163
|
protectionContainerName,
|
|
163
|
-
options
|
|
164
|
+
options,
|
|
164
165
|
);
|
|
165
166
|
let page = result.value || [];
|
|
166
167
|
continuationToken = result.nextLink;
|
|
@@ -174,7 +175,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
174
175
|
fabricName,
|
|
175
176
|
protectionContainerName,
|
|
176
177
|
continuationToken,
|
|
177
|
-
options
|
|
178
|
+
options,
|
|
178
179
|
);
|
|
179
180
|
continuationToken = result.nextLink;
|
|
180
181
|
let page = result.value || [];
|
|
@@ -188,14 +189,14 @@ export class ReplicationProtectedItemsImpl
|
|
|
188
189
|
resourceGroupName: string,
|
|
189
190
|
fabricName: string,
|
|
190
191
|
protectionContainerName: string,
|
|
191
|
-
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams
|
|
192
|
+
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams,
|
|
192
193
|
): AsyncIterableIterator<ReplicationProtectedItem> {
|
|
193
194
|
for await (const page of this.listByReplicationProtectionContainersPagingPage(
|
|
194
195
|
resourceName,
|
|
195
196
|
resourceGroupName,
|
|
196
197
|
fabricName,
|
|
197
198
|
protectionContainerName,
|
|
198
|
-
options
|
|
199
|
+
options,
|
|
199
200
|
)) {
|
|
200
201
|
yield* page;
|
|
201
202
|
}
|
|
@@ -211,7 +212,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
211
212
|
public list(
|
|
212
213
|
resourceName: string,
|
|
213
214
|
resourceGroupName: string,
|
|
214
|
-
options?: ReplicationProtectedItemsListOptionalParams
|
|
215
|
+
options?: ReplicationProtectedItemsListOptionalParams,
|
|
215
216
|
): PagedAsyncIterableIterator<ReplicationProtectedItem> {
|
|
216
217
|
const iter = this.listPagingAll(resourceName, resourceGroupName, options);
|
|
217
218
|
return {
|
|
@@ -229,9 +230,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
229
230
|
resourceName,
|
|
230
231
|
resourceGroupName,
|
|
231
232
|
options,
|
|
232
|
-
settings
|
|
233
|
+
settings,
|
|
233
234
|
);
|
|
234
|
-
}
|
|
235
|
+
},
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
238
|
|
|
@@ -239,7 +240,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
239
240
|
resourceName: string,
|
|
240
241
|
resourceGroupName: string,
|
|
241
242
|
options?: ReplicationProtectedItemsListOptionalParams,
|
|
242
|
-
settings?: PageSettings
|
|
243
|
+
settings?: PageSettings,
|
|
243
244
|
): AsyncIterableIterator<ReplicationProtectedItem[]> {
|
|
244
245
|
let result: ReplicationProtectedItemsListResponse;
|
|
245
246
|
let continuationToken = settings?.continuationToken;
|
|
@@ -255,7 +256,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
255
256
|
resourceName,
|
|
256
257
|
resourceGroupName,
|
|
257
258
|
continuationToken,
|
|
258
|
-
options
|
|
259
|
+
options,
|
|
259
260
|
);
|
|
260
261
|
continuationToken = result.nextLink;
|
|
261
262
|
let page = result.value || [];
|
|
@@ -267,12 +268,12 @@ export class ReplicationProtectedItemsImpl
|
|
|
267
268
|
private async *listPagingAll(
|
|
268
269
|
resourceName: string,
|
|
269
270
|
resourceGroupName: string,
|
|
270
|
-
options?: ReplicationProtectedItemsListOptionalParams
|
|
271
|
+
options?: ReplicationProtectedItemsListOptionalParams,
|
|
271
272
|
): AsyncIterableIterator<ReplicationProtectedItem> {
|
|
272
273
|
for await (const page of this.listPagingPage(
|
|
273
274
|
resourceName,
|
|
274
275
|
resourceGroupName,
|
|
275
|
-
options
|
|
276
|
+
options,
|
|
276
277
|
)) {
|
|
277
278
|
yield* page;
|
|
278
279
|
}
|
|
@@ -292,19 +293,17 @@ export class ReplicationProtectedItemsImpl
|
|
|
292
293
|
resourceGroupName: string,
|
|
293
294
|
fabricName: string,
|
|
294
295
|
protectionContainerName: string,
|
|
295
|
-
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams
|
|
296
|
-
): Promise<
|
|
297
|
-
ReplicationProtectedItemsListByReplicationProtectionContainersResponse
|
|
298
|
-
> {
|
|
296
|
+
options?: ReplicationProtectedItemsListByReplicationProtectionContainersOptionalParams,
|
|
297
|
+
): Promise<ReplicationProtectedItemsListByReplicationProtectionContainersResponse> {
|
|
299
298
|
return this.client.sendOperationRequest(
|
|
300
299
|
{
|
|
301
300
|
resourceName,
|
|
302
301
|
resourceGroupName,
|
|
303
302
|
fabricName,
|
|
304
303
|
protectionContainerName,
|
|
305
|
-
options
|
|
304
|
+
options,
|
|
306
305
|
},
|
|
307
|
-
listByReplicationProtectionContainersOperationSpec
|
|
306
|
+
listByReplicationProtectionContainersOperationSpec,
|
|
308
307
|
);
|
|
309
308
|
}
|
|
310
309
|
|
|
@@ -324,7 +323,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
324
323
|
fabricName: string,
|
|
325
324
|
protectionContainerName: string,
|
|
326
325
|
replicatedProtectedItemName: string,
|
|
327
|
-
options?: ReplicationProtectedItemsGetOptionalParams
|
|
326
|
+
options?: ReplicationProtectedItemsGetOptionalParams,
|
|
328
327
|
): Promise<ReplicationProtectedItemsGetResponse> {
|
|
329
328
|
return this.client.sendOperationRequest(
|
|
330
329
|
{
|
|
@@ -333,9 +332,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
333
332
|
fabricName,
|
|
334
333
|
protectionContainerName,
|
|
335
334
|
replicatedProtectedItemName,
|
|
336
|
-
options
|
|
335
|
+
options,
|
|
337
336
|
},
|
|
338
|
-
getOperationSpec
|
|
337
|
+
getOperationSpec,
|
|
339
338
|
);
|
|
340
339
|
}
|
|
341
340
|
|
|
@@ -357,7 +356,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
357
356
|
protectionContainerName: string,
|
|
358
357
|
replicatedProtectedItemName: string,
|
|
359
358
|
input: EnableProtectionInput,
|
|
360
|
-
options?: ReplicationProtectedItemsCreateOptionalParams
|
|
359
|
+
options?: ReplicationProtectedItemsCreateOptionalParams,
|
|
361
360
|
): Promise<
|
|
362
361
|
SimplePollerLike<
|
|
363
362
|
OperationState<ReplicationProtectedItemsCreateResponse>,
|
|
@@ -366,21 +365,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
366
365
|
> {
|
|
367
366
|
const directSendOperation = async (
|
|
368
367
|
args: coreClient.OperationArguments,
|
|
369
|
-
spec: coreClient.OperationSpec
|
|
368
|
+
spec: coreClient.OperationSpec,
|
|
370
369
|
): Promise<ReplicationProtectedItemsCreateResponse> => {
|
|
371
370
|
return this.client.sendOperationRequest(args, spec);
|
|
372
371
|
};
|
|
373
372
|
const sendOperationFn = async (
|
|
374
373
|
args: coreClient.OperationArguments,
|
|
375
|
-
spec: coreClient.OperationSpec
|
|
374
|
+
spec: coreClient.OperationSpec,
|
|
376
375
|
) => {
|
|
377
|
-
let currentRawResponse:
|
|
378
|
-
|
|
379
|
-
| undefined = undefined;
|
|
376
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
377
|
+
undefined;
|
|
380
378
|
const providedCallback = args.options?.onResponse;
|
|
381
379
|
const callback: coreClient.RawResponseCallback = (
|
|
382
380
|
rawResponse: coreClient.FullOperationResponse,
|
|
383
|
-
flatResponse: unknown
|
|
381
|
+
flatResponse: unknown,
|
|
384
382
|
) => {
|
|
385
383
|
currentRawResponse = rawResponse;
|
|
386
384
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -389,8 +387,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
389
387
|
...args,
|
|
390
388
|
options: {
|
|
391
389
|
...args.options,
|
|
392
|
-
onResponse: callback
|
|
393
|
-
}
|
|
390
|
+
onResponse: callback,
|
|
391
|
+
},
|
|
394
392
|
};
|
|
395
393
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
396
394
|
return {
|
|
@@ -398,8 +396,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
398
396
|
rawResponse: {
|
|
399
397
|
statusCode: currentRawResponse!.status,
|
|
400
398
|
body: currentRawResponse!.parsedBody,
|
|
401
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
402
|
-
}
|
|
399
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
400
|
+
},
|
|
403
401
|
};
|
|
404
402
|
};
|
|
405
403
|
|
|
@@ -412,16 +410,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
412
410
|
protectionContainerName,
|
|
413
411
|
replicatedProtectedItemName,
|
|
414
412
|
input,
|
|
415
|
-
options
|
|
413
|
+
options,
|
|
416
414
|
},
|
|
417
|
-
spec: createOperationSpec
|
|
415
|
+
spec: createOperationSpec,
|
|
418
416
|
});
|
|
419
417
|
const poller = await createHttpPoller<
|
|
420
418
|
ReplicationProtectedItemsCreateResponse,
|
|
421
419
|
OperationState<ReplicationProtectedItemsCreateResponse>
|
|
422
420
|
>(lro, {
|
|
423
421
|
restoreFrom: options?.resumeFrom,
|
|
424
|
-
intervalInMs: options?.updateIntervalInMs
|
|
422
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
425
423
|
});
|
|
426
424
|
await poller.poll();
|
|
427
425
|
return poller;
|
|
@@ -445,7 +443,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
445
443
|
protectionContainerName: string,
|
|
446
444
|
replicatedProtectedItemName: string,
|
|
447
445
|
input: EnableProtectionInput,
|
|
448
|
-
options?: ReplicationProtectedItemsCreateOptionalParams
|
|
446
|
+
options?: ReplicationProtectedItemsCreateOptionalParams,
|
|
449
447
|
): Promise<ReplicationProtectedItemsCreateResponse> {
|
|
450
448
|
const poller = await this.beginCreate(
|
|
451
449
|
resourceName,
|
|
@@ -454,7 +452,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
454
452
|
protectionContainerName,
|
|
455
453
|
replicatedProtectedItemName,
|
|
456
454
|
input,
|
|
457
|
-
options
|
|
455
|
+
options,
|
|
458
456
|
);
|
|
459
457
|
return poller.pollUntilDone();
|
|
460
458
|
}
|
|
@@ -477,25 +475,24 @@ export class ReplicationProtectedItemsImpl
|
|
|
477
475
|
fabricName: string,
|
|
478
476
|
protectionContainerName: string,
|
|
479
477
|
replicatedProtectedItemName: string,
|
|
480
|
-
options?: ReplicationProtectedItemsPurgeOptionalParams
|
|
478
|
+
options?: ReplicationProtectedItemsPurgeOptionalParams,
|
|
481
479
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
482
480
|
const directSendOperation = async (
|
|
483
481
|
args: coreClient.OperationArguments,
|
|
484
|
-
spec: coreClient.OperationSpec
|
|
482
|
+
spec: coreClient.OperationSpec,
|
|
485
483
|
): Promise<void> => {
|
|
486
484
|
return this.client.sendOperationRequest(args, spec);
|
|
487
485
|
};
|
|
488
486
|
const sendOperationFn = async (
|
|
489
487
|
args: coreClient.OperationArguments,
|
|
490
|
-
spec: coreClient.OperationSpec
|
|
488
|
+
spec: coreClient.OperationSpec,
|
|
491
489
|
) => {
|
|
492
|
-
let currentRawResponse:
|
|
493
|
-
|
|
494
|
-
| undefined = undefined;
|
|
490
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
491
|
+
undefined;
|
|
495
492
|
const providedCallback = args.options?.onResponse;
|
|
496
493
|
const callback: coreClient.RawResponseCallback = (
|
|
497
494
|
rawResponse: coreClient.FullOperationResponse,
|
|
498
|
-
flatResponse: unknown
|
|
495
|
+
flatResponse: unknown,
|
|
499
496
|
) => {
|
|
500
497
|
currentRawResponse = rawResponse;
|
|
501
498
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -504,8 +501,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
504
501
|
...args,
|
|
505
502
|
options: {
|
|
506
503
|
...args.options,
|
|
507
|
-
onResponse: callback
|
|
508
|
-
}
|
|
504
|
+
onResponse: callback,
|
|
505
|
+
},
|
|
509
506
|
};
|
|
510
507
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
511
508
|
return {
|
|
@@ -513,8 +510,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
513
510
|
rawResponse: {
|
|
514
511
|
statusCode: currentRawResponse!.status,
|
|
515
512
|
body: currentRawResponse!.parsedBody,
|
|
516
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
517
|
-
}
|
|
513
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
514
|
+
},
|
|
518
515
|
};
|
|
519
516
|
};
|
|
520
517
|
|
|
@@ -526,13 +523,13 @@ export class ReplicationProtectedItemsImpl
|
|
|
526
523
|
fabricName,
|
|
527
524
|
protectionContainerName,
|
|
528
525
|
replicatedProtectedItemName,
|
|
529
|
-
options
|
|
526
|
+
options,
|
|
530
527
|
},
|
|
531
|
-
spec: purgeOperationSpec
|
|
528
|
+
spec: purgeOperationSpec,
|
|
532
529
|
});
|
|
533
530
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
534
531
|
restoreFrom: options?.resumeFrom,
|
|
535
|
-
intervalInMs: options?.updateIntervalInMs
|
|
532
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
536
533
|
});
|
|
537
534
|
await poller.poll();
|
|
538
535
|
return poller;
|
|
@@ -556,7 +553,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
556
553
|
fabricName: string,
|
|
557
554
|
protectionContainerName: string,
|
|
558
555
|
replicatedProtectedItemName: string,
|
|
559
|
-
options?: ReplicationProtectedItemsPurgeOptionalParams
|
|
556
|
+
options?: ReplicationProtectedItemsPurgeOptionalParams,
|
|
560
557
|
): Promise<void> {
|
|
561
558
|
const poller = await this.beginPurge(
|
|
562
559
|
resourceName,
|
|
@@ -564,7 +561,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
564
561
|
fabricName,
|
|
565
562
|
protectionContainerName,
|
|
566
563
|
replicatedProtectedItemName,
|
|
567
|
-
options
|
|
564
|
+
options,
|
|
568
565
|
);
|
|
569
566
|
return poller.pollUntilDone();
|
|
570
567
|
}
|
|
@@ -587,7 +584,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
587
584
|
protectionContainerName: string,
|
|
588
585
|
replicatedProtectedItemName: string,
|
|
589
586
|
updateProtectionInput: UpdateReplicationProtectedItemInput,
|
|
590
|
-
options?: ReplicationProtectedItemsUpdateOptionalParams
|
|
587
|
+
options?: ReplicationProtectedItemsUpdateOptionalParams,
|
|
591
588
|
): Promise<
|
|
592
589
|
SimplePollerLike<
|
|
593
590
|
OperationState<ReplicationProtectedItemsUpdateResponse>,
|
|
@@ -596,21 +593,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
596
593
|
> {
|
|
597
594
|
const directSendOperation = async (
|
|
598
595
|
args: coreClient.OperationArguments,
|
|
599
|
-
spec: coreClient.OperationSpec
|
|
596
|
+
spec: coreClient.OperationSpec,
|
|
600
597
|
): Promise<ReplicationProtectedItemsUpdateResponse> => {
|
|
601
598
|
return this.client.sendOperationRequest(args, spec);
|
|
602
599
|
};
|
|
603
600
|
const sendOperationFn = async (
|
|
604
601
|
args: coreClient.OperationArguments,
|
|
605
|
-
spec: coreClient.OperationSpec
|
|
602
|
+
spec: coreClient.OperationSpec,
|
|
606
603
|
) => {
|
|
607
|
-
let currentRawResponse:
|
|
608
|
-
|
|
609
|
-
| undefined = undefined;
|
|
604
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
605
|
+
undefined;
|
|
610
606
|
const providedCallback = args.options?.onResponse;
|
|
611
607
|
const callback: coreClient.RawResponseCallback = (
|
|
612
608
|
rawResponse: coreClient.FullOperationResponse,
|
|
613
|
-
flatResponse: unknown
|
|
609
|
+
flatResponse: unknown,
|
|
614
610
|
) => {
|
|
615
611
|
currentRawResponse = rawResponse;
|
|
616
612
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -619,8 +615,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
619
615
|
...args,
|
|
620
616
|
options: {
|
|
621
617
|
...args.options,
|
|
622
|
-
onResponse: callback
|
|
623
|
-
}
|
|
618
|
+
onResponse: callback,
|
|
619
|
+
},
|
|
624
620
|
};
|
|
625
621
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
626
622
|
return {
|
|
@@ -628,8 +624,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
628
624
|
rawResponse: {
|
|
629
625
|
statusCode: currentRawResponse!.status,
|
|
630
626
|
body: currentRawResponse!.parsedBody,
|
|
631
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
632
|
-
}
|
|
627
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
628
|
+
},
|
|
633
629
|
};
|
|
634
630
|
};
|
|
635
631
|
|
|
@@ -642,16 +638,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
642
638
|
protectionContainerName,
|
|
643
639
|
replicatedProtectedItemName,
|
|
644
640
|
updateProtectionInput,
|
|
645
|
-
options
|
|
641
|
+
options,
|
|
646
642
|
},
|
|
647
|
-
spec: updateOperationSpec
|
|
643
|
+
spec: updateOperationSpec,
|
|
648
644
|
});
|
|
649
645
|
const poller = await createHttpPoller<
|
|
650
646
|
ReplicationProtectedItemsUpdateResponse,
|
|
651
647
|
OperationState<ReplicationProtectedItemsUpdateResponse>
|
|
652
648
|
>(lro, {
|
|
653
649
|
restoreFrom: options?.resumeFrom,
|
|
654
|
-
intervalInMs: options?.updateIntervalInMs
|
|
650
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
655
651
|
});
|
|
656
652
|
await poller.poll();
|
|
657
653
|
return poller;
|
|
@@ -675,7 +671,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
675
671
|
protectionContainerName: string,
|
|
676
672
|
replicatedProtectedItemName: string,
|
|
677
673
|
updateProtectionInput: UpdateReplicationProtectedItemInput,
|
|
678
|
-
options?: ReplicationProtectedItemsUpdateOptionalParams
|
|
674
|
+
options?: ReplicationProtectedItemsUpdateOptionalParams,
|
|
679
675
|
): Promise<ReplicationProtectedItemsUpdateResponse> {
|
|
680
676
|
const poller = await this.beginUpdate(
|
|
681
677
|
resourceName,
|
|
@@ -684,7 +680,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
684
680
|
protectionContainerName,
|
|
685
681
|
replicatedProtectedItemName,
|
|
686
682
|
updateProtectionInput,
|
|
687
|
-
options
|
|
683
|
+
options,
|
|
688
684
|
);
|
|
689
685
|
return poller.pollUntilDone();
|
|
690
686
|
}
|
|
@@ -707,7 +703,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
707
703
|
protectionContainerName: string,
|
|
708
704
|
replicatedProtectedItemName: string,
|
|
709
705
|
addDisksInput: AddDisksInput,
|
|
710
|
-
options?: ReplicationProtectedItemsAddDisksOptionalParams
|
|
706
|
+
options?: ReplicationProtectedItemsAddDisksOptionalParams,
|
|
711
707
|
): Promise<
|
|
712
708
|
SimplePollerLike<
|
|
713
709
|
OperationState<ReplicationProtectedItemsAddDisksResponse>,
|
|
@@ -716,21 +712,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
716
712
|
> {
|
|
717
713
|
const directSendOperation = async (
|
|
718
714
|
args: coreClient.OperationArguments,
|
|
719
|
-
spec: coreClient.OperationSpec
|
|
715
|
+
spec: coreClient.OperationSpec,
|
|
720
716
|
): Promise<ReplicationProtectedItemsAddDisksResponse> => {
|
|
721
717
|
return this.client.sendOperationRequest(args, spec);
|
|
722
718
|
};
|
|
723
719
|
const sendOperationFn = async (
|
|
724
720
|
args: coreClient.OperationArguments,
|
|
725
|
-
spec: coreClient.OperationSpec
|
|
721
|
+
spec: coreClient.OperationSpec,
|
|
726
722
|
) => {
|
|
727
|
-
let currentRawResponse:
|
|
728
|
-
|
|
729
|
-
| undefined = undefined;
|
|
723
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
724
|
+
undefined;
|
|
730
725
|
const providedCallback = args.options?.onResponse;
|
|
731
726
|
const callback: coreClient.RawResponseCallback = (
|
|
732
727
|
rawResponse: coreClient.FullOperationResponse,
|
|
733
|
-
flatResponse: unknown
|
|
728
|
+
flatResponse: unknown,
|
|
734
729
|
) => {
|
|
735
730
|
currentRawResponse = rawResponse;
|
|
736
731
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -739,8 +734,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
739
734
|
...args,
|
|
740
735
|
options: {
|
|
741
736
|
...args.options,
|
|
742
|
-
onResponse: callback
|
|
743
|
-
}
|
|
737
|
+
onResponse: callback,
|
|
738
|
+
},
|
|
744
739
|
};
|
|
745
740
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
746
741
|
return {
|
|
@@ -748,8 +743,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
748
743
|
rawResponse: {
|
|
749
744
|
statusCode: currentRawResponse!.status,
|
|
750
745
|
body: currentRawResponse!.parsedBody,
|
|
751
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
752
|
-
}
|
|
746
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
747
|
+
},
|
|
753
748
|
};
|
|
754
749
|
};
|
|
755
750
|
|
|
@@ -762,16 +757,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
762
757
|
protectionContainerName,
|
|
763
758
|
replicatedProtectedItemName,
|
|
764
759
|
addDisksInput,
|
|
765
|
-
options
|
|
760
|
+
options,
|
|
766
761
|
},
|
|
767
|
-
spec: addDisksOperationSpec
|
|
762
|
+
spec: addDisksOperationSpec,
|
|
768
763
|
});
|
|
769
764
|
const poller = await createHttpPoller<
|
|
770
765
|
ReplicationProtectedItemsAddDisksResponse,
|
|
771
766
|
OperationState<ReplicationProtectedItemsAddDisksResponse>
|
|
772
767
|
>(lro, {
|
|
773
768
|
restoreFrom: options?.resumeFrom,
|
|
774
|
-
intervalInMs: options?.updateIntervalInMs
|
|
769
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
775
770
|
});
|
|
776
771
|
await poller.poll();
|
|
777
772
|
return poller;
|
|
@@ -795,7 +790,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
795
790
|
protectionContainerName: string,
|
|
796
791
|
replicatedProtectedItemName: string,
|
|
797
792
|
addDisksInput: AddDisksInput,
|
|
798
|
-
options?: ReplicationProtectedItemsAddDisksOptionalParams
|
|
793
|
+
options?: ReplicationProtectedItemsAddDisksOptionalParams,
|
|
799
794
|
): Promise<ReplicationProtectedItemsAddDisksResponse> {
|
|
800
795
|
const poller = await this.beginAddDisks(
|
|
801
796
|
resourceName,
|
|
@@ -804,7 +799,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
804
799
|
protectionContainerName,
|
|
805
800
|
replicatedProtectedItemName,
|
|
806
801
|
addDisksInput,
|
|
807
|
-
options
|
|
802
|
+
options,
|
|
808
803
|
);
|
|
809
804
|
return poller.pollUntilDone();
|
|
810
805
|
}
|
|
@@ -827,7 +822,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
827
822
|
protectionContainerName: string,
|
|
828
823
|
replicatedProtectedItemName: string,
|
|
829
824
|
applyRecoveryPointInput: ApplyRecoveryPointInput,
|
|
830
|
-
options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams
|
|
825
|
+
options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams,
|
|
831
826
|
): Promise<
|
|
832
827
|
SimplePollerLike<
|
|
833
828
|
OperationState<ReplicationProtectedItemsApplyRecoveryPointResponse>,
|
|
@@ -836,21 +831,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
836
831
|
> {
|
|
837
832
|
const directSendOperation = async (
|
|
838
833
|
args: coreClient.OperationArguments,
|
|
839
|
-
spec: coreClient.OperationSpec
|
|
834
|
+
spec: coreClient.OperationSpec,
|
|
840
835
|
): Promise<ReplicationProtectedItemsApplyRecoveryPointResponse> => {
|
|
841
836
|
return this.client.sendOperationRequest(args, spec);
|
|
842
837
|
};
|
|
843
838
|
const sendOperationFn = async (
|
|
844
839
|
args: coreClient.OperationArguments,
|
|
845
|
-
spec: coreClient.OperationSpec
|
|
840
|
+
spec: coreClient.OperationSpec,
|
|
846
841
|
) => {
|
|
847
|
-
let currentRawResponse:
|
|
848
|
-
|
|
849
|
-
| undefined = undefined;
|
|
842
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
843
|
+
undefined;
|
|
850
844
|
const providedCallback = args.options?.onResponse;
|
|
851
845
|
const callback: coreClient.RawResponseCallback = (
|
|
852
846
|
rawResponse: coreClient.FullOperationResponse,
|
|
853
|
-
flatResponse: unknown
|
|
847
|
+
flatResponse: unknown,
|
|
854
848
|
) => {
|
|
855
849
|
currentRawResponse = rawResponse;
|
|
856
850
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -859,8 +853,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
859
853
|
...args,
|
|
860
854
|
options: {
|
|
861
855
|
...args.options,
|
|
862
|
-
onResponse: callback
|
|
863
|
-
}
|
|
856
|
+
onResponse: callback,
|
|
857
|
+
},
|
|
864
858
|
};
|
|
865
859
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
866
860
|
return {
|
|
@@ -868,8 +862,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
868
862
|
rawResponse: {
|
|
869
863
|
statusCode: currentRawResponse!.status,
|
|
870
864
|
body: currentRawResponse!.parsedBody,
|
|
871
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
872
|
-
}
|
|
865
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
866
|
+
},
|
|
873
867
|
};
|
|
874
868
|
};
|
|
875
869
|
|
|
@@ -882,16 +876,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
882
876
|
protectionContainerName,
|
|
883
877
|
replicatedProtectedItemName,
|
|
884
878
|
applyRecoveryPointInput,
|
|
885
|
-
options
|
|
879
|
+
options,
|
|
886
880
|
},
|
|
887
|
-
spec: applyRecoveryPointOperationSpec
|
|
881
|
+
spec: applyRecoveryPointOperationSpec,
|
|
888
882
|
});
|
|
889
883
|
const poller = await createHttpPoller<
|
|
890
884
|
ReplicationProtectedItemsApplyRecoveryPointResponse,
|
|
891
885
|
OperationState<ReplicationProtectedItemsApplyRecoveryPointResponse>
|
|
892
886
|
>(lro, {
|
|
893
887
|
restoreFrom: options?.resumeFrom,
|
|
894
|
-
intervalInMs: options?.updateIntervalInMs
|
|
888
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
895
889
|
});
|
|
896
890
|
await poller.poll();
|
|
897
891
|
return poller;
|
|
@@ -915,7 +909,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
915
909
|
protectionContainerName: string,
|
|
916
910
|
replicatedProtectedItemName: string,
|
|
917
911
|
applyRecoveryPointInput: ApplyRecoveryPointInput,
|
|
918
|
-
options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams
|
|
912
|
+
options?: ReplicationProtectedItemsApplyRecoveryPointOptionalParams,
|
|
919
913
|
): Promise<ReplicationProtectedItemsApplyRecoveryPointResponse> {
|
|
920
914
|
const poller = await this.beginApplyRecoveryPoint(
|
|
921
915
|
resourceName,
|
|
@@ -924,7 +918,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
924
918
|
protectionContainerName,
|
|
925
919
|
replicatedProtectedItemName,
|
|
926
920
|
applyRecoveryPointInput,
|
|
927
|
-
options
|
|
921
|
+
options,
|
|
928
922
|
);
|
|
929
923
|
return poller.pollUntilDone();
|
|
930
924
|
}
|
|
@@ -945,7 +939,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
945
939
|
fabricName: string,
|
|
946
940
|
protectionContainerName: string,
|
|
947
941
|
replicatedProtectedItemName: string,
|
|
948
|
-
options?: ReplicationProtectedItemsFailoverCancelOptionalParams
|
|
942
|
+
options?: ReplicationProtectedItemsFailoverCancelOptionalParams,
|
|
949
943
|
): Promise<
|
|
950
944
|
SimplePollerLike<
|
|
951
945
|
OperationState<ReplicationProtectedItemsFailoverCancelResponse>,
|
|
@@ -954,21 +948,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
954
948
|
> {
|
|
955
949
|
const directSendOperation = async (
|
|
956
950
|
args: coreClient.OperationArguments,
|
|
957
|
-
spec: coreClient.OperationSpec
|
|
951
|
+
spec: coreClient.OperationSpec,
|
|
958
952
|
): Promise<ReplicationProtectedItemsFailoverCancelResponse> => {
|
|
959
953
|
return this.client.sendOperationRequest(args, spec);
|
|
960
954
|
};
|
|
961
955
|
const sendOperationFn = async (
|
|
962
956
|
args: coreClient.OperationArguments,
|
|
963
|
-
spec: coreClient.OperationSpec
|
|
957
|
+
spec: coreClient.OperationSpec,
|
|
964
958
|
) => {
|
|
965
|
-
let currentRawResponse:
|
|
966
|
-
|
|
967
|
-
| undefined = undefined;
|
|
959
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
960
|
+
undefined;
|
|
968
961
|
const providedCallback = args.options?.onResponse;
|
|
969
962
|
const callback: coreClient.RawResponseCallback = (
|
|
970
963
|
rawResponse: coreClient.FullOperationResponse,
|
|
971
|
-
flatResponse: unknown
|
|
964
|
+
flatResponse: unknown,
|
|
972
965
|
) => {
|
|
973
966
|
currentRawResponse = rawResponse;
|
|
974
967
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -977,8 +970,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
977
970
|
...args,
|
|
978
971
|
options: {
|
|
979
972
|
...args.options,
|
|
980
|
-
onResponse: callback
|
|
981
|
-
}
|
|
973
|
+
onResponse: callback,
|
|
974
|
+
},
|
|
982
975
|
};
|
|
983
976
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
984
977
|
return {
|
|
@@ -986,8 +979,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
986
979
|
rawResponse: {
|
|
987
980
|
statusCode: currentRawResponse!.status,
|
|
988
981
|
body: currentRawResponse!.parsedBody,
|
|
989
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
990
|
-
}
|
|
982
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
983
|
+
},
|
|
991
984
|
};
|
|
992
985
|
};
|
|
993
986
|
|
|
@@ -999,16 +992,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
999
992
|
fabricName,
|
|
1000
993
|
protectionContainerName,
|
|
1001
994
|
replicatedProtectedItemName,
|
|
1002
|
-
options
|
|
995
|
+
options,
|
|
1003
996
|
},
|
|
1004
|
-
spec: failoverCancelOperationSpec
|
|
997
|
+
spec: failoverCancelOperationSpec,
|
|
1005
998
|
});
|
|
1006
999
|
const poller = await createHttpPoller<
|
|
1007
1000
|
ReplicationProtectedItemsFailoverCancelResponse,
|
|
1008
1001
|
OperationState<ReplicationProtectedItemsFailoverCancelResponse>
|
|
1009
1002
|
>(lro, {
|
|
1010
1003
|
restoreFrom: options?.resumeFrom,
|
|
1011
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1004
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1012
1005
|
});
|
|
1013
1006
|
await poller.poll();
|
|
1014
1007
|
return poller;
|
|
@@ -1030,7 +1023,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1030
1023
|
fabricName: string,
|
|
1031
1024
|
protectionContainerName: string,
|
|
1032
1025
|
replicatedProtectedItemName: string,
|
|
1033
|
-
options?: ReplicationProtectedItemsFailoverCancelOptionalParams
|
|
1026
|
+
options?: ReplicationProtectedItemsFailoverCancelOptionalParams,
|
|
1034
1027
|
): Promise<ReplicationProtectedItemsFailoverCancelResponse> {
|
|
1035
1028
|
const poller = await this.beginFailoverCancel(
|
|
1036
1029
|
resourceName,
|
|
@@ -1038,7 +1031,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1038
1031
|
fabricName,
|
|
1039
1032
|
protectionContainerName,
|
|
1040
1033
|
replicatedProtectedItemName,
|
|
1041
|
-
options
|
|
1034
|
+
options,
|
|
1042
1035
|
);
|
|
1043
1036
|
return poller.pollUntilDone();
|
|
1044
1037
|
}
|
|
@@ -1059,7 +1052,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1059
1052
|
fabricName: string,
|
|
1060
1053
|
protectionContainerName: string,
|
|
1061
1054
|
replicatedProtectedItemName: string,
|
|
1062
|
-
options?: ReplicationProtectedItemsFailoverCommitOptionalParams
|
|
1055
|
+
options?: ReplicationProtectedItemsFailoverCommitOptionalParams,
|
|
1063
1056
|
): Promise<
|
|
1064
1057
|
SimplePollerLike<
|
|
1065
1058
|
OperationState<ReplicationProtectedItemsFailoverCommitResponse>,
|
|
@@ -1068,21 +1061,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1068
1061
|
> {
|
|
1069
1062
|
const directSendOperation = async (
|
|
1070
1063
|
args: coreClient.OperationArguments,
|
|
1071
|
-
spec: coreClient.OperationSpec
|
|
1064
|
+
spec: coreClient.OperationSpec,
|
|
1072
1065
|
): Promise<ReplicationProtectedItemsFailoverCommitResponse> => {
|
|
1073
1066
|
return this.client.sendOperationRequest(args, spec);
|
|
1074
1067
|
};
|
|
1075
1068
|
const sendOperationFn = async (
|
|
1076
1069
|
args: coreClient.OperationArguments,
|
|
1077
|
-
spec: coreClient.OperationSpec
|
|
1070
|
+
spec: coreClient.OperationSpec,
|
|
1078
1071
|
) => {
|
|
1079
|
-
let currentRawResponse:
|
|
1080
|
-
|
|
1081
|
-
| undefined = undefined;
|
|
1072
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1073
|
+
undefined;
|
|
1082
1074
|
const providedCallback = args.options?.onResponse;
|
|
1083
1075
|
const callback: coreClient.RawResponseCallback = (
|
|
1084
1076
|
rawResponse: coreClient.FullOperationResponse,
|
|
1085
|
-
flatResponse: unknown
|
|
1077
|
+
flatResponse: unknown,
|
|
1086
1078
|
) => {
|
|
1087
1079
|
currentRawResponse = rawResponse;
|
|
1088
1080
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1091,8 +1083,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1091
1083
|
...args,
|
|
1092
1084
|
options: {
|
|
1093
1085
|
...args.options,
|
|
1094
|
-
onResponse: callback
|
|
1095
|
-
}
|
|
1086
|
+
onResponse: callback,
|
|
1087
|
+
},
|
|
1096
1088
|
};
|
|
1097
1089
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1098
1090
|
return {
|
|
@@ -1100,8 +1092,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1100
1092
|
rawResponse: {
|
|
1101
1093
|
statusCode: currentRawResponse!.status,
|
|
1102
1094
|
body: currentRawResponse!.parsedBody,
|
|
1103
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1104
|
-
}
|
|
1095
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1096
|
+
},
|
|
1105
1097
|
};
|
|
1106
1098
|
};
|
|
1107
1099
|
|
|
@@ -1113,16 +1105,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1113
1105
|
fabricName,
|
|
1114
1106
|
protectionContainerName,
|
|
1115
1107
|
replicatedProtectedItemName,
|
|
1116
|
-
options
|
|
1108
|
+
options,
|
|
1117
1109
|
},
|
|
1118
|
-
spec: failoverCommitOperationSpec
|
|
1110
|
+
spec: failoverCommitOperationSpec,
|
|
1119
1111
|
});
|
|
1120
1112
|
const poller = await createHttpPoller<
|
|
1121
1113
|
ReplicationProtectedItemsFailoverCommitResponse,
|
|
1122
1114
|
OperationState<ReplicationProtectedItemsFailoverCommitResponse>
|
|
1123
1115
|
>(lro, {
|
|
1124
1116
|
restoreFrom: options?.resumeFrom,
|
|
1125
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1117
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1126
1118
|
});
|
|
1127
1119
|
await poller.poll();
|
|
1128
1120
|
return poller;
|
|
@@ -1144,7 +1136,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1144
1136
|
fabricName: string,
|
|
1145
1137
|
protectionContainerName: string,
|
|
1146
1138
|
replicatedProtectedItemName: string,
|
|
1147
|
-
options?: ReplicationProtectedItemsFailoverCommitOptionalParams
|
|
1139
|
+
options?: ReplicationProtectedItemsFailoverCommitOptionalParams,
|
|
1148
1140
|
): Promise<ReplicationProtectedItemsFailoverCommitResponse> {
|
|
1149
1141
|
const poller = await this.beginFailoverCommit(
|
|
1150
1142
|
resourceName,
|
|
@@ -1152,7 +1144,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1152
1144
|
fabricName,
|
|
1153
1145
|
protectionContainerName,
|
|
1154
1146
|
replicatedProtectedItemName,
|
|
1155
|
-
options
|
|
1147
|
+
options,
|
|
1156
1148
|
);
|
|
1157
1149
|
return poller.pollUntilDone();
|
|
1158
1150
|
}
|
|
@@ -1175,7 +1167,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1175
1167
|
protectionContainerName: string,
|
|
1176
1168
|
replicatedProtectedItemName: string,
|
|
1177
1169
|
failoverInput: PlannedFailoverInput,
|
|
1178
|
-
options?: ReplicationProtectedItemsPlannedFailoverOptionalParams
|
|
1170
|
+
options?: ReplicationProtectedItemsPlannedFailoverOptionalParams,
|
|
1179
1171
|
): Promise<
|
|
1180
1172
|
SimplePollerLike<
|
|
1181
1173
|
OperationState<ReplicationProtectedItemsPlannedFailoverResponse>,
|
|
@@ -1184,21 +1176,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1184
1176
|
> {
|
|
1185
1177
|
const directSendOperation = async (
|
|
1186
1178
|
args: coreClient.OperationArguments,
|
|
1187
|
-
spec: coreClient.OperationSpec
|
|
1179
|
+
spec: coreClient.OperationSpec,
|
|
1188
1180
|
): Promise<ReplicationProtectedItemsPlannedFailoverResponse> => {
|
|
1189
1181
|
return this.client.sendOperationRequest(args, spec);
|
|
1190
1182
|
};
|
|
1191
1183
|
const sendOperationFn = async (
|
|
1192
1184
|
args: coreClient.OperationArguments,
|
|
1193
|
-
spec: coreClient.OperationSpec
|
|
1185
|
+
spec: coreClient.OperationSpec,
|
|
1194
1186
|
) => {
|
|
1195
|
-
let currentRawResponse:
|
|
1196
|
-
|
|
1197
|
-
| undefined = undefined;
|
|
1187
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1188
|
+
undefined;
|
|
1198
1189
|
const providedCallback = args.options?.onResponse;
|
|
1199
1190
|
const callback: coreClient.RawResponseCallback = (
|
|
1200
1191
|
rawResponse: coreClient.FullOperationResponse,
|
|
1201
|
-
flatResponse: unknown
|
|
1192
|
+
flatResponse: unknown,
|
|
1202
1193
|
) => {
|
|
1203
1194
|
currentRawResponse = rawResponse;
|
|
1204
1195
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1207,8 +1198,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1207
1198
|
...args,
|
|
1208
1199
|
options: {
|
|
1209
1200
|
...args.options,
|
|
1210
|
-
onResponse: callback
|
|
1211
|
-
}
|
|
1201
|
+
onResponse: callback,
|
|
1202
|
+
},
|
|
1212
1203
|
};
|
|
1213
1204
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1214
1205
|
return {
|
|
@@ -1216,8 +1207,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1216
1207
|
rawResponse: {
|
|
1217
1208
|
statusCode: currentRawResponse!.status,
|
|
1218
1209
|
body: currentRawResponse!.parsedBody,
|
|
1219
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1220
|
-
}
|
|
1210
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1211
|
+
},
|
|
1221
1212
|
};
|
|
1222
1213
|
};
|
|
1223
1214
|
|
|
@@ -1230,16 +1221,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1230
1221
|
protectionContainerName,
|
|
1231
1222
|
replicatedProtectedItemName,
|
|
1232
1223
|
failoverInput,
|
|
1233
|
-
options
|
|
1224
|
+
options,
|
|
1234
1225
|
},
|
|
1235
|
-
spec: plannedFailoverOperationSpec
|
|
1226
|
+
spec: plannedFailoverOperationSpec,
|
|
1236
1227
|
});
|
|
1237
1228
|
const poller = await createHttpPoller<
|
|
1238
1229
|
ReplicationProtectedItemsPlannedFailoverResponse,
|
|
1239
1230
|
OperationState<ReplicationProtectedItemsPlannedFailoverResponse>
|
|
1240
1231
|
>(lro, {
|
|
1241
1232
|
restoreFrom: options?.resumeFrom,
|
|
1242
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1233
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1243
1234
|
});
|
|
1244
1235
|
await poller.poll();
|
|
1245
1236
|
return poller;
|
|
@@ -1263,7 +1254,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1263
1254
|
protectionContainerName: string,
|
|
1264
1255
|
replicatedProtectedItemName: string,
|
|
1265
1256
|
failoverInput: PlannedFailoverInput,
|
|
1266
|
-
options?: ReplicationProtectedItemsPlannedFailoverOptionalParams
|
|
1257
|
+
options?: ReplicationProtectedItemsPlannedFailoverOptionalParams,
|
|
1267
1258
|
): Promise<ReplicationProtectedItemsPlannedFailoverResponse> {
|
|
1268
1259
|
const poller = await this.beginPlannedFailover(
|
|
1269
1260
|
resourceName,
|
|
@@ -1272,7 +1263,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1272
1263
|
protectionContainerName,
|
|
1273
1264
|
replicatedProtectedItemName,
|
|
1274
1265
|
failoverInput,
|
|
1275
|
-
options
|
|
1266
|
+
options,
|
|
1276
1267
|
);
|
|
1277
1268
|
return poller.pollUntilDone();
|
|
1278
1269
|
}
|
|
@@ -1296,25 +1287,24 @@ export class ReplicationProtectedItemsImpl
|
|
|
1296
1287
|
protectionContainerName: string,
|
|
1297
1288
|
replicatedProtectedItemName: string,
|
|
1298
1289
|
disableProtectionInput: DisableProtectionInput,
|
|
1299
|
-
options?: ReplicationProtectedItemsDeleteOptionalParams
|
|
1290
|
+
options?: ReplicationProtectedItemsDeleteOptionalParams,
|
|
1300
1291
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
1301
1292
|
const directSendOperation = async (
|
|
1302
1293
|
args: coreClient.OperationArguments,
|
|
1303
|
-
spec: coreClient.OperationSpec
|
|
1294
|
+
spec: coreClient.OperationSpec,
|
|
1304
1295
|
): Promise<void> => {
|
|
1305
1296
|
return this.client.sendOperationRequest(args, spec);
|
|
1306
1297
|
};
|
|
1307
1298
|
const sendOperationFn = async (
|
|
1308
1299
|
args: coreClient.OperationArguments,
|
|
1309
|
-
spec: coreClient.OperationSpec
|
|
1300
|
+
spec: coreClient.OperationSpec,
|
|
1310
1301
|
) => {
|
|
1311
|
-
let currentRawResponse:
|
|
1312
|
-
|
|
1313
|
-
| undefined = undefined;
|
|
1302
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1303
|
+
undefined;
|
|
1314
1304
|
const providedCallback = args.options?.onResponse;
|
|
1315
1305
|
const callback: coreClient.RawResponseCallback = (
|
|
1316
1306
|
rawResponse: coreClient.FullOperationResponse,
|
|
1317
|
-
flatResponse: unknown
|
|
1307
|
+
flatResponse: unknown,
|
|
1318
1308
|
) => {
|
|
1319
1309
|
currentRawResponse = rawResponse;
|
|
1320
1310
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1323,8 +1313,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1323
1313
|
...args,
|
|
1324
1314
|
options: {
|
|
1325
1315
|
...args.options,
|
|
1326
|
-
onResponse: callback
|
|
1327
|
-
}
|
|
1316
|
+
onResponse: callback,
|
|
1317
|
+
},
|
|
1328
1318
|
};
|
|
1329
1319
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1330
1320
|
return {
|
|
@@ -1332,8 +1322,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1332
1322
|
rawResponse: {
|
|
1333
1323
|
statusCode: currentRawResponse!.status,
|
|
1334
1324
|
body: currentRawResponse!.parsedBody,
|
|
1335
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1336
|
-
}
|
|
1325
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1326
|
+
},
|
|
1337
1327
|
};
|
|
1338
1328
|
};
|
|
1339
1329
|
|
|
@@ -1346,13 +1336,13 @@ export class ReplicationProtectedItemsImpl
|
|
|
1346
1336
|
protectionContainerName,
|
|
1347
1337
|
replicatedProtectedItemName,
|
|
1348
1338
|
disableProtectionInput,
|
|
1349
|
-
options
|
|
1339
|
+
options,
|
|
1350
1340
|
},
|
|
1351
|
-
spec: deleteOperationSpec
|
|
1341
|
+
spec: deleteOperationSpec,
|
|
1352
1342
|
});
|
|
1353
1343
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
1354
1344
|
restoreFrom: options?.resumeFrom,
|
|
1355
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1345
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1356
1346
|
});
|
|
1357
1347
|
await poller.poll();
|
|
1358
1348
|
return poller;
|
|
@@ -1377,7 +1367,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1377
1367
|
protectionContainerName: string,
|
|
1378
1368
|
replicatedProtectedItemName: string,
|
|
1379
1369
|
disableProtectionInput: DisableProtectionInput,
|
|
1380
|
-
options?: ReplicationProtectedItemsDeleteOptionalParams
|
|
1370
|
+
options?: ReplicationProtectedItemsDeleteOptionalParams,
|
|
1381
1371
|
): Promise<void> {
|
|
1382
1372
|
const poller = await this.beginDelete(
|
|
1383
1373
|
resourceName,
|
|
@@ -1386,7 +1376,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1386
1376
|
protectionContainerName,
|
|
1387
1377
|
replicatedProtectedItemName,
|
|
1388
1378
|
disableProtectionInput,
|
|
1389
|
-
options
|
|
1379
|
+
options,
|
|
1390
1380
|
);
|
|
1391
1381
|
return poller.pollUntilDone();
|
|
1392
1382
|
}
|
|
@@ -1409,7 +1399,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1409
1399
|
protectionContainerName: string,
|
|
1410
1400
|
replicatedProtectedItemName: string,
|
|
1411
1401
|
removeDisksInput: RemoveDisksInput,
|
|
1412
|
-
options?: ReplicationProtectedItemsRemoveDisksOptionalParams
|
|
1402
|
+
options?: ReplicationProtectedItemsRemoveDisksOptionalParams,
|
|
1413
1403
|
): Promise<
|
|
1414
1404
|
SimplePollerLike<
|
|
1415
1405
|
OperationState<ReplicationProtectedItemsRemoveDisksResponse>,
|
|
@@ -1418,21 +1408,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1418
1408
|
> {
|
|
1419
1409
|
const directSendOperation = async (
|
|
1420
1410
|
args: coreClient.OperationArguments,
|
|
1421
|
-
spec: coreClient.OperationSpec
|
|
1411
|
+
spec: coreClient.OperationSpec,
|
|
1422
1412
|
): Promise<ReplicationProtectedItemsRemoveDisksResponse> => {
|
|
1423
1413
|
return this.client.sendOperationRequest(args, spec);
|
|
1424
1414
|
};
|
|
1425
1415
|
const sendOperationFn = async (
|
|
1426
1416
|
args: coreClient.OperationArguments,
|
|
1427
|
-
spec: coreClient.OperationSpec
|
|
1417
|
+
spec: coreClient.OperationSpec,
|
|
1428
1418
|
) => {
|
|
1429
|
-
let currentRawResponse:
|
|
1430
|
-
|
|
1431
|
-
| undefined = undefined;
|
|
1419
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1420
|
+
undefined;
|
|
1432
1421
|
const providedCallback = args.options?.onResponse;
|
|
1433
1422
|
const callback: coreClient.RawResponseCallback = (
|
|
1434
1423
|
rawResponse: coreClient.FullOperationResponse,
|
|
1435
|
-
flatResponse: unknown
|
|
1424
|
+
flatResponse: unknown,
|
|
1436
1425
|
) => {
|
|
1437
1426
|
currentRawResponse = rawResponse;
|
|
1438
1427
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1441,8 +1430,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1441
1430
|
...args,
|
|
1442
1431
|
options: {
|
|
1443
1432
|
...args.options,
|
|
1444
|
-
onResponse: callback
|
|
1445
|
-
}
|
|
1433
|
+
onResponse: callback,
|
|
1434
|
+
},
|
|
1446
1435
|
};
|
|
1447
1436
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1448
1437
|
return {
|
|
@@ -1450,8 +1439,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1450
1439
|
rawResponse: {
|
|
1451
1440
|
statusCode: currentRawResponse!.status,
|
|
1452
1441
|
body: currentRawResponse!.parsedBody,
|
|
1453
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1454
|
-
}
|
|
1442
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1443
|
+
},
|
|
1455
1444
|
};
|
|
1456
1445
|
};
|
|
1457
1446
|
|
|
@@ -1464,16 +1453,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1464
1453
|
protectionContainerName,
|
|
1465
1454
|
replicatedProtectedItemName,
|
|
1466
1455
|
removeDisksInput,
|
|
1467
|
-
options
|
|
1456
|
+
options,
|
|
1468
1457
|
},
|
|
1469
|
-
spec: removeDisksOperationSpec
|
|
1458
|
+
spec: removeDisksOperationSpec,
|
|
1470
1459
|
});
|
|
1471
1460
|
const poller = await createHttpPoller<
|
|
1472
1461
|
ReplicationProtectedItemsRemoveDisksResponse,
|
|
1473
1462
|
OperationState<ReplicationProtectedItemsRemoveDisksResponse>
|
|
1474
1463
|
>(lro, {
|
|
1475
1464
|
restoreFrom: options?.resumeFrom,
|
|
1476
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1465
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1477
1466
|
});
|
|
1478
1467
|
await poller.poll();
|
|
1479
1468
|
return poller;
|
|
@@ -1497,7 +1486,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1497
1486
|
protectionContainerName: string,
|
|
1498
1487
|
replicatedProtectedItemName: string,
|
|
1499
1488
|
removeDisksInput: RemoveDisksInput,
|
|
1500
|
-
options?: ReplicationProtectedItemsRemoveDisksOptionalParams
|
|
1489
|
+
options?: ReplicationProtectedItemsRemoveDisksOptionalParams,
|
|
1501
1490
|
): Promise<ReplicationProtectedItemsRemoveDisksResponse> {
|
|
1502
1491
|
const poller = await this.beginRemoveDisks(
|
|
1503
1492
|
resourceName,
|
|
@@ -1506,7 +1495,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1506
1495
|
protectionContainerName,
|
|
1507
1496
|
replicatedProtectedItemName,
|
|
1508
1497
|
removeDisksInput,
|
|
1509
|
-
options
|
|
1498
|
+
options,
|
|
1510
1499
|
);
|
|
1511
1500
|
return poller.pollUntilDone();
|
|
1512
1501
|
}
|
|
@@ -1528,7 +1517,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1528
1517
|
fabricName: string,
|
|
1529
1518
|
protectionContainerName: string,
|
|
1530
1519
|
replicatedProtectedItemName: string,
|
|
1531
|
-
options?: ReplicationProtectedItemsRepairReplicationOptionalParams
|
|
1520
|
+
options?: ReplicationProtectedItemsRepairReplicationOptionalParams,
|
|
1532
1521
|
): Promise<
|
|
1533
1522
|
SimplePollerLike<
|
|
1534
1523
|
OperationState<ReplicationProtectedItemsRepairReplicationResponse>,
|
|
@@ -1537,21 +1526,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1537
1526
|
> {
|
|
1538
1527
|
const directSendOperation = async (
|
|
1539
1528
|
args: coreClient.OperationArguments,
|
|
1540
|
-
spec: coreClient.OperationSpec
|
|
1529
|
+
spec: coreClient.OperationSpec,
|
|
1541
1530
|
): Promise<ReplicationProtectedItemsRepairReplicationResponse> => {
|
|
1542
1531
|
return this.client.sendOperationRequest(args, spec);
|
|
1543
1532
|
};
|
|
1544
1533
|
const sendOperationFn = async (
|
|
1545
1534
|
args: coreClient.OperationArguments,
|
|
1546
|
-
spec: coreClient.OperationSpec
|
|
1535
|
+
spec: coreClient.OperationSpec,
|
|
1547
1536
|
) => {
|
|
1548
|
-
let currentRawResponse:
|
|
1549
|
-
|
|
1550
|
-
| undefined = undefined;
|
|
1537
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1538
|
+
undefined;
|
|
1551
1539
|
const providedCallback = args.options?.onResponse;
|
|
1552
1540
|
const callback: coreClient.RawResponseCallback = (
|
|
1553
1541
|
rawResponse: coreClient.FullOperationResponse,
|
|
1554
|
-
flatResponse: unknown
|
|
1542
|
+
flatResponse: unknown,
|
|
1555
1543
|
) => {
|
|
1556
1544
|
currentRawResponse = rawResponse;
|
|
1557
1545
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1560,8 +1548,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1560
1548
|
...args,
|
|
1561
1549
|
options: {
|
|
1562
1550
|
...args.options,
|
|
1563
|
-
onResponse: callback
|
|
1564
|
-
}
|
|
1551
|
+
onResponse: callback,
|
|
1552
|
+
},
|
|
1565
1553
|
};
|
|
1566
1554
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1567
1555
|
return {
|
|
@@ -1569,8 +1557,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1569
1557
|
rawResponse: {
|
|
1570
1558
|
statusCode: currentRawResponse!.status,
|
|
1571
1559
|
body: currentRawResponse!.parsedBody,
|
|
1572
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1573
|
-
}
|
|
1560
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1561
|
+
},
|
|
1574
1562
|
};
|
|
1575
1563
|
};
|
|
1576
1564
|
|
|
@@ -1582,16 +1570,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1582
1570
|
fabricName,
|
|
1583
1571
|
protectionContainerName,
|
|
1584
1572
|
replicatedProtectedItemName,
|
|
1585
|
-
options
|
|
1573
|
+
options,
|
|
1586
1574
|
},
|
|
1587
|
-
spec: repairReplicationOperationSpec
|
|
1575
|
+
spec: repairReplicationOperationSpec,
|
|
1588
1576
|
});
|
|
1589
1577
|
const poller = await createHttpPoller<
|
|
1590
1578
|
ReplicationProtectedItemsRepairReplicationResponse,
|
|
1591
1579
|
OperationState<ReplicationProtectedItemsRepairReplicationResponse>
|
|
1592
1580
|
>(lro, {
|
|
1593
1581
|
restoreFrom: options?.resumeFrom,
|
|
1594
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1582
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1595
1583
|
});
|
|
1596
1584
|
await poller.poll();
|
|
1597
1585
|
return poller;
|
|
@@ -1614,7 +1602,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1614
1602
|
fabricName: string,
|
|
1615
1603
|
protectionContainerName: string,
|
|
1616
1604
|
replicatedProtectedItemName: string,
|
|
1617
|
-
options?: ReplicationProtectedItemsRepairReplicationOptionalParams
|
|
1605
|
+
options?: ReplicationProtectedItemsRepairReplicationOptionalParams,
|
|
1618
1606
|
): Promise<ReplicationProtectedItemsRepairReplicationResponse> {
|
|
1619
1607
|
const poller = await this.beginRepairReplication(
|
|
1620
1608
|
resourceName,
|
|
@@ -1622,7 +1610,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1622
1610
|
fabricName,
|
|
1623
1611
|
protectionContainerName,
|
|
1624
1612
|
replicatedProtectedItemName,
|
|
1625
|
-
options
|
|
1613
|
+
options,
|
|
1626
1614
|
);
|
|
1627
1615
|
return poller.pollUntilDone();
|
|
1628
1616
|
}
|
|
@@ -1645,7 +1633,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1645
1633
|
protectionContainerName: string,
|
|
1646
1634
|
replicatedProtectedItemName: string,
|
|
1647
1635
|
reprotectInput: ReverseReplicationInput,
|
|
1648
|
-
options?: ReplicationProtectedItemsReprotectOptionalParams
|
|
1636
|
+
options?: ReplicationProtectedItemsReprotectOptionalParams,
|
|
1649
1637
|
): Promise<
|
|
1650
1638
|
SimplePollerLike<
|
|
1651
1639
|
OperationState<ReplicationProtectedItemsReprotectResponse>,
|
|
@@ -1654,21 +1642,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1654
1642
|
> {
|
|
1655
1643
|
const directSendOperation = async (
|
|
1656
1644
|
args: coreClient.OperationArguments,
|
|
1657
|
-
spec: coreClient.OperationSpec
|
|
1645
|
+
spec: coreClient.OperationSpec,
|
|
1658
1646
|
): Promise<ReplicationProtectedItemsReprotectResponse> => {
|
|
1659
1647
|
return this.client.sendOperationRequest(args, spec);
|
|
1660
1648
|
};
|
|
1661
1649
|
const sendOperationFn = async (
|
|
1662
1650
|
args: coreClient.OperationArguments,
|
|
1663
|
-
spec: coreClient.OperationSpec
|
|
1651
|
+
spec: coreClient.OperationSpec,
|
|
1664
1652
|
) => {
|
|
1665
|
-
let currentRawResponse:
|
|
1666
|
-
|
|
1667
|
-
| undefined = undefined;
|
|
1653
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1654
|
+
undefined;
|
|
1668
1655
|
const providedCallback = args.options?.onResponse;
|
|
1669
1656
|
const callback: coreClient.RawResponseCallback = (
|
|
1670
1657
|
rawResponse: coreClient.FullOperationResponse,
|
|
1671
|
-
flatResponse: unknown
|
|
1658
|
+
flatResponse: unknown,
|
|
1672
1659
|
) => {
|
|
1673
1660
|
currentRawResponse = rawResponse;
|
|
1674
1661
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1677,8 +1664,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1677
1664
|
...args,
|
|
1678
1665
|
options: {
|
|
1679
1666
|
...args.options,
|
|
1680
|
-
onResponse: callback
|
|
1681
|
-
}
|
|
1667
|
+
onResponse: callback,
|
|
1668
|
+
},
|
|
1682
1669
|
};
|
|
1683
1670
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1684
1671
|
return {
|
|
@@ -1686,8 +1673,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1686
1673
|
rawResponse: {
|
|
1687
1674
|
statusCode: currentRawResponse!.status,
|
|
1688
1675
|
body: currentRawResponse!.parsedBody,
|
|
1689
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1690
|
-
}
|
|
1676
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1677
|
+
},
|
|
1691
1678
|
};
|
|
1692
1679
|
};
|
|
1693
1680
|
|
|
@@ -1700,16 +1687,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1700
1687
|
protectionContainerName,
|
|
1701
1688
|
replicatedProtectedItemName,
|
|
1702
1689
|
reprotectInput,
|
|
1703
|
-
options
|
|
1690
|
+
options,
|
|
1704
1691
|
},
|
|
1705
|
-
spec: reprotectOperationSpec
|
|
1692
|
+
spec: reprotectOperationSpec,
|
|
1706
1693
|
});
|
|
1707
1694
|
const poller = await createHttpPoller<
|
|
1708
1695
|
ReplicationProtectedItemsReprotectResponse,
|
|
1709
1696
|
OperationState<ReplicationProtectedItemsReprotectResponse>
|
|
1710
1697
|
>(lro, {
|
|
1711
1698
|
restoreFrom: options?.resumeFrom,
|
|
1712
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1699
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1713
1700
|
});
|
|
1714
1701
|
await poller.poll();
|
|
1715
1702
|
return poller;
|
|
@@ -1733,7 +1720,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1733
1720
|
protectionContainerName: string,
|
|
1734
1721
|
replicatedProtectedItemName: string,
|
|
1735
1722
|
reprotectInput: ReverseReplicationInput,
|
|
1736
|
-
options?: ReplicationProtectedItemsReprotectOptionalParams
|
|
1723
|
+
options?: ReplicationProtectedItemsReprotectOptionalParams,
|
|
1737
1724
|
): Promise<ReplicationProtectedItemsReprotectResponse> {
|
|
1738
1725
|
const poller = await this.beginReprotect(
|
|
1739
1726
|
resourceName,
|
|
@@ -1742,7 +1729,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1742
1729
|
protectionContainerName,
|
|
1743
1730
|
replicatedProtectedItemName,
|
|
1744
1731
|
reprotectInput,
|
|
1745
|
-
options
|
|
1732
|
+
options,
|
|
1746
1733
|
);
|
|
1747
1734
|
return poller.pollUntilDone();
|
|
1748
1735
|
}
|
|
@@ -1765,7 +1752,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1765
1752
|
protectionContainerName: string,
|
|
1766
1753
|
replicatedProtectedItemName: string,
|
|
1767
1754
|
resolveHealthInput: ResolveHealthInput,
|
|
1768
|
-
options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams
|
|
1755
|
+
options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams,
|
|
1769
1756
|
): Promise<
|
|
1770
1757
|
SimplePollerLike<
|
|
1771
1758
|
OperationState<ReplicationProtectedItemsResolveHealthErrorsResponse>,
|
|
@@ -1774,21 +1761,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1774
1761
|
> {
|
|
1775
1762
|
const directSendOperation = async (
|
|
1776
1763
|
args: coreClient.OperationArguments,
|
|
1777
|
-
spec: coreClient.OperationSpec
|
|
1764
|
+
spec: coreClient.OperationSpec,
|
|
1778
1765
|
): Promise<ReplicationProtectedItemsResolveHealthErrorsResponse> => {
|
|
1779
1766
|
return this.client.sendOperationRequest(args, spec);
|
|
1780
1767
|
};
|
|
1781
1768
|
const sendOperationFn = async (
|
|
1782
1769
|
args: coreClient.OperationArguments,
|
|
1783
|
-
spec: coreClient.OperationSpec
|
|
1770
|
+
spec: coreClient.OperationSpec,
|
|
1784
1771
|
) => {
|
|
1785
|
-
let currentRawResponse:
|
|
1786
|
-
|
|
1787
|
-
| undefined = undefined;
|
|
1772
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1773
|
+
undefined;
|
|
1788
1774
|
const providedCallback = args.options?.onResponse;
|
|
1789
1775
|
const callback: coreClient.RawResponseCallback = (
|
|
1790
1776
|
rawResponse: coreClient.FullOperationResponse,
|
|
1791
|
-
flatResponse: unknown
|
|
1777
|
+
flatResponse: unknown,
|
|
1792
1778
|
) => {
|
|
1793
1779
|
currentRawResponse = rawResponse;
|
|
1794
1780
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1797,8 +1783,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1797
1783
|
...args,
|
|
1798
1784
|
options: {
|
|
1799
1785
|
...args.options,
|
|
1800
|
-
onResponse: callback
|
|
1801
|
-
}
|
|
1786
|
+
onResponse: callback,
|
|
1787
|
+
},
|
|
1802
1788
|
};
|
|
1803
1789
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1804
1790
|
return {
|
|
@@ -1806,8 +1792,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1806
1792
|
rawResponse: {
|
|
1807
1793
|
statusCode: currentRawResponse!.status,
|
|
1808
1794
|
body: currentRawResponse!.parsedBody,
|
|
1809
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1810
|
-
}
|
|
1795
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1796
|
+
},
|
|
1811
1797
|
};
|
|
1812
1798
|
};
|
|
1813
1799
|
|
|
@@ -1820,16 +1806,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
1820
1806
|
protectionContainerName,
|
|
1821
1807
|
replicatedProtectedItemName,
|
|
1822
1808
|
resolveHealthInput,
|
|
1823
|
-
options
|
|
1809
|
+
options,
|
|
1824
1810
|
},
|
|
1825
|
-
spec: resolveHealthErrorsOperationSpec
|
|
1811
|
+
spec: resolveHealthErrorsOperationSpec,
|
|
1826
1812
|
});
|
|
1827
1813
|
const poller = await createHttpPoller<
|
|
1828
1814
|
ReplicationProtectedItemsResolveHealthErrorsResponse,
|
|
1829
1815
|
OperationState<ReplicationProtectedItemsResolveHealthErrorsResponse>
|
|
1830
1816
|
>(lro, {
|
|
1831
1817
|
restoreFrom: options?.resumeFrom,
|
|
1832
|
-
intervalInMs: options?.updateIntervalInMs
|
|
1818
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1833
1819
|
});
|
|
1834
1820
|
await poller.poll();
|
|
1835
1821
|
return poller;
|
|
@@ -1853,7 +1839,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1853
1839
|
protectionContainerName: string,
|
|
1854
1840
|
replicatedProtectedItemName: string,
|
|
1855
1841
|
resolveHealthInput: ResolveHealthInput,
|
|
1856
|
-
options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams
|
|
1842
|
+
options?: ReplicationProtectedItemsResolveHealthErrorsOptionalParams,
|
|
1857
1843
|
): Promise<ReplicationProtectedItemsResolveHealthErrorsResponse> {
|
|
1858
1844
|
const poller = await this.beginResolveHealthErrors(
|
|
1859
1845
|
resourceName,
|
|
@@ -1862,7 +1848,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1862
1848
|
protectionContainerName,
|
|
1863
1849
|
replicatedProtectedItemName,
|
|
1864
1850
|
resolveHealthInput,
|
|
1865
|
-
options
|
|
1851
|
+
options,
|
|
1866
1852
|
);
|
|
1867
1853
|
return poller.pollUntilDone();
|
|
1868
1854
|
}
|
|
@@ -1885,7 +1871,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1885
1871
|
protectionContainerName: string,
|
|
1886
1872
|
replicatedProtectedItemName: string,
|
|
1887
1873
|
switchProviderInput: SwitchProviderInput,
|
|
1888
|
-
options?: ReplicationProtectedItemsSwitchProviderOptionalParams
|
|
1874
|
+
options?: ReplicationProtectedItemsSwitchProviderOptionalParams,
|
|
1889
1875
|
): Promise<
|
|
1890
1876
|
SimplePollerLike<
|
|
1891
1877
|
OperationState<ReplicationProtectedItemsSwitchProviderResponse>,
|
|
@@ -1894,21 +1880,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
1894
1880
|
> {
|
|
1895
1881
|
const directSendOperation = async (
|
|
1896
1882
|
args: coreClient.OperationArguments,
|
|
1897
|
-
spec: coreClient.OperationSpec
|
|
1883
|
+
spec: coreClient.OperationSpec,
|
|
1898
1884
|
): Promise<ReplicationProtectedItemsSwitchProviderResponse> => {
|
|
1899
1885
|
return this.client.sendOperationRequest(args, spec);
|
|
1900
1886
|
};
|
|
1901
1887
|
const sendOperationFn = async (
|
|
1902
1888
|
args: coreClient.OperationArguments,
|
|
1903
|
-
spec: coreClient.OperationSpec
|
|
1889
|
+
spec: coreClient.OperationSpec,
|
|
1904
1890
|
) => {
|
|
1905
|
-
let currentRawResponse:
|
|
1906
|
-
|
|
1907
|
-
| undefined = undefined;
|
|
1891
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1892
|
+
undefined;
|
|
1908
1893
|
const providedCallback = args.options?.onResponse;
|
|
1909
1894
|
const callback: coreClient.RawResponseCallback = (
|
|
1910
1895
|
rawResponse: coreClient.FullOperationResponse,
|
|
1911
|
-
flatResponse: unknown
|
|
1896
|
+
flatResponse: unknown,
|
|
1912
1897
|
) => {
|
|
1913
1898
|
currentRawResponse = rawResponse;
|
|
1914
1899
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -1917,8 +1902,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1917
1902
|
...args,
|
|
1918
1903
|
options: {
|
|
1919
1904
|
...args.options,
|
|
1920
|
-
onResponse: callback
|
|
1921
|
-
}
|
|
1905
|
+
onResponse: callback,
|
|
1906
|
+
},
|
|
1922
1907
|
};
|
|
1923
1908
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1924
1909
|
return {
|
|
@@ -1926,8 +1911,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
1926
1911
|
rawResponse: {
|
|
1927
1912
|
statusCode: currentRawResponse!.status,
|
|
1928
1913
|
body: currentRawResponse!.parsedBody,
|
|
1929
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
1930
|
-
}
|
|
1914
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1915
|
+
},
|
|
1931
1916
|
};
|
|
1932
1917
|
};
|
|
1933
1918
|
|
|
@@ -1940,9 +1925,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
1940
1925
|
protectionContainerName,
|
|
1941
1926
|
replicatedProtectedItemName,
|
|
1942
1927
|
switchProviderInput,
|
|
1943
|
-
options
|
|
1928
|
+
options,
|
|
1944
1929
|
},
|
|
1945
|
-
spec: switchProviderOperationSpec
|
|
1930
|
+
spec: switchProviderOperationSpec,
|
|
1946
1931
|
});
|
|
1947
1932
|
const poller = await createHttpPoller<
|
|
1948
1933
|
ReplicationProtectedItemsSwitchProviderResponse,
|
|
@@ -1950,7 +1935,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1950
1935
|
>(lro, {
|
|
1951
1936
|
restoreFrom: options?.resumeFrom,
|
|
1952
1937
|
intervalInMs: options?.updateIntervalInMs,
|
|
1953
|
-
resourceLocationConfig: "azure-async-operation"
|
|
1938
|
+
resourceLocationConfig: "azure-async-operation",
|
|
1954
1939
|
});
|
|
1955
1940
|
await poller.poll();
|
|
1956
1941
|
return poller;
|
|
@@ -1974,7 +1959,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1974
1959
|
protectionContainerName: string,
|
|
1975
1960
|
replicatedProtectedItemName: string,
|
|
1976
1961
|
switchProviderInput: SwitchProviderInput,
|
|
1977
|
-
options?: ReplicationProtectedItemsSwitchProviderOptionalParams
|
|
1962
|
+
options?: ReplicationProtectedItemsSwitchProviderOptionalParams,
|
|
1978
1963
|
): Promise<ReplicationProtectedItemsSwitchProviderResponse> {
|
|
1979
1964
|
const poller = await this.beginSwitchProvider(
|
|
1980
1965
|
resourceName,
|
|
@@ -1983,7 +1968,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
1983
1968
|
protectionContainerName,
|
|
1984
1969
|
replicatedProtectedItemName,
|
|
1985
1970
|
switchProviderInput,
|
|
1986
|
-
options
|
|
1971
|
+
options,
|
|
1987
1972
|
);
|
|
1988
1973
|
return poller.pollUntilDone();
|
|
1989
1974
|
}
|
|
@@ -2006,7 +1991,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2006
1991
|
protectionContainerName: string,
|
|
2007
1992
|
replicatedProtectedItemName: string,
|
|
2008
1993
|
testfailoverInput: TestFailoverInput,
|
|
2009
|
-
options?: ReplicationProtectedItemsTestFailoverOptionalParams
|
|
1994
|
+
options?: ReplicationProtectedItemsTestFailoverOptionalParams,
|
|
2010
1995
|
): Promise<
|
|
2011
1996
|
SimplePollerLike<
|
|
2012
1997
|
OperationState<ReplicationProtectedItemsTestFailoverResponse>,
|
|
@@ -2015,21 +2000,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
2015
2000
|
> {
|
|
2016
2001
|
const directSendOperation = async (
|
|
2017
2002
|
args: coreClient.OperationArguments,
|
|
2018
|
-
spec: coreClient.OperationSpec
|
|
2003
|
+
spec: coreClient.OperationSpec,
|
|
2019
2004
|
): Promise<ReplicationProtectedItemsTestFailoverResponse> => {
|
|
2020
2005
|
return this.client.sendOperationRequest(args, spec);
|
|
2021
2006
|
};
|
|
2022
2007
|
const sendOperationFn = async (
|
|
2023
2008
|
args: coreClient.OperationArguments,
|
|
2024
|
-
spec: coreClient.OperationSpec
|
|
2009
|
+
spec: coreClient.OperationSpec,
|
|
2025
2010
|
) => {
|
|
2026
|
-
let currentRawResponse:
|
|
2027
|
-
|
|
2028
|
-
| undefined = undefined;
|
|
2011
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
2012
|
+
undefined;
|
|
2029
2013
|
const providedCallback = args.options?.onResponse;
|
|
2030
2014
|
const callback: coreClient.RawResponseCallback = (
|
|
2031
2015
|
rawResponse: coreClient.FullOperationResponse,
|
|
2032
|
-
flatResponse: unknown
|
|
2016
|
+
flatResponse: unknown,
|
|
2033
2017
|
) => {
|
|
2034
2018
|
currentRawResponse = rawResponse;
|
|
2035
2019
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -2038,8 +2022,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2038
2022
|
...args,
|
|
2039
2023
|
options: {
|
|
2040
2024
|
...args.options,
|
|
2041
|
-
onResponse: callback
|
|
2042
|
-
}
|
|
2025
|
+
onResponse: callback,
|
|
2026
|
+
},
|
|
2043
2027
|
};
|
|
2044
2028
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
2045
2029
|
return {
|
|
@@ -2047,8 +2031,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2047
2031
|
rawResponse: {
|
|
2048
2032
|
statusCode: currentRawResponse!.status,
|
|
2049
2033
|
body: currentRawResponse!.parsedBody,
|
|
2050
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
2051
|
-
}
|
|
2034
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
2035
|
+
},
|
|
2052
2036
|
};
|
|
2053
2037
|
};
|
|
2054
2038
|
|
|
@@ -2061,16 +2045,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
2061
2045
|
protectionContainerName,
|
|
2062
2046
|
replicatedProtectedItemName,
|
|
2063
2047
|
testfailoverInput,
|
|
2064
|
-
options
|
|
2048
|
+
options,
|
|
2065
2049
|
},
|
|
2066
|
-
spec: testFailoverOperationSpec
|
|
2050
|
+
spec: testFailoverOperationSpec,
|
|
2067
2051
|
});
|
|
2068
2052
|
const poller = await createHttpPoller<
|
|
2069
2053
|
ReplicationProtectedItemsTestFailoverResponse,
|
|
2070
2054
|
OperationState<ReplicationProtectedItemsTestFailoverResponse>
|
|
2071
2055
|
>(lro, {
|
|
2072
2056
|
restoreFrom: options?.resumeFrom,
|
|
2073
|
-
intervalInMs: options?.updateIntervalInMs
|
|
2057
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
2074
2058
|
});
|
|
2075
2059
|
await poller.poll();
|
|
2076
2060
|
return poller;
|
|
@@ -2094,7 +2078,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2094
2078
|
protectionContainerName: string,
|
|
2095
2079
|
replicatedProtectedItemName: string,
|
|
2096
2080
|
testfailoverInput: TestFailoverInput,
|
|
2097
|
-
options?: ReplicationProtectedItemsTestFailoverOptionalParams
|
|
2081
|
+
options?: ReplicationProtectedItemsTestFailoverOptionalParams,
|
|
2098
2082
|
): Promise<ReplicationProtectedItemsTestFailoverResponse> {
|
|
2099
2083
|
const poller = await this.beginTestFailover(
|
|
2100
2084
|
resourceName,
|
|
@@ -2103,7 +2087,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2103
2087
|
protectionContainerName,
|
|
2104
2088
|
replicatedProtectedItemName,
|
|
2105
2089
|
testfailoverInput,
|
|
2106
|
-
options
|
|
2090
|
+
options,
|
|
2107
2091
|
);
|
|
2108
2092
|
return poller.pollUntilDone();
|
|
2109
2093
|
}
|
|
@@ -2126,7 +2110,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2126
2110
|
protectionContainerName: string,
|
|
2127
2111
|
replicatedProtectedItemName: string,
|
|
2128
2112
|
cleanupInput: TestFailoverCleanupInput,
|
|
2129
|
-
options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams
|
|
2113
|
+
options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams,
|
|
2130
2114
|
): Promise<
|
|
2131
2115
|
SimplePollerLike<
|
|
2132
2116
|
OperationState<ReplicationProtectedItemsTestFailoverCleanupResponse>,
|
|
@@ -2135,21 +2119,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
2135
2119
|
> {
|
|
2136
2120
|
const directSendOperation = async (
|
|
2137
2121
|
args: coreClient.OperationArguments,
|
|
2138
|
-
spec: coreClient.OperationSpec
|
|
2122
|
+
spec: coreClient.OperationSpec,
|
|
2139
2123
|
): Promise<ReplicationProtectedItemsTestFailoverCleanupResponse> => {
|
|
2140
2124
|
return this.client.sendOperationRequest(args, spec);
|
|
2141
2125
|
};
|
|
2142
2126
|
const sendOperationFn = async (
|
|
2143
2127
|
args: coreClient.OperationArguments,
|
|
2144
|
-
spec: coreClient.OperationSpec
|
|
2128
|
+
spec: coreClient.OperationSpec,
|
|
2145
2129
|
) => {
|
|
2146
|
-
let currentRawResponse:
|
|
2147
|
-
|
|
2148
|
-
| undefined = undefined;
|
|
2130
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
2131
|
+
undefined;
|
|
2149
2132
|
const providedCallback = args.options?.onResponse;
|
|
2150
2133
|
const callback: coreClient.RawResponseCallback = (
|
|
2151
2134
|
rawResponse: coreClient.FullOperationResponse,
|
|
2152
|
-
flatResponse: unknown
|
|
2135
|
+
flatResponse: unknown,
|
|
2153
2136
|
) => {
|
|
2154
2137
|
currentRawResponse = rawResponse;
|
|
2155
2138
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -2158,8 +2141,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2158
2141
|
...args,
|
|
2159
2142
|
options: {
|
|
2160
2143
|
...args.options,
|
|
2161
|
-
onResponse: callback
|
|
2162
|
-
}
|
|
2144
|
+
onResponse: callback,
|
|
2145
|
+
},
|
|
2163
2146
|
};
|
|
2164
2147
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
2165
2148
|
return {
|
|
@@ -2167,8 +2150,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2167
2150
|
rawResponse: {
|
|
2168
2151
|
statusCode: currentRawResponse!.status,
|
|
2169
2152
|
body: currentRawResponse!.parsedBody,
|
|
2170
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
2171
|
-
}
|
|
2153
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
2154
|
+
},
|
|
2172
2155
|
};
|
|
2173
2156
|
};
|
|
2174
2157
|
|
|
@@ -2181,16 +2164,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
2181
2164
|
protectionContainerName,
|
|
2182
2165
|
replicatedProtectedItemName,
|
|
2183
2166
|
cleanupInput,
|
|
2184
|
-
options
|
|
2167
|
+
options,
|
|
2185
2168
|
},
|
|
2186
|
-
spec: testFailoverCleanupOperationSpec
|
|
2169
|
+
spec: testFailoverCleanupOperationSpec,
|
|
2187
2170
|
});
|
|
2188
2171
|
const poller = await createHttpPoller<
|
|
2189
2172
|
ReplicationProtectedItemsTestFailoverCleanupResponse,
|
|
2190
2173
|
OperationState<ReplicationProtectedItemsTestFailoverCleanupResponse>
|
|
2191
2174
|
>(lro, {
|
|
2192
2175
|
restoreFrom: options?.resumeFrom,
|
|
2193
|
-
intervalInMs: options?.updateIntervalInMs
|
|
2176
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
2194
2177
|
});
|
|
2195
2178
|
await poller.poll();
|
|
2196
2179
|
return poller;
|
|
@@ -2214,7 +2197,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2214
2197
|
protectionContainerName: string,
|
|
2215
2198
|
replicatedProtectedItemName: string,
|
|
2216
2199
|
cleanupInput: TestFailoverCleanupInput,
|
|
2217
|
-
options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams
|
|
2200
|
+
options?: ReplicationProtectedItemsTestFailoverCleanupOptionalParams,
|
|
2218
2201
|
): Promise<ReplicationProtectedItemsTestFailoverCleanupResponse> {
|
|
2219
2202
|
const poller = await this.beginTestFailoverCleanup(
|
|
2220
2203
|
resourceName,
|
|
@@ -2223,7 +2206,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2223
2206
|
protectionContainerName,
|
|
2224
2207
|
replicatedProtectedItemName,
|
|
2225
2208
|
cleanupInput,
|
|
2226
|
-
options
|
|
2209
|
+
options,
|
|
2227
2210
|
);
|
|
2228
2211
|
return poller.pollUntilDone();
|
|
2229
2212
|
}
|
|
@@ -2246,7 +2229,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2246
2229
|
protectionContainerName: string,
|
|
2247
2230
|
replicatedProtectedItemName: string,
|
|
2248
2231
|
failoverInput: UnplannedFailoverInput,
|
|
2249
|
-
options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams
|
|
2232
|
+
options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams,
|
|
2250
2233
|
): Promise<
|
|
2251
2234
|
SimplePollerLike<
|
|
2252
2235
|
OperationState<ReplicationProtectedItemsUnplannedFailoverResponse>,
|
|
@@ -2255,21 +2238,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
2255
2238
|
> {
|
|
2256
2239
|
const directSendOperation = async (
|
|
2257
2240
|
args: coreClient.OperationArguments,
|
|
2258
|
-
spec: coreClient.OperationSpec
|
|
2241
|
+
spec: coreClient.OperationSpec,
|
|
2259
2242
|
): Promise<ReplicationProtectedItemsUnplannedFailoverResponse> => {
|
|
2260
2243
|
return this.client.sendOperationRequest(args, spec);
|
|
2261
2244
|
};
|
|
2262
2245
|
const sendOperationFn = async (
|
|
2263
2246
|
args: coreClient.OperationArguments,
|
|
2264
|
-
spec: coreClient.OperationSpec
|
|
2247
|
+
spec: coreClient.OperationSpec,
|
|
2265
2248
|
) => {
|
|
2266
|
-
let currentRawResponse:
|
|
2267
|
-
|
|
2268
|
-
| undefined = undefined;
|
|
2249
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
2250
|
+
undefined;
|
|
2269
2251
|
const providedCallback = args.options?.onResponse;
|
|
2270
2252
|
const callback: coreClient.RawResponseCallback = (
|
|
2271
2253
|
rawResponse: coreClient.FullOperationResponse,
|
|
2272
|
-
flatResponse: unknown
|
|
2254
|
+
flatResponse: unknown,
|
|
2273
2255
|
) => {
|
|
2274
2256
|
currentRawResponse = rawResponse;
|
|
2275
2257
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -2278,8 +2260,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2278
2260
|
...args,
|
|
2279
2261
|
options: {
|
|
2280
2262
|
...args.options,
|
|
2281
|
-
onResponse: callback
|
|
2282
|
-
}
|
|
2263
|
+
onResponse: callback,
|
|
2264
|
+
},
|
|
2283
2265
|
};
|
|
2284
2266
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
2285
2267
|
return {
|
|
@@ -2287,8 +2269,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2287
2269
|
rawResponse: {
|
|
2288
2270
|
statusCode: currentRawResponse!.status,
|
|
2289
2271
|
body: currentRawResponse!.parsedBody,
|
|
2290
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
2291
|
-
}
|
|
2272
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
2273
|
+
},
|
|
2292
2274
|
};
|
|
2293
2275
|
};
|
|
2294
2276
|
|
|
@@ -2301,16 +2283,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
2301
2283
|
protectionContainerName,
|
|
2302
2284
|
replicatedProtectedItemName,
|
|
2303
2285
|
failoverInput,
|
|
2304
|
-
options
|
|
2286
|
+
options,
|
|
2305
2287
|
},
|
|
2306
|
-
spec: unplannedFailoverOperationSpec
|
|
2288
|
+
spec: unplannedFailoverOperationSpec,
|
|
2307
2289
|
});
|
|
2308
2290
|
const poller = await createHttpPoller<
|
|
2309
2291
|
ReplicationProtectedItemsUnplannedFailoverResponse,
|
|
2310
2292
|
OperationState<ReplicationProtectedItemsUnplannedFailoverResponse>
|
|
2311
2293
|
>(lro, {
|
|
2312
2294
|
restoreFrom: options?.resumeFrom,
|
|
2313
|
-
intervalInMs: options?.updateIntervalInMs
|
|
2295
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
2314
2296
|
});
|
|
2315
2297
|
await poller.poll();
|
|
2316
2298
|
return poller;
|
|
@@ -2334,7 +2316,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2334
2316
|
protectionContainerName: string,
|
|
2335
2317
|
replicatedProtectedItemName: string,
|
|
2336
2318
|
failoverInput: UnplannedFailoverInput,
|
|
2337
|
-
options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams
|
|
2319
|
+
options?: ReplicationProtectedItemsUnplannedFailoverOptionalParams,
|
|
2338
2320
|
): Promise<ReplicationProtectedItemsUnplannedFailoverResponse> {
|
|
2339
2321
|
const poller = await this.beginUnplannedFailover(
|
|
2340
2322
|
resourceName,
|
|
@@ -2343,7 +2325,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2343
2325
|
protectionContainerName,
|
|
2344
2326
|
replicatedProtectedItemName,
|
|
2345
2327
|
failoverInput,
|
|
2346
|
-
options
|
|
2328
|
+
options,
|
|
2347
2329
|
);
|
|
2348
2330
|
return poller.pollUntilDone();
|
|
2349
2331
|
}
|
|
@@ -2366,7 +2348,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2366
2348
|
protectionContainerName: string,
|
|
2367
2349
|
replicatedProtectedItemName: string,
|
|
2368
2350
|
applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput,
|
|
2369
|
-
options?: ReplicationProtectedItemsUpdateApplianceOptionalParams
|
|
2351
|
+
options?: ReplicationProtectedItemsUpdateApplianceOptionalParams,
|
|
2370
2352
|
): Promise<
|
|
2371
2353
|
SimplePollerLike<
|
|
2372
2354
|
OperationState<ReplicationProtectedItemsUpdateApplianceResponse>,
|
|
@@ -2375,21 +2357,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
2375
2357
|
> {
|
|
2376
2358
|
const directSendOperation = async (
|
|
2377
2359
|
args: coreClient.OperationArguments,
|
|
2378
|
-
spec: coreClient.OperationSpec
|
|
2360
|
+
spec: coreClient.OperationSpec,
|
|
2379
2361
|
): Promise<ReplicationProtectedItemsUpdateApplianceResponse> => {
|
|
2380
2362
|
return this.client.sendOperationRequest(args, spec);
|
|
2381
2363
|
};
|
|
2382
2364
|
const sendOperationFn = async (
|
|
2383
2365
|
args: coreClient.OperationArguments,
|
|
2384
|
-
spec: coreClient.OperationSpec
|
|
2366
|
+
spec: coreClient.OperationSpec,
|
|
2385
2367
|
) => {
|
|
2386
|
-
let currentRawResponse:
|
|
2387
|
-
|
|
2388
|
-
| undefined = undefined;
|
|
2368
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
2369
|
+
undefined;
|
|
2389
2370
|
const providedCallback = args.options?.onResponse;
|
|
2390
2371
|
const callback: coreClient.RawResponseCallback = (
|
|
2391
2372
|
rawResponse: coreClient.FullOperationResponse,
|
|
2392
|
-
flatResponse: unknown
|
|
2373
|
+
flatResponse: unknown,
|
|
2393
2374
|
) => {
|
|
2394
2375
|
currentRawResponse = rawResponse;
|
|
2395
2376
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -2398,8 +2379,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2398
2379
|
...args,
|
|
2399
2380
|
options: {
|
|
2400
2381
|
...args.options,
|
|
2401
|
-
onResponse: callback
|
|
2402
|
-
}
|
|
2382
|
+
onResponse: callback,
|
|
2383
|
+
},
|
|
2403
2384
|
};
|
|
2404
2385
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
2405
2386
|
return {
|
|
@@ -2407,8 +2388,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2407
2388
|
rawResponse: {
|
|
2408
2389
|
statusCode: currentRawResponse!.status,
|
|
2409
2390
|
body: currentRawResponse!.parsedBody,
|
|
2410
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
2411
|
-
}
|
|
2391
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
2392
|
+
},
|
|
2412
2393
|
};
|
|
2413
2394
|
};
|
|
2414
2395
|
|
|
@@ -2421,16 +2402,16 @@ export class ReplicationProtectedItemsImpl
|
|
|
2421
2402
|
protectionContainerName,
|
|
2422
2403
|
replicatedProtectedItemName,
|
|
2423
2404
|
applianceUpdateInput,
|
|
2424
|
-
options
|
|
2405
|
+
options,
|
|
2425
2406
|
},
|
|
2426
|
-
spec: updateApplianceOperationSpec
|
|
2407
|
+
spec: updateApplianceOperationSpec,
|
|
2427
2408
|
});
|
|
2428
2409
|
const poller = await createHttpPoller<
|
|
2429
2410
|
ReplicationProtectedItemsUpdateApplianceResponse,
|
|
2430
2411
|
OperationState<ReplicationProtectedItemsUpdateApplianceResponse>
|
|
2431
2412
|
>(lro, {
|
|
2432
2413
|
restoreFrom: options?.resumeFrom,
|
|
2433
|
-
intervalInMs: options?.updateIntervalInMs
|
|
2414
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
2434
2415
|
});
|
|
2435
2416
|
await poller.poll();
|
|
2436
2417
|
return poller;
|
|
@@ -2454,7 +2435,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2454
2435
|
protectionContainerName: string,
|
|
2455
2436
|
replicatedProtectedItemName: string,
|
|
2456
2437
|
applianceUpdateInput: UpdateApplianceForReplicationProtectedItemInput,
|
|
2457
|
-
options?: ReplicationProtectedItemsUpdateApplianceOptionalParams
|
|
2438
|
+
options?: ReplicationProtectedItemsUpdateApplianceOptionalParams,
|
|
2458
2439
|
): Promise<ReplicationProtectedItemsUpdateApplianceResponse> {
|
|
2459
2440
|
const poller = await this.beginUpdateAppliance(
|
|
2460
2441
|
resourceName,
|
|
@@ -2463,7 +2444,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2463
2444
|
protectionContainerName,
|
|
2464
2445
|
replicatedProtectedItemName,
|
|
2465
2446
|
applianceUpdateInput,
|
|
2466
|
-
options
|
|
2447
|
+
options,
|
|
2467
2448
|
);
|
|
2468
2449
|
return poller.pollUntilDone();
|
|
2469
2450
|
}
|
|
@@ -2488,7 +2469,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2488
2469
|
protectionContainerName: string,
|
|
2489
2470
|
replicatedProtectedItemName: string,
|
|
2490
2471
|
updateMobilityServiceRequest: UpdateMobilityServiceRequest,
|
|
2491
|
-
options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams
|
|
2472
|
+
options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams,
|
|
2492
2473
|
): Promise<
|
|
2493
2474
|
SimplePollerLike<
|
|
2494
2475
|
OperationState<ReplicationProtectedItemsUpdateMobilityServiceResponse>,
|
|
@@ -2497,21 +2478,20 @@ export class ReplicationProtectedItemsImpl
|
|
|
2497
2478
|
> {
|
|
2498
2479
|
const directSendOperation = async (
|
|
2499
2480
|
args: coreClient.OperationArguments,
|
|
2500
|
-
spec: coreClient.OperationSpec
|
|
2481
|
+
spec: coreClient.OperationSpec,
|
|
2501
2482
|
): Promise<ReplicationProtectedItemsUpdateMobilityServiceResponse> => {
|
|
2502
2483
|
return this.client.sendOperationRequest(args, spec);
|
|
2503
2484
|
};
|
|
2504
2485
|
const sendOperationFn = async (
|
|
2505
2486
|
args: coreClient.OperationArguments,
|
|
2506
|
-
spec: coreClient.OperationSpec
|
|
2487
|
+
spec: coreClient.OperationSpec,
|
|
2507
2488
|
) => {
|
|
2508
|
-
let currentRawResponse:
|
|
2509
|
-
|
|
2510
|
-
| undefined = undefined;
|
|
2489
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
2490
|
+
undefined;
|
|
2511
2491
|
const providedCallback = args.options?.onResponse;
|
|
2512
2492
|
const callback: coreClient.RawResponseCallback = (
|
|
2513
2493
|
rawResponse: coreClient.FullOperationResponse,
|
|
2514
|
-
flatResponse: unknown
|
|
2494
|
+
flatResponse: unknown,
|
|
2515
2495
|
) => {
|
|
2516
2496
|
currentRawResponse = rawResponse;
|
|
2517
2497
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -2520,8 +2500,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2520
2500
|
...args,
|
|
2521
2501
|
options: {
|
|
2522
2502
|
...args.options,
|
|
2523
|
-
onResponse: callback
|
|
2524
|
-
}
|
|
2503
|
+
onResponse: callback,
|
|
2504
|
+
},
|
|
2525
2505
|
};
|
|
2526
2506
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
2527
2507
|
return {
|
|
@@ -2529,8 +2509,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2529
2509
|
rawResponse: {
|
|
2530
2510
|
statusCode: currentRawResponse!.status,
|
|
2531
2511
|
body: currentRawResponse!.parsedBody,
|
|
2532
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
2533
|
-
}
|
|
2512
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
2513
|
+
},
|
|
2534
2514
|
};
|
|
2535
2515
|
};
|
|
2536
2516
|
|
|
@@ -2543,9 +2523,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
2543
2523
|
protectionContainerName,
|
|
2544
2524
|
replicatedProtectedItemName,
|
|
2545
2525
|
updateMobilityServiceRequest,
|
|
2546
|
-
options
|
|
2526
|
+
options,
|
|
2547
2527
|
},
|
|
2548
|
-
spec: updateMobilityServiceOperationSpec
|
|
2528
|
+
spec: updateMobilityServiceOperationSpec,
|
|
2549
2529
|
});
|
|
2550
2530
|
const poller = await createHttpPoller<
|
|
2551
2531
|
ReplicationProtectedItemsUpdateMobilityServiceResponse,
|
|
@@ -2553,7 +2533,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2553
2533
|
>(lro, {
|
|
2554
2534
|
restoreFrom: options?.resumeFrom,
|
|
2555
2535
|
intervalInMs: options?.updateIntervalInMs,
|
|
2556
|
-
resourceLocationConfig: "location"
|
|
2536
|
+
resourceLocationConfig: "location",
|
|
2557
2537
|
});
|
|
2558
2538
|
await poller.poll();
|
|
2559
2539
|
return poller;
|
|
@@ -2579,7 +2559,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2579
2559
|
protectionContainerName: string,
|
|
2580
2560
|
replicatedProtectedItemName: string,
|
|
2581
2561
|
updateMobilityServiceRequest: UpdateMobilityServiceRequest,
|
|
2582
|
-
options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams
|
|
2562
|
+
options?: ReplicationProtectedItemsUpdateMobilityServiceOptionalParams,
|
|
2583
2563
|
): Promise<ReplicationProtectedItemsUpdateMobilityServiceResponse> {
|
|
2584
2564
|
const poller = await this.beginUpdateMobilityService(
|
|
2585
2565
|
resourceName,
|
|
@@ -2588,7 +2568,7 @@ export class ReplicationProtectedItemsImpl
|
|
|
2588
2568
|
protectionContainerName,
|
|
2589
2569
|
replicatedProtectedItemName,
|
|
2590
2570
|
updateMobilityServiceRequest,
|
|
2591
|
-
options
|
|
2571
|
+
options,
|
|
2592
2572
|
);
|
|
2593
2573
|
return poller.pollUntilDone();
|
|
2594
2574
|
}
|
|
@@ -2603,11 +2583,11 @@ export class ReplicationProtectedItemsImpl
|
|
|
2603
2583
|
private _list(
|
|
2604
2584
|
resourceName: string,
|
|
2605
2585
|
resourceGroupName: string,
|
|
2606
|
-
options?: ReplicationProtectedItemsListOptionalParams
|
|
2586
|
+
options?: ReplicationProtectedItemsListOptionalParams,
|
|
2607
2587
|
): Promise<ReplicationProtectedItemsListResponse> {
|
|
2608
2588
|
return this.client.sendOperationRequest(
|
|
2609
2589
|
{ resourceName, resourceGroupName, options },
|
|
2610
|
-
listOperationSpec
|
|
2590
|
+
listOperationSpec,
|
|
2611
2591
|
);
|
|
2612
2592
|
}
|
|
2613
2593
|
|
|
@@ -2628,10 +2608,8 @@ export class ReplicationProtectedItemsImpl
|
|
|
2628
2608
|
fabricName: string,
|
|
2629
2609
|
protectionContainerName: string,
|
|
2630
2610
|
nextLink: string,
|
|
2631
|
-
options?: ReplicationProtectedItemsListByReplicationProtectionContainersNextOptionalParams
|
|
2632
|
-
): Promise<
|
|
2633
|
-
ReplicationProtectedItemsListByReplicationProtectionContainersNextResponse
|
|
2634
|
-
> {
|
|
2611
|
+
options?: ReplicationProtectedItemsListByReplicationProtectionContainersNextOptionalParams,
|
|
2612
|
+
): Promise<ReplicationProtectedItemsListByReplicationProtectionContainersNextResponse> {
|
|
2635
2613
|
return this.client.sendOperationRequest(
|
|
2636
2614
|
{
|
|
2637
2615
|
resourceName,
|
|
@@ -2639,9 +2617,9 @@ export class ReplicationProtectedItemsImpl
|
|
|
2639
2617
|
fabricName,
|
|
2640
2618
|
protectionContainerName,
|
|
2641
2619
|
nextLink,
|
|
2642
|
-
options
|
|
2620
|
+
options,
|
|
2643
2621
|
},
|
|
2644
|
-
listByReplicationProtectionContainersNextOperationSpec
|
|
2622
|
+
listByReplicationProtectionContainersNextOperationSpec,
|
|
2645
2623
|
);
|
|
2646
2624
|
}
|
|
2647
2625
|
|
|
@@ -2657,46 +2635,45 @@ export class ReplicationProtectedItemsImpl
|
|
|
2657
2635
|
resourceName: string,
|
|
2658
2636
|
resourceGroupName: string,
|
|
2659
2637
|
nextLink: string,
|
|
2660
|
-
options?: ReplicationProtectedItemsListNextOptionalParams
|
|
2638
|
+
options?: ReplicationProtectedItemsListNextOptionalParams,
|
|
2661
2639
|
): Promise<ReplicationProtectedItemsListNextResponse> {
|
|
2662
2640
|
return this.client.sendOperationRequest(
|
|
2663
2641
|
{ resourceName, resourceGroupName, nextLink, options },
|
|
2664
|
-
listNextOperationSpec
|
|
2642
|
+
listNextOperationSpec,
|
|
2665
2643
|
);
|
|
2666
2644
|
}
|
|
2667
2645
|
}
|
|
2668
2646
|
// Operation Specifications
|
|
2669
2647
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2670
2648
|
|
|
2671
|
-
const listByReplicationProtectionContainersOperationSpec: coreClient.OperationSpec =
|
|
2672
|
-
|
|
2673
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems",
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
};
|
|
2649
|
+
const listByReplicationProtectionContainersOperationSpec: coreClient.OperationSpec =
|
|
2650
|
+
{
|
|
2651
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems",
|
|
2652
|
+
httpMethod: "GET",
|
|
2653
|
+
responses: {
|
|
2654
|
+
200: {
|
|
2655
|
+
bodyMapper: Mappers.ReplicationProtectedItemCollection,
|
|
2656
|
+
},
|
|
2657
|
+
},
|
|
2658
|
+
queryParameters: [Parameters.apiVersion],
|
|
2659
|
+
urlParameters: [
|
|
2660
|
+
Parameters.$host,
|
|
2661
|
+
Parameters.resourceGroupName,
|
|
2662
|
+
Parameters.subscriptionId,
|
|
2663
|
+
Parameters.resourceName,
|
|
2664
|
+
Parameters.fabricName,
|
|
2665
|
+
Parameters.protectionContainerName,
|
|
2666
|
+
],
|
|
2667
|
+
headerParameters: [Parameters.accept],
|
|
2668
|
+
serializer,
|
|
2669
|
+
};
|
|
2692
2670
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
2693
|
-
path:
|
|
2694
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2671
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2695
2672
|
httpMethod: "GET",
|
|
2696
2673
|
responses: {
|
|
2697
2674
|
200: {
|
|
2698
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2699
|
-
}
|
|
2675
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2676
|
+
},
|
|
2700
2677
|
},
|
|
2701
2678
|
queryParameters: [Parameters.apiVersion],
|
|
2702
2679
|
urlParameters: [
|
|
@@ -2706,28 +2683,27 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
2706
2683
|
Parameters.resourceName,
|
|
2707
2684
|
Parameters.fabricName,
|
|
2708
2685
|
Parameters.protectionContainerName,
|
|
2709
|
-
Parameters.replicatedProtectedItemName
|
|
2686
|
+
Parameters.replicatedProtectedItemName,
|
|
2710
2687
|
],
|
|
2711
2688
|
headerParameters: [Parameters.accept],
|
|
2712
|
-
serializer
|
|
2689
|
+
serializer,
|
|
2713
2690
|
};
|
|
2714
2691
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
2715
|
-
path:
|
|
2716
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2692
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2717
2693
|
httpMethod: "PUT",
|
|
2718
2694
|
responses: {
|
|
2719
2695
|
200: {
|
|
2720
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2696
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2721
2697
|
},
|
|
2722
2698
|
201: {
|
|
2723
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2699
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2724
2700
|
},
|
|
2725
2701
|
202: {
|
|
2726
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2702
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2727
2703
|
},
|
|
2728
2704
|
204: {
|
|
2729
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2730
|
-
}
|
|
2705
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2706
|
+
},
|
|
2731
2707
|
},
|
|
2732
2708
|
requestBody: Parameters.input6,
|
|
2733
2709
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2738,15 +2714,14 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
2738
2714
|
Parameters.resourceName,
|
|
2739
2715
|
Parameters.fabricName,
|
|
2740
2716
|
Parameters.protectionContainerName,
|
|
2741
|
-
Parameters.replicatedProtectedItemName
|
|
2717
|
+
Parameters.replicatedProtectedItemName,
|
|
2742
2718
|
],
|
|
2743
2719
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2744
2720
|
mediaType: "json",
|
|
2745
|
-
serializer
|
|
2721
|
+
serializer,
|
|
2746
2722
|
};
|
|
2747
2723
|
const purgeOperationSpec: coreClient.OperationSpec = {
|
|
2748
|
-
path:
|
|
2749
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2724
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2750
2725
|
httpMethod: "DELETE",
|
|
2751
2726
|
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2752
2727
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2757,27 +2732,26 @@ const purgeOperationSpec: coreClient.OperationSpec = {
|
|
|
2757
2732
|
Parameters.resourceName,
|
|
2758
2733
|
Parameters.fabricName,
|
|
2759
2734
|
Parameters.protectionContainerName,
|
|
2760
|
-
Parameters.replicatedProtectedItemName
|
|
2735
|
+
Parameters.replicatedProtectedItemName,
|
|
2761
2736
|
],
|
|
2762
|
-
serializer
|
|
2737
|
+
serializer,
|
|
2763
2738
|
};
|
|
2764
2739
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
2765
|
-
path:
|
|
2766
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2740
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
|
|
2767
2741
|
httpMethod: "PATCH",
|
|
2768
2742
|
responses: {
|
|
2769
2743
|
200: {
|
|
2770
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2744
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2771
2745
|
},
|
|
2772
2746
|
201: {
|
|
2773
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2747
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2774
2748
|
},
|
|
2775
2749
|
202: {
|
|
2776
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2750
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2777
2751
|
},
|
|
2778
2752
|
204: {
|
|
2779
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2780
|
-
}
|
|
2753
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2754
|
+
},
|
|
2781
2755
|
},
|
|
2782
2756
|
requestBody: Parameters.updateProtectionInput,
|
|
2783
2757
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2788,29 +2762,28 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
2788
2762
|
Parameters.resourceName,
|
|
2789
2763
|
Parameters.fabricName,
|
|
2790
2764
|
Parameters.protectionContainerName,
|
|
2791
|
-
Parameters.replicatedProtectedItemName
|
|
2765
|
+
Parameters.replicatedProtectedItemName,
|
|
2792
2766
|
],
|
|
2793
2767
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2794
2768
|
mediaType: "json",
|
|
2795
|
-
serializer
|
|
2769
|
+
serializer,
|
|
2796
2770
|
};
|
|
2797
2771
|
const addDisksOperationSpec: coreClient.OperationSpec = {
|
|
2798
|
-
path:
|
|
2799
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks",
|
|
2772
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks",
|
|
2800
2773
|
httpMethod: "POST",
|
|
2801
2774
|
responses: {
|
|
2802
2775
|
200: {
|
|
2803
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2776
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2804
2777
|
},
|
|
2805
2778
|
201: {
|
|
2806
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2779
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2807
2780
|
},
|
|
2808
2781
|
202: {
|
|
2809
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2782
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2810
2783
|
},
|
|
2811
2784
|
204: {
|
|
2812
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2813
|
-
}
|
|
2785
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2786
|
+
},
|
|
2814
2787
|
},
|
|
2815
2788
|
requestBody: Parameters.addDisksInput,
|
|
2816
2789
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2821,29 +2794,28 @@ const addDisksOperationSpec: coreClient.OperationSpec = {
|
|
|
2821
2794
|
Parameters.resourceName,
|
|
2822
2795
|
Parameters.fabricName,
|
|
2823
2796
|
Parameters.protectionContainerName,
|
|
2824
|
-
Parameters.replicatedProtectedItemName
|
|
2797
|
+
Parameters.replicatedProtectedItemName,
|
|
2825
2798
|
],
|
|
2826
2799
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2827
2800
|
mediaType: "json",
|
|
2828
|
-
serializer
|
|
2801
|
+
serializer,
|
|
2829
2802
|
};
|
|
2830
2803
|
const applyRecoveryPointOperationSpec: coreClient.OperationSpec = {
|
|
2831
|
-
path:
|
|
2832
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint",
|
|
2804
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint",
|
|
2833
2805
|
httpMethod: "POST",
|
|
2834
2806
|
responses: {
|
|
2835
2807
|
200: {
|
|
2836
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2808
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2837
2809
|
},
|
|
2838
2810
|
201: {
|
|
2839
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2811
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2840
2812
|
},
|
|
2841
2813
|
202: {
|
|
2842
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2814
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2843
2815
|
},
|
|
2844
2816
|
204: {
|
|
2845
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2846
|
-
}
|
|
2817
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2818
|
+
},
|
|
2847
2819
|
},
|
|
2848
2820
|
requestBody: Parameters.applyRecoveryPointInput,
|
|
2849
2821
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2854,29 +2826,28 @@ const applyRecoveryPointOperationSpec: coreClient.OperationSpec = {
|
|
|
2854
2826
|
Parameters.resourceName,
|
|
2855
2827
|
Parameters.fabricName,
|
|
2856
2828
|
Parameters.protectionContainerName,
|
|
2857
|
-
Parameters.replicatedProtectedItemName
|
|
2829
|
+
Parameters.replicatedProtectedItemName,
|
|
2858
2830
|
],
|
|
2859
2831
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2860
2832
|
mediaType: "json",
|
|
2861
|
-
serializer
|
|
2833
|
+
serializer,
|
|
2862
2834
|
};
|
|
2863
2835
|
const failoverCancelOperationSpec: coreClient.OperationSpec = {
|
|
2864
|
-
path:
|
|
2865
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCancel",
|
|
2836
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCancel",
|
|
2866
2837
|
httpMethod: "POST",
|
|
2867
2838
|
responses: {
|
|
2868
2839
|
200: {
|
|
2869
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2840
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2870
2841
|
},
|
|
2871
2842
|
201: {
|
|
2872
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2843
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2873
2844
|
},
|
|
2874
2845
|
202: {
|
|
2875
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2846
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2876
2847
|
},
|
|
2877
2848
|
204: {
|
|
2878
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2879
|
-
}
|
|
2849
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2850
|
+
},
|
|
2880
2851
|
},
|
|
2881
2852
|
queryParameters: [Parameters.apiVersion],
|
|
2882
2853
|
urlParameters: [
|
|
@@ -2886,28 +2857,27 @@ const failoverCancelOperationSpec: coreClient.OperationSpec = {
|
|
|
2886
2857
|
Parameters.resourceName,
|
|
2887
2858
|
Parameters.fabricName,
|
|
2888
2859
|
Parameters.protectionContainerName,
|
|
2889
|
-
Parameters.replicatedProtectedItemName
|
|
2860
|
+
Parameters.replicatedProtectedItemName,
|
|
2890
2861
|
],
|
|
2891
2862
|
headerParameters: [Parameters.accept],
|
|
2892
|
-
serializer
|
|
2863
|
+
serializer,
|
|
2893
2864
|
};
|
|
2894
2865
|
const failoverCommitOperationSpec: coreClient.OperationSpec = {
|
|
2895
|
-
path:
|
|
2896
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit",
|
|
2866
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit",
|
|
2897
2867
|
httpMethod: "POST",
|
|
2898
2868
|
responses: {
|
|
2899
2869
|
200: {
|
|
2900
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2870
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2901
2871
|
},
|
|
2902
2872
|
201: {
|
|
2903
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2873
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2904
2874
|
},
|
|
2905
2875
|
202: {
|
|
2906
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2876
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2907
2877
|
},
|
|
2908
2878
|
204: {
|
|
2909
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2910
|
-
}
|
|
2879
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2880
|
+
},
|
|
2911
2881
|
},
|
|
2912
2882
|
queryParameters: [Parameters.apiVersion],
|
|
2913
2883
|
urlParameters: [
|
|
@@ -2917,28 +2887,27 @@ const failoverCommitOperationSpec: coreClient.OperationSpec = {
|
|
|
2917
2887
|
Parameters.resourceName,
|
|
2918
2888
|
Parameters.fabricName,
|
|
2919
2889
|
Parameters.protectionContainerName,
|
|
2920
|
-
Parameters.replicatedProtectedItemName
|
|
2890
|
+
Parameters.replicatedProtectedItemName,
|
|
2921
2891
|
],
|
|
2922
2892
|
headerParameters: [Parameters.accept],
|
|
2923
|
-
serializer
|
|
2893
|
+
serializer,
|
|
2924
2894
|
};
|
|
2925
2895
|
const plannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
2926
|
-
path:
|
|
2927
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover",
|
|
2896
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover",
|
|
2928
2897
|
httpMethod: "POST",
|
|
2929
2898
|
responses: {
|
|
2930
2899
|
200: {
|
|
2931
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2900
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2932
2901
|
},
|
|
2933
2902
|
201: {
|
|
2934
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2903
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2935
2904
|
},
|
|
2936
2905
|
202: {
|
|
2937
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2906
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2938
2907
|
},
|
|
2939
2908
|
204: {
|
|
2940
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2941
|
-
}
|
|
2909
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2910
|
+
},
|
|
2942
2911
|
},
|
|
2943
2912
|
requestBody: Parameters.failoverInput,
|
|
2944
2913
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -2949,15 +2918,14 @@ const plannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
|
2949
2918
|
Parameters.resourceName,
|
|
2950
2919
|
Parameters.fabricName,
|
|
2951
2920
|
Parameters.protectionContainerName,
|
|
2952
|
-
Parameters.replicatedProtectedItemName
|
|
2921
|
+
Parameters.replicatedProtectedItemName,
|
|
2953
2922
|
],
|
|
2954
2923
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
2955
2924
|
mediaType: "json",
|
|
2956
|
-
serializer
|
|
2925
|
+
serializer,
|
|
2957
2926
|
};
|
|
2958
2927
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
2959
|
-
path:
|
|
2960
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove",
|
|
2928
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove",
|
|
2961
2929
|
httpMethod: "POST",
|
|
2962
2930
|
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
2963
2931
|
requestBody: Parameters.disableProtectionInput,
|
|
@@ -2969,29 +2937,28 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
2969
2937
|
Parameters.resourceName,
|
|
2970
2938
|
Parameters.fabricName,
|
|
2971
2939
|
Parameters.protectionContainerName,
|
|
2972
|
-
Parameters.replicatedProtectedItemName
|
|
2940
|
+
Parameters.replicatedProtectedItemName,
|
|
2973
2941
|
],
|
|
2974
2942
|
headerParameters: [Parameters.contentType],
|
|
2975
2943
|
mediaType: "json",
|
|
2976
|
-
serializer
|
|
2944
|
+
serializer,
|
|
2977
2945
|
};
|
|
2978
2946
|
const removeDisksOperationSpec: coreClient.OperationSpec = {
|
|
2979
|
-
path:
|
|
2980
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks",
|
|
2947
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks",
|
|
2981
2948
|
httpMethod: "POST",
|
|
2982
2949
|
responses: {
|
|
2983
2950
|
200: {
|
|
2984
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2951
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2985
2952
|
},
|
|
2986
2953
|
201: {
|
|
2987
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2954
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2988
2955
|
},
|
|
2989
2956
|
202: {
|
|
2990
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2957
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2991
2958
|
},
|
|
2992
2959
|
204: {
|
|
2993
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2994
|
-
}
|
|
2960
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2961
|
+
},
|
|
2995
2962
|
},
|
|
2996
2963
|
requestBody: Parameters.removeDisksInput,
|
|
2997
2964
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3002,29 +2969,28 @@ const removeDisksOperationSpec: coreClient.OperationSpec = {
|
|
|
3002
2969
|
Parameters.resourceName,
|
|
3003
2970
|
Parameters.fabricName,
|
|
3004
2971
|
Parameters.protectionContainerName,
|
|
3005
|
-
Parameters.replicatedProtectedItemName
|
|
2972
|
+
Parameters.replicatedProtectedItemName,
|
|
3006
2973
|
],
|
|
3007
2974
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3008
2975
|
mediaType: "json",
|
|
3009
|
-
serializer
|
|
2976
|
+
serializer,
|
|
3010
2977
|
};
|
|
3011
2978
|
const repairReplicationOperationSpec: coreClient.OperationSpec = {
|
|
3012
|
-
path:
|
|
3013
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication",
|
|
2979
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication",
|
|
3014
2980
|
httpMethod: "POST",
|
|
3015
2981
|
responses: {
|
|
3016
2982
|
200: {
|
|
3017
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2983
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3018
2984
|
},
|
|
3019
2985
|
201: {
|
|
3020
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2986
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3021
2987
|
},
|
|
3022
2988
|
202: {
|
|
3023
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
2989
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3024
2990
|
},
|
|
3025
2991
|
204: {
|
|
3026
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3027
|
-
}
|
|
2992
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
2993
|
+
},
|
|
3028
2994
|
},
|
|
3029
2995
|
queryParameters: [Parameters.apiVersion],
|
|
3030
2996
|
urlParameters: [
|
|
@@ -3034,28 +3000,27 @@ const repairReplicationOperationSpec: coreClient.OperationSpec = {
|
|
|
3034
3000
|
Parameters.resourceName,
|
|
3035
3001
|
Parameters.fabricName,
|
|
3036
3002
|
Parameters.protectionContainerName,
|
|
3037
|
-
Parameters.replicatedProtectedItemName
|
|
3003
|
+
Parameters.replicatedProtectedItemName,
|
|
3038
3004
|
],
|
|
3039
3005
|
headerParameters: [Parameters.accept],
|
|
3040
|
-
serializer
|
|
3006
|
+
serializer,
|
|
3041
3007
|
};
|
|
3042
3008
|
const reprotectOperationSpec: coreClient.OperationSpec = {
|
|
3043
|
-
path:
|
|
3044
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect",
|
|
3009
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect",
|
|
3045
3010
|
httpMethod: "POST",
|
|
3046
3011
|
responses: {
|
|
3047
3012
|
200: {
|
|
3048
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3013
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3049
3014
|
},
|
|
3050
3015
|
201: {
|
|
3051
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3016
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3052
3017
|
},
|
|
3053
3018
|
202: {
|
|
3054
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3019
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3055
3020
|
},
|
|
3056
3021
|
204: {
|
|
3057
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3058
|
-
}
|
|
3022
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3023
|
+
},
|
|
3059
3024
|
},
|
|
3060
3025
|
requestBody: Parameters.reprotectInput,
|
|
3061
3026
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3066,29 +3031,28 @@ const reprotectOperationSpec: coreClient.OperationSpec = {
|
|
|
3066
3031
|
Parameters.resourceName,
|
|
3067
3032
|
Parameters.fabricName,
|
|
3068
3033
|
Parameters.protectionContainerName,
|
|
3069
|
-
Parameters.replicatedProtectedItemName
|
|
3034
|
+
Parameters.replicatedProtectedItemName,
|
|
3070
3035
|
],
|
|
3071
3036
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3072
3037
|
mediaType: "json",
|
|
3073
|
-
serializer
|
|
3038
|
+
serializer,
|
|
3074
3039
|
};
|
|
3075
3040
|
const resolveHealthErrorsOperationSpec: coreClient.OperationSpec = {
|
|
3076
|
-
path:
|
|
3077
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/resolveHealthErrors",
|
|
3041
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/resolveHealthErrors",
|
|
3078
3042
|
httpMethod: "POST",
|
|
3079
3043
|
responses: {
|
|
3080
3044
|
200: {
|
|
3081
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3045
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3082
3046
|
},
|
|
3083
3047
|
201: {
|
|
3084
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3048
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3085
3049
|
},
|
|
3086
3050
|
202: {
|
|
3087
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3051
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3088
3052
|
},
|
|
3089
3053
|
204: {
|
|
3090
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3091
|
-
}
|
|
3054
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3055
|
+
},
|
|
3092
3056
|
},
|
|
3093
3057
|
requestBody: Parameters.resolveHealthInput,
|
|
3094
3058
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3099,29 +3063,28 @@ const resolveHealthErrorsOperationSpec: coreClient.OperationSpec = {
|
|
|
3099
3063
|
Parameters.resourceName,
|
|
3100
3064
|
Parameters.fabricName,
|
|
3101
3065
|
Parameters.protectionContainerName,
|
|
3102
|
-
Parameters.replicatedProtectedItemName
|
|
3066
|
+
Parameters.replicatedProtectedItemName,
|
|
3103
3067
|
],
|
|
3104
3068
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3105
3069
|
mediaType: "json",
|
|
3106
|
-
serializer
|
|
3070
|
+
serializer,
|
|
3107
3071
|
};
|
|
3108
3072
|
const switchProviderOperationSpec: coreClient.OperationSpec = {
|
|
3109
|
-
path:
|
|
3110
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/switchProvider",
|
|
3073
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/switchProvider",
|
|
3111
3074
|
httpMethod: "POST",
|
|
3112
3075
|
responses: {
|
|
3113
3076
|
200: {
|
|
3114
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3077
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3115
3078
|
},
|
|
3116
3079
|
201: {
|
|
3117
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3080
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3118
3081
|
},
|
|
3119
3082
|
202: {
|
|
3120
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3083
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3121
3084
|
},
|
|
3122
3085
|
204: {
|
|
3123
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3124
|
-
}
|
|
3086
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3087
|
+
},
|
|
3125
3088
|
},
|
|
3126
3089
|
requestBody: Parameters.switchProviderInput,
|
|
3127
3090
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3132,29 +3095,28 @@ const switchProviderOperationSpec: coreClient.OperationSpec = {
|
|
|
3132
3095
|
Parameters.resourceName,
|
|
3133
3096
|
Parameters.fabricName,
|
|
3134
3097
|
Parameters.protectionContainerName,
|
|
3135
|
-
Parameters.replicatedProtectedItemName
|
|
3098
|
+
Parameters.replicatedProtectedItemName,
|
|
3136
3099
|
],
|
|
3137
3100
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3138
3101
|
mediaType: "json",
|
|
3139
|
-
serializer
|
|
3102
|
+
serializer,
|
|
3140
3103
|
};
|
|
3141
3104
|
const testFailoverOperationSpec: coreClient.OperationSpec = {
|
|
3142
|
-
path:
|
|
3143
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover",
|
|
3105
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover",
|
|
3144
3106
|
httpMethod: "POST",
|
|
3145
3107
|
responses: {
|
|
3146
3108
|
200: {
|
|
3147
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3109
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3148
3110
|
},
|
|
3149
3111
|
201: {
|
|
3150
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3112
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3151
3113
|
},
|
|
3152
3114
|
202: {
|
|
3153
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3115
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3154
3116
|
},
|
|
3155
3117
|
204: {
|
|
3156
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3157
|
-
}
|
|
3118
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3119
|
+
},
|
|
3158
3120
|
},
|
|
3159
3121
|
requestBody: Parameters.testfailoverInput,
|
|
3160
3122
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3165,29 +3127,28 @@ const testFailoverOperationSpec: coreClient.OperationSpec = {
|
|
|
3165
3127
|
Parameters.resourceName,
|
|
3166
3128
|
Parameters.fabricName,
|
|
3167
3129
|
Parameters.protectionContainerName,
|
|
3168
|
-
Parameters.replicatedProtectedItemName
|
|
3130
|
+
Parameters.replicatedProtectedItemName,
|
|
3169
3131
|
],
|
|
3170
3132
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3171
3133
|
mediaType: "json",
|
|
3172
|
-
serializer
|
|
3134
|
+
serializer,
|
|
3173
3135
|
};
|
|
3174
3136
|
const testFailoverCleanupOperationSpec: coreClient.OperationSpec = {
|
|
3175
|
-
path:
|
|
3176
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup",
|
|
3137
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup",
|
|
3177
3138
|
httpMethod: "POST",
|
|
3178
3139
|
responses: {
|
|
3179
3140
|
200: {
|
|
3180
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3141
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3181
3142
|
},
|
|
3182
3143
|
201: {
|
|
3183
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3144
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3184
3145
|
},
|
|
3185
3146
|
202: {
|
|
3186
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3147
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3187
3148
|
},
|
|
3188
3149
|
204: {
|
|
3189
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3190
|
-
}
|
|
3150
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3151
|
+
},
|
|
3191
3152
|
},
|
|
3192
3153
|
requestBody: Parameters.cleanupInput,
|
|
3193
3154
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3198,29 +3159,28 @@ const testFailoverCleanupOperationSpec: coreClient.OperationSpec = {
|
|
|
3198
3159
|
Parameters.resourceName,
|
|
3199
3160
|
Parameters.fabricName,
|
|
3200
3161
|
Parameters.protectionContainerName,
|
|
3201
|
-
Parameters.replicatedProtectedItemName
|
|
3162
|
+
Parameters.replicatedProtectedItemName,
|
|
3202
3163
|
],
|
|
3203
3164
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3204
3165
|
mediaType: "json",
|
|
3205
|
-
serializer
|
|
3166
|
+
serializer,
|
|
3206
3167
|
};
|
|
3207
3168
|
const unplannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
3208
|
-
path:
|
|
3209
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover",
|
|
3169
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover",
|
|
3210
3170
|
httpMethod: "POST",
|
|
3211
3171
|
responses: {
|
|
3212
3172
|
200: {
|
|
3213
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3173
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3214
3174
|
},
|
|
3215
3175
|
201: {
|
|
3216
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3176
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3217
3177
|
},
|
|
3218
3178
|
202: {
|
|
3219
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3179
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3220
3180
|
},
|
|
3221
3181
|
204: {
|
|
3222
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3223
|
-
}
|
|
3182
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3183
|
+
},
|
|
3224
3184
|
},
|
|
3225
3185
|
requestBody: Parameters.failoverInput1,
|
|
3226
3186
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3231,29 +3191,28 @@ const unplannedFailoverOperationSpec: coreClient.OperationSpec = {
|
|
|
3231
3191
|
Parameters.resourceName,
|
|
3232
3192
|
Parameters.fabricName,
|
|
3233
3193
|
Parameters.protectionContainerName,
|
|
3234
|
-
Parameters.replicatedProtectedItemName
|
|
3194
|
+
Parameters.replicatedProtectedItemName,
|
|
3235
3195
|
],
|
|
3236
3196
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3237
3197
|
mediaType: "json",
|
|
3238
|
-
serializer
|
|
3198
|
+
serializer,
|
|
3239
3199
|
};
|
|
3240
3200
|
const updateApplianceOperationSpec: coreClient.OperationSpec = {
|
|
3241
|
-
path:
|
|
3242
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateAppliance",
|
|
3201
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateAppliance",
|
|
3243
3202
|
httpMethod: "POST",
|
|
3244
3203
|
responses: {
|
|
3245
3204
|
200: {
|
|
3246
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3205
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3247
3206
|
},
|
|
3248
3207
|
201: {
|
|
3249
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3208
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3250
3209
|
},
|
|
3251
3210
|
202: {
|
|
3252
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3211
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3253
3212
|
},
|
|
3254
3213
|
204: {
|
|
3255
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3256
|
-
}
|
|
3214
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3215
|
+
},
|
|
3257
3216
|
},
|
|
3258
3217
|
requestBody: Parameters.applianceUpdateInput,
|
|
3259
3218
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3264,29 +3223,28 @@ const updateApplianceOperationSpec: coreClient.OperationSpec = {
|
|
|
3264
3223
|
Parameters.resourceName,
|
|
3265
3224
|
Parameters.fabricName,
|
|
3266
3225
|
Parameters.protectionContainerName,
|
|
3267
|
-
Parameters.replicatedProtectedItemName
|
|
3226
|
+
Parameters.replicatedProtectedItemName,
|
|
3268
3227
|
],
|
|
3269
3228
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3270
3229
|
mediaType: "json",
|
|
3271
|
-
serializer
|
|
3230
|
+
serializer,
|
|
3272
3231
|
};
|
|
3273
3232
|
const updateMobilityServiceOperationSpec: coreClient.OperationSpec = {
|
|
3274
|
-
path:
|
|
3275
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateMobilityService",
|
|
3233
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateMobilityService",
|
|
3276
3234
|
httpMethod: "POST",
|
|
3277
3235
|
responses: {
|
|
3278
3236
|
200: {
|
|
3279
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3237
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3280
3238
|
},
|
|
3281
3239
|
201: {
|
|
3282
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3240
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3283
3241
|
},
|
|
3284
3242
|
202: {
|
|
3285
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3243
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3286
3244
|
},
|
|
3287
3245
|
204: {
|
|
3288
|
-
bodyMapper: Mappers.ReplicationProtectedItem
|
|
3289
|
-
}
|
|
3246
|
+
bodyMapper: Mappers.ReplicationProtectedItem,
|
|
3247
|
+
},
|
|
3290
3248
|
},
|
|
3291
3249
|
requestBody: Parameters.updateMobilityServiceRequest,
|
|
3292
3250
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -3297,70 +3255,70 @@ const updateMobilityServiceOperationSpec: coreClient.OperationSpec = {
|
|
|
3297
3255
|
Parameters.resourceName,
|
|
3298
3256
|
Parameters.fabricName,
|
|
3299
3257
|
Parameters.protectionContainerName,
|
|
3300
|
-
Parameters.replicatedProtectedItemName
|
|
3258
|
+
Parameters.replicatedProtectedItemName,
|
|
3301
3259
|
],
|
|
3302
3260
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
3303
3261
|
mediaType: "json",
|
|
3304
|
-
serializer
|
|
3262
|
+
serializer,
|
|
3305
3263
|
};
|
|
3306
3264
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
3307
|
-
path:
|
|
3308
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems",
|
|
3265
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems",
|
|
3309
3266
|
httpMethod: "GET",
|
|
3310
3267
|
responses: {
|
|
3311
3268
|
200: {
|
|
3312
|
-
bodyMapper: Mappers.ReplicationProtectedItemCollection
|
|
3313
|
-
}
|
|
3269
|
+
bodyMapper: Mappers.ReplicationProtectedItemCollection,
|
|
3270
|
+
},
|
|
3314
3271
|
},
|
|
3315
3272
|
queryParameters: [
|
|
3316
3273
|
Parameters.apiVersion,
|
|
3317
3274
|
Parameters.filter,
|
|
3318
|
-
Parameters.skipToken
|
|
3275
|
+
Parameters.skipToken,
|
|
3319
3276
|
],
|
|
3320
3277
|
urlParameters: [
|
|
3321
3278
|
Parameters.$host,
|
|
3322
3279
|
Parameters.resourceGroupName,
|
|
3323
3280
|
Parameters.subscriptionId,
|
|
3324
|
-
Parameters.resourceName
|
|
3325
|
-
],
|
|
3326
|
-
headerParameters: [Parameters.accept],
|
|
3327
|
-
serializer
|
|
3328
|
-
};
|
|
3329
|
-
const listByReplicationProtectionContainersNextOperationSpec: coreClient.OperationSpec = {
|
|
3330
|
-
path: "{nextLink}",
|
|
3331
|
-
httpMethod: "GET",
|
|
3332
|
-
responses: {
|
|
3333
|
-
200: {
|
|
3334
|
-
bodyMapper: Mappers.ReplicationProtectedItemCollection
|
|
3335
|
-
}
|
|
3336
|
-
},
|
|
3337
|
-
urlParameters: [
|
|
3338
|
-
Parameters.$host,
|
|
3339
|
-
Parameters.resourceGroupName,
|
|
3340
|
-
Parameters.subscriptionId,
|
|
3341
|
-
Parameters.nextLink,
|
|
3342
3281
|
Parameters.resourceName,
|
|
3343
|
-
Parameters.fabricName,
|
|
3344
|
-
Parameters.protectionContainerName
|
|
3345
3282
|
],
|
|
3346
3283
|
headerParameters: [Parameters.accept],
|
|
3347
|
-
serializer
|
|
3284
|
+
serializer,
|
|
3348
3285
|
};
|
|
3286
|
+
const listByReplicationProtectionContainersNextOperationSpec: coreClient.OperationSpec =
|
|
3287
|
+
{
|
|
3288
|
+
path: "{nextLink}",
|
|
3289
|
+
httpMethod: "GET",
|
|
3290
|
+
responses: {
|
|
3291
|
+
200: {
|
|
3292
|
+
bodyMapper: Mappers.ReplicationProtectedItemCollection,
|
|
3293
|
+
},
|
|
3294
|
+
},
|
|
3295
|
+
urlParameters: [
|
|
3296
|
+
Parameters.$host,
|
|
3297
|
+
Parameters.resourceGroupName,
|
|
3298
|
+
Parameters.subscriptionId,
|
|
3299
|
+
Parameters.nextLink,
|
|
3300
|
+
Parameters.resourceName,
|
|
3301
|
+
Parameters.fabricName,
|
|
3302
|
+
Parameters.protectionContainerName,
|
|
3303
|
+
],
|
|
3304
|
+
headerParameters: [Parameters.accept],
|
|
3305
|
+
serializer,
|
|
3306
|
+
};
|
|
3349
3307
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
3350
3308
|
path: "{nextLink}",
|
|
3351
3309
|
httpMethod: "GET",
|
|
3352
3310
|
responses: {
|
|
3353
3311
|
200: {
|
|
3354
|
-
bodyMapper: Mappers.ReplicationProtectedItemCollection
|
|
3355
|
-
}
|
|
3312
|
+
bodyMapper: Mappers.ReplicationProtectedItemCollection,
|
|
3313
|
+
},
|
|
3356
3314
|
},
|
|
3357
3315
|
urlParameters: [
|
|
3358
3316
|
Parameters.$host,
|
|
3359
3317
|
Parameters.resourceGroupName,
|
|
3360
3318
|
Parameters.subscriptionId,
|
|
3361
3319
|
Parameters.nextLink,
|
|
3362
|
-
Parameters.resourceName
|
|
3320
|
+
Parameters.resourceName,
|
|
3363
3321
|
],
|
|
3364
3322
|
headerParameters: [Parameters.accept],
|
|
3365
|
-
serializer
|
|
3323
|
+
serializer,
|
|
3366
3324
|
};
|