@azure/arm-recoveryservicesbackup 13.2.0-alpha.20250618.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 BackupStatus operations. */
|
|
16
16
|
class BackupStatusImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class BackupStatus class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupStatus.js","sourceRoot":"","sources":["../../../src/operations/backupStatus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,gDAAgD;AAChD,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"backupStatus.js","sourceRoot":"","sources":["../../../src/operations/backupStatus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,UAA+B,EAC/B,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACpC,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,4CA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2GAA2G;IACjH,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;KACvB;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 { BackupStatus } 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 BackupStatusRequest,\n BackupStatusGetOptionalParams,\n BackupStatusGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing BackupStatus operations. */\nexport class BackupStatusImpl implements BackupStatus {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupStatus class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Get the container backup status\n * @param azureRegion Azure region to hit Api\n * @param parameters Container Backup Status Request\n * @param options The options parameters.\n */\n get(\n azureRegion: string,\n parameters: BackupStatusRequest,\n options?: BackupStatusGetOptionalParams,\n ): Promise<BackupStatusGetResponse> {\n return this.client.sendOperationRequest(\n { azureRegion, parameters, 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}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupStatusResponse,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.azureRegion,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing BackupUsageSummaries operations. */
|
|
17
17
|
class BackupUsageSummariesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class BackupUsageSummaries class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -39,39 +40,22 @@ class BackupUsageSummariesImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(vaultName, resourceGroupName, options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(vaultName, resourceGroupName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield tslib_1.__await(result.value || []);
|
|
54
|
-
});
|
|
50
|
+
async *listPagingPage(vaultName, resourceGroupName, options, _settings) {
|
|
51
|
+
let result;
|
|
52
|
+
result = await this._list(vaultName, resourceGroupName, options);
|
|
53
|
+
yield result.value || [];
|
|
55
54
|
}
|
|
56
|
-
listPagingAll(vaultName, resourceGroupName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
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) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
async *listPagingAll(vaultName, resourceGroupName, options) {
|
|
56
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, options)) {
|
|
57
|
+
yield* page;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* Fetches the backup management usage summaries of the vault.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupUsageSummaries.js","sourceRoot":"","sources":["../../../src/operations/backupUsageSummaries.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"backupUsageSummaries.js","sourceRoot":"","sources":["../../../src/operations/backupUsageSummaries.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,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,OAAgD;QAEhD,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,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,SAAiB,EACjB,iBAAyB,EACzB,OAAgD,EAChD,SAAwB;QAExB,IAAI,MAAwC,CAAC;QAC7C,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACjE,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,SAAiB,EACjB,iBAAyB,EACzB,OAAgD;QAEhD,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAC1C,SAAS,EACT,iBAAiB,EACjB,OAAO,CACR,EAAE,CAAC;YACF,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CACX,SAAiB,EACjB,iBAAyB,EACzB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,EACzC,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AAvFD,4DAuFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iJAAiJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;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;KAC1B;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 { BackupUsageSummaries } 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 BackupManagementUsage,\n BackupUsageSummariesListOptionalParams,\n BackupUsageSummariesListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupUsageSummaries operations. */\nexport class BackupUsageSummariesImpl implements BackupUsageSummaries {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupUsageSummaries class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the backup management usage summaries of the 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?: BackupUsageSummariesListOptionalParams,\n ): PagedAsyncIterableIterator<BackupManagementUsage> {\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?: BackupUsageSummariesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<BackupManagementUsage[]> {\n let result: BackupUsageSummariesListResponse;\n result = await this._list(vaultName, resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupUsageSummariesListOptionalParams,\n ): AsyncIterableIterator<BackupManagementUsage> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Fetches the backup management usage summaries of the 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 _list(\n vaultName: string,\n resourceGroupName: string,\n options?: BackupUsageSummariesListOptionalParams,\n ): Promise<BackupUsageSummariesListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, options },\n listOperationSpec,\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}/backupUsageSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BackupManagementUsageList,\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};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BackupWorkloadItems operations. */
|
|
18
18
|
class BackupWorkloadItemsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BackupWorkloadItems class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -44,52 +45,35 @@ class BackupWorkloadItemsImpl {
|
|
|
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, options, settings);
|
|
51
52
|
},
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
listPagingPage(vaultName, resourceGroupName, fabricName, containerName, 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, options, settings) {
|
|
56
|
+
let result;
|
|
57
|
+
let continuationToken = settings?.continuationToken;
|
|
58
|
+
if (!continuationToken) {
|
|
59
|
+
result = await this._list(vaultName, resourceGroupName, fabricName, containerName, 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, 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, options) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, 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, options) {
|
|
74
|
+
for await (const page of this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, options)) {
|
|
75
|
+
yield* page;
|
|
76
|
+
}
|
|
93
77
|
}
|
|
94
78
|
/**
|
|
95
79
|
* Provides a pageable list of workload item of a specific container according to the query filter and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backupWorkloadItems.js","sourceRoot":"","sources":["../../../src/operations/backupWorkloadItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;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,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,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,iDAAi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C,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,UAAU;QACrB,UAAU,CAAC,aAAa;KACzB;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,wBAAwB;SAC7C;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;KACzB;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 { BackupWorkloadItems } 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 WorkloadItemResource,\n BackupWorkloadItemsListNextOptionalParams,\n BackupWorkloadItemsListOptionalParams,\n BackupWorkloadItemsListResponse,\n BackupWorkloadItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupWorkloadItems operations. */\nexport class BackupWorkloadItemsImpl implements BackupWorkloadItems {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupWorkloadItems 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 workload item of a specific container according to the query filter and\n * the pagination\n * parameters.\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 container.\n * @param containerName Name of the container.\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: BackupWorkloadItemsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkloadItemResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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 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 options?: BackupWorkloadItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WorkloadItemResource[]> {\n let result: BackupWorkloadItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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 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 options?: BackupWorkloadItemsListOptionalParams,\n ): AsyncIterableIterator<WorkloadItemResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Provides a pageable list of workload item of a specific container according to the query filter and\n * the pagination\n * parameters.\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 container.\n * @param containerName Name of the container.\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: BackupWorkloadItemsListOptionalParams,\n ): Promise<BackupWorkloadItemsListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, 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 fabricName Fabric name associated with the container.\n * @param containerName Name of the container.\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 nextLink: string,\n options?: BackupWorkloadItemsListNextOptionalParams,\n ): Promise<BackupWorkloadItemsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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}/items\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkloadItemResourceList,\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.fabricName,\n Parameters.containerName,\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.WorkloadItemResourceList,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"backupWorkloadItems.js","sourceRoot":"","sources":["../../../src/operations/backupWorkloadItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IACjB,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,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,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AO,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,UAAU;QACrB,UAAU,CAAC,aAAa;KACzB;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,wBAAwB;SAC7C;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;KACzB;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 { BackupWorkloadItems } 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 WorkloadItemResource,\n BackupWorkloadItemsListNextOptionalParams,\n BackupWorkloadItemsListOptionalParams,\n BackupWorkloadItemsListResponse,\n BackupWorkloadItemsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BackupWorkloadItems operations. */\nexport class BackupWorkloadItemsImpl implements BackupWorkloadItems {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class BackupWorkloadItems 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 workload item of a specific container according to the query filter and\n * the pagination\n * parameters.\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 container.\n * @param containerName Name of the container.\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: BackupWorkloadItemsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkloadItemResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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 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 options?: BackupWorkloadItemsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WorkloadItemResource[]> {\n let result: BackupWorkloadItemsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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 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 options?: BackupWorkloadItemsListOptionalParams,\n ): AsyncIterableIterator<WorkloadItemResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Provides a pageable list of workload item of a specific container according to the query filter and\n * the pagination\n * parameters.\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 container.\n * @param containerName Name of the container.\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: BackupWorkloadItemsListOptionalParams,\n ): Promise<BackupWorkloadItemsListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, 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 fabricName Fabric name associated with the container.\n * @param containerName Name of the container.\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 nextLink: string,\n options?: BackupWorkloadItemsListNextOptionalParams,\n ): Promise<BackupWorkloadItemsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\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}/items\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkloadItemResourceList,\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.fabricName,\n Parameters.containerName,\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.WorkloadItemResourceList,\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 ],\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 Backups operations. */
|
|
16
16
|
class BackupsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class Backups class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,2CAA2C;AAC3C,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"backups.js","sourceRoot":"","sources":["../../../src/operations/backups.ts"],"names":[],"mappings":";AAA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["/*\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 { Backups } 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 { BackupRequestResource, BackupsTriggerOptionalParams } from \"../models/index.js\";\n\n/** Class containing Backups operations. */\nexport class BackupsImpl implements Backups {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class Backups class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Triggers backup for specified backed up item. This is an asynchronous operation. To know the status\n * of the\n * operation, call 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 the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Backup item for which backup needs to be triggered.\n * @param parameters resource backup request\n * @param options The options parameters.\n */\n trigger(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: BackupRequestResource,\n options?: BackupsTriggerOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n },\n triggerOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst triggerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters16,\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};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing DeletedProtectionContainers operations. */
|
|
18
18
|
class DeletedProtectionContainersImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class DeletedProtectionContainers class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class DeletedProtectionContainersImpl {
|
|
|
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(resourceGroupName, vaultName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(resourceGroupName, vaultName, 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(resourceGroupName, vaultName, 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(resourceGroupName, vaultName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, 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(resourceGroupName, vaultName, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(resourceGroupName, vaultName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Lists the soft deleted containers registered to Recovery Services Vault.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletedProtectionContainers.js","sourceRoot":"","sources":["../../../src/operations/deletedProtectionContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;
|
|
1
|
+
{"version":3,"file":"deletedProtectionContainers.js","sourceRoot":"","sources":["../../../src/operations/deletedProtectionContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAGzB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,SAAS,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,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,SAAiB,EACjB,OAAuD,EACvD,QAAuB;QAEvB,IAAI,MAA+C,CAAC;QACpD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cesContent":["/*\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 { DeletedProtectionContainers } 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 ProtectionContainerResource,\n DeletedProtectionContainersListNextOptionalParams,\n DeletedProtectionContainersListOptionalParams,\n DeletedProtectionContainersListResponse,\n DeletedProtectionContainersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeletedProtectionContainers operations. */\nexport class DeletedProtectionContainersImpl\n implements DeletedProtectionContainers\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class DeletedProtectionContainers class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the soft deleted containers registered to Recovery Services Vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param vaultName The name of the recovery services vault.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n vaultName: string,\n options?: DeletedProtectionContainersListOptionalParams,\n ): PagedAsyncIterableIterator<ProtectionContainerResource> {\n const iter = this.listPagingAll(resourceGroupName, vaultName, 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 resourceGroupName,\n vaultName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n vaultName: string,\n options?: DeletedProtectionContainersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectionContainerResource[]> {\n let result: DeletedProtectionContainersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, vaultName, 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 resourceGroupName,\n vaultName,\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 resourceGroupName: string,\n vaultName: string,\n options?: DeletedProtectionContainersListOptionalParams,\n ): AsyncIterableIterator<ProtectionContainerResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n vaultName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the soft deleted containers registered to Recovery Services Vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param vaultName The name of the recovery services vault.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n vaultName: string,\n options?: DeletedProtectionContainersListOptionalParams,\n ): Promise<DeletedProtectionContainersListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, vaultName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param vaultName The name of the recovery services vault.\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 resourceGroupName: string,\n vaultName: string,\n nextLink: string,\n options?: DeletedProtectionContainersListNextOptionalParams,\n ): Promise<DeletedProtectionContainersListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, vaultName, 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}/backupDeletedProtectionContainers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResourceList,\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.ProtectionContainerResourceList,\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 ExportJobsOperationResults operations. */
|
|
16
16
|
class ExportJobsOperationResultsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ExportJobsOperationResults class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportJobsOperationResults.js","sourceRoot":"","sources":["../../../src/operations/exportJobsOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,8DAA8D;AAC9D,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"exportJobsOperationResults.js","sourceRoot":"","sources":["../../../src/operations/exportJobsOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,8DAA8D;AAC9D,MAAa,8BAA8B;IAGxB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAnCD,wEAmCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,sKAAsK;IAC5K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;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 { ExportJobsOperationResults } 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 ExportJobsOperationResultsGetOptionalParams,\n ExportJobsOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ExportJobsOperationResults operations. */\nexport class ExportJobsOperationResultsImpl\n implements ExportJobsOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ExportJobsOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Gets the operation result of operation triggered by Export Jobs API. If the operation is successful,\n * then it also\n * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON\n * serialized format.\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 export job.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n operationId: string,\n options?: ExportJobsOperationResultsGetOptionalParams,\n ): Promise<ExportJobsOperationResultsGetResponse> {\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}/backupJobs/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationResultInfoBaseResource,\n },\n 202: {\n bodyMapper: Mappers.OperationResultInfoBaseResource,\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"]}
|
|
@@ -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 FeatureSupport operations. */
|
|
16
16
|
class FeatureSupportImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class FeatureSupport class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureSupport.js","sourceRoot":"","sources":["../../../src/operations/featureSupport.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,kDAAkD;AAClD,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"featureSupport.js","sourceRoot":"","sources":["../../../src/operations/featureSupport.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CACN,WAAmB,EACnB,UAAsC,EACtC,OAA8C;QAE9C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACpC,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AA3BD,gDA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,qHAAqH;IAC3H,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;KACvB;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 { FeatureSupport } 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 FeatureSupportRequestUnion,\n FeatureSupportValidateOptionalParams,\n FeatureSupportValidateResponse,\n} from \"../models/index.js\";\n\n/** Class containing FeatureSupport operations. */\nexport class FeatureSupportImpl implements FeatureSupport {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class FeatureSupport class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * It will validate if given feature with resource properties is supported in service\n * @param azureRegion Azure region to hit Api\n * @param parameters Feature support request object\n * @param options The options parameters.\n */\n validate(\n azureRegion: string,\n parameters: FeatureSupportRequestUnion,\n options?: FeatureSupportValidateOptionalParams,\n ): Promise<FeatureSupportValidateResponse> {\n return this.client.sendOperationRequest(\n { azureRegion, parameters, options },\n validateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst validateOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureVMResourceFeatureSupportResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.azureRegion,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
|
|
|
16
16
|
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/** Class containing FetchTieringCost operations. */
|
|
18
18
|
class FetchTieringCostImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class FetchTieringCost class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -38,14 +39,19 @@ class FetchTieringCostImpl {
|
|
|
38
39
|
return this.client.sendOperationRequest(args, spec);
|
|
39
40
|
};
|
|
40
41
|
const sendOperationFn = async (args, spec) => {
|
|
41
|
-
var _a;
|
|
42
42
|
let currentRawResponse = undefined;
|
|
43
|
-
const providedCallback =
|
|
43
|
+
const providedCallback = args.options?.onResponse;
|
|
44
44
|
const callback = (rawResponse, flatResponse) => {
|
|
45
45
|
currentRawResponse = rawResponse;
|
|
46
|
-
providedCallback
|
|
46
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
47
|
+
};
|
|
48
|
+
const updatedArgs = {
|
|
49
|
+
...args,
|
|
50
|
+
options: {
|
|
51
|
+
...args.options,
|
|
52
|
+
onResponse: callback,
|
|
53
|
+
},
|
|
47
54
|
};
|
|
48
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
49
55
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
50
56
|
return {
|
|
51
57
|
flatResponse,
|
|
@@ -62,8 +68,8 @@ class FetchTieringCostImpl {
|
|
|
62
68
|
spec: postOperationSpec,
|
|
63
69
|
});
|
|
64
70
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
65
|
-
restoreFrom: options
|
|
66
|
-
intervalInMs: options
|
|
71
|
+
restoreFrom: options?.resumeFrom,
|
|
72
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
67
73
|
});
|
|
68
74
|
await poller.poll();
|
|
69
75
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchTieringCost.js","sourceRoot":"","sources":["../../../src/operations/fetchTieringCost.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAO9C,oDAAoD;AACpD,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"fetchTieringCost.js","sourceRoot":"","sources":["../../../src/operations/fetchTieringCost.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAO9C,oDAAoD;AACpD,MAAa,oBAAoB;IACd,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,SAAS,CACb,iBAAyB,EACzB,SAAiB,EACjB,UAA4C,EAC5C,OAA4C;QAO5C,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACS,EAAE;YACzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,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AA4C,EAC5C,OAA4C;QAE5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CACjC,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC;IAChC,CAAC;CACF;AA9GD,oDA8GC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,uKAAuK;IAC7K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;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 { FetchTieringCost } 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 FetchTieringCostInfoRequestUnion,\n FetchTieringCostPostOptionalParams,\n FetchTieringCostPostResponse,\n} from \"../models/index.js\";\n\n/** Class containing FetchTieringCost operations. */\nexport class FetchTieringCostImpl implements FetchTieringCost {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class FetchTieringCost 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 tiering related sizes and cost.\n * Status of the operation can be fetched using GetTieringCostOperationStatus API and result using\n * GetTieringCostOperationResult API.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param vaultName The name of the recovery services vault.\n * @param parameters Fetch Tiering Cost Request\n * @param options The options parameters.\n */\n async beginPost(\n resourceGroupName: string,\n vaultName: string,\n parameters: FetchTieringCostInfoRequestUnion,\n options?: FetchTieringCostPostOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FetchTieringCostPostResponse>,\n FetchTieringCostPostResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FetchTieringCostPostResponse> => {\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: { resourceGroupName, vaultName, parameters, options },\n spec: postOperationSpec,\n });\n const poller = await createHttpPoller<\n FetchTieringCostPostResponse,\n OperationState<FetchTieringCostPostResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Provides the details of the tiering related sizes and cost.\n * Status of the operation can be fetched using GetTieringCostOperationStatus API and result using\n * GetTieringCostOperationResult API.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param vaultName The name of the recovery services vault.\n * @param parameters Fetch Tiering Cost Request\n * @param options The options parameters.\n */\n async beginPostAndWait(\n resourceGroupName: string,\n vaultName: string,\n parameters: FetchTieringCostInfoRequestUnion,\n options?: FetchTieringCostPostOptionalParams,\n ): Promise<FetchTieringCostPostResponse> {\n const poller = await this.beginPost(\n resourceGroupName,\n vaultName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst postOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTieringCost/default/fetchTieringCost\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TieringCostInfo,\n },\n 201: {\n bodyMapper: Mappers.TieringCostInfo,\n },\n 202: {\n bodyMapper: Mappers.TieringCostInfo,\n },\n 204: {\n bodyMapper: Mappers.TieringCostInfo,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters22,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.vaultName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\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 GetTieringCostOperationResult operations. */
|
|
16
16
|
class GetTieringCostOperationResultImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class GetTieringCostOperationResult class.
|
|
19
20
|
* @param client Reference to the service client
|