From 0ae82b5773e7848ac45a96f5b834b6dbb22718c6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 15 Mar 2021 07:37:46 +0000 Subject: [PATCH] CodeGen from PR 13079 in Azure/azure-rest-api-specs MFA MUA V1 swagger changes (#13079) * MFA MUA V1 swagger changes * Copying json from 2021-02-01 to 2021-02-01-preview * Moving these details under Preview folder * Fixing Avocado errors * updated version in example json files Co-authored-by: Madhumanti Dey --- .../arm-recoveryservicesbackup/LICENSE.txt | 2 +- .../arm-recoveryservicesbackup/README.md | 21 +- .../rollup.config.js | 4 +- .../src/models/aadPropertiesMappers.ts | 225 + ...MSPrepareDataMoveOperationResultMappers.ts | 16 + .../src/models/backupCrrJobDetailsMappers.ts | 225 + .../src/models/backupCrrJobsMappers.ts | 236 + .../src/models/backupEnginesMappers.ts | 28 +- .../src/models/backupJobsMappers.ts | 28 +- .../models/backupOperationResultsMappers.ts | 4 +- .../models/backupOperationStatusesMappers.ts | 27 +- .../src/models/backupPoliciesMappers.ts | 28 +- .../models/backupProtectableItemsMappers.ts | 28 +- .../models/backupProtectedItemsCrrMappers.ts | 236 + .../src/models/backupProtectedItemsMappers.ts | 28 +- .../backupProtectionContainersMappers.ts | 28 +- .../models/backupProtectionIntentMappers.ts | 28 +- .../backupResourceEncryptionConfigsMappers.ts | 225 + .../backupResourceStorageConfigsMappers.ts | 32 +- .../backupResourceVaultConfigsMappers.ts | 32 +- .../src/models/backupStatusMappers.ts | 4 +- .../src/models/backupUsageSummariesMappers.ts | 4 +- .../src/models/backupWorkloadItemsMappers.ts | 28 +- .../src/models/backupsMappers.ts | 28 +- .../src/models/crossRegionRestoreMappers.ts | 37 + .../src/models/crrOperationResultsMappers.ts | 14 + .../src/models/crrOperationStatusMappers.ts | 43 + .../exportJobsOperationResultsMappers.ts | 4 +- .../src/models/featureSupportMappers.ts | 4 +- .../src/models/index.ts | 4742 ++++++++++------ .../itemLevelRecoveryConnectionsMappers.ts | 28 +- .../src/models/jobCancellationsMappers.ts | 4 +- .../src/models/jobDetailsMappers.ts | 28 +- .../src/models/jobOperationResultsMappers.ts | 4 +- .../src/models/jobsMappers.ts | 4 +- .../src/models/mappers.ts | 4755 ++++++++++------- .../src/models/operationMappers.ts | 10 +- .../src/models/operationsMappers.ts | 4 +- .../src/models/parameters.ts | 45 +- ...vateEndpointConnectionOperationsMappers.ts | 31 +- .../privateEndpointOperationsMappers.ts | 43 + .../models/protectableContainersMappers.ts | 28 +- .../protectedItemOperationResultsMappers.ts | 28 +- .../protectedItemOperationStatusesMappers.ts | 27 +- .../src/models/protectedItemsMappers.ts | 28 +- ...tectionContainerOperationResultsMappers.ts | 28 +- ...ContainerRefreshOperationResultsMappers.ts | 4 +- .../src/models/protectionContainersMappers.ts | 28 +- .../protectionIntentOperationsMappers.ts | 28 +- .../src/models/protectionPoliciesMappers.ts | 28 +- ...protectionPolicyOperationResultsMappers.ts | 28 +- ...rotectionPolicyOperationStatusesMappers.ts | 27 +- .../src/models/recoveryPointsCrrMappers.ts | 236 + .../src/models/recoveryPointsMappers.ts | 31 +- ...recoveryPointsRecommendedForMoveMappers.ts | 235 + .../src/models/restoresMappers.ts | 28 +- .../src/models/securityPINsMappers.ts | 4 +- .../src/operations/aadProperties.ts | 81 + .../bMSPrepareDataMoveOperationResult.ts | 95 + .../src/operations/backupCrrJobDetails.ts | 92 + .../src/operations/backupCrrJobs.ts | 148 + .../src/operations/backupEngines.ts | 24 +- .../src/operations/backupJobs.ts | 20 +- .../src/operations/backupOperationResults.ts | 9 +- .../src/operations/backupOperationStatuses.ts | 9 +- .../src/operations/backupPolicies.ts | 19 +- .../src/operations/backupProtectableItems.ts | 20 +- .../src/operations/backupProtectedItems.ts | 20 +- .../src/operations/backupProtectedItemsCrr.ts | 145 + .../operations/backupProtectionContainers.ts | 19 +- .../src/operations/backupProtectionIntent.ts | 18 +- .../backupResourceEncryptionConfigs.ts | 158 + .../backupResourceStorageConfigs.ts | 23 +- .../operations/backupResourceVaultConfigs.ts | 23 +- .../src/operations/backupStatus.ts | 7 +- .../src/operations/backupUsageSummaries.ts | 7 +- .../src/operations/backupWorkloadItems.ts | 20 +- .../src/operations/backups.ts | 9 +- .../src/operations/crossRegionRestore.ts | 92 + .../src/operations/crrOperationResults.ts | 83 + .../src/operations/crrOperationStatus.ts | 85 + .../operations/exportJobsOperationResults.ts | 9 +- .../src/operations/featureSupport.ts | 7 +- .../src/operations/index.ts | 31 +- .../itemLevelRecoveryConnections.ts | 13 +- .../src/operations/jobCancellations.ts | 9 +- .../src/operations/jobDetails.ts | 9 +- .../src/operations/jobOperationResults.ts | 9 +- .../src/operations/jobs.ts | 9 +- .../src/operations/operation.ts | 9 +- .../src/operations/operations.ts | 10 +- .../privateEndpointConnectionOperations.ts | 15 +- .../operations/privateEndpointOperations.ts | 99 + .../src/operations/protectableContainers.ts | 19 +- .../protectedItemOperationResults.ts | 9 +- .../protectedItemOperationStatuses.ts | 9 +- .../src/operations/protectedItems.ts | 18 +- .../protectionContainerOperationResults.ts | 9 +- ...tectionContainerRefreshOperationResults.ts | 9 +- .../src/operations/protectionContainers.ts | 26 +- .../operations/protectionIntentOperations.ts | 13 +- .../src/operations/protectionPolicies.ts | 52 +- .../protectionPolicyOperationResults.ts | 9 +- .../protectionPolicyOperationStatuses.ts | 9 +- .../src/operations/recoveryPoints.ts | 115 +- .../src/operations/recoveryPointsCrr.ts | 158 + .../recoveryPointsRecommendedForMove.ts | 167 + .../src/operations/restores.ts | 46 +- .../src/operations/securityPINs.ts | 9 +- .../src/recoveryServicesBackupClient.ts | 296 +- .../recoveryServicesBackupClientContext.ts | 5 +- 111 files changed, 10673 insertions(+), 3921 deletions(-) create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointOperationsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsCrrMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsRecommendedForMoveMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/aadProperties.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c9f0c165e927..760e6eb27c1d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-recoveryservicesbackup ### How to use -#### nodejs - Authentication, client creation and get privateEndpointConnection as an example written in TypeScript. +#### nodejs - client creation and get protectionIntent as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,19 +26,19 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RecoveryServicesBackupClient, RecoveryServicesBackupModels, RecoveryServicesBackupMappers } from "@azure/arm-recoveryservicesbackup"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new RecoveryServicesBackupClient(creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + const fabricName = "testfabricName"; + const intentObjectName = "testintentObjectName"; + client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript. +#### browser - Authentication, client creation and get protectionIntent as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -83,8 +83,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(res.creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { + const fabricName = "testfabricName"; + const intentObjectName = "testintentObjectName"; + client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index faa841bb5989..bb0c6fd4e76b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -0,0 +1,225 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts new file mode 100644 index 000000000000..2ac6dde24d4d --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError, + PrepareDataMoveResponse, + VaultStorageConfigOperationResultResponse +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -0,0 +1,225 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts new file mode 100644 index 000000000000..2a64622f2f0e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -0,0 +1,236 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts index e2b2befc32de..08be818858ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,13 +8,34 @@ export { discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, ClientScriptForConnect, CloudError, + DiskInformation, + GenericRecoveryPoint, + IaasVMRecoveryPoint, InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, OperationStatus, OperationStatusError, OperationStatusExtendedInfo, OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, - OperationStatusProvisionILRExtendedInfo + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory } from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts new file mode 100644 index 000000000000..2a64622f2f0e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -0,0 +1,236 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -0,0 +1,225 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index 6eeea71e42b2..f478e80e0f73 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -118,6 +131,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -155,6 +170,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -173,9 +190,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +210,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index 793cf3485a46..f478e80e0f73 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -120,20 +133,19 @@ export { EncryptionDetails, ErrorAdditionalInfo, ErrorDetail, - ErrorResponse, ExtendedProperties, GenericContainer, GenericContainerExtendedInfo, GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +170,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -175,9 +190,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +210,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts index eb8ecfd230d1..195ec26f67a5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts index 0a5ba2f9e04b..a09f6df2d285 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts new file mode 100644 index 000000000000..3b9a9f884247 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AzureFileShareRestoreRequest, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + CrossRegionRestoreRequest, + CrrAccessToken, + EncryptionDetails, + ErrorAdditionalInfo, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + NewErrorResponse, + NewErrorResponseError, + RecoveryPointRehydrationInfo, + RestoreFileSpecs, + RestoreRequest, + SQLDataDirectoryMapping, + TargetAFSRestoreInfo, + TargetRestoreInfo, + WorkloadCrrAccessToken +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts new file mode 100644 index 000000000000..6b281afdf294 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts new file mode 100644 index 000000000000..61a4fde86431 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, + ClientScriptForConnect, + DiskInformation, + ErrorAdditionalInfo, + GenericRecoveryPoint, + IaasVMRecoveryPoint, + InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, + NewErrorResponse, + NewErrorResponseError, + OperationStatus, + OperationStatusError, + OperationStatusExtendedInfo, + OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts index bfdd6ba7cea8..b1eb0d5f7cc9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts index 1459a86aad1e..ec3de8eb31f0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index c210583ac571..848f0ecf5bc1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,67 +12,74 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Error information associated with operation status call. + * An interface representing BackupResourceEncryptionConfig. */ -export interface OperationStatusError { +export interface BackupResourceEncryptionConfig { /** - * Error code of the operation failure. + * Encryption At Rest Type. Possible values include: 'Invalid', 'MicrosoftManaged', + * 'CustomerManaged' */ - code?: string; + encryptionAtRestType?: EncryptionAtRestType; /** - * Error message displayed if the operation failure. + * Key Vault Key URI */ - message?: string; -} - -/** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo; - -/** - * Base class for additional information of operation status. - */ -export interface OperationStatusExtendedInfo { + keyUri?: string; /** - * Polymorphic Discriminator + * Key Vault Subscription Id */ - objectType: "OperationStatusExtendedInfo"; + subscriptionId?: string; + /** + * Possible values include: 'Invalid', 'NotEnabled', 'PartiallySucceeded', 'PartiallyFailed', + * 'Failed', 'Succeeded' + */ + lastUpdateStatus?: LastUpdateStatus; + /** + * Possible values include: 'Invalid', 'Disabled', 'Enabled' + */ + infrastructureEncryptionState?: InfrastructureEncryptionState; } /** - * Operation status. + * ARM Resource. */ -export interface OperationStatus { +export interface Resource extends BaseResource { /** - * ID of the operation. + * Resource Id represents the complete path to the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly id?: string; /** - * Name of the operation. + * Resource name associated with the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly name?: string; /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: OperationStatusValues; + readonly type?: string; /** - * Operation start time. Format: ISO-8601. + * Resource location. */ - startTime?: Date; + location?: string; /** - * Operation end time. Format: ISO-8601. + * Resource tags. */ - endTime?: Date; + tags?: { [propertyName: string]: string }; /** - * Error information related to this operation. + * Optional ETag. */ - error?: OperationStatusError; + eTag?: string; +} + +/** + * An interface representing BackupResourceEncryptionConfigResource. + */ +export interface BackupResourceEncryptionConfigResource extends Resource { /** - * Additional information associated with this operation. + * BackupResourceEncryptionConfigResource properties */ - properties?: OperationStatusExtendedInfoUnion; + properties?: BackupResourceEncryptionConfig; } /** @@ -123,39 +130,6 @@ export interface PrivateEndpointConnection { privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } -/** - * ARM Resource. - */ -export interface Resource extends BaseResource { - /** - * Resource Id represents the complete path to the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name associated with the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Resource location. - */ - location?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * Optional ETag. - */ - eTag?: string; -} - /** * Private Endpoint Connection Response Properties */ @@ -183,9 +157,9 @@ export interface ErrorAdditionalInfo { } /** - * The resource management error response. + * The error object. */ -export interface ErrorResponse { +export interface NewErrorResponseError { /** * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -205,7 +179,7 @@ export interface ErrorResponse { * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorResponse[]; + readonly details?: NewErrorResponse[]; /** * The error additional info. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -213,10 +187,20 @@ export interface ErrorResponse { readonly additionalInfo?: ErrorAdditionalInfo[]; } +/** + * The resource management error response. + */ +export interface NewErrorResponse { + /** + * The error object. + */ + error?: NewErrorResponseError; +} + /** * Health Details for backup items. */ -export interface HealthDetails { +export interface ResourceHealthDetails { /** * Health Code * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -239,6 +223,21 @@ export interface HealthDetails { readonly recommendations?: string[]; } +/** + * KPI Resource Health Details + */ +export interface KPIResourceHealthDetails { + /** + * Resource Health Status. Possible values include: 'Healthy', 'TransientDegraded', + * 'PersistentDegraded', 'TransientUnhealthy', 'PersistentUnhealthy', 'Invalid' + */ + resourceHealthStatus?: ResourceHealthStatus; + /** + * Resource Health Status + */ + resourceHealthDetails?: ResourceHealthDetails[]; +} + /** * Additional information about Azure File Share backup item. */ @@ -418,16 +417,6 @@ export interface AzureFileshareProtectedItem { * 'Protected', 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' */ protectionState?: ProtectionState; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Last backup operation status. Possible values: Healthy, Unhealthy. */ @@ -436,10 +425,19 @@ export interface AzureFileshareProtectedItem { * Timestamp of the last backup operation on this backup item. */ lastBackupTime?: Date; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Additional information with this backup item. */ extendedInfo?: AzureFileshareProtectedItemExtendedInfo; + /** + * backups running status for this backup item. Possible values include: 'Passed', + * 'ActionRequired', 'ActionSuggested', 'Invalid' + */ + healthStatus?: HealthStatus; } /** @@ -522,7 +520,7 @@ export interface TargetAFSRestoreInfo { /** * Contains the possible cases for RestoreRequest. */ -export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequest; +export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequestUnion; /** * Base class for restore request. Workload-specific restore requests are derived from this class. @@ -626,7 +624,7 @@ export interface RetentionPolicy { export interface SubProtectionPolicy { /** * Type of backup policy type. Possible values include: 'Invalid', 'Full', 'Differential', 'Log', - * 'CopyOnlyFull' + * 'CopyOnlyFull', 'Incremental' */ policyType?: PolicyType; /** @@ -813,14 +811,17 @@ export interface AzureIaaSVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -924,14 +925,17 @@ export interface AzureIaaSClassicComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1035,14 +1039,17 @@ export interface AzureIaaSComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1091,7 +1098,7 @@ export interface AzureIaaSVMErrorInfo { /** * Azure IaaS VM workload-specific Health Details. */ -export interface AzureIaaSVMHealthDetails extends HealthDetails { +export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails { } /** @@ -1166,7 +1173,7 @@ export interface AzureIaaSVMJobExtendedInfo { /** * Contains the possible cases for Job. */ -export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob; +export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob | VaultJob; /** * Defines workload agnostic properties for a job. @@ -1736,20 +1743,14 @@ export interface AzureVmWorkloadProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1864,20 +1865,14 @@ export interface AzureVmWorkloadSAPAseDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1992,20 +1987,14 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2120,20 +2109,14 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2287,10 +2270,19 @@ export interface AzureWorkloadRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2312,10 +2304,19 @@ export interface AzureWorkloadPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2395,6 +2396,34 @@ export interface AzureWorkloadPointInTimeRestoreRequest { pointInTime?: Date; } +/** + * Recovery point tier information. + */ +export interface RecoveryPointTierInformation { + /** + * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP', + * 'ArchivedRP' + */ + type?: RecoveryPointTierType; + /** + * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', + * 'Deleted', 'Rehydrated' + */ + status?: RecoveryPointTierStatus; + /** + * Recovery point tier status. + */ + extendedInfo?: { [propertyName: string]: string }; +} + +/** + * An interface representing RecoveryPointMoveReadinessInfo. + */ +export interface RecoveryPointMoveReadinessInfo { + isReadyForMove?: boolean; + additionalInfo?: string; +} + /** * Details about target workload during restore operation. */ @@ -2432,10 +2461,19 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2445,7 +2483,7 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSAPHanaRestoreRequest. */ -export type AzureWorkloadSAPHanaRestoreRequestUnion = AzureWorkloadSAPHanaRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreRequest; +export type AzureWorkloadSAPHanaRestoreRequestUnion = AzureWorkloadSAPHanaRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion | AzureWorkloadSAPHanaRestoreWithRehydrateRequest; /** * AzureWorkload SAP Hana-specific restore. @@ -2479,6 +2517,11 @@ export interface AzureWorkloadSAPHanaRestoreRequest { recoveryMode?: RecoveryMode; } +/** + * Contains the possible cases for AzureWorkloadSAPHanaPointInTimeRestoreRequest. + */ +export type AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion = AzureWorkloadSAPHanaPointInTimeRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest; + /** * AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore */ @@ -2529,10 +2572,19 @@ export interface AzureWorkloadSAPHanaRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2555,10 +2607,19 @@ export interface AzureWorkloadSQLRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2581,10 +2642,19 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2600,7 +2670,7 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSQLRestoreRequest. */ -export type AzureWorkloadSQLRestoreRequestUnion = AzureWorkloadSQLRestoreRequest | AzureWorkloadSQLPointInTimeRestoreRequest; +export type AzureWorkloadSQLRestoreRequestUnion = AzureWorkloadSQLRestoreRequest | AzureWorkloadSQLPointInTimeRestoreRequestUnion | AzureWorkloadSQLRestoreWithRehydrateRequest; /** * AzureWorkload SQL -specific restore. Specifically for full/diff restore @@ -2646,6 +2716,11 @@ export interface AzureWorkloadSQLRestoreRequest { alternateDirectoryPaths?: SQLDataDirectoryMapping[]; } +/** + * Contains the possible cases for AzureWorkloadSQLPointInTimeRestoreRequest. + */ +export type AzureWorkloadSQLPointInTimeRestoreRequestUnion = AzureWorkloadSQLPointInTimeRestoreRequest | AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest; + /** * AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore */ @@ -2751,81 +2826,131 @@ export interface SQLDataDirectoryMapping { } /** - * Backup resource vault config details. + * BEK is bitlocker encryption key. */ -export interface BackupResourceVaultConfig { - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageModelType?: StorageType; - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageType?: StorageType; +export interface BEKDetails { /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Secret is BEK. */ - storageTypeState?: StorageTypeState; + secretUrl?: string; /** - * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + * ID of the Key Vault where this Secret is stored. */ - enhancedSecurityState?: EnhancedSecurityState; + secretVaultId?: string; /** - * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + * BEK data. */ - softDeleteFeatureState?: SoftDeleteFeatureState; + secretData?: string; } /** - * Backup resource vault config details. + * Filters to list backup copies. */ -export interface BackupResourceVaultConfigResource extends Resource { +export interface BMSRPQueryObject { /** - * BackupResourceVaultConfigResource properties + * Backup copies created after this time. */ - properties?: BackupResourceVaultConfig; + startDate?: Date; + /** + * Backup copies created before this time. + */ + endDate?: Date; + /** + * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'FullAndDifferential', 'All', 'Incremental' + */ + restorePointQueryType?: RestorePointQueryType; + /** + * In Get Recovery Point, it tells whether extended information about recovery point is asked. + */ + extendedInfo?: boolean; + /** + * Whether the RP can be moved to another tier + */ + moveReadyRPOnly?: boolean; } /** - * BEK is bitlocker encryption key. + * Localized display information of an operation. */ -export interface BEKDetails { +export interface ClientDiscoveryDisplay { /** - * Secret is BEK. + * Name of the provider for display purposes */ - secretUrl?: string; + provider?: string; /** - * ID of the Key Vault where this Secret is stored. + * ResourceType for which this Operation can be performed. */ - secretVaultId?: string; + resource?: string; /** - * BEK data. + * Operations Name itself. */ - secretData?: string; + operation?: string; + /** + * Description of the operation having details of what operation is about. + */ + description?: string; } /** - * Filters to list backup copies. + * Class to represent shoebox log specification in json client discovery. */ -export interface BMSRPQueryObject { +export interface ClientDiscoveryForLogSpecification { /** - * Backup copies created after this time. + * Name for shoebox log specification. */ - startDate?: Date; + name?: string; /** - * Backup copies created before this time. + * Localized display name */ - endDate?: Date; + displayName?: string; /** - * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', - * 'FullAndDifferential', 'All' + * blob duration of shoebox log specification */ - restorePointQueryType?: RestorePointQueryType; + blobDuration?: string; +} + +/** + * Class to represent shoebox service specification in json client discovery. + */ +export interface ClientDiscoveryForServiceSpecification { /** - * In Get Recovery Point, it tells whether extended information about recovery point is asked. + * List of log specifications of this operation. */ - extendedInfo?: boolean; + logSpecifications?: ClientDiscoveryForLogSpecification[]; +} + +/** + * Class to represent shoebox properties in json client discovery. + */ +export interface ClientDiscoveryForProperties { + /** + * Operation properties. + */ + serviceSpecification?: ClientDiscoveryForServiceSpecification; +} + +/** + * Available operation details. + */ +export interface ClientDiscoveryValueForSingleApi { + /** + * Name of the Operation. + */ + name?: string; + /** + * Contains the localized display information for this particular operation + */ + display?: ClientDiscoveryDisplay; + /** + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX + */ + origin?: string; + /** + * ShoeBox properties for the given operation. + */ + properties?: ClientDiscoveryForProperties; } /** @@ -3430,20 +3555,6 @@ export interface KeyAndSecretDetails { encryptionMechanism?: string; } -/** - * Recovery point tier information. - */ -export interface RecoveryPointTierInformation { - /** - * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP' - */ - type?: RecoveryPointTierType; - /** - * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', 'Deleted' - */ - status?: RecoveryPointTierStatus; -} - /** * Disk configuration */ @@ -3532,8 +3643,21 @@ export interface IaasVMRecoveryPoint { * Disk configuration */ recoveryPointDiskConfiguration?: RecoveryPointDiskConfiguration; + /** + * Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms + */ + zones?: string[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } +/** + * Contains the possible cases for IaasVMRestoreRequest. + */ +export type IaasVMRestoreRequestUnion = IaasVMRestoreRequest | IaasVMRestoreWithRehydrationRequest; + /** * IaaS VM workload-specific restore. */ @@ -3616,6 +3740,19 @@ export interface IaasVMRestoreRequest { * List of Disk LUNs for partial restore */ restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + */ + restoreWithManagedDisks?: boolean; + /** + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. + */ + diskEncryptionSetId?: string; + /** + * Target zone where the VM and its disks should be restored. + */ + zones?: string[]; } /** @@ -3636,7 +3773,7 @@ export interface JobQueryObject { /** * Type of operation. Possible values include: 'Invalid', 'Register', 'UnRegister', * 'ConfigureBackup', 'Backup', 'Restore', 'DisableBackup', 'DeleteBackupData', - * 'CrossRegionRestore', 'Undelete' + * 'CrossRegionRestore', 'Undelete', 'UpdateCustomerManagedKey' */ operation?: JobOperationType; /** @@ -4085,6 +4222,96 @@ export interface OperationResultInfo { jobList?: string[]; } +/** + * Prepare DataMove Request + */ +export interface PrepareDataMoveRequest { + /** + * ARM Id of target vault + */ + targetResourceId: string; + /** + * Target Region + */ + targetRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Source Container ArmIds + * This needs to be populated only if DataMoveLevel is set to container + */ + sourceContainerArmIds?: string[]; + /** + * Ignore the artifacts which are already moved. + */ + ignoreMoved?: boolean; +} + +/** + * Contains the possible cases for VaultStorageConfigOperationResultResponse. + */ +export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; + +/** + * Operation result response for Vault Storage Config + */ +export interface VaultStorageConfigOperationResultResponse { + /** + * Polymorphic Discriminator + */ + objectType: "VaultStorageConfigOperationResultResponse"; +} + +/** + * Prepare DataMove Response + */ +export interface PrepareDataMoveResponse { + /** + * Polymorphic Discriminator + */ + objectType: "PrepareDataMoveResponse"; + /** + * Co-relationId for move operation + */ + correlationId?: string; + /** + * Source Vault Properties + */ + sourceVaultProperties?: { [propertyName: string]: string }; +} + +/** + * Trigger DataMove Request + */ +export interface TriggerDataMoveRequest { + /** + * ARM Id of source vault + */ + sourceResourceId: string; + /** + * Source Region + */ + sourceRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Correlation Id + */ + correlationId: string; + /** + * Source Container ArmIds + */ + sourceContainerArmIds?: string[]; + /** + * Pause GC + */ + pauseGC?: boolean; +} + /** * This is the base class for operation result responses. */ @@ -4345,794 +4572,643 @@ export interface ValidateOperationsResponse { } /** - * Contains the possible cases for FeatureSupportRequest. - */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; - -/** - * Base class for feature request + * Backup resource vault config details. */ -export interface FeatureSupportRequest { +export interface BackupResourceVaultConfig { /** - * Polymorphic Discriminator + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - featureType: "FeatureSupportRequest"; + storageModelType?: StorageType; + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageType?: StorageType; + /** + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + */ + storageTypeState?: StorageTypeState; + /** + * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + enhancedSecurityState?: EnhancedSecurityState; + /** + * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + softDeleteFeatureState?: SoftDeleteFeatureState; } /** - * Azure backup goal feature specific request. + * Backup resource vault config details. */ -export interface AzureBackupGoalFeatureSupportRequest { +export interface BackupResourceVaultConfigResource extends Resource { /** - * Polymorphic Discriminator + * BackupResourceVaultConfigResource properties */ - featureType: "AzureBackupGoals"; + properties?: BackupResourceVaultConfig; } /** - * Contains the possible cases for ProtectionIntent. - */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; - -/** - * Base class for backup ProtectionIntent. + * Vault Job specific error information */ -export interface ProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "ProtectionIntent"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; +export interface VaultJobErrorInfo { /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Error code. */ - itemId?: string; + errorCode?: number; /** - * ID of the backup policy with which this item is backed up. + * Localized error string. */ - policyId?: string; + errorString?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * List of localized recommendations for above error code. */ - protectionState?: ProtectionStatus; + recommendations?: string[]; } /** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. + * Vault Job for CMK - has CMK specific info. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export interface VaultJobExtendedInfo { + /** + * Job properties. + */ + propertyBag?: { [propertyName: string]: string }; +} /** - * Azure Recovery Services Vault specific protection intent item. + * Vault level Job */ -export interface AzureRecoveryServiceVaultProtectionIntent { +export interface VaultJob { /** * Polymorphic Discriminator */ - protectionIntentItemType: "RecoveryServiceVaultItem"; + jobType: "VaultJob"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the entity on which the current job is executing. + */ + entityFriendlyName?: string; + /** + * Backup management type to execute the current job. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. + * The operation name. */ - policyId?: string; + operation?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Job status. */ - protectionState?: ProtectionStatus; -} - -/** - * IaaS VM specific backup protection intent item. - */ -export interface AzureResourceProtectionIntent { + status?: string; /** - * Polymorphic Discriminator + * The start time. */ - protectionIntentItemType: "AzureResourceItem"; + startTime?: Date; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * The end time. */ - backupManagementType?: BackupManagementType; + endTime?: Date; /** - * ARM ID of the resource to be backed up. + * ActivityId of job. */ - sourceResourceId?: string; + activityId?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Time elapsed during the execution of this job. */ - itemId?: string; + duration?: string; /** - * ID of the backup policy with which this item is backed up. + * Gets or sets the state/actions applicable on this job like cancel/retry. */ - policyId?: string; + actionsInfo?: JobSupportedAction[]; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Error details on execution of this job. */ - protectionState?: ProtectionStatus; + errorDetails?: VaultJobErrorInfo[]; /** - * Friendly name of the VM represented by this backup item. + * Additional information about the job. */ - friendlyName?: string; + extendedInfo?: VaultJobExtendedInfo; } /** - * AzureResource(IaaS VM) Specific feature support request + * Contains the possible cases for ProtectionContainer. */ -export interface AzureVMResourceFeatureSupportRequest { +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainer { /** * Polymorphic Discriminator */ - featureType: "AzureVMResourceBackup"; + containerType: "ProtectionContainer"; /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * Friendly name of the container. */ - vmSize?: string; + friendlyName?: string; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - vmSku?: string; -} - -/** - * Response for feature support requests for Azure IaasVm - */ -export interface AzureVMResourceFeatureSupportResponse { + backupManagementType?: BackupManagementType; /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * Status of registration of the container with the Recovery Services Vault. */ - supportStatus?: SupportStatus; + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. + * Contains the possible cases for DpmContainer. */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; /** - * Azure Recovery Services Vault specific protection intent item. + * DPM workload-specific protection container. */ -export interface AzureWorkloadAutoProtectionIntent { +export interface DpmContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + containerType: "DPMContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Status of registration of the container with the Recovery Services Vault. */ - itemId?: string; + registrationStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Status of health of the container. */ - policyId?: string; + healthStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Specifies whether the container is re-registrable. */ - protectionState?: ProtectionStatus; -} - -/** - * Azure Workload SQL Auto Protection intent item. - */ -export interface AzureWorkloadSQLAutoProtectionIntent { + canReRegister?: boolean; /** - * Polymorphic Discriminator + * ID of container. */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + containerId?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Number of protected items in the BackupEngine */ - backupManagementType?: BackupManagementType; + protectedItemCount?: number; /** - * ARM ID of the resource to be backed up. + * Backup engine Agent version */ - sourceResourceId?: string; + dpmAgentVersion?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * List of BackupEngines protecting the container */ - itemId?: string; + dpmServers?: string[]; /** - * ID of the backup policy with which this item is backed up. + * To check if upgrade available */ - policyId?: string; + upgradeAvailable?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Protection status of the container. */ - protectionState?: ProtectionStatus; + protectionStatus?: string; /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' + * Extended Info of the container. */ - workloadItemType?: WorkloadItemType; + extendedInfo?: DPMContainerExtendedInfo; } /** - * The name of usage. + * AzureBackupServer (DPMVenus) workload-specific protection container. */ -export interface NameInfo { +export interface AzureBackupServerContainer { /** - * Value of usage. + * Polymorphic Discriminator */ - value?: string; + containerType: "AzureBackupServerContainer"; /** - * Localized value of usage. + * Friendly name of the container. */ - localizedValue?: string; -} - -/** - * Backup management usages of a vault. - */ -export interface BackupManagementUsage { + friendlyName?: string; /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - unit?: UsagesUnit; + backupManagementType?: BackupManagementType; /** - * Quota period of usage. + * Status of registration of the container with the Recovery Services Vault. */ - quotaPeriod?: string; + registrationStatus?: string; /** - * Next reset time of usage. + * Status of health of the container. */ - nextResetTime?: Date; + healthStatus?: string; /** - * Current value of usage. + * Specifies whether the container is re-registrable. */ - currentValue?: number; + canReRegister?: boolean; /** - * Limit of usage. + * ID of container. */ - limit?: number; + containerId?: string; /** - * Name of usage. + * Number of protected items in the BackupEngine */ - name?: NameInfo; -} - -/** - * BackupStatus request. - */ -export interface BackupStatusRequest { + protectedItemCount?: number; /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Backup engine Agent version */ - resourceType?: DataSourceType; + dpmAgentVersion?: string; /** - * Entire ARM resource id of the resource + * List of BackupEngines protecting the container */ - resourceId?: string; + dpmServers?: string[]; /** - * Protectable Item Logical Name + * To check if upgrade available */ - poLogicalName?: string; + upgradeAvailable?: boolean; + /** + * Protection status of the container. + */ + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; } /** - * BackupStatus response. + * Contains the possible cases for BackupEngineBase. */ -export interface BackupStatusResponse { +export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBase { /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + backupEngineType: "BackupEngineBase"; /** - * Specifies the arm resource id of the vault + * Friendly name of the backup engine. */ - vaultId?: string; + friendlyName?: string; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' - */ - fabricName?: FabricName; - /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerName?: string; + backupManagementType?: BackupManagementType; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Registration status of the backup engine with the Recovery Services Vault. */ - protectedItemName?: string; + registrationStatus?: string; /** - * ErrorCode in case of intent failed + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - errorCode?: string; + backupEngineState?: string; /** - * ErrorMessage in case of intent failed. + * Backup status of the backup engine. */ - errorMessage?: string; + healthStatus?: string; /** - * Specifies the policy name which is used for protection + * Flag indicating if the backup engine be registered, once already registered. */ - policyName?: string; + canReRegister?: boolean; /** - * Container registration status + * ID of the backup engine. */ - registrationStatus?: string; -} - -/** - * Query parameters to fetch backup summaries. - */ -export interface BMSBackupSummariesQueryObject { + backupEngineId?: string; /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Backup engine version */ - type?: Type; -} - -/** - * Contract to validate if backup can be enabled on the given resource in a given vault and given - * configuration. - * It will validate followings - * 1. Vault capacity - * 2. VM is already protected - * 3. Any VM related configuration passed in properties. - */ -export interface PreValidateEnableBackupRequest { + dpmVersion?: string; /** - * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', - * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', - * 'SAPHanaDatabase', 'SAPAseDatabase' + * Backup agent version */ - resourceType?: DataSourceType; + azureBackupAgentVersion?: string; /** - * ARM Virtual Machine Id + * To check if backup agent upgrade available */ - resourceId?: string; + isAzureBackupAgentUpgradeAvailable?: boolean; /** - * ARM id of the Recovery Services Vault + * To check if backup engine upgrade available */ - vaultId?: string; + isDpmUpgradeAvailable?: boolean; /** - * Configuration of VM if any needs to be validated like OS type etc + * Extended info of the backupengine */ - properties?: string; + extendedInfo?: BackupEngineExtendedInfo; } /** - * Response contract for enable backup validation request + * Backup engine type when Azure Backup Server is used to manage the backups. */ -export interface PreValidateEnableBackupResponse { +export interface AzureBackupServerEngine { /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Polymorphic Discriminator */ - status?: ValidationStatus; + backupEngineType: "AzureBackupServerEngine"; /** - * Response error code + * Friendly name of the backup engine. */ - errorCode?: string; + friendlyName?: string; /** - * Response error message + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - errorMessage?: string; + backupManagementType?: BackupManagementType; /** - * Recommended action for user + * Registration status of the backup engine with the Recovery Services Vault. */ - recommendation?: string; + registrationStatus?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - containerName?: string; + backupEngineState?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * Backup status of the backup engine. */ - protectedItemName?: string; -} - -/** - * Filters to list protection intent. - */ -export interface ProtectionIntentQueryObject { + healthStatus?: string; /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Flag indicating if the backup engine be registered, once already registered. */ - backupManagementType?: BackupManagementType; + canReRegister?: boolean; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * ID of the backup engine. */ - itemType?: IntentItemType; + backupEngineId?: string; /** - * Parent name of the intent + * Backup engine version */ - parentName?: string; + dpmVersion?: string; /** - * Item name of the intent + * Backup agent version */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + azureBackupAgentVersion?: string; /** - * ProtectionIntentResource properties + * To check if backup agent upgrade available */ - properties?: ProtectionIntentUnion; + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for BackupRequest. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Base class for backup request. Workload-specific backup requests are derived from this class. */ -export interface ProtectionContainer { +export interface BackupRequest { /** * Polymorphic Discriminator */ - containerType: "ProtectionContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; + objectType: "BackupRequest"; +} + +/** + * AzureFileShare workload-specific backup request. + */ +export interface AzureFileShareBackupRequest { /** - * Status of registration of the container with the Recovery Services Vault. + * Polymorphic Discriminator */ - registrationStatus?: string; + objectType: "AzureFileShareBackupRequest"; /** - * Status of health of the container. + * Backup copy will expire after the time specified (UTC). */ - healthStatus?: string; + recoveryPointExpiryTimeInUTC?: Date; } /** - * Contains the possible cases for DpmContainer. + * Contains the possible cases for WorkloadProtectableItem. */ -export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; +export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; /** - * DPM workload-specific protection container. + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface DpmContainer { +export interface WorkloadProtectableItem { /** * Polymorphic Discriminator */ - containerType: "DPMContainer"; + protectableItemType: "WorkloadProtectableItem"; /** - * Friendly name of the container. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of workload for the backup management */ - backupManagementType?: BackupManagementType; + workloadType?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Friendly name of the backup item. */ - registrationStatus?: string; + friendlyName?: string; /** - * Status of health of the container. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - healthStatus?: string; + protectionState?: ProtectionStatus; +} + +/** + * Protectable item for Azure Fileshare workloads. + */ +export interface AzureFileShareProtectableItem { /** - * Specifies whether the container is re-registrable. + * Polymorphic Discriminator */ - canReRegister?: boolean; + protectableItemType: "AzureFileShare"; /** - * ID of container. + * Type of backup management to backup an item. */ - containerId?: string; + backupManagementType?: string; /** - * Number of protected items in the BackupEngine + * Type of workload for the backup management */ - protectedItemCount?: number; + workloadType?: string; /** - * Backup engine Agent version + * Friendly name of the backup item. */ - dpmAgentVersion?: string; + friendlyName?: string; /** - * List of BackupEngines protecting the container + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - dpmServers?: string[]; + protectionState?: ProtectionStatus; /** - * To check if upgrade available + * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. */ - upgradeAvailable?: boolean; + parentContainerFabricId?: string; /** - * Protection status of the container. + * Friendly name of container to which this protectable item belongs. */ - protectionStatus?: string; + parentContainerFriendlyName?: string; /** - * Extended Info of the container. + * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' */ - extendedInfo?: DPMContainerExtendedInfo; + azureFileShareType?: AzureFileShareType; } /** - * AzureBackupServer (DPMVenus) workload-specific protection container. + * Contains the possible cases for ILRRequest. */ -export interface AzureBackupServerContainer { - /** - * Polymorphic Discriminator - */ - containerType: "AzureBackupServerContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * Specifies whether the container is re-registrable. - */ - canReRegister?: boolean; - /** - * ID of container. - */ - containerId?: string; - /** - * Number of protected items in the BackupEngine - */ - protectedItemCount?: number; - /** - * Backup engine Agent version - */ - dpmAgentVersion?: string; +export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequest { /** - * List of BackupEngines protecting the container + * Polymorphic Discriminator */ - dpmServers?: string[]; + objectType: "ILRRequest"; +} + +/** + * Update snapshot Uri with the correct friendly Name of the source Azure file share. + */ +export interface AzureFileShareProvisionILRRequest { /** - * To check if upgrade available + * Polymorphic Discriminator */ - upgradeAvailable?: boolean; + objectType: "AzureFileShareProvisionILRRequest"; /** - * Protection status of the container. + * Recovery point ID. */ - protectionStatus?: string; + recoveryPointId?: string; /** - * Extended Info of the container. + * Source Storage account ARM Id */ - extendedInfo?: DPMContainerExtendedInfo; + sourceResourceId?: string; } /** - * Contains the possible cases for BackupEngineBase. + * Contains the possible cases for IaaSVMContainer. */ -export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; +export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; /** - * The base backup engine class. All workload specific backup engines derive from this class. + * IaaS VM workload-specific container. */ -export interface BackupEngineBase { +export interface IaaSVMContainer { /** * Polymorphic Discriminator */ - backupEngineType: "BackupEngineBase"; + containerType: "IaaSVMContainer"; /** - * Friendly name of the backup engine. + * Friendly name of the container. */ friendlyName?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} - */ - backupEngineState?: string; - /** - * Backup status of the backup engine. + * Status of health of the container. */ healthStatus?: string; /** - * Flag indicating if the backup engine be registered, once already registered. - */ - canReRegister?: boolean; - /** - * ID of the backup engine. - */ - backupEngineId?: string; - /** - * Backup engine version - */ - dpmVersion?: string; - /** - * Backup agent version - */ - azureBackupAgentVersion?: string; - /** - * To check if backup agent upgrade available + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - isAzureBackupAgentUpgradeAvailable?: boolean; + virtualMachineId?: string; /** - * To check if backup engine upgrade available + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - isDpmUpgradeAvailable?: boolean; + virtualMachineVersion?: string; /** - * Extended info of the backupengine + * Resource group name of Recovery Services Vault. */ - extendedInfo?: BackupEngineExtendedInfo; + resourceGroup?: string; } /** - * Backup engine type when Azure Backup Server is used to manage the backups. + * IaaS VM workload-specific backup item representing a classic virtual machine. */ -export interface AzureBackupServerEngine { +export interface AzureIaaSClassicComputeVMContainer { /** * Polymorphic Discriminator */ - backupEngineType: "AzureBackupServerEngine"; + containerType: "Microsoft.ClassicCompute/virtualMachines"; /** - * Friendly name of the backup engine. + * Friendly name of the container. */ friendlyName?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} - */ - backupEngineState?: string; - /** - * Backup status of the backup engine. + * Status of health of the container. */ healthStatus?: string; /** - * Flag indicating if the backup engine be registered, once already registered. - */ - canReRegister?: boolean; - /** - * ID of the backup engine. - */ - backupEngineId?: string; - /** - * Backup engine version - */ - dpmVersion?: string; - /** - * Backup agent version - */ - azureBackupAgentVersion?: string; - /** - * To check if backup agent upgrade available - */ - isAzureBackupAgentUpgradeAvailable?: boolean; - /** - * To check if backup engine upgrade available - */ - isDpmUpgradeAvailable?: boolean; - /** - * Extended info of the backupengine - */ - extendedInfo?: BackupEngineExtendedInfo; -} - -/** - * Contains the possible cases for BackupRequest. - */ -export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequest { - /** - * Polymorphic Discriminator + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - objectType: "BackupRequest"; -} - -/** - * AzureFileShare workload-specific backup request. - */ -export interface AzureFileShareBackupRequest { + virtualMachineId?: string; /** - * Polymorphic Discriminator + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - objectType: "AzureFileShareBackupRequest"; + virtualMachineVersion?: string; /** - * Backup copy will expire after the time specified (UTC). + * Resource group name of Recovery Services Vault. */ - recoveryPointExpiryTimeInUTC?: Date; + resourceGroup?: string; } /** - * Contains the possible cases for WorkloadProtectableItem. + * Contains the possible cases for IaaSVMProtectableItem. */ -export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; +export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * IaaS VM workload-specific backup item. */ -export interface WorkloadProtectableItem { +export interface IaaSVMProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "WorkloadProtectableItem"; + protectableItemType: "IaaSVMProtectableItem"; /** * Type of backup management to backup an item. */ @@ -5150,16 +5226,20 @@ export interface WorkloadProtectableItem { * 'Protected', 'ProtectionFailed' */ protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; } /** - * Protectable item for Azure Fileshare workloads. + * IaaS VM workload-specific backup item representing the Classic Compute VM. */ -export interface AzureFileShareProtectableItem { +export interface AzureIaaSClassicComputeVMProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "AzureFileShare"; + protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; /** * Type of backup management to backup an item. */ @@ -5178,224 +5258,31 @@ export interface AzureFileShareProtectableItem { */ protectionState?: ProtectionStatus; /** - * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. - */ - parentContainerFabricId?: string; - /** - * Friendly name of container to which this protectable item belongs. - */ - parentContainerFriendlyName?: string; - /** - * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' + * Fully qualified ARM ID of the virtual machine. */ - azureFileShareType?: AzureFileShareType; + virtualMachineId?: string; } /** - * Contains the possible cases for ILRRequest. - */ -export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; - -/** - * Parameters to Provision ILR API. + * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. */ -export interface ILRRequest { +export interface AzureIaaSComputeVMContainer { /** * Polymorphic Discriminator */ - objectType: "ILRRequest"; -} - -/** - * Update snapshot Uri with the correct friendly Name of the source Azure file share. - */ -export interface AzureFileShareProvisionILRRequest { + containerType: "Microsoft.Compute/virtualMachines"; /** - * Polymorphic Discriminator + * Friendly name of the container. */ - objectType: "AzureFileShareProvisionILRRequest"; + friendlyName?: string; /** - * Recovery point ID. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryPointId?: string; + backupManagementType?: BackupManagementType; /** - * Source Storage account ARM Id - */ - sourceResourceId?: string; -} - -/** - * Contains the possible cases for IaaSVMContainer. - */ -export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; - -/** - * IaaS VM workload-specific container. - */ -export interface IaaSVMContainer { - /** - * Polymorphic Discriminator - */ - containerType: "IaaSVMContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. - */ - virtualMachineId?: string; - /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. - */ - virtualMachineVersion?: string; - /** - * Resource group name of Recovery Services Vault. - */ - resourceGroup?: string; -} - -/** - * IaaS VM workload-specific backup item representing a classic virtual machine. - */ -export interface AzureIaaSClassicComputeVMContainer { - /** - * Polymorphic Discriminator - */ - containerType: "Microsoft.ClassicCompute/virtualMachines"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. - */ - healthStatus?: string; - /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. - */ - virtualMachineId?: string; - /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. - */ - virtualMachineVersion?: string; - /** - * Resource group name of Recovery Services Vault. - */ - resourceGroup?: string; -} - -/** - * Contains the possible cases for IaaSVMProtectableItem. - */ -export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; - -/** - * IaaS VM workload-specific backup item. - */ -export interface IaaSVMProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "IaaSVMProtectableItem"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * IaaS VM workload-specific backup item representing the Classic Compute VM. - */ -export interface AzureIaaSClassicComputeVMProtectableItem { - /** - * Polymorphic Discriminator - */ - protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. - */ -export interface AzureIaaSComputeVMContainer { - /** - * Polymorphic Discriminator - */ - containerType: "Microsoft.Compute/virtualMachines"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** @@ -6590,7 +6477,7 @@ export interface AzureWorkloadBackupRequest { objectType: "AzureWorkloadBackupRequest"; /** * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: - * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' */ backupType?: BackupType; /** @@ -6604,881 +6491,2187 @@ export interface AzureWorkloadBackupRequest { } /** - * Validation for inquired protectable items under a given container. + * Contains the possible cases for FeatureSupportRequest. */ -export interface InquiryValidation { - /** - * Status for the Inquiry Validation. - */ - status?: string; - /** - * Error Detail in case the status is non-success. - */ - errorDetail?: ErrorDetail; +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Error Additional Detail in case the status is non-success. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly additionalDetail?: string; + featureType: "FeatureSupportRequest"; } /** - * Details of an inquired protectable item. + * Azure backup goal feature specific request. */ -export interface WorkloadInquiryDetails { - /** - * Type of the Workload such as SQL, Oracle etc. - */ - type?: string; - /** - * Contains the protectable item Count inside this Container. - */ - itemCount?: number; +export interface AzureBackupGoalFeatureSupportRequest { /** - * Inquiry validation such as permissions and other backup validations. + * Polymorphic Discriminator */ - inquiryValidation?: InquiryValidation; + featureType: "AzureBackupGoals"; } /** - * Details about inquired protectable items under a given container. + * Contains the possible cases for ProtectionIntent. */ -export interface InquiryInfo { +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntent { /** - * Inquiry Status for this container such as - * InProgress | Failed | Succeeded + * Polymorphic Discriminator */ - status?: string; + protectionIntentItemType: "ProtectionIntent"; /** - * Error Details if the Status is non-success. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - errorDetail?: ErrorDetail; + backupManagementType?: BackupManagementType; /** - * Inquiry Details which will have workload specific details. - * For e.g. - For SQL and oracle this will contain different details. + * ARM ID of the resource to be backed up. */ - inquiryDetails?: WorkloadInquiryDetails[]; -} - -/** - * This is used to represent the various nodes of the distributed container. - */ -export interface DistributedNodesInfo { + sourceResourceId?: string; /** - * Name of the node under a distributed container. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - nodeName?: string; + itemId?: string; /** - * Status of this Node. - * Failed | Succeeded + * ID of the backup policy with which this item is backed up. */ - status?: string; + policyId?: string; /** - * Error Details if the Status is non-success. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - errorDetail?: ErrorDetail; + protectionState?: ProtectionStatus; } /** - * Extended information of the container. + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export interface AzureWorkloadContainerExtendedInfo { - /** - * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. - */ - hostServerName?: string; +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; + +/** + * Azure Recovery Services Vault specific protection intent item. + */ +export interface AzureRecoveryServiceVaultProtectionIntent { /** - * Inquiry Status for the container. + * Polymorphic Discriminator */ - inquiryInfo?: InquiryInfo; + protectionIntentItemType: "RecoveryServiceVaultItem"; /** - * List of the nodes in case of distributed container. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - nodesList?: DistributedNodesInfo[]; -} - -/** - * Additional information on backup engine. - */ -export interface BackupEngineExtendedInfo { + backupManagementType?: BackupManagementType; /** - * Database name of backup engine. + * ARM ID of the resource to be backed up. */ - databaseName?: string; + sourceResourceId?: string; /** - * Number of protected items in the backup engine. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - protectedItemsCount?: number; + itemId?: string; /** - * Number of protected servers in the backup engine. + * ID of the backup policy with which this item is backed up. */ - protectedServersCount?: number; + policyId?: string; /** - * Number of disks in the backup engine. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - diskCount?: number; + protectionState?: ProtectionStatus; +} + +/** + * IaaS VM specific backup protection intent item. + */ +export interface AzureResourceProtectionIntent { /** - * Disk space used in the backup engine. + * Polymorphic Discriminator */ - usedDiskSpace?: number; + protectionIntentItemType: "AzureResourceItem"; /** - * Disk space currently available in the backup engine. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - availableDiskSpace?: number; + backupManagementType?: BackupManagementType; /** - * Last refresh time in the backup engine. + * ARM ID of the resource to be backed up. */ - refreshedAt?: Date; + sourceResourceId?: string; /** - * Protected instances in the backup engine. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - azureProtectedInstances?: number; -} - -/** - * The base backup engine class. All workload specific backup engines derive from this class. - */ -export interface BackupEngineBaseResource extends Resource { + itemId?: string; /** - * BackupEngineBaseResource properties + * ID of the backup policy with which this item is backed up. */ - properties?: BackupEngineBaseUnion; -} - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequestResource extends Resource { + policyId?: string; /** - * BackupRequestResource properties + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - properties?: BackupRequestUnion; + protectionState?: ProtectionStatus; + /** + * Friendly name of the VM represented by this backup item. + */ + friendlyName?: string; } /** - * The resource storage details. + * AzureResource(IaaS VM) Specific feature support request */ -export interface BackupResourceConfig { +export interface AzureVMResourceFeatureSupportRequest { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Polymorphic Discriminator */ - storageModelType?: StorageType; + featureType: "AzureVMResourceBackup"; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Size of the resource: VM size(A/D series etc) in case of IaasVM */ - storageType?: StorageType; + vmSize?: string; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * SKUs (Premium/Managed etc) in case of IaasVM */ - storageTypeState?: StorageTypeState; + vmSku?: string; } /** - * The resource storage details. + * Response for feature support requests for Azure IaasVm */ -export interface BackupResourceConfigResource extends Resource { +export interface AzureVMResourceFeatureSupportResponse { /** - * BackupResourceConfigResource properties + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - properties?: BackupResourceConfig; + supportStatus?: SupportStatus; } /** - * Query parameters to fetch list of backup engines. + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export interface BMSBackupEngineQueryObject { - /** - * attribute to add extended info - */ - expand?: string; -} +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; /** - * Query parameters to fetch list of backup engines. + * Azure Recovery Services Vault specific protection intent item. */ -export interface BMSBackupEnginesQueryObject { +export interface AzureWorkloadAutoProtectionIntent { /** - * Backup management type for the backup engine. Possible values include: 'Invalid', + * Polymorphic Discriminator + */ + protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Friendly name of the backup engine. + * ARM ID of the resource to be backed up. */ - friendlyName?: string; + sourceResourceId?: string; /** - * Attribute to add extended info. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - expand?: string; + itemId?: string; + /** + * ID of the backup policy with which this item is backed up. + */ + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; } /** - * The query filters that can be used with the list containers API. + * Azure Workload SQL Auto Protection intent item. */ -export interface BMSContainerQueryObject { +export interface AzureWorkloadSQLAutoProtectionIntent { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * Polymorphic Discriminator + */ + protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ - backupManagementType: BackupManagementType; + backupManagementType?: BackupManagementType; /** - * Type of container for filter. Possible values include: 'Invalid', 'Unknown', - * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', - * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + * ARM ID of the resource to be backed up. */ - containerType?: ContainerType; + sourceResourceId?: string; /** - * Backup engine name + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - backupEngineName?: string; + itemId?: string; /** - * Fabric name for filter + * ID of the backup policy with which this item is backed up. */ - fabricName?: string; + policyId?: string; /** - * Status of registration of this container with the Recovery Services Vault. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - status?: string; + protectionState?: ProtectionStatus; /** - * Friendly name of this container. + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' */ - friendlyName?: string; + workloadItemType?: WorkloadItemType; } /** - * The query filters that can be used with the inquire container API. + * The name of usage. */ -export interface BMSContainersInquiryQueryObject { +export interface NameInfo { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Value of usage. */ - backupManagementType?: BackupManagementType; + value?: string; /** - * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Localized value of usage. */ - workloadType?: WorkloadType; + localizedValue?: string; } /** - * Filters to list items that can be backed up. + * Backup management usages of a vault. */ -export interface BMSPOQueryObject { +export interface BackupManagementUsage { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' */ - backupManagementType?: BackupManagementType; + unit?: UsagesUnit; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Quota period of usage. */ - workloadType?: WorkloadType; + quotaPeriod?: string; /** - * Full name of the container whose Protectable Objects should be returned. + * Next reset time of usage. */ - containerName?: string; + nextResetTime?: Date; /** - * Backup status query parameter. + * Current value of usage. */ - status?: string; + currentValue?: number; /** - * Friendly name. + * Limit of usage. */ - friendlyName?: string; -} - -/** - * The query filters that can be used with the refresh container API. - */ -export interface BMSRefreshContainersQueryObject { + limit?: number; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Name of usage. */ - backupManagementType?: BackupManagementType; + name?: NameInfo; } /** - * Filters to list items that can be backed up. + * BackupStatus request. */ -export interface BMSWorkloadItemQueryObject { +export interface BackupStatusRequest { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - backupManagementType?: BackupManagementType; - /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - */ - workloadItemType?: WorkloadItemType; + resourceType?: DataSourceType; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Entire ARM resource id of the resource */ - workloadType?: WorkloadType; + resourceId?: string; /** - * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Protectable Item Logical Name */ - protectionStatus?: ProtectionStatus; + poLogicalName?: string; } /** - * Client script details for file / folder restore. + * BackupStatus response. */ -export interface ClientScriptForConnect { +export interface BackupStatusResponse { /** - * File content of the client script for file / folder restore. + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ - scriptContent?: string; + protectionStatus?: ProtectionStatus; /** - * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + * Specifies the arm resource id of the vault */ - scriptExtension?: string; + vaultId?: string; /** - * OS type - Windows, Linux etc. for which this file / folder restore client script works. + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' */ - osType?: string; + fabricName?: FabricName; /** - * URL of Executable from where to source the content. If this is not null then ScriptContent - * should not be used + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. */ - url?: string; + containerName?: string; /** - * Mandatory suffix that should be added to the name of script that is given for download to - * user. - * If its null or empty then , ignore it. + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. */ - scriptNameSuffix?: string; -} - -/** - * Container identity information - */ -export interface ContainerIdentityInfo { + protectedItemName?: string; /** - * Unique name of the container + * ErrorCode in case of intent failed */ - uniqueName?: string; + errorCode?: string; /** - * Protection container identity - AAD Tenant + * ErrorMessage in case of intent failed. */ - aadTenantId?: string; + errorMessage?: string; /** - * Protection container identity - AAD Service Principal + * Specifies the policy name which is used for protection */ - servicePrincipalClientId?: string; + policyName?: string; /** - * Protection container identity - Audience + * Container registration status */ - audience?: string; + registrationStatus?: string; } /** - * Data Protection Manager (DPM) specific backup engine. + * Query parameters to fetch backup summaries. */ -export interface DpmBackupEngine { +export interface BMSBackupSummariesQueryObject { /** - * Polymorphic Discriminator + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' */ - backupEngineType: "DpmBackupEngine"; + type?: Type; +} + +/** + * Contract to validate if backup can be enabled on the given resource in a given vault and given + * configuration. + * It will validate followings + * 1. Vault capacity + * 2. VM is already protected + * 3. Any VM related configuration passed in properties. + */ +export interface PreValidateEnableBackupRequest { /** - * Friendly name of the backup engine. + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' */ - friendlyName?: string; + resourceType?: DataSourceType; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * ARM Virtual Machine Id */ - backupManagementType?: BackupManagementType; + resourceId?: string; /** - * Registration status of the backup engine with the Recovery Services Vault. + * ARM id of the Recovery Services Vault */ - registrationStatus?: string; + vaultId?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * Configuration of VM if any needs to be validated like OS type etc */ - backupEngineState?: string; + properties?: string; +} + +/** + * Response contract for enable backup validation request + */ +export interface PreValidateEnableBackupResponse { /** - * Backup status of the backup engine. + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - healthStatus?: string; + status?: ValidationStatus; /** - * Flag indicating if the backup engine be registered, once already registered. + * Response error code */ - canReRegister?: boolean; + errorCode?: string; /** - * ID of the backup engine. + * Response error message */ - backupEngineId?: string; + errorMessage?: string; /** - * Backup engine version + * Recommended action for user */ - dpmVersion?: string; + recommendation?: string; /** - * Backup agent version + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + * for portal */ - azureBackupAgentVersion?: string; + containerName?: string; /** - * To check if backup agent upgrade available + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is + * required for portal */ - isAzureBackupAgentUpgradeAvailable?: boolean; + protectedItemName?: string; +} + +/** + * Filters to list protection intent. + */ +export interface ProtectionIntentQueryObject { /** - * To check if backup engine upgrade available + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - isDpmUpgradeAvailable?: boolean; + backupManagementType?: BackupManagementType; /** - * Extended info of the backupengine + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - extendedInfo?: BackupEngineExtendedInfo; + itemType?: IntentItemType; + /** + * Parent name of the intent + */ + parentName?: string; + /** + * Item name of the intent + */ + itemName?: string; } /** - * Additional information of the DPMContainer. + * Base class for backup ProtectionIntent. */ -export interface DPMContainerExtendedInfo { +export interface ProtectionIntentResource extends Resource { /** - * Last refresh time of the DPMContainer. + * ProtectionIntentResource properties */ - lastRefreshedAt?: Date; + properties?: ProtectionIntentUnion; } /** - * Container extended information + * Validation for inquired protectable items under a given container. */ -export interface GenericContainerExtendedInfo { +export interface InquiryValidation { /** - * Public key of container cert + * Status for the Inquiry Validation. */ - rawCertData?: string; + status?: string; /** - * Container identity information + * Error Detail in case the status is non-success. */ - containerIdentityInfo?: ContainerIdentityInfo; + errorDetail?: ErrorDetail; /** - * Azure Backup Service Endpoints for the container + * Error Additional Detail in case the status is non-success. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serviceEndpoints?: { [propertyName: string]: string }; + readonly additionalDetail?: string; } /** - * Base class for generic container of backup items + * Details of an inquired protectable item. */ -export interface GenericContainer { - /** - * Polymorphic Discriminator - */ - containerType: "GenericContainer"; +export interface WorkloadInquiryDetails { /** - * Friendly name of the container. + * Type of the Workload such as SQL, Oracle etc. */ - friendlyName?: string; + type?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Contains the protectable item Count inside this Container. */ - backupManagementType?: BackupManagementType; + itemCount?: number; /** - * Status of registration of the container with the Recovery Services Vault. + * Inquiry validation such as permissions and other backup validations. */ - registrationStatus?: string; + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { /** - * Status of health of the container. + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded */ - healthStatus?: string; + status?: string; /** - * Name of the container's fabric + * Error Details if the Status is non-success. */ - fabricName?: string; + errorDetail?: ErrorDetail; /** - * Extended information (not returned in List container API calls) + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. */ - extendedInformation?: GenericContainerExtendedInfo; + inquiryDetails?: WorkloadInquiryDetails[]; } /** - * IaaS VM workload-specific backup request. + * This is used to represent the various nodes of the distributed container. */ -export interface IaasVMBackupRequest { +export interface DistributedNodesInfo { /** - * Polymorphic Discriminator + * Name of the node under a distributed container. */ - objectType: "IaasVMBackupRequest"; + nodeName?: string; /** - * Backup copy will expire after the time specified (UTC). + * Status of this Node. + * Failed | Succeeded */ - recoveryPointExpiryTimeInUTC?: Date; + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; } /** - * Restore files/folders from a backup copy of IaaS VM. + * Extended information of the container. */ -export interface IaasVMILRRegistrationRequest { +export interface AzureWorkloadContainerExtendedInfo { /** - * Polymorphic Discriminator - */ - objectType: "IaasVMILRRegistrationRequest"; - /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. - */ - recoveryPointId?: string; - /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. */ - virtualMachineId?: string; + hostServerName?: string; /** - * iSCSI initiator name. + * Inquiry Status for the container. */ - initiatorName?: string; + inquiryInfo?: InquiryInfo; /** - * Whether to renew existing registration with the iSCSI server. + * List of the nodes in case of distributed container. */ - renewExistingRegistration?: boolean; + nodesList?: DistributedNodesInfo[]; } /** - * Parameters to Provision ILR API. + * Additional information on backup engine. */ -export interface ILRRequestResource extends Resource { +export interface BackupEngineExtendedInfo { /** - * ILRRequestResource properties + * Database name of backup engine. */ - properties?: ILRRequestUnion; -} - -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { + databaseName?: string; /** - * List of client scripts. + * Number of protected items in the backup engine. */ - clientScripts?: ClientScriptForConnect[]; -} - -/** - * Additional information of the container. - */ -export interface MabContainerExtendedInfo { + protectedItemsCount?: number; /** - * Time stamp when this container was refreshed. + * Number of protected servers in the backup engine. */ - lastRefreshedAt?: Date; + protectedServersCount?: number; /** - * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Number of disks in the backup engine. */ - backupItemType?: BackupItemType; + diskCount?: number; /** - * List of backup items associated with this container. + * Disk space used in the backup engine. */ - backupItems?: string[]; + usedDiskSpace?: number; /** - * Backup policy associated with this container. + * Disk space currently available in the backup engine. */ - policyName?: string; + availableDiskSpace?: number; /** - * Latest backup status of this container. + * Last refresh time in the backup engine. */ - lastBackupStatus?: string; + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; } /** - * MAB workload-specific Health Details. + * The base backup engine class. All workload specific backup engines derive from this class. */ -export interface MABContainerHealthDetails { - /** - * Health Code - */ - code?: number; - /** - * Health Title - */ - title?: string; - /** - * Health Message - */ - message?: string; +export interface BackupEngineBaseResource extends Resource { /** - * Health Recommended Actions + * BackupEngineBaseResource properties */ - recommendations?: string[]; + properties?: BackupEngineBaseUnion; } /** - * Container with items backed up using MAB backup engine. + * Base class for backup request. Workload-specific backup requests are derived from this class. */ -export interface MabContainer { +export interface BackupRequestResource extends Resource { /** - * Polymorphic Discriminator + * BackupRequestResource properties */ - containerType: "Windows"; + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { /** - * Friendly name of the container. + * attribute to add extended info */ - friendlyName?: string; + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { /** - * Type of backup management for the container. Possible values include: 'Invalid', + * Backup management type for the backup engine. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. + * Friendly name of the backup engine. */ - healthStatus?: string; + friendlyName?: string; /** - * Can the container be registered one more time. + * Attribute to add extended info. */ - canReRegister?: boolean; + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { /** - * ContainerID represents the container. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerId?: number; + backupManagementType: BackupManagementType; /** - * Number of items backed up in this container. + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - protectedItemCount?: number; + containerType?: ContainerType; /** - * Agent version of this container. + * Backup engine name */ - agentVersion?: string; + backupEngineName?: string; /** - * Additional information for this container + * Fabric name for filter */ - extendedInfo?: MabContainerExtendedInfo; + fabricName?: string; /** - * Health details on this mab container. + * Status of registration of this container with the Recovery Services Vault. */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + status?: string; /** - * Health state of mab container. + * Friendly name of this container. */ - containerHealthState?: string; + friendlyName?: string; } /** - * Operation status job extended info. + * The query filters that can be used with the inquire container API. */ -export interface OperationStatusJobExtendedInfo { +export interface BMSContainersInquiryQueryObject { /** - * Polymorphic Discriminator + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - objectType: "OperationStatusJobExtendedInfo"; + backupManagementType?: BackupManagementType; /** - * ID of the job created for this protected item. + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - jobId?: string; + workloadType?: WorkloadType; } /** - * Operation status extended info for list of jobs. + * Filters to list items that can be backed up. */ -export interface OperationStatusJobsExtendedInfo { +export interface BMSPOQueryObject { /** - * Polymorphic Discriminator + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - objectType: "OperationStatusJobsExtendedInfo"; + backupManagementType?: BackupManagementType; /** - * IDs of the jobs created for the protected item. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - jobIds?: string[]; + workloadType?: WorkloadType; /** - * Stores all the failed jobs along with the corresponding error codes. + * Full name of the container whose Protectable Objects should be returned. */ - failedJobsError?: { [propertyName: string]: string }; -} - -/** - * Operation status extended info for ILR provision action. - */ -export interface OperationStatusProvisionILRExtendedInfo { + containerName?: string; /** - * Polymorphic Discriminator + * Backup status query parameter. */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + status?: string; /** - * Target details for file / folder restore. + * Friendly name. */ - recoveryTarget?: InstantItemRecoveryTarget; + friendlyName?: string; } /** - * Protectable Container Class. + * The query filters that can be used with the refresh container API. */ -export interface ProtectableContainerResource extends Resource { +export interface BMSRefreshContainersQueryObject { /** - * ProtectableContainerResource properties + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - properties?: ProtectableContainerUnion; + backupManagementType?: BackupManagementType; } /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Filters to list items that can be backed up. */ -export interface ProtectionContainerResource extends Resource { +export interface BMSWorkloadItemQueryObject { /** - * ProtectionContainerResource properties + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - properties?: ProtectionContainerUnion; -} - -/** - * The token information details. - */ -export interface TokenInformation { + backupManagementType?: BackupManagementType; /** - * Token value. + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ - token?: string; + workloadItemType?: WorkloadItemType; /** - * Expiry time of token. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - expiryTimeInUtcTicks?: number; + workloadType?: WorkloadType; /** - * Security PIN + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - securityPIN?: string; + protectionStatus?: ProtectionStatus; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Client script details for file / folder restore. + */ +export interface ClientScriptForConnect { + /** + * File content of the client script for file / folder restore. + */ + scriptContent?: string; + /** + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + */ + scriptExtension?: string; + /** + * OS type - Windows, Linux etc. for which this file / folder restore client script works. + */ + osType?: string; + /** + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used + */ + url?: string; + /** + * Mandatory suffix that should be added to the name of script that is given for download to + * user. + * If its null or empty then , ignore it. + */ + scriptNameSuffix?: string; +} + +/** + * Container identity information + */ +export interface ContainerIdentityInfo { + /** + * Unique name of the container + */ + uniqueName?: string; + /** + * Protection container identity - AAD Tenant + */ + aadTenantId?: string; + /** + * Protection container identity - AAD Service Principal + */ + servicePrincipalClientId?: string; + /** + * Protection container identity - Audience + */ + audience?: string; +} + +/** + * Data Protection Manager (DPM) specific backup engine. + */ +export interface DpmBackupEngine { + /** + * Polymorphic Discriminator + */ + backupEngineType: "DpmBackupEngine"; + /** + * Friendly name of the backup engine. + */ + friendlyName?: string; + /** + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Registration status of the backup engine with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + */ + backupEngineState?: string; + /** + * Backup status of the backup engine. + */ + healthStatus?: string; + /** + * Flag indicating if the backup engine be registered, once already registered. + */ + canReRegister?: boolean; + /** + * ID of the backup engine. + */ + backupEngineId?: string; + /** + * Backup engine version + */ + dpmVersion?: string; + /** + * Backup agent version + */ + azureBackupAgentVersion?: string; + /** + * To check if backup agent upgrade available + */ + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; +} + +/** + * Additional information of the DPMContainer. + */ +export interface DPMContainerExtendedInfo { + /** + * Last refresh time of the DPMContainer. + */ + lastRefreshedAt?: Date; +} + +/** + * Container extended information + */ +export interface GenericContainerExtendedInfo { + /** + * Public key of container cert + */ + rawCertData?: string; + /** + * Container identity information + */ + containerIdentityInfo?: ContainerIdentityInfo; + /** + * Azure Backup Service Endpoints for the container + */ + serviceEndpoints?: { [propertyName: string]: string }; +} + +/** + * Base class for generic container of backup items + */ +export interface GenericContainer { + /** + * Polymorphic Discriminator + */ + containerType: "GenericContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Name of the container's fabric + */ + fabricName?: string; + /** + * Extended information (not returned in List container API calls) + */ + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMBackupRequest"; + /** + * Backup copy will expire after the time specified (UTC). + */ + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Restore files/folders from a backup copy of IaaS VM. + */ +export interface IaasVMILRRegistrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMILRRegistrationRequest"; + /** + * ID of the IaaS VM backup copy from where the files/folders have to be restored. + */ + recoveryPointId?: string; + /** + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + */ + virtualMachineId?: string; + /** + * iSCSI initiator name. + */ + initiatorName?: string; + /** + * Whether to renew existing registration with the iSCSI server. + */ + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { + /** + * ILRRequestResource properties + */ + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { + /** + * List of client scripts. + */ + clientScripts?: ClientScriptForConnect[]; +} + +/** + * Additional information of the container. + */ +export interface MabContainerExtendedInfo { + /** + * Time stamp when this container was refreshed. + */ + lastRefreshedAt?: Date; + /** + * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + backupItemType?: BackupItemType; + /** + * List of backup items associated with this container. + */ + backupItems?: string[]; + /** + * Backup policy associated with this container. + */ + policyName?: string; + /** + * Latest backup status of this container. + */ + lastBackupStatus?: string; +} + +/** + * MAB workload-specific Health Details. + */ +export interface MABContainerHealthDetails { + /** + * Health Code + */ + code?: number; + /** + * Health Title + */ + title?: string; + /** + * Health Message + */ + message?: string; + /** + * Health Recommended Actions + */ + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { + /** + * Polymorphic Discriminator + */ + containerType: "Windows"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Can the container be registered one more time. + */ + canReRegister?: boolean; + /** + * ContainerID represents the container. + */ + containerId?: number; + /** + * Number of items backed up in this container. + */ + protectedItemCount?: number; + /** + * Agent version of this container. + */ + agentVersion?: string; + /** + * Additional information for this container + */ + extendedInfo?: MabContainerExtendedInfo; + /** + * Health details on this mab container. + */ + mabContainerHealthDetails?: MABContainerHealthDetails[]; + /** + * Health state of mab container. + */ + containerHealthState?: string; +} + +/** + * Error information associated with operation status call. + */ +export interface OperationStatusError { + /** + * Error code of the operation failure. + */ + code?: string; + /** + * Error message displayed if the operation failure. + */ + message?: string; +} + +/** + * Contains the possible cases for OperationStatusExtendedInfo. + */ +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; + +/** + * Base class for additional information of operation status. + */ +export interface OperationStatusExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { + /** + * ID of the operation. + */ + id?: string; + /** + * Name of the operation. + */ + name?: string; + /** + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' + */ + status?: OperationStatusValues; + /** + * Operation start time. Format: ISO-8601. + */ + startTime?: Date; + /** + * Operation end time. Format: ISO-8601. + */ + endTime?: Date; + /** + * Error information related to this operation. + */ + error?: OperationStatusError; + /** + * Additional information associated with this operation. + */ + properties?: OperationStatusExtendedInfoUnion; +} + +/** + * Operation status job extended info. + */ +export interface OperationStatusJobExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobExtendedInfo"; + /** + * ID of the job created for this protected item. + */ + jobId?: string; +} + +/** + * Operation status extended info for list of jobs. + */ +export interface OperationStatusJobsExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobsExtendedInfo"; + /** + * IDs of the jobs created for the protected item. + */ + jobIds?: string[]; + /** + * Stores all the failed jobs along with the corresponding error codes. + */ + failedJobsError?: { [propertyName: string]: string }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusProvisionILRExtendedInfo"; + /** + * Target details for file / folder restore. + */ + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Protectable Container Class. + */ +export interface ProtectableContainerResource extends Resource { + /** + * ProtectableContainerResource properties + */ + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { + /** + * ProtectionContainerResource properties + */ + properties?: ProtectionContainerUnion; +} + +/** + * The token information details. + */ +export interface TokenInformation { + /** + * Token value. + */ + token?: string; + /** + * Expiry time of token. + */ + expiryTimeInUtcTicks?: number; + /** + * Security PIN + */ + securityPIN?: string; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. */ export interface WorkloadItemResource extends Resource { /** - * WorkloadItemResource properties + * WorkloadItemResource properties + */ + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { + /** + * WorkloadProtectableItemResource properties + */ + properties?: WorkloadProtectableItemUnion; +} + +/** + * RP Rehydration Info + */ +export interface RecoveryPointRehydrationInfo { + /** + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" + */ + rehydrationRetentionDuration?: string; + /** + * Rehydration Priority. Possible values include: 'Standard', 'High' + */ + rehydrationPriority?: RehydrationPriority; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + */ +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * IaaS VM workload-specific restore with integrated rehydration of recovery point. + */ +export interface IaasVMRestoreWithRehydrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMRestoreWithRehydrationRequest"; + /** + * ID of the backup copy to be recovered. + */ + recoveryPointId?: string; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM which is being recovered. + */ + sourceResourceId?: string; + /** + * This is the complete ARM Id of the VM that will be created. + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * This is the ARM Id of the resource group that you want to create for this Virtual machine and + * other artifacts. + * For e.g. /subscriptions/{subId}/resourcegroups/{rg} + */ + targetResourceGroupId?: string; + /** + * Fully qualified ARM ID of the storage account to which the VM has to be restored. + */ + storageAccountId?: string; + /** + * This is the virtual network Id of the vnet that will be attached to the virtual machine. + * User will be validated for join action permissions in the linked access. + */ + virtualNetworkId?: string; + /** + * Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + * {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource + * ID used to represent + * the subnet. + */ + subnetId?: string; + /** + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. + */ + targetDomainNameId?: string; + /** + * Region in which the virtual machine is restored. + */ + region?: string; + /** + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. + */ + affinityGroup?: string; + /** + * Should a new cloud service be created while restoring the VM. If this is false, VM will be + * restored to the same + * cloud service as it was at the time of backup. + */ + createNewCloudService?: boolean; + /** + * Original Storage Account Option + */ + originalStorageAccountOption?: boolean; + /** + * Details needed if the VM was encrypted at the time of backup. + */ + encryptionDetails?: EncryptionDetails; + /** + * List of Disk LUNs for partial restore + */ + restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + */ + restoreWithManagedDisks?: boolean; + /** + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. + */ + diskEncryptionSetId?: string; + /** + * Target zone where the VM and its disks should be restored. + */ + zones?: string[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * An interface representing MoveRPAcrossTiersRequest. + */ +export interface MoveRPAcrossTiersRequest { + /** + * Gets the class type. + */ + objectType?: string; + /** + * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' + */ + sourceTierType?: RecoveryPointTierType; + /** + * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' + */ + targetTierType?: RecoveryPointTierType; +} + +/** + * ListRecoveryPointsRecommendedForMoveRequest Request + */ +export interface ListRecoveryPointsRecommendedForMoveRequest { + /** + * Gets the class type. + */ + objectType?: string; + /** + * List of Recovery Points excluded from Move + */ + excludedRPList?: string[]; +} + +/** + * An interface representing AADProperties. + */ +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; +} + +/** + * An interface representing AADPropertiesResource. + */ +export interface AADPropertiesResource extends Resource { + /** + * AADPropertiesResource properties + */ + properties?: AADProperties; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfig { + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageModelType?: StorageType; + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageType?: StorageType; + /** + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + */ + storageTypeState?: StorageTypeState; + /** + * Opt in details of Cross Region Restore feature. + */ + crossRegionRestoreFlag?: boolean; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequest { + /** + * Entire ARM resource id of the resource + */ + resourceId?: string; + /** + * Job Name of the job to be fetched + */ + jobName?: string; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequestResource extends Resource { + /** + * CrrJobRequestResource properties + */ + properties?: CrrJobRequest; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { + /** + * BackupResourceConfigResource properties + */ + properties?: BackupResourceConfig; +} + +/** + * Contains the possible cases for CrrAccessToken. + */ +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { + /** + * Polymorphic Discriminator + */ + objectType: "CrrAccessToken"; + /** + * Access token used for authentication + */ + accessTokenString?: string; + /** + * Subscription Id of the source vault + */ + subscriptionId?: string; + /** + * Resource Group name of the source vault + */ + resourceGroupName?: string; + /** + * Resource Name of the source vault + */ + resourceName?: string; + /** + * Resource Id of the source vault + */ + resourceId?: string; + /** + * Protected item container id + */ + protectionContainerId?: number; + /** + * Recovery Point Id + */ + recoveryPointId?: string; + /** + * Recovery Point Time + */ + recoveryPointTime?: string; + /** + * Container Unique name + */ + containerName?: string; + /** + * Container Type + */ + containerType?: string; + /** + * Backup Management Type + */ + backupManagementType?: string; + /** + * Datasource Type + */ + datasourceType?: string; + /** + * Datasource Friendly Name + */ + datasourceName?: string; + /** + * Datasource Id + */ + datasourceId?: string; + /** + * Datasource Container Unique Name + */ + datasourceContainerName?: string; + /** + * CoordinatorServiceStampId to be used by BCM in restore call + */ + coordinatorServiceStampId?: string; + /** + * CoordinatorServiceStampUri to be used by BCM in restore call + */ + coordinatorServiceStampUri?: string; + /** + * ProtectionServiceStampId to be used by BCM in restore call + */ + protectionServiceStampId?: string; + /** + * ProtectionServiceStampUri to be used by BCM in restore call + */ + protectionServiceStampUri?: string; + /** + * Extended Information about the token like FileSpec etc. + */ + tokenExtendedInformation?: string; + /** + * Recovery point Tier Information + */ + rpTierInformation?: { [propertyName: string]: string }; + /** + * Recovery point information: Original SA option + */ + rpOriginalSAOption?: boolean; + /** + * Recovery point information: Managed virtual machine + */ + rpIsManagedVirtualMachine?: boolean; + /** + * Recovery point information: VM size description + */ + rpVMSizeDescription?: string; + /** + * Active region name of BMS Stamp + */ + bMSActiveRegion?: string; +} + +/** + * An interface representing CrossRegionRestoreRequest. + */ +export interface CrossRegionRestoreRequest { + /** + * Access details for cross region restore */ - properties?: WorkloadItemUnion; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; + /** + * Request object for triggering restore + */ + restoreRequest?: RestoreRequestUnion; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * An interface representing CrossRegionRestoreRequestResource. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface CrossRegionRestoreRequestResource extends Resource { /** - * WorkloadProtectableItemResource properties + * CrossRegionRestoreRequestResource properties */ - properties?: WorkloadProtectableItemUnion; + properties?: CrossRegionRestoreRequest; } /** - * Localized display information of an operation. + * An interface representing CrrAccessTokenResource. */ -export interface ClientDiscoveryDisplay { +export interface CrrAccessTokenResource extends Resource { /** - * Name of the provider for display purposes + * CrrAccessTokenResource properties */ - provider?: string; + properties?: CrrAccessTokenUnion; +} + +/** + * Operation status extended info for Updated Recovery Point. + */ +export interface OperationStatusRecoveryPointExtendedInfo { /** - * ResourceType for which this Operation can be performed. + * Polymorphic Discriminator */ - resource?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Operations Name itself. + * Recovery Point info with updated source snapshot URI */ - operation?: string; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Description of the operation having details of what operation is about. + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - description?: string; + deletedBackupItemVersion?: string; } /** - * Class to represent shoebox log specification in json client discovery. + * An interface representing WorkloadCrrAccessToken. */ -export interface ClientDiscoveryForLogSpecification { +export interface WorkloadCrrAccessToken { /** - * Name for shoebox log specification. + * Polymorphic Discriminator */ - name?: string; + objectType: "WorkloadCrrAccessToken"; /** - * Localized display name + * Access token used for authentication */ - displayName?: string; + accessTokenString?: string; /** - * blob duration of shoebox log specification + * Subscription Id of the source vault */ - blobDuration?: string; + subscriptionId?: string; + /** + * Resource Group name of the source vault + */ + resourceGroupName?: string; + /** + * Resource Name of the source vault + */ + resourceName?: string; + /** + * Resource Id of the source vault + */ + resourceId?: string; + /** + * Protected item container id + */ + protectionContainerId?: number; + /** + * Recovery Point Id + */ + recoveryPointId?: string; + /** + * Recovery Point Time + */ + recoveryPointTime?: string; + /** + * Container Unique name + */ + containerName?: string; + /** + * Container Type + */ + containerType?: string; + /** + * Backup Management Type + */ + backupManagementType?: string; + /** + * Datasource Type + */ + datasourceType?: string; + /** + * Datasource Friendly Name + */ + datasourceName?: string; + /** + * Datasource Id + */ + datasourceId?: string; + /** + * Datasource Container Unique Name + */ + datasourceContainerName?: string; + /** + * CoordinatorServiceStampId to be used by BCM in restore call + */ + coordinatorServiceStampId?: string; + /** + * CoordinatorServiceStampUri to be used by BCM in restore call + */ + coordinatorServiceStampUri?: string; + /** + * ProtectionServiceStampId to be used by BCM in restore call + */ + protectionServiceStampId?: string; + /** + * ProtectionServiceStampUri to be used by BCM in restore call + */ + protectionServiceStampUri?: string; + /** + * Extended Information about the token like FileSpec etc. + */ + tokenExtendedInformation?: string; + /** + * Recovery point Tier Information + */ + rpTierInformation?: { [propertyName: string]: string }; + /** + * Recovery point information: Original SA option + */ + rpOriginalSAOption?: boolean; + /** + * Recovery point information: Managed virtual machine + */ + rpIsManagedVirtualMachine?: boolean; + /** + * Recovery point information: VM size description + */ + rpVMSizeDescription?: string; + /** + * Active region name of BMS Stamp + */ + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; + /** + * Container Id + */ + containerId?: string; + /** + * Policy Name + */ + policyName?: string; + /** + * Policy Id + */ + policyId?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** - * List of log specifications of this operation. + * OData filter options. */ - logSpecifications?: ClientDiscoveryForLogSpecification[]; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Class to represent shoebox properties in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForProperties { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Operation properties. + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupPoliciesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupJobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectedItemsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter options. + */ + filter?: string; + /** + * skipToken Filter. */ - serviceSpecification?: ClientDiscoveryForServiceSpecification; + skipToken?: string; } /** - * Available operation details. + * Optional Parameters. */ -export interface ClientDiscoveryValueForSingleApi { - /** - * Name of the Operation. - */ - name?: string; - /** - * Contains the localized display information for this particular operation - */ - display?: ClientDiscoveryDisplay; +export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { /** - * The intended executor of the operation;governs the display of the operation in the RBAC UX and - * the audit logs UX + * OData filter options. */ - origin?: string; + filter?: string; /** - * ShoeBox properties for the given operation. + * skipToken Filter. */ - properties?: ClientDiscoveryForProperties; + skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { +export interface BackupEnginesListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7488,7 +8681,7 @@ export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectableContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7498,21 +8691,17 @@ export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; } /** * Optional Parameters. */ -export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { +export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7522,7 +8711,7 @@ export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBas /** * Optional Parameters. */ -export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7536,7 +8725,7 @@ export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7550,7 +8739,7 @@ export interface BackupProtectionIntentListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7564,7 +8753,7 @@ export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7578,21 +8767,17 @@ export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7602,41 +8787,55 @@ export interface ProtectableContainersListOptionalParams extends msRest.RequestO /** * Optional Parameters. */ -export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** - * skipToken Filter. + * OData filter options. */ - skipToken?: string; + filter?: string; } /** * Optional Parameters. */ -export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7650,11 +8849,15 @@ export interface BackupProtectableItemsListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** @@ -7664,6 +8867,34 @@ export interface RecoveryServicesBackupClientOptions extends AzureServiceClientO baseUri?: string; } +/** + * @interface + * List of ProtectionIntent resources + * @extends Array, ResourceList + */ +export interface ProtectionIntentResourceList extends Array, ResourceList { +} + +/** + * @interface + * Backup management usage for vault. + * @extends Array + */ +export interface BackupManagementUsageList extends Array { +} + +/** + * @interface + * Operations List response which contains list of available APIs. + * @extends Array + */ +export interface ClientDiscoveryResponse extends Array { + /** + * Link to the next chunk of Response. + */ + nextLink?: string; +} + /** * @interface * List of RecoveryPoint resources @@ -7696,22 +8927,6 @@ export interface JobResourceList extends Array, ResourceList { export interface ProtectedItemResourceList extends Array, ResourceList { } -/** - * @interface - * List of ProtectionIntent resources - * @extends Array, ResourceList - */ -export interface ProtectionIntentResourceList extends Array, ResourceList { -} - -/** - * @interface - * Backup management usage for vault. - * @extends Array - */ -export interface BackupManagementUsageList extends Array { -} - /** * @interface * List of BackupEngineBase resources @@ -7753,24 +8968,29 @@ export interface ProtectionContainerResourceList extends Array + * Defines values for EncryptionAtRestType. + * Possible values include: 'Invalid', 'MicrosoftManaged', 'CustomerManaged' + * @readonly + * @enum {string} */ -export interface ClientDiscoveryResponse extends Array { - /** - * Link to the next chunk of Response. - */ - nextLink?: string; -} +export type EncryptionAtRestType = 'Invalid' | 'MicrosoftManaged' | 'CustomerManaged'; /** - * Defines values for OperationStatusValues. - * Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', 'Canceled' + * Defines values for LastUpdateStatus. + * Possible values include: 'Invalid', 'NotEnabled', 'PartiallySucceeded', 'PartiallyFailed', + * 'Failed', 'Succeeded' * @readonly * @enum {string} */ -export type OperationStatusValues = 'Invalid' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; +export type LastUpdateStatus = 'Invalid' | 'NotEnabled' | 'PartiallySucceeded' | 'PartiallyFailed' | 'Failed' | 'Succeeded'; + +/** + * Defines values for InfrastructureEncryptionState. + * Possible values include: 'Invalid', 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type InfrastructureEncryptionState = 'Invalid' | 'Disabled' | 'Enabled'; /** * Defines values for ProvisioningState. @@ -7797,15 +9017,22 @@ export type PrivateEndpointConnectionStatus = 'Pending' | 'Approved' | 'Rejected */ export type ProtectionState = 'Invalid' | 'IRPending' | 'Protected' | 'ProtectionError' | 'ProtectionStopped' | 'ProtectionPaused'; +/** + * Defines values for ResourceHealthStatus. + * Possible values include: 'Healthy', 'TransientDegraded', 'PersistentDegraded', + * 'TransientUnhealthy', 'PersistentUnhealthy', 'Invalid' + * @readonly + * @enum {string} + */ +export type ResourceHealthStatus = 'Healthy' | 'TransientDegraded' | 'PersistentDegraded' | 'TransientUnhealthy' | 'PersistentUnhealthy' | 'Invalid'; + /** * Defines values for HealthStatus. - * Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Healthy', - * 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', 'PersistentUnhealthy', - * 'Invalid' + * Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' * @readonly * @enum {string} */ -export type HealthStatus = 'Passed' | 'ActionRequired' | 'ActionSuggested' | 'Healthy' | 'TransientDegraded' | 'PersistentDegraded' | 'TransientUnhealthy' | 'PersistentUnhealthy' | 'Invalid'; +export type HealthStatus = 'Passed' | 'ActionRequired' | 'ActionSuggested' | 'Invalid'; /** * Defines values for RecoveryType. @@ -7844,11 +9071,11 @@ export type WorkloadType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQL /** * Defines values for PolicyType. - * Possible values include: 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * Possible values include: 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' * @readonly * @enum {string} */ -export type PolicyType = 'Invalid' | 'Full' | 'Differential' | 'Log' | 'CopyOnlyFull'; +export type PolicyType = 'Invalid' | 'Full' | 'Differential' | 'Log' | 'CopyOnlyFull' | 'Incremental'; /** * Defines values for JobSupportedAction. @@ -7885,75 +9112,60 @@ export type ProtectedItemHealthStatus = 'Invalid' | 'Healthy' | 'Unhealthy' | 'N /** * Defines values for RestorePointType. - * Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - * @readonly - * @enum {string} - */ -export type RestorePointType = 'Invalid' | 'Full' | 'Log' | 'Differential'; - -/** - * Defines values for OverwriteOptions. - * Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' - * @readonly - * @enum {string} - */ -export type OverwriteOptions = 'Invalid' | 'FailOnConflict' | 'Overwrite'; - -/** - * Defines values for RecoveryMode. - * Possible values include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' * @readonly * @enum {string} */ -export type RecoveryMode = 'Invalid' | 'FileRecovery' | 'WorkloadRecovery'; +export type RestorePointType = 'Invalid' | 'Full' | 'Log' | 'Differential' | 'Incremental'; /** - * Defines values for SQLDataDirectoryType. - * Possible values include: 'Invalid', 'Data', 'Log' + * Defines values for RecoveryPointTierType. + * Possible values include: 'Invalid', 'InstantRP', 'HardenedRP', 'ArchivedRP' * @readonly * @enum {string} */ -export type SQLDataDirectoryType = 'Invalid' | 'Data' | 'Log'; +export type RecoveryPointTierType = 'Invalid' | 'InstantRP' | 'HardenedRP' | 'ArchivedRP'; /** - * Defines values for StorageType. - * Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Defines values for RecoveryPointTierStatus. + * Possible values include: 'Invalid', 'Valid', 'Disabled', 'Deleted', 'Rehydrated' * @readonly * @enum {string} */ -export type StorageType = 'Invalid' | 'GeoRedundant' | 'LocallyRedundant'; +export type RecoveryPointTierStatus = 'Invalid' | 'Valid' | 'Disabled' | 'Deleted' | 'Rehydrated'; /** - * Defines values for StorageTypeState. - * Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Defines values for OverwriteOptions. + * Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' * @readonly * @enum {string} */ -export type StorageTypeState = 'Invalid' | 'Locked' | 'Unlocked'; +export type OverwriteOptions = 'Invalid' | 'FailOnConflict' | 'Overwrite'; /** - * Defines values for EnhancedSecurityState. - * Possible values include: 'Invalid', 'Enabled', 'Disabled' + * Defines values for RecoveryMode. + * Possible values include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' * @readonly * @enum {string} */ -export type EnhancedSecurityState = 'Invalid' | 'Enabled' | 'Disabled'; +export type RecoveryMode = 'Invalid' | 'FileRecovery' | 'WorkloadRecovery'; /** - * Defines values for SoftDeleteFeatureState. - * Possible values include: 'Invalid', 'Enabled', 'Disabled' + * Defines values for SQLDataDirectoryType. + * Possible values include: 'Invalid', 'Data', 'Log' * @readonly * @enum {string} */ -export type SoftDeleteFeatureState = 'Invalid' | 'Enabled' | 'Disabled'; +export type SQLDataDirectoryType = 'Invalid' | 'Data' | 'Log'; /** * Defines values for RestorePointQueryType. - * Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', 'All' + * Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', 'All', + * 'Incremental' * @readonly * @enum {string} */ -export type RestorePointQueryType = 'Invalid' | 'Full' | 'Log' | 'Differential' | 'FullAndDifferential' | 'All'; +export type RestorePointQueryType = 'Invalid' | 'Full' | 'Log' | 'Differential' | 'FullAndDifferential' | 'All' | 'Incremental'; /** * Defines values for RetentionDurationType. @@ -7963,22 +9175,6 @@ export type RestorePointQueryType = 'Invalid' | 'Full' | 'Log' | 'Differential' */ export type RetentionDurationType = 'Invalid' | 'Days' | 'Weeks' | 'Months' | 'Years'; -/** - * Defines values for RecoveryPointTierType. - * Possible values include: 'Invalid', 'InstantRP', 'HardenedRP' - * @readonly - * @enum {string} - */ -export type RecoveryPointTierType = 'Invalid' | 'InstantRP' | 'HardenedRP'; - -/** - * Defines values for RecoveryPointTierStatus. - * Possible values include: 'Invalid', 'Valid', 'Disabled', 'Deleted' - * @readonly - * @enum {string} - */ -export type RecoveryPointTierStatus = 'Invalid' | 'Valid' | 'Disabled' | 'Deleted'; - /** * Defines values for BackupManagementType. * Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', @@ -8000,11 +9196,12 @@ export type JobStatus = 'Invalid' | 'InProgress' | 'Completed' | 'Failed' | 'Com /** * Defines values for JobOperationType. * Possible values include: 'Invalid', 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', - * 'Restore', 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete' + * 'Restore', 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete', + * 'UpdateCustomerManagedKey' * @readonly * @enum {string} */ -export type JobOperationType = 'Invalid' | 'Register' | 'UnRegister' | 'ConfigureBackup' | 'Backup' | 'Restore' | 'DisableBackup' | 'DeleteBackupData' | 'CrossRegionRestore' | 'Undelete'; +export type JobOperationType = 'Invalid' | 'Register' | 'UnRegister' | 'ConfigureBackup' | 'Backup' | 'Restore' | 'DisableBackup' | 'DeleteBackupData' | 'CrossRegionRestore' | 'Undelete' | 'UpdateCustomerManagedKey'; /** * Defines values for DayOfWeek. @@ -8051,6 +9248,14 @@ export type MonthOfYear = 'Invalid' | 'January' | 'February' | 'March' | 'April' */ export type MabServerType = 'Invalid' | 'Unknown' | 'IaasVMContainer' | 'IaasVMServiceContainer' | 'DPMContainer' | 'AzureBackupServerContainer' | 'MABContainer' | 'Cluster' | 'AzureSqlContainer' | 'Windows' | 'VCenter' | 'VMAppContainer' | 'SQLAGWorkLoadContainer' | 'StorageContainer' | 'GenericContainer'; +/** + * Defines values for DataMoveLevel. + * Possible values include: 'Invalid', 'Vault', 'Container' + * @readonly + * @enum {string} + */ +export type DataMoveLevel = 'Invalid' | 'Vault' | 'Container'; + /** * Defines values for HttpStatusCode. * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', @@ -8100,7 +9305,64 @@ export type HealthState = 'Passed' | 'ActionRequired' | 'ActionSuggested' | 'Inv * @readonly * @enum {string} */ -export type ScheduleRunType = 'Invalid' | 'Daily' | 'Weekly'; +export type ScheduleRunType = 'Invalid' | 'Daily' | 'Weekly'; + +/** + * Defines values for StorageType. + * Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', 'ZoneRedundant', + * 'ReadAccessGeoZoneRedundant' + * @readonly + * @enum {string} + */ +export type StorageType = 'Invalid' | 'GeoRedundant' | 'LocallyRedundant' | 'ZoneRedundant' | 'ReadAccessGeoZoneRedundant'; + +/** + * Defines values for StorageTypeState. + * Possible values include: 'Invalid', 'Locked', 'Unlocked' + * @readonly + * @enum {string} + */ +export type StorageTypeState = 'Invalid' | 'Locked' | 'Unlocked'; + +/** + * Defines values for EnhancedSecurityState. + * Possible values include: 'Invalid', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EnhancedSecurityState = 'Invalid' | 'Enabled' | 'Disabled'; + +/** + * Defines values for SoftDeleteFeatureState. + * Possible values include: 'Invalid', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SoftDeleteFeatureState = 'Invalid' | 'Enabled' | 'Disabled'; + +/** + * Defines values for AzureFileShareType. + * Possible values include: 'Invalid', 'XSMB', 'XSync' + * @readonly + * @enum {string} + */ +export type AzureFileShareType = 'Invalid' | 'XSMB' | 'XSync'; + +/** + * Defines values for InquiryStatus. + * Possible values include: 'Invalid', 'Success', 'Failed' + * @readonly + * @enum {string} + */ +export type InquiryStatus = 'Invalid' | 'Success' | 'Failed'; + +/** + * Defines values for BackupType. + * Possible values include: 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' + * @readonly + * @enum {string} + */ +export type BackupType = 'Invalid' | 'Full' | 'Differential' | 'Log' | 'CopyOnlyFull' | 'Incremental'; /** * Defines values for SupportStatus. @@ -8171,62 +9433,314 @@ export type ValidationStatus = 'Invalid' | 'Succeeded' | 'Failed'; export type IntentItemType = 'Invalid' | 'SQLInstance' | 'SQLAvailabilityGroupContainer'; /** - * Defines values for AzureFileShareType. - * Possible values include: 'Invalid', 'XSMB', 'XSync' + * Defines values for OperationType. + * Possible values include: 'Invalid', 'Register', 'Reregister' * @readonly * @enum {string} */ -export type AzureFileShareType = 'Invalid' | 'XSMB' | 'XSync'; +export type OperationType = 'Invalid' | 'Register' | 'Reregister'; /** - * Defines values for InquiryStatus. - * Possible values include: 'Invalid', 'Success', 'Failed' + * Defines values for ContainerType. + * Possible values include: 'Invalid', 'Unknown', 'IaasVMContainer', 'IaasVMServiceContainer', + * 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', + * 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', + * 'GenericContainer' * @readonly * @enum {string} */ -export type InquiryStatus = 'Invalid' | 'Success' | 'Failed'; +export type ContainerType = 'Invalid' | 'Unknown' | 'IaasVMContainer' | 'IaasVMServiceContainer' | 'DPMContainer' | 'AzureBackupServerContainer' | 'MABContainer' | 'Cluster' | 'AzureSqlContainer' | 'Windows' | 'VCenter' | 'VMAppContainer' | 'SQLAGWorkLoadContainer' | 'StorageContainer' | 'GenericContainer'; /** - * Defines values for BackupType. - * Possible values include: 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * Defines values for BackupItemType. + * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' * @readonly * @enum {string} */ -export type BackupType = 'Invalid' | 'Full' | 'Differential' | 'Log' | 'CopyOnlyFull'; +export type BackupItemType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase'; /** - * Defines values for OperationType. - * Possible values include: 'Invalid', 'Register', 'Reregister' + * Defines values for OperationStatusValues. + * Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', 'Canceled' * @readonly * @enum {string} */ -export type OperationType = 'Invalid' | 'Register' | 'Reregister'; +export type OperationStatusValues = 'Invalid' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; /** - * Defines values for ContainerType. - * Possible values include: 'Invalid', 'Unknown', 'IaasVMContainer', 'IaasVMServiceContainer', - * 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', - * 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - * 'GenericContainer' + * Defines values for RehydrationPriority. + * Possible values include: 'Standard', 'High' * @readonly * @enum {string} */ -export type ContainerType = 'Invalid' | 'Unknown' | 'IaasVMContainer' | 'IaasVMServiceContainer' | 'DPMContainer' | 'AzureBackupServerContainer' | 'MABContainer' | 'Cluster' | 'AzureSqlContainer' | 'Windows' | 'VCenter' | 'VMAppContainer' | 'SQLAGWorkLoadContainer' | 'StorageContainer' | 'GenericContainer'; +export type RehydrationPriority = 'Standard' | 'High'; + +/** + * Contains response data for the validate operation. + */ +export type ProtectionIntentValidateResponse = PreValidateEnableBackupResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PreValidateEnableBackupResponse; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProtectionIntentGetResponse = ProtectionIntentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProtectionIntentResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ProtectionIntentCreateOrUpdateResponse = ProtectionIntentResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProtectionIntentResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BackupStatusGetResponse = BackupStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupStatusResponse; + }; +}; + +/** + * Contains response data for the validate operation. + */ +export type FeatureSupportValidateResponse = AzureVMResourceFeatureSupportResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureVMResourceFeatureSupportResponse; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BackupProtectionIntentListResponse = ProtectionIntentResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProtectionIntentResourceList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type BackupProtectionIntentListNextResponse = ProtectionIntentResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProtectionIntentResourceList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BackupUsageSummariesListResponse = BackupManagementUsageList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupManagementUsageList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = ClientDiscoveryResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClientDiscoveryResponse; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = ClientDiscoveryResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClientDiscoveryResponse; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type BackupResourceVaultConfigsGetResponse = BackupResourceVaultConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupResourceVaultConfigResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BackupResourceVaultConfigsUpdateResponse = BackupResourceVaultConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupResourceVaultConfigResource; + }; +}; /** - * Defines values for BackupItemType. - * Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - * 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - * 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - * @readonly - * @enum {string} + * Contains response data for the put operation. */ -export type BackupItemType = 'Invalid' | 'VM' | 'FileFolder' | 'AzureSqlDb' | 'SQLDB' | 'Exchange' | 'Sharepoint' | 'VMwareVM' | 'SystemState' | 'Client' | 'GenericDataSource' | 'SQLDataBase' | 'AzureFileShare' | 'SAPHanaDatabase' | 'SAPAseDatabase'; +export type BackupResourceVaultConfigsPutResponse = BackupResourceVaultConfigResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupResourceVaultConfigResource; + }; +}; /** * Contains response data for the get operation. */ -export type PrivateEndpointConnectionGetResponse = PrivateEndpointConnectionResource & { +export type BackupResourceEncryptionConfigsGetResponse = BackupResourceEncryptionConfigResource & { /** * The underlying HTTP response. */ @@ -8239,14 +9753,14 @@ export type PrivateEndpointConnectionGetResponse = PrivateEndpointConnectionReso /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionResource; + parsedBody: BackupResourceEncryptionConfigResource; }; }; /** - * Contains response data for the put operation. + * Contains response data for the get operation. */ -export type PrivateEndpointConnectionPutResponse = PrivateEndpointConnectionResource & { +export type PrivateEndpointConnectionGetResponse = PrivateEndpointConnectionResource & { /** * The underlying HTTP response. */ @@ -8264,9 +9778,9 @@ export type PrivateEndpointConnectionPutResponse = PrivateEndpointConnectionReso }; /** - * Contains response data for the beginPut operation. + * Contains response data for the put operation. */ -export type PrivateEndpointConnectionBeginPutResponse = PrivateEndpointConnectionResource & { +export type PrivateEndpointConnectionPutResponse = PrivateEndpointConnectionResource & { /** * The underlying HTTP response. */ @@ -8284,9 +9798,9 @@ export type PrivateEndpointConnectionBeginPutResponse = PrivateEndpointConnectio }; /** - * Contains response data for the getOperationStatus operation. + * Contains response data for the beginPut operation. */ -export type GetOperationStatusResponse = OperationStatus & { +export type PrivateEndpointConnectionBeginPutResponse = PrivateEndpointConnectionResource & { /** * The underlying HTTP response. */ @@ -8299,14 +9813,14 @@ export type GetOperationStatusResponse = OperationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus; + parsedBody: PrivateEndpointConnectionResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getOperationStatus operation. */ -export type BackupResourceVaultConfigsGetResponse = BackupResourceVaultConfigResource & { +export type PrivateEndpointGetOperationStatusResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -8319,14 +9833,14 @@ export type BackupResourceVaultConfigsGetResponse = BackupResourceVaultConfigRes /** * The response body as parsed JSON or XML */ - parsedBody: BackupResourceVaultConfigResource; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getOperationStatus operation. */ -export type BackupResourceVaultConfigsUpdateResponse = BackupResourceVaultConfigResource & { +export type GetOperationStatusResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -8339,14 +9853,14 @@ export type BackupResourceVaultConfigsUpdateResponse = BackupResourceVaultConfig /** * The response body as parsed JSON or XML */ - parsedBody: BackupResourceVaultConfigResource; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the put operation. + * Contains response data for the get operation. */ -export type BackupResourceVaultConfigsPutResponse = BackupResourceVaultConfigResource & { +export type BMSPrepareDataMoveOperationResultGetResponse = VaultStorageConfigOperationResultResponseUnion & { /** * The underlying HTTP response. */ @@ -8359,7 +9873,7 @@ export type BackupResourceVaultConfigsPutResponse = BackupResourceVaultConfigRes /** * The response body as parsed JSON or XML */ - parsedBody: BackupResourceVaultConfigResource; + parsedBody: VaultStorageConfigOperationResultResponseUnion; }; }; @@ -8463,6 +9977,26 @@ export type RecoveryPointsGetResponse = RecoveryPointResource & { }; }; +/** + * Contains response data for the getAccessToken operation. + */ +export type RecoveryPointsGetAccessTokenResponse = CrrAccessTokenResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CrrAccessTokenResource; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -8724,9 +10258,9 @@ export type OperationValidateResponse = ValidateOperationsResponse & { }; /** - * Contains response data for the validate operation. + * Contains response data for the list operation. */ -export type ProtectionIntentValidateResponse = PreValidateEnableBackupResponse & { +export type BackupEnginesListResponse = BackupEngineBaseResourceList & { /** * The underlying HTTP response. */ @@ -8739,14 +10273,14 @@ export type ProtectionIntentValidateResponse = PreValidateEnableBackupResponse & /** * The response body as parsed JSON or XML */ - parsedBody: PreValidateEnableBackupResponse; + parsedBody: BackupEngineBaseResourceList; }; }; /** * Contains response data for the get operation. */ -export type ProtectionIntentGetResponse = ProtectionIntentResource & { +export type BackupEnginesGetResponse = BackupEngineBaseResource & { /** * The underlying HTTP response. */ @@ -8759,14 +10293,14 @@ export type ProtectionIntentGetResponse = ProtectionIntentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionIntentResource; + parsedBody: BackupEngineBaseResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type ProtectionIntentCreateOrUpdateResponse = ProtectionIntentResource & { +export type BackupEnginesListNextResponse = BackupEngineBaseResourceList & { /** * The underlying HTTP response. */ @@ -8779,14 +10313,14 @@ export type ProtectionIntentCreateOrUpdateResponse = ProtectionIntentResource & /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionIntentResource; + parsedBody: BackupEngineBaseResourceList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type BackupStatusGetResponse = BackupStatusResponse & { +export type ProtectableContainersListResponse = ProtectableContainerResourceList & { /** * The underlying HTTP response. */ @@ -8799,14 +10333,14 @@ export type BackupStatusGetResponse = BackupStatusResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupStatusResponse; + parsedBody: ProtectableContainerResourceList; }; }; /** - * Contains response data for the validate operation. + * Contains response data for the listNext operation. */ -export type FeatureSupportValidateResponse = AzureVMResourceFeatureSupportResponse & { +export type ProtectableContainersListNextResponse = ProtectableContainerResourceList & { /** * The underlying HTTP response. */ @@ -8819,14 +10353,14 @@ export type FeatureSupportValidateResponse = AzureVMResourceFeatureSupportRespon /** * The response body as parsed JSON or XML */ - parsedBody: AzureVMResourceFeatureSupportResponse; + parsedBody: ProtectableContainerResourceList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type BackupProtectionIntentListResponse = ProtectionIntentResourceList & { +export type ProtectionContainersGetResponse = ProtectionContainerResource & { /** * The underlying HTTP response. */ @@ -8839,14 +10373,14 @@ export type BackupProtectionIntentListResponse = ProtectionIntentResourceList & /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionIntentResourceList; + parsedBody: ProtectionContainerResource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the register operation. */ -export type BackupProtectionIntentListNextResponse = ProtectionIntentResourceList & { +export type ProtectionContainersRegisterResponse = ProtectionContainerResource & { /** * The underlying HTTP response. */ @@ -8859,14 +10393,14 @@ export type BackupProtectionIntentListNextResponse = ProtectionIntentResourceLis /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionIntentResourceList; + parsedBody: ProtectionContainerResource; }; }; /** * Contains response data for the list operation. */ -export type BackupUsageSummariesListResponse = BackupManagementUsageList & { +export type BackupWorkloadItemsListResponse = WorkloadItemResourceList & { /** * The underlying HTTP response. */ @@ -8879,14 +10413,14 @@ export type BackupUsageSummariesListResponse = BackupManagementUsageList & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupManagementUsageList; + parsedBody: WorkloadItemResourceList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type BackupEnginesListResponse = BackupEngineBaseResourceList & { +export type BackupWorkloadItemsListNextResponse = WorkloadItemResourceList & { /** * The underlying HTTP response. */ @@ -8899,14 +10433,14 @@ export type BackupEnginesListResponse = BackupEngineBaseResourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupEngineBaseResourceList; + parsedBody: WorkloadItemResourceList; }; }; /** * Contains response data for the get operation. */ -export type BackupEnginesGetResponse = BackupEngineBaseResource & { +export type ProtectionContainerOperationResultsGetResponse = ProtectionContainerResource & { /** * The underlying HTTP response. */ @@ -8919,14 +10453,14 @@ export type BackupEnginesGetResponse = BackupEngineBaseResource & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupEngineBaseResource; + parsedBody: ProtectionContainerResource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type BackupEnginesListNextResponse = BackupEngineBaseResourceList & { +export type ProtectedItemOperationStatusesGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -8939,14 +10473,14 @@ export type BackupEnginesListNextResponse = BackupEngineBaseResourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: BackupEngineBaseResourceList; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ProtectableContainersListResponse = ProtectableContainerResourceList & { +export type BackupOperationStatusesGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -8959,14 +10493,14 @@ export type ProtectableContainersListResponse = ProtectableContainerResourceList /** * The response body as parsed JSON or XML */ - parsedBody: ProtectableContainerResourceList; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ProtectableContainersListNextResponse = ProtectableContainerResourceList & { +export type ProtectionPolicyOperationStatusesGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -8979,14 +10513,14 @@ export type ProtectableContainersListNextResponse = ProtectableContainerResource /** * The response body as parsed JSON or XML */ - parsedBody: ProtectableContainerResourceList; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ProtectionContainersGetResponse = ProtectionContainerResource & { +export type BackupProtectableItemsListResponse = WorkloadProtectableItemResourceList & { /** * The underlying HTTP response. */ @@ -8999,14 +10533,14 @@ export type ProtectionContainersGetResponse = ProtectionContainerResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerResource; + parsedBody: WorkloadProtectableItemResourceList; }; }; /** - * Contains response data for the register operation. + * Contains response data for the listNext operation. */ -export type ProtectionContainersRegisterResponse = ProtectionContainerResource & { +export type BackupProtectableItemsListNextResponse = WorkloadProtectableItemResourceList & { /** * The underlying HTTP response. */ @@ -9019,14 +10553,14 @@ export type ProtectionContainersRegisterResponse = ProtectionContainerResource & /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerResource; + parsedBody: WorkloadProtectableItemResourceList; }; }; /** * Contains response data for the list operation. */ -export type BackupWorkloadItemsListResponse = WorkloadItemResourceList & { +export type BackupProtectionContainersListResponse = ProtectionContainerResourceList & { /** * The underlying HTTP response. */ @@ -9039,14 +10573,14 @@ export type BackupWorkloadItemsListResponse = WorkloadItemResourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkloadItemResourceList; + parsedBody: ProtectionContainerResourceList; }; }; /** * Contains response data for the listNext operation. */ -export type BackupWorkloadItemsListNextResponse = WorkloadItemResourceList & { +export type BackupProtectionContainersListNextResponse = ProtectionContainerResourceList & { /** * The underlying HTTP response. */ @@ -9059,14 +10593,14 @@ export type BackupWorkloadItemsListNextResponse = WorkloadItemResourceList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkloadItemResourceList; + parsedBody: ProtectionContainerResourceList; }; }; /** * Contains response data for the get operation. */ -export type ProtectionContainerOperationResultsGetResponse = ProtectionContainerResource & { +export type SecurityPINsGetResponse = TokenInformation & { /** * The underlying HTTP response. */ @@ -9079,14 +10613,14 @@ export type ProtectionContainerOperationResultsGetResponse = ProtectionContainer /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerResource; + parsedBody: TokenInformation; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ProtectedItemOperationStatusesGetResponse = OperationStatus & { +export type RecoveryPointsRecommendedForMoveListResponse = RecoveryPointResourceList & { /** * The underlying HTTP response. */ @@ -9099,14 +10633,34 @@ export type ProtectedItemOperationStatusesGetResponse = OperationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus; + parsedBody: RecoveryPointResourceList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type RecoveryPointsRecommendedForMoveListNextResponse = RecoveryPointResourceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoveryPointResourceList; }; }; /** * Contains response data for the get operation. */ -export type BackupOperationStatusesGetResponse = OperationStatus & { +export type AadPropertiesGetResponse = AADPropertiesResource & { /** * The underlying HTTP response. */ @@ -9119,14 +10673,14 @@ export type BackupOperationStatusesGetResponse = OperationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus; + parsedBody: AADPropertiesResource; }; }; /** * Contains response data for the get operation. */ -export type ProtectionPolicyOperationStatusesGetResponse = OperationStatus & { +export type BackupCrrJobDetailsGetResponse = JobResource & { /** * The underlying HTTP response. */ @@ -9139,14 +10693,14 @@ export type ProtectionPolicyOperationStatusesGetResponse = OperationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus; + parsedBody: JobResource; }; }; /** * Contains response data for the list operation. */ -export type BackupProtectableItemsListResponse = WorkloadProtectableItemResourceList & { +export type BackupCrrJobsListResponse = JobResourceList & { /** * The underlying HTTP response. */ @@ -9159,14 +10713,14 @@ export type BackupProtectableItemsListResponse = WorkloadProtectableItemResource /** * The response body as parsed JSON or XML */ - parsedBody: WorkloadProtectableItemResourceList; + parsedBody: JobResourceList; }; }; /** * Contains response data for the listNext operation. */ -export type BackupProtectableItemsListNextResponse = WorkloadProtectableItemResourceList & { +export type BackupCrrJobsListNextResponse = JobResourceList & { /** * The underlying HTTP response. */ @@ -9179,14 +10733,14 @@ export type BackupProtectableItemsListNextResponse = WorkloadProtectableItemReso /** * The response body as parsed JSON or XML */ - parsedBody: WorkloadProtectableItemResourceList; + parsedBody: JobResourceList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type BackupProtectionContainersListResponse = ProtectionContainerResourceList & { +export type CrrOperationStatusGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -9199,14 +10753,14 @@ export type BackupProtectionContainersListResponse = ProtectionContainerResource /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerResourceList; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type BackupProtectionContainersListNextResponse = ProtectionContainerResourceList & { +export type BackupResourceStorageConfigsGetResponse = BackupResourceConfigResource & { /** * The underlying HTTP response. */ @@ -9219,14 +10773,14 @@ export type BackupProtectionContainersListNextResponse = ProtectionContainerReso /** * The response body as parsed JSON or XML */ - parsedBody: ProtectionContainerResourceList; + parsedBody: BackupResourceConfigResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type SecurityPINsGetResponse = TokenInformation & { +export type BackupResourceStorageConfigsUpdateResponse = BackupResourceConfigResource & { /** * The underlying HTTP response. */ @@ -9239,14 +10793,14 @@ export type SecurityPINsGetResponse = TokenInformation & { /** * The response body as parsed JSON or XML */ - parsedBody: TokenInformation; + parsedBody: BackupResourceConfigResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type BackupResourceStorageConfigsGetResponse = BackupResourceConfigResource & { +export type RecoveryPointsCrrListResponse = RecoveryPointResourceList & { /** * The underlying HTTP response. */ @@ -9259,14 +10813,14 @@ export type BackupResourceStorageConfigsGetResponse = BackupResourceConfigResour /** * The response body as parsed JSON or XML */ - parsedBody: BackupResourceConfigResource; + parsedBody: RecoveryPointResourceList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type BackupResourceStorageConfigsUpdateResponse = BackupResourceConfigResource & { +export type RecoveryPointsCrrListNextResponse = RecoveryPointResourceList & { /** * The underlying HTTP response. */ @@ -9279,14 +10833,14 @@ export type BackupResourceStorageConfigsUpdateResponse = BackupResourceConfigRes /** * The response body as parsed JSON or XML */ - parsedBody: BackupResourceConfigResource; + parsedBody: RecoveryPointResourceList; }; }; /** * Contains response data for the list operation. */ -export type OperationsListResponse = ClientDiscoveryResponse & { +export type BackupProtectedItemsCrrListResponse = ProtectedItemResourceList & { /** * The underlying HTTP response. */ @@ -9299,14 +10853,14 @@ export type OperationsListResponse = ClientDiscoveryResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ClientDiscoveryResponse; + parsedBody: ProtectedItemResourceList; }; }; /** * Contains response data for the listNext operation. */ -export type OperationsListNextResponse = ClientDiscoveryResponse & { +export type BackupProtectedItemsCrrListNextResponse = ProtectedItemResourceList & { /** * The underlying HTTP response. */ @@ -9319,6 +10873,6 @@ export type OperationsListNextResponse = ClientDiscoveryResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ClientDiscoveryResponse; + parsedBody: ProtectedItemResourceList; }; }; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/itemLevelRecoveryConnectionsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/itemLevelRecoveryConnectionsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/itemLevelRecoveryConnectionsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/itemLevelRecoveryConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobCancellationsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobCancellationsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobCancellationsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobCancellationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobDetailsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobDetailsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobDetailsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobOperationResultsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/jobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts index 097155351ae7..84d5dbce201c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,42 +12,38 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const OperationStatusError: msRest.CompositeMapper = { - serializedName: "OperationStatusError", +export const BackupResourceEncryptionConfig: msRest.CompositeMapper = { + serializedName: "BackupResourceEncryptionConfig", type: { name: "Composite", - className: "OperationStatusError", + className: "BackupResourceEncryptionConfig", modelProperties: { - code: { - serializedName: "code", + encryptionAtRestType: { + serializedName: "encryptionAtRestType", type: { name: "String" } }, - message: { - serializedName: "message", + keyUri: { + serializedName: "keyUri", type: { name: "String" } - } - } - } -}; - -export const OperationStatusExtendedInfo: msRest.CompositeMapper = { - serializedName: "OperationStatusExtendedInfo", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "objectType", - clientName: "objectType" - }, - uberParent: "OperationStatusExtendedInfo", - className: "OperationStatusExtendedInfo", - modelProperties: { - objectType: { - required: true, - serializedName: "objectType", + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + lastUpdateStatus: { + serializedName: "lastUpdateStatus", + type: { + name: "String" + } + }, + infrastructureEncryptionState: { + serializedName: "infrastructureEncryptionState", type: { name: "String" } @@ -56,54 +52,72 @@ export const OperationStatusExtendedInfo: msRest.CompositeMapper = { } }; -export const OperationStatus: msRest.CompositeMapper = { - serializedName: "OperationStatus", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "OperationStatus", + className: "Resource", modelProperties: { id: { + readOnly: true, serializedName: "id", type: { name: "String" } }, name: { + readOnly: true, serializedName: "name", type: { name: "String" } }, - status: { - serializedName: "status", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + location: { + serializedName: "location", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - error: { - serializedName: "error", + eTag: { + serializedName: "eTag", type: { - name: "Composite", - className: "OperationStatusError" + name: "String" } - }, + } + } + } +}; + +export const BackupResourceEncryptionConfigResource: msRest.CompositeMapper = { + serializedName: "BackupResourceEncryptionConfigResource", + type: { + name: "Composite", + className: "BackupResourceEncryptionConfigResource", + modelProperties: { + ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "OperationStatusExtendedInfo" + className: "BackupResourceEncryptionConfig" } } } @@ -184,60 +198,6 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - } - } - } -}; - export const PrivateEndpointConnectionResource: msRest.CompositeMapper = { serializedName: "PrivateEndpointConnectionResource", type: { @@ -280,11 +240,11 @@ export const ErrorAdditionalInfo: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const NewErrorResponseError: msRest.CompositeMapper = { + serializedName: "NewErrorResponse_error", type: { name: "Composite", - className: "ErrorResponse", + className: "NewErrorResponseError", modelProperties: { code: { readOnly: true, @@ -315,7 +275,7 @@ export const ErrorResponse: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "NewErrorResponse" } } } @@ -337,11 +297,28 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const HealthDetails: msRest.CompositeMapper = { - serializedName: "HealthDetails", +export const NewErrorResponse: msRest.CompositeMapper = { + serializedName: "NewErrorResponse", + type: { + name: "Composite", + className: "NewErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "NewErrorResponseError" + } + } + } + } +}; + +export const ResourceHealthDetails: msRest.CompositeMapper = { + serializedName: "ResourceHealthDetails", type: { name: "Composite", - className: "HealthDetails", + className: "ResourceHealthDetails", modelProperties: { code: { readOnly: true, @@ -380,6 +357,34 @@ export const HealthDetails: msRest.CompositeMapper = { } }; +export const KPIResourceHealthDetails: msRest.CompositeMapper = { + serializedName: "KPIResourceHealthDetails", + type: { + name: "Composite", + className: "KPIResourceHealthDetails", + modelProperties: { + resourceHealthStatus: { + serializedName: "resourceHealthStatus", + type: { + name: "String" + } + }, + resourceHealthDetails: { + serializedName: "resourceHealthDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceHealthDetails" + } + } + } + } + } + } +}; + export const AzureFileshareProtectedItemExtendedInfo: msRest.CompositeMapper = { serializedName: "AzureFileshareProtectedItemExtendedInfo", type: { @@ -549,24 +554,6 @@ export const AzureFileshareProtectedItem: msRest.CompositeMapper = { name: "String" } }, - healthStatus: { - serializedName: "healthStatus", - type: { - name: "String" - } - }, - healthDetails: { - serializedName: "healthDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthDetails" - } - } - } - }, lastBackupStatus: { serializedName: "lastBackupStatus", type: { @@ -579,12 +566,30 @@ export const AzureFileshareProtectedItem: msRest.CompositeMapper = { name: "DateTime" } }, + kpisHealths: { + serializedName: "kpisHealths", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "KPIResourceHealthDetails" + } + } + } + }, extendedInfo: { serializedName: "extendedInfo", type: { name: "Composite", className: "AzureFileshareProtectedItemExtendedInfo" } + }, + healthStatus: { + serializedName: "healthStatus", + type: { + name: "String" + } } } } @@ -1045,6 +1050,18 @@ export const AzureIaaSVMProtectedItem: msRest.CompositeMapper = { } } }, + kpisHealths: { + serializedName: "kpisHealths", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "KPIResourceHealthDetails" + } + } + } + }, lastBackupStatus: { serializedName: "lastBackupStatus", type: { @@ -1156,7 +1173,7 @@ export const AzureIaaSVMHealthDetails: msRest.CompositeMapper = { name: "Composite", className: "AzureIaaSVMHealthDetails", modelProperties: { - ...HealthDetails.type.modelProperties + ...ResourceHealthDetails.type.modelProperties } } }; @@ -1925,30 +1942,24 @@ export const AzureVmWorkloadProtectedItem: msRest.CompositeMapper = { name: "String" } }, - healthStatus: { - serializedName: "healthStatus", + extendedInfo: { + serializedName: "extendedInfo", type: { - name: "String" + name: "Composite", + className: "AzureVmWorkloadProtectedItemExtendedInfo" } }, - healthDetails: { - serializedName: "healthDetails", + kpisHealths: { + serializedName: "kpisHealths", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "HealthDetails" + className: "KPIResourceHealthDetails" } } } - }, - extendedInfo: { - serializedName: "extendedInfo", - type: { - name: "Composite", - className: "AzureVmWorkloadProtectedItemExtendedInfo" - } } } } @@ -2203,6 +2214,30 @@ export const AzureWorkloadRecoveryPoint: msRest.CompositeMapper = { type: { name: "String" } + }, + recoveryPointTierDetails: { + serializedName: "recoveryPointTierDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoveryPointTierInformation" + } + } + } + }, + recoveryPointMoveReadinessInfo: { + serializedName: "recoveryPointMoveReadinessInfo", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RecoveryPointMoveReadinessInfo" + } + } + } } } } @@ -2301,8 +2336,76 @@ export const AzureWorkloadPointInTimeRestoreRequest: msRest.CompositeMapper = { } }; -export const TargetRestoreInfo: msRest.CompositeMapper = { - serializedName: "TargetRestoreInfo", +export const RecoveryPointTierInformation: msRest.CompositeMapper = { + serializedName: "RecoveryPointTierInformation", + type: { + name: "Composite", + className: "RecoveryPointTierInformation", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "InstantRP", + "HardenedRP", + "ArchivedRP" + ] + } + }, + status: { + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "Valid", + "Disabled", + "Deleted", + "Rehydrated" + ] + } + }, + extendedInfo: { + serializedName: "extendedInfo", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RecoveryPointMoveReadinessInfo: msRest.CompositeMapper = { + serializedName: "RecoveryPointMoveReadinessInfo", + type: { + name: "Composite", + className: "RecoveryPointMoveReadinessInfo", + modelProperties: { + isReadyForMove: { + serializedName: "isReadyForMove", + type: { + name: "Boolean" + } + }, + additionalInfo: { + serializedName: "additionalInfo", + type: { + name: "String" + } + } + } + } +}; + +export const TargetRestoreInfo: msRest.CompositeMapper = { + serializedName: "TargetRestoreInfo", type: { name: "Composite", className: "TargetRestoreInfo", @@ -2586,84 +2689,128 @@ export const SQLDataDirectoryMapping: msRest.CompositeMapper = { } }; -export const BackupResourceVaultConfig: msRest.CompositeMapper = { - serializedName: "BackupResourceVaultConfig", +export const BEKDetails: msRest.CompositeMapper = { + serializedName: "BEKDetails", type: { name: "Composite", - className: "BackupResourceVaultConfig", + className: "BEKDetails", modelProperties: { - storageModelType: { - serializedName: "storageModelType", + secretUrl: { + serializedName: "secretUrl", type: { name: "String" } }, - storageType: { - serializedName: "storageType", + secretVaultId: { + serializedName: "secretVaultId", type: { name: "String" } }, - storageTypeState: { - serializedName: "storageTypeState", + secretData: { + serializedName: "secretData", type: { name: "String" } + } + } + } +}; + +export const BMSRPQueryObject: msRest.CompositeMapper = { + serializedName: "BMSRPQueryObject", + type: { + name: "Composite", + className: "BMSRPQueryObject", + modelProperties: { + startDate: { + serializedName: "startDate", + type: { + name: "DateTime" + } }, - enhancedSecurityState: { - serializedName: "enhancedSecurityState", + endDate: { + serializedName: "endDate", type: { - name: "String" + name: "DateTime" } }, - softDeleteFeatureState: { - serializedName: "softDeleteFeatureState", + restorePointQueryType: { + serializedName: "restorePointQueryType", type: { name: "String" } + }, + extendedInfo: { + serializedName: "extendedInfo", + type: { + name: "Boolean" + } + }, + moveReadyRPOnly: { + serializedName: "moveReadyRPOnly", + type: { + name: "Boolean" + } } } } }; -export const BackupResourceVaultConfigResource: msRest.CompositeMapper = { - serializedName: "BackupResourceVaultConfigResource", +export const ClientDiscoveryDisplay: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryDisplay", type: { name: "Composite", - className: "BackupResourceVaultConfigResource", + className: "ClientDiscoveryDisplay", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + provider: { + serializedName: "provider", type: { - name: "Composite", - className: "BackupResourceVaultConfig" + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" } } } } }; -export const BEKDetails: msRest.CompositeMapper = { - serializedName: "BEKDetails", +export const ClientDiscoveryForLogSpecification: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryForLogSpecification", type: { name: "Composite", - className: "BEKDetails", + className: "ClientDiscoveryForLogSpecification", modelProperties: { - secretUrl: { - serializedName: "secretUrl", + name: { + serializedName: "name", type: { name: "String" } }, - secretVaultId: { - serializedName: "secretVaultId", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - secretData: { - serializedName: "secretData", + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -2672,34 +2819,75 @@ export const BEKDetails: msRest.CompositeMapper = { } }; -export const BMSRPQueryObject: msRest.CompositeMapper = { - serializedName: "BMSRPQueryObject", +export const ClientDiscoveryForServiceSpecification: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryForServiceSpecification", type: { name: "Composite", - className: "BMSRPQueryObject", + className: "ClientDiscoveryForServiceSpecification", modelProperties: { - startDate: { - serializedName: "startDate", + logSpecifications: { + serializedName: "logSpecifications", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClientDiscoveryForLogSpecification" + } + } + } + } + } + } +}; + +export const ClientDiscoveryForProperties: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryForProperties", + type: { + name: "Composite", + className: "ClientDiscoveryForProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ClientDiscoveryForServiceSpecification" + } + } + } + } +}; + +export const ClientDiscoveryValueForSingleApi: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryValueForSingleApi", + type: { + name: "Composite", + className: "ClientDiscoveryValueForSingleApi", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" } }, - endDate: { - serializedName: "endDate", + display: { + serializedName: "display", type: { - name: "DateTime" + name: "Composite", + className: "ClientDiscoveryDisplay" } }, - restorePointQueryType: { - serializedName: "restorePointQueryType", + origin: { + serializedName: "origin", type: { name: "String" } }, - extendedInfo: { - serializedName: "extendedInfo", + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "ClientDiscoveryForProperties" } } } @@ -3444,53 +3632,20 @@ export const KeyAndSecretDetails: msRest.CompositeMapper = { } }; -export const RecoveryPointTierInformation: msRest.CompositeMapper = { - serializedName: "RecoveryPointTierInformation", +export const RecoveryPointDiskConfiguration: msRest.CompositeMapper = { + serializedName: "RecoveryPointDiskConfiguration", type: { name: "Composite", - className: "RecoveryPointTierInformation", + className: "RecoveryPointDiskConfiguration", modelProperties: { - type: { - serializedName: "type", + numberOfDisksIncludedInBackup: { + serializedName: "numberOfDisksIncludedInBackup", type: { - name: "Enum", - allowedValues: [ - "Invalid", - "InstantRP", - "HardenedRP" - ] + name: "Number" } }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Invalid", - "Valid", - "Disabled", - "Deleted" - ] - } - } - } - } -}; - -export const RecoveryPointDiskConfiguration: msRest.CompositeMapper = { - serializedName: "RecoveryPointDiskConfiguration", - type: { - name: "Composite", - className: "RecoveryPointDiskConfiguration", - modelProperties: { - numberOfDisksIncludedInBackup: { - serializedName: "numberOfDisksIncludedInBackup", - type: { - name: "Number" - } - }, - numberOfDisksAttachedToVm: { - serializedName: "numberOfDisksAttachedToVm", + numberOfDisksAttachedToVm: { + serializedName: "numberOfDisksAttachedToVm", type: { name: "Number" } @@ -3622,6 +3777,29 @@ export const IaasVMRecoveryPoint: msRest.CompositeMapper = { name: "Composite", className: "RecoveryPointDiskConfiguration" } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + recoveryPointMoveReadinessInfo: { + serializedName: "recoveryPointMoveReadinessInfo", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RecoveryPointMoveReadinessInfo" + } + } + } } } } @@ -3731,6 +3909,29 @@ export const IaasVMRestoreRequest: msRest.CompositeMapper = { } } } + }, + restoreWithManagedDisks: { + serializedName: "restoreWithManagedDisks", + type: { + name: "Boolean" + } + }, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -4407,6 +4608,161 @@ export const OperationResultInfo: msRest.CompositeMapper = { } }; +export const PrepareDataMoveRequest: msRest.CompositeMapper = { + serializedName: "PrepareDataMoveRequest", + type: { + name: "Composite", + className: "PrepareDataMoveRequest", + modelProperties: { + targetResourceId: { + required: true, + serializedName: "targetResourceId", + type: { + name: "String" + } + }, + targetRegion: { + required: true, + serializedName: "targetRegion", + type: { + name: "String" + } + }, + dataMoveLevel: { + required: true, + serializedName: "dataMoveLevel", + type: { + name: "String" + } + }, + sourceContainerArmIds: { + serializedName: "sourceContainerArmIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ignoreMoved: { + serializedName: "ignoreMoved", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VaultStorageConfigOperationResultResponse: msRest.CompositeMapper = { + serializedName: "VaultStorageConfigOperationResultResponse", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType" + }, + uberParent: "VaultStorageConfigOperationResultResponse", + className: "VaultStorageConfigOperationResultResponse", + modelProperties: { + objectType: { + required: true, + serializedName: "objectType", + type: { + name: "String" + } + } + } + } +}; + +export const PrepareDataMoveResponse: msRest.CompositeMapper = { + serializedName: "PrepareDataMoveResponse", + type: { + name: "Composite", + polymorphicDiscriminator: VaultStorageConfigOperationResultResponse.type.polymorphicDiscriminator, + uberParent: "VaultStorageConfigOperationResultResponse", + className: "PrepareDataMoveResponse", + modelProperties: { + ...VaultStorageConfigOperationResultResponse.type.modelProperties, + correlationId: { + serializedName: "correlationId", + type: { + name: "String" + } + }, + sourceVaultProperties: { + serializedName: "sourceVaultProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TriggerDataMoveRequest: msRest.CompositeMapper = { + serializedName: "TriggerDataMoveRequest", + type: { + name: "Composite", + className: "TriggerDataMoveRequest", + modelProperties: { + sourceResourceId: { + required: true, + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + sourceRegion: { + required: true, + serializedName: "sourceRegion", + type: { + name: "String" + } + }, + dataMoveLevel: { + required: true, + serializedName: "dataMoveLevel", + type: { + name: "String" + } + }, + correlationId: { + required: true, + serializedName: "correlationId", + type: { + name: "String" + } + }, + sourceContainerArmIds: { + serializedName: "sourceContainerArmIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + pauseGC: { + serializedName: "pauseGC", + type: { + name: "Boolean" + } + } + } + } +}; + export const OperationWorkerResponse: msRest.CompositeMapper = { serializedName: "OperationWorkerResponse", type: { @@ -4856,85 +5212,38 @@ export const ValidateOperationsResponse: msRest.CompositeMapper = { } }; -export const FeatureSupportRequest: msRest.CompositeMapper = { - serializedName: "FeatureSupportRequest", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "featureType", - clientName: "featureType" - }, - uberParent: "FeatureSupportRequest", - className: "FeatureSupportRequest", - modelProperties: { - featureType: { - required: true, - serializedName: "featureType", - type: { - name: "String" - } - } - } - } -}; - -export const AzureBackupGoalFeatureSupportRequest: msRest.CompositeMapper = { - serializedName: "AzureBackupGoals", - type: { - name: "Composite", - polymorphicDiscriminator: FeatureSupportRequest.type.polymorphicDiscriminator, - uberParent: "FeatureSupportRequest", - className: "AzureBackupGoalFeatureSupportRequest", - modelProperties: { - ...FeatureSupportRequest.type.modelProperties - } - } -}; - -export const ProtectionIntent: msRest.CompositeMapper = { - serializedName: "ProtectionIntent", +export const BackupResourceVaultConfig: msRest.CompositeMapper = { + serializedName: "BackupResourceVaultConfig", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "protectionIntentItemType", - clientName: "protectionIntentItemType" - }, - uberParent: "ProtectionIntent", - className: "ProtectionIntent", + className: "BackupResourceVaultConfig", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", - type: { - name: "String" - } - }, - sourceResourceId: { - serializedName: "sourceResourceId", + storageModelType: { + serializedName: "storageModelType", type: { name: "String" } }, - itemId: { - serializedName: "itemId", + storageType: { + serializedName: "storageType", type: { name: "String" } }, - policyId: { - serializedName: "policyId", + storageTypeState: { + serializedName: "storageTypeState", type: { name: "String" } }, - protectionState: { - serializedName: "protectionState", + enhancedSecurityState: { + serializedName: "enhancedSecurityState", type: { name: "String" } }, - protectionIntentItemType: { - required: true, - serializedName: "protectionIntentItemType", + softDeleteFeatureState: { + serializedName: "softDeleteFeatureState", type: { name: "String" } @@ -4943,200 +5252,170 @@ export const ProtectionIntent: msRest.CompositeMapper = { } }; -export const AzureRecoveryServiceVaultProtectionIntent: msRest.CompositeMapper = { - serializedName: "RecoveryServiceVaultItem", +export const BackupResourceVaultConfigResource: msRest.CompositeMapper = { + serializedName: "BackupResourceVaultConfigResource", type: { name: "Composite", - polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, - uberParent: "ProtectionIntent", - className: "AzureRecoveryServiceVaultProtectionIntent", + className: "BackupResourceVaultConfigResource", modelProperties: { - ...ProtectionIntent.type.modelProperties - } - } -}; - -export const AzureResourceProtectionIntent: msRest.CompositeMapper = { - serializedName: "AzureResourceItem", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, - uberParent: "ProtectionIntent", - className: "AzureResourceProtectionIntent", - modelProperties: { - ...ProtectionIntent.type.modelProperties, - friendlyName: { - serializedName: "friendlyName", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "BackupResourceVaultConfig" } } } } }; -export const AzureVMResourceFeatureSupportRequest: msRest.CompositeMapper = { - serializedName: "AzureVMResourceBackup", +export const VaultJobErrorInfo: msRest.CompositeMapper = { + serializedName: "VaultJobErrorInfo", type: { name: "Composite", - polymorphicDiscriminator: FeatureSupportRequest.type.polymorphicDiscriminator, - uberParent: "FeatureSupportRequest", - className: "AzureVMResourceFeatureSupportRequest", + className: "VaultJobErrorInfo", modelProperties: { - ...FeatureSupportRequest.type.modelProperties, - vmSize: { - serializedName: "vmSize", + errorCode: { + serializedName: "errorCode", type: { - name: "String" + name: "Number" } }, - vmSku: { - serializedName: "vmSku", + errorString: { + serializedName: "errorString", type: { name: "String" } - } - } - } -}; - -export const AzureVMResourceFeatureSupportResponse: msRest.CompositeMapper = { - serializedName: "AzureVMResourceFeatureSupportResponse", - type: { - name: "Composite", - className: "AzureVMResourceFeatureSupportResponse", - modelProperties: { - supportStatus: { - serializedName: "supportStatus", + }, + recommendations: { + serializedName: "recommendations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const AzureWorkloadAutoProtectionIntent: msRest.CompositeMapper = { - serializedName: "AzureWorkloadAutoProtectionIntent", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, - uberParent: "ProtectionIntent", - className: "AzureWorkloadAutoProtectionIntent", - modelProperties: { - ...AzureRecoveryServiceVaultProtectionIntent.type.modelProperties - } - } -}; - -export const AzureWorkloadSQLAutoProtectionIntent: msRest.CompositeMapper = { - serializedName: "AzureWorkloadSQLAutoProtectionIntent", +export const VaultJobExtendedInfo: msRest.CompositeMapper = { + serializedName: "VaultJobExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, - uberParent: "ProtectionIntent", - className: "AzureWorkloadSQLAutoProtectionIntent", + className: "VaultJobExtendedInfo", modelProperties: { - ...AzureWorkloadAutoProtectionIntent.type.modelProperties, - workloadItemType: { - serializedName: "workloadItemType", + propertyBag: { + serializedName: "propertyBag", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const NameInfo: msRest.CompositeMapper = { - serializedName: "NameInfo", +export const VaultJob: msRest.CompositeMapper = { + serializedName: "VaultJob", type: { name: "Composite", - className: "NameInfo", + polymorphicDiscriminator: Job.type.polymorphicDiscriminator, + uberParent: "Job", + className: "VaultJob", modelProperties: { - value: { - serializedName: "value", + ...Job.type.modelProperties, + duration: { + serializedName: "duration", type: { - name: "String" + name: "TimeSpan" } }, - localizedValue: { - serializedName: "localizedValue", + actionsInfo: { + serializedName: "actionsInfo", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "Cancellable", + "Retriable" + ] + } + } + } + }, + errorDetails: { + serializedName: "errorDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultJobErrorInfo" + } + } + } + }, + extendedInfo: { + serializedName: "extendedInfo", + type: { + name: "Composite", + className: "VaultJobExtendedInfo" } } } } }; -export const BackupManagementUsage: msRest.CompositeMapper = { - serializedName: "BackupManagementUsage", +export const ProtectionContainer: msRest.CompositeMapper = { + serializedName: "ProtectionContainer", type: { name: "Composite", - className: "BackupManagementUsage", + polymorphicDiscriminator: { + serializedName: "containerType", + clientName: "containerType" + }, + uberParent: "ProtectionContainer", + className: "ProtectionContainer", modelProperties: { - unit: { - serializedName: "unit", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - quotaPeriod: { - serializedName: "quotaPeriod", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - nextResetTime: { - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "NameInfo" - } - } - } - } -}; - -export const BackupStatusRequest: msRest.CompositeMapper = { - serializedName: "BackupStatusRequest", - type: { - name: "Composite", - className: "BackupStatusRequest", - modelProperties: { - resourceType: { - serializedName: "resourceType", + registrationStatus: { + serializedName: "registrationStatus", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + healthStatus: { + serializedName: "healthStatus", type: { name: "String" } }, - poLogicalName: { - serializedName: "poLogicalName", + containerType: { + required: true, + serializedName: "containerType", type: { name: "String" } @@ -5145,192 +5424,208 @@ export const BackupStatusRequest: msRest.CompositeMapper = { } }; -export const BackupStatusResponse: msRest.CompositeMapper = { - serializedName: "BackupStatusResponse", +export const DpmContainer: msRest.CompositeMapper = { + serializedName: "DPMContainer", type: { name: "Composite", - className: "BackupStatusResponse", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "DpmContainer", modelProperties: { - protectionStatus: { - serializedName: "protectionStatus", + ...ProtectionContainer.type.modelProperties, + canReRegister: { + serializedName: "canReRegister", type: { - name: "String" + name: "Boolean" } }, - vaultId: { - serializedName: "vaultId", + containerId: { + serializedName: "containerId", type: { name: "String" } }, - fabricName: { - serializedName: "fabricName", + protectedItemCount: { + serializedName: "protectedItemCount", type: { - name: "String" + name: "Number" } }, - containerName: { - serializedName: "containerName", + dpmAgentVersion: { + serializedName: "dpmAgentVersion", type: { name: "String" } }, - protectedItemName: { - serializedName: "protectedItemName", + dpmServers: { + serializedName: "dpmServers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorCode: { - serializedName: "errorCode", + upgradeAvailable: { + serializedName: "upgradeAvailable", type: { - name: "String" + name: "Boolean" } }, - errorMessage: { - serializedName: "errorMessage", + protectionStatus: { + serializedName: "protectionStatus", type: { name: "String" } }, - policyName: { - serializedName: "policyName", - type: { - name: "String" - } - }, - registrationStatus: { - serializedName: "registrationStatus", + extendedInfo: { + serializedName: "extendedInfo", type: { - name: "String" + name: "Composite", + className: "DPMContainerExtendedInfo" } } } } }; -export const BMSBackupSummariesQueryObject: msRest.CompositeMapper = { - serializedName: "BMSBackupSummariesQueryObject", +export const AzureBackupServerContainer: msRest.CompositeMapper = { + serializedName: "AzureBackupServerContainer", type: { name: "Composite", - className: "BMSBackupSummariesQueryObject", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureBackupServerContainer", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - } + ...DpmContainer.type.modelProperties } } }; -export const PreValidateEnableBackupRequest: msRest.CompositeMapper = { - serializedName: "PreValidateEnableBackupRequest", +export const BackupEngineBase: msRest.CompositeMapper = { + serializedName: "BackupEngineBase", type: { name: "Composite", - className: "PreValidateEnableBackupRequest", + polymorphicDiscriminator: { + serializedName: "backupEngineType", + clientName: "backupEngineType" + }, + uberParent: "BackupEngineBase", + className: "BackupEngineBase", modelProperties: { - resourceType: { - serializedName: "resourceType", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - vaultId: { - serializedName: "vaultId", + registrationStatus: { + serializedName: "registrationStatus", type: { name: "String" } }, - properties: { - serializedName: "properties", + backupEngineState: { + serializedName: "backupEngineState", type: { name: "String" } - } - } - } -}; - -export const PreValidateEnableBackupResponse: msRest.CompositeMapper = { - serializedName: "PreValidateEnableBackupResponse", - type: { - name: "Composite", - className: "PreValidateEnableBackupResponse", - modelProperties: { - status: { - serializedName: "status", + }, + healthStatus: { + serializedName: "healthStatus", type: { name: "String" } }, - errorCode: { - serializedName: "errorCode", + canReRegister: { + serializedName: "canReRegister", type: { - name: "String" + name: "Boolean" } }, - errorMessage: { - serializedName: "errorMessage", + backupEngineId: { + serializedName: "backupEngineId", type: { name: "String" } }, - recommendation: { - serializedName: "recommendation", + dpmVersion: { + serializedName: "dpmVersion", type: { name: "String" } }, - containerName: { - serializedName: "containerName", + azureBackupAgentVersion: { + serializedName: "azureBackupAgentVersion", type: { name: "String" } }, - protectedItemName: { - serializedName: "protectedItemName", + isAzureBackupAgentUpgradeAvailable: { + serializedName: "isAzureBackupAgentUpgradeAvailable", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ProtectionIntentQueryObject: msRest.CompositeMapper = { - serializedName: "ProtectionIntentQueryObject", - type: { - name: "Composite", - className: "ProtectionIntentQueryObject", - modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", + }, + isDpmUpgradeAvailable: { + serializedName: "isDpmUpgradeAvailable", type: { - name: "String" + name: "Boolean" } }, - itemType: { - serializedName: "itemType", + extendedInfo: { + serializedName: "extendedInfo", type: { - name: "String" + name: "Composite", + className: "BackupEngineExtendedInfo" } }, - parentName: { - serializedName: "parentName", + backupEngineType: { + required: true, + serializedName: "backupEngineType", type: { name: "String" } - }, - itemName: { - serializedName: "itemName", + } + } + } +}; + +export const AzureBackupServerEngine: msRest.CompositeMapper = { + serializedName: "AzureBackupServerEngine", + type: { + name: "Composite", + polymorphicDiscriminator: BackupEngineBase.type.polymorphicDiscriminator, + uberParent: "BackupEngineBase", + className: "AzureBackupServerEngine", + modelProperties: { + ...BackupEngineBase.type.modelProperties + } + } +}; + +export const BackupRequest: msRest.CompositeMapper = { + serializedName: "BackupRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType" + }, + uberParent: "BackupRequest", + className: "BackupRequest", + modelProperties: { + objectType: { + required: true, + serializedName: "objectType", type: { name: "String" } @@ -5339,62 +5634,63 @@ export const ProtectionIntentQueryObject: msRest.CompositeMapper = { } }; -export const ProtectionIntentResource: msRest.CompositeMapper = { - serializedName: "ProtectionIntentResource", +export const AzureFileShareBackupRequest: msRest.CompositeMapper = { + serializedName: "AzureFileShareBackupRequest", type: { name: "Composite", - className: "ProtectionIntentResource", + polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, + uberParent: "BackupRequest", + className: "AzureFileShareBackupRequest", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...BackupRequest.type.modelProperties, + recoveryPointExpiryTimeInUTC: { + serializedName: "recoveryPointExpiryTimeInUTC", type: { - name: "Composite", - className: "ProtectionIntent" + name: "DateTime" } } } } }; -export const ProtectionContainer: msRest.CompositeMapper = { - serializedName: "ProtectionContainer", +export const WorkloadProtectableItem: msRest.CompositeMapper = { + serializedName: "WorkloadProtectableItem", type: { name: "Composite", polymorphicDiscriminator: { - serializedName: "containerType", - clientName: "containerType" + serializedName: "protectableItemType", + clientName: "protectableItemType" }, - uberParent: "ProtectionContainer", - className: "ProtectionContainer", + uberParent: "WorkloadProtectableItem", + className: "WorkloadProtectableItem", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - backupManagementType: { - serializedName: "backupManagementType", + workloadType: { + serializedName: "workloadType", type: { name: "String" } }, - registrationStatus: { - serializedName: "registrationStatus", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - healthStatus: { - serializedName: "healthStatus", + protectionState: { + serializedName: "protectionState", type: { name: "String" } }, - containerType: { + protectableItemType: { required: true, - serializedName: "containerType", + serializedName: "protectableItemType", type: { name: "String" } @@ -5403,173 +5699,1101 @@ export const ProtectionContainer: msRest.CompositeMapper = { } }; -export const DpmContainer: msRest.CompositeMapper = { - serializedName: "DPMContainer", +export const AzureFileShareProtectableItem: msRest.CompositeMapper = { + serializedName: "AzureFileShare", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "DpmContainer", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureFileShareProtectableItem", modelProperties: { - ...ProtectionContainer.type.modelProperties, - canReRegister: { - serializedName: "canReRegister", + ...WorkloadProtectableItem.type.modelProperties, + parentContainerFabricId: { + serializedName: "parentContainerFabricId", type: { - name: "Boolean" + name: "String" } }, - containerId: { - serializedName: "containerId", + parentContainerFriendlyName: { + serializedName: "parentContainerFriendlyName", type: { name: "String" } }, - protectedItemCount: { - serializedName: "protectedItemCount", + azureFileShareType: { + serializedName: "azureFileShareType", type: { - name: "Number" + name: "String" } - }, - dpmAgentVersion: { - serializedName: "dpmAgentVersion", + } + } + } +}; + +export const ILRRequest: msRest.CompositeMapper = { + serializedName: "ILRRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType" + }, + uberParent: "ILRRequest", + className: "ILRRequest", + modelProperties: { + objectType: { + required: true, + serializedName: "objectType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileShareProvisionILRRequest: msRest.CompositeMapper = { + serializedName: "AzureFileShareProvisionILRRequest", + type: { + name: "Composite", + polymorphicDiscriminator: ILRRequest.type.polymorphicDiscriminator, + uberParent: "ILRRequest", + className: "AzureFileShareProvisionILRRequest", + modelProperties: { + ...ILRRequest.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const IaaSVMContainer: msRest.CompositeMapper = { + serializedName: "IaaSVMContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "IaaSVMContainer", + modelProperties: { + ...ProtectionContainer.type.modelProperties, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String" + } + }, + virtualMachineVersion: { + serializedName: "virtualMachineVersion", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + } + } + } +}; + +export const AzureIaaSClassicComputeVMContainer: msRest.CompositeMapper = { + serializedName: "Microsoft.ClassicCompute/virtualMachines", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureIaaSClassicComputeVMContainer", + modelProperties: { + ...IaaSVMContainer.type.modelProperties + } + } +}; + +export const IaaSVMProtectableItem: msRest.CompositeMapper = { + serializedName: "IaaSVMProtectableItem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "IaaSVMProtectableItem", + modelProperties: { + ...WorkloadProtectableItem.type.modelProperties, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String" + } + } + } + } +}; + +export const AzureIaaSClassicComputeVMProtectableItem: msRest.CompositeMapper = { + serializedName: "Microsoft.ClassicCompute/virtualMachines", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureIaaSClassicComputeVMProtectableItem", + modelProperties: { + ...IaaSVMProtectableItem.type.modelProperties + } + } +}; + +export const AzureIaaSComputeVMContainer: msRest.CompositeMapper = { + serializedName: "Microsoft.Compute/virtualMachines", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureIaaSComputeVMContainer", + modelProperties: { + ...IaaSVMContainer.type.modelProperties + } + } +}; + +export const AzureIaaSComputeVMProtectableItem: msRest.CompositeMapper = { + serializedName: "Microsoft.Compute/virtualMachines", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureIaaSComputeVMProtectableItem", + modelProperties: { + ...IaaSVMProtectableItem.type.modelProperties + } + } +}; + +export const AzureWorkloadContainer: msRest.CompositeMapper = { + serializedName: "AzureWorkloadContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureWorkloadContainer", + modelProperties: { + ...ProtectionContainer.type.modelProperties, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + lastUpdatedTime: { + serializedName: "lastUpdatedTime", + type: { + name: "DateTime" + } + }, + extendedInfo: { + serializedName: "extendedInfo", + type: { + name: "Composite", + className: "AzureWorkloadContainerExtendedInfo" + } + }, + workloadType: { + serializedName: "workloadType", + type: { + name: "String" + } + }, + operationType: { + serializedName: "operationType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureSQLAGWorkloadContainerProtectionContainer: msRest.CompositeMapper = { + serializedName: "SQLAGWorkLoadContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureSQLAGWorkloadContainerProtectionContainer", + modelProperties: { + ...AzureWorkloadContainer.type.modelProperties + } + } +}; + +export const AzureSqlContainer: msRest.CompositeMapper = { + serializedName: "AzureSqlContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureSqlContainer", + modelProperties: { + ...ProtectionContainer.type.modelProperties + } + } +}; + +export const AzureStorageContainer: msRest.CompositeMapper = { + serializedName: "StorageContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureStorageContainer", + modelProperties: { + ...ProtectionContainer.type.modelProperties, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + storageAccountVersion: { + serializedName: "storageAccountVersion", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + protectedItemCount: { + serializedName: "protectedItemCount", + type: { + name: "Number" + } + } + } + } +}; + +export const ProtectableContainer: msRest.CompositeMapper = { + serializedName: "ProtectableContainer", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "protectableContainerType", + clientName: "protectableContainerType" + }, + uberParent: "ProtectableContainer", + className: "ProtectableContainer", + modelProperties: { + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + backupManagementType: { + serializedName: "backupManagementType", + type: { + name: "String" + } + }, + healthStatus: { + serializedName: "healthStatus", + type: { + name: "String" + } + }, + containerId: { + serializedName: "containerId", + type: { + name: "String" + } + }, + protectableContainerType: { + required: true, + serializedName: "protectableContainerType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureStorageProtectableContainer: msRest.CompositeMapper = { + serializedName: "StorageContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectableContainer.type.polymorphicDiscriminator, + uberParent: "ProtectableContainer", + className: "AzureStorageProtectableContainer", + modelProperties: { + ...ProtectableContainer.type.modelProperties + } + } +}; + +export const AzureVMAppContainerProtectableContainer: msRest.CompositeMapper = { + serializedName: "VMAppContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectableContainer.type.polymorphicDiscriminator, + uberParent: "ProtectableContainer", + className: "AzureVMAppContainerProtectableContainer", + modelProperties: { + ...ProtectableContainer.type.modelProperties + } + } +}; + +export const AzureVMAppContainerProtectionContainer: msRest.CompositeMapper = { + serializedName: "VMAppContainer", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "AzureVMAppContainerProtectionContainer", + modelProperties: { + ...AzureWorkloadContainer.type.modelProperties + } + } +}; + +export const WorkloadItem: msRest.CompositeMapper = { + serializedName: "WorkloadItem", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "workloadItemType", + clientName: "workloadItemType" + }, + uberParent: "WorkloadItem", + className: "WorkloadItem", + modelProperties: { + backupManagementType: { + serializedName: "backupManagementType", + type: { + name: "String" + } + }, + workloadType: { + serializedName: "workloadType", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - dpmServers: { - serializedName: "dpmServers", + protectionState: { + serializedName: "protectionState", + type: { + name: "String" + } + }, + workloadItemType: { + required: true, + serializedName: "workloadItemType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureVmWorkloadItem: msRest.CompositeMapper = { + serializedName: "AzureVmWorkloadItem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadItem", + modelProperties: { + ...WorkloadItem.type.modelProperties, + parentName: { + serializedName: "parentName", + type: { + name: "String" + } + }, + serverName: { + serializedName: "serverName", + type: { + name: "String" + } + }, + isAutoProtectable: { + serializedName: "isAutoProtectable", + type: { + name: "Boolean" + } + }, + subinquireditemcount: { + serializedName: "subinquireditemcount", + type: { + name: "Number" + } + }, + subWorkloadItemCount: { + serializedName: "subWorkloadItemCount", + type: { + name: "Number" + } + } + } + } +}; + +export const PreBackupValidation: msRest.CompositeMapper = { + serializedName: "PreBackupValidation", + type: { + name: "Composite", + className: "PreBackupValidation", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AzureVmWorkloadProtectableItem: msRest.CompositeMapper = { + serializedName: "AzureVmWorkloadProtectableItem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadProtectableItem", + modelProperties: { + ...WorkloadProtectableItem.type.modelProperties, + parentName: { + serializedName: "parentName", + type: { + name: "String" + } + }, + parentUniqueName: { + serializedName: "parentUniqueName", + type: { + name: "String" + } + }, + serverName: { + serializedName: "serverName", + type: { + name: "String" + } + }, + isAutoProtectable: { + serializedName: "isAutoProtectable", + type: { + name: "Boolean" + } + }, + isAutoProtected: { + serializedName: "isAutoProtected", + type: { + name: "Boolean" + } + }, + subinquireditemcount: { + serializedName: "subinquireditemcount", + type: { + name: "Number" + } + }, + subprotectableitemcount: { + serializedName: "subprotectableitemcount", + type: { + name: "Number" + } + }, + prebackupvalidation: { + serializedName: "prebackupvalidation", + type: { + name: "Composite", + className: "PreBackupValidation" + } + } + } + } +}; + +export const AzureVmWorkloadSAPAseDatabaseWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPAseDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPAseDatabaseWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPAseSystemProtectableItem: msRest.CompositeMapper = { + serializedName: "SAPAseSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSAPAseSystemProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPAseSystemWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPAseSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPAseSystemWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPHanaDatabaseProtectableItem: msRest.CompositeMapper = { + serializedName: "SAPHanaDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSAPHanaDatabaseProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPHanaDatabaseWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPHanaDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPHanaDatabaseWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPHanaSystemProtectableItem: msRest.CompositeMapper = { + serializedName: "SAPHanaSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSAPHanaSystemProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSAPHanaSystemWorkloadItem: msRest.CompositeMapper = { + serializedName: "SAPHanaSystem", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSAPHanaSystemWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSQLAvailabilityGroupProtectableItem: msRest.CompositeMapper = { + serializedName: "SQLAvailabilityGroupContainer", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSQLAvailabilityGroupProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSQLDatabaseProtectableItem: msRest.CompositeMapper = { + serializedName: "SQLDataBase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSQLDatabaseProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSQLDatabaseWorkloadItem: msRest.CompositeMapper = { + serializedName: "SQLDataBase", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSQLDatabaseWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSQLInstanceProtectableItem: msRest.CompositeMapper = { + serializedName: "SQLInstance", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, + uberParent: "WorkloadProtectableItem", + className: "AzureVmWorkloadSQLInstanceProtectableItem", + modelProperties: { + ...AzureVmWorkloadProtectableItem.type.modelProperties + } + } +}; + +export const AzureVmWorkloadSQLInstanceWorkloadItem: msRest.CompositeMapper = { + serializedName: "SQLInstance", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, + uberParent: "WorkloadItem", + className: "AzureVmWorkloadSQLInstanceWorkloadItem", + modelProperties: { + ...AzureVmWorkloadItem.type.modelProperties, + dataDirectoryPaths: { + serializedName: "dataDirectoryPaths", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SQLDataDirectory" } } } + } + } + } +}; + +export const AzureWorkloadBackupRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadBackupRequest", + type: { + name: "Composite", + polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, + uberParent: "BackupRequest", + className: "AzureWorkloadBackupRequest", + modelProperties: { + ...BackupRequest.type.modelProperties, + backupType: { + serializedName: "backupType", + type: { + name: "String" + } }, - upgradeAvailable: { - serializedName: "upgradeAvailable", + enableCompression: { + serializedName: "enableCompression", + type: { + name: "Boolean" + } + }, + recoveryPointExpiryTimeInUTC: { + serializedName: "recoveryPointExpiryTimeInUTC", + type: { + name: "DateTime" + } + } + } + } +}; + +export const FeatureSupportRequest: msRest.CompositeMapper = { + serializedName: "FeatureSupportRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "featureType", + clientName: "featureType" + }, + uberParent: "FeatureSupportRequest", + className: "FeatureSupportRequest", + modelProperties: { + featureType: { + required: true, + serializedName: "featureType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureBackupGoalFeatureSupportRequest: msRest.CompositeMapper = { + serializedName: "AzureBackupGoals", + type: { + name: "Composite", + polymorphicDiscriminator: FeatureSupportRequest.type.polymorphicDiscriminator, + uberParent: "FeatureSupportRequest", + className: "AzureBackupGoalFeatureSupportRequest", + modelProperties: { + ...FeatureSupportRequest.type.modelProperties + } + } +}; + +export const ProtectionIntent: msRest.CompositeMapper = { + serializedName: "ProtectionIntent", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "protectionIntentItemType", + clientName: "protectionIntentItemType" + }, + uberParent: "ProtectionIntent", + className: "ProtectionIntent", + modelProperties: { + backupManagementType: { + serializedName: "backupManagementType", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + itemId: { + serializedName: "itemId", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", + type: { + name: "String" + } + }, + protectionState: { + serializedName: "protectionState", + type: { + name: "String" + } + }, + protectionIntentItemType: { + required: true, + serializedName: "protectionIntentItemType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureRecoveryServiceVaultProtectionIntent: msRest.CompositeMapper = { + serializedName: "RecoveryServiceVaultItem", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, + uberParent: "ProtectionIntent", + className: "AzureRecoveryServiceVaultProtectionIntent", + modelProperties: { + ...ProtectionIntent.type.modelProperties + } + } +}; + +export const AzureResourceProtectionIntent: msRest.CompositeMapper = { + serializedName: "AzureResourceItem", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, + uberParent: "ProtectionIntent", + className: "AzureResourceProtectionIntent", + modelProperties: { + ...ProtectionIntent.type.modelProperties, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + } + } + } +}; + +export const AzureVMResourceFeatureSupportRequest: msRest.CompositeMapper = { + serializedName: "AzureVMResourceBackup", + type: { + name: "Composite", + polymorphicDiscriminator: FeatureSupportRequest.type.polymorphicDiscriminator, + uberParent: "FeatureSupportRequest", + className: "AzureVMResourceFeatureSupportRequest", + modelProperties: { + ...FeatureSupportRequest.type.modelProperties, + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + vmSku: { + serializedName: "vmSku", + type: { + name: "String" + } + } + } + } +}; + +export const AzureVMResourceFeatureSupportResponse: msRest.CompositeMapper = { + serializedName: "AzureVMResourceFeatureSupportResponse", + type: { + name: "Composite", + className: "AzureVMResourceFeatureSupportResponse", + modelProperties: { + supportStatus: { + serializedName: "supportStatus", + type: { + name: "String" + } + } + } + } +}; + +export const AzureWorkloadAutoProtectionIntent: msRest.CompositeMapper = { + serializedName: "AzureWorkloadAutoProtectionIntent", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, + uberParent: "ProtectionIntent", + className: "AzureWorkloadAutoProtectionIntent", + modelProperties: { + ...AzureRecoveryServiceVaultProtectionIntent.type.modelProperties + } + } +}; + +export const AzureWorkloadSQLAutoProtectionIntent: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSQLAutoProtectionIntent", + type: { + name: "Composite", + polymorphicDiscriminator: ProtectionIntent.type.polymorphicDiscriminator, + uberParent: "ProtectionIntent", + className: "AzureWorkloadSQLAutoProtectionIntent", + modelProperties: { + ...AzureWorkloadAutoProtectionIntent.type.modelProperties, + workloadItemType: { + serializedName: "workloadItemType", type: { - name: "Boolean" + name: "String" } - }, - protectionStatus: { - serializedName: "protectionStatus", + } + } + } +}; + +export const NameInfo: msRest.CompositeMapper = { + serializedName: "NameInfo", + type: { + name: "Composite", + className: "NameInfo", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } }, - extendedInfo: { - serializedName: "extendedInfo", + localizedValue: { + serializedName: "localizedValue", type: { - name: "Composite", - className: "DPMContainerExtendedInfo" + name: "String" } } } } }; -export const AzureBackupServerContainer: msRest.CompositeMapper = { - serializedName: "AzureBackupServerContainer", +export const BackupManagementUsage: msRest.CompositeMapper = { + serializedName: "BackupManagementUsage", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureBackupServerContainer", + className: "BackupManagementUsage", modelProperties: { - ...DpmContainer.type.modelProperties + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + quotaPeriod: { + serializedName: "quotaPeriod", + type: { + name: "String" + } + }, + nextResetTime: { + serializedName: "nextResetTime", + type: { + name: "DateTime" + } + }, + currentValue: { + serializedName: "currentValue", + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "NameInfo" + } + } } } }; -export const BackupEngineBase: msRest.CompositeMapper = { - serializedName: "BackupEngineBase", +export const BackupStatusRequest: msRest.CompositeMapper = { + serializedName: "BackupStatusRequest", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "backupEngineType", - clientName: "backupEngineType" - }, - uberParent: "BackupEngineBase", - className: "BackupEngineBase", + className: "BackupStatusRequest", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + resourceType: { + serializedName: "resourceType", type: { name: "String" } }, - backupManagementType: { - serializedName: "backupManagementType", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - registrationStatus: { - serializedName: "registrationStatus", + poLogicalName: { + serializedName: "poLogicalName", type: { name: "String" } - }, - backupEngineState: { - serializedName: "backupEngineState", + } + } + } +}; + +export const BackupStatusResponse: msRest.CompositeMapper = { + serializedName: "BackupStatusResponse", + type: { + name: "Composite", + className: "BackupStatusResponse", + modelProperties: { + protectionStatus: { + serializedName: "protectionStatus", type: { name: "String" } }, - healthStatus: { - serializedName: "healthStatus", + vaultId: { + serializedName: "vaultId", type: { name: "String" } }, - canReRegister: { - serializedName: "canReRegister", - type: { - name: "Boolean" - } - }, - backupEngineId: { - serializedName: "backupEngineId", + fabricName: { + serializedName: "fabricName", type: { name: "String" } }, - dpmVersion: { - serializedName: "dpmVersion", + containerName: { + serializedName: "containerName", type: { name: "String" } }, - azureBackupAgentVersion: { - serializedName: "azureBackupAgentVersion", + protectedItemName: { + serializedName: "protectedItemName", type: { name: "String" } }, - isAzureBackupAgentUpgradeAvailable: { - serializedName: "isAzureBackupAgentUpgradeAvailable", + errorCode: { + serializedName: "errorCode", type: { - name: "Boolean" + name: "String" } }, - isDpmUpgradeAvailable: { - serializedName: "isDpmUpgradeAvailable", + errorMessage: { + serializedName: "errorMessage", type: { - name: "Boolean" + name: "String" } }, - extendedInfo: { - serializedName: "extendedInfo", + policyName: { + serializedName: "policyName", type: { - name: "Composite", - className: "BackupEngineExtendedInfo" + name: "String" } }, - backupEngineType: { - required: true, - serializedName: "backupEngineType", + registrationStatus: { + serializedName: "registrationStatus", type: { name: "String" } @@ -5578,33 +6802,14 @@ export const BackupEngineBase: msRest.CompositeMapper = { } }; -export const AzureBackupServerEngine: msRest.CompositeMapper = { - serializedName: "AzureBackupServerEngine", - type: { - name: "Composite", - polymorphicDiscriminator: BackupEngineBase.type.polymorphicDiscriminator, - uberParent: "BackupEngineBase", - className: "AzureBackupServerEngine", - modelProperties: { - ...BackupEngineBase.type.modelProperties - } - } -}; - -export const BackupRequest: msRest.CompositeMapper = { - serializedName: "BackupRequest", +export const BMSBackupSummariesQueryObject: msRest.CompositeMapper = { + serializedName: "BMSBackupSummariesQueryObject", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "objectType", - clientName: "objectType" - }, - uberParent: "BackupRequest", - className: "BackupRequest", + className: "BMSBackupSummariesQueryObject", modelProperties: { - objectType: { - required: true, - serializedName: "objectType", + type: { + serializedName: "type", type: { name: "String" } @@ -5613,63 +6818,78 @@ export const BackupRequest: msRest.CompositeMapper = { } }; -export const AzureFileShareBackupRequest: msRest.CompositeMapper = { - serializedName: "AzureFileShareBackupRequest", +export const PreValidateEnableBackupRequest: msRest.CompositeMapper = { + serializedName: "PreValidateEnableBackupRequest", type: { name: "Composite", - polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, - uberParent: "BackupRequest", - className: "AzureFileShareBackupRequest", + className: "PreValidateEnableBackupRequest", modelProperties: { - ...BackupRequest.type.modelProperties, - recoveryPointExpiryTimeInUTC: { - serializedName: "recoveryPointExpiryTimeInUTC", + resourceType: { + serializedName: "resourceType", type: { - name: "DateTime" + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + vaultId: { + serializedName: "vaultId", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "String" } } } } }; -export const WorkloadProtectableItem: msRest.CompositeMapper = { - serializedName: "WorkloadProtectableItem", +export const PreValidateEnableBackupResponse: msRest.CompositeMapper = { + serializedName: "PreValidateEnableBackupResponse", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "protectableItemType", - clientName: "protectableItemType" - }, - uberParent: "WorkloadProtectableItem", - className: "WorkloadProtectableItem", + className: "PreValidateEnableBackupResponse", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", + status: { + serializedName: "status", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", type: { name: "String" } }, - workloadType: { - serializedName: "workloadType", + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + recommendation: { + serializedName: "recommendation", type: { name: "String" } }, - protectionState: { - serializedName: "protectionState", + containerName: { + serializedName: "containerName", type: { name: "String" } }, - protectableItemType: { - required: true, - serializedName: "protectableItemType", + protectedItemName: { + serializedName: "protectedItemName", type: { name: "String" } @@ -5678,29 +6898,32 @@ export const WorkloadProtectableItem: msRest.CompositeMapper = { } }; -export const AzureFileShareProtectableItem: msRest.CompositeMapper = { - serializedName: "AzureFileShare", +export const ProtectionIntentQueryObject: msRest.CompositeMapper = { + serializedName: "ProtectionIntentQueryObject", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureFileShareProtectableItem", + className: "ProtectionIntentQueryObject", modelProperties: { - ...WorkloadProtectableItem.type.modelProperties, - parentContainerFabricId: { - serializedName: "parentContainerFabricId", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - parentContainerFriendlyName: { - serializedName: "parentContainerFriendlyName", + itemType: { + serializedName: "itemType", type: { name: "String" } }, - azureFileShareType: { - serializedName: "azureFileShareType", + parentName: { + serializedName: "parentName", + type: { + name: "String" + } + }, + itemName: { + serializedName: "itemName", type: { name: "String" } @@ -5709,45 +6932,46 @@ export const AzureFileShareProtectableItem: msRest.CompositeMapper = { } }; -export const ILRRequest: msRest.CompositeMapper = { - serializedName: "ILRRequest", +export const ProtectionIntentResource: msRest.CompositeMapper = { + serializedName: "ProtectionIntentResource", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "objectType", - clientName: "objectType" - }, - uberParent: "ILRRequest", - className: "ILRRequest", + className: "ProtectionIntentResource", modelProperties: { - objectType: { - required: true, - serializedName: "objectType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ProtectionIntent" } } } } }; -export const AzureFileShareProvisionILRRequest: msRest.CompositeMapper = { - serializedName: "AzureFileShareProvisionILRRequest", +export const InquiryValidation: msRest.CompositeMapper = { + serializedName: "InquiryValidation", type: { name: "Composite", - polymorphicDiscriminator: ILRRequest.type.polymorphicDiscriminator, - uberParent: "ILRRequest", - className: "AzureFileShareProvisionILRRequest", + className: "InquiryValidation", modelProperties: { - ...ILRRequest.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", + status: { + serializedName: "status", type: { name: "String" } }, - sourceResourceId: { - serializedName: "sourceResourceId", + errorDetail: { + serializedName: "errorDetail", + type: { + name: "Composite", + className: "ErrorDetail" + } + }, + additionalDetail: { + readOnly: true, + serializedName: "additionalDetail", type: { name: "String" } @@ -5756,253 +6980,311 @@ export const AzureFileShareProvisionILRRequest: msRest.CompositeMapper = { } }; -export const IaaSVMContainer: msRest.CompositeMapper = { - serializedName: "IaaSVMContainer", +export const WorkloadInquiryDetails: msRest.CompositeMapper = { + serializedName: "WorkloadInquiryDetails", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "IaaSVMContainer", + className: "WorkloadInquiryDetails", modelProperties: { - ...ProtectionContainer.type.modelProperties, - virtualMachineId: { - serializedName: "virtualMachineId", + type: { + serializedName: "type", type: { name: "String" } }, - virtualMachineVersion: { - serializedName: "virtualMachineVersion", + itemCount: { + serializedName: "itemCount", type: { - name: "String" + name: "Number" } }, - resourceGroup: { - serializedName: "resourceGroup", + inquiryValidation: { + serializedName: "inquiryValidation", type: { - name: "String" + name: "Composite", + className: "InquiryValidation" } } } } }; -export const AzureIaaSClassicComputeVMContainer: msRest.CompositeMapper = { - serializedName: "Microsoft.ClassicCompute/virtualMachines", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureIaaSClassicComputeVMContainer", - modelProperties: { - ...IaaSVMContainer.type.modelProperties - } - } -}; - -export const IaaSVMProtectableItem: msRest.CompositeMapper = { - serializedName: "IaaSVMProtectableItem", +export const InquiryInfo: msRest.CompositeMapper = { + serializedName: "InquiryInfo", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "IaaSVMProtectableItem", + className: "InquiryInfo", modelProperties: { - ...WorkloadProtectableItem.type.modelProperties, - virtualMachineId: { - serializedName: "virtualMachineId", + status: { + serializedName: "status", type: { name: "String" } + }, + errorDetail: { + serializedName: "errorDetail", + type: { + name: "Composite", + className: "ErrorDetail" + } + }, + inquiryDetails: { + serializedName: "inquiryDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadInquiryDetails" + } + } + } } } } }; -export const AzureIaaSClassicComputeVMProtectableItem: msRest.CompositeMapper = { - serializedName: "Microsoft.ClassicCompute/virtualMachines", - type: { - name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureIaaSClassicComputeVMProtectableItem", - modelProperties: { - ...IaaSVMProtectableItem.type.modelProperties - } - } -}; - -export const AzureIaaSComputeVMContainer: msRest.CompositeMapper = { - serializedName: "Microsoft.Compute/virtualMachines", +export const DistributedNodesInfo: msRest.CompositeMapper = { + serializedName: "DistributedNodesInfo", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureIaaSComputeVMContainer", + className: "DistributedNodesInfo", modelProperties: { - ...IaaSVMContainer.type.modelProperties + nodeName: { + serializedName: "nodeName", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + errorDetail: { + serializedName: "errorDetail", + type: { + name: "Composite", + className: "ErrorDetail" + } + } } } }; -export const AzureIaaSComputeVMProtectableItem: msRest.CompositeMapper = { - serializedName: "Microsoft.Compute/virtualMachines", +export const AzureWorkloadContainerExtendedInfo: msRest.CompositeMapper = { + serializedName: "AzureWorkloadContainerExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureIaaSComputeVMProtectableItem", + className: "AzureWorkloadContainerExtendedInfo", modelProperties: { - ...IaaSVMProtectableItem.type.modelProperties + hostServerName: { + serializedName: "hostServerName", + type: { + name: "String" + } + }, + inquiryInfo: { + serializedName: "inquiryInfo", + type: { + name: "Composite", + className: "InquiryInfo" + } + }, + nodesList: { + serializedName: "nodesList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedNodesInfo" + } + } + } + } } } }; -export const AzureWorkloadContainer: msRest.CompositeMapper = { - serializedName: "AzureWorkloadContainer", +export const BackupEngineExtendedInfo: msRest.CompositeMapper = { + serializedName: "BackupEngineExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureWorkloadContainer", + className: "BackupEngineExtendedInfo", modelProperties: { - ...ProtectionContainer.type.modelProperties, - sourceResourceId: { - serializedName: "sourceResourceId", + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + }, + protectedItemsCount: { + serializedName: "protectedItemsCount", type: { - name: "String" + name: "Number" } }, - lastUpdatedTime: { - serializedName: "lastUpdatedTime", + protectedServersCount: { + serializedName: "protectedServersCount", type: { - name: "DateTime" + name: "Number" } }, - extendedInfo: { - serializedName: "extendedInfo", + diskCount: { + serializedName: "diskCount", type: { - name: "Composite", - className: "AzureWorkloadContainerExtendedInfo" + name: "Number" } }, - workloadType: { - serializedName: "workloadType", + usedDiskSpace: { + serializedName: "usedDiskSpace", type: { - name: "String" + name: "Number" } }, - operationType: { - serializedName: "operationType", + availableDiskSpace: { + serializedName: "availableDiskSpace", type: { - name: "String" + name: "Number" + } + }, + refreshedAt: { + serializedName: "refreshedAt", + type: { + name: "DateTime" + } + }, + azureProtectedInstances: { + serializedName: "azureProtectedInstances", + type: { + name: "Number" } } } } }; -export const AzureSQLAGWorkloadContainerProtectionContainer: msRest.CompositeMapper = { - serializedName: "SQLAGWorkLoadContainer", +export const BackupEngineBaseResource: msRest.CompositeMapper = { + serializedName: "BackupEngineBaseResource", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureSQLAGWorkloadContainerProtectionContainer", + className: "BackupEngineBaseResource", modelProperties: { - ...AzureWorkloadContainer.type.modelProperties + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BackupEngineBase" + } + } } } }; -export const AzureSqlContainer: msRest.CompositeMapper = { - serializedName: "AzureSqlContainer", +export const BackupRequestResource: msRest.CompositeMapper = { + serializedName: "BackupRequestResource", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureSqlContainer", + className: "BackupRequestResource", modelProperties: { - ...ProtectionContainer.type.modelProperties + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BackupRequest" + } + } } } }; -export const AzureStorageContainer: msRest.CompositeMapper = { - serializedName: "StorageContainer", +export const BMSBackupEngineQueryObject: msRest.CompositeMapper = { + serializedName: "BMSBackupEngineQueryObject", type: { name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureStorageContainer", + className: "BMSBackupEngineQueryObject", modelProperties: { - ...ProtectionContainer.type.modelProperties, - sourceResourceId: { - serializedName: "sourceResourceId", + expand: { + serializedName: "expand", type: { name: "String" } - }, - storageAccountVersion: { - serializedName: "storageAccountVersion", + } + } + } +}; + +export const BMSBackupEnginesQueryObject: msRest.CompositeMapper = { + serializedName: "BMSBackupEnginesQueryObject", + type: { + name: "Composite", + className: "BMSBackupEnginesQueryObject", + modelProperties: { + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - resourceGroup: { - serializedName: "resourceGroup", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - protectedItemCount: { - serializedName: "protectedItemCount", + expand: { + serializedName: "expand", type: { - name: "Number" + name: "String" } } } } }; -export const ProtectableContainer: msRest.CompositeMapper = { - serializedName: "ProtectableContainer", +export const BMSContainerQueryObject: msRest.CompositeMapper = { + serializedName: "BMSContainerQueryObject", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "protectableContainerType", - clientName: "protectableContainerType" - }, - uberParent: "ProtectableContainer", - className: "ProtectableContainer", + className: "BMSContainerQueryObject", modelProperties: { - friendlyName: { - serializedName: "friendlyName", + backupManagementType: { + required: true, + serializedName: "backupManagementType", type: { name: "String" } }, - backupManagementType: { - serializedName: "backupManagementType", + containerType: { + serializedName: "containerType", type: { name: "String" } }, - healthStatus: { - serializedName: "healthStatus", + backupEngineName: { + serializedName: "backupEngineName", type: { name: "String" } }, - containerId: { - serializedName: "containerId", + fabricName: { + serializedName: "fabricName", type: { name: "String" } }, - protectableContainerType: { - required: true, - serializedName: "protectableContainerType", + status: { + serializedName: "status", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } @@ -6011,55 +7293,11 @@ export const ProtectableContainer: msRest.CompositeMapper = { } }; -export const AzureStorageProtectableContainer: msRest.CompositeMapper = { - serializedName: "StorageContainer", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectableContainer.type.polymorphicDiscriminator, - uberParent: "ProtectableContainer", - className: "AzureStorageProtectableContainer", - modelProperties: { - ...ProtectableContainer.type.modelProperties - } - } -}; - -export const AzureVMAppContainerProtectableContainer: msRest.CompositeMapper = { - serializedName: "VMAppContainer", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectableContainer.type.polymorphicDiscriminator, - uberParent: "ProtectableContainer", - className: "AzureVMAppContainerProtectableContainer", - modelProperties: { - ...ProtectableContainer.type.modelProperties - } - } -}; - -export const AzureVMAppContainerProtectionContainer: msRest.CompositeMapper = { - serializedName: "VMAppContainer", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "AzureVMAppContainerProtectionContainer", - modelProperties: { - ...AzureWorkloadContainer.type.modelProperties - } - } -}; - -export const WorkloadItem: msRest.CompositeMapper = { - serializedName: "WorkloadItem", +export const BMSContainersInquiryQueryObject: msRest.CompositeMapper = { + serializedName: "BMSContainersInquiryQueryObject", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "workloadItemType", - clientName: "workloadItemType" - }, - uberParent: "WorkloadItem", - className: "WorkloadItem", + className: "BMSContainersInquiryQueryObject", modelProperties: { backupManagementType: { serializedName: "backupManagementType", @@ -6072,93 +7310,93 @@ export const WorkloadItem: msRest.CompositeMapper = { type: { name: "String" } - }, - friendlyName: { - serializedName: "friendlyName", - type: { - name: "String" - } - }, - protectionState: { - serializedName: "protectionState", - type: { - name: "String" - } - }, - workloadItemType: { - required: true, - serializedName: "workloadItemType", - type: { - name: "String" - } } } } }; -export const AzureVmWorkloadItem: msRest.CompositeMapper = { - serializedName: "AzureVmWorkloadItem", +export const BMSPOQueryObject: msRest.CompositeMapper = { + serializedName: "BMSPOQueryObject", type: { name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadItem", + className: "BMSPOQueryObject", modelProperties: { - ...WorkloadItem.type.modelProperties, - parentName: { - serializedName: "parentName", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - serverName: { - serializedName: "serverName", + workloadType: { + serializedName: "workloadType", type: { name: "String" } }, - isAutoProtectable: { - serializedName: "isAutoProtectable", + containerName: { + serializedName: "containerName", type: { - name: "Boolean" + name: "String" } }, - subinquireditemcount: { - serializedName: "subinquireditemcount", + status: { + serializedName: "status", type: { - name: "Number" + name: "String" } }, - subWorkloadItemCount: { - serializedName: "subWorkloadItemCount", + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + } + } + } +}; + +export const BMSRefreshContainersQueryObject: msRest.CompositeMapper = { + serializedName: "BMSRefreshContainersQueryObject", + type: { + name: "Composite", + className: "BMSRefreshContainersQueryObject", + modelProperties: { + backupManagementType: { + serializedName: "backupManagementType", type: { - name: "Number" + name: "String" } } } } }; -export const PreBackupValidation: msRest.CompositeMapper = { - serializedName: "PreBackupValidation", +export const BMSWorkloadItemQueryObject: msRest.CompositeMapper = { + serializedName: "BMSWorkloadItemQueryObject", type: { name: "Composite", - className: "PreBackupValidation", + className: "BMSWorkloadItemQueryObject", modelProperties: { - status: { - serializedName: "status", + backupManagementType: { + serializedName: "backupManagementType", type: { name: "String" } }, - code: { - serializedName: "code", + workloadItemType: { + serializedName: "workloadItemType", type: { name: "String" } }, - message: { - serializedName: "message", + workloadType: { + serializedName: "workloadType", + type: { + name: "String" + } + }, + protectionStatus: { + serializedName: "protectionStatus", type: { name: "String" } @@ -6167,228 +7405,257 @@ export const PreBackupValidation: msRest.CompositeMapper = { } }; -export const AzureVmWorkloadProtectableItem: msRest.CompositeMapper = { - serializedName: "AzureVmWorkloadProtectableItem", +export const ClientScriptForConnect: msRest.CompositeMapper = { + serializedName: "ClientScriptForConnect", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadProtectableItem", + className: "ClientScriptForConnect", modelProperties: { - ...WorkloadProtectableItem.type.modelProperties, - parentName: { - serializedName: "parentName", + scriptContent: { + serializedName: "scriptContent", type: { name: "String" } }, - parentUniqueName: { - serializedName: "parentUniqueName", + scriptExtension: { + serializedName: "scriptExtension", type: { name: "String" } }, - serverName: { - serializedName: "serverName", + osType: { + serializedName: "osType", type: { name: "String" } }, - isAutoProtectable: { - serializedName: "isAutoProtectable", + url: { + serializedName: "url", type: { - name: "Boolean" + name: "String" } }, - isAutoProtected: { - serializedName: "isAutoProtected", + scriptNameSuffix: { + serializedName: "scriptNameSuffix", type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const ContainerIdentityInfo: msRest.CompositeMapper = { + serializedName: "ContainerIdentityInfo", + type: { + name: "Composite", + className: "ContainerIdentityInfo", + modelProperties: { + uniqueName: { + serializedName: "uniqueName", + type: { + name: "String" } }, - subinquireditemcount: { - serializedName: "subinquireditemcount", + aadTenantId: { + serializedName: "aadTenantId", type: { - name: "Number" + name: "String" } }, - subprotectableitemcount: { - serializedName: "subprotectableitemcount", + servicePrincipalClientId: { + serializedName: "servicePrincipalClientId", type: { - name: "Number" + name: "String" } }, - prebackupvalidation: { - serializedName: "prebackupvalidation", + audience: { + serializedName: "audience", type: { - name: "Composite", - className: "PreBackupValidation" + name: "String" } } } } }; -export const AzureVmWorkloadSAPAseDatabaseWorkloadItem: msRest.CompositeMapper = { - serializedName: "SAPAseDatabase", - type: { - name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSAPAseDatabaseWorkloadItem", - modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties - } - } -}; - -export const AzureVmWorkloadSAPAseSystemProtectableItem: msRest.CompositeMapper = { - serializedName: "SAPAseSystem", - type: { - name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSAPAseSystemProtectableItem", - modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties - } - } -}; - -export const AzureVmWorkloadSAPAseSystemWorkloadItem: msRest.CompositeMapper = { - serializedName: "SAPAseSystem", - type: { - name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSAPAseSystemWorkloadItem", - modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties - } - } -}; - -export const AzureVmWorkloadSAPHanaDatabaseProtectableItem: msRest.CompositeMapper = { - serializedName: "SAPHanaDatabase", - type: { - name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSAPHanaDatabaseProtectableItem", - modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties - } - } -}; - -export const AzureVmWorkloadSAPHanaDatabaseWorkloadItem: msRest.CompositeMapper = { - serializedName: "SAPHanaDatabase", +export const DpmBackupEngine: msRest.CompositeMapper = { + serializedName: "DpmBackupEngine", type: { name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSAPHanaDatabaseWorkloadItem", + polymorphicDiscriminator: BackupEngineBase.type.polymorphicDiscriminator, + uberParent: "BackupEngineBase", + className: "DpmBackupEngine", modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties + ...BackupEngineBase.type.modelProperties } } }; -export const AzureVmWorkloadSAPHanaSystemProtectableItem: msRest.CompositeMapper = { - serializedName: "SAPHanaSystem", +export const DPMContainerExtendedInfo: msRest.CompositeMapper = { + serializedName: "DPMContainerExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSAPHanaSystemProtectableItem", + className: "DPMContainerExtendedInfo", modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties + lastRefreshedAt: { + serializedName: "lastRefreshedAt", + type: { + name: "DateTime" + } + } } } }; -export const AzureVmWorkloadSAPHanaSystemWorkloadItem: msRest.CompositeMapper = { - serializedName: "SAPHanaSystem", +export const GenericContainerExtendedInfo: msRest.CompositeMapper = { + serializedName: "GenericContainerExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSAPHanaSystemWorkloadItem", + className: "GenericContainerExtendedInfo", modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties + rawCertData: { + serializedName: "rawCertData", + type: { + name: "String" + } + }, + containerIdentityInfo: { + serializedName: "containerIdentityInfo", + type: { + name: "Composite", + className: "ContainerIdentityInfo" + } + }, + serviceEndpoints: { + serializedName: "serviceEndpoints", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } } } }; -export const AzureVmWorkloadSQLAvailabilityGroupProtectableItem: msRest.CompositeMapper = { - serializedName: "SQLAvailabilityGroupContainer", +export const GenericContainer: msRest.CompositeMapper = { + serializedName: "GenericContainer", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSQLAvailabilityGroupProtectableItem", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "GenericContainer", modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties + ...ProtectionContainer.type.modelProperties, + fabricName: { + serializedName: "fabricName", + type: { + name: "String" + } + }, + extendedInformation: { + serializedName: "extendedInformation", + type: { + name: "Composite", + className: "GenericContainerExtendedInfo" + } + } } } }; -export const AzureVmWorkloadSQLDatabaseProtectableItem: msRest.CompositeMapper = { - serializedName: "SQLDataBase", +export const IaasVMBackupRequest: msRest.CompositeMapper = { + serializedName: "IaasVMBackupRequest", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSQLDatabaseProtectableItem", + polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, + uberParent: "BackupRequest", + className: "IaasVMBackupRequest", modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties + ...BackupRequest.type.modelProperties, + recoveryPointExpiryTimeInUTC: { + serializedName: "recoveryPointExpiryTimeInUTC", + type: { + name: "DateTime" + } + } } } }; -export const AzureVmWorkloadSQLDatabaseWorkloadItem: msRest.CompositeMapper = { - serializedName: "SQLDataBase", +export const IaasVMILRRegistrationRequest: msRest.CompositeMapper = { + serializedName: "IaasVMILRRegistrationRequest", type: { name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSQLDatabaseWorkloadItem", + polymorphicDiscriminator: ILRRequest.type.polymorphicDiscriminator, + uberParent: "ILRRequest", + className: "IaasVMILRRegistrationRequest", modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties + ...ILRRequest.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + type: { + name: "String" + } + }, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String" + } + }, + initiatorName: { + serializedName: "initiatorName", + type: { + name: "String" + } + }, + renewExistingRegistration: { + serializedName: "renewExistingRegistration", + type: { + name: "Boolean" + } + } } } }; -export const AzureVmWorkloadSQLInstanceProtectableItem: msRest.CompositeMapper = { - serializedName: "SQLInstance", +export const ILRRequestResource: msRest.CompositeMapper = { + serializedName: "ILRRequestResource", type: { name: "Composite", - polymorphicDiscriminator: WorkloadProtectableItem.type.polymorphicDiscriminator, - uberParent: "WorkloadProtectableItem", - className: "AzureVmWorkloadSQLInstanceProtectableItem", + className: "ILRRequestResource", modelProperties: { - ...AzureVmWorkloadProtectableItem.type.modelProperties + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ILRRequest" + } + } } } }; -export const AzureVmWorkloadSQLInstanceWorkloadItem: msRest.CompositeMapper = { - serializedName: "SQLInstance", +export const InstantItemRecoveryTarget: msRest.CompositeMapper = { + serializedName: "InstantItemRecoveryTarget", type: { name: "Composite", - polymorphicDiscriminator: WorkloadItem.type.polymorphicDiscriminator, - uberParent: "WorkloadItem", - className: "AzureVmWorkloadSQLInstanceWorkloadItem", + className: "InstantItemRecoveryTarget", modelProperties: { - ...AzureVmWorkloadItem.type.modelProperties, - dataDirectoryPaths: { - serializedName: "dataDirectoryPaths", + clientScripts: { + serializedName: "clientScripts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SQLDataDirectory" + className: "ClientScriptForConnect" } } } @@ -6397,371 +7664,380 @@ export const AzureVmWorkloadSQLInstanceWorkloadItem: msRest.CompositeMapper = { } }; -export const AzureWorkloadBackupRequest: msRest.CompositeMapper = { - serializedName: "AzureWorkloadBackupRequest", +export const MabContainerExtendedInfo: msRest.CompositeMapper = { + serializedName: "MabContainerExtendedInfo", type: { name: "Composite", - polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, - uberParent: "BackupRequest", - className: "AzureWorkloadBackupRequest", + className: "MabContainerExtendedInfo", modelProperties: { - ...BackupRequest.type.modelProperties, - backupType: { - serializedName: "backupType", + lastRefreshedAt: { + serializedName: "lastRefreshedAt", + type: { + name: "DateTime" + } + }, + backupItemType: { + serializedName: "backupItemType", type: { name: "String" } }, - enableCompression: { - serializedName: "enableCompression", + backupItems: { + serializedName: "backupItems", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - recoveryPointExpiryTimeInUTC: { - serializedName: "recoveryPointExpiryTimeInUTC", + policyName: { + serializedName: "policyName", type: { - name: "DateTime" + name: "String" + } + }, + lastBackupStatus: { + serializedName: "lastBackupStatus", + type: { + name: "String" } } } } }; -export const InquiryValidation: msRest.CompositeMapper = { - serializedName: "InquiryValidation", +export const MABContainerHealthDetails: msRest.CompositeMapper = { + serializedName: "MABContainerHealthDetails", type: { name: "Composite", - className: "InquiryValidation", + className: "MABContainerHealthDetails", modelProperties: { - status: { - serializedName: "status", + code: { + serializedName: "code", type: { - name: "String" + name: "Number" } }, - errorDetail: { - serializedName: "errorDetail", + title: { + serializedName: "title", type: { - name: "Composite", - className: "ErrorDetail" + name: "String" } }, - additionalDetail: { - readOnly: true, - serializedName: "additionalDetail", + message: { + serializedName: "message", type: { name: "String" } + }, + recommendations: { + serializedName: "recommendations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const WorkloadInquiryDetails: msRest.CompositeMapper = { - serializedName: "WorkloadInquiryDetails", +export const MabContainer: msRest.CompositeMapper = { + serializedName: "Windows", type: { name: "Composite", - className: "WorkloadInquiryDetails", + polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, + uberParent: "ProtectionContainer", + className: "MabContainer", modelProperties: { - type: { - serializedName: "type", + ...ProtectionContainer.type.modelProperties, + canReRegister: { + serializedName: "canReRegister", type: { - name: "String" + name: "Boolean" } }, - itemCount: { - serializedName: "itemCount", + containerId: { + serializedName: "containerId", type: { name: "Number" } }, - inquiryValidation: { - serializedName: "inquiryValidation", + protectedItemCount: { + serializedName: "protectedItemCount", type: { - name: "Composite", - className: "InquiryValidation" + name: "Number" } - } - } - } -}; - -export const InquiryInfo: msRest.CompositeMapper = { - serializedName: "InquiryInfo", - type: { - name: "Composite", - className: "InquiryInfo", - modelProperties: { - status: { - serializedName: "status", + }, + agentVersion: { + serializedName: "agentVersion", type: { name: "String" } }, - errorDetail: { - serializedName: "errorDetail", + extendedInfo: { + serializedName: "extendedInfo", type: { name: "Composite", - className: "ErrorDetail" + className: "MabContainerExtendedInfo" } }, - inquiryDetails: { - serializedName: "inquiryDetails", + mabContainerHealthDetails: { + serializedName: "mabContainerHealthDetails", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkloadInquiryDetails" + className: "MABContainerHealthDetails" } } } + }, + containerHealthState: { + serializedName: "containerHealthState", + type: { + name: "String" + } } } } }; -export const DistributedNodesInfo: msRest.CompositeMapper = { - serializedName: "DistributedNodesInfo", +export const OperationStatusError: msRest.CompositeMapper = { + serializedName: "OperationStatusError", type: { name: "Composite", - className: "DistributedNodesInfo", + className: "OperationStatusError", modelProperties: { - nodeName: { - serializedName: "nodeName", + code: { + serializedName: "code", type: { name: "String" } }, - status: { - serializedName: "status", + message: { + serializedName: "message", type: { name: "String" } - }, - errorDetail: { - serializedName: "errorDetail", - type: { - name: "Composite", - className: "ErrorDetail" - } } } } }; -export const AzureWorkloadContainerExtendedInfo: msRest.CompositeMapper = { - serializedName: "AzureWorkloadContainerExtendedInfo", +export const OperationStatusExtendedInfo: msRest.CompositeMapper = { + serializedName: "OperationStatusExtendedInfo", type: { name: "Composite", - className: "AzureWorkloadContainerExtendedInfo", - modelProperties: { - hostServerName: { - serializedName: "hostServerName", - type: { - name: "String" - } - }, - inquiryInfo: { - serializedName: "inquiryInfo", - type: { - name: "Composite", - className: "InquiryInfo" - } - }, - nodesList: { - serializedName: "nodesList", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType" + }, + uberParent: "OperationStatusExtendedInfo", + className: "OperationStatusExtendedInfo", + modelProperties: { + objectType: { + required: true, + serializedName: "objectType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DistributedNodesInfo" - } - } + name: "String" } } } } }; -export const BackupEngineExtendedInfo: msRest.CompositeMapper = { - serializedName: "BackupEngineExtendedInfo", +export const OperationStatus: msRest.CompositeMapper = { + serializedName: "OperationStatus", type: { name: "Composite", - className: "BackupEngineExtendedInfo", + className: "OperationStatus", modelProperties: { - databaseName: { - serializedName: "databaseName", + id: { + serializedName: "id", type: { name: "String" } }, - protectedItemsCount: { - serializedName: "protectedItemsCount", - type: { - name: "Number" - } - }, - protectedServersCount: { - serializedName: "protectedServersCount", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - diskCount: { - serializedName: "diskCount", + status: { + serializedName: "status", type: { - name: "Number" + name: "String" } }, - usedDiskSpace: { - serializedName: "usedDiskSpace", + startTime: { + serializedName: "startTime", type: { - name: "Number" + name: "DateTime" } }, - availableDiskSpace: { - serializedName: "availableDiskSpace", + endTime: { + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - refreshedAt: { - serializedName: "refreshedAt", + error: { + serializedName: "error", type: { - name: "DateTime" + name: "Composite", + className: "OperationStatusError" } }, - azureProtectedInstances: { - serializedName: "azureProtectedInstances", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "OperationStatusExtendedInfo" } } } } }; -export const BackupEngineBaseResource: msRest.CompositeMapper = { - serializedName: "BackupEngineBaseResource", +export const OperationStatusJobExtendedInfo: msRest.CompositeMapper = { + serializedName: "OperationStatusJobExtendedInfo", type: { name: "Composite", - className: "BackupEngineBaseResource", + polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, + uberParent: "OperationStatusExtendedInfo", + className: "OperationStatusJobExtendedInfo", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...OperationStatusExtendedInfo.type.modelProperties, + jobId: { + serializedName: "jobId", type: { - name: "Composite", - className: "BackupEngineBase" + name: "String" } } } } }; -export const BackupRequestResource: msRest.CompositeMapper = { - serializedName: "BackupRequestResource", +export const OperationStatusJobsExtendedInfo: msRest.CompositeMapper = { + serializedName: "OperationStatusJobsExtendedInfo", type: { name: "Composite", - className: "BackupRequestResource", + polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, + uberParent: "OperationStatusExtendedInfo", + className: "OperationStatusJobsExtendedInfo", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + ...OperationStatusExtendedInfo.type.modelProperties, + jobIds: { + serializedName: "jobIds", type: { - name: "Composite", - className: "BackupRequest" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + failedJobsError: { + serializedName: "failedJobsError", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const BackupResourceConfig: msRest.CompositeMapper = { - serializedName: "BackupResourceConfig", +export const OperationStatusProvisionILRExtendedInfo: msRest.CompositeMapper = { + serializedName: "OperationStatusProvisionILRExtendedInfo", type: { name: "Composite", - className: "BackupResourceConfig", + polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, + uberParent: "OperationStatusExtendedInfo", + className: "OperationStatusProvisionILRExtendedInfo", modelProperties: { - storageModelType: { - serializedName: "storageModelType", - type: { - name: "String" - } - }, - storageType: { - serializedName: "storageType", - type: { - name: "String" - } - }, - storageTypeState: { - serializedName: "storageTypeState", + ...OperationStatusExtendedInfo.type.modelProperties, + recoveryTarget: { + serializedName: "recoveryTarget", type: { - name: "String" + name: "Composite", + className: "InstantItemRecoveryTarget" } } } } }; -export const BackupResourceConfigResource: msRest.CompositeMapper = { - serializedName: "BackupResourceConfigResource", +export const ProtectableContainerResource: msRest.CompositeMapper = { + serializedName: "ProtectableContainerResource", type: { name: "Composite", - className: "BackupResourceConfigResource", + className: "ProtectableContainerResource", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "BackupResourceConfig" + className: "ProtectableContainer" } } } } }; -export const BMSBackupEngineQueryObject: msRest.CompositeMapper = { - serializedName: "BMSBackupEngineQueryObject", +export const ProtectionContainerResource: msRest.CompositeMapper = { + serializedName: "ProtectionContainerResource", type: { name: "Composite", - className: "BMSBackupEngineQueryObject", + className: "ProtectionContainerResource", modelProperties: { - expand: { - serializedName: "expand", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ProtectionContainer" } } } } }; -export const BMSBackupEnginesQueryObject: msRest.CompositeMapper = { - serializedName: "BMSBackupEnginesQueryObject", +export const TokenInformation: msRest.CompositeMapper = { + serializedName: "TokenInformation", type: { name: "Composite", - className: "BMSBackupEnginesQueryObject", + className: "TokenInformation", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", + token: { + serializedName: "token", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + expiryTimeInUtcTicks: { + serializedName: "expiryTimeInUtcTicks", type: { - name: "String" + name: "Number" } }, - expand: { - serializedName: "expand", + securityPIN: { + serializedName: "securityPIN", type: { name: "String" } @@ -6770,107 +8046,56 @@ export const BMSBackupEnginesQueryObject: msRest.CompositeMapper = { } }; -export const BMSContainerQueryObject: msRest.CompositeMapper = { - serializedName: "BMSContainerQueryObject", +export const WorkloadItemResource: msRest.CompositeMapper = { + serializedName: "WorkloadItemResource", type: { name: "Composite", - className: "BMSContainerQueryObject", + className: "WorkloadItemResource", modelProperties: { - backupManagementType: { - required: true, - serializedName: "backupManagementType", - type: { - name: "String" - } - }, - containerType: { - serializedName: "containerType", - type: { - name: "String" - } - }, - backupEngineName: { - serializedName: "backupEngineName", - type: { - name: "String" - } - }, - fabricName: { - serializedName: "fabricName", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "friendlyName", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "WorkloadItem" } } } } }; -export const BMSContainersInquiryQueryObject: msRest.CompositeMapper = { - serializedName: "BMSContainersInquiryQueryObject", +export const WorkloadProtectableItemResource: msRest.CompositeMapper = { + serializedName: "WorkloadProtectableItemResource", type: { name: "Composite", - className: "BMSContainersInquiryQueryObject", + className: "WorkloadProtectableItemResource", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", - type: { - name: "String" - } - }, - workloadType: { - serializedName: "workloadType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "WorkloadProtectableItem" } } } } }; -export const BMSPOQueryObject: msRest.CompositeMapper = { - serializedName: "BMSPOQueryObject", +export const RecoveryPointRehydrationInfo: msRest.CompositeMapper = { + serializedName: "RecoveryPointRehydrationInfo", type: { name: "Composite", - className: "BMSPOQueryObject", + className: "RecoveryPointRehydrationInfo", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", - type: { - name: "String" - } - }, - workloadType: { - serializedName: "workloadType", - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", - type: { - name: "String" - } - }, - status: { - serializedName: "status", + rehydrationRetentionDuration: { + serializedName: "rehydrationRetentionDuration", type: { name: "String" } }, - friendlyName: { - serializedName: "friendlyName", + rehydrationPriority: { + serializedName: "rehydrationPriority", type: { name: "String" } @@ -6879,116 +8104,193 @@ export const BMSPOQueryObject: msRest.CompositeMapper = { } }; -export const BMSRefreshContainersQueryObject: msRest.CompositeMapper = { - serializedName: "BMSRefreshContainersQueryObject", +export const AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest", type: { name: "Composite", - className: "BMSRefreshContainersQueryObject", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", + ...AzureWorkloadSAPHanaPointInTimeRestoreRequest.type.modelProperties, + recoveryPointRehydrationInfo: { + serializedName: "recoveryPointRehydrationInfo", type: { - name: "String" + name: "Composite", + className: "RecoveryPointRehydrationInfo" } } } } }; -export const BMSWorkloadItemQueryObject: msRest.CompositeMapper = { - serializedName: "BMSWorkloadItemQueryObject", +export const AzureWorkloadSAPHanaRestoreWithRehydrateRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest", type: { name: "Composite", - className: "BMSWorkloadItemQueryObject", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest", modelProperties: { - backupManagementType: { - serializedName: "backupManagementType", + ...AzureWorkloadSAPHanaRestoreRequest.type.modelProperties, + recoveryPointRehydrationInfo: { + serializedName: "recoveryPointRehydrationInfo", type: { - name: "String" + name: "Composite", + className: "RecoveryPointRehydrationInfo" } - }, - workloadItemType: { - serializedName: "workloadItemType", + } + } + } +}; + +export const AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest", + type: { + name: "Composite", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest", + modelProperties: { + ...AzureWorkloadSQLPointInTimeRestoreRequest.type.modelProperties, + recoveryPointRehydrationInfo: { + serializedName: "recoveryPointRehydrationInfo", type: { - name: "String" + name: "Composite", + className: "RecoveryPointRehydrationInfo" } - }, - workloadType: { - serializedName: "workloadType", + } + } + } +}; + +export const AzureWorkloadSQLRestoreWithRehydrateRequest: msRest.CompositeMapper = { + serializedName: "AzureWorkloadSQLRestoreWithRehydrateRequest", + type: { + name: "Composite", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "AzureWorkloadSQLRestoreWithRehydrateRequest", + modelProperties: { + ...AzureWorkloadSQLRestoreRequest.type.modelProperties, + recoveryPointRehydrationInfo: { + serializedName: "recoveryPointRehydrationInfo", type: { - name: "String" + name: "Composite", + className: "RecoveryPointRehydrationInfo" } - }, - protectionStatus: { - serializedName: "protectionStatus", + } + } + } +}; + +export const IaasVMRestoreWithRehydrationRequest: msRest.CompositeMapper = { + serializedName: "IaasVMRestoreWithRehydrationRequest", + type: { + name: "Composite", + polymorphicDiscriminator: RestoreRequest.type.polymorphicDiscriminator, + uberParent: "RestoreRequest", + className: "IaasVMRestoreWithRehydrationRequest", + modelProperties: { + ...IaasVMRestoreRequest.type.modelProperties, + recoveryPointRehydrationInfo: { + serializedName: "recoveryPointRehydrationInfo", type: { - name: "String" + name: "Composite", + className: "RecoveryPointRehydrationInfo" } } } } }; -export const ClientScriptForConnect: msRest.CompositeMapper = { - serializedName: "ClientScriptForConnect", +export const MoveRPAcrossTiersRequest: msRest.CompositeMapper = { + serializedName: "MoveRPAcrossTiersRequest", type: { name: "Composite", - className: "ClientScriptForConnect", + className: "MoveRPAcrossTiersRequest", modelProperties: { - scriptContent: { - serializedName: "scriptContent", + objectType: { + serializedName: "objectType", type: { name: "String" } }, - scriptExtension: { - serializedName: "scriptExtension", + sourceTierType: { + serializedName: "sourceTierType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Invalid", + "InstantRP", + "HardenedRP", + "ArchivedRP" + ] } }, - osType: { - serializedName: "osType", + targetTierType: { + serializedName: "targetTierType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Invalid", + "InstantRP", + "HardenedRP", + "ArchivedRP" + ] } - }, - url: { - serializedName: "url", + } + } + } +}; + +export const ListRecoveryPointsRecommendedForMoveRequest: msRest.CompositeMapper = { + serializedName: "ListRecoveryPointsRecommendedForMoveRequest", + type: { + name: "Composite", + className: "ListRecoveryPointsRecommendedForMoveRequest", + modelProperties: { + objectType: { + serializedName: "objectType", type: { name: "String" } }, - scriptNameSuffix: { - serializedName: "scriptNameSuffix", + excludedRPList: { + serializedName: "excludedRPList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ContainerIdentityInfo: msRest.CompositeMapper = { - serializedName: "ContainerIdentityInfo", +export const AADProperties: msRest.CompositeMapper = { + serializedName: "AADProperties", type: { name: "Composite", - className: "ContainerIdentityInfo", + className: "AADProperties", modelProperties: { - uniqueName: { - serializedName: "uniqueName", + servicePrincipalClientId: { + serializedName: "servicePrincipalClientId", type: { name: "String" } }, - aadTenantId: { - serializedName: "aadTenantId", + tenantId: { + serializedName: "tenantId", type: { name: "String" } }, - servicePrincipalClientId: { - serializedName: "servicePrincipalClientId", + authority: { + serializedName: "authority", type: { name: "String" } @@ -6998,383 +8300,260 @@ export const ContainerIdentityInfo: msRest.CompositeMapper = { type: { name: "String" } + }, + servicePrincipalObjectId: { + serializedName: "servicePrincipalObjectId", + type: { + name: "String" + } } } } }; -export const DpmBackupEngine: msRest.CompositeMapper = { - serializedName: "DpmBackupEngine", - type: { - name: "Composite", - polymorphicDiscriminator: BackupEngineBase.type.polymorphicDiscriminator, - uberParent: "BackupEngineBase", - className: "DpmBackupEngine", - modelProperties: { - ...BackupEngineBase.type.modelProperties - } - } -}; - -export const DPMContainerExtendedInfo: msRest.CompositeMapper = { - serializedName: "DPMContainerExtendedInfo", +export const AADPropertiesResource: msRest.CompositeMapper = { + serializedName: "AADPropertiesResource", type: { name: "Composite", - className: "DPMContainerExtendedInfo", + className: "AADPropertiesResource", modelProperties: { - lastRefreshedAt: { - serializedName: "lastRefreshedAt", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "DateTime" + name: "Composite", + className: "AADProperties" } } } } }; -export const GenericContainerExtendedInfo: msRest.CompositeMapper = { - serializedName: "GenericContainerExtendedInfo", +export const BackupResourceConfig: msRest.CompositeMapper = { + serializedName: "BackupResourceConfig", type: { name: "Composite", - className: "GenericContainerExtendedInfo", + className: "BackupResourceConfig", modelProperties: { - rawCertData: { - serializedName: "rawCertData", + storageModelType: { + serializedName: "storageModelType", type: { name: "String" } }, - containerIdentityInfo: { - serializedName: "containerIdentityInfo", + storageType: { + serializedName: "storageType", type: { - name: "Composite", - className: "ContainerIdentityInfo" + name: "String" } }, - serviceEndpoints: { - serializedName: "serviceEndpoints", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const GenericContainer: msRest.CompositeMapper = { - serializedName: "GenericContainer", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "GenericContainer", - modelProperties: { - ...ProtectionContainer.type.modelProperties, - fabricName: { - serializedName: "fabricName", + storageTypeState: { + serializedName: "storageTypeState", type: { name: "String" } }, - extendedInformation: { - serializedName: "extendedInformation", - type: { - name: "Composite", - className: "GenericContainerExtendedInfo" - } - } - } - } -}; - -export const IaasVMBackupRequest: msRest.CompositeMapper = { - serializedName: "IaasVMBackupRequest", - type: { - name: "Composite", - polymorphicDiscriminator: BackupRequest.type.polymorphicDiscriminator, - uberParent: "BackupRequest", - className: "IaasVMBackupRequest", - modelProperties: { - ...BackupRequest.type.modelProperties, - recoveryPointExpiryTimeInUTC: { - serializedName: "recoveryPointExpiryTimeInUTC", + crossRegionRestoreFlag: { + serializedName: "crossRegionRestoreFlag", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const IaasVMILRRegistrationRequest: msRest.CompositeMapper = { - serializedName: "IaasVMILRRegistrationRequest", +export const CrrJobRequest: msRest.CompositeMapper = { + serializedName: "CrrJobRequest", type: { name: "Composite", - polymorphicDiscriminator: ILRRequest.type.polymorphicDiscriminator, - uberParent: "ILRRequest", - className: "IaasVMILRRegistrationRequest", + className: "CrrJobRequest", modelProperties: { - ...ILRRequest.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", - type: { - name: "String" - } - }, - virtualMachineId: { - serializedName: "virtualMachineId", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - initiatorName: { - serializedName: "initiatorName", + jobName: { + serializedName: "jobName", type: { name: "String" } - }, - renewExistingRegistration: { - serializedName: "renewExistingRegistration", - type: { - name: "Boolean" - } } } } }; -export const ILRRequestResource: msRest.CompositeMapper = { - serializedName: "ILRRequestResource", +export const CrrJobRequestResource: msRest.CompositeMapper = { + serializedName: "CrrJobRequestResource", type: { name: "Composite", - className: "ILRRequestResource", + className: "CrrJobRequestResource", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "ILRRequest" + className: "CrrJobRequest" } } } } }; -export const InstantItemRecoveryTarget: msRest.CompositeMapper = { - serializedName: "InstantItemRecoveryTarget", +export const BackupResourceConfigResource: msRest.CompositeMapper = { + serializedName: "BackupResourceConfigResource", type: { name: "Composite", - className: "InstantItemRecoveryTarget", + className: "BackupResourceConfigResource", modelProperties: { - clientScripts: { - serializedName: "clientScripts", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClientScriptForConnect" - } - } + name: "Composite", + className: "BackupResourceConfig" } } } } }; -export const MabContainerExtendedInfo: msRest.CompositeMapper = { - serializedName: "MabContainerExtendedInfo", +export const CrrAccessToken: msRest.CompositeMapper = { + serializedName: "CrrAccessToken", type: { name: "Composite", - className: "MabContainerExtendedInfo", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType" + }, + uberParent: "CrrAccessToken", + className: "CrrAccessToken", modelProperties: { - lastRefreshedAt: { - serializedName: "lastRefreshedAt", + accessTokenString: { + serializedName: "accessTokenString", type: { - name: "DateTime" + name: "String" } }, - backupItemType: { - serializedName: "backupItemType", + subscriptionId: { + serializedName: "subscriptionId", type: { name: "String" } }, - backupItems: { - serializedName: "backupItems", + resourceGroupName: { + serializedName: "resourceGroupName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - policyName: { - serializedName: "policyName", + resourceName: { + serializedName: "resourceName", type: { name: "String" } }, - lastBackupStatus: { - serializedName: "lastBackupStatus", + resourceId: { + serializedName: "resourceId", type: { name: "String" } - } - } - } -}; - -export const MABContainerHealthDetails: msRest.CompositeMapper = { - serializedName: "MABContainerHealthDetails", - type: { - name: "Composite", - className: "MABContainerHealthDetails", - modelProperties: { - code: { - serializedName: "code", + }, + protectionContainerId: { + serializedName: "protectionContainerId", type: { name: "Number" } }, - title: { - serializedName: "title", + recoveryPointId: { + serializedName: "recoveryPointId", type: { name: "String" } }, - message: { - serializedName: "message", + recoveryPointTime: { + serializedName: "recoveryPointTime", type: { name: "String" } }, - recommendations: { - serializedName: "recommendations", + containerName: { + serializedName: "containerName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const MabContainer: msRest.CompositeMapper = { - serializedName: "Windows", - type: { - name: "Composite", - polymorphicDiscriminator: ProtectionContainer.type.polymorphicDiscriminator, - uberParent: "ProtectionContainer", - className: "MabContainer", - modelProperties: { - ...ProtectionContainer.type.modelProperties, - canReRegister: { - serializedName: "canReRegister", + }, + containerType: { + serializedName: "containerType", type: { - name: "Boolean" + name: "String" } }, - containerId: { - serializedName: "containerId", + backupManagementType: { + serializedName: "backupManagementType", type: { - name: "Number" + name: "String" } }, - protectedItemCount: { - serializedName: "protectedItemCount", + datasourceType: { + serializedName: "datasourceType", type: { - name: "Number" + name: "String" } }, - agentVersion: { - serializedName: "agentVersion", + datasourceName: { + serializedName: "datasourceName", type: { name: "String" } }, - extendedInfo: { - serializedName: "extendedInfo", + datasourceId: { + serializedName: "datasourceId", type: { - name: "Composite", - className: "MabContainerExtendedInfo" + name: "String" } }, - mabContainerHealthDetails: { - serializedName: "mabContainerHealthDetails", + datasourceContainerName: { + serializedName: "datasourceContainerName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MABContainerHealthDetails" - } - } + name: "String" } }, - containerHealthState: { - serializedName: "containerHealthState", + coordinatorServiceStampId: { + serializedName: "coordinatorServiceStampId", type: { name: "String" } - } - } - } -}; - -export const OperationStatusJobExtendedInfo: msRest.CompositeMapper = { - serializedName: "OperationStatusJobExtendedInfo", - type: { - name: "Composite", - polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, - uberParent: "OperationStatusExtendedInfo", - className: "OperationStatusJobExtendedInfo", - modelProperties: { - ...OperationStatusExtendedInfo.type.modelProperties, - jobId: { - serializedName: "jobId", + }, + coordinatorServiceStampUri: { + serializedName: "coordinatorServiceStampUri", type: { name: "String" } - } - } - } -}; - -export const OperationStatusJobsExtendedInfo: msRest.CompositeMapper = { - serializedName: "OperationStatusJobsExtendedInfo", - type: { - name: "Composite", - polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, - uberParent: "OperationStatusExtendedInfo", - className: "OperationStatusJobsExtendedInfo", - modelProperties: { - ...OperationStatusExtendedInfo.type.modelProperties, - jobIds: { - serializedName: "jobIds", + }, + protectionServiceStampId: { + serializedName: "protectionServiceStampId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - failedJobsError: { - serializedName: "failedJobsError", + protectionServiceStampUri: { + serializedName: "protectionServiceStampUri", + type: { + name: "String" + } + }, + tokenExtendedInformation: { + serializedName: "tokenExtendedInformation", + type: { + name: "String" + } + }, + rpTierInformation: { + serializedName: "rpTierInformation", type: { name: "Dictionary", value: { @@ -7383,185 +8562,187 @@ export const OperationStatusJobsExtendedInfo: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const OperationStatusProvisionILRExtendedInfo: msRest.CompositeMapper = { - serializedName: "OperationStatusProvisionILRExtendedInfo", - type: { - name: "Composite", - polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, - uberParent: "OperationStatusExtendedInfo", - className: "OperationStatusProvisionILRExtendedInfo", - modelProperties: { - ...OperationStatusExtendedInfo.type.modelProperties, - recoveryTarget: { - serializedName: "recoveryTarget", + }, + rpOriginalSAOption: { + serializedName: "rpOriginalSAOption", type: { - name: "Composite", - className: "InstantItemRecoveryTarget" + name: "Boolean" } - } - } - } -}; - -export const ProtectableContainerResource: msRest.CompositeMapper = { - serializedName: "ProtectableContainerResource", - type: { - name: "Composite", - className: "ProtectableContainerResource", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + rpIsManagedVirtualMachine: { + serializedName: "rpIsManagedVirtualMachine", type: { - name: "Composite", - className: "ProtectableContainer" + name: "Boolean" } - } - } - } -}; - -export const ProtectionContainerResource: msRest.CompositeMapper = { - serializedName: "ProtectionContainerResource", - type: { - name: "Composite", - className: "ProtectionContainerResource", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + rpVMSizeDescription: { + serializedName: "rpVMSizeDescription", + type: { + name: "String" + } + }, + bMSActiveRegion: { + serializedName: "bMSActiveRegion", + type: { + name: "String" + } + }, + objectType: { + required: true, + serializedName: "objectType", type: { - name: "Composite", - className: "ProtectionContainer" + name: "String" } } } } }; -export const TokenInformation: msRest.CompositeMapper = { - serializedName: "TokenInformation", +export const CrossRegionRestoreRequest: msRest.CompositeMapper = { + serializedName: "CrossRegionRestoreRequest", type: { name: "Composite", - className: "TokenInformation", + className: "CrossRegionRestoreRequest", modelProperties: { - token: { - serializedName: "token", - type: { - name: "String" - } - }, - expiryTimeInUtcTicks: { - serializedName: "expiryTimeInUtcTicks", + crossRegionRestoreAccessDetails: { + serializedName: "crossRegionRestoreAccessDetails", type: { - name: "Number" + name: "Composite", + className: "CrrAccessToken" } }, - securityPIN: { - serializedName: "securityPIN", + restoreRequest: { + serializedName: "restoreRequest", type: { - name: "String" + name: "Composite", + className: "RestoreRequest" } } } } }; -export const WorkloadItemResource: msRest.CompositeMapper = { - serializedName: "WorkloadItemResource", +export const CrossRegionRestoreRequestResource: msRest.CompositeMapper = { + serializedName: "CrossRegionRestoreRequestResource", type: { name: "Composite", - className: "WorkloadItemResource", + className: "CrossRegionRestoreRequestResource", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "WorkloadItem" + className: "CrossRegionRestoreRequest" } } } } }; -export const WorkloadProtectableItemResource: msRest.CompositeMapper = { - serializedName: "WorkloadProtectableItemResource", +export const CrrAccessTokenResource: msRest.CompositeMapper = { + serializedName: "CrrAccessTokenResource", type: { name: "Composite", - className: "WorkloadProtectableItemResource", + className: "CrrAccessTokenResource", modelProperties: { ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "WorkloadProtectableItem" + className: "CrrAccessToken" } } } } }; -export const ClientDiscoveryDisplay: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryDisplay", +export const OperationStatusRecoveryPointExtendedInfo: msRest.CompositeMapper = { + serializedName: "OperationStatusRecoveryPointExtendedInfo", type: { name: "Composite", - className: "ClientDiscoveryDisplay", + polymorphicDiscriminator: OperationStatusExtendedInfo.type.polymorphicDiscriminator, + uberParent: "OperationStatusExtendedInfo", + className: "OperationStatusRecoveryPointExtendedInfo", modelProperties: { - provider: { - serializedName: "provider", + ...OperationStatusExtendedInfo.type.modelProperties, + updatedRecoveryPoint: { + serializedName: "updatedRecoveryPoint", + type: { + name: "Composite", + className: "RecoveryPoint" + } + }, + deletedBackupItemVersion: { + serializedName: "deletedBackupItemVersion", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadCrrAccessToken: msRest.CompositeMapper = { + serializedName: "WorkloadCrrAccessToken", + type: { + name: "Composite", + polymorphicDiscriminator: CrrAccessToken.type.polymorphicDiscriminator, + uberParent: "CrrAccessToken", + className: "WorkloadCrrAccessToken", + modelProperties: { + ...CrrAccessToken.type.modelProperties, + protectableObjectUniqueName: { + serializedName: "protectableObjectUniqueName", type: { name: "String" } }, - resource: { - serializedName: "resource", + protectableObjectFriendlyName: { + serializedName: "protectableObjectFriendlyName", type: { name: "String" } }, - operation: { - serializedName: "operation", + protectableObjectWorkloadType: { + serializedName: "protectableObjectWorkloadType", type: { name: "String" } }, - description: { - serializedName: "description", + protectableObjectProtectionState: { + serializedName: "protectableObjectProtectionState", type: { name: "String" } - } - } - } -}; - -export const ClientDiscoveryForLogSpecification: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryForLogSpecification", - type: { - name: "Composite", - className: "ClientDiscoveryForLogSpecification", - modelProperties: { - name: { - serializedName: "name", + }, + protectableObjectContainerHostOsName: { + serializedName: "protectableObjectContainerHostOsName", type: { name: "String" } }, - displayName: { - serializedName: "displayName", + protectableObjectParentLogicalContainerName: { + serializedName: "protectableObjectParentLogicalContainerName", type: { name: "String" } }, - blobDuration: { - serializedName: "blobDuration", + containerId: { + serializedName: "containerId", + type: { + name: "String" + } + }, + policyName: { + serializedName: "policyName", + type: { + name: "String" + } + }, + policyId: { + serializedName: "policyId", type: { name: "String" } @@ -7570,20 +8751,21 @@ export const ClientDiscoveryForLogSpecification: msRest.CompositeMapper = { } }; -export const ClientDiscoveryForServiceSpecification: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryForServiceSpecification", +export const ProtectionIntentResourceList: msRest.CompositeMapper = { + serializedName: "ProtectionIntentResourceList", type: { name: "Composite", - className: "ClientDiscoveryForServiceSpecification", + className: "ProtectionIntentResourceList", modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", + ...ResourceList.type.modelProperties, + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ClientDiscoveryForLogSpecification" + className: "ProtectionIntentResource" } } } @@ -7592,54 +8774,51 @@ export const ClientDiscoveryForServiceSpecification: msRest.CompositeMapper = { } }; -export const ClientDiscoveryForProperties: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryForProperties", +export const BackupManagementUsageList: msRest.CompositeMapper = { + serializedName: "BackupManagementUsageList", type: { name: "Composite", - className: "ClientDiscoveryForProperties", + className: "BackupManagementUsageList", modelProperties: { - serviceSpecification: { - serializedName: "serviceSpecification", + value: { + serializedName: "", type: { - name: "Composite", - className: "ClientDiscoveryForServiceSpecification" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupManagementUsage" + } + } } } } } }; -export const ClientDiscoveryValueForSingleApi: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryValueForSingleApi", +export const ClientDiscoveryResponse: msRest.CompositeMapper = { + serializedName: "ClientDiscoveryResponse", type: { name: "Composite", - className: "ClientDiscoveryValueForSingleApi", + className: "ClientDiscoveryResponse", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", + value: { + serializedName: "", type: { - name: "Composite", - className: "ClientDiscoveryDisplay" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClientDiscoveryValueForSingleApi" + } + } } }, - origin: { - serializedName: "origin", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ClientDiscoveryForProperties" - } } } } @@ -7737,51 +8916,6 @@ export const ProtectedItemResourceList: msRest.CompositeMapper = { } }; -export const ProtectionIntentResourceList: msRest.CompositeMapper = { - serializedName: "ProtectionIntentResourceList", - type: { - name: "Composite", - className: "ProtectionIntentResourceList", - modelProperties: { - ...ResourceList.type.modelProperties, - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProtectionIntentResource" - } - } - } - } - } - } -}; - -export const BackupManagementUsageList: msRest.CompositeMapper = { - serializedName: "BackupManagementUsageList", - type: { - name: "Composite", - className: "BackupManagementUsageList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupManagementUsage" - } - } - } - } - } - } -}; - export const BackupEngineBaseResourceList: msRest.CompositeMapper = { serializedName: "BackupEngineBaseResourceList", type: { @@ -7897,36 +9031,7 @@ export const ProtectionContainerResourceList: msRest.CompositeMapper = { } }; -export const ClientDiscoveryResponse: msRest.CompositeMapper = { - serializedName: "ClientDiscoveryResponse", - type: { - name: "Composite", - className: "ClientDiscoveryResponse", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClientDiscoveryValueForSingleApi" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const discriminators = { - 'OperationStatusExtendedInfo' : OperationStatusExtendedInfo, 'ProtectedItem.AzureFileShareProtectedItem' : AzureFileshareProtectedItem, 'RecoveryPoint.AzureFileShareRecoveryPoint' : AzureFileShareRecoveryPoint, 'RestoreRequest.AzureFileShareRestoreRequest' : AzureFileShareRestoreRequest, @@ -7976,6 +9081,8 @@ export const discriminators = { 'ProtectionPolicy.MAB' : MabProtectionPolicy, 'OperationResultInfoBase.OperationResultInfo' : OperationResultInfo, 'OperationResultInfoBase' : OperationResultInfoBase, + 'VaultStorageConfigOperationResultResponse.PrepareDataMoveResponse' : PrepareDataMoveResponse, + 'VaultStorageConfigOperationResultResponse' : VaultStorageConfigOperationResultResponse, 'ProtectedItem' : ProtectedItem, 'ProtectionPolicy' : ProtectionPolicy, 'RecoveryPoint' : RecoveryPoint, @@ -7985,14 +9092,7 @@ export const discriminators = { 'ValidateOperationRequest.ValidateIaasVMRestoreOperationRequest' : ValidateIaasVMRestoreOperationRequest, 'ValidateOperationRequest' : ValidateOperationRequest, 'ValidateOperationRequest.ValidateRestoreOperationRequest' : ValidateRestoreOperationRequest, - 'FeatureSupportRequest.AzureBackupGoals' : AzureBackupGoalFeatureSupportRequest, - 'ProtectionIntent.RecoveryServiceVaultItem' : AzureRecoveryServiceVaultProtectionIntent, - 'ProtectionIntent.AzureResourceItem' : AzureResourceProtectionIntent, - 'FeatureSupportRequest.AzureVMResourceBackup' : AzureVMResourceFeatureSupportRequest, - 'ProtectionIntent.AzureWorkloadAutoProtectionIntent' : AzureWorkloadAutoProtectionIntent, - 'ProtectionIntent.AzureWorkloadSQLAutoProtectionIntent' : AzureWorkloadSQLAutoProtectionIntent, - 'FeatureSupportRequest' : FeatureSupportRequest, - 'ProtectionIntent' : ProtectionIntent, + 'Job.VaultJob' : VaultJob, 'ProtectionContainer.AzureBackupServerContainer' : AzureBackupServerContainer, 'BackupEngineBase.AzureBackupServerEngine' : AzureBackupServerEngine, 'BackupRequest.AzureFileShareBackupRequest' : AzureFileShareBackupRequest, @@ -8023,6 +9123,14 @@ export const discriminators = { 'WorkloadProtectableItem.SQLInstance' : AzureVmWorkloadSQLInstanceProtectableItem, 'WorkloadItem.SQLInstance' : AzureVmWorkloadSQLInstanceWorkloadItem, 'BackupRequest.AzureWorkloadBackupRequest' : AzureWorkloadBackupRequest, + 'FeatureSupportRequest.AzureBackupGoals' : AzureBackupGoalFeatureSupportRequest, + 'ProtectionIntent.RecoveryServiceVaultItem' : AzureRecoveryServiceVaultProtectionIntent, + 'ProtectionIntent.AzureResourceItem' : AzureResourceProtectionIntent, + 'FeatureSupportRequest.AzureVMResourceBackup' : AzureVMResourceFeatureSupportRequest, + 'ProtectionIntent.AzureWorkloadAutoProtectionIntent' : AzureWorkloadAutoProtectionIntent, + 'ProtectionIntent.AzureWorkloadSQLAutoProtectionIntent' : AzureWorkloadSQLAutoProtectionIntent, + 'FeatureSupportRequest' : FeatureSupportRequest, + 'ProtectionIntent' : ProtectionIntent, 'ProtectionContainer.AzureWorkloadContainer' : AzureWorkloadContainer, 'BackupEngineBase' : BackupEngineBase, 'BackupRequest' : BackupRequest, @@ -8035,12 +9143,21 @@ export const discriminators = { 'WorkloadProtectableItem.IaaSVMProtectableItem' : IaaSVMProtectableItem, 'ILRRequest' : ILRRequest, 'ProtectionContainer.Windows' : MabContainer, + 'OperationStatusExtendedInfo' : OperationStatusExtendedInfo, 'OperationStatusExtendedInfo.OperationStatusJobExtendedInfo' : OperationStatusJobExtendedInfo, 'OperationStatusExtendedInfo.OperationStatusJobsExtendedInfo' : OperationStatusJobsExtendedInfo, 'OperationStatusExtendedInfo.OperationStatusProvisionILRExtendedInfo' : OperationStatusProvisionILRExtendedInfo, 'ProtectableContainer' : ProtectableContainer, 'ProtectionContainer' : ProtectionContainer, 'WorkloadItem' : WorkloadItem, - 'WorkloadProtectableItem' : WorkloadProtectableItem + 'WorkloadProtectableItem' : WorkloadProtectableItem, + 'RestoreRequest.AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest' : AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + 'RestoreRequest.AzureWorkloadSAPHanaRestoreWithRehydrateRequest' : AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + 'RestoreRequest.AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest' : AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + 'RestoreRequest.AzureWorkloadSQLRestoreWithRehydrateRequest' : AzureWorkloadSQLRestoreWithRehydrateRequest, + 'RestoreRequest.IaasVMRestoreWithRehydrationRequest' : IaasVMRestoreWithRehydrationRequest, + 'CrrAccessToken' : CrrAccessToken, + 'OperationStatusExtendedInfo.OperationStatusRecoveryPointExtendedInfo' : OperationStatusRecoveryPointExtendedInfo, + 'CrrAccessToken.WorkloadCrrAccessToken' : WorkloadCrrAccessToken }; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationMappers.ts index 6256402a6ae9..72cb3ad2de2d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,13 +12,19 @@ export { AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, CloudError, EncryptionDetails, ErrorDetail, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + RecoveryPointRehydrationInfo, RestoreFileSpecs, RestoreRequest, SQLDataDirectoryMapping, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationsMappers.ts index 2919d50d28e8..cf239cd893a5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts index 43200428a355..47c20e84d7c3 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,7 +25,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2020-02-02', + defaultValue: '2021-02-01', type: { name: "String" } @@ -38,43 +37,7 @@ export const apiVersion1: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-06-15', - type: { - name: "String" - } - } -}; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2016-12-01', - type: { - name: "String" - } - } -}; -export const apiVersion3: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-07-01', - type: { - name: "String" - } - } -}; -export const apiVersion4: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2016-08-10', + defaultValue: '2018-12-20', type: { name: "String" } diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointConnectionOperationsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointConnectionOperationsMappers.ts index 793cf3485a46..a1ea00277162 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointConnectionOperationsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointConnectionOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -120,20 +134,19 @@ export { EncryptionDetails, ErrorAdditionalInfo, ErrorDetail, - ErrorResponse, ExtendedProperties, GenericContainer, GenericContainerExtendedInfo, GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +156,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +171,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -175,9 +191,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +211,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointOperationsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointOperationsMappers.ts new file mode 100644 index 000000000000..61a4fde86431 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointOperationsMappers.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, + ClientScriptForConnect, + DiskInformation, + ErrorAdditionalInfo, + GenericRecoveryPoint, + IaasVMRecoveryPoint, + InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, + NewErrorResponse, + NewErrorResponseError, + OperationStatus, + OperationStatusError, + OperationStatusExtendedInfo, + OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectableContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectableContainersMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectableContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectableContainersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationResultsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationStatusesMappers.ts index e2b2befc32de..08be818858ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemOperationStatusesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,13 +8,34 @@ export { discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, ClientScriptForConnect, CloudError, + DiskInformation, + GenericRecoveryPoint, + IaasVMRecoveryPoint, InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, OperationStatus, OperationStatusError, OperationStatusExtendedInfo, OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, - OperationStatusProvisionILRExtendedInfo + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory } from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectedItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerOperationResultsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerRefreshOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerRefreshOperationResultsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerRefreshOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainerRefreshOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainersMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionContainersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionIntentOperationsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionIntentOperationsMappers.ts index 7d40508d0258..82204a16f9d4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionIntentOperationsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionIntentOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -175,9 +190,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +210,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPoliciesMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationResultsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationStatusesMappers.ts index e2b2befc32de..08be818858ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/protectionPolicyOperationStatusesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,13 +8,34 @@ export { discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, ClientScriptForConnect, CloudError, + DiskInformation, + GenericRecoveryPoint, + IaasVMRecoveryPoint, InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, OperationStatus, OperationStatusError, OperationStatusExtendedInfo, OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, - OperationStatusProvisionILRExtendedInfo + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory } from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsCrrMappers.ts new file mode 100644 index 000000000000..2a64622f2f0e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsCrrMappers.ts @@ -0,0 +1,236 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsMappers.ts index 0923aafa73b5..17a176444951 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -119,6 +133,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -126,13 +141,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +158,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +173,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -180,10 +198,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +220,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsRecommendedForMoveMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsRecommendedForMoveMappers.ts new file mode 100644 index 000000000000..effefcafde9d --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsRecommendedForMoveMappers.ts @@ -0,0 +1,235 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + CloudError, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + ListRecoveryPointsRecommendedForMoveRequest, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/restoresMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/restoresMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/restoresMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/restoresMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/securityPINsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/securityPINsMappers.ts index ed1bd0d0021b..a18ca5fdb56e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/securityPINsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/securityPINsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/aadProperties.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/aadProperties.ts new file mode 100644 index 000000000000..455c57ba1619 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/aadProperties.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/aadPropertiesMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a AadProperties. */ +export class AadProperties { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a AadProperties. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Fetches the AAD properties from target region BCM stamp. + * @param azureRegion Azure region to hit Api + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param callback The callback + */ + get(azureRegion: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AADPropertiesResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts new file mode 100644 index 000000000000..cad106a88dd4 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/bMSPrepareDataMoveOperationResultMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BMSPrepareDataMoveOperationResult. */ +export class BMSPrepareDataMoveOperationResult { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BMSPrepareDataMoveOperationResult. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Operation Result for Prepare Data Move + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultStorageConfigOperationResultResponse + }, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts new file mode 100644 index 000000000000..383a74d1df5a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupCrrJobDetailsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobDetails. */ +export class BackupCrrJobDetails { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobDetails. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Get CRR job details from target region. + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param callback The callback + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, parameters: Models.CrrJobRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts new file mode 100644 index 000000000000..2e25ff77a4d9 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -0,0 +1,148 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupCrrJobsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobs. */ +export class BackupCrrJobs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param [options] The optional parameters + * @returns Promise + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param callback The callback + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param options The optional parameters + * @param callback The callback + */ + list(azureRegion: string, parameters: Models.CrrJobRequest, options: Models.BackupCrrJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.BackupCrrJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts index aecd208b72a9..c3ebf07f9475 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,7 +107,7 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -119,8 +118,8 @@ export class BackupEngines { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupEnginesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -135,14 +134,14 @@ export class BackupEngines { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -162,7 +161,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.backupEngineName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -195,6 +194,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts index c36ed2684408..c48c8fdb1802 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupJobs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupJobs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ export class BackupJobs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts index 7959e5f3dab7..0bca2942f1ec 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -75,7 +74,7 @@ export class BackupOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts index fdbf978c1107..9b45cfbb7cc1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -74,7 +73,7 @@ export class BackupOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts index e7d4484b62fc..802d87edb5b5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupPolicies { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupPoliciesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,14 +97,14 @@ export class BackupPolicies { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -129,6 +128,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts index 2b45cb7cefea..74f0b4641bff 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class BackupProtectableItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupProtectableItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectableItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,14 +97,14 @@ export class BackupProtectableItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -130,6 +129,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts index 38761446d87f..64ccb9c8d104 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectedItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectedItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectedItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ export class BackupProtectedItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts new file mode 100644 index 000000000000..0f444c1f62fc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupProtectedItemsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupProtectedItemsCrr. */ +export class BackupProtectedItemsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupProtectedItemsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides a pageable list of all items that are backed up within a vault. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectedItemsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Provides a pageable list of all items that are backed up within a vault. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.BackupProtectedItemsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts index 40cd9b6da050..9325cecbc2f9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionContainers { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ export class BackupProtectionContainers { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -125,6 +124,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts index d0aa34265091..4a4700e7d5b5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -67,7 +66,7 @@ export class BackupProtectionIntent { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionIntent { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionIntentListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts new file mode 100644 index 000000000000..a42dd05ebdfa --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupResourceEncryptionConfigsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupResourceEncryptionConfigs. */ +export class BackupResourceEncryptionConfigs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupResourceEncryptionConfigs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Vault Encryption config. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates Vault encryption config. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param [options] The optional parameters + * @returns Promise + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Vault encryption input config request + * @param options The optional parameters + * @param callback The callback + */ + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResourceEncryptionConfigResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceEncryptionConfigResource, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts index bc7bed81ac0b..ad8882f28b87 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,14 +143,14 @@ export class BackupResourceStorageConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -223,7 +222,7 @@ const patchOperationSpec: msRest.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts index c8bedd45887b..ec4af9d145a9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,14 +143,14 @@ export class BackupResourceVaultConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const putOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const putOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts index e02fed8f3ff8..fa17599358c4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -69,7 +68,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts index 861abc19f3bd..3d045f6a2617 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts index 1bb4115b4164..425b8d90da37 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -79,7 +78,7 @@ export class BackupWorkloadItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -90,8 +89,8 @@ export class BackupWorkloadItems { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BackupWorkloadItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -106,7 +105,7 @@ export class BackupWorkloadItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -115,7 +114,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -140,6 +139,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts index 57896dba992a..1f1e35c2e1c1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -84,7 +83,7 @@ export class Backups { const serializer = new msRest.Serializer(Mappers); const triggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -94,7 +93,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts new file mode 100644 index 000000000000..fd5493cb1ff2 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/crossRegionRestoreMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrossRegionRestore. */ +export class CrossRegionRestore { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrossRegionRestore. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @param [options] The optional parameters + * @returns Promise + */ + trigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginTrigger(azureRegion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @param [options] The optional parameters + * @returns Promise + */ + beginTrigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + azureRegion, + parameters, + options + }, + beginTriggerOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginTriggerOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrossRegionRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts new file mode 100644 index 000000000000..a20e685b63bc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Mappers from "../models/crrOperationResultsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationResults. */ +export class CrrOperationResults { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationResults. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param callback The callback + */ + get(azureRegion: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts new file mode 100644 index 000000000000..b398dff30c42 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/crrOperationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationStatus. */ +export class CrrOperationStatus { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationStatus. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param callback The callback + */ + get(azureRegion: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts index 0e74cf5b1efe..2675bad2842f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ export class ExportJobsOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -81,7 +80,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts index ef4c19f8ed09..972e5fbe1cf6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -69,7 +68,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts index cff469100f5c..ece1a0196295 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -1,15 +1,23 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./privateEndpointConnectionOperations"; +export * from "./protectionIntentOperations"; +export * from "./backupStatus"; +export * from "./featureSupport"; +export * from "./backupProtectionIntent"; +export * from "./backupUsageSummaries"; +export * from "./operations"; export * from "./backupResourceVaultConfigs"; +export * from "./backupResourceEncryptionConfigs"; +export * from "./privateEndpointConnectionOperations"; +export * from "./privateEndpointOperations"; +export * from "./bMSPrepareDataMoveOperationResult"; export * from "./protectedItems"; export * from "./protectedItemOperationResults"; export * from "./recoveryPoints"; @@ -25,11 +33,6 @@ export * from "./exportJobsOperationResults"; export * from "./jobs"; export * from "./backupProtectedItems"; export * from "./operation"; -export * from "./protectionIntentOperations"; -export * from "./backupStatus"; -export * from "./featureSupport"; -export * from "./backupProtectionIntent"; -export * from "./backupUsageSummaries"; export * from "./backupEngines"; export * from "./protectionContainerRefreshOperationResults"; export * from "./protectableContainers"; @@ -45,5 +48,13 @@ export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; +export * from "./recoveryPointsRecommendedForMove"; +export * from "./aadProperties"; +export * from "./crossRegionRestore"; +export * from "./backupCrrJobDetails"; +export * from "./backupCrrJobs"; +export * from "./crrOperationResults"; +export * from "./crrOperationStatus"; export * from "./backupResourceStorageConfigs"; -export * from "./operations"; +export * from "./recoveryPointsCrr"; +export * from "./backupProtectedItemsCrr"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts index 63983e7812a3..bff3da7f66a8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -155,7 +154,7 @@ export class ItemLevelRecoveryConnections { const serializer = new msRest.Serializer(Mappers); const provisionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -166,7 +165,7 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -189,7 +188,7 @@ const provisionOperationSpec: msRest.OperationSpec = { const revokeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -200,7 +199,7 @@ const revokeOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts index 442f5f77e51f..ccdafd6a982c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -70,7 +69,7 @@ export class JobCancellations { const serializer = new msRest.Serializer(Mappers); const triggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -78,7 +77,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts index bf7a50af9b7f..2ded9da4738c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -70,7 +69,7 @@ export class JobDetails { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -78,7 +77,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts index e09087842b60..69aac7aa311b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ export class JobOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts index ccb2e58ba542..5e1656597d12 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -66,14 +65,14 @@ export class Jobs { const serializer = new msRest.Serializer(Mappers); const exportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts index 80ce96334588..33aeb7df4a85 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -70,14 +69,14 @@ export class Operation { const serializer = new msRest.Serializer(Mappers); const validateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts index 6fd0022c8fc0..126c0cf51ff8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.RecoveryServices/operations", queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts index fdb4a5c9916a..4c002992b0bb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,7 +143,7 @@ export class PrivateEndpointConnectionOperations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -162,7 +161,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginPutOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -206,7 +205,7 @@ const beginPutOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -224,7 +223,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts new file mode 100644 index 000000000000..20d37575ffa8 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a PrivateEndpointOperations. */ +export class PrivateEndpointOperations { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a PrivateEndpointOperations. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the operation status for a private endpoint connection. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param [options] The optional parameters + * @returns Promise + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param callback The callback + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param options The optional parameters + * @param callback The callback + */ + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + privateEndpointConnectionName, + operationId, + options + }, + getOperationStatusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts index 92999e8d95de..5600655fd465 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ export class ProtectableContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class ProtectableContainers { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ProtectableContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,7 +97,7 @@ export class ProtectableContainers { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -106,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -130,6 +129,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts index 480fd2b20e17..1c7974cbf442 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -82,7 +81,7 @@ export class ProtectedItemOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -93,7 +92,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts index 62e38f8252fd..a4539ff030ea 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -86,7 +85,7 @@ export class ProtectedItemOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -97,7 +96,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts index 7b0982b4c2e7..dbb4bc244143 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -183,7 +182,7 @@ export class ProtectedItems { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -193,7 +192,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -212,7 +211,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -222,7 +221,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -248,7 +247,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -258,12 +257,13 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts index fbfa32adf288..fe6189b3fd39 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -78,7 +77,7 @@ export class ProtectionContainerOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -88,7 +87,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts index e0d2487aeafb..7da6ff9c3fbc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -73,7 +72,7 @@ export class ProtectionContainerRefreshOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts index bb1d21630ce3..3a1f6fd8bf8e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -259,7 +258,7 @@ export class ProtectionContainers { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -268,7 +267,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -286,7 +285,7 @@ const getOperationSpec: msRest.OperationSpec = { const registerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -295,7 +294,7 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -321,7 +320,7 @@ const registerOperationSpec: msRest.OperationSpec = { const unregisterOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -330,12 +329,13 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -347,7 +347,7 @@ const unregisterOperationSpec: msRest.OperationSpec = { const inquireOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -356,7 +356,7 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -373,7 +373,7 @@ const inquireOperationSpec: msRest.OperationSpec = { const refreshOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -381,7 +381,7 @@ const refreshOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts index be8a96066335..35c2d7af7097 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -207,7 +206,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +267,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -302,7 +301,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts index a43a693d283a..ade43e8109c9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/protectionPoliciesMappers"; import * as Parameters from "../models/parameters"; @@ -115,7 +115,7 @@ export class ProtectionPolicies { /** * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous * operation. Status of the - * operation can be fetched using GetPolicyOperationResult API. + * operation can be fetched using GetProtectionPolicyOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. @@ -123,34 +123,32 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param vaultName The name of the recovery services vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param policyName Backup policy to be deleted. - * @param callback The callback - */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(vaultName,resourceGroupName,policyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous + * operation. Status of the + * operation can be fetched using GetProtectionPolicyOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param policyName Backup policy to be deleted. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { vaultName, resourceGroupName, policyName, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } } @@ -158,7 +156,7 @@ export class ProtectionPolicies { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -166,7 +164,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -184,7 +182,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -192,7 +190,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -216,9 +214,9 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -226,7 +224,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts index 85339f8da461..2861f414afaa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -74,7 +73,7 @@ export class ProtectionPolicyOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts index 8b487a76d326..0f1ff4a27774 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -78,7 +77,7 @@ export class ProtectionPolicyOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -87,7 +86,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts index afd2493318d6..e28a8b7b39b6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -126,13 +125,68 @@ export class RecoveryPoints { callback) as Promise; } + /** + * @summary Returns the Access token for communication between BMS and Protection service + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param [options] The optional parameters + * @returns Promise + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param callback The callback + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @param options The optional parameters + * @param callback The callback + */ + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + recoveryPointId, + parameters, + options + }, + getAccessTokenOperationSpec, + callback) as Promise; + } + /** * Lists the backup copies for the backed up item. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -143,8 +197,8 @@ export class RecoveryPoints { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RecoveryPointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -159,7 +213,7 @@ export class RecoveryPoints { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -169,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -188,7 +242,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -199,7 +253,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -215,6 +269,43 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const getAccessTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName, + Parameters.recoveryPointId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AADPropertiesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CrrAccessTokenResource + }, + 400: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -222,6 +313,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts new file mode 100644 index 000000000000..4fbb081b4346 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recoveryPointsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a RecoveryPointsCrr. */ +export class RecoveryPointsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a RecoveryPointsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the backup copies for the backed up item. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: Models.RecoveryPointsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the backup copies for the backed up item. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.RecoveryPointsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts new file mode 100644 index 000000000000..b87f7d91fa0a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts @@ -0,0 +1,167 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recoveryPointsRecommendedForMoveMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a RecoveryPointsRecommendedForMove. */ +export class RecoveryPointsRecommendedForMove { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a RecoveryPointsRecommendedForMove. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the recovery points recommended for move to another tier + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param protectedItemName + * @param parameters List Recovery points Recommended for Move Request + * @param [options] The optional parameters + * @returns Promise + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param protectedItemName + * @param parameters List Recovery points Recommended for Move Request + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, callback: msRest.ServiceCallback): void; + /** + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param protectedItemName + * @param parameters List Recovery points Recommended for Move Request + * @param options The optional parameters + * @param callback The callback + */ + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + parameters, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the recovery points recommended for move to another tier + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ListRecoveryPointsRecommendedForMoveRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts index 4803b35f92f5..1baf3c436493 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/restoresMappers"; import * as Parameters from "../models/parameters"; @@ -41,20 +41,15 @@ export class Restores { * @param [options] The optional parameters * @returns Promise */ - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase): Promise; - /** - * @param vaultName The name of the recovery services vault. - * @param resourceGroupName The name of the resource group where the recovery services vault is - * present. - * @param fabricName Fabric name associated with the backed up items. - * @param containerName Container name associated with the backed up items. - * @param protectedItemName Backed up item to be restored. - * @param recoveryPointId Recovery point ID which represents the backed up data to be restored. - * @param parameters resource restore request - * @param callback The callback - */ - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, callback: msRest.ServiceCallback): void; + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginTrigger(vaultName,resourceGroupName,fabricName,containerName,protectedItemName,recoveryPointId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Restores the specified backed up data. This is an asynchronous operation. To know the status of + * this API call, use + * GetProtectedItemOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. @@ -63,12 +58,11 @@ export class Restores { * @param protectedItemName Backed up item to be restored. * @param recoveryPointId Recovery point ID which represents the backed up data to be restored. * @param parameters resource restore request - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginTrigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { vaultName, resourceGroupName, @@ -79,16 +73,16 @@ export class Restores { parameters, options }, - triggerOperationSpec, - callback); + beginTriggerOperationSpec, + options); } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const triggerOperationSpec: msRest.OperationSpec = { +const beginTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -99,7 +93,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts index 3a4768974be5..70f02e9e0d44 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -66,14 +65,14 @@ export class SecurityPINs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index af400f29edcc..bccc6ec692bf 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -18,8 +18,17 @@ import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupCli class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups - privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + protectionIntent: operations.ProtectionIntentOperations; + backupStatus: operations.BackupStatus; + featureSupport: operations.FeatureSupport; + backupProtectionIntent: operations.BackupProtectionIntent; + backupUsageSummaries: operations.BackupUsageSummaries; + operations: operations.Operations; backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; + backupResourceEncryptionConfigs: operations.BackupResourceEncryptionConfigs; + privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + privateEndpoint: operations.PrivateEndpointOperations; + bMSPrepareDataMoveOperationResult: operations.BMSPrepareDataMoveOperationResult; protectedItems: operations.ProtectedItems; protectedItemOperationResults: operations.ProtectedItemOperationResults; recoveryPoints: operations.RecoveryPoints; @@ -35,11 +44,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { jobs: operations.Jobs; backupProtectedItems: operations.BackupProtectedItems; operation: operations.Operation; - protectionIntent: operations.ProtectionIntentOperations; - backupStatus: operations.BackupStatus; - featureSupport: operations.FeatureSupport; - backupProtectionIntent: operations.BackupProtectionIntent; - backupUsageSummaries: operations.BackupUsageSummaries; backupEngines: operations.BackupEngines; protectionContainerRefreshOperationResults: operations.ProtectionContainerRefreshOperationResults; protectableContainers: operations.ProtectableContainers; @@ -55,8 +59,16 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectableItems: operations.BackupProtectableItems; backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; + recoveryPointsRecommendedForMove: operations.RecoveryPointsRecommendedForMove; + aadProperties: operations.AadProperties; + crossRegionRestore: operations.CrossRegionRestore; + backupCrrJobDetails: operations.BackupCrrJobDetails; + backupCrrJobs: operations.BackupCrrJobs; + crrOperationResults: operations.CrrOperationResults; + crrOperationStatus: operations.CrrOperationStatus; backupResourceStorageConfigs: operations.BackupResourceStorageConfigs; - operations: operations.Operations; + recoveryPointsCrr: operations.RecoveryPointsCrr; + backupProtectedItemsCrr: operations.BackupProtectedItemsCrr; /** * Initializes a new instance of the RecoveryServicesBackupClient class. @@ -66,8 +78,17 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); - this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.protectionIntent = new operations.ProtectionIntentOperations(this); + this.backupStatus = new operations.BackupStatus(this); + this.featureSupport = new operations.FeatureSupport(this); + this.backupProtectionIntent = new operations.BackupProtectionIntent(this); + this.backupUsageSummaries = new operations.BackupUsageSummaries(this); + this.operations = new operations.Operations(this); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); + this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); + this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.privateEndpoint = new operations.PrivateEndpointOperations(this); + this.bMSPrepareDataMoveOperationResult = new operations.BMSPrepareDataMoveOperationResult(this); this.protectedItems = new operations.ProtectedItems(this); this.protectedItemOperationResults = new operations.ProtectedItemOperationResults(this); this.recoveryPoints = new operations.RecoveryPoints(this); @@ -83,11 +104,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.jobs = new operations.Jobs(this); this.backupProtectedItems = new operations.BackupProtectedItems(this); this.operation = new operations.Operation(this); - this.protectionIntent = new operations.ProtectionIntentOperations(this); - this.backupStatus = new operations.BackupStatus(this); - this.featureSupport = new operations.FeatureSupport(this); - this.backupProtectionIntent = new operations.BackupProtectionIntent(this); - this.backupUsageSummaries = new operations.BackupUsageSummaries(this); this.backupEngines = new operations.BackupEngines(this); this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults(this); this.protectableContainers = new operations.ProtectableContainers(this); @@ -103,64 +119,184 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectableItems = new operations.BackupProtectableItems(this); this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(this); + this.recoveryPointsRecommendedForMove = new operations.RecoveryPointsRecommendedForMove(this); + this.aadProperties = new operations.AadProperties(this); + this.crossRegionRestore = new operations.CrossRegionRestore(this); + this.backupCrrJobDetails = new operations.BackupCrrJobDetails(this); + this.backupCrrJobs = new operations.BackupCrrJobs(this); + this.crrOperationResults = new operations.CrrOperationResults(this); + this.crrOperationStatus = new operations.CrrOperationStatus(this); this.backupResourceStorageConfigs = new operations.BackupResourceStorageConfigs(this); - this.operations = new operations.Operations(this); + this.recoveryPointsCrr = new operations.RecoveryPointsCrr(this); + this.backupProtectedItemsCrr = new operations.BackupProtectedItemsCrr(this); } /** - * @summary Gets the operation status for a private endpoint connection. + * Fetches operation status for data move operation on vault * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param [options] The optional parameters * @returns Promise */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param options The optional parameters * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.sendOperationRequest( { vaultName, resourceGroupName, - privateEndpointConnectionName, operationId, options }, getOperationStatusOperationSpec, callback) as Promise; } + + /** + * Prepares source vault for Data Move operation + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Prepare data move request + * @param [options] The optional parameters + * @returns Promise + */ + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSPrepareDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Triggers Data Move Operation on target vault + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Trigger data move request + * @param [options] The optional parameters + * @returns Promise + */ + bMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSTriggerDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Move recovery point from one datastore to another store. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param protectedItemName + * @param recoveryPointId + * @param parameters Move Resource Across Tiers Request + * @param [options] The optional parameters + * @returns Promise + */ + moveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.MoveRPAcrossTiersRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginMoveRecoveryPoint(vaultName,resourceGroupName,fabricName,containerName,protectedItemName,recoveryPointId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Prepares source vault for Data Move operation + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Prepare data move request + * @param [options] The optional parameters + * @returns Promise + */ + beginBMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + beginBMSPrepareDataMoveOperationSpec, + options); + } + + /** + * Triggers Data Move Operation on target vault + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param parameters Trigger data move request + * @param [options] The optional parameters + * @returns Promise + */ + beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + beginBMSTriggerDataMoveOperationSpec, + options); + } + + /** + * @summary Move recovery point from one datastore to another store. + * @param vaultName The name of the recovery services vault. + * @param resourceGroupName The name of the resource group where the recovery services vault is + * present. + * @param fabricName + * @param containerName + * @param protectedItemName + * @param recoveryPointId + * @param parameters Move Resource Across Tiers Request + * @param [options] The optional parameters + * @returns Promise + */ + beginMoveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.MoveRPAcrossTiersRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + recoveryPointId, + parameters, + options + }, + beginMoveRecoveryPointOperationSpec, + options); + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); const getOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName, Parameters.operationId ], queryParameters: [ @@ -174,7 +310,103 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationStatus }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const beginBMSPrepareDataMoveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrepareDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const beginBMSTriggerDataMoveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TriggerDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const beginMoveRecoveryPointOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/move", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName, + Parameters.recoveryPointId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.MoveRPAcrossTiersRequest, + required: true + } + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts index b8a8f744f6cb..1df0cd73d941 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is