@azure/arm-recoveryservicesbackup 13.2.0-alpha.20250619.1 → 13.2.0-alpha.20250730.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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1192 -518
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/bMSPrepareDataMoveOperationResult.js +1 -0
- package/dist/browser/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
- package/dist/browser/operations/backupEngines.js +23 -40
- package/dist/browser/operations/backupEngines.js.map +1 -1
- package/dist/browser/operations/backupJobs.js +23 -40
- package/dist/browser/operations/backupJobs.js.map +1 -1
- package/dist/browser/operations/backupOperationResults.js +1 -0
- package/dist/browser/operations/backupOperationResults.js.map +1 -1
- package/dist/browser/operations/backupOperationStatuses.js +1 -0
- package/dist/browser/operations/backupOperationStatuses.js.map +1 -1
- package/dist/browser/operations/backupPolicies.js +23 -40
- package/dist/browser/operations/backupPolicies.js.map +1 -1
- package/dist/browser/operations/backupProtectableItems.js +23 -40
- package/dist/browser/operations/backupProtectableItems.js.map +1 -1
- package/dist/browser/operations/backupProtectedItems.js +23 -40
- package/dist/browser/operations/backupProtectedItems.js.map +1 -1
- package/dist/browser/operations/backupProtectionContainers.js +23 -40
- package/dist/browser/operations/backupProtectionContainers.js.map +1 -1
- package/dist/browser/operations/backupProtectionIntent.js +23 -40
- package/dist/browser/operations/backupProtectionIntent.js.map +1 -1
- package/dist/browser/operations/backupResourceEncryptionConfigs.js +1 -0
- package/dist/browser/operations/backupResourceEncryptionConfigs.js.map +1 -1
- package/dist/browser/operations/backupResourceStorageConfigsNonCRR.js +1 -0
- package/dist/browser/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
- package/dist/browser/operations/backupResourceVaultConfigs.js +1 -0
- package/dist/browser/operations/backupResourceVaultConfigs.js.map +1 -1
- package/dist/browser/operations/backupStatus.js +1 -0
- package/dist/browser/operations/backupStatus.js.map +1 -1
- package/dist/browser/operations/backupUsageSummaries.js +10 -27
- package/dist/browser/operations/backupUsageSummaries.js.map +1 -1
- package/dist/browser/operations/backupWorkloadItems.js +23 -40
- package/dist/browser/operations/backupWorkloadItems.js.map +1 -1
- package/dist/browser/operations/backups.js +1 -0
- package/dist/browser/operations/backups.js.map +1 -1
- package/dist/browser/operations/deletedProtectionContainers.js +23 -40
- package/dist/browser/operations/deletedProtectionContainers.js.map +1 -1
- package/dist/browser/operations/exportJobsOperationResults.js +1 -0
- package/dist/browser/operations/exportJobsOperationResults.js.map +1 -1
- package/dist/browser/operations/featureSupport.js +1 -0
- package/dist/browser/operations/featureSupport.js.map +1 -1
- package/dist/browser/operations/fetchTieringCost.js +12 -6
- package/dist/browser/operations/fetchTieringCost.js.map +1 -1
- package/dist/browser/operations/getTieringCostOperationResult.js +1 -0
- package/dist/browser/operations/getTieringCostOperationResult.js.map +1 -1
- package/dist/browser/operations/itemLevelRecoveryConnections.js +1 -0
- package/dist/browser/operations/itemLevelRecoveryConnections.js.map +1 -1
- package/dist/browser/operations/jobCancellations.js +1 -0
- package/dist/browser/operations/jobCancellations.js.map +1 -1
- package/dist/browser/operations/jobDetails.js +1 -0
- package/dist/browser/operations/jobDetails.js.map +1 -1
- package/dist/browser/operations/jobOperationResults.js +1 -0
- package/dist/browser/operations/jobOperationResults.js.map +1 -1
- package/dist/browser/operations/jobs.js +1 -0
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/operation.js +1 -0
- package/dist/browser/operations/operation.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnectionOperations.js +23 -12
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/privateEndpointOperations.js +1 -0
- package/dist/browser/operations/privateEndpointOperations.js.map +1 -1
- package/dist/browser/operations/protectableContainers.js +23 -40
- package/dist/browser/operations/protectableContainers.js.map +1 -1
- package/dist/browser/operations/protectedItemOperationResults.js +1 -0
- package/dist/browser/operations/protectedItemOperationResults.js.map +1 -1
- package/dist/browser/operations/protectedItemOperationStatuses.js +1 -0
- package/dist/browser/operations/protectedItemOperationStatuses.js.map +1 -1
- package/dist/browser/operations/protectedItems.js +1 -0
- package/dist/browser/operations/protectedItems.js.map +1 -1
- package/dist/browser/operations/protectionContainerOperationResults.js +1 -0
- package/dist/browser/operations/protectionContainerOperationResults.js.map +1 -1
- package/dist/browser/operations/protectionContainerRefreshOperationResults.js +1 -0
- package/dist/browser/operations/protectionContainerRefreshOperationResults.js.map +1 -1
- package/dist/browser/operations/protectionContainers.js +12 -6
- package/dist/browser/operations/protectionContainers.js.map +1 -1
- package/dist/browser/operations/protectionIntentOperations.js +1 -0
- package/dist/browser/operations/protectionIntentOperations.js.map +1 -1
- package/dist/browser/operations/protectionPolicies.js +12 -6
- package/dist/browser/operations/protectionPolicies.js.map +1 -1
- package/dist/browser/operations/protectionPolicyOperationResults.js +1 -0
- package/dist/browser/operations/protectionPolicyOperationResults.js.map +1 -1
- package/dist/browser/operations/protectionPolicyOperationStatuses.js +1 -0
- package/dist/browser/operations/protectionPolicyOperationStatuses.js.map +1 -1
- package/dist/browser/operations/recoveryPoints.js +23 -40
- package/dist/browser/operations/recoveryPoints.js.map +1 -1
- package/dist/browser/operations/recoveryPointsRecommendedForMove.js +23 -40
- package/dist/browser/operations/recoveryPointsRecommendedForMove.js.map +1 -1
- package/dist/browser/operations/resourceGuardProxies.js +23 -40
- package/dist/browser/operations/resourceGuardProxies.js.map +1 -1
- package/dist/browser/operations/resourceGuardProxy.js +1 -0
- package/dist/browser/operations/resourceGuardProxy.js.map +1 -1
- package/dist/browser/operations/restores.js +12 -6
- package/dist/browser/operations/restores.js.map +1 -1
- package/dist/browser/operations/securityPINs.js +1 -0
- package/dist/browser/operations/securityPINs.js.map +1 -1
- package/dist/browser/operations/tieringCostOperationStatus.js +1 -0
- package/dist/browser/operations/tieringCostOperationStatus.js.map +1 -1
- package/dist/browser/operations/validateOperation.js +12 -6
- package/dist/browser/operations/validateOperation.js.map +1 -1
- package/dist/browser/operations/validateOperationResults.js +1 -0
- package/dist/browser/operations/validateOperationResults.js.map +1 -1
- package/dist/browser/operations/validateOperationStatuses.js +1 -0
- package/dist/browser/operations/validateOperationStatuses.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/recoveryServicesBackupClient.js +98 -23
- package/dist/browser/recoveryServicesBackupClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +1192 -518
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/bMSPrepareDataMoveOperationResult.js +1 -0
- package/dist/commonjs/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
- package/dist/commonjs/operations/backupEngines.js +23 -39
- package/dist/commonjs/operations/backupEngines.js.map +1 -1
- package/dist/commonjs/operations/backupJobs.js +23 -39
- package/dist/commonjs/operations/backupJobs.js.map +1 -1
- package/dist/commonjs/operations/backupOperationResults.js +1 -0
- package/dist/commonjs/operations/backupOperationResults.js.map +1 -1
- package/dist/commonjs/operations/backupOperationStatuses.js +1 -0
- package/dist/commonjs/operations/backupOperationStatuses.js.map +1 -1
- package/dist/commonjs/operations/backupPolicies.js +23 -39
- package/dist/commonjs/operations/backupPolicies.js.map +1 -1
- package/dist/commonjs/operations/backupProtectableItems.js +23 -39
- package/dist/commonjs/operations/backupProtectableItems.js.map +1 -1
- package/dist/commonjs/operations/backupProtectedItems.js +23 -39
- package/dist/commonjs/operations/backupProtectedItems.js.map +1 -1
- package/dist/commonjs/operations/backupProtectionContainers.js +23 -39
- package/dist/commonjs/operations/backupProtectionContainers.js.map +1 -1
- package/dist/commonjs/operations/backupProtectionIntent.js +23 -39
- package/dist/commonjs/operations/backupProtectionIntent.js.map +1 -1
- package/dist/commonjs/operations/backupResourceEncryptionConfigs.js +1 -0
- package/dist/commonjs/operations/backupResourceEncryptionConfigs.js.map +1 -1
- package/dist/commonjs/operations/backupResourceStorageConfigsNonCRR.js +1 -0
- package/dist/commonjs/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
- package/dist/commonjs/operations/backupResourceVaultConfigs.js +1 -0
- package/dist/commonjs/operations/backupResourceVaultConfigs.js.map +1 -1
- package/dist/commonjs/operations/backupStatus.js +1 -0
- package/dist/commonjs/operations/backupStatus.js.map +1 -1
- package/dist/commonjs/operations/backupUsageSummaries.js +10 -26
- package/dist/commonjs/operations/backupUsageSummaries.js.map +1 -1
- package/dist/commonjs/operations/backupWorkloadItems.js +23 -39
- package/dist/commonjs/operations/backupWorkloadItems.js.map +1 -1
- package/dist/commonjs/operations/backups.js +1 -0
- package/dist/commonjs/operations/backups.js.map +1 -1
- package/dist/commonjs/operations/deletedProtectionContainers.js +23 -39
- package/dist/commonjs/operations/deletedProtectionContainers.js.map +1 -1
- package/dist/commonjs/operations/exportJobsOperationResults.js +1 -0
- package/dist/commonjs/operations/exportJobsOperationResults.js.map +1 -1
- package/dist/commonjs/operations/featureSupport.js +1 -0
- package/dist/commonjs/operations/featureSupport.js.map +1 -1
- package/dist/commonjs/operations/fetchTieringCost.js +12 -6
- package/dist/commonjs/operations/fetchTieringCost.js.map +1 -1
- package/dist/commonjs/operations/getTieringCostOperationResult.js +1 -0
- package/dist/commonjs/operations/getTieringCostOperationResult.js.map +1 -1
- package/dist/commonjs/operations/itemLevelRecoveryConnections.js +1 -0
- package/dist/commonjs/operations/itemLevelRecoveryConnections.js.map +1 -1
- package/dist/commonjs/operations/jobCancellations.js +1 -0
- package/dist/commonjs/operations/jobCancellations.js.map +1 -1
- package/dist/commonjs/operations/jobDetails.js +1 -0
- package/dist/commonjs/operations/jobDetails.js.map +1 -1
- package/dist/commonjs/operations/jobOperationResults.js +1 -0
- package/dist/commonjs/operations/jobOperationResults.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +1 -0
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/operation.js +1 -0
- package/dist/commonjs/operations/operation.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js +23 -12
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointOperations.js +1 -0
- package/dist/commonjs/operations/privateEndpointOperations.js.map +1 -1
- package/dist/commonjs/operations/protectableContainers.js +23 -39
- package/dist/commonjs/operations/protectableContainers.js.map +1 -1
- package/dist/commonjs/operations/protectedItemOperationResults.js +1 -0
- package/dist/commonjs/operations/protectedItemOperationResults.js.map +1 -1
- package/dist/commonjs/operations/protectedItemOperationStatuses.js +1 -0
- package/dist/commonjs/operations/protectedItemOperationStatuses.js.map +1 -1
- package/dist/commonjs/operations/protectedItems.js +1 -0
- package/dist/commonjs/operations/protectedItems.js.map +1 -1
- package/dist/commonjs/operations/protectionContainerOperationResults.js +1 -0
- package/dist/commonjs/operations/protectionContainerOperationResults.js.map +1 -1
- package/dist/commonjs/operations/protectionContainerRefreshOperationResults.js +1 -0
- package/dist/commonjs/operations/protectionContainerRefreshOperationResults.js.map +1 -1
- package/dist/commonjs/operations/protectionContainers.js +12 -6
- package/dist/commonjs/operations/protectionContainers.js.map +1 -1
- package/dist/commonjs/operations/protectionIntentOperations.js +1 -0
- package/dist/commonjs/operations/protectionIntentOperations.js.map +1 -1
- package/dist/commonjs/operations/protectionPolicies.js +12 -6
- package/dist/commonjs/operations/protectionPolicies.js.map +1 -1
- package/dist/commonjs/operations/protectionPolicyOperationResults.js +1 -0
- package/dist/commonjs/operations/protectionPolicyOperationResults.js.map +1 -1
- package/dist/commonjs/operations/protectionPolicyOperationStatuses.js +1 -0
- package/dist/commonjs/operations/protectionPolicyOperationStatuses.js.map +1 -1
- package/dist/commonjs/operations/recoveryPoints.js +23 -39
- package/dist/commonjs/operations/recoveryPoints.js.map +1 -1
- package/dist/commonjs/operations/recoveryPointsRecommendedForMove.js +23 -39
- package/dist/commonjs/operations/recoveryPointsRecommendedForMove.js.map +1 -1
- package/dist/commonjs/operations/resourceGuardProxies.js +23 -39
- package/dist/commonjs/operations/resourceGuardProxies.js.map +1 -1
- package/dist/commonjs/operations/resourceGuardProxy.js +1 -0
- package/dist/commonjs/operations/resourceGuardProxy.js.map +1 -1
- package/dist/commonjs/operations/restores.js +12 -6
- package/dist/commonjs/operations/restores.js.map +1 -1
- package/dist/commonjs/operations/securityPINs.js +1 -0
- package/dist/commonjs/operations/securityPINs.js.map +1 -1
- package/dist/commonjs/operations/tieringCostOperationStatus.js +1 -0
- package/dist/commonjs/operations/tieringCostOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/validateOperation.js +12 -6
- package/dist/commonjs/operations/validateOperation.js.map +1 -1
- package/dist/commonjs/operations/validateOperationResults.js +1 -0
- package/dist/commonjs/operations/validateOperationResults.js.map +1 -1
- package/dist/commonjs/operations/validateOperationStatuses.js +1 -0
- package/dist/commonjs/operations/validateOperationStatuses.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/recoveryServicesBackupClient.js +98 -23
- package/dist/commonjs/recoveryServicesBackupClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1192 -518
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/bMSPrepareDataMoveOperationResult.js +1 -0
- package/dist/esm/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
- package/dist/esm/operations/backupEngines.js +23 -40
- package/dist/esm/operations/backupEngines.js.map +1 -1
- package/dist/esm/operations/backupJobs.js +23 -40
- package/dist/esm/operations/backupJobs.js.map +1 -1
- package/dist/esm/operations/backupOperationResults.js +1 -0
- package/dist/esm/operations/backupOperationResults.js.map +1 -1
- package/dist/esm/operations/backupOperationStatuses.js +1 -0
- package/dist/esm/operations/backupOperationStatuses.js.map +1 -1
- package/dist/esm/operations/backupPolicies.js +23 -40
- package/dist/esm/operations/backupPolicies.js.map +1 -1
- package/dist/esm/operations/backupProtectableItems.js +23 -40
- package/dist/esm/operations/backupProtectableItems.js.map +1 -1
- package/dist/esm/operations/backupProtectedItems.js +23 -40
- package/dist/esm/operations/backupProtectedItems.js.map +1 -1
- package/dist/esm/operations/backupProtectionContainers.js +23 -40
- package/dist/esm/operations/backupProtectionContainers.js.map +1 -1
- package/dist/esm/operations/backupProtectionIntent.js +23 -40
- package/dist/esm/operations/backupProtectionIntent.js.map +1 -1
- package/dist/esm/operations/backupResourceEncryptionConfigs.js +1 -0
- package/dist/esm/operations/backupResourceEncryptionConfigs.js.map +1 -1
- package/dist/esm/operations/backupResourceStorageConfigsNonCRR.js +1 -0
- package/dist/esm/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
- package/dist/esm/operations/backupResourceVaultConfigs.js +1 -0
- package/dist/esm/operations/backupResourceVaultConfigs.js.map +1 -1
- package/dist/esm/operations/backupStatus.js +1 -0
- package/dist/esm/operations/backupStatus.js.map +1 -1
- package/dist/esm/operations/backupUsageSummaries.js +10 -27
- package/dist/esm/operations/backupUsageSummaries.js.map +1 -1
- package/dist/esm/operations/backupWorkloadItems.js +23 -40
- package/dist/esm/operations/backupWorkloadItems.js.map +1 -1
- package/dist/esm/operations/backups.js +1 -0
- package/dist/esm/operations/backups.js.map +1 -1
- package/dist/esm/operations/deletedProtectionContainers.js +23 -40
- package/dist/esm/operations/deletedProtectionContainers.js.map +1 -1
- package/dist/esm/operations/exportJobsOperationResults.js +1 -0
- package/dist/esm/operations/exportJobsOperationResults.js.map +1 -1
- package/dist/esm/operations/featureSupport.js +1 -0
- package/dist/esm/operations/featureSupport.js.map +1 -1
- package/dist/esm/operations/fetchTieringCost.js +12 -6
- package/dist/esm/operations/fetchTieringCost.js.map +1 -1
- package/dist/esm/operations/getTieringCostOperationResult.js +1 -0
- package/dist/esm/operations/getTieringCostOperationResult.js.map +1 -1
- package/dist/esm/operations/itemLevelRecoveryConnections.js +1 -0
- package/dist/esm/operations/itemLevelRecoveryConnections.js.map +1 -1
- package/dist/esm/operations/jobCancellations.js +1 -0
- package/dist/esm/operations/jobCancellations.js.map +1 -1
- package/dist/esm/operations/jobDetails.js +1 -0
- package/dist/esm/operations/jobDetails.js.map +1 -1
- package/dist/esm/operations/jobOperationResults.js +1 -0
- package/dist/esm/operations/jobOperationResults.js.map +1 -1
- package/dist/esm/operations/jobs.js +1 -0
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/operation.js +1 -0
- package/dist/esm/operations/operation.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnectionOperations.js +23 -12
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/privateEndpointOperations.js +1 -0
- package/dist/esm/operations/privateEndpointOperations.js.map +1 -1
- package/dist/esm/operations/protectableContainers.js +23 -40
- package/dist/esm/operations/protectableContainers.js.map +1 -1
- package/dist/esm/operations/protectedItemOperationResults.js +1 -0
- package/dist/esm/operations/protectedItemOperationResults.js.map +1 -1
- package/dist/esm/operations/protectedItemOperationStatuses.js +1 -0
- package/dist/esm/operations/protectedItemOperationStatuses.js.map +1 -1
- package/dist/esm/operations/protectedItems.js +1 -0
- package/dist/esm/operations/protectedItems.js.map +1 -1
- package/dist/esm/operations/protectionContainerOperationResults.js +1 -0
- package/dist/esm/operations/protectionContainerOperationResults.js.map +1 -1
- package/dist/esm/operations/protectionContainerRefreshOperationResults.js +1 -0
- package/dist/esm/operations/protectionContainerRefreshOperationResults.js.map +1 -1
- package/dist/esm/operations/protectionContainers.js +12 -6
- package/dist/esm/operations/protectionContainers.js.map +1 -1
- package/dist/esm/operations/protectionIntentOperations.js +1 -0
- package/dist/esm/operations/protectionIntentOperations.js.map +1 -1
- package/dist/esm/operations/protectionPolicies.js +12 -6
- package/dist/esm/operations/protectionPolicies.js.map +1 -1
- package/dist/esm/operations/protectionPolicyOperationResults.js +1 -0
- package/dist/esm/operations/protectionPolicyOperationResults.js.map +1 -1
- package/dist/esm/operations/protectionPolicyOperationStatuses.js +1 -0
- package/dist/esm/operations/protectionPolicyOperationStatuses.js.map +1 -1
- package/dist/esm/operations/recoveryPoints.js +23 -40
- package/dist/esm/operations/recoveryPoints.js.map +1 -1
- package/dist/esm/operations/recoveryPointsRecommendedForMove.js +23 -40
- package/dist/esm/operations/recoveryPointsRecommendedForMove.js.map +1 -1
- package/dist/esm/operations/resourceGuardProxies.js +23 -40
- package/dist/esm/operations/resourceGuardProxies.js.map +1 -1
- package/dist/esm/operations/resourceGuardProxy.js +1 -0
- package/dist/esm/operations/resourceGuardProxy.js.map +1 -1
- package/dist/esm/operations/restores.js +12 -6
- package/dist/esm/operations/restores.js.map +1 -1
- package/dist/esm/operations/securityPINs.js +1 -0
- package/dist/esm/operations/securityPINs.js.map +1 -1
- package/dist/esm/operations/tieringCostOperationStatus.js +1 -0
- package/dist/esm/operations/tieringCostOperationStatus.js.map +1 -1
- package/dist/esm/operations/validateOperation.js +12 -6
- package/dist/esm/operations/validateOperation.js.map +1 -1
- package/dist/esm/operations/validateOperationResults.js +1 -0
- package/dist/esm/operations/validateOperationResults.js.map +1 -1
- package/dist/esm/operations/validateOperationStatuses.js +1 -0
- package/dist/esm/operations/validateOperationStatuses.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/recoveryServicesBackupClient.js +98 -23
- package/dist/esm/recoveryServicesBackupClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +1192 -518
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/bMSPrepareDataMoveOperationResult.js +1 -0
- package/dist/react-native/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
- package/dist/react-native/operations/backupEngines.js +23 -40
- package/dist/react-native/operations/backupEngines.js.map +1 -1
- package/dist/react-native/operations/backupJobs.js +23 -40
- package/dist/react-native/operations/backupJobs.js.map +1 -1
- package/dist/react-native/operations/backupOperationResults.js +1 -0
- package/dist/react-native/operations/backupOperationResults.js.map +1 -1
- package/dist/react-native/operations/backupOperationStatuses.js +1 -0
- package/dist/react-native/operations/backupOperationStatuses.js.map +1 -1
- package/dist/react-native/operations/backupPolicies.js +23 -40
- package/dist/react-native/operations/backupPolicies.js.map +1 -1
- package/dist/react-native/operations/backupProtectableItems.js +23 -40
- package/dist/react-native/operations/backupProtectableItems.js.map +1 -1
- package/dist/react-native/operations/backupProtectedItems.js +23 -40
- package/dist/react-native/operations/backupProtectedItems.js.map +1 -1
- package/dist/react-native/operations/backupProtectionContainers.js +23 -40
- package/dist/react-native/operations/backupProtectionContainers.js.map +1 -1
- package/dist/react-native/operations/backupProtectionIntent.js +23 -40
- package/dist/react-native/operations/backupProtectionIntent.js.map +1 -1
- package/dist/react-native/operations/backupResourceEncryptionConfigs.js +1 -0
- package/dist/react-native/operations/backupResourceEncryptionConfigs.js.map +1 -1
- package/dist/react-native/operations/backupResourceStorageConfigsNonCRR.js +1 -0
- package/dist/react-native/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
- package/dist/react-native/operations/backupResourceVaultConfigs.js +1 -0
- package/dist/react-native/operations/backupResourceVaultConfigs.js.map +1 -1
- package/dist/react-native/operations/backupStatus.js +1 -0
- package/dist/react-native/operations/backupStatus.js.map +1 -1
- package/dist/react-native/operations/backupUsageSummaries.js +10 -27
- package/dist/react-native/operations/backupUsageSummaries.js.map +1 -1
- package/dist/react-native/operations/backupWorkloadItems.js +23 -40
- package/dist/react-native/operations/backupWorkloadItems.js.map +1 -1
- package/dist/react-native/operations/backups.js +1 -0
- package/dist/react-native/operations/backups.js.map +1 -1
- package/dist/react-native/operations/deletedProtectionContainers.js +23 -40
- package/dist/react-native/operations/deletedProtectionContainers.js.map +1 -1
- package/dist/react-native/operations/exportJobsOperationResults.js +1 -0
- package/dist/react-native/operations/exportJobsOperationResults.js.map +1 -1
- package/dist/react-native/operations/featureSupport.js +1 -0
- package/dist/react-native/operations/featureSupport.js.map +1 -1
- package/dist/react-native/operations/fetchTieringCost.js +12 -6
- package/dist/react-native/operations/fetchTieringCost.js.map +1 -1
- package/dist/react-native/operations/getTieringCostOperationResult.js +1 -0
- package/dist/react-native/operations/getTieringCostOperationResult.js.map +1 -1
- package/dist/react-native/operations/itemLevelRecoveryConnections.js +1 -0
- package/dist/react-native/operations/itemLevelRecoveryConnections.js.map +1 -1
- package/dist/react-native/operations/jobCancellations.js +1 -0
- package/dist/react-native/operations/jobCancellations.js.map +1 -1
- package/dist/react-native/operations/jobDetails.js +1 -0
- package/dist/react-native/operations/jobDetails.js.map +1 -1
- package/dist/react-native/operations/jobOperationResults.js +1 -0
- package/dist/react-native/operations/jobOperationResults.js.map +1 -1
- package/dist/react-native/operations/jobs.js +1 -0
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/operation.js +1 -0
- package/dist/react-native/operations/operation.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnectionOperations.js +23 -12
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointOperations.js +1 -0
- package/dist/react-native/operations/privateEndpointOperations.js.map +1 -1
- package/dist/react-native/operations/protectableContainers.js +23 -40
- package/dist/react-native/operations/protectableContainers.js.map +1 -1
- package/dist/react-native/operations/protectedItemOperationResults.js +1 -0
- package/dist/react-native/operations/protectedItemOperationResults.js.map +1 -1
- package/dist/react-native/operations/protectedItemOperationStatuses.js +1 -0
- package/dist/react-native/operations/protectedItemOperationStatuses.js.map +1 -1
- package/dist/react-native/operations/protectedItems.js +1 -0
- package/dist/react-native/operations/protectedItems.js.map +1 -1
- package/dist/react-native/operations/protectionContainerOperationResults.js +1 -0
- package/dist/react-native/operations/protectionContainerOperationResults.js.map +1 -1
- package/dist/react-native/operations/protectionContainerRefreshOperationResults.js +1 -0
- package/dist/react-native/operations/protectionContainerRefreshOperationResults.js.map +1 -1
- package/dist/react-native/operations/protectionContainers.js +12 -6
- package/dist/react-native/operations/protectionContainers.js.map +1 -1
- package/dist/react-native/operations/protectionIntentOperations.js +1 -0
- package/dist/react-native/operations/protectionIntentOperations.js.map +1 -1
- package/dist/react-native/operations/protectionPolicies.js +12 -6
- package/dist/react-native/operations/protectionPolicies.js.map +1 -1
- package/dist/react-native/operations/protectionPolicyOperationResults.js +1 -0
- package/dist/react-native/operations/protectionPolicyOperationResults.js.map +1 -1
- package/dist/react-native/operations/protectionPolicyOperationStatuses.js +1 -0
- package/dist/react-native/operations/protectionPolicyOperationStatuses.js.map +1 -1
- package/dist/react-native/operations/recoveryPoints.js +23 -40
- package/dist/react-native/operations/recoveryPoints.js.map +1 -1
- package/dist/react-native/operations/recoveryPointsRecommendedForMove.js +23 -40
- package/dist/react-native/operations/recoveryPointsRecommendedForMove.js.map +1 -1
- package/dist/react-native/operations/resourceGuardProxies.js +23 -40
- package/dist/react-native/operations/resourceGuardProxies.js.map +1 -1
- package/dist/react-native/operations/resourceGuardProxy.js +1 -0
- package/dist/react-native/operations/resourceGuardProxy.js.map +1 -1
- package/dist/react-native/operations/restores.js +12 -6
- package/dist/react-native/operations/restores.js.map +1 -1
- package/dist/react-native/operations/securityPINs.js +1 -0
- package/dist/react-native/operations/securityPINs.js.map +1 -1
- package/dist/react-native/operations/tieringCostOperationStatus.js +1 -0
- package/dist/react-native/operations/tieringCostOperationStatus.js.map +1 -1
- package/dist/react-native/operations/validateOperation.js +12 -6
- package/dist/react-native/operations/validateOperation.js.map +1 -1
- package/dist/react-native/operations/validateOperationResults.js +1 -0
- package/dist/react-native/operations/validateOperationResults.js.map +1 -1
- package/dist/react-native/operations/validateOperationStatuses.js +1 -0
- package/dist/react-native/operations/validateOperationStatuses.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/recoveryServicesBackupClient.js +98 -23
- package/dist/react-native/recoveryServicesBackupClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-recoveryservicesbackup.api.md → arm-recoveryservicesbackup-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protectionPolicies.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAU9C,sDAAsD;AACtD,MAAa,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,EACrD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CACZ,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,UAAoC,EACpC,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EACjE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,WAAW,CACf,SA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CAAC,wBAAwB;SAC7C;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,yBAAyB;KACrC;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,wJAAwJ;IAC9J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ProtectionPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ProtectionPoliciesGetOptionalParams,\n ProtectionPoliciesGetResponse,\n ProtectionPolicyResource,\n ProtectionPoliciesCreateOrUpdateOptionalParams,\n ProtectionPoliciesCreateOrUpdateResponse,\n ProtectionPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionPolicies operations. */\nexport class ProtectionPoliciesImpl implements ProtectionPolicies {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the details of the backup policies associated to Recovery Services Vault. This is an\n * asynchronous\n * operation. Status of the operation can be fetched using GetPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy information to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesGetOptionalParams,\n ): Promise<ProtectionPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can\n * be fetched\n * using GetPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be created.\n * @param parameters resource backup policy\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n parameters: ProtectionPolicyResource,\n options?: ProtectionPoliciesCreateOrUpdateOptionalParams,\n ): Promise<ProtectionPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous\n * operation. Status of the\n * operation can be fetched using GetProtectionPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { vaultName, resourceGroupName, policyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous\n * operation. Status of the\n * operation can be fetched using GetProtectionPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n vaultName,\n resourceGroupName,\n policyName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResource,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsAuthorizationAuxiliary,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"protectionPolicies.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAU9C,sDAAsD;AACtD,MAAa,sBAAsB;IAChB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,EACrD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CACZ,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,UAAoC,EACpC,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EACjE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,OAAgD;QAEhD,MAAM,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WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,yBAAyB;KACrC;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,wJAAwJ;IAC9J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ProtectionPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ProtectionPoliciesGetOptionalParams,\n ProtectionPoliciesGetResponse,\n ProtectionPolicyResource,\n ProtectionPoliciesCreateOrUpdateOptionalParams,\n ProtectionPoliciesCreateOrUpdateResponse,\n ProtectionPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionPolicies operations. */\nexport class ProtectionPoliciesImpl implements ProtectionPolicies {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the details of the backup policies associated to Recovery Services Vault. This is an\n * asynchronous\n * operation. Status of the operation can be fetched using GetPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy information to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesGetOptionalParams,\n ): Promise<ProtectionPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can\n * be fetched\n * using GetPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be created.\n * @param parameters resource backup policy\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n parameters: ProtectionPolicyResource,\n options?: ProtectionPoliciesCreateOrUpdateOptionalParams,\n ): Promise<ProtectionPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous\n * operation. Status of the\n * operation can be fetched using GetProtectionPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be deleted.\n * @param options The options parameters.\n */\n async beginDelete(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { vaultName, resourceGroupName, policyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous\n * operation. Status of the\n * operation can be fetched using GetProtectionPolicyOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy to be deleted.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n options?: ProtectionPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n vaultName,\n resourceGroupName,\n policyName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResource,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsAuthorizationAuxiliary,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ProtectionPolicyOperationResults operations. */
|
|
16
16
|
class ProtectionPolicyOperationResultsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ProtectionPolicyOperationResults class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protectionPolicyOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicyOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,oEAAoE;AACpE,MAAa,oCAAoC;
|
|
1
|
+
{"version":3,"file":"protectionPolicyOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicyOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,oEAAoE;AACpE,MAAa,oCAAoC;IAG9B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,WAAmB,EACnB,OAA2D;QAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,EAClE,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlCD,oFAkCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uLAAuL;IAC7L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ProtectionPolicyOperationResults } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectionPolicyOperationResultsGetOptionalParams,\n ProtectionPolicyOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionPolicyOperationResults operations. */\nexport class ProtectionPolicyOperationResultsImpl\n implements ProtectionPolicyOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionPolicyOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the result of an operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy name whose operation's result needs to be fetched.\n * @param operationId Operation ID which represents the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n operationId: string,\n options?: ProtectionPolicyOperationResultsGetOptionalParams,\n ): Promise<ProtectionPolicyOperationResultsGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.operationId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ProtectionPolicyOperationStatuses operations. */
|
|
16
16
|
class ProtectionPolicyOperationStatusesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ProtectionPolicyOperationStatuses class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protectionPolicyOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicyOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,qEAAqE;AACrE,MAAa,qCAAqC;
|
|
1
|
+
{"version":3,"file":"protectionPolicyOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/protectionPolicyOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,qEAAqE;AACrE,MAAa,qCAAqC;IAG/B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,WAAmB,EACnB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,EAClE,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAtCD,sFAsCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iLAAiL;IACvL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ProtectionPolicyOperationStatuses } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectionPolicyOperationStatusesGetOptionalParams,\n ProtectionPolicyOperationStatusesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionPolicyOperationStatuses operations. */\nexport class ProtectionPolicyOperationStatusesImpl\n implements ProtectionPolicyOperationStatuses\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionPolicyOperationStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the status of the asynchronous operations like backup, restore. The status can be in\n * progress, completed\n * or failed. You can refer to the Operation Status enum for all the possible states of an operation.\n * Some operations\n * create jobs. This method returns the list of jobs associated with operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param policyName Backup policy name whose operation's status needs to be fetched.\n * @param operationId Operation ID which represents an operation whose status needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n policyName: string,\n operationId: string,\n options?: ProtectionPolicyOperationStatusesGetOptionalParams,\n ): Promise<ProtectionPolicyOperationStatusesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, policyName, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.operationId,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing RecoveryPoints operations. */
|
|
18
18
|
class RecoveryPointsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RecoveryPoints class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -43,52 +44,35 @@ class RecoveryPointsImpl {
|
|
|
43
44
|
return this;
|
|
44
45
|
},
|
|
45
46
|
byPage: (settings) => {
|
|
46
|
-
if (settings
|
|
47
|
+
if (settings?.maxPageSize) {
|
|
47
48
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
48
49
|
}
|
|
49
50
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings);
|
|
50
51
|
},
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
|
-
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
});
|
|
54
|
+
async *listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings) {
|
|
55
|
+
let result;
|
|
56
|
+
let continuationToken = settings?.continuationToken;
|
|
57
|
+
if (!continuationToken) {
|
|
58
|
+
result = await this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options);
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
64
|
+
while (continuationToken) {
|
|
65
|
+
result = await this._listNext(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, continuationToken, options);
|
|
66
|
+
continuationToken = result.nextLink;
|
|
67
|
+
let page = result.value || [];
|
|
68
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
69
|
+
yield page;
|
|
70
|
+
}
|
|
72
71
|
}
|
|
73
|
-
listPagingAll(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
78
|
-
_c = _f.value;
|
|
79
|
-
_d = false;
|
|
80
|
-
const page = _c;
|
|
81
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
|
-
finally {
|
|
86
|
-
try {
|
|
87
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
88
|
-
}
|
|
89
|
-
finally { if (e_1) throw e_1.error; }
|
|
90
|
-
}
|
|
91
|
-
});
|
|
72
|
+
async *listPagingAll(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options) {
|
|
73
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
92
76
|
}
|
|
93
77
|
/**
|
|
94
78
|
* Lists the backup copies for the backed up item.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recoveryPoints.js","sourceRoot":"","sources":["../../../src/operations/recoveryPoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAC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,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RecoveryPoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n RecoveryPointResource,\n RecoveryPointsListNextOptionalParams,\n RecoveryPointsListOptionalParams,\n RecoveryPointsListResponse,\n RecoveryPointsGetOptionalParams,\n RecoveryPointsGetResponse,\n RecoveryPointsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPoints operations. */\nexport class RecoveryPointsImpl implements RecoveryPoints {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class RecoveryPoints class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the backup copies for the backed up item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPointResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPointResource[]> {\n let result: RecoveryPointsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): AsyncIterableIterator<RecoveryPointResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the backup copies for the backed up item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): Promise<RecoveryPointsListResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Provides the information of the backed up data identified using RecoveryPointID. This is an\n * asynchronous operation.\n * To know the status of the operation, call the GetProtectedItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with backed up item.\n * @param containerName Container name associated with backed up item.\n * @param protectedItemName Backed up item name whose backup data needs to be fetched.\n * @param recoveryPointId RecoveryPointID represents the backed up data to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n recoveryPointId: string,\n options?: RecoveryPointsGetOptionalParams,\n ): Promise<RecoveryPointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n recoveryPointId,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n nextLink: string,\n options?: RecoveryPointsListNextOptionalParams,\n ): Promise<RecoveryPointsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n Parameters.recoveryPointId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"recoveryPoints.js","sourceRoot":"","sources":["../../../src/operations/recoveryPoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAA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AAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RecoveryPoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n RecoveryPointResource,\n RecoveryPointsListNextOptionalParams,\n RecoveryPointsListOptionalParams,\n RecoveryPointsListResponse,\n RecoveryPointsGetOptionalParams,\n RecoveryPointsGetResponse,\n RecoveryPointsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPoints operations. */\nexport class RecoveryPointsImpl implements RecoveryPoints {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class RecoveryPoints class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the backup copies for the backed up item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPointResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPointResource[]> {\n let result: RecoveryPointsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): AsyncIterableIterator<RecoveryPointResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the backup copies for the backed up item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: RecoveryPointsListOptionalParams,\n ): Promise<RecoveryPointsListResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Provides the information of the backed up data identified using RecoveryPointID. This is an\n * asynchronous operation.\n * To know the status of the operation, call the GetProtectedItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with backed up item.\n * @param containerName Container name associated with backed up item.\n * @param protectedItemName Backed up item name whose backup data needs to be fetched.\n * @param recoveryPointId RecoveryPointID represents the backed up data to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n recoveryPointId: string,\n options?: RecoveryPointsGetOptionalParams,\n ): Promise<RecoveryPointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n recoveryPointId,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item whose backup copies are to be fetched.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n nextLink: string,\n options?: RecoveryPointsListNextOptionalParams,\n ): Promise<RecoveryPointsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n Parameters.recoveryPointId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing RecoveryPointsRecommendedForMove operations. */
|
|
18
18
|
class RecoveryPointsRecommendedForMoveImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RecoveryPointsRecommendedForMove class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -44,52 +45,35 @@ class RecoveryPointsRecommendedForMoveImpl {
|
|
|
44
45
|
return this;
|
|
45
46
|
},
|
|
46
47
|
byPage: (settings) => {
|
|
47
|
-
if (settings
|
|
48
|
+
if (settings?.maxPageSize) {
|
|
48
49
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
49
50
|
}
|
|
50
51
|
return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings);
|
|
51
52
|
},
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
});
|
|
55
|
+
async *listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings) {
|
|
56
|
+
let result;
|
|
57
|
+
let continuationToken = settings?.continuationToken;
|
|
58
|
+
if (!continuationToken) {
|
|
59
|
+
result = await this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options);
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
65
|
+
while (continuationToken) {
|
|
66
|
+
result = await this._listNext(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, continuationToken, options);
|
|
67
|
+
continuationToken = result.nextLink;
|
|
68
|
+
let page = result.value || [];
|
|
69
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
70
|
+
yield page;
|
|
71
|
+
}
|
|
73
72
|
}
|
|
74
|
-
listPagingAll(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
79
|
-
_c = _f.value;
|
|
80
|
-
_d = false;
|
|
81
|
-
const page = _c;
|
|
82
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
86
|
-
finally {
|
|
87
|
-
try {
|
|
88
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
89
|
-
}
|
|
90
|
-
finally { if (e_1) throw e_1.error; }
|
|
91
|
-
}
|
|
92
|
-
});
|
|
73
|
+
async *listPagingAll(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options) {
|
|
74
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options)) {
|
|
75
|
+
yield* page;
|
|
76
|
+
}
|
|
93
77
|
}
|
|
94
78
|
/**
|
|
95
79
|
* Lists the recovery points recommended for move to another tier
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recoveryPointsRecommendedForMove.js","sourceRoot":"","sources":["../../../src/operations/recoveryPointsRecommendedForMove.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAK/C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,UAAuD,EACvD,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,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AI,EAAE,gQAAgQ;IACtQ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RecoveryPointsRecommendedForMove } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n RecoveryPointResource,\n ListRecoveryPointsRecommendedForMoveRequest,\n RecoveryPointsRecommendedForMoveListNextOptionalParams,\n RecoveryPointsRecommendedForMoveListOptionalParams,\n RecoveryPointsRecommendedForMoveListResponse,\n RecoveryPointsRecommendedForMoveListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPointsRecommendedForMove operations. */\nexport class RecoveryPointsRecommendedForMoveImpl\n implements RecoveryPointsRecommendedForMove\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class RecoveryPointsRecommendedForMove class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the recovery points recommended for move to another tier\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPointResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPointResource[]> {\n let result: RecoveryPointsRecommendedForMoveListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): AsyncIterableIterator<RecoveryPointResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the recovery points recommended for move to another tier\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): Promise<RecoveryPointsRecommendedForMoveListResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n nextLink: string,\n options?: RecoveryPointsRecommendedForMoveListNextOptionalParams,\n ): Promise<RecoveryPointsRecommendedForMoveListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"recoveryPointsRecommendedForMove.js","sourceRoot":"","sources":["../../../src/operations/recoveryPointsRecommendedForMove.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,oEAAoE;AACpE,MAAa,oCAAoC;IAG9B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,UAAuD,EACvD,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;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;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RecoveryPointsRecommendedForMove } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n RecoveryPointResource,\n ListRecoveryPointsRecommendedForMoveRequest,\n RecoveryPointsRecommendedForMoveListNextOptionalParams,\n RecoveryPointsRecommendedForMoveListOptionalParams,\n RecoveryPointsRecommendedForMoveListResponse,\n RecoveryPointsRecommendedForMoveListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPointsRecommendedForMove operations. */\nexport class RecoveryPointsRecommendedForMoveImpl\n implements RecoveryPointsRecommendedForMove\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class RecoveryPointsRecommendedForMove class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the recovery points recommended for move to another tier\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPointResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPointResource[]> {\n let result: RecoveryPointsRecommendedForMoveListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): AsyncIterableIterator<RecoveryPointResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the recovery points recommended for move to another tier\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n options?: RecoveryPointsRecommendedForMoveListOptionalParams,\n ): Promise<RecoveryPointsRecommendedForMoveListResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param containerName\n * @param protectedItemName\n * @param parameters List Recovery points Recommended for Move Request\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ListRecoveryPointsRecommendedForMoveRequest,\n nextLink: string,\n options?: RecoveryPointsRecommendedForMoveListNextOptionalParams,\n ): Promise<RecoveryPointsRecommendedForMoveListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing ResourceGuardProxies operations. */
|
|
18
18
|
class ResourceGuardProxiesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class ResourceGuardProxies class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class ResourceGuardProxiesImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.getPagingPage(vaultName, resourceGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
getPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *getPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._get(vaultName, resourceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._getNext(vaultName, resourceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
getPagingAll(vaultName, resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.getPagingPage(vaultName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *getPagingAll(vaultName, resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.getPagingPage(vaultName, resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* List the ResourceGuardProxies under vault
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceGuardProxies.js","sourceRoot":"","sources":["../../../src/operations/resourceGuardProxies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"resourceGuardProxies.js","sourceRoot":"","sources":["../../../src/operations/resourceGuardProxies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACtE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,aAAa,CACvB,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,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D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ResourceGuardProxies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ResourceGuardProxyBaseResource,\n ResourceGuardProxiesGetNextOptionalParams,\n ResourceGuardProxiesGetOptionalParams,\n ResourceGuardProxiesGetResponse,\n ResourceGuardProxiesGetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceGuardProxies operations. */\nexport class ResourceGuardProxiesImpl implements ResourceGuardProxies {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ResourceGuardProxies class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * List the ResourceGuardProxies under vault\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n options?: ResourceGuardProxiesGetOptionalParams,\n ): PagedAsyncIterableIterator<ResourceGuardProxyBaseResource> {\n const iter = this.getPagingAll(vaultName, resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPagingPage(\n vaultName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getPagingPage(\n vaultName: string,\n resourceGroupName: string,\n options?: ResourceGuardProxiesGetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceGuardProxyBaseResource[]> {\n let result: ResourceGuardProxiesGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(vaultName, resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getNext(\n vaultName,\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: ResourceGuardProxiesGetOptionalParams,\n ): AsyncIterableIterator<ResourceGuardProxyBaseResource> {\n for await (const page of this.getPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List the ResourceGuardProxies under vault\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param options The options parameters.\n */\n private _get(\n vaultName: string,\n resourceGroupName: string,\n options?: ResourceGuardProxiesGetOptionalParams,\n ): Promise<ResourceGuardProxiesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\n getOperationSpec,\n );\n }\n\n /**\n * GetNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n vaultName: string,\n resourceGroupName: string,\n nextLink: string,\n options?: ResourceGuardProxiesGetNextOptionalParams,\n ): Promise<ResourceGuardProxiesGetNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, nextLink, options },\n getNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGuardProxyBaseResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGuardProxyBaseResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ResourceGuardProxy operations. */
|
|
16
16
|
class ResourceGuardProxyImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ResourceGuardProxy class.
|
|
19
20
|
* @param client Reference to the service client
|