@azure/arm-recoveryservicesbackup 13.2.0-alpha.20250619.1 → 13.2.0-alpha.20250718.2
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
|
@@ -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 BMSPrepareDataMoveOperationResult operations. */
|
|
16
16
|
class BMSPrepareDataMoveOperationResultImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class BMSPrepareDataMoveOperationResult class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bMSPrepareDataMoveOperationResult.js","sourceRoot":"","sources":["../../../src/operations/bMSPrepareDataMoveOperationResult.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,qEAAqE;AACrE,MAAa,qCAAqC;
|
|
1
|
+
{"version":3,"file":"bMSPrepareDataMoveOperationResult.js","sourceRoot":"","sources":["../../../src/operations/bMSPrepareDataMoveOperationResult.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;;;;;;;OAOG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,WAAmB,EACnB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAhCD,sFAgCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,kMAAkM;IACxM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yCAAyC;SAC9D;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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;KACvB;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 { BMSPrepareDataMoveOperationResult } 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 BMSPrepareDataMoveOperationResultGetOptionalParams,\n BMSPrepareDataMoveOperationResultGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing BMSPrepareDataMoveOperationResult operations. */\nexport class BMSPrepareDataMoveOperationResultImpl\n implements BMSPrepareDataMoveOperationResult\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BMSPrepareDataMoveOperationResult class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches Operation Result for Prepare Data Move\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 operationId\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n operationId: string,\n options?: BMSPrepareDataMoveOperationResultGetOptionalParams,\n ): Promise<BMSPrepareDataMoveOperationResultGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, 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}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VaultStorageConfigOperationResultResponse,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.NewErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.operationId,\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 BackupEngines operations. */
|
|
18
18
|
class BackupEnginesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BackupEngines class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class BackupEnginesImpl {
|
|
|
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.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(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._listNext(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
|
-
listPagingAll(vaultName, resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(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 *listPagingAll(vaultName, resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupEngines.js","sourceRoot":"","sources":["../../../src/operations/backupEngines.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC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,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,QAAQ;KACpB;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 { BackupEngines } 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 BackupEngineBaseResource,\n BackupEnginesListNextOptionalParams,\n BackupEnginesListOptionalParams,\n BackupEnginesListResponse,\n BackupEnginesGetOptionalParams,\n BackupEnginesGetResponse,\n BackupEnginesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupEngines operations. */\nexport class BackupEnginesImpl implements BackupEngines {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupEngines class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers.\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?: BackupEnginesListOptionalParams,\n ): PagedAsyncIterableIterator<BackupEngineBaseResource> {\n const iter = this.listPagingAll(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.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BackupEngineBaseResource[]> {\n let result: BackupEnginesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n ): AsyncIterableIterator<BackupEngineBaseResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers.\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 _list(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n ): Promise<BackupEnginesListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns backup management server registered to Recovery Services 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 backupEngineName Name of the backup management server.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n backupEngineName: string,\n options?: BackupEnginesGetOptionalParams,\n ): Promise<BackupEnginesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, backupEngineName, options },\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 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 nextLink: string,\n options?: BackupEnginesListNextOptionalParams,\n ): Promise<BackupEnginesListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, nextLink, options },\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}/backupEngines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupEngineBaseResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.skipToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupEngineBaseResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.skipToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.backupEngineName,\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.BackupEngineBaseResourceList,\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"]}
|
|
1
|
+
{"version":3,"file":"backupEngines.js","sourceRoot":"","sources":["../../../src/operations/backupEngines.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,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,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACvE,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,cAAc,CACxB,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,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AU,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;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,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,4BAA4B;SACjD;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,QAAQ;KACpB;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 { BackupEngines } 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 BackupEngineBaseResource,\n BackupEnginesListNextOptionalParams,\n BackupEnginesListOptionalParams,\n BackupEnginesListResponse,\n BackupEnginesGetOptionalParams,\n BackupEnginesGetResponse,\n BackupEnginesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupEngines operations. */\nexport class BackupEnginesImpl implements BackupEngines {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupEngines class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers.\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?: BackupEnginesListOptionalParams,\n ): PagedAsyncIterableIterator<BackupEngineBaseResource> {\n const iter = this.listPagingAll(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.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BackupEngineBaseResource[]> {\n let result: BackupEnginesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n ): AsyncIterableIterator<BackupEngineBaseResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers.\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 _list(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupEnginesListOptionalParams,\n ): Promise<BackupEnginesListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns backup management server registered to Recovery Services 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 backupEngineName Name of the backup management server.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n backupEngineName: string,\n options?: BackupEnginesGetOptionalParams,\n ): Promise<BackupEnginesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, backupEngineName, options },\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 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 nextLink: string,\n options?: BackupEnginesListNextOptionalParams,\n ): Promise<BackupEnginesListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, nextLink, options },\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}/backupEngines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupEngineBaseResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.skipToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupEngineBaseResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.skipToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.backupEngineName,\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.BackupEngineBaseResourceList,\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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BackupJobs operations. */
|
|
18
18
|
class BackupJobsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BackupJobs class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class BackupJobsImpl {
|
|
|
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.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(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._listNext(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
|
-
listPagingAll(vaultName, resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(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 *listPagingAll(vaultName, resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Provides a pageable list of jobs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupJobs.js","sourceRoot":"","sources":["../../../src/operations/backupJobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"backupJobs.js","sourceRoot":"","sources":["../../../src/operations/backupJobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,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,E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AAM;QACjB,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,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,eAAe;SACpC;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,QAAQ;KACpB;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 { BackupJobs } 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 JobResource,\n BackupJobsListNextOptionalParams,\n BackupJobsListOptionalParams,\n BackupJobsListResponse,\n BackupJobsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupJobs operations. */\nexport class BackupJobsImpl implements BackupJobs {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupJobs class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides a pageable list of jobs.\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?: BackupJobsListOptionalParams,\n ): PagedAsyncIterableIterator<JobResource> {\n const iter = this.listPagingAll(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.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupJobsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<JobResource[]> {\n let result: BackupJobsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupJobsListOptionalParams,\n ): AsyncIterableIterator<JobResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Provides a pageable list of jobs.\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 _list(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupJobsListOptionalParams,\n ): Promise<BackupJobsListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\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 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 nextLink: string,\n options?: BackupJobsListNextOptionalParams,\n ): Promise<BackupJobsListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, nextLink, options },\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}/backupJobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.skipToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\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.JobResourceList,\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 BackupOperationResults operations. */
|
|
16
16
|
class BackupOperationResultsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class BackupOperationResults class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupOperationResults.js","sourceRoot":"","sources":["../../../src/operations/backupOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,0DAA0D;AAC1D,MAAa,0BAA0B;
|
|
1
|
+
{"version":3,"file":"backupOperationResults.js","sourceRoot":"","sources":["../../../src/operations/backupOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,WAAmB,EACnB,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AApCD,gEAoCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iKAAiK;IACvK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,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,WAAW;KACvB;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 { BackupOperationResults } 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 { BackupOperationResultsGetOptionalParams } from \"../models/index.js\";\n\n/** Class containing BackupOperationResults operations. */\nexport class BackupOperationResultsImpl implements BackupOperationResults {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupOperationResults 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 delete operations such as deleting backed up item. Once the operation has\n * started, the\n * status code in the response would be Accepted. It will continue to be in this state till it reaches\n * completion. On\n * successful completion, the status code will be OK. This method expects OperationID as an argument.\n * OperationID is\n * part of the Location header of the operation response.\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 operationId OperationID which represents the operation.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n operationId: string,\n options?: BackupOperationResultsGetOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, 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}/backupOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {},\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.operationId,\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 BackupOperationStatuses operations. */
|
|
16
16
|
class BackupOperationStatusesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class BackupOperationStatuses class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/backupOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,2DAA2D;AAC3D,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"backupOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/backupOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,WAAmB,EACnB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlCD,kEAkCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2JAA2J;IACjK,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;KACvB;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 { BackupOperationStatuses } 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 BackupOperationStatusesGetOptionalParams,\n BackupOperationStatusesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing BackupOperationStatuses operations. */\nexport class BackupOperationStatusesImpl implements BackupOperationStatuses {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupOperationStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the status of an operation such as triggering a backup, restore. The status can be in\n * progress, completed\n * or failed. You can refer to the OperationStatus enum for all the possible states of an operation.\n * Some operations\n * create jobs. This method returns the list of jobs when the operation is complete.\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 operationId OperationID which represents the operation.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n operationId: string,\n options?: BackupOperationStatusesGetOptionalParams,\n ): Promise<BackupOperationStatusesGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, 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}/backupOperations/{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 ],\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 BackupPolicies operations. */
|
|
18
18
|
class BackupPoliciesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BackupPolicies class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class BackupPoliciesImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._list(vaultName, resourceGroupName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(vaultName, resourceGroupName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listPagingAll(vaultName, resourceGroupName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listPagingAll(vaultName, resourceGroupName, options) {
|
|
72
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../../src/operations/backupPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../../src/operations/backupPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,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;;;;;;;;OAQG;IACI,I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,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,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,4BAA4B;SACjD;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,QAAQ;KACpB;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 { BackupPolicies } 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 ProtectionPolicyResource,\n BackupPoliciesListNextOptionalParams,\n BackupPoliciesListOptionalParams,\n BackupPoliciesListResponse,\n BackupPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupPolicies operations. */\nexport class BackupPoliciesImpl implements BackupPolicies {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters\n * to fetch\n * scoped results.\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?: BackupPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<ProtectionPolicyResource> {\n const iter = this.listPagingAll(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.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectionPolicyResource[]> {\n let result: BackupPoliciesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupPoliciesListOptionalParams,\n ): AsyncIterableIterator<ProtectionPolicyResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters\n * to fetch\n * scoped results.\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 _list(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupPoliciesListOptionalParams,\n ): Promise<BackupPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\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 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 nextLink: string,\n options?: BackupPoliciesListNextOptionalParams,\n ): Promise<BackupPoliciesListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, nextLink, options },\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}/backupPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResourceList,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionPolicyResourceList,\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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BackupProtectableItems operations. */
|
|
18
18
|
class BackupProtectableItemsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BackupProtectableItems class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class BackupProtectableItemsImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listPagingPage(vaultName, resourceGroupName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._list(vaultName, resourceGroupName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(vaultName, resourceGroupName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listPagingAll(vaultName, resourceGroupName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listPagingAll(vaultName, resourceGroupName, options) {
|
|
72
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Provides a pageable list of protectable objects within your subscription according to the query
|